/* ───────────────────────────────────────────────────────────
   edoardopiazza.com — Home, prima passata
   Editorial Modern · Bone + Charcoal + Vermillion
   ─────────────────────────────────────────────────────────── */

:root {
  /* palette (default · vermillion accent, can be overridden by tweaks) */
  --bg: #F5F2EC;
  --bg-deep: #ECE8DF;
  --ink: #0E0E10;
  --ink-sub: #5A5751;
  --ink-mute: #8A867D;
  --hairline: rgba(26, 26, 26, 0.10);
  --hairline-strong: rgba(26, 26, 26, 0.22);
  --accent: #E83D2A;
  --accent-ink: #FFFFFF; /* text on accent fills */

  /* density */
  --sec-pad-y: 160px;
  --sec-pad-x: 64px;
  --gutter: 40px;
  --container: 1440px;

  /* type scale (desktop) */
  --t-display: clamp(72px, 11vw, 168px);
  --t-h1: clamp(56px, 8vw, 120px);
  --t-h2: clamp(40px, 5.6vw, 84px);
  --t-h3: clamp(28px, 3.4vw, 48px);
  --t-h4: 22px;
  --t-body: 18px;
  --t-body-l: 21px;
  --t-small: 15px;
  --t-mono: 12px;

  --leading-tight: 0.95;
  --leading-h: 1.04;
  --leading-body: 1.55;

  /* motion */
  --ease-out-deep: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --d-fast: 220ms;
  --d-med: 480ms;
  --d-slow: 800ms;

  /* fonts (overridable) */
  --font-display: "Newsreader", "Times New Roman", serif;
  --font-body: "DM Sans", "Helvetica Neue", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
}

[data-density="compact"] {
  --sec-pad-y: 112px;
  --sec-pad-x: 40px;
  --gutter: 28px;
}

[data-dark="1"] {
  --bg: #0E0E10;
  --bg-deep: #16161A;
  --ink: #F2EFE8;
  --ink-sub: #B8B3A7;
  --ink-mute: #6B6860;
  --hairline: rgba(255, 255, 255, 0.10);
  --hairline-strong: rgba(255, 255, 255, 0.22);
}

@media (max-width: 880px) {
  :root {
    --sec-pad-y: 96px;
    --sec-pad-x: 24px;
    --gutter: 24px;
    --t-body: 17px;
    --t-body-l: 19px;
  }
}

/* ── reset ── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background var(--d-med) var(--ease-in-out), color var(--d-med) var(--ease-in-out);
}

/* subtle film grain — invisible at 1% but kills the digital sheen */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2' seed='3'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
}
[data-dark="1"] body::before { mix-blend-mode: screen; opacity: 0.06; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { max-width: 100%; display: block; }

/* ── typography primitives ── */
.display, .h1, .h2, .h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: var(--leading-h);
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.display { font-size: var(--t-display); line-height: var(--leading-tight); letter-spacing: -0.035em; }
.h1 { font-size: var(--t-h1); letter-spacing: -0.03em; }
.h2 { font-size: var(--t-h2); letter-spacing: -0.025em; }
.h3 { font-size: var(--t-h3); letter-spacing: -0.02em; }

.eyebrow, .mono {
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-sub);
}

.lead {
  font-size: var(--t-body-l);
  line-height: 1.5;
  color: var(--ink-sub);
  max-width: 56ch;
  text-wrap: pretty;
}

/* italic accents for editorial moments */
.italic { font-style: italic; }

/* underline link */
.u-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 2px;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  transition: background-size var(--d-fast) var(--ease-out-deep);
}
.u-link:hover { background-size: 0% 1px; background-position: 100% 100%; }
.u-link .arr { display: inline-block; transition: transform var(--d-fast) var(--ease-out-deep); }
.u-link:hover .arr { transform: translateX(4px); }

/* ── layout ── */
.section {
  position: relative;
  padding: var(--sec-pad-y) var(--sec-pad-x);
  border-top: 1px solid var(--hairline);
}
.section:first-of-type { border-top: 0; }
.container { max-width: var(--container); margin: 0 auto; }
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
  row-gap: var(--gutter);
}
@media (max-width: 880px) {
  .grid-12 { grid-template-columns: repeat(6, 1fr); column-gap: 16px; }
}

/* ── buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background var(--d-fast) var(--ease-out-deep),
              color var(--d-fast) var(--ease-out-deep),
              border-color var(--d-fast) var(--ease-out-deep),
              transform var(--d-fast) var(--ease-out-deep);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover { background: var(--accent); color: var(--accent-ink); }
.btn-accent {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-accent:hover { background: var(--ink); color: var(--bg); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--hairline-strong);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-inverse {
  background: var(--bg);
  color: var(--ink);
}
.btn-inverse:hover { background: var(--accent); color: var(--accent-ink); }

.btn .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}

/* ── custom cursor ── */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 2147483647;
  mix-blend-mode: normal;
  transform: translate(-50%, -50%);
  transition: width var(--d-fast) var(--ease-out-deep),
              height var(--d-fast) var(--ease-out-deep),
              opacity var(--d-fast) var(--ease-out-deep),
              background var(--d-med) var(--ease-out-deep);
  opacity: 0;
}
.cursor-dot[data-active="1"] { opacity: 1; }
.cursor-dot[data-hover="1"] {
  width: 32px; height: 32px;
  background: var(--accent);
  opacity: 0.35;
}
@media (hover: none), (pointer: coarse) {
  .cursor-dot { display: none; }
}
[data-cursor="off"] .cursor-dot { display: none; }
[data-cursor="off"] *, [data-cursor="off"] body { cursor: auto; }

/* ── sticky availability bar ── */
.bar-availability {
  position: relative;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  padding: 9px 24px;
  z-index: 50;
}
.bar-availability .pulse {
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: 1px;
  animation: pulse 2s var(--ease-in-out) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* ── header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--hairline);
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--sec-pad-x);
  gap: 32px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.brand .monogram {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 32px;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.04em;
}
.brand .word {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.brand .word .sep { color: var(--ink-mute); margin: 0 6px; }
.brand .word .ai { font-style: italic; }

.nav-primary {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--ink-sub);
}
.nav-primary a {
  position: relative;
  padding: 4px 0;
  font-weight: 400;
  transition: color var(--d-fast) var(--ease-out-deep), font-weight var(--d-fast);
}
.nav-primary a:hover { color: var(--ink); font-weight: 500; }

@media (max-width: 980px) {
  .nav-primary { display: none; }
}

/* ── hero ── */
.hero {
  padding-top: clamp(80px, 11vh, 140px);
  padding-bottom: clamp(80px, 14vh, 160px);
  position: relative;
}
.hero .row {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--gutter);
  align-items: end;
}
@media (max-width: 980px) {
  .hero .row { grid-template-columns: 1fr; }
}
.hero .eyebrow-line {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 40px;
}
.hero .eyebrow-line .rule {
  flex: 0 0 48px;
  height: 1px;
  background: var(--ink);
}
.hero .display {
  margin-bottom: 32px;
  text-wrap: balance;
}
.hero .display em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}
.hero .sub {
  font-size: var(--t-body-l);
  line-height: 1.5;
  color: var(--ink-sub);
  max-width: 52ch;
  margin: 0 0 40px;
}
.hero .cta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.hero .visual { position: relative; }

/* hero variable-weight reveal animation */
.hero .display .word-anim {
  display: inline-block;
  font-variation-settings: "wght" 200, "opsz" 36;
  opacity: 0;
  transform: translateY(0.35em);
  animation: heroWordReveal 1100ms var(--ease-out-deep) forwards;
}
@keyframes heroWordReveal {
  0% { font-variation-settings: "wght" 200, "opsz" 36; opacity: 0; transform: translateY(0.35em); }
  60% { opacity: 1; transform: translateY(0); }
  100% { font-variation-settings: "wght" 480, "opsz" 36; opacity: 1; transform: translateY(0); }
}
[data-motion="off"] .hero .display .word-anim {
  animation: none;
  opacity: 1;
  transform: none;
  font-variation-settings: "wght" 480, "opsz" 36;
}

/* hero swap — typewriter alternation: "Siti web." ⇄ "Consulenza AI." */
.hero .display .hero-swap {
  display: inline-block;
  font-variation-settings: "wght" 480, "opsz" 36;
}
.hero .display .hero-swap__text {
  display: inline-block;
  white-space: nowrap;
}
.hero .display .hero-swap.is-typing::after {
  content: "";
  display: inline-block;
  width: 0.05em;
  height: 0.78em;
  margin-left: 0.06em;
  background: var(--accent);
  vertical-align: -0.04em;
  animation: heroSwapCaret 720ms steps(2) infinite;
}
@keyframes heroSwapCaret {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
[data-motion="off"] .hero .display .hero-swap.is-typing::after { display: none; }
@media (prefers-reduced-motion: reduce) {
  .hero .display .hero-swap.is-typing::after { display: none; }
}

/* hero visual — composite stack of laptop/phone/email */
.hero-stack {
  position: relative;
  aspect-ratio: 5 / 4.2;
  width: 100%;
}
.hero-stack .panel {
  position: absolute;
  background: var(--bg-deep);
  border: 1px solid var(--hairline-strong);
  overflow: hidden;
}
.hero-stack .panel .label {
  position: absolute;
  top: 10px; left: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero-stack .laptop {
  inset: 0 18% 28% 0;
  background: var(--bg-deep);
}
.hero-stack .laptop::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 6px;
  background: var(--ink);
}
.hero-stack .laptop .browser {
  position: absolute;
  inset: 22px 14px 14px;
  background: var(--bg);
  border: 1px solid var(--hairline);
  display: flex; flex-direction: column;
}
.hero-stack .laptop .browser .topbar {
  height: 22px;
  border-bottom: 1px solid var(--hairline);
  display: flex; align-items: center; padding: 0 8px; gap: 4px;
}
.hero-stack .laptop .browser .topbar i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--hairline-strong);
}
.hero-stack .laptop .browser .topbar .url {
  margin-left: 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}
.hero-stack .laptop .browser .body {
  flex: 1;
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 8px;
  padding: 14px;
}
.hero-stack .laptop .browser .ttl {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--ink);
  line-height: 1.1;
  margin: 0 0 8px;
}
.hero-stack .laptop .browser .lines i {
  display: block;
  height: 4px;
  background: var(--ink-mute);
  border-radius: 1px;
  margin-bottom: 5px;
  opacity: 0.3;
}
.hero-stack .laptop .browser .lines i:nth-child(2) { width: 78%; }
.hero-stack .laptop .browser .lines i:nth-child(3) { width: 92%; }
.hero-stack .laptop .browser .lines i:nth-child(4) { width: 60%; }
.hero-stack .laptop .browser .img-placeholder {
  background: var(--ink);
  border-radius: 0;
}
/* Real-screenshot mode for the laptop mock: replaces the .body grid */
.hero-stack .laptop .browser .shot {
  flex: 1;
  width: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
  background: var(--bg);
}

.hero-stack .phone {
  right: 6%; bottom: 4%;
  width: 28%;
  aspect-ratio: 9 / 18;
  background: var(--ink);
  border-radius: 22px;
  padding: 8px;
  z-index: 2;
}
.hero-stack .phone .scr {
  position: absolute;
  inset: 8px;
  border-radius: 16px;
  background: var(--bg);
  padding: 14px 10px;
  font-family: var(--font-body);
}
.hero-stack .phone .scr .map {
  height: 38%;
  background: var(--bg-deep);
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
}
.hero-stack .phone .scr .map::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 49%, var(--hairline) 49%, var(--hairline) 51%, transparent 51%),
    linear-gradient(0deg, transparent 49%, var(--hairline) 49%, var(--hairline) 51%, transparent 51%);
  background-size: 18px 18px;
}
.hero-stack .phone .scr .map::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 10px; height: 10px;
  margin: -5px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 30%, transparent);
}
.hero-stack .phone .scr .nm {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  line-height: 1.1;
  margin-bottom: 4px;
}
.hero-stack .phone .scr .meta {
  font-size: 8px;
  color: var(--ink-mute);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero-stack .phone .scr .stars {
  margin-top: 6px;
  color: var(--accent);
  font-size: 9px;
  letter-spacing: 0.2em;
}

.hero-stack .card-email {
  position: absolute;
  left: 4%; bottom: 0;
  width: 50%;
  padding: 16px 18px;
  background: var(--ink);
  color: var(--bg);
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
}
.hero-stack .card-email .at-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
  color: var(--accent);
}
.hero-stack .card-email .from {
  color: var(--ink-mute);
  margin-bottom: 4px;
}

/* photography modes */
[data-photo="editorial"] .hero-stack { display: none; }
[data-photo="editorial"] .hero-portrait { display: block; }
[data-photo="type"] .hero-portrait { display: none; }
.hero-portrait {
  display: none;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.hero-portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(1) contrast(1.02);
}
.hero-portrait .silhouette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 40% 30% at 50% 40%, color-mix(in oklab, var(--accent) 60%, var(--ink)) 0%, transparent 60%),
    linear-gradient(180deg, transparent 0%, var(--ink) 80%);
}
.hero-portrait .stripes {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 3px,
    rgba(255,255,255,0.02) 3px,
    rgba(255,255,255,0.02) 4px
  );
}
.hero-portrait .placeholder-label {
  position: absolute;
  bottom: 18px;
  left: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 242, 236, 0.5);
}

/* ── hero marquee — scrolling strip below the hero ── */
.hero-marquee {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--bg);
  padding: 22px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.hero-marquee .track {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  white-space: nowrap;
  animation: marqueeSlide 60s linear infinite;
  will-change: transform;
}
.hero-marquee:hover .track { animation-play-state: paused; }
.hero-marquee .item {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(20px, 2.4vw, 30px);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--bg);
  font-weight: 400;
}
.hero-marquee .dot {
  color: var(--accent);
  font-size: 10px;
  line-height: 1;
  display: inline-block;
  transform: translateY(-2px);
}
@keyframes marqueeSlide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
[data-motion="off"] .hero-marquee .track { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .hero-marquee .track { animation: none; transform: translateX(-2%); }
}
@media (max-width: 600px) {
  .hero-marquee { padding: 16px 0; }
  .hero-marquee .track { gap: 20px; animation-duration: 45s; }
  .hero-marquee .item { font-size: 17px; }
}

/* ── trust band ── */
.trust-band {
  padding: 28px var(--sec-pad-x);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--bg);
}
.trust-band .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  max-width: var(--container);
  margin: 0 auto;
}
.trust-band .item {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-sub);
}
.trust-band .item b {
  font-family: var(--font-body);
  font-style: normal;
  text-transform: none;
  font-size: 14px;
  letter-spacing: -0.005em;
  color: var(--ink);
  font-weight: 500;
  margin-right: 10px;
}

/* ── value prop (4 cards) ── */
.section-head {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--gutter);
  align-items: end;
  margin-bottom: 80px;
}
@media (max-width: 880px) {
  .section-head { grid-template-columns: 1fr; }
}
.section-head .left .eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.section-head .left .eyebrow::before {
  content: "";
  width: 32px; height: 1px;
  background: var(--ink);
}

.valueprop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
@media (max-width: 980px) {
  .valueprop-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .valueprop-grid { grid-template-columns: 1fr; }
}
.vp-card {
  position: relative;
  padding: 40px 28px 36px;
  border-right: 1px solid var(--hairline);
  transition: background var(--d-med) var(--ease-out-deep);
}
.vp-card:last-child { border-right: 0; }
@media (max-width: 980px) {
  .vp-card { border-bottom: 1px solid var(--hairline); }
  .vp-card:nth-child(2n) { border-right: 0; }
  .vp-card:nth-last-child(-n+2) { border-bottom: 0; }
}
.vp-card:hover { background: var(--bg-deep); }
.vp-card .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  margin-bottom: 32px;
  display: block;
}
.vp-card .ttl {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 18px;
  color: var(--ink);
}
.vp-card .ttl em { font-style: italic; color: var(--accent); }
.vp-card p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-sub);
  margin: 0;
  max-width: 32ch;
}

/* ── constellation (sezione presenza digitale) ── */
.constellation-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1.5 / 1;
  max-width: 1100px;
  margin: 0 auto;
}
.constellation-wrap svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.constellation-wrap .node {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: transform var(--d-med) var(--ease-out-deep);
}
.constellation-wrap .node .dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--ink);
  transition: transform var(--d-fast) var(--ease-out-deep), background var(--d-fast);
  margin: 0 auto 12px;
}
.constellation-wrap .node:hover .dot {
  transform: scale(1.6);
  background: var(--accent);
}
.constellation-wrap .node .nm {
  font-family: var(--font-display);
  font-size: 18px;
  font-style: italic;
  letter-spacing: -0.02em;
  text-align: center;
  white-space: nowrap;
  line-height: 1.1;
}
.constellation-wrap .node .desc {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink-mute);
  margin-top: 4px;
  white-space: nowrap;
}
.constellation-wrap .node.center .dot {
  width: 80px;
  height: 80px;
  background: var(--accent);
  margin: 0 auto 16px;
}
.constellation-wrap .node.center .nm {
  font-size: 28px;
  font-weight: 500;
}
.constellation-wrap .node.center:hover .dot { transform: scale(1.05); }

@media (max-width: 880px) {
  .constellation-wrap { aspect-ratio: auto; }
  .constellation-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 1px solid var(--ink);
  }
  .constellation-list .row {
    display: grid;
    grid-template-columns: 32px 1fr;
    padding: 20px 0;
    border-bottom: 1px solid var(--hairline);
    gap: 20px;
  }
  .constellation-list .row .n {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-mute);
    letter-spacing: 0.06em;
  }
  .constellation-list .row .nm {
    font-family: var(--font-display);
    font-size: 22px;
    font-style: italic;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
  }
  .constellation-list .row .desc {
    font-size: 14px;
    color: var(--ink-sub);
  }
}
.constellation-list { display: none; }
@media (max-width: 880px) {
  .constellation-wrap > svg, .constellation-wrap > .node { display: none; }
  .constellation-list { display: block; }
}

/* ── portfolio teaser ── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
}

/* When the preview holds a real screenshot, layer it absolutely over the
   CSS-drawn frame so the editorial grayscale-on-hover effect still applies. */
.portfolio-card .preview .shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  z-index: 2;
}
@media (max-width: 980px) {
  .portfolio-grid { grid-template-columns: 1fr; }
}
.portfolio-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  cursor: pointer;
}
.portfolio-card .preview {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-deep);
  overflow: hidden;
  border: 1px solid var(--hairline);
  transition: transform 480ms var(--ease-out-deep), box-shadow 480ms var(--ease-out-deep);
}
.portfolio-card:hover .preview {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.18);
}
.portfolio-card .preview .frame {
  position: absolute;
  inset: 14% 10% 0;
  background: var(--bg);
  border: 1px solid var(--hairline);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.portfolio-card .preview .frame .head {
  font-family: var(--font-display);
  font-size: 20px;
  font-style: italic;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.portfolio-card .preview .frame .head em { font-style: normal; color: var(--accent); }
.portfolio-card .preview .frame .lines {
  display: flex; flex-direction: column; gap: 4px;
}
.portfolio-card .preview .frame .lines i {
  height: 3px; background: var(--ink-mute); opacity: 0.4; display: block;
}
.portfolio-card .preview .frame .lines i:nth-child(2) { width: 70%; }
.portfolio-card .preview .frame .lines i:nth-child(3) { width: 88%; }
.portfolio-card .preview .frame .img-ph {
  margin-top: auto;
  height: 30%;
  background: var(--ink);
}
.portfolio-card .preview .corner-label {
  position: absolute;
  top: 14px; right: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  padding: 4px 8px;
}
.portfolio-card .meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.portfolio-card .meta .nm {
  font-family: var(--font-display);
  font-size: 28px;
  font-style: italic;
  letter-spacing: -0.025em;
  line-height: 1;
}
.portfolio-card .meta .yr {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
}
.portfolio-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.portfolio-card .tags span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-sub);
  padding: 4px 10px;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
}

/* ── personas ── */
.personas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
}
@media (max-width: 980px) { .personas { grid-template-columns: 1fr; } }
.persona-card {
  padding: 56px 36px;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--ink);
  position: relative;
  background: var(--bg);
  transition: background var(--d-med) var(--ease-out-deep);
}
.persona-card:last-child { border-right: 0; }
@media (max-width: 980px) { .persona-card { border-right: 0; } }
.persona-card:hover { background: var(--bg-deep); }
.persona-card .nbig {
  font-family: var(--font-display);
  font-size: 14vw;
  font-style: italic;
  font-weight: 300;
  position: absolute;
  top: -0.05em;
  right: 0.15em;
  color: var(--hairline);
  line-height: 0.8;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.06em;
}
@media (max-width: 980px) { .persona-card .nbig { font-size: 24vw; } }
.persona-card .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 18px;
  display: block;
}
.persona-card h3 {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
}
.persona-card h3 em { font-style: italic; color: var(--accent); }
.persona-card p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-sub);
  margin: 0 0 28px;
  max-width: 30ch;
}
.persona-card .pkg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 6px 12px;
  border: 1px solid var(--ink);
  border-radius: 999px;
}
.persona-card .pkg .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ── pricing peek (wow moment #2) ── */
.pricing-peek {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--ink);
}
@media (max-width: 980px) { .pricing-peek { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .pricing-peek { grid-template-columns: 1fr; } }
.pp-card {
  position: relative;
  padding: 40px 28px 32px;
  border-right: 1px solid var(--hairline);
  background: var(--bg);
  min-height: 360px;
  display: flex;
  flex-direction: column;
}
.pp-card:last-child { border-right: 0; }
@media (max-width: 980px) {
  .pp-card { border-right: 0; border-bottom: 1px solid var(--hairline); }
  .pp-card:nth-child(2) { border-right: 1px solid var(--hairline); }
}
.pp-card .tempo {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 18px;
}
.pp-card .nm {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.025em;
  margin-bottom: 6px;
}
.pp-card .for {
  font-size: 14px;
  color: var(--ink-sub);
  margin-bottom: 28px;
  max-width: 24ch;
}
.pp-card .price {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 6px;
}
.pp-card .price .cur {
  font-family: var(--font-body);
  font-size: 18px;
  vertical-align: top;
  margin-right: 3px;
  color: var(--ink-sub);
  letter-spacing: 0;
}
.pp-card .delivery {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  margin-bottom: 28px;
}
.pp-card .feats {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  font-size: 14px;
  color: var(--ink-sub);
}
.pp-card .feats li {
  padding: 7px 0;
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  gap: 10px;
}
.pp-card .feats li::before {
  content: "+";
  font-family: var(--font-mono);
  color: var(--accent);
  font-weight: 600;
}
.pp-card .pick {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
/* il più scelto — inverted */
.pp-card.featured {
  background: var(--ink);
  color: var(--bg);
}
.pp-card.featured .tempo,
.pp-card.featured .delivery { color: rgba(245, 242, 236, 0.55); }
.pp-card.featured .for,
.pp-card.featured .feats { color: rgba(245, 242, 236, 0.78); }
.pp-card.featured .feats li { border-top-color: rgba(255,255,255,0.12); }
.pp-card.featured .feats li::before { color: var(--accent); }
.pp-card.featured .price .cur { color: rgba(245, 242, 236, 0.5); }
.pp-card.featured .pick { color: var(--bg); }
/* rotated wordmark — wow moment */
.pp-card .rotated-wm {
  position: absolute;
  left: -2px;
  top: 50%;
  transform-origin: left top;
  transform: rotate(-90deg) translate(-50%, 100%);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 60px;
  letter-spacing: -0.04em;
  color: var(--accent);
  white-space: nowrap;
  pointer-events: none;
  line-height: 1;
  opacity: 0;
  transition: opacity var(--d-med) var(--ease-out-deep);
}
.pp-card.featured .rotated-wm { opacity: 1; }

/* ── comparison ── */
.compare-table {
  width: 100%;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.compare-table .row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  padding: 28px 0;
  border-bottom: 1px solid var(--hairline);
  align-items: start;
  gap: 24px;
}
.compare-table .row:last-child { border-bottom: 0; }
.compare-table .row.header {
  border-bottom: 1px solid var(--ink);
  padding: 18px 0;
}
.compare-table .row.header span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-sub);
}
.compare-table .row.header span.us {
  color: var(--accent);
  font-weight: 600;
}
.compare-table .row .axis {
  font-family: var(--font-display);
  font-size: 26px;
  font-style: italic;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.compare-table .row .cell {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-sub);
  position: relative;
  padding-left: 24px;
}
.compare-table .row .cell::before {
  position: absolute;
  left: 0; top: 5px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}
.compare-table .row .cell.yes::before { content: "✓"; color: var(--accent); }
.compare-table .row .cell.no::before { content: "×"; color: var(--ink-mute); }
.compare-table .row .cell.partial::before { content: "~"; color: var(--ink-mute); }
.compare-table .row .cell.us {
  color: var(--ink);
  font-weight: 500;
}
@media (max-width: 980px) {
  .compare-table .row { grid-template-columns: 1fr; padding: 24px 0; }
  .compare-table .row.header { display: none; }
  .compare-table .row .cell::after {
    content: attr(data-col);
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin-bottom: 4px;
    padding-left: 0;
  }
}

/* ── process ── */
.process-list {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--ink);
}
.process-step {
  display: grid;
  grid-template-columns: 80px 1.4fr 2fr 100px;
  padding: 32px 0;
  border-bottom: 1px solid var(--hairline);
  align-items: start;
  gap: 24px;
  transition: background var(--d-med) var(--ease-out-deep);
}
.process-step:hover { background: var(--bg-deep); }
@media (max-width: 880px) {
  .process-step { grid-template-columns: 40px 1fr; padding: 24px 0; gap: 16px; }
  .process-step .body, .process-step .time { grid-column: 2; }
}
.process-step .n {
  font-family: var(--font-display);
  font-size: 32px;
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
}
.process-step .nm {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.process-step .body {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-sub);
}
.process-step .time {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-align: right;
}
@media (max-width: 880px) { .process-step .time { text-align: left; } }

/* ── faq ── */
.faq-list {
  border-top: 1px solid var(--ink);
}
.faq-item {
  border-bottom: 1px solid var(--hairline);
  cursor: pointer;
}
.faq-item summary {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 32px;
  align-items: center;
  padding: 28px 0;
  gap: 24px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.8vw, 32px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  cursor: pointer;
  transition: color var(--d-fast) var(--ease-out-deep);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-item summary .plus {
  width: 24px; height: 24px;
  position: relative;
}
.faq-item summary .plus::before,
.faq-item summary .plus::after {
  content: "";
  position: absolute;
  background: currentColor;
  transition: transform var(--d-fast) var(--ease-out-deep);
}
.faq-item summary .plus::before {
  inset: 50% 0 auto 0;
  height: 1px;
  transform: translateY(-50%);
}
.faq-item summary .plus::after {
  inset: 0 50% 0 auto;
  width: 1px;
  transform: translateX(50%);
}
.faq-item[open] summary .plus::after { transform: translateX(50%) rotate(90deg); }
.faq-item .body {
  padding: 0 0 28px;
  max-width: 70ch;
  color: var(--ink-sub);
  font-size: 16px;
  line-height: 1.6;
}

/* ── final CTA — wow moment #3 ── */
.final-cta {
  background: var(--ink);
  color: var(--bg);
  padding: clamp(96px, 16vh, 200px) var(--sec-pad-x);
  position: relative;
  overflow: hidden;
  border-top: 0;
}
.final-cta .marquee {
  font-family: var(--font-display);
  font-size: clamp(96px, 18vw, 280px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin: 0;
  text-wrap: balance;
}
.final-cta .marquee em {
  font-style: italic;
  color: var(--accent);
  font-weight: 300;
}
.final-cta .sub {
  font-size: 18px;
  color: rgba(245, 242, 236, 0.7);
  max-width: 48ch;
  margin: 32px 0 48px;
}
.final-cta .cta-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.final-cta .meta {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-top: clamp(80px, 12vh, 160px);
  padding-top: 32px;
  border-top: 1px solid rgba(245, 242, 236, 0.15);
  gap: 32px;
  flex-wrap: wrap;
}
.final-cta .meta .item {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(245, 242, 236, 0.5);
}
.final-cta .meta .item b {
  display: block;
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: -0.005em;
  margin-top: 4px;
}

/* ── footer ── */
.site-footer {
  background: var(--bg-deep);
  padding: 80px var(--sec-pad-x) 32px;
  border-top: 1px solid var(--hairline);
}
.site-footer .cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: var(--container);
  margin: 0 auto;
}
@media (max-width: 880px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
.site-footer h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 16px;
  font-weight: 500;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { padding: 4px 0; font-size: 14px; color: var(--ink-sub); }
.site-footer ul li a:hover { color: var(--ink); }
.site-footer .bot {
  max-width: var(--container);
  margin: 60px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ── scroll reveals ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms var(--ease-out-deep), transform 800ms var(--ease-out-deep);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
[data-motion="off"] .reveal {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* utility */
.flex { display: flex; }
.gap-sm { gap: 12px; }
.gap-md { gap: 20px; }
.mt-sm { margin-top: 16px; }
.mt-md { margin-top: 32px; }
.center { text-align: center; }

/* ── page hero (subpages) ── */
.page-hero {
  padding: clamp(96px, 14vh, 180px) var(--sec-pad-x) clamp(80px, 12vh, 140px);
  border-bottom: 1px solid var(--hairline);
}
.page-hero .container { max-width: var(--container); margin: 0 auto; }
.page-hero .eyebrow-line {
  display: flex; align-items: center; gap: 14px; margin-bottom: 32px;
}
.page-hero .eyebrow-line .rule {
  flex: 0 0 48px; height: 1px; background: var(--ink);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(56px, 9vw, 132px);
  letter-spacing: -0.03em;
  line-height: 1.0;
  margin: 0 0 32px;
  font-weight: 400;
  text-wrap: balance;
  max-width: 18ch;
}
.page-hero h1 em { font-style: italic; color: var(--accent); font-weight: 300; }
.page-hero .sub {
  font-size: var(--t-body-l);
  line-height: 1.5;
  color: var(--ink-sub);
  max-width: 56ch;
  margin: 0;
}

/* ── 6 CSS-drawn mocks (sezione "Cosa include") ── */
.mocks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px 40px;
  margin-top: 96px;
}
@media (max-width: 880px) { .mocks-grid { grid-template-columns: 1fr; gap: 48px; } }
.mock-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mock-block .mock-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.mock-block .mock-caption {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-sub);
  max-width: 48ch;
  margin: 0;
}
.mock-frame {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--hairline-strong);
  padding: 24px;
  min-height: 280px;
  transition: transform var(--d-fast) var(--ease-out-deep), border-color var(--d-fast);
}
.mock-frame:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
}

/* Mock 1 — Google Business Profile */
.mock-gbp .mock-gbp-head {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 24px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 8px;
}
.mock-gbp .stars-row {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.mock-gbp .stars-row .stars { color: var(--accent); letter-spacing: 0.15em; font-size: 14px; }
.mock-gbp .stars-row .count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}
.mock-gbp .addr {
  font-size: 13px;
  color: var(--ink-sub);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 6px;
}
.mock-gbp .addr::before {
  content: "";
  display: inline-block;
  width: 10px; height: 12px;
  background: var(--ink);
  clip-path: polygon(50% 0, 100% 35%, 75% 100%, 25% 100%, 0 35%);
}
.mock-gbp .gbp-pills {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px;
}
.mock-gbp .gbp-pills span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--ink-sub);
  padding: 4px 9px;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
}
.mock-gbp .mini-map {
  height: 100px;
  background: var(--bg-deep);
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}
.mock-gbp .mini-map::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, transparent 49%, var(--hairline) 49%, var(--hairline) 51%, transparent 51%),
    linear-gradient(0deg, transparent 49%, var(--hairline) 49%, var(--hairline) 51%, transparent 51%);
  background-size: 24px 24px;
}
.mock-gbp .mini-map::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 10px; height: 12px;
  margin: -6px -5px;
  background: var(--accent);
  clip-path: polygon(50% 0, 100% 35%, 75% 100%, 25% 100%, 0 35%);
}
.mock-gbp .gbp-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.mock-gbp .gbp-actions span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  padding: 7px 4px;
  border: 1px solid var(--hairline-strong);
  color: var(--ink);
}

/* Mock 2 — Email pro vs Gmail */
.mock-email-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--hairline-strong);
}
.mock-email-compare .email-card {
  background: var(--bg);
  padding: 18px 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.mock-email-compare .email-card .tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 4px;
}
.mock-email-compare .email-card .from {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink);
  word-break: break-all;
  line-height: 1.3;
}
.mock-email-compare .email-card .subj {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  margin-top: 4px;
}
.mock-email-compare .email-card .preview {
  font-size: 12px;
  color: var(--ink-sub);
  line-height: 1.4;
}
.mock-email-compare .email-card .note {
  margin-top: auto;
  padding-top: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  line-height: 1.5;
}
.mock-email-compare .email-card.after .from { color: var(--accent); }

/* Mock 3 — MioDottore */
.mock-md .md-head {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
}
.mock-md .md-doc {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.mock-md .md-cal {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin-bottom: 14px;
}
.mock-md .md-day {
  display: flex; flex-direction: column; gap: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
}
.mock-md .md-day .day-label {
  text-align: center;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding: 4px 0;
  border-bottom: 1px solid var(--hairline);
}
.mock-md .md-day .slot {
  padding: 6px 4px;
  text-align: center;
  border: 1px solid var(--hairline);
  color: var(--ink-sub);
}
.mock-md .md-day .slot.on {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.mock-md .md-cta {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 12px;
  background: var(--ink);
  color: var(--bg);
}

/* Mock 4 — Cookie banner */
.mock-cookie .ck-banner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  background: var(--bg-deep);
  border: 1px solid var(--hairline-strong);
  padding: 16px;
}
.mock-cookie .ck-banner .ck-text {
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-sub);
}
.mock-cookie .ck-banner .ck-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  align-items: start;
}
.mock-cookie .ck-banner .ck-actions button {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  padding: 9px 6px;
  border: 1px solid var(--hairline-strong);
  background: transparent;
  color: var(--ink);
  cursor: default;
  white-space: nowrap;
}
.mock-cookie .ck-banner .ck-actions button.primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
@media (max-width: 600px) {
  .mock-cookie .ck-banner { grid-template-columns: 1fr; }
}

/* Mock 5 — PEC */
.mock-pec .pec-head {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 14px;
}
.mock-pec .pec-addr {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink);
  padding: 12px;
  background: var(--bg-deep);
  border-left: 2px solid var(--accent);
  margin-bottom: 18px;
  word-break: break-all;
}
.mock-pec .pec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-sub);
  padding: 10px 0;
  border-top: 1px solid var(--hairline);
}
.mock-pec .pec-row .badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  padding: 4px 10px;
  border: 1px solid var(--accent);
  border-radius: 999px;
}
.mock-pec .pec-row .badge::before {
  content: "✓";
  font-family: var(--font-mono);
  font-weight: 700;
}

/* Mock — Logo design (incluso in ogni pacchetto) */
.mock-logo .logo-head {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 18px;
}
.mock-logo .logo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.mock-logo .logo-tile {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
.mock-logo .logo-mark {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-deep);
  border: 1px solid var(--hairline);
  position: relative;
  overflow: hidden;
}
.mock-logo .logo-mark.monogram {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(36px, 8vw, 52px);
  font-weight: 400;
  color: var(--accent);
  letter-spacing: -0.04em;
}
.mock-logo .logo-mark.wordmark {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(13px, 3vw, 17px);
  color: var(--ink);
  letter-spacing: -0.02em;
  text-align: center;
  padding: 0 6px;
}
.mock-logo .logo-mark.emblem {
  background: var(--ink);
}
.mock-logo .logo-mark.emblem .ring {
  position: absolute;
  inset: 22%;
  border: 1.2px solid var(--bg);
  border-radius: 50%;
}
.mock-logo .logo-mark.emblem .letter {
  position: relative;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(20px, 5vw, 28px);
  color: var(--bg);
  letter-spacing: -0.04em;
}
.mock-logo .logo-tile > .tile-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-align: center;
}
.mock-logo .logo-foot {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
}

/* Mock — Foto enhancement (AI o shooting) */
.mock-foto .foto-head {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 14px;
}
.mock-foto .foto-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--hairline-strong);
  aspect-ratio: 5 / 3;
  margin-bottom: 14px;
}
.mock-foto .foto-before,
.mock-foto .foto-after {
  position: relative;
  overflow: hidden;
}
.mock-foto .foto-before {
  background: linear-gradient(135deg, #8a867d 0%, #c4c0b6 50%, #9a958a 100%);
  filter: contrast(0.6) saturate(0.3) brightness(0.85);
}
.mock-foto .foto-after {
  background:
    radial-gradient(ellipse at 30% 35%, rgba(232, 61, 42, 0.18) 0%, transparent 55%),
    linear-gradient(135deg, #2a2520 0%, #5a5751 50%, #ECE8DF 100%);
}
.mock-foto .foto-label {
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(0, 0, 0, 0.55);
  padding: 3px 7px;
}
.mock-foto .foto-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  line-height: 1.5;
  padding-top: 8px;
  border-top: 1px solid var(--hairline);
}

/* Mock 6 — Mobile responsive */
.mock-mobile .mob-frame {
  margin: 0 auto;
  width: 180px;
  aspect-ratio: 9 / 18;
  background: var(--ink);
  border-radius: 22px;
  padding: 8px;
  position: relative;
}
.mock-mobile .mob-scr {
  position: absolute;
  inset: 8px;
  border-radius: 16px;
  background: var(--bg);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}
.mock-mobile .mob-scr .mob-top {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  color: var(--ink-sub);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--hairline);
}
.mock-mobile .mob-scr .mob-top .ham { display: flex; flex-direction: column; gap: 2px; }
.mock-mobile .mob-scr .mob-top .ham i { display: block; width: 10px; height: 1px; background: var(--ink); }
.mock-mobile .mob-scr .mob-hero {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.mock-mobile .mob-scr .mob-card {
  height: 28px;
  background: var(--bg-deep);
  border: 1px solid var(--hairline);
}
.mock-mobile .mob-scr .mob-cta {
  margin-top: auto;
  padding: 8px 6px;
  background: var(--accent);
  color: var(--accent-ink);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── personas: "Lavoro anche con" sub-section ── */
.also-with {
  margin-top: 80px;
  padding-top: 56px;
  border-top: 1px solid var(--hairline);
  text-align: center;
}
.also-with h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 24px;
}
.also-with .list {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-sub);
  margin: 0 0 24px;
  text-wrap: balance;
}
.also-with .list .sep { color: var(--ink-mute); margin: 0 8px; }
.also-with p {
  max-width: 56ch;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-sub);
}

/* ── case study screenshot ── */
.case-screenshot {
  padding: 0 var(--sec-pad-x) clamp(56px, 8vh, 96px);
}
.case-shot {
  margin: 0 auto;
  max-width: 1200px;
  border: 1px solid var(--hairline-strong);
  overflow: hidden;
  position: relative;
  background: var(--bg-deep);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.18);
}
.case-shot img {
  display: block;
  width: 100%;
  height: auto;
}
.case-shot figcaption {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding: 14px 20px;
  border-top: 1px solid var(--hairline);
  background: var(--bg);
}
@media (max-width: 600px) {
  .case-shot figcaption { font-size: 10px; padding: 10px 14px; }
}

/* ── case study layout ── */
.case-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
}
@media (max-width: 880px) { .case-meta { grid-template-columns: 1fr; } }
.case-meta .item .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: block;
  margin-bottom: 6px;
}
.case-meta .item .val {
  font-family: var(--font-display);
  font-size: 24px;
  font-style: italic;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.case-body {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--gutter);
  margin-bottom: 80px;
}
@media (max-width: 880px) { .case-body { grid-template-columns: 1fr; } }
.case-body h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
  font-weight: 400;
  text-wrap: balance;
}
.case-body h2 em { font-style: italic; color: var(--accent); font-weight: 300; }
.case-body .copy { font-size: 17px; line-height: 1.65; color: var(--ink-sub); }
.case-body .copy p { margin: 0 0 18px; }
.case-body .copy p:last-child { margin-bottom: 0; }
.case-body .copy strong { color: var(--ink); font-weight: 500; }

.metrics-table {
  width: 100%;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  margin-top: 56px;
}
.metrics-table .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
  gap: 24px;
  align-items: center;
}
.metrics-table .row:last-child { border-bottom: 0; }
.metrics-table .row .axis {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-sub);
}
.metrics-table .row .val {
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.pull-quote {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 48px);
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
  text-wrap: balance;
  margin: 80px 0 24px;
  padding-left: 32px;
  border-left: 2px solid var(--accent);
}
.pull-quote + cite {
  display: block;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding-left: 34px;
}

/* ── tariffe full table ── */
.tariffe-table {
  width: 100%;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  margin-top: 56px;
  border-collapse: collapse;
  font-size: 14px;
}
.tariffe-table th, .tariffe-table td {
  text-align: left;
  padding: 16px 18px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}
.tariffe-table th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-sub);
  background: var(--bg-deep);
  border-bottom: 1px solid var(--ink);
}
.tariffe-table th.featured { color: var(--accent); }
.tariffe-table td.feat-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.tariffe-table td.featured { background: rgba(232, 61, 42, 0.04); }
.tariffe-table td .yes { color: var(--accent); font-weight: 600; }
.tariffe-table td .no { color: var(--ink-mute); }
@media (max-width: 880px) {
  .tariffe-table-wrap { overflow-x: auto; }
  .tariffe-table { min-width: 720px; }
}

/* ── lists (incluso / non incluso) ── */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--ink);
}
.feature-list li {
  position: relative;
  padding: 16px 16px 16px 40px;
  border-bottom: 1px solid var(--hairline);
  font-size: 16px;
  color: var(--ink-sub);
  line-height: 1.5;
}
.feature-list li::before {
  position: absolute;
  left: 0; top: 16px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14px;
  width: 24px;
  text-align: center;
}
.feature-list.yes li::before { content: "+"; color: var(--accent); }
.feature-list.no li::before { content: "—"; color: var(--ink-mute); }
.feature-list li strong { color: var(--ink); font-weight: 500; }

/* ── processo dettagliato (subpage) ── */
.process-detail {
  display: grid;
  grid-template-columns: 1fr;
}
.process-phase {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 40px;
  padding: 56px 0;
  border-bottom: 1px solid var(--hairline);
}
.process-phase:last-child { border-bottom: 0; }
@media (max-width: 880px) {
  .process-phase { grid-template-columns: 1fr; gap: 16px; padding: 40px 0; }
}
.process-phase .num {
  font-family: var(--font-display);
  font-size: 80px;
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.process-phase .when {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 6px;
}
.process-phase h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 16px;
  font-weight: 400;
}
.process-phase h3 em { font-style: italic; color: var(--accent); }
.process-phase .body {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-sub);
  max-width: 56ch;
}
.process-phase .body p { margin: 0 0 14px; }
.process-phase .body p:last-child { margin-bottom: 0; }

/* ── multi-step form ── */
.form-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--sec-pad-x);
}
.form-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 40px;
}
.form-progress .seg {
  flex: 1;
  height: 3px;
  background: var(--hairline);
  transition: background var(--d-fast) var(--ease-out-deep);
}
.form-progress .seg.done { background: var(--accent); }
.form-progress .seg.cur { background: var(--ink); }

.form-step {
  display: none;
  animation: stepIn var(--d-med) var(--ease-out-deep);
}
.form-step.active { display: block; }
@keyframes stepIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
.form-step .step-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 14px;
}
.form-step .q {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.4vw, 56px);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 12px;
  font-weight: 400;
  text-wrap: balance;
}
.form-step .q em { font-style: italic; color: var(--accent); }
.form-step .sub-q {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  margin-bottom: 32px;
}
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.chip-list button {
  appearance: none;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  padding: 14px 22px;
  border: 1px solid var(--hairline-strong);
  background: var(--bg);
  color: var(--ink);
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--d-fast) var(--ease-out-deep),
              border-color var(--d-fast) var(--ease-out-deep),
              color var(--d-fast) var(--ease-out-deep);
  letter-spacing: -0.005em;
}
.chip-list button:hover { border-color: var(--ink); }
.chip-list button.selected {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.form-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 24px;
}
@media (max-width: 600px) { .form-fields { grid-template-columns: 1fr; } }
.form-fields label {
  display: flex; flex-direction: column; gap: 8px;
}
.form-fields label .lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.form-fields label .lbl .opt { color: var(--ink-mute); margin-left: 6px; text-transform: none; letter-spacing: 0; }
.form-fields input,
.form-fields textarea {
  font-family: var(--font-body);
  font-size: 16px;
  padding: 14px 16px;
  border: 1px solid var(--hairline-strong);
  background: var(--bg);
  color: var(--ink);
  border-radius: 2px;
  outline: none;
  transition: border-color var(--d-fast) var(--ease-out-deep);
}
.form-fields input:focus,
.form-fields textarea:focus { border-color: var(--ink); }
.form-disclaimer {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  line-height: 1.6;
  margin: 8px 0 24px;
}
.form-disclaimer a { color: var(--ink); text-decoration: underline; }
.form-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
}
.form-nav .step-count {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
}
.form-confirm { display: none; text-align: center; padding: 60px 0; }
.form-confirm.active { display: block; }
.form-confirm h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 80px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 24px;
  font-weight: 400;
  text-wrap: balance;
}
.form-confirm h2 em { font-style: italic; color: var(--accent); }
.form-confirm .sub {
  font-size: var(--t-body-l);
  color: var(--ink-sub);
  max-width: 52ch;
  margin: 0 auto 40px;
  line-height: 1.5;
}
.form-confirm .actions {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

/* ── legal documents (privacy / cookie) ── */
.legal-doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--sec-pad-x);
}
.legal-doc h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -0.02em;
  margin: 56px 0 16px;
  font-weight: 400;
}
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc h3 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  margin: 32px 0 8px;
  color: var(--ink);
}
.legal-doc p, .legal-doc li {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-sub);
}
.legal-doc p { margin: 0 0 16px; }
.legal-doc ol, .legal-doc ul { padding-left: 24px; margin: 0 0 16px; }
.legal-doc ol li, .legal-doc ul li { padding: 4px 0; }
.legal-doc .updated {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 32px;
}
.legal-doc .doc-footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  line-height: 1.6;
}

/* ── portfolio index (extended cards) ── */
.portfolio-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--ink);
}
.portfolio-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 80px;
  gap: 40px;
  align-items: center;
  padding: 40px 0;
  border-bottom: 1px solid var(--hairline);
  transition: background var(--d-med) var(--ease-out-deep);
}
.portfolio-row:hover { background: var(--bg-deep); }
@media (max-width: 880px) {
  .portfolio-row { grid-template-columns: 1fr; gap: 12px; padding: 32px 0; }
}
.portfolio-row .nm {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.portfolio-row .nm em { font-style: italic; color: var(--accent); }
.portfolio-row .desc {
  font-size: 15px;
  color: var(--ink-sub);
  line-height: 1.5;
}
.portfolio-row .yr {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
}
.portfolio-row .arr {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  text-align: right;
}
.portfolio-row .arr .ico { display: inline-block; margin-left: 4px; transition: transform var(--d-fast) var(--ease-out-deep); }
.portfolio-row:hover .arr .ico { transform: translateX(4px); }

/* ─────────────────────────────────────────────────────────────────────
   MOBILE OPTIMIZATION
   Hamburger drawer + responsive polish for hero, pricing, footer, mocks
   ───────────────────────────────────────────────────────────────────── */

/* ── Hamburger button (visible only below 980px) ── */
.nav-toggle {
  display: none;
  appearance: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  position: relative;
  z-index: 61;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: var(--ink);
  transition: transform var(--d-fast) var(--ease-out-deep),
              top var(--d-fast) var(--ease-out-deep),
              opacity 180ms;
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  /* Hide the header CTA on mobile — its place is the in-page CTAs + drawer */
  .site-header .inner > .btn { display: none; }
  .site-header .inner { padding: 14px var(--sec-pad-x); gap: 16px; }
  .brand .word { display: none; }
  .brand .monogram { font-size: 28px; }

  /* Drawer — re-use .nav-primary as fullscreen panel */
  .nav-primary {
    display: flex;                    /* override the earlier `display: none` */
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 55;
    padding: 88px var(--sec-pad-x) 32px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    font-size: inherit;
    color: var(--ink);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .24s var(--ease-out-deep),
                transform .24s var(--ease-out-deep),
                visibility 0s .24s;
  }
  .nav-primary.open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition: opacity .24s var(--ease-out-deep),
                transform .24s var(--ease-out-deep);
  }
  .nav-primary a {
    font-family: var(--font-display);
    font-size: clamp(34px, 9vw, 56px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.025em;
    color: var(--ink);
    padding: 18px 0;
    border-bottom: 1px solid var(--hairline);
    width: 100%;
  }
  .nav-primary a:last-child { border-bottom: 0; }
  .nav-primary a:hover { color: var(--accent); font-weight: 400; }

  /* When menu open: keep header on top of drawer so hamburger remains tappable */
  body.menu-open { overflow: hidden; }
  body.menu-open .site-header { z-index: 60; background: var(--bg); }
  body.menu-open .cursor-dot { display: none; }
}

/* ── Hero polish on mobile ── */
@media (max-width: 980px) {
  .hero { padding-top: clamp(48px, 8vh, 96px); padding-bottom: clamp(56px, 10vh, 120px); }
  .hero .row { gap: 48px; }
  .hero .eyebrow-line { margin-bottom: 24px; }
  .hero .display { margin-bottom: 24px; }
  .hero .sub { margin-bottom: 32px; }
  .hero .visual { max-width: 520px; margin: 0 auto; width: 100%; }
}
@media (max-width: 600px) {
  .display { font-size: clamp(44px, 13vw, 72px); letter-spacing: -0.025em; }
  .hero .sub { font-size: 16px; }
  .hero .cta-row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .hero .cta-row .btn { width: 100%; justify-content: center; }
  .hero-stack { aspect-ratio: 5 / 4 !important; }
  /* Tighten the mock layout proportions a touch */
  .hero-stack .laptop .browser .body { gap: 6px; padding: 10px; }
  .hero-stack .laptop .browser .ttl { font-size: 13px; }
  .hero-stack .card-email { padding: 12px 14px; font-size: 10px; }
  .hero-stack .card-email .at-tag { font-size: 14px; }
}

/* ── Trust band: stack labels on small mobile ── */
@media (max-width: 600px) {
  .trust-band { padding: 20px var(--sec-pad-x); }
  .trust-band .inner { gap: 16px 24px; }
  .trust-band .item { font-size: 10px; flex: 1 0 calc(50% - 12px); }
  .trust-band .item b { display: block; margin: 0 0 2px; font-size: 13px; }
}

/* ── Section heads on mobile ── */
@media (max-width: 880px) {
  .section-head { gap: 24px; margin-bottom: 56px; }
  .section-head .left { margin-bottom: 0; }
}

/* ── Value prop cards on mobile ── */
@media (max-width: 600px) {
  .vp-card { padding: 32px 24px 28px; }
  .vp-card .num { margin-bottom: 20px; }
  .vp-card .ttl { font-size: 26px; margin-bottom: 14px; }
}

/* ── Portfolio cards: tighter on mobile ── */
@media (max-width: 600px) {
  .portfolio-card .meta .nm { font-size: 24px; }
  .portfolio-card .preview .frame .head { font-size: 17px; }
}

/* ── Portfolio "Mi hanno scelto": horizontal carousel on mobile ── */
@media (max-width: 880px) {
  .portfolio-grid {
    display: flex;
    flex-direction: row;
    gap: 16px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--sec-pad-x);
    -webkit-overflow-scrolling: touch;
    /* Full-bleed: cards extend to viewport edges */
    margin-left: calc(var(--sec-pad-x) * -1);
    margin-right: calc(var(--sec-pad-x) * -1);
    padding: 4px var(--sec-pad-x) 18px;
    scrollbar-width: none;
  }
  .portfolio-grid::-webkit-scrollbar { display: none; }
  .portfolio-grid .portfolio-card {
    flex: 0 0 78%;
    max-width: 360px;
    scroll-snap-align: start;
  }
  /* Subtle hint that the row is scrollable */
  .portfolio-grid::after {
    content: "";
    flex: 0 0 calc(var(--sec-pad-x) - 16px);
  }
}

/* ── Personas: hide huge background numeral on small mobile, tighten ── */
@media (max-width: 600px) {
  .persona-card { padding: 40px 28px 36px; }
  .persona-card .nbig { font-size: 32vw; right: -10px; top: -20px; opacity: .6; }
  .persona-card h3 { font-size: 28px; margin-bottom: 14px; }
  .persona-card p { font-size: 15px; margin-bottom: 22px; }
}

/* ── "Lavoro anche con" on mobile ── */
@media (max-width: 600px) {
  .also-with { margin-top: 56px; padding-top: 40px; }
  .also-with h3 { font-size: 22px; margin-bottom: 18px; }
  .also-with .list { font-size: 11px; }
  .also-with .list .sep { margin: 0 4px; }
}

/* ── Pricing cards on mobile ── */
@media (max-width: 880px) {
  .pp-card { padding: 36px 28px 30px; min-height: auto; }
  .pp-card .nm { font-size: 40px; }
  .pp-card .price { font-size: 48px; }
  .pp-card .pick { padding: 14px 0; min-height: 44px; }
}
@media (max-width: 600px) {
  /* The rotated wordmark overflows narrow viewports — hide on small phones */
  .pp-card .rotated-wm { display: none; }
  .pp-card { padding: 32px 22px 28px; }
  .pp-card .nm { font-size: 36px; }
  .pp-card .for { font-size: 13px; margin-bottom: 22px; }
  .pp-card .price { font-size: 44px; }
  .pp-card .feats { font-size: 13px; }
}

/* ── Comparison table: smaller axis text when stacked ── */
@media (max-width: 600px) {
  .compare-table .row { padding: 20px 0; gap: 12px; }
  .compare-table .row .axis { font-size: 22px; margin-bottom: 4px; }
  .compare-table .row .cell { font-size: 14px; padding-left: 22px; }
  .compare-table .row .cell::after { font-size: 9px; }
}

/* ── Process step on mobile (home one-pager) ── */
@media (max-width: 600px) {
  .process-step { padding: 22px 0; gap: 12px; }
  .process-step .n { font-size: 24px; }
  .process-step .nm { font-size: 22px; }
  .process-step .body { font-size: 14px; }
}

/* ── FAQ summary on mobile ── */
@media (max-width: 600px) {
  .faq-item summary { font-size: 19px; padding: 22px 0; gap: 16px; }
  .faq-item .body { font-size: 15px; padding-bottom: 22px; }
  .faq-item summary .plus { width: 20px; height: 20px; }
}

/* ── Final CTA on mobile ── */
@media (max-width: 600px) {
  .final-cta { padding-top: 80px; padding-bottom: 80px; }
  .final-cta .sub { font-size: 16px; margin: 24px 0 32px; }
  .final-cta .cta-row { flex-direction: column; align-items: stretch; }
  .final-cta .cta-row .btn { width: 100%; justify-content: center; }
  .final-cta .meta { flex-direction: column; align-items: flex-start; gap: 20px; margin-top: 72px; padding-top: 24px; }
  .final-cta .meta .item { width: 100%; }
}

/* ── Footer: 1 column on small mobile ── */
@media (max-width: 600px) {
  .site-footer { padding: 56px var(--sec-pad-x) 24px; }
  .site-footer .cols { grid-template-columns: 1fr; gap: 36px; }
  .site-footer .bot { flex-direction: column; gap: 8px; align-items: flex-start; margin-top: 40px; }
}

/* ── Page hero (subpages) on mobile ── */
@media (max-width: 880px) {
  .page-hero { padding: clamp(56px, 10vh, 96px) var(--sec-pad-x) clamp(56px, 8vh, 96px); }
  .page-hero h1 { font-size: clamp(40px, 11vw, 80px); max-width: none; margin-bottom: 24px; }
  .page-hero .sub { font-size: 17px; }
  .page-hero .eyebrow-line { margin-bottom: 24px; }
}

/* ── Case study layout on mobile ── */
@media (max-width: 880px) {
  .case-body { gap: 24px; margin-bottom: 48px; }
  .case-body h2 { font-size: clamp(28px, 5vw, 40px); }
  .case-body .copy { font-size: 16px; line-height: 1.6; }
  .pull-quote { font-size: clamp(22px, 4.5vw, 32px); padding-left: 20px; margin: 56px 0 16px; }
  .case-meta { gap: 20px; margin-top: 32px; padding-top: 24px; }
  .case-meta .item .val { font-size: 19px; }
  .metrics-table { margin-top: 32px; }
  .metrics-table .row { padding: 14px 0; gap: 16px; }
  .metrics-table .row .val { font-size: 18px; }
  .metrics-table .row .axis { font-size: 11px; }
}

/* ── Process phase on mobile (processo + chi-sono subpages) ── */
@media (max-width: 880px) {
  .process-phase { padding: 40px 0; }
  .process-phase .num { font-size: 48px; }
  .process-phase .when { margin-top: 4px; }
  .process-phase h3 { font-size: clamp(24px, 5.5vw, 36px); margin-bottom: 12px; }
  .process-phase .body { font-size: 16px; line-height: 1.6; }
}

/* ── Tariffe table: smaller cells on mobile ── */
@media (max-width: 880px) {
  .tariffe-table th, .tariffe-table td { padding: 12px 14px; font-size: 13px; }
  .tariffe-table td.feat-name { font-size: 15px; }
}

/* ── Feature lists on mobile ── */
@media (max-width: 600px) {
  .feature-list li { font-size: 15px; padding: 14px 14px 14px 36px; }
  .feature-list li::before { top: 14px; }
}

/* ── 6 CSS-drawn mocks on mobile ── */
@media (max-width: 600px) {
  .mocks-grid { gap: 40px; margin-top: 64px; }
  .mock-frame { padding: 18px; min-height: auto; }
  .mock-gbp .mock-gbp-head { font-size: 21px; }
  .mock-gbp .mini-map { height: 80px; }
  .mock-email-compare { grid-template-columns: 1fr; }
  .mock-md .md-cal { gap: 3px; }
  .mock-md .md-day .slot { padding: 4px 2px; font-size: 9px; }
  .mock-md .md-doc { font-size: 16px; }
  /* Cookie banner: stack text + actions vertically */
  .mock-cookie .ck-banner { grid-template-columns: 1fr; }
  .mock-cookie .ck-banner .ck-actions { grid-template-columns: 1fr 1fr 1fr; }
  .mock-cookie .ck-banner .ck-actions button { font-size: 10px; padding: 10px 4px; }
  .mock-pec .pec-addr { font-size: 12px; padding: 10px; }
  .mock-pec .pec-row { flex-direction: column; align-items: flex-start; gap: 6px; font-size: 10px; }
  .mock-mobile .mob-frame { width: 150px; }
  .mock-logo .logo-grid { gap: 8px; }
  .mock-logo .logo-mark.monogram { font-size: 36px; }
  .mock-logo .logo-mark.wordmark { font-size: 13px; }
  .mock-logo .logo-mark.emblem .letter { font-size: 22px; }
  .mock-foto .foto-meta { font-size: 9px; }
}

/* ── Multi-step form on mobile ── */
@media (max-width: 880px) {
  .form-shell { padding: 0 var(--sec-pad-x); }
}
@media (max-width: 600px) {
  .form-step .q { font-size: clamp(26px, 7.5vw, 40px); }
  .form-step .step-label { font-size: 10px; margin-bottom: 12px; }
  .chip-list { gap: 8px; margin-bottom: 32px; }
  .chip-list button {
    width: 100%;
    text-align: left;
    padding: 16px 20px;
    font-size: 15px;
    border-radius: 12px;
    min-height: 56px;
  }
  .form-fields { grid-template-columns: 1fr; gap: 16px; }
  .form-fields input { font-size: 16px; padding: 16px; }  /* 16px prevents iOS zoom */
  .form-nav { flex-wrap: wrap; gap: 12px; }
  .form-nav .step-count { width: 100%; text-align: center; order: -1; }
  .form-nav .btn { flex: 1; justify-content: center; }
  .form-confirm h2 { font-size: clamp(32px, 8vw, 56px); }
}

/* ── Legal docs on mobile ── */
@media (max-width: 880px) {
  .legal-doc { padding: 0 var(--sec-pad-x); }
  .legal-doc h2 { font-size: clamp(22px, 5vw, 32px); margin-top: 40px; }
  .legal-doc h3 { font-size: 17px; }
  .legal-doc p, .legal-doc li { font-size: 15px; }
}

/* ── Portfolio index rows on mobile ── */
@media (max-width: 880px) {
  .portfolio-row .nm { font-size: clamp(28px, 7vw, 44px); }
  .portfolio-row .desc { font-size: 14px; }
  .portfolio-row .arr { text-align: left; }
}

/* ── Section padding tuning at very small widths ── */
@media (max-width: 480px) {
  :root {
    --sec-pad-y: 72px;
    --sec-pad-x: 18px;
  }
}

/* ── Availability bar on mobile ── */
@media (max-width: 600px) {
  .bar-availability { font-size: 10px; padding: 8px 14px; letter-spacing: 0.04em; }
  .bar-availability .pulse { width: 5px; height: 5px; margin-right: 8px; }
}

/* ── Tap targets: ensure all interactive elements ≥ 44px on touch ── */
@media (hover: none), (pointer: coarse) {
  .btn { min-height: 48px; }
  .nav-primary a { min-height: 44px; }
  .chip-list button { min-height: 48px; }
  .pp-card .pick { min-height: 44px; padding: 12px 0; display: flex; align-items: center; }
  .u-link { padding: 6px 0; display: inline-flex; align-items: center; }
  .faq-item summary { min-height: 56px; }
  /* Drop hover-driven micro animations that won't fire on touch anyway */
  .portfolio-card .preview { filter: none; }
}

/* ── Disable the variable-weight hero animation on small viewports for perf ── */
@media (max-width: 600px) {
  .hero .display .word-anim {
    animation-duration: 700ms;
  }
}

/* ────────────────────────────────────────────────────────────────────────
   COOKIE BANNER — GDPR / Garante 10 giugno 2021 (n. 231)
   ────────────────────────────────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9000;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  border-radius: 12px;
  padding: 24px 28px;
  display: none;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.4);
  font-family: var(--font-body);
  max-width: 1080px;
  margin: 0 auto;
}
.cookie-banner.show { display: block; }
.cookie-banner .head {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin: 0 0 10px;
  line-height: 1.2;
}
.cookie-banner .head em { font-style: italic; color: var(--accent); }
.cookie-banner .body {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(245, 242, 236, 0.84);
  margin: 0 0 20px;
  max-width: 78ch;
}
.cookie-banner .body a {
  color: var(--bg);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-banner .body a:hover { color: var(--accent); }
.cookie-banner .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.cookie-banner .cbtn {
  flex: 1 1 0;
  min-width: 160px;
  appearance: none;
  border: 1px solid rgba(245, 242, 236, 0.4);
  background: transparent;
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 18px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  text-align: center;
}
.cookie-banner .cbtn:hover {
  background: rgba(245, 242, 236, 0.08);
  border-color: rgba(245, 242, 236, 0.7);
}
.cookie-banner .cbtn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.cookie-banner .cbtn.primary {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--bg);
}
.cookie-banner .cbtn.primary:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.cookie-banner .prefs {
  display: none;
  margin: 8px 0 20px;
  padding: 16px;
  background: rgba(245, 242, 236, 0.05);
  border: 1px solid rgba(245, 242, 236, 0.15);
  border-radius: 8px;
}
.cookie-banner.expanded .prefs { display: block; }
.cookie-banner .prefs .pref {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(245, 242, 236, 0.1);
}
.cookie-banner .prefs .pref:last-child { border-bottom: none; }
.cookie-banner .prefs .pref-info { flex: 1; }
.cookie-banner .prefs .pref-name {
  font-weight: 600;
  font-size: 14px;
  margin: 0 0 4px;
  color: var(--bg);
}
.cookie-banner .prefs .pref-desc {
  font-size: 13px;
  color: rgba(245, 242, 236, 0.72);
  margin: 0;
  line-height: 1.5;
}
.cookie-banner .prefs .pref-required {
  font-size: 12px;
  color: rgba(245, 242, 236, 0.55);
  margin-top: 4px;
  font-style: italic;
}
.cookie-banner .toggle {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 14px;
  background: rgba(245, 242, 236, 0.25);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease;
}
.cookie-banner .toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg);
  transition: transform 0.2s ease;
}
.cookie-banner .toggle.on { background: var(--accent); }
.cookie-banner .toggle.on::after { transform: translateX(20px); }
.cookie-banner .toggle.locked {
  background: rgba(245, 242, 236, 0.45);
  cursor: not-allowed;
}
.cookie-banner .toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 720px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 20px 18px;
    border-radius: 10px;
  }
  .cookie-banner .head { font-size: 19px; }
  .cookie-banner .body { font-size: 13px; }
  .cookie-banner .actions { flex-direction: column; }
  .cookie-banner .cbtn {
    flex: 1 1 100%;
    width: 100%;
  }
}

/* ════════════════════════════════════════════════════════════════════════
   PROFILE BAND — Orange pill with circular photo + CTA arrow
   Sits below the "Mi hanno scelto" section in place of the trust band.
   ════════════════════════════════════════════════════════════════════════ */
.profile-band-wrap {
  padding: 56px var(--sec-pad-x);
  display: flex;
  justify-content: center;
}
.profile-band {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 999px;
  padding: 12px 28px 12px 12px;
  width: 100%;
  max-width: 760px;
  text-decoration: none;
  box-shadow: 0 18px 40px -20px rgba(232, 61, 42, 0.55);
  transition: transform .25s var(--ease-out-deep),
              box-shadow .25s var(--ease-out-deep);
}
.profile-band:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 56px -22px rgba(232, 61, 42, 0.7);
}
.profile-band .photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg);
  border: 2px solid rgba(245, 242, 236, 0.7);
}
.profile-band .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profile-band .text { flex: 1; min-width: 0; }
.profile-band .title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.05;
  color: var(--bg);
}
.profile-band .title em {
  font-style: italic;
  color: var(--bg);
}
.profile-band .sub {
  margin-top: 6px;
  font-size: 13px;
  color: rgba(245, 242, 236, 0.88);
  letter-spacing: 0.01em;
}
.profile-band .arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 242, 236, 0.15);
  color: var(--bg);
  flex-shrink: 0;
  transition: background .2s ease, transform .2s ease;
}
.profile-band:hover .arrow {
  background: rgba(245, 242, 236, 0.28);
  transform: translateX(3px);
}

@media (max-width: 600px) {
  .profile-band-wrap { padding: 32px 16px; }
  .profile-band {
    gap: 14px;
    padding: 10px 18px 10px 10px;
  }
  .profile-band .photo { width: 56px; height: 56px; border-width: 1.5px; }
  .profile-band .title { font-size: 17px; }
  .profile-band .sub { font-size: 11px; margin-top: 3px; }
  .profile-band .arrow { width: 30px; height: 30px; }
  .profile-band .arrow svg { width: 16px; height: 16px; }
}

/* ════════════════════════════════════════════════════════════════════════
   MOBILE HEADER — Floating white pill design (≤ 980px)
   Replaces the strip layout. Bar-availability is hidden and its function
   moves to the orange floating CTA badge attached to the pill.
   ════════════════════════════════════════════════════════════════════════ */
@media (max-width: 980px) {
  /* Hide the dark strip at the top of every page — replaced by floating pill */
  .bar-availability { display: none; }

  /* Header becomes a floating, fixed white pill */
  .site-header {
    position: fixed;
    top: 14px;
    left: 14px;
    right: 14px;
    background: var(--bg);
    border: 1px solid rgba(14, 14, 16, 0.06);
    border-radius: 22px;
    box-shadow:
      0 18px 40px -22px rgba(14, 14, 16, 0.32),
      0 2px 6px -2px rgba(14, 14, 16, 0.08);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid rgba(14, 14, 16, 0.06);
    z-index: 60;
  }
  .site-header .inner {
    padding: 12px 14px 12px 20px;
    gap: 12px;
  }
  /* Brand uses only the monogram on mobile so it stays compact */
  .brand .monogram { font-size: 30px; line-height: 1; }

  /* Push page content down so it doesn't slide under the pill */
  body { padding-top: 80px; }

  /* Hamburger lives inside the pill, slightly smaller */
  .nav-toggle { width: 44px; height: 44px; }

  /* Floating orange CTA — lunette (half-moon) shape that emerges from
     under the menu pill. Flat edge tucked at the bottom of the pill,
     semicircular curve bulging downward. */
  .availability-badge {
    display: flex;
    position: fixed;
    top: 76px;
    right: 60px;
    z-index: 50;
    background: var(--accent);
    color: var(--bg);
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
    width: 180px;
    height: 78px;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 11px;
    line-height: 1.3;
    padding: 12px 24px 0;
    box-shadow: 0 18px 38px -16px rgba(232, 61, 42, 0.55);
    transform-origin: top center;
    animation: badgePop 0.5s var(--ease-out-deep) 0.4s both;
  }
  .availability-badge b {
    display: block;
    font-weight: 500;
    margin-bottom: 4px;
  }
  .availability-badge u {
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    font-weight: 600;
  }
  @keyframes badgePop {
    0%   { opacity: 0; transform: scale(0.6); }
    100% { opacity: 1; transform: scale(1); }
  }

  /* Drawer: cover viewport entirely, including under the pill */
  .nav-primary {
    inset: 0;
    padding-top: 96px;       /* leave room for the floating pill */
    background: var(--bg);
    z-index: 55;             /* below the header pill so hamburger stays clickable */
  }
  /* When open, dim the badge and lift the header pill above the drawer */
  body.menu-open .availability-badge { opacity: 0; pointer-events: none; transition: opacity .2s ease; }
  body.menu-open .site-header { z-index: 70; }
}

@media (max-width: 600px) {
  .site-header { top: 10px; left: 10px; right: 10px; border-radius: 18px; }
  .site-header .inner { padding: 10px 10px 10px 16px; }
  body { padding-top: 74px; }
  .availability-badge {
    width: 150px; height: 64px;
    top: 70px; right: 28px;
    font-size: 10px;
    padding: 10px 18px 0;
  }
}

/* ── Badge is mobile-only: hidden on desktop (≥ 981px) ── */
@media (min-width: 981px) {
  .availability-badge { display: none !important; }
}

/* ── Portfolio section sits closer to the hero (no top hairline, less padding) ── */
#portfolio {
  border-top: 0;
  padding-top: 32px;
}
#portfolio .section-head { margin-bottom: 56px; }
@media (max-width: 880px) {
  #portfolio { padding-top: 24px; }
  #portfolio .section-head { margin-bottom: 40px; }
}

/* ── "Cosa è incluso" — premium editorial grid (8 cards · numbered) ── */
.section-includes {
  background: var(--bg-deep);
  border-top: 0;
  padding-top: 104px;
  padding-bottom: 120px;
  position: relative;
}
/* Hairline framing — discreet editorial cue at the section edges */
.section-includes::before,
.section-includes::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 2 * var(--sec-pad-x)), var(--container));
  height: 1px;
  background: var(--hairline);
}
.section-includes::before { top: 0; }
.section-includes::after { bottom: 0; }

.includes-head {
  max-width: 880px;
  margin: 0 auto 80px;
  text-align: center;
}
.includes-head .h2 {
  margin: 24px 0 0;
  font-weight: 400;
}

.includes-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px 8px 14px;
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-sub);
}
.includes-badge__dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.includes-badge__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.45;
  animation: includesPulseRing 2.8s ease-out infinite;
}
@keyframes includesPulseRing {
  0%   { transform: scale(1);   opacity: 0.5; }
  80%  { transform: scale(2.8); opacity: 0; }
  100% { transform: scale(2.8); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .includes-badge__dot::after { animation: none; }
}

.includes-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  counter-reset: include;
}

.include-item {
  --num-color: var(--ink-mute);
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  padding: 36px 36px 34px;
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  counter-increment: include;
  transition:
    transform .55s var(--ease-out-deep),
    box-shadow .55s var(--ease-out-deep),
    border-color .55s var(--ease-out-deep);
}
.include-item:hover {
  transform: translateY(-3px);
  border-color: var(--hairline-strong);
  box-shadow: 0 26px 44px -28px rgba(14, 14, 16, 0.24);
}

/* Numbered watermark · editorial top-right */
.include-item::before {
  content: counter(include, decimal-leading-zero);
  position: absolute;
  top: 28px;
  right: 32px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--num-color);
  opacity: 0.7;
}

/* Check icon — refined, smaller, accent */
.include-item .check {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  transition: transform .55s var(--ease-out-deep);
}
.include-item:hover .check { transform: scale(1.06); }
.include-item .check svg { display: block; }

.include-item .txt {
  min-width: 0;
  padding-right: 38px; /* clear space for the numbered watermark */
}
.include-item .nm {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.16;
  letter-spacing: -0.018em;
  margin: 0 0 10px;
  color: var(--ink);
}
.include-item .desc {
  font-size: 14.5px;
  color: var(--ink-sub);
  line-height: 1.6;
  margin: 0;
}

/* Privacy · subtle accent treatment, no full-width takeover */
.include-item--featured {
  --num-color: var(--accent);
  background:
    linear-gradient(135deg, var(--bg) 0%, rgba(232, 61, 42, 0.045) 100%);
  border-color: rgba(232, 61, 42, 0.22);
}
.include-item--featured .nm .hl {
  font-style: italic;
  color: var(--accent);
}
.featured-note {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
}

.includes-foot {
  margin: 64px 0 0;
  text-align: center;
  font-size: 14.5px;
  color: var(--ink-sub);
  font-family: var(--font-body);
}
.includes-foot .u-link { margin-left: 6px; color: var(--ink); }

@media (max-width: 760px) {
  .section-includes { padding-top: 60px; padding-bottom: 76px; }
  .includes-head { margin-bottom: 48px; }
  .includes-grid { grid-template-columns: 1fr; gap: 14px; }
  .include-item {
    padding: 26px 24px 24px;
    gap: 16px;
  }
  .include-item::before {
    top: 22px;
    right: 22px;
    font-size: 16px;
  }
  .include-item .check {
    width: 28px;
    height: 28px;
    margin-top: 5px;
  }
  .include-item .txt { padding-right: 30px; }
  .include-item .nm { font-size: 21px; }
  .include-item .desc { font-size: 14px; }
  .includes-foot { margin-top: 44px; font-size: 14px; }
}

/* ════════════════════════════════════════════════════════════════════════
   UI/UX ENHANCEMENT LAYER  ·  v2026.05.18
   Sovrascrive selettivamente i blocchi precedenti per:
   1) Accessibilità (focus rings, skip-link, touch targets, contrast)
   2) Tipografia raffinata (text-wrap, line-height, fluid hierarchy)
   3) Componenti polished (cards, FAQ, form, drawer, cookie banner)
   4) Mobile-first polish (sticky CTA, drawer backdrop, gaps, scale)
   5) Micro-interazioni (underline animation, scroll progress, transitions)
   ════════════════════════════════════════════════════════════════════════ */

/* ── 1.1  Focus rings — visibili, accent vermillion, ovunque tabbabili ── */
:where(a, button, input, select, textarea, summary, [tabindex]):focus {
  outline: none;
}
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible {
  outline-offset: 3px;
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 25%, transparent);
}
.portfolio-card:focus-visible,
.vp-card:focus-visible,
.persona-card:focus-visible,
.pp-card:focus-visible,
.process-step:focus-visible {
  outline-offset: 4px;
}

/* ── 1.2  Skip-to-main link (a11y, screen-reader friendly) ── */
.skip-to-main {
  position: fixed;
  top: -100px;
  left: 16px;
  background: var(--ink);
  color: var(--bg);
  padding: 12px 18px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.2s var(--ease-out-deep);
}
.skip-to-main:focus { top: 16px; }

/* ── 1.3  Smooth scroll su anchor + offset per pill header sticky ── */
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ── 1.4  Selection color editoriale ── */
::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

/* ── 1.5  Visually-hidden utility per labels SR ── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ════════════════════════════════════════════════════════════════════════
   2  ·  TIPOGRAFIA — text-wrap, balance, contrast leggermente piu deciso
   ════════════════════════════════════════════════════════════════════════ */
.display, .h1, .h2, .h3, h1, h2, h3 {
  text-wrap: balance;
}
p, .lead, .body {
  text-wrap: pretty;
}
/* Migliora micro-contrasto del subtesto: -saturazione, +luminanza tag */
:root {
  --ink-sub: #4D4A45;
  --ink-mute: #7B776E;
}

/* ════════════════════════════════════════════════════════════════════════
   3  ·  COMPONENTI — polish cards, FAQ, form, button hierarchy
   ════════════════════════════════════════════════════════════════════════ */

/* 3.1  Buttons — larger touch targets, better hover, soft shadow when accent */
.btn {
  min-height: 48px;
  padding: 14px 24px;
  border-radius: 8px;
  font-weight: 500;
  letter-spacing: -0.005em;
  position: relative;
  overflow: hidden;
}
.btn-primary, .btn-accent {
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset,
              0 6px 18px -10px rgba(14,14,16,0.35);
}
.btn-accent {
  box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset,
              0 10px 28px -12px color-mix(in oklab, var(--accent) 55%, transparent);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); transition-duration: 80ms; }
.btn span[aria-hidden="true"] {
  display: inline-block;
  transition: transform var(--d-fast) var(--ease-out-deep);
}
.btn:hover span[aria-hidden="true"] { transform: translateX(3px); }

/* 3.2  Portfolio cards — soft shadow, better stack on mobile, hover lift */
.portfolio-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform var(--d-fast) var(--ease-out-deep),
              box-shadow var(--d-fast) var(--ease-out-deep),
              border-color var(--d-fast) var(--ease-out-deep);
}
.portfolio-card .preview {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 16 / 10;
  background: var(--bg-deep);
}
.portfolio-card .preview .shot {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
  transition: transform 0.5s var(--ease-out-deep), filter 0.4s var(--ease-out-deep);
  filter: saturate(0.9);
}
.portfolio-card.interactive:hover {
  transform: translateY(-3px);
  border-color: var(--hairline-strong);
  box-shadow: 0 24px 40px -22px rgba(14,14,16,0.18);
}
.portfolio-card.interactive:hover .shot {
  transform: scale(1.03);
  filter: saturate(1);
}
.portfolio-card .preview .corner-label {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(14,14,16,0.85);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.portfolio-card .meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.portfolio-card .meta .nm {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.05;
}
.portfolio-card .meta .yr {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
}
.portfolio-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}
.portfolio-card .tags span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 9px;
  background: var(--bg-deep);
  color: var(--ink-sub);
  border-radius: 4px;
}

/* 3.3  Value-prop cards — softer, more spaced, hover gradient */
.vp-card {
  position: relative;
  padding: 32px;
  border-radius: 14px;
  border: 1px solid var(--hairline);
  background: var(--bg);
  overflow: hidden;
  transition: transform var(--d-fast) var(--ease-out-deep),
              border-color var(--d-fast) var(--ease-out-deep),
              background var(--d-fast) var(--ease-out-deep);
}
.vp-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, color-mix(in oklab, var(--accent) 8%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity var(--d-med) var(--ease-out-deep);
  pointer-events: none;
}
.vp-card.interactive:hover {
  transform: translateY(-3px);
  border-color: var(--hairline-strong);
}
.vp-card.interactive:hover::before { opacity: 1; }
.vp-card .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  display: block;
  margin-bottom: 18px;
}

/* 3.4  Process steps — vertical timeline aesthetic on mobile */
.process-list { gap: 8px; }
.process-step {
  border-radius: 12px;
  padding: 22px 24px;
  transition: background var(--d-fast) var(--ease-out-deep),
              transform var(--d-fast) var(--ease-out-deep);
  position: relative;
}
.process-step:hover {
  background: var(--bg-deep);
}
.process-step .n {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--accent);
}

/* 3.5  FAQ — smooth expand animation + better summary */
.faq-item {
  border-radius: 10px;
  border: 1px solid var(--hairline);
  background: var(--bg);
  margin-bottom: 8px;
  transition: border-color var(--d-fast) var(--ease-out-deep),
              background var(--d-fast) var(--ease-out-deep);
  overflow: hidden;
}
.faq-item[open] {
  border-color: var(--hairline-strong);
  background: var(--bg-deep);
}
.faq-item > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
  transition: color var(--d-fast) var(--ease-out-deep);
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary:hover { color: var(--accent); }
.faq-item > summary .plus {
  position: relative;
  width: 22px; height: 22px;
  flex-shrink: 0;
}
.faq-item > summary .plus::before,
.faq-item > summary .plus::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  background: currentColor;
  transition: transform var(--d-fast) var(--ease-out-deep);
}
.faq-item > summary .plus::before { width: 14px; height: 1.5px; transform: translate(-50%, -50%); }
.faq-item > summary .plus::after  { width: 1.5px; height: 14px; transform: translate(-50%, -50%); }
.faq-item[open] > summary .plus::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-item > .body {
  padding: 0 24px 22px;
  color: var(--ink-sub);
  line-height: 1.65;
  max-width: 70ch;
  animation: faqIn 0.35s var(--ease-out-deep) both;
}
@keyframes faqIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 3.6  Form — chips e inputs migliorati con focus chiaro */
.chip-list button {
  padding: 14px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--hairline-strong);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: all var(--d-fast) var(--ease-out-deep);
  min-height: 48px;
}
.chip-list button:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}
.chip-list button.selected {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  box-shadow: 0 8px 18px -10px rgba(14,14,16,0.4);
}
.form-fields label {
  display: block;
  margin-bottom: 18px;
}
.form-fields .lbl {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-sub);
  margin-bottom: 8px;
  font-weight: 500;
}
.form-fields .opt { color: var(--ink-mute); text-transform: none; letter-spacing: 0; }
.form-fields input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--hairline-strong);
  border-radius: 8px;
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  transition: border-color var(--d-fast) var(--ease-out-deep),
              box-shadow var(--d-fast) var(--ease-out-deep);
  min-height: 50px;
}
.form-fields input:hover {
  border-color: var(--ink);
}
.form-fields input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 18%, transparent);
  outline: none;
}

/* Progress bar steps — better visual feedback */
.form-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 32px;
}
.form-progress .seg {
  flex: 1;
  height: 4px;
  background: var(--hairline);
  border-radius: 999px;
  transition: background var(--d-med) var(--ease-out-deep);
}
.form-progress .seg.done { background: var(--ink); }
.form-progress .seg.cur {
  background: linear-gradient(to right, var(--ink) 50%, var(--hairline) 50%);
  background-size: 200% 100%;
  animation: segPulse 1.4s var(--ease-in-out) infinite alternate;
}
@keyframes segPulse {
  from { background-position: 100% 0; }
  to   { background-position: 50% 0; }
}

/* 3.7  Pricing cards — softer corners, hover micro-lift, featured glow */
.pp-card {
  position: relative;
  padding: 28px 24px;
  border-radius: 14px;
  border: 1px solid var(--hairline);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform var(--d-fast) var(--ease-out-deep),
              border-color var(--d-fast) var(--ease-out-deep),
              box-shadow var(--d-fast) var(--ease-out-deep);
}
.pp-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent),
              0 30px 60px -30px color-mix(in oklab, var(--accent) 50%, transparent);
}
.pp-card.interactive:hover {
  transform: translateY(-4px);
  border-color: var(--hairline-strong);
  box-shadow: 0 24px 44px -24px rgba(14,14,16,0.2);
}
.pp-card.featured.interactive:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent),
              0 34px 66px -28px color-mix(in oklab, var(--accent) 55%, transparent);
}
.pp-card .pick {
  margin-top: 4px;
  padding: 14px 20px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  text-align: center;
  font-weight: 500;
  font-size: 14px;
  transition: background var(--d-fast) var(--ease-out-deep), transform var(--d-fast) var(--ease-out-deep);
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pp-card .pick:hover {
  background: var(--accent);
  transform: translateY(-1px);
}
.pp-card.featured .pick { background: var(--accent); }
.pp-card.featured .pick:hover { background: var(--ink); }

/* 3.8  Persona cards — refined */
.persona-card {
  padding: 32px;
  border-radius: 14px;
  border: 1px solid var(--hairline);
  background: var(--bg);
  transition: transform var(--d-fast) var(--ease-out-deep),
              border-color var(--d-fast) var(--ease-out-deep);
  position: relative;
}
.persona-card.interactive:hover {
  transform: translateY(-3px);
  border-color: var(--hairline-strong);
}
.persona-card .label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.persona-card .pkg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 8px 14px;
  background: var(--bg-deep);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-sub);
}
.persona-card .pkg .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* ════════════════════════════════════════════════════════════════════════
   4  ·  MOBILE POLISH — drawer with backdrop, sticky CTA, gap rhythm
   ════════════════════════════════════════════════════════════════════════ */

/* 4.1  Drawer — backdrop scrim + smoother open animation */
@media (max-width: 980px) {
  .nav-primary {
    padding-top: 88px;
    gap: 0;
    background: linear-gradient(180deg, var(--bg) 60%, var(--bg-deep) 140%);
  }
  .nav-primary a {
    position: relative;
    padding: 22px 4px;
    transition: transform var(--d-fast) var(--ease-out-deep),
                color var(--d-fast) var(--ease-out-deep);
  }
  .nav-primary a:hover { transform: translateX(8px); color: var(--accent); }
  .nav-primary a::after {
    content: "→";
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%) translateX(-6px);
    opacity: 0;
    font-family: var(--font-body);
    font-size: 24px;
    transition: opacity var(--d-fast) var(--ease-out-deep), transform var(--d-fast) var(--ease-out-deep);
    color: var(--accent);
  }
  .nav-primary a:hover::after { opacity: 1; transform: translateY(-50%) translateX(0); }
  /* Staggered entry animation when drawer opens */
  .nav-primary.open a {
    animation: drawerLinkIn 0.5s var(--ease-out-deep) both;
  }
  .nav-primary.open a:nth-child(1) { animation-delay: 80ms; }
  .nav-primary.open a:nth-child(2) { animation-delay: 140ms; }
  .nav-primary.open a:nth-child(3) { animation-delay: 200ms; }
  .nav-primary.open a:nth-child(4) { animation-delay: 260ms; }
  .nav-primary.open a:nth-child(5) { animation-delay: 320ms; }
  @keyframes drawerLinkIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

/* 4.2  Sticky bottom CTA — appare in scroll dopo l'hero, mobile only */
.mobile-bottom-cta {
  display: none;
}
@media (max-width: 720px) {
  .mobile-bottom-cta {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, transparent, color-mix(in oklab, var(--bg) 88%, transparent) 40%, var(--bg) 100%);
    z-index: 55;
    align-items: center;
    gap: 10px;
    transform: translateY(110%);
    transition: transform 0.4s var(--ease-out-deep);
    pointer-events: none;
  }
  .mobile-bottom-cta.show {
    transform: translateY(0);
    pointer-events: auto;
  }
  .mobile-bottom-cta .btn {
    flex: 1;
    justify-content: center;
    min-height: 50px;
    font-size: 15px;
    padding: 14px 18px;
  }
  /* Aggiunge padding al body cosi il contenuto in fondo non viene coperto */
  body { padding-bottom: 80px; }
}

/* 4.3  Mobile section spacing — più aria + headings più grandi */
@media (max-width: 720px) {
  .section { padding: 80px 20px; }
  .h2 { font-size: clamp(36px, 9vw, 56px) !important; }
  .section-head { gap: 14px; }
  .section-head .right .lead { margin-top: 18px !important; }
}

/* 4.4  Mobile portfolio cards — keep horizontal carousel ma con padding interno + shadow */
@media (max-width: 720px) {
  .portfolio-card { padding: 16px; }
  .portfolio-card .preview { aspect-ratio: 16 / 11; }
  /* Better visible hint che ci sono più card a destra */
  .portfolio-grid {
    scroll-padding-inline: 20px;
  }
}

/* 4.5  Mobile hero — single column più pulito, hero-stack scala bene */
@media (max-width: 980px) {
  .hero .row {
    grid-template-columns: 1fr !important;
    gap: 64px !important;
  }
  .hero .visual {
    max-width: 100% !important;
    margin: 0 !important;
  }
}

/* 4.6  Mobile pricing cards — single column more breathing room */
@media (max-width: 720px) {
  .pricing-peek {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

/* ════════════════════════════════════════════════════════════════════════
   5  ·  SCROLL PROGRESS BAR — sottile in alto, accent vermillion
   ════════════════════════════════════════════════════════════════════════ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), color-mix(in oklab, var(--accent) 60%, var(--ink)));
  z-index: 70;
  transform-origin: left center;
  transition: width 80ms linear;
  pointer-events: none;
}
@media (max-width: 980px) {
  .scroll-progress { height: 2px; }
}

/* ════════════════════════════════════════════════════════════════════════
   6  ·  COOKIE BANNER — compact bottom-right on desktop, full bottom mobile
   ════════════════════════════════════════════════════════════════════════ */
.cookie-banner {
  max-width: 420px;
  left: auto;
  right: 16px;
  bottom: 16px;
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: 0 30px 60px -22px rgba(0,0,0,0.5);
}
.cookie-banner .head { font-size: 19px; }
.cookie-banner .body { font-size: 13.5px; margin-bottom: 18px; }
.cookie-banner .actions { gap: 8px; }
.cookie-banner .cbtn {
  padding: 11px 14px;
  font-size: 13px;
  min-height: 44px;
}
@media (max-width: 720px) {
  .cookie-banner {
    max-width: none;
    left: 12px;
    right: 12px;
  }
  .cookie-banner .actions { gap: 10px; }
}

/* ════════════════════════════════════════════════════════════════════════
   7  ·  MISC — divider, scroll-snap on portfolio, link underline anim
   ════════════════════════════════════════════════════════════════════════ */

/* Header brand — clean monogram hover */
.brand:hover .monogram {
  animation: monogramTilt 0.5s var(--ease-out-deep);
}
@keyframes monogramTilt {
  0%   { transform: rotate(0); }
  40%  { transform: rotate(-6deg); }
  100% { transform: rotate(0); }
}

/* Cards in dark sections inherit better */
.section[style*="bg-deep"] .portfolio-card,
.section[style*="bg-deep"] .vp-card,
.section[style*="bg-deep"] .pp-card,
.section[style*="bg-deep"] .persona-card,
.section[style*="bg-deep"] .faq-item {
  background: var(--bg);
}

/* Profile band — micro polish on accent */
.profile-band .photo img {
  transition: transform var(--d-med) var(--ease-out-deep);
}
.profile-band:hover .photo img {
  transform: scale(1.08);
}

/* Hero marquee — smoother fade edges on mobile */
@media (max-width: 720px) {
  .hero-marquee {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  }
}

/* Top-bar pulse — più morbido */
.bar-availability .pulse {
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 50%, transparent);
  animation: pulseRing 2.4s var(--ease-out-deep) infinite;
}
@keyframes pulseRing {
  0%   { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 50%, transparent); }
  70%  { box-shadow: 0 0 0 10px color-mix(in oklab, var(--accent) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 0%, transparent); }
}

/* Eyebrow line — l'orizzontale ora ha micro-animazione di disegno */
.eyebrow-line .rule {
  display: inline-block;
  width: 48px;
  height: 1px;
  background: var(--accent);
  margin-right: 14px;
  vertical-align: middle;
  transform-origin: left center;
  animation: ruleDraw 0.6s var(--ease-out-deep) both;
}
@keyframes ruleDraw {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
  .eyebrow-line .rule { animation: none; }
}

/* Final-cta — gradient più ricco e cta button più prominent */
.final-cta {
  background: linear-gradient(180deg, var(--ink) 0%, #1A1A1F 100%);
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, color-mix(in oklab, var(--accent) 12%, transparent), transparent 50%);
  pointer-events: none;
}

/* ════════════════════════════════════════════════════════════════════════
   MOBILE UI/UX REFINEMENT PASS — index.html (≤ 880px)
   Convert key sections to horizontal scroll-snap carousels, redesign
   the comparison table as verdict cards, and add small polish details.
   ════════════════════════════════════════════════════════════════════════ */

/* ── shared carousel scaffolding tokens ── */
:root {
  --carousel-card-w: 80%;
  --carousel-card-max: 360px;
  --carousel-gap: 14px;
}

/* ── 06 · Pricing — horizontal snap carousel on mobile ── */
@media (max-width: 880px) {
  .pricing-peek {
    display: flex;
    flex-direction: row;
    gap: 12px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    grid-template-columns: none;
    border: 0;
    margin-left: calc(var(--sec-pad-x) * -1);
    margin-right: calc(var(--sec-pad-x) * -1);
    padding: 4px var(--sec-pad-x) 28px;
    scroll-padding-inline: var(--sec-pad-x);
  }
  .pricing-peek::-webkit-scrollbar { display: none; }
  .pricing-peek > .pp-card {
    flex: 0 0 78%;
    max-width: 320px;
    min-width: 260px;
    min-height: 0;
    scroll-snap-align: start;
    border: 1px solid var(--hairline);
    border-right: 1px solid var(--hairline);
    border-radius: 18px;
    padding: 32px 26px 28px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.03);
  }
  .pricing-peek > .pp-card.featured {
    border-color: var(--ink);
    box-shadow: 0 8px 28px rgba(0,0,0,0.18);
  }
  .pricing-peek::after {
    content: "";
    flex: 0 0 calc(var(--sec-pad-x) - 12px);
  }
  /* The rotated wordmark doesn't translate to carousel cards */
  .pricing-peek .pp-card .rotated-wm { display: none; }
  /* Reset the nth-child(2) right-border override from the old grid layout */
  .pricing-peek > .pp-card:nth-child(2) { border-right: 1px solid var(--hairline); }
  .pricing-peek > .pp-card.featured:nth-child(2) { border-right-color: var(--ink); }
}

/* ── 05 · Personas — horizontal snap carousel on mobile ── */
@media (max-width: 880px) {
  .personas {
    display: flex;
    flex-direction: row;
    gap: var(--carousel-gap);
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    grid-template-columns: none;
    border-top: 0;
    margin-left: calc(var(--sec-pad-x) * -1);
    margin-right: calc(var(--sec-pad-x) * -1);
    padding: 4px var(--sec-pad-x) 28px;
    scroll-padding-inline: var(--sec-pad-x);
  }
  .personas::-webkit-scrollbar { display: none; }
  .personas > .persona-card {
    flex: 0 0 82%;
    max-width: 360px;
    scroll-snap-align: start;
    border: 1px solid var(--hairline);
    border-right: 1px solid var(--hairline);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 2px 14px rgba(0,0,0,0.03);
  }
  .personas::after {
    content: "";
    flex: 0 0 calc(var(--sec-pad-x) - var(--carousel-gap));
  }
}

/* ── 03 · Value prop — horizontal snap carousel on mobile ── */
@media (max-width: 880px) {
  .valueprop-grid {
    display: flex;
    flex-direction: row;
    gap: var(--carousel-gap);
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    grid-template-columns: none;
    border-top: 0;
    border-bottom: 0;
    margin-left: calc(var(--sec-pad-x) * -1);
    margin-right: calc(var(--sec-pad-x) * -1);
    padding: 4px var(--sec-pad-x) 28px;
    scroll-padding-inline: var(--sec-pad-x);
  }
  .valueprop-grid::-webkit-scrollbar { display: none; }
  .valueprop-grid > .vp-card {
    flex: 0 0 78%;
    max-width: 320px;
    scroll-snap-align: start;
    border: 1px solid var(--hairline);
    border-radius: 18px;
    padding: 30px 24px 28px;
    background: var(--bg);
    box-shadow: 0 2px 14px rgba(0,0,0,0.03);
  }
  .valueprop-grid::after {
    content: "";
    flex: 0 0 calc(var(--sec-pad-x) - var(--carousel-gap));
  }
}

/* ── 04 · Mocks grid — horizontal snap carousel on mobile ── */
@media (max-width: 880px) {
  .mocks-grid {
    display: flex;
    flex-direction: row;
    gap: var(--carousel-gap);
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    grid-template-columns: none;
    margin-left: calc(var(--sec-pad-x) * -1);
    margin-right: calc(var(--sec-pad-x) * -1);
    padding: 4px var(--sec-pad-x) 28px;
    scroll-padding-inline: var(--sec-pad-x);
    align-items: stretch;
  }
  .mocks-grid::-webkit-scrollbar { display: none; }
  .mocks-grid > .mock-block {
    flex: 0 0 82%;
    max-width: 360px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
  }
  .mocks-grid > .mock-block .mock-frame {
    flex: 1;
  }
  .mocks-grid::after {
    content: "";
    flex: 0 0 calc(var(--sec-pad-x) - var(--carousel-gap));
  }
}

/* ── 08 · Process — horizontal timeline scroll on mobile ── */
@media (max-width: 880px) {
  .process-list {
    display: flex;
    flex-direction: row;
    gap: var(--carousel-gap);
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    grid-template-columns: none;
    border-top: 0;
    margin-left: calc(var(--sec-pad-x) * -1);
    margin-right: calc(var(--sec-pad-x) * -1);
    padding: 4px var(--sec-pad-x) 28px;
    scroll-padding-inline: var(--sec-pad-x);
    position: relative;
  }
  .process-list::-webkit-scrollbar { display: none; }
  .process-list > .process-step {
    flex: 0 0 78%;
    max-width: 320px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px 24px 22px;
    border: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
    border-radius: 18px;
    background: var(--bg);
    box-shadow: 0 2px 14px rgba(0,0,0,0.03);
  }
  .process-list > .process-step .n {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 40px;
    line-height: 1;
    color: var(--accent);
    letter-spacing: -0.03em;
  }
  .process-list > .process-step .nm {
    font-size: 24px;
    line-height: 1.1;
  }
  .process-list > .process-step .body {
    font-size: 14px;
    line-height: 1.55;
    color: var(--ink-sub);
  }
  .process-list > .process-step .time {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-mute);
    text-align: left;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--hairline);
  }
  .process-list::after {
    content: "";
    flex: 0 0 calc(var(--sec-pad-x) - var(--carousel-gap));
  }
}

/* ── 07 · Compare table — verdict-card layout on mobile ── */
@media (max-width: 880px) {
  .compare-table {
    border-top: 0;
    border-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .compare-table .row.header { display: none; }
  .compare-table .row {
    display: flex;
    flex-direction: column;
    padding: 22px 22px 8px;
    border: 1px solid var(--hairline);
    border-radius: 18px;
    background: var(--bg);
    gap: 0;
    box-shadow: 0 2px 14px rgba(0,0,0,0.03);
  }
  .compare-table .row .axis {
    order: -2;
    font-size: 22px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--hairline);
  }
  .compare-table .row .cell {
    display: grid;
    grid-template-columns: 22px 1fr;
    grid-template-rows: auto auto;
    column-gap: 8px;
    row-gap: 4px;
    padding: 12px 0;
    border-bottom: 1px solid var(--hairline);
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink-sub);
  }
  .compare-table .row .cell:last-child { border-bottom: 0; }
  .compare-table .row .cell::after {
    content: attr(data-col);
    grid-column: 1 / -1;
    grid-row: 1;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-mute);
    padding-left: 0;
    margin-bottom: 0;
  }
  .compare-table .row .cell::before {
    position: static;
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    line-height: 1.5;
    font-size: 15px;
    top: auto;
    left: auto;
  }
  /* Pull the "us" verdict to the top of each card and emphasise it */
  .compare-table .row .cell.us {
    order: -1;
    background: linear-gradient(135deg, color-mix(in oklab, var(--accent) 9%, transparent), color-mix(in oklab, var(--accent) 0%, transparent));
    border: 1px solid color-mix(in oklab, var(--accent) 22%, transparent);
    border-radius: 14px;
    padding: 14px 14px;
    margin-bottom: 10px;
    color: var(--ink);
    font-weight: 500;
  }
  .compare-table .row .cell.us::after {
    color: var(--accent);
    font-weight: 600;
  }
  .compare-table .row .cell.us::before {
    color: var(--accent);
  }
}

/* ── 04 · Constellation list — 2-column grid on tablet + small visual lift ── */
@media (min-width: 480px) and (max-width: 880px) {
  .constellation-list {
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
    border-top: 1px solid color-mix(in oklab, white 14%, transparent);
  }
  .constellation-list .row {
    border-bottom: 1px solid color-mix(in oklab, white 10%, transparent);
  }
}
@media (max-width: 880px) {
  /* Soften the contrast — only when the section background is actually dark */
  [data-dark="1"] .constellation-list .row .nm { color: var(--bg); }
  [data-dark="1"] .constellation-list .row .desc { color: rgba(245, 242, 236, 0.65); }
  [data-dark="1"] .constellation-list .row .n { color: rgba(245, 242, 236, 0.45); }
}

/* ── Carousel scroll affordance: fade the right edge to hint at more content ── */
@media (max-width: 880px) {
  .pricing-peek,
  .personas,
  .valueprop-grid,
  .mocks-grid,
  .process-list {
    -webkit-mask-image: linear-gradient(to right,
      transparent 0,
      black 14px,
      black calc(100% - 36px),
      transparent 100%);
    mask-image: linear-gradient(to right,
      transparent 0,
      black 14px,
      black calc(100% - 36px),
      transparent 100%);
  }
}

/* ── Section-head + eyebrow tightening on small phones ── */
@media (max-width: 600px) {
  .section-head { gap: 12px; margin-bottom: 32px; }
  .section-head .eyebrow { font-size: 10px; letter-spacing: 0.08em; }
  /* I <br> editoriali dei titoli, invece di sparire (e incollare le parole:
     "chiusi.Prezzo"), diventano uno spazio: la frase resta leggibile e va a capo da sola. */
  .section-head .h2 br { display: inline-block; width: 0.3em; content: ""; }
  .section-head .lead { font-size: 16px; line-height: 1.55; }
}

/* ── Profile band on mobile — better stacking + larger photo ── */
@media (max-width: 600px) {
  .profile-band-wrap { padding-left: var(--sec-pad-x); padding-right: var(--sec-pad-x); }
  .profile-band .text .title { font-size: clamp(28px, 8vw, 40px); line-height: 1.1; }
  .profile-band .text .sub { font-size: 12px; }
}

/* ── Final CTA — micro polish on mobile ── */
@media (max-width: 600px) {
  .final-cta .marquee {
    font-size: clamp(38px, 11vw, 64px);
    line-height: 1.05;
  }
}

/* ── Hero — soft reveal of the visual on smaller phones (anti-cramped) ── */
@media (max-width: 600px) {
  .hero .row { gap: 32px; }
  .hero .display { font-size: clamp(40px, 12vw, 64px); line-height: 1.04; }
  .hero .sub { font-size: 16px; }
}

/* ── Respect reduced motion: smooth-scroll only when user accepts motion ── */
@media (prefers-reduced-motion: no-preference) and (max-width: 880px) {
  .pricing-peek, .personas, .valueprop-grid, .mocks-grid, .process-list {
    scroll-behavior: smooth;
  }
}



/* ═══════════════════════════════════════════════════════════════
   AI service area — additions
   Same accent + editorial tone; distinct visual signature via
   monospace illustrations & section labels.
   ═══════════════════════════════════════════════════════════════ */

/* ── Top navigation: room for two service items ── */
.nav-primary a.is-service {
  position: relative;
  font-weight: 500;
  color: var(--ink);
}
.nav-primary a.is-service::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--ink);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform var(--d-fast) var(--ease-out-deep);
}
.nav-primary a.is-service:hover::after,
.nav-primary a.is-service[aria-current="page"]::after { transform: scaleX(1); }
.nav-primary a.is-service[data-area="ai"]::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--accent);
  margin-right: 8px;
  vertical-align: 1px;
}
.nav-primary a.is-service[data-area="web"]::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border: 1px solid var(--ink);
  margin-right: 8px;
  vertical-align: 1px;
}

/* ── Area badge: small inline tag used to mark a section's "owner" ── */
.area-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 10px;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-sub);
  background: var(--bg);
}
.area-badge::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ink);
  flex: 0 0 auto;
}
.area-badge[data-area="ai"]::before { background: var(--accent); }
.area-badge[data-area="web"]::before { background: var(--ink); }
.area-badge .num {
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.06em;
}

/* ── Dual-hero: equal-weight presentation of both areas ── */
.dual-hero {
  padding: clamp(72px, 9vh, 110px) var(--sec-pad-x);
  border-top: 1px solid var(--hairline);
}
.dual-hero .container { max-width: var(--container); margin: 0 auto; }
.dual-hero .dh-head {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--gutter);
  align-items: end;
  margin-bottom: 64px;
}
@media (max-width: 880px) { .dual-hero .dh-head { grid-template-columns: 1fr; } }
.dual-hero .dh-head .eyebrow-line {
  display: flex; align-items: center; gap: 14px;
}
.dual-hero .dh-head .eyebrow-line .rule {
  flex: 0 0 48px; height: 1px; background: var(--ink);
}
.dual-hero h2 {
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 88px);
  letter-spacing: -0.025em;
  line-height: 1.0;
  margin: 0;
  font-weight: 400;
  text-wrap: balance;
}
.dual-hero h2 em { font-style: italic; color: var(--accent); font-weight: 300; }
.dual-hero h2 .stack {
  display: block;
  font-size: 0.5em;
  color: var(--ink-mute);
  font-style: italic;
  letter-spacing: -0.01em;
  margin-top: 8px;
  line-height: 1.2;
}

.area-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
@media (max-width: 880px) { .area-cards { grid-template-columns: 1fr; } }
.area-card {
  position: relative;
  padding: 56px 44px 48px;
  border-right: 1px solid var(--hairline);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 28px;
  transition: background var(--d-med) var(--ease-out-deep);
}
.area-card:last-child { border-right: 0; }
@media (max-width: 880px) {
  .area-card { border-right: 0; border-bottom: 1px solid var(--hairline); padding: 44px 28px; }
  .area-card:last-child { border-bottom: 0; }
}
.area-card:hover { background: var(--bg-deep); }
.area-card .area-head {
  display: flex; align-items: center; justify-content: space-between;
}
.area-card .area-mark {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.area-card .area-mark .glyph {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--ink);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--ink);
  line-height: 1;
}
.area-card[data-area="ai"] .area-mark .glyph {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.area-card h3 {
  font-family: var(--font-display);
  font-size: clamp(38px, 4.6vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0;
  font-weight: 400;
  text-wrap: balance;
}
.area-card h3 em { font-style: italic; color: var(--accent); font-weight: 300; }
.area-card .area-lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-sub);
  margin: 0;
  max-width: 38ch;
}
.area-card .area-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.area-card .area-list li {
  padding: 12px 0;
  border-top: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: baseline;
  font-size: 15px;
  color: var(--ink-sub);
}
.area-card .area-list li:last-child { border-bottom: 1px solid var(--hairline); }
.area-card .area-list li .ord {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}
.area-card .area-list li strong {
  color: var(--ink);
  font-weight: 500;
}
.area-card .area-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  padding-top: 8px;
}
.area-card .area-pricing {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.area-card .area-pricing b {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-transform: none;
  font-weight: 400;
  margin-top: 2px;
}
.area-card .area-go {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--bg);
  transition: background var(--d-fast) var(--ease-out-deep), color var(--d-fast);
}
.area-card[data-area="ai"] .area-go { background: var(--accent); color: var(--accent-ink); }
.area-card .area-go:hover { background: var(--accent); color: var(--accent-ink); }
.area-card[data-area="ai"] .area-go:hover { background: var(--ink); color: var(--bg); }

/* watermark numeral, like personas */
.area-card .ord-big {
  position: absolute;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  top: -0.12em;
  right: 0.25em;
  font-size: 18vw;
  color: var(--hairline);
  line-height: 0.8;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.06em;
}
@media (max-width: 880px) { .area-card .ord-big { font-size: 30vw; } }

/* ── Skill manifest: signature AI illustration ── */
.skill-manifest {
  background: var(--ink);
  color: var(--bg);
  padding: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.55;
  border: 1px solid var(--ink);
  position: relative;
  overflow: hidden;
}
.skill-manifest .sm-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(245, 242, 236, 0.12);
  background: rgba(255, 255, 255, 0.03);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 242, 236, 0.55);
}
.skill-manifest .sm-bar .dots {
  display: inline-flex; gap: 6px;
}
.skill-manifest .sm-bar .dots i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(245, 242, 236, 0.18);
  display: inline-block;
}
.skill-manifest .sm-bar .dots i:first-child { background: var(--accent); }
.skill-manifest .sm-body {
  padding: 20px 22px 24px;
}
.skill-manifest .sm-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 2px 0;
}
.skill-manifest .sm-row .ln {
  color: rgba(245, 242, 236, 0.35);
  text-align: right;
  user-select: none;
}
.skill-manifest .sm-row .tk {
  color: rgba(245, 242, 236, 0.92);
}
.skill-manifest .sm-row .tk .key { color: var(--accent); }
.skill-manifest .sm-row .tk .str { color: rgba(245, 242, 236, 0.92); }
.skill-manifest .sm-row .tk .com { color: rgba(245, 242, 236, 0.4); font-style: italic; }
.skill-manifest .sm-row .tk .num { color: rgba(245, 242, 236, 0.7); }
.skill-manifest .sm-row .tk .ind { padding-left: 18px; display: inline-block; }
.skill-manifest .sm-row .tk .ind2 { padding-left: 36px; display: inline-block; }

/* Process diagram for AI: agents + verification */
.agent-flow {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  position: relative;
  margin-top: 32px;
}
@media (max-width: 880px) { .agent-flow { grid-template-columns: 1fr; } }
.agent-node {
  position: relative;
  padding: 32px 24px 28px;
  border-right: 1px solid var(--hairline);
  background: var(--bg);
}
.agent-node:last-child { border-right: 0; }
@media (max-width: 880px) {
  .agent-node { border-right: 0; border-bottom: 1px solid var(--hairline); }
  .agent-node:last-child { border-bottom: 0; }
}
.agent-node .pill {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 18px;
  display: inline-block;
}
.agent-node .role {
  font-family: var(--font-display);
  font-size: 26px;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 14px;
}
.agent-node .role .stage {
  display: inline-block;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--accent);
  padding-right: 8px;
  vertical-align: 3px;
}
.agent-node p {
  font-size: 14px;
  color: var(--ink-sub);
  margin: 0;
  line-height: 1.55;
}
.agent-node .meta {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.agent-node .meta b { color: var(--accent); font-weight: 600; }

/* AI value props (mirrors valueprop-grid but with mono-forward signature) */
.ai-bullets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
@media (max-width: 980px) { .ai-bullets { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .ai-bullets { grid-template-columns: 1fr; } }
.ai-bullet {
  padding: 36px 28px 32px;
  border-right: 1px solid var(--hairline);
  position: relative;
}
.ai-bullet:last-child { border-right: 0; }
@media (max-width: 980px) {
  .ai-bullet { border-bottom: 1px solid var(--hairline); }
  .ai-bullet:nth-child(2n) { border-right: 0; }
  .ai-bullet:nth-last-child(-n+1) { border-bottom: 0; }
}
.ai-bullet .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
  font-weight: 500;
}
.ai-bullet h4 {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 14px;
  font-weight: 400;
}
.ai-bullet h4 em { font-style: italic; color: var(--accent); }
.ai-bullet p {
  font-size: 14.5px;
  color: var(--ink-sub);
  line-height: 1.55;
  margin: 0;
  max-width: 34ch;
}

/* AI deliverables list (with monospace bullets) */
.ai-deliverables {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 var(--gutter);
  margin-top: 32px;
}
@media (max-width: 700px) { .ai-deliverables { grid-template-columns: 1fr; } }
.ai-deliverables .item {
  padding: 18px 0;
  border-top: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: baseline;
}
.ai-deliverables .item:nth-last-child(-n+2) { border-bottom: 0; }
.ai-deliverables .item .idx {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.ai-deliverables .item .nm {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 6px;
  font-weight: 400;
}
.ai-deliverables .item .nm em { font-style: italic; color: var(--accent); }
.ai-deliverables .item p {
  font-size: 14px;
  color: var(--ink-sub);
  line-height: 1.55;
  margin: 0;
  max-width: 44ch;
}

/* Stat strip — used on AI hero + chi sono */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  margin-top: 64px;
}
@media (max-width: 880px) { .stat-strip { grid-template-columns: 1fr 1fr; } }
.stat-strip .stat {
  padding: 28px 20px;
  border-right: 1px solid var(--hairline);
}
.stat-strip .stat:last-child { border-right: 0; }
@media (max-width: 880px) {
  .stat-strip .stat { border-bottom: 1px solid var(--hairline); }
  .stat-strip .stat:nth-child(2n) { border-right: 0; }
  .stat-strip .stat:nth-last-child(-n+2) { border-bottom: 0; }
}
.stat-strip .stat .v {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: -0.035em;
  line-height: 1;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 10px;
}
.stat-strip .stat .v em { font-style: italic; color: var(--accent); font-weight: 300; }
.stat-strip .stat .lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-sub);
  max-width: 22ch;
  line-height: 1.4;
}

/* Heading variant: include data-area for sub-coloring of brand */
.brand .word .area-stack {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-left: 6px;
}

/* Reduce nav gap so 6 items fit comfortably on desktop */
@media (min-width: 981px) and (max-width: 1180px) {
  .nav-primary { gap: 18px; }
  .site-header .inner { gap: 18px; }
  .brand .word { font-size: 12px; }
}

/* "Ecosystem" diagram: client at center, two services orbit */
.ecosystem {
  position: relative;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--hairline);
  background:
    radial-gradient(circle at 50% 50%, var(--bg) 0%, var(--bg-deep) 100%);
}
.ecosystem .center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  padding: 14px 20px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(20px, 2.8vw, 32px);
  letter-spacing: -0.02em;
  line-height: 1;
  z-index: 3;
  white-space: nowrap;
}
.ecosystem .center .sub {
  display: block;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 242, 236, 0.65);
  margin-top: 6px;
}
.ecosystem .planet {
  position: absolute;
  text-align: center;
  z-index: 2;
}
.ecosystem .planet .ring {
  width: clamp(90px, 14vw, 140px);
  height: clamp(90px, 14vw, 140px);
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  background: var(--bg);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: background var(--d-fast) var(--ease-out-deep), color var(--d-fast);
}
.ecosystem .planet[data-area="ai"] .ring {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.ecosystem .planet:hover .ring { transform: scale(1.04); }
.ecosystem .planet .nm {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-sub);
}
.ecosystem .planet.web { top: 50%; left: 14%; transform: translateY(-50%); }
.ecosystem .planet.ai  { top: 50%; right: 14%; transform: translateY(-50%); }
.ecosystem .moon {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
  background: var(--bg);
  padding: 4px 10px;
  border: 1px solid var(--hairline);
  white-space: nowrap;
}
.ecosystem .moon.m1 { top: 10%; left: 32%; }
.ecosystem .moon.m2 { top: 16%; right: 32%; }
.ecosystem .moon.m3 { bottom: 12%; left: 28%; }
.ecosystem .moon.m4 { bottom: 14%; right: 30%; }
.ecosystem svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
}
@media (max-width: 700px) {
  .ecosystem {
    aspect-ratio: auto;
    padding: 48px 16px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  .ecosystem .planet, .ecosystem .center, .ecosystem .moon {
    position: static;
    transform: none;
  }
  .ecosystem .moon { display: inline-block; }
  .ecosystem svg { display: none; }
  .ecosystem .center { display: inline-block; margin: 0 auto; }
}



/* ═══════════════════════════════════════════════════════════════
   AI ACCENT — secondary ink-blue. "Mondo diverso, stessa casa."
   Applied by scoping --accent within [data-area-theme="ai"], so every
   existing accent-driven component (buttons, badges, rules, em text)
   recolors automatically without per-element overrides.
   ═══════════════════════════════════════════════════════════════ */
:root {
  --accent-ai: #26395E;        /* deep ink blue */
  --accent-ai-ink: #F5F2EC;    /* cream text on the blue fill */
  --accent-ai-soft: #E8ECF3;   /* faint blue tint for backgrounds */
  --accent-ai-line: rgba(38, 57, 94, 0.22);
}
[data-dark="1"] {
  --accent-ai: #6E89C4;
  --accent-ai-ink: #0E0E10;
  --accent-ai-soft: #1A2030;
  --accent-ai-line: rgba(110, 137, 196, 0.3);
}
[data-area-theme="ai"] {
  --accent: var(--accent-ai);
  --accent-ink: var(--accent-ai-ink);
}

/* AI badge dot already keyed to data-area; ensure ai badge uses blue dot
   even outside a themed wrapper */
.area-badge[data-area="ai"]::before { background: var(--accent-ai); }
.nav-primary a.is-service[data-area="ai"]::before { background: var(--accent-ai); }

/* ── PORTE: the two equal-weight gateways on the home ── */
.porte-section {
  padding: clamp(64px, 8vh, 104px) var(--sec-pad-x);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--ink);
}
.porte-section .container { max-width: var(--container); margin: 0 auto; }
.porte-head {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--gutter);
  align-items: end;
  margin-bottom: 48px;
}
@media (max-width: 880px) { .porte-head { grid-template-columns: 1fr; gap: 20px; } }
.porte-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 4.4vw, 60px);
  letter-spacing: -0.025em;
  line-height: 1.04;
  margin: 0;
  text-wrap: balance;
}
.porte-head .lead { margin: 0; }

.porte {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
}
@media (max-width: 880px) { .porte { grid-template-columns: 1fr; } }

.porta {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  padding: 40px 40px 32px;
  border: 1px solid var(--ink);
  background: var(--bg);
  overflow: hidden;
  transition: transform var(--d-med) var(--ease-out-deep), box-shadow var(--d-med) var(--ease-out-deep), background var(--d-med);
  isolation: isolate;
}
.porta::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--d-med) var(--ease-out-deep);
}
.porta[data-area="ai"] { --accent: var(--accent-ai); --accent-ink: var(--accent-ai-ink); }
.porta:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -32px rgba(14,14,16,0.45);
  background: var(--bg-deep);
}
.porta:hover::after { transform: scaleX(1); }
.porta .porta-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px;
}
.porta .glyph {
  width: 46px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--ink);
  font-family: var(--font-display); font-style: italic; font-size: 24px;
  line-height: 1; color: var(--ink);
}
.porta[data-area="ai"] .glyph { background: var(--accent-ai); border-color: var(--accent-ai); color: var(--accent-ai-ink); }
.porta[data-area="web"] .glyph { background: var(--ink); color: var(--bg); }
.porta .kicker {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-mute);
}
.porta h3 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(32px, 3.6vw, 46px); letter-spacing: -0.025em;
  line-height: 1.02; margin: 0 0 16px; text-wrap: balance;
}
.porta h3 em { font-style: italic; color: var(--accent); }
.porta .porta-lede {
  font-size: 16px; color: var(--ink-sub); line-height: 1.55; margin: 0 0 24px; max-width: 40ch;
}
.porta .porta-points {
  list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 0;
}
.porta .porta-points li {
  font-size: 14px; color: var(--ink-sub);
  padding: 11px 0; border-top: 1px solid var(--hairline);
  display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: baseline;
}
.porta .porta-points li::before {
  content: ""; width: 6px; height: 6px; margin-top: 7px;
  background: var(--accent); display: inline-block;
}
.porta .porta-cta {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink);
  padding-top: 20px; border-top: 1px solid var(--hairline-strong);
}
.porta .porta-cta .arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  transition: transform var(--d-fast) var(--ease-out-deep);
}
.porta:hover .porta-cta .arrow { transform: translateX(4px); }
.porta .ord-big {
  position: absolute; top: -0.16em; right: 0.14em;
  font-family: var(--font-display); font-style: italic; font-weight: 300;
  font-size: 16vw; color: var(--hairline); line-height: 0.8;
  pointer-events: none; user-select: none; letter-spacing: -0.06em; z-index: -1;
}
@media (max-width: 880px) { .porta { min-height: 0; } .porta .ord-big { font-size: 34vw; } }

/* ── CATEGORY RAIL: "Per chi" chips (Studi legali · Commercialisti · …) ── */
.category-rail {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.category-chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 16px; border: 1px solid var(--hairline-strong);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em;
  color: var(--ink); background: var(--bg);
  transition: background var(--d-fast) var(--ease-out-deep), color var(--d-fast), border-color var(--d-fast);
}
.category-chip::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); flex: 0 0 auto;
}
a.category-chip:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
a.category-chip:hover::before { background: var(--accent-ink); }

/* ── COMPLIANCE SEAL: co-firma Coccolo + norme ── */
.compliance-seal {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0;
  border: 1px solid var(--ink);
  background: var(--bg);
  overflow: hidden;
}
@media (max-width: 820px) { .compliance-seal { grid-template-columns: 1fr; } }
.compliance-seal .cs-main {
  padding: 40px 40px 36px;
  border-right: 1px solid var(--hairline);
}
@media (max-width: 820px) { .compliance-seal .cs-main { border-right: 0; border-bottom: 1px solid var(--hairline); } }
.compliance-seal .cs-kicker {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 18px; display: block;
}
.compliance-seal h3 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(26px, 3vw, 38px); letter-spacing: -0.02em; line-height: 1.08;
  margin: 0 0 14px;
}
.compliance-seal h3 em { font-style: italic; color: var(--accent); }
.compliance-seal .cs-main p { font-size: 15px; color: var(--ink-sub); line-height: 1.6; margin: 0; max-width: 46ch; }
.compliance-seal .cs-norme {
  padding: 40px; background: var(--bg-deep);
  display: flex; flex-direction: column; gap: 0;
}
.compliance-seal .cs-norme .nm {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-mute); margin-bottom: 18px;
}
.compliance-seal .cs-norme ul { list-style: none; margin: 0; padding: 0; }
.compliance-seal .cs-norme li {
  padding: 13px 0; border-top: 1px solid var(--hairline);
  font-size: 14px; color: var(--ink); display: grid;
  grid-template-columns: 1fr auto; gap: 10px; align-items: baseline;
}
.compliance-seal .cs-norme li:first-child { border-top: 0; }
.compliance-seal .cs-norme li .tag {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.04em;
  color: var(--accent);
}
.cofirma {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 24px;
  padding: 12px 16px; border: 1px solid var(--accent-ai-line); background: var(--accent-ai-soft);
}
.cofirma .seal {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-ai); color: var(--accent-ai-ink);
  font-family: var(--font-display); font-style: italic; font-size: 16px; flex: 0 0 auto;
}
.cofirma .cf-txt { font-size: 13px; line-height: 1.4; color: var(--ink); }
.cofirma .cf-txt b { font-weight: 600; }
.cofirma .cf-txt span { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-mute); margin-top: 2px; }

/* ── BEFORE / AFTER block (prima · dopo) ── */
.beforeafter {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
}
@media (max-width: 760px) { .beforeafter { grid-template-columns: 1fr; } }
.beforeafter .col { padding: 36px 32px 32px; }
.beforeafter .col.before { background: var(--bg); border-right: 1px solid var(--hairline); }
.beforeafter .col.after { background: var(--accent-ai-soft); }
@media (max-width: 760px) { .beforeafter .col.before { border-right: 0; border-bottom: 1px solid var(--hairline); } }
.beforeafter .col .lbl {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 20px; display: inline-block;
}
.beforeafter .col.before .lbl { color: var(--ink-mute); }
.beforeafter .col.after .lbl { color: var(--accent-ai); }
.beforeafter .col ul { list-style: none; margin: 0; padding: 0; }
.beforeafter .col li {
  padding: 12px 0; border-top: 1px solid var(--hairline);
  font-size: 15px; line-height: 1.5; color: var(--ink-sub);
  display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: baseline;
}
.beforeafter .col.before li .mk { color: var(--ink-mute); }
.beforeafter .col.after li { color: var(--ink); }
.beforeafter .col.after li .mk { color: var(--accent-ai); font-weight: 600; }

/* ── INTENT SWITCH (contatti: sito | AI) ── */
.intent-switch {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 1px solid var(--ink); margin-bottom: 40px;
}
@media (max-width: 620px) { .intent-switch { grid-template-columns: 1fr; } }
.intent-option {
  appearance: none; -webkit-appearance: none;
  background: var(--bg); border: 0; cursor: pointer; text-align: left;
  padding: 28px 28px 26px; font-family: inherit;
  border-right: 1px solid var(--hairline);
  transition: background var(--d-fast) var(--ease-out-deep);
  position: relative;
}
.intent-option:last-child { border-right: 0; }
@media (max-width: 620px) {
  .intent-option { border-right: 0; border-bottom: 1px solid var(--hairline); }
  .intent-option:last-child { border-bottom: 0; }
}
.intent-option:hover { background: var(--bg-deep); }
.intent-option .io-kicker {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-mute); display: block; margin-bottom: 12px;
}
.intent-option .io-title {
  font-family: var(--font-display); font-weight: 400; font-style: italic;
  font-size: 26px; letter-spacing: -0.02em; line-height: 1.05; color: var(--ink); margin-bottom: 8px;
}
.intent-option .io-sub { font-size: 13px; color: var(--ink-sub); line-height: 1.5; }
.intent-option[aria-pressed="true"] { background: var(--ink); }
.intent-option[aria-pressed="true"] .io-kicker { color: rgba(245,242,236,0.55); }
.intent-option[aria-pressed="true"] .io-title,
.intent-option[aria-pressed="true"] .io-sub { color: var(--bg); }
.intent-option[data-intent="ai"][aria-pressed="true"] { background: var(--accent-ai); }
.intent-option[data-intent="ai"][aria-pressed="true"] .io-kicker { color: rgba(245,242,236,0.7); }
.intent-option .io-check {
  position: absolute; top: 20px; right: 22px; width: 18px; height: 18px;
  border: 1px solid var(--hairline-strong); border-radius: 50%;
}
.intent-option[aria-pressed="true"] .io-check { background: var(--bg); border-color: var(--bg); }

/* page-hero recolors em under AI theme automatically (uses --accent) */


/* ═══════════════════════════════════════════════════════════════
   MOBILE HARDENING — v2 components (porte, AI teaser, compliance,
   intent switch, category rail). Reasoned for 360–430px phones.
   ═══════════════════════════════════════════════════════════════ */

/* Home AI-teaser 12-col split → clean single column with breathing room */
@media (max-width: 880px) {
  #consulenza-ai .grid-12 { gap: 36px; }
  #consulenza-ai .grid-12 > div { grid-column: 1 / -1 !important; }
}

/* Porte: tighter padding + larger tap comfort on small phones */
@media (max-width: 600px) {
  .porte-section { padding-left: var(--sec-pad-x); padding-right: var(--sec-pad-x); }
  .porta { padding: 30px 24px 26px; }
  .porta h3 { font-size: clamp(30px, 8.5vw, 40px); }
  .porta .porta-lede { font-size: 15px; }
  .porte-head h2 { font-size: clamp(30px, 9vw, 46px); }
  .stat-strip { margin-top: 40px; }
  .stat-strip .stat { padding: 22px 16px; }
}

/* Category chips: ensure ≥44px tap target on touch */
@media (max-width: 880px) {
  .category-chip { padding: 12px 16px; min-height: 44px; }
}

/* Compliance seal: comfortable padding + norme tags wrap gracefully */
@media (max-width: 600px) {
  .compliance-seal .cs-main { padding: 30px 24px 28px; }
  .compliance-seal .cs-norme { padding: 28px 24px; }
  .compliance-seal .cs-norme li { grid-template-columns: 1fr; gap: 4px; }
  .compliance-seal .cs-norme li .tag { justify-self: start; }
  .cofirma { flex-wrap: wrap; }
}

/* Before/After: tighter on small phones */
@media (max-width: 600px) {
  .beforeafter .col { padding: 28px 22px 26px; }
  .beforeafter .col li { font-size: 14px; }
}

/* Agent-flow nodes: a touch tighter when stacked */
@media (max-width: 600px) {
  .agent-node { padding: 28px 22px 26px; }
  .agent-node .role { font-size: 24px; }
}

/* AI deliverables / bullets: comfortable padding on phones */
@media (max-width: 600px) {
  .ai-deliverables .item { padding: 16px 0; grid-template-columns: 30px 1fr; gap: 12px; }
  .ai-bullet { padding: 28px 22px 26px; }
  .ai-bullet h4 { font-size: 24px; }
}

/* Intent switch: keep the radio check from crowding the kicker text */
@media (max-width: 620px) {
  .intent-option { padding: 22px 22px 20px; }
  .intent-option .io-title { font-size: 24px; }
}

/* Skill-manifest: never let a long token blow out the width on phones */
@media (max-width: 600px) {
  .skill-manifest .sm-body { padding: 16px 16px 18px; }
  .skill-manifest { font-size: 11px; }
  .skill-manifest .sm-row { gap: 8px; }
  .skill-manifest .sm-row .tk { overflow-wrap: anywhere; }
}

/* Final-CTA double buttons stack full-width & stay tappable on phones */
@media (max-width: 600px) {
  .final-cta .cta-row { flex-direction: column; align-items: stretch; }
  .final-cta .cta-row .btn { justify-content: center; }
  .hero .cta-row .btn { justify-content: center; }
}


/* ── Tariffe: matrix on desktop, stacked package cards on mobile ── */
.tariffe-cards-mobile { display: none; }
@media (max-width: 760px) {
  .tariffe-table-wrap { display: none; }
  .tariffe-cards-mobile { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: 8px; }
}


/* ── Hide the scrollbar on mobile (scroll still works) ── */
@media (max-width: 720px) {
  html, body {
    scrollbar-width: none;        /* Firefox */
    -ms-overflow-style: none;     /* legacy Edge/IE */
  }
  html::-webkit-scrollbar,
  body::-webkit-scrollbar {       /* Chrome/Safari/WebKit */
    width: 0;
    height: 0;
    display: none;
  }
}


/* ═══════════════════════════════════════════════════════════════
   UI/UX polish round — rifiniture cross-page (mobile + desktop).
   Non cambia l'estetica: corregge e leviga.
   ═══════════════════════════════════════════════════════════════ */

/* 1 · Titoli mai tagliati: una parola lunga va a capo invece di
       sforare il bordo su mobile stretto. */
.display, .h1, .h2, .h3, h1, h2, h3,
.page-hero h1, .final-cta .marquee, .hero .display {
  overflow-wrap: break-word;
}

/* 2 · Telefoni molto stretti (≤400px): titoli hero un filo più contenuti,
       così respirano e non toccano i margini. */
@media (max-width: 400px) {
  .page-hero h1 { font-size: clamp(34px, 10.5vw, 44px); }
  .hero .display { font-size: clamp(34px, 11vw, 50px); }
  .final-cta .marquee { font-size: clamp(34px, 10.5vw, 56px); }
}

/* 3 · Selezione del testo coerente con la corsia AI (ink-blue),
       come il resto del sistema "due porte". */
[data-area-theme="ai"] ::selection {
  background: var(--accent-ai);
  color: var(--accent-ai-ink);
}

/* 4 · Feedback tattile al tocco anche su card e chip (i .btn ce l'hanno già):
       solo su dispositivi touch, un micro-affondo alla pressione. */
@media (hover: none) {
  .category-chip:active,
  .porta:active,
  .pp-card:active,
  .persona-card.interactive:active,
  .portfolio-card.interactive:active,
  .u-link:active { transform: translateY(1px); }
}


/* ═══════════════════════════════════════════════════════════════
   Bold pass — componenti firma rivisti
   1) "Le due porte"   2) Tabella di confronto (desktop)
   ═══════════════════════════════════════════════════════════════ */

/* ── 1 · "Le due porte": identità di corsia più forte + hover più vivo ── */

/* lintel: barra del colore di corsia sempre in cima (web = vermiglio, ai = blu) */
.porta::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--accent);
  z-index: 2;
}

/* hover: la card si tinge appena del colore della sua corsia (non più grigio neutro) */
.porta:hover { background: color-mix(in oklab, var(--accent) 6%, var(--bg)); }

/* il grande numerale fantasma si accende nel colore della corsia all'hover */
.porta .ord-big { transition: color var(--d-med) var(--ease-out-deep); }
.porta:hover .ord-big { color: color-mix(in oklab, var(--accent) 24%, transparent); }

/* glyph: micro-rotazione all'hover, come una maniglia che reagisce */
.porta .glyph { transition: transform var(--d-fast) var(--ease-out-deep), background var(--d-fast); }
.porta:hover .glyph { transform: rotate(-6deg); }

@media (prefers-reduced-motion: reduce) {
  .porta:hover .glyph { transform: none; }
}

/* ── 2 · Tabella confronto: "La mia proposta" come corsia evidenziata (solo desktop) ── */
@media (min-width: 981px) {
  .compare-table .row .cell.us {
    background: color-mix(in oklab, var(--accent) 8%, var(--bg));
    box-shadow: inset 3px 0 0 var(--accent);
    padding: 16px 20px 16px 46px;
    margin: -16px 0;                 /* sconfina nel padding di riga: banda quasi continua */
  }
  .compare-table .row .cell.us::before { left: 22px; top: 21px; }
  .compare-table .row.header span.us {
    display: block;
    background: color-mix(in oklab, var(--accent) 8%, var(--bg));
    box-shadow: inset 3px 0 0 var(--accent);
    padding: 12px 20px;
    margin: -6px 0;
  }
}
