/* MENS9 — v3 prototipo
   Il prodotto è la vetrina: interfacce vere, costruite in codice e animate.
   Sans-serif (Geist) per il sito, serif (Cormorant) solo nel logo e nel 9.
   Nero #0D0D0D · bianco caldo #F6F3EE · oro #C9A84C usato con decisione. */

@font-face { font-family: "Geist"; src: url("/fonts/geist-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #0D0D0D;
  --surface: #161614;
  --surface-2: #1F1E1B;
  --ink: #F6F3EE;
  --muted: #A39D92;
  --gold: #C9A84C;
  --gold-hi: #DDBF66;
  --paper: #F6F3EE;
  --card: #EBE5DA;
  --paper-ink: #0D0D0D;
  --paper-muted: #5B554B;

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Cormorant Garamond", "Palatino Linotype", Palatino, Georgia, serif;

  --s-hero: clamp(46px, 6.3vw, 104px);
  --s-h2: clamp(36px, 4.4vw, 68px);
  --s-h3: 22px;
  --s-body: 18px;
  --s-small: 14px;

  --margin: clamp(18px, 3vw, 48px);
  --gap: clamp(12px, 1.4vw, 18px);
  --section: clamp(96px, 11vw, 168px);
  --radius: 22px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: var(--s-body); line-height: 1.5; letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img, svg, canvas { display: block; max-width: 100%; }
::selection { background: var(--gold); color: var(--bg); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2 { text-wrap: balance; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--margin); top: 12px; z-index: 50; background: var(--gold); color: var(--bg); padding: 10px 16px; border-radius: 999px; clip-path: inset(50%); }
.skip:focus { clip-path: none; }

/* ---------- Logo: l'unico posto del serif, insieme al 9 ---------- */
.logo { display: inline-flex; flex-direction: column; align-items: center; font-family: var(--serif); font-weight: 500; line-height: 1; text-decoration: none; }
.logo__mens { font-size: 19px; letter-spacing: .06em; }
.logo__bar { width: 34px; height: 3px; background: var(--gold); margin: 4px 0 3px; }
.logo__nine { font-size: 19px; }

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 17px/1 var(--sans); letter-spacing: -.01em; text-decoration: none;
  background: var(--gold); color: var(--bg);
  transition: background-color .35s var(--ease), transform .35s var(--ease);
}
.btn:hover { background: var(--gold-hi); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--small { min-height: 40px; padding: 0 20px; font-size: 15px; }
.btn--ink { background: var(--paper-ink); color: var(--paper); }
.btn--ink:hover { background: #2A2926; }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.textlink { font-weight: 500; text-decoration: underline; text-decoration-color: rgba(246,243,238,.35); text-underline-offset: .25em; transition: text-decoration-color .3s var(--ease), color .3s var(--ease); }
.textlink:hover { color: var(--gold-hi); text-decoration-color: var(--gold); }

/* ---------- Navigazione ---------- */
/* ---------- Navigazione in liquid glass ----------
   La barra resta fissa e il sito le scorre sotto: il vetro sfoca, satura e (su Chrome/Edge)
   piega quello che ha dietro verso i bordi, come una lente. Sopra le sezioni chiare passa al vetro chiaro. */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--margin); pointer-events: none; }
.nav > * { pointer-events: auto; }
.glass {
  --tint: rgba(24, 23, 21, .46); --dim: .62; --rim: rgba(255, 255, 255, .34); --rim-soft: rgba(255, 255, 255, .1); --hl: rgba(255, 255, 255, .16);
  position: relative; isolation: isolate; border-radius: 999px;
  background: var(--tint);
  -webkit-backdrop-filter: blur(12px) saturate(185%) brightness(var(--dim));
  backdrop-filter: blur(12px) saturate(185%) brightness(var(--dim));
  box-shadow:
    inset 0 1px 0 var(--rim),
    inset 0 -1px 0 var(--rim-soft),
    inset 0 0 0 1px var(--rim-soft),
    inset 0 0 18px rgba(255, 255, 255, .05),
    0 10px 30px -10px rgba(0, 0, 0, .45);
  transition: background-color .5s var(--ease), color .5s var(--ease), box-shadow .5s var(--ease);
}
.glass.is-lens { -webkit-backdrop-filter: var(--lens) blur(5px) saturate(185%) brightness(var(--dim)); backdrop-filter: var(--lens) blur(5px) saturate(185%) brightness(var(--dim)); }
/* il riflesso: una luce morbida che segue il puntatore */
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  background: radial-gradient(120px 60px at var(--lx, 30%) var(--ly, 0%), var(--hl), transparent 70%);
  opacity: .9;
}
.glass--logo { padding: 9px 16px 8px; color: var(--ink); }
.nav__links { display: flex; align-items: center; gap: 4px; padding: 5px; font-size: 15px; font-weight: 500; }
.nav__links a:not(.btn) { color: #EEE9E0; text-shadow: 0 1px 8px rgba(0, 0, 0, .35); text-decoration: none; padding: 10px 16px; border-radius: 999px; transition: color .3s var(--ease), background-color .3s var(--ease); }
.nav__links a:not(.btn):hover { color: var(--ink); background: rgba(255, 255, 255, .1); }
.btn--glass {
  margin-left: 6px; background: rgba(201, 168, 76, .9); color: var(--bg);
  box-shadow: inset 0 1px 0 rgba(255, 244, 210, .7), inset 0 -2px 6px rgba(120, 90, 20, .35), 0 4px 14px -4px rgba(201, 168, 76, .55);
}
.btn--glass:hover { background: rgba(221, 191, 102, .95); }
/* vetro chiaro sopra le sezioni chiare */
.nav.is-light .glass { --dim: 1.06; --tint: rgba(250, 248, 243, .42); --rim: rgba(255, 255, 255, .9); --rim-soft: rgba(13, 13, 13, .07); --hl: rgba(255, 255, 255, .55); }
.nav.is-light .glass--logo, .nav.is-light .nav__links a:not(.btn) { color: var(--paper-ink); text-shadow: none; }
.nav.is-light .nav__links a:not(.btn):hover { background: rgba(13, 13, 13, .06); }
.glass-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { --tint: rgba(28, 27, 24, .88); }
  .nav.is-light .glass { --tint: rgba(250, 248, 243, .92); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  align-items: center; min-height: min(100svh, 980px); padding: 128px var(--margin) 72px;
}
.hero__text { grid-column: 1 / span 6; display: grid; gap: 28px; align-content: center; padding-right: 2vw; }
.hero__text h1 { font-size: clamp(40px, 4.9vw, 84px); font-weight: 600; line-height: .98; letter-spacing: -.045em; }
.hero__text h1 span { display: block; }
.hero__lead { max-width: 30em; color: #D9D4CB; font-size: clamp(18px, 1.35vw, 21px); line-height: 1.5; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.hero__note { font-size: var(--s-small); color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hero__note span::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin-right: 8px; transform: translateY(-2px); }
.hero__stage { --pk: .66; --dk: .82; grid-column: 7 / -1; position: relative; height: 640px; }
.stage__caption { position: absolute; right: 0; bottom: -34px; font-size: 13px; color: var(--muted); }

/* ---------- Dispositivi (frammenti di interfaccia) ---------- */
/* Telefono fotorealistico in codice: tutto (schermo, cornice, angoli) scala insieme,
   così le proporzioni restano quelle di un telefono vero a qualsiasi grandezza. */
.phone {
  --k: .72; position: absolute; left: 0; top: 150px; z-index: 3;
  width: calc(420px * var(--k)); height: calc(830px * var(--k)); padding: calc(15px * var(--k));
  filter: drop-shadow(0 calc(40px * var(--k)) calc(46px * var(--k)) rgba(0, 0, 0, .5));
}
.phone__screen {
  width: 390px; height: 800px; transform: scale(var(--k)); transform-origin: 0 0; border-radius: 52px; overflow: hidden; position: relative; background: #000;
  box-shadow: 0 0 0 10px #050505, 0 0 0 12px #24231F, 0 0 0 13.5px #8E8A81, 0 0 0 15px #3B3934;
}
/* riflesso del vetro */
.phone__screen::after { content: ""; position: absolute; inset: 0; z-index: 8; pointer-events: none; border-radius: inherit; background: linear-gradient(118deg, rgba(255, 255, 255, .09) 0%, rgba(255, 255, 255, .025) 32%, transparent 48%); }
/* tasti laterali in metallo */
.phone::before, .phone::after { content: ""; position: absolute; width: calc(4px * var(--k)); border-radius: calc(3px * var(--k)); background: #8E8A81; }
.phone::before { right: calc(-3px * var(--k)); top: calc(210px * var(--k)); height: calc(100px * var(--k)); }
.phone::after { left: calc(-3px * var(--k)); top: calc(170px * var(--k)); height: calc(62px * var(--k)); box-shadow: 0 calc(80px * var(--k)) 0 #8E8A81; }
.phone__island { position: absolute; top: 13px; left: 50%; width: 122px; height: 35px; margin-left: -61px; border-radius: 20px; background: #000; z-index: 9; }

/* Pannello del titolare: lo stesso lavoro dell'assistente, visto da dietro le quinte */
.dash {
  --k: var(--dk); position: absolute; right: 0; top: 0; z-index: 2;
  width: calc(380px * var(--k)); height: calc(616px * var(--k));
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .55));
}
.dash__in {
  position: relative; width: 380px; height: 616px; transform: scale(var(--k)); transform-origin: 0 0;
  display: flex; flex-direction: column; gap: 14px; padding: 22px;
  background: linear-gradient(180deg, #1A1916 0%, #121211 100%); border-radius: 26px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), inset 0 1px 0 rgba(255, 255, 255, .1);
  font-family: var(--sans); color: #EDE8DF; overflow: hidden;
}
.dash__head { display: flex; align-items: center; gap: 12px; }
.dash__mark { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-family: var(--serif); font-size: 30px; line-height: 1; color: var(--gold); background: rgba(201, 168, 76, .1); box-shadow: inset 0 0 0 1px rgba(201, 168, 76, .35); padding-bottom: 3px; }
.dash__title { display: grid; line-height: 1.25; }
.dash__title strong { font-size: 17px; font-weight: 600; }
.dash__title span { font-size: 13px; color: #9A948A; }
.dash__live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: #8FD9A8; background: rgba(80, 200, 120, .1); padding: 6px 11px; border-radius: 999px; }
.dash__live i { width: 7px; height: 7px; border-radius: 50%; background: #5BD08A; box-shadow: 0 0 0 0 rgba(91, 208, 138, .6); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 7px rgba(91, 208, 138, 0); } 100% { box-shadow: 0 0 0 0 rgba(91, 208, 138, 0); } }
.dash__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dash__stats div { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .04); }
.dash__stats span { font-size: 12px; color: #9A948A; }
.dash__stats strong { font-size: 26px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dash [data-at] { display: none; }
.dash b[data-at].on { display: inline-block; animation: pop .45s var(--ease) both; }
.dash__label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #9A948A; margin-top: 2px; }
.dash__label span { text-transform: none; letter-spacing: 0; font-weight: 400; color: #6F6A62; margin-left: 6px; }
.dash__list { display: grid; align-content: start; gap: 8px; height: 190px; }
.drow { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 0 12px; height: 58px; padding: 0 12px; border-radius: 14px; background: rgba(255, 255, 255, .03); }
.dash .drow[data-at].on { display: grid; animation: pop .5s var(--ease) both; }
.drow--live { background: rgba(201, 168, 76, .08); box-shadow: inset 0 0 0 1px rgba(201, 168, 76, .35); }
.drow__av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #2A2824; font-size: 14px; font-weight: 600; }
.drow--live .drow__av { background: var(--gold); color: var(--bg); }
.drow__txt { display: grid; min-width: 0; line-height: 1.3; }
.drow__txt strong { font-size: 14px; font-weight: 600; }
.drow__txt em { font-style: normal; font-weight: 400; font-size: 11px; color: #8A847A; margin-left: 6px; }
.drow .t { font-size: 13px; color: #A8A298; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash .t[data-at].on { display: block; animation: fadein .35s var(--ease) both; }
.t--gold { color: var(--gold) !important; }
.t--done { color: #EDE8DF !important; }
.t--done::before { content: "✓ "; color: #8FD9A8; }
.dots { display: inline-flex; gap: 3px; margin-left: 3px; vertical-align: middle; }
.dots i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; animation: dot 1.1s infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
.drow__side { display: grid; justify-items: end; gap: 4px; }
.drow__side time { font-size: 11px; color: #8A847A; font-variant-numeric: tabular-nums; }
.chip { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; color: #8FD9A8; background: rgba(80, 200, 120, .1); }
.chip--run { color: var(--gold); background: rgba(201, 168, 76, .12); }
.drow__side .chip:not([data-at]), .dash .chip[data-at].on { display: inline-block; }
.dash__agenda { display: grid; gap: 6px; }
.slot { display: grid; grid-template-columns: 50px 1fr; align-items: center; height: 36px; padding: 0 12px; border-radius: 10px; background: rgba(255, 255, 255, .03); font-size: 13.5px; transition: background .5s var(--ease), box-shadow .5s var(--ease); }
.slot time { color: #8A847A; font-variant-numeric: tabular-nums; }
.slot.focus { background: rgba(201, 168, 76, .12); box-shadow: inset 0 0 0 1px rgba(201, 168, 76, .45); }
.dash .slot .t[data-at].on { display: block; }
.t--free { color: #6F6A62; }
.t--book { color: var(--gold); font-weight: 600; animation: pop .45s var(--ease) both !important; }
.t--book em { font-style: normal; font-weight: 600; font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--bg); background: var(--gold); padding: 2px 6px; border-radius: 999px; margin-left: 6px; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

/* Linee d'oro: il filo tra quello che vede il cliente e quello che vede il titolare */
.links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 5; pointer-events: none; }
.links__base { fill: none; stroke: rgba(201, 168, 76, .5); stroke-width: 1.2; stroke-dasharray: 2 5; stroke-linecap: round; }
.links__dot { fill: var(--gold); filter: drop-shadow(0 0 4px rgba(201, 168, 76, .8)); }
.pulse { fill: none; stroke: #F0D488; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 16 300; stroke-dashoffset: 16; opacity: 0; filter: drop-shadow(0 0 5px rgba(232, 200, 114, .95)); }
.pulse.on { opacity: 1; animation: flow .9s cubic-bezier(.45, 0, .3, 1) forwards; }
.pulse--rev.on { animation-name: flowrev; }
@keyframes flow { from { stroke-dashoffset: 16; } to { stroke-dashoffset: -100; } }
@keyframes flowrev { from { stroke-dashoffset: -100; } to { stroke-dashoffset: 16; } }

/* Chat: la vista del cliente */
.chat { height: 100%; background: #0B141A; display: flex; flex-direction: column; font-family: var(--sans); }
.chat__status { display: flex; justify-content: space-between; padding: 18px 34px 0; height: 54px; font-size: 16px; font-weight: 600; color: #fff; }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 12px 18px; background: #1F2C33; color: #E9EDEF; }
.chat__avatar { width: 42px; height: 42px; border-radius: 50%; background: #B5361F; color: #FFF5EA; display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.chat__who { display: grid; line-height: 1.25; }
.chat__who strong { font-size: 17px; font-weight: 600; }
.chat__who span { font-size: 13px; color: #8696A0; }
.chat__body { flex: 1; padding: 18px 14px; display: flex; flex-direction: column; gap: 8px; justify-content: flex-end; overflow: hidden; }
.chat__day { align-self: center; font-size: 13px; color: #8696A0; background: #182229; padding: 5px 12px; border-radius: 8px; margin-bottom: 6px; }
.msg { max-width: 80%; padding: 9px 12px 8px; border-radius: 12px; font-size: 16px; line-height: 1.38; color: #E9EDEF; position: relative; }
.msg small { display: block; text-align: right; font-size: 12px; color: rgba(233,237,239,.85); margin-top: 3px; }
.msg--in { align-self: flex-start; background: #202C33; border-top-left-radius: 4px; }
.msg--out { align-self: flex-end; background: #005C4B; border-top-right-radius: 4px; }
.msg--ok { border-left: 3px solid var(--gold); }
.typing { align-self: flex-start; background: #202C33; border-radius: 12px; padding: 13px 14px; display: flex; gap: 5px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #8696A0; animation: dot 1.1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.chat__input { display: flex; gap: 10px; align-items: center; padding: 10px 12px 26px; }
.chat__input div { flex: 1; height: 46px; border-radius: 23px; background: #1F2C33; color: #8696A0; font-size: 16px; display: flex; align-items: center; padding: 0 18px; }
.chat__input b { width: 46px; height: 46px; border-radius: 50%; background: #00A884; }

/* elementi in sequenza (chat, chiamata, tessera, pannello) */
[data-seq] [data-at] { display: none; }
[data-seq] [data-at].on { display: flex; animation: pop .45s var(--ease) both; }
[data-seq] .msg[data-at].on { display: block; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }

.hero__stage .phone { --k: var(--pk); left: max(0px, calc(100% - 380px * var(--dk) - 420px * var(--pk) - 110px)); top: 84px; }

/* Notifica al titolare */
.notif {
  position: absolute; z-index: 6; right: -14px; top: calc(616px * var(--dk) + 2px); width: 300px;
  background: rgba(30, 29, 26, .96); border-radius: 18px; padding: 14px 16px; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px;
  box-shadow: 0 24px 50px -12px rgba(0,0,0,.7);
  opacity: 0; transform: translateY(-10px) scale(.96); transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.notif.on { opacity: 1; transform: none; }
.notif__icon { grid-row: span 2; width: 38px; height: 38px; border-radius: 10px; background: var(--gold); color: var(--bg); display: grid; place-items: center; font-weight: 700; font-size: 18px; }
.notif strong { font-size: 15px; font-weight: 600; }
.notif span { font-size: 14px; color: #CFC9BF; }

/* ---------- Il 9 ---------- */
.nine { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center; padding: var(--section) var(--margin); background: var(--bg); }
.nine__canvas { grid-column: 1 / span 6; aspect-ratio: 1 / 1; max-height: 640px; width: 100%; justify-self: center; }
.nine__canvas canvas { width: 100%; height: 100%; }
.nine__text { grid-column: 8 / span 5; display: grid; gap: 26px; }
.nine__text h2 { font-size: var(--s-h2); font-weight: 600; line-height: 1; letter-spacing: -.04em; }
.nine__text > p { color: #D9D4CB; font-size: clamp(18px, 1.35vw, 21px); max-width: 26em; }
.promises { display: grid; gap: 0; margin-top: 10px; }
.promises li { display: grid; grid-template-columns: 22px 1fr; gap: 2px 14px; padding: 16px 0; }
.promises li::before { content: ""; grid-row: span 2; width: 10px; height: 10px; margin-top: 8px; border-radius: 50%; background: var(--gold); }
.promises strong { font-weight: 600; font-size: 19px; }
.promises span { color: var(--muted); font-size: 16px; }

/* ---------- Bento servizi ---------- */
.bento-wrap { background: var(--paper); color: var(--paper-ink); padding: var(--section) var(--margin); border-radius: 36px 36px 0 0; }
.bento-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.bento-head h2 { grid-column: 1 / span 7; font-size: var(--s-h2); font-weight: 600; line-height: 1; letter-spacing: -.04em; }
.bento-head p { grid-column: 8 / span 5; font-size: clamp(18px, 1.35vw, 21px); color: var(--paper-muted); max-width: 24em; }
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--gap); }
.card {
  position: relative; background: var(--card); border-radius: var(--radius); overflow: hidden;
  display: grid; grid-template-rows: 1fr auto; min-height: 420px;
  transition: transform .5s var(--ease);
}
.card:hover { transform: translateY(-4px); }
.card__visual { position: relative; overflow: hidden; display: grid; place-items: center; padding: 28px 24px 0; min-height: 0; }
.card__text { padding: 22px 26px 26px; display: grid; gap: 6px; }
.card__text h3 { font-size: var(--s-h3); font-weight: 600; letter-spacing: -.02em; }
.card__text p { color: var(--paper-muted); font-size: 16px; line-height: 1.45; max-width: 34em; }
.card__price { display: inline-block; margin-top: 6px; font-size: var(--s-small); font-weight: 600; color: var(--paper-ink); }
.card--a { grid-column: span 4; grid-row: span 2; min-height: 760px; }
.card--b { grid-column: span 2; grid-row: span 2; background: var(--bg); color: var(--ink); }
.card--b .card__text p { color: var(--muted); }
.card--b .card__price { color: var(--gold); }
.card--c, .card--d, .card--e { grid-column: span 2; }
.card--f { grid-column: span 6; min-height: 0; background: var(--bg); color: var(--ink); grid-template-rows: auto; }
.bento-note { margin-top: 22px; font-size: var(--s-small); color: var(--paper-muted); }

/* A — siti: due telefoni con siti diversi che scorrono */
.duo { position: relative; width: 100%; height: 100%; display: flex; justify-content: center; align-items: flex-start; gap: clamp(16px, 3vw, 44px); padding-top: 10px; }
.duo .phone { position: relative; left: auto; top: auto; --k: .62; box-shadow: 0 30px 60px -24px rgba(40,30,10,.45), inset 0 0 0 1.5px #2C2B28; }
.duo .phone:nth-child(2) { margin-top: 60px; }
.scroller { animation: scroll 16s var(--ease) infinite; animation-play-state: paused; }
.is-live .scroller { animation-play-state: running; }
@keyframes scroll { 0%, 12% { transform: translateY(0); } 40%, 52% { transform: translateY(-420px); } 80%, 100% { transform: translateY(0); } }
.aura { background: #EEF0E8; color: #23302A; padding: 64px 26px 40px; min-height: 1300px; font-family: var(--sans); }
.aura__brand { font-family: var(--serif); font-size: 44px; line-height: 1; }
.aura__tag { margin-top: 10px; font-size: 17px; color: #56665D; }
.aura__img { margin-top: 26px; height: 230px; border-radius: 20px; background: #CBD5C5; position: relative; overflow: hidden; }
.aura__img::before { content: ""; position: absolute; width: 190px; height: 190px; border-radius: 50%; background: #DCE3D6; right: -40px; top: -50px; }
.aura__img::after { content: ""; position: absolute; width: 130px; height: 260px; border-radius: 70px; background: #B3C0AC; left: 40px; bottom: -120px; }
.aura__btn { margin-top: 22px; background: #2F4A3D; color: #F1F4EC; text-align: center; border-radius: 999px; padding: 16px; font-weight: 600; font-size: 17px; }
.aura__list { margin-top: 30px; display: grid; gap: 0; }
.aura__list div { display: flex; justify-content: space-between; padding: 16px 0; font-size: 17px; box-shadow: inset 0 -1px 0 #D5DACE; }
.aura__list b { font-weight: 600; }
.aura__hours { margin-top: 26px; background: #E1E6DA; border-radius: 16px; padding: 18px; font-size: 16px; line-height: 1.6; }
.offi { background: #111317; color: #F1F1F1; padding: 64px 24px 40px; min-height: 1300px; font-family: var(--sans); }
.offi__brand { font-weight: 800; font-size: 30px; letter-spacing: -.03em; }
.offi__brand span { color: #F2B32B; }
.offi h4 { margin: 34px 0 0; font-size: 40px; line-height: 1.02; letter-spacing: -.04em; font-weight: 700; }
.offi__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.offi__btns div { border-radius: 14px; padding: 16px; text-align: center; font-weight: 700; font-size: 16px; background: #F2B32B; color: #111317; }
.offi__btns div + div { background: #23262C; color: #F1F1F1; }
.offi__list { margin-top: 30px; display: grid; gap: 10px; }
.offi__list div { background: #1B1E23; border-radius: 14px; padding: 16px 18px; font-size: 16px; display: flex; justify-content: space-between; }
.offi__list b { color: #F2B32B; font-weight: 600; }

/* B — agente al telefono */
.call { width: 100%; max-width: 330px; align-self: start; display: grid; gap: 14px; padding-top: 6px; }
.call__top { display: flex; align-items: center; gap: 12px; }
.call__ring { width: 46px; height: 46px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; color: var(--bg); font-weight: 700; }
.call__top div { display: grid; line-height: 1.3; }
.call__top strong { font-size: 16px; }
.call__top span { font-size: 14px; color: var(--muted); }
.wave { display: flex; align-items: center; gap: 4px; height: 44px; }
.wave i { flex: 1; height: 100%; border-radius: 3px; background: var(--gold); transform: scaleY(.15); }
.is-live .wave i { animation: wave 1.2s var(--ease) infinite; animation-delay: calc(var(--i) * -110ms); }
@keyframes wave { 0%, 100% { transform: scaleY(.15); } 50% { transform: scaleY(var(--h, .8)); } }
.call__lines { display: flex; flex-direction: column; gap: 8px; min-height: 280px; }
.line { flex-direction: column; gap: 2px; background: var(--surface-2); border-radius: 14px; padding: 11px 13px; font-size: 15px; line-height: 1.4; }
.line b { font-size: 13px; font-weight: 600; color: var(--muted); }
.line--ai b { color: var(--gold); }
.line--done { background: rgba(201,168,76,.14); color: var(--gold-hi); font-weight: 600; flex-direction: row; align-items: center; gap: 8px; }

/* C — Google */
.serp { width: 100%; max-width: 340px; display: grid; gap: 12px; }
.serp__bar { height: 46px; border-radius: 23px; background: #FBF9F5; display: flex; align-items: center; gap: 10px; padding: 0 18px; font-size: 16px; color: #3B372F; }
.serp__bar::before { content: ""; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 2px #8B8476; flex: none; }
.caret::after { content: ""; display: inline-block; width: 2px; height: 1.05em; background: #3B372F; margin-left: 2px; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.serp__card { background: #FBF9F5; border-radius: 16px; padding: 16px 18px; display: grid; gap: 6px; }
.serp__card strong { font-size: 18px; letter-spacing: -.01em; }
.serp__meta { font-size: 14px; color: #5B554B; }
.serp__open { color: #1E7A46; font-weight: 600; }
.serp__btns { display: flex; gap: 8px; margin-top: 6px; }
.serp__btns span { flex: 1; text-align: center; font-size: 14px; font-weight: 600; padding: 9px 0; border-radius: 999px; background: #E6E0D5; }
.serp__btns span:first-child { background: var(--paper-ink); color: var(--paper); }

/* D — tessera fedeltà */
.loyal { width: 100%; max-width: 330px; background: var(--paper-ink); color: var(--ink); border-radius: 20px; padding: 20px; display: grid; gap: 16px; }
.loyal__top { display: flex; justify-content: space-between; align-items: baseline; }
.loyal__top strong { font-size: 18px; }
.loyal__top span { font-size: 14px; color: var(--muted); }
.stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.stamps i { aspect-ratio: 1; border-radius: 50%; box-shadow: inset 0 0 0 2px #3A3833; display: grid; place-items: center; }
.stamps i.on, .stamps i.pre { background: var(--gold); box-shadow: none; }
.stamps i.on { animation: stamp .5s var(--ease) both; }
@keyframes stamp { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.loyal p { font-size: 15px; color: #D9D4CB; }

/* E — pannello */
.cms { width: 100%; max-width: 330px; background: #FBF9F5; border-radius: 18px; padding: 18px; display: grid; gap: 12px; position: relative; }
.cms__title { font-size: 14px; font-weight: 600; color: #5B554B; }
.cms__field { display: grid; gap: 6px; }
.cms__field label { font-size: 13px; color: #6E675C; }
.cms__input { border-radius: 10px; padding: 11px 12px; background: #fff; box-shadow: inset 0 0 0 1.5px #DDD6C9; font-size: 16px; min-height: 44px; }
.cms__input.focus { box-shadow: inset 0 0 0 2px var(--gold); }
.cms__btn { justify-self: start; background: var(--paper-ink); color: var(--paper); font-size: 14px; font-weight: 600; padding: 10px 18px; border-radius: 999px; }
.toast { position: absolute; right: 14px; bottom: 14px; align-items: center; gap: 8px; background: #1E7A46; color: #fff; font-size: 14px; font-weight: 600; padding: 9px 14px; border-radius: 999px; }

/* F — promesse */
.strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); padding: 30px 30px; }
.strip div { display: grid; gap: 4px; }
.strip strong { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.strip strong em { font-style: normal; color: var(--gold); }
.strip span { color: var(--muted); font-size: 16px; }

/* ---------- Tre prodotti, tre schede distinte ---------- */
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 1.8vw, 24px); }
.product {
  position: relative; overflow: hidden; border-radius: 28px; min-height: 760px;
  display: grid; grid-template-rows: auto 1fr;
  transition: transform .5s var(--ease);
}
.product:hover { transform: translateY(-6px); }
.product__text { padding: clamp(26px, 2.4vw, 36px) clamp(24px, 2.4vw, 36px) 0; display: grid; gap: 14px; }
.product__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.product__head h3 { font-size: clamp(34px, 3vw, 46px); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.product__price { font-size: 15px; font-weight: 600; padding: 7px 13px; border-radius: 999px; white-space: nowrap; }
.product__text p { font-size: 17px; line-height: 1.5; max-width: 30em; }
.product__visual { position: relative; display: grid; place-items: end center; padding: 28px 18px 0; min-height: 0; overflow: hidden; }

.product--sites { background: var(--card); color: var(--paper-ink); }
.product--sites .product__price { background: var(--paper-ink); color: var(--paper); }
.product--sites .product__text p { color: var(--paper-muted); }
.product--sites .duo { align-items: flex-end; gap: 0; padding-top: 0; }
.product--sites .duo .phone { --k: .5; margin-bottom: -60px; }
.product--sites .duo .phone:nth-child(1) { z-index: 2; transform: rotate(-4deg); }
.product--sites .duo .phone:nth-child(2) { margin: 0 0 -110px -54px; transform: rotate(5deg); }

.product--agents { background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(246, 243, 238, .08); }
.product--agents .product__price { background: var(--gold); color: var(--bg); }
.product--agents .product__text p { color: var(--muted); }
.product--agents .product__visual { place-items: start center; padding-top: 40px; padding-bottom: 32px; }

.product--apps { background: var(--gold); color: var(--bg); }
.product--apps .product__price { background: var(--bg); color: var(--gold); }
.product--apps .product__text p { color: #3A2F12; }
.phone--app { position: relative; left: auto; top: auto; --k: .54; margin: 0 0 30px; filter: drop-shadow(0 26px 30px rgba(60, 40, 0, .45)); }

/* l'app del bar, inventata */
.appui { height: 100%; background: #F7F2E8; color: #1E1A12; padding: 70px 22px 0; display: flex; flex-direction: column; gap: 16px; position: relative; font-family: var(--sans); }
.appui__top { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.appui__top b { width: 42px; height: 42px; border-radius: 50%; background: #1E1A12; color: #F7F2E8; display: grid; place-items: center; font-size: 15px; }
.appui__hi { font-size: 34px; font-weight: 650; letter-spacing: -.04em; line-height: 1; margin-top: 6px; }
.appui .loyal { max-width: none; }
.appui__order { display: flex; justify-content: space-between; background: #EDE5D6; border-radius: 16px; padding: 16px 18px; font-size: 17px; }
.appui__order b { font-weight: 650; }
.appui__btn { background: #1E1A12; color: #F7F2E8; text-align: center; border-radius: 999px; padding: 17px; font-weight: 650; font-size: 18px; }
.appui__toast { position: absolute; left: 18px; right: 18px; top: 60px; z-index: 2; align-items: center; justify-content: center; gap: 8px; background: #1E7A46; color: #fff; font-weight: 650; font-size: 17px; padding: 16px; border-radius: 18px; box-shadow: 0 14px 30px -10px rgba(0,0,0,.4); }
[data-seq] .appui__toast[data-at].on { display: flex; }
.appui__tabs { margin-top: auto; display: flex; justify-content: space-around; padding: 18px 0 30px; }
.appui__tabs .tab { width: 30px; height: 30px; color: #B4A88F; }
.appui__tabs .tab svg { width: 100%; height: 100%; }
.appui__tabs .tab.on { color: #1E1A12; }

/* Siti web: laptop con l'agenzia immobiliare, telefono con il ristorante (attività inventate) */
.product--sites .product__visual { place-items: stretch; padding: 26px 22px 0; }
.devices { position: relative; width: 100%; height: 100%; min-height: 400px; }
.laptop { position: absolute; left: 0; top: 56px; width: 92%; aspect-ratio: 1560 / 916; filter: drop-shadow(0 26px 26px rgba(40, 30, 10, .35)); }
.laptop__fit { width: 1560px; height: 916px; }
/* coperchio: cornice nera sottile, bordo in alluminio, tacca della webcam */
.laptop__lid {
  position: relative; width: 1340px; height: 872px; margin-left: 110px; padding: 36px 30px; border-radius: 36px 36px 12px 12px;
  background: #080808; box-shadow: inset 0 0 0 3px #2A2A2C, 0 0 0 2.5px #6E6E72, 0 0 0 4px #2B2B2D;
}
.laptop__cam { position: absolute; left: 50%; top: 0; width: 170px; height: 30px; margin-left: -85px; border-radius: 0 0 14px 14px; background: #080808; z-index: 3; }
.laptop__cam::after { content: ""; position: absolute; left: 50%; top: 10px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: #1C2230; box-shadow: inset 0 0 0 2px #10131A; }
.laptop__screen { position: relative; width: 1280px; height: 800px; overflow: hidden; border-radius: 8px; background: #0B1220; }
.laptop__screen::after { content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none; background: linear-gradient(125deg, rgba(255, 255, 255, .07) 0%, rgba(255, 255, 255, .02) 34%, transparent 50%); }
/* base in alluminio scuro con l'incavo per aprirlo */
.laptop__base {
  position: relative; width: 1560px; height: 44px; border-radius: 4px 4px 60px 60px / 4px 4px 34px 34px;
  background: linear-gradient(#5A5A5E 0%, #3A3A3D 12%, #262628 55%, #121213 100%);
  box-shadow: inset 0 2px 0 #7A7A7E;
}
.laptop__base::before { content: ""; position: absolute; left: 50%; top: 0; width: 230px; height: 13px; margin-left: -115px; border-radius: 0 0 16px 16px; background: #1A1A1C; box-shadow: inset 0 -2px 3px rgba(0, 0, 0, .5); }
[data-fit] { position: absolute; left: 0; top: 0; transform-origin: 0 0; }

.estate { width: 1280px; height: 800px; overflow: hidden; color: #fff; font-family: var(--sans); }
.estate__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; transform-origin: 60% 60%; }
.is-live .estate__photo { animation: kenburns 18s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.09) translate(-1.5%, -1%); } }
.estate::after { content: ""; position: absolute; inset: 0; background: rgba(4, 10, 24, .28); }
.estate__word { position: absolute; z-index: 1; left: 0; right: 0; top: 70px; text-align: center; font-size: 300px; font-weight: 600; letter-spacing: -.05em; line-height: 1; color: rgba(255, 255, 255, .26); }
.estate__nav { position: absolute; z-index: 2; left: 48px; right: 48px; top: 34px; display: flex; align-items: center; justify-content: space-between; font-size: 21px; }
.estate__logo { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 26px; }
.estate__logo i { width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 7px #fff; }
.estate__links { display: flex; gap: 44px; opacity: .9; }
.estate__cta { background: #fff; color: #0B1220; font-weight: 600; padding: 14px 26px; border-radius: 999px; }
.estate__copy { position: absolute; z-index: 2; left: 48px; bottom: 56px; max-width: 640px; }
.estate__copy h4 { margin: 0; font-size: 78px; line-height: 1; letter-spacing: -.045em; font-weight: 600; }
.estate__copy p { margin-top: 18px; font-size: 22px; line-height: 1.45; opacity: .9; max-width: 30em; }
.estate__card { position: absolute; z-index: 2; right: 48px; bottom: 50px; width: 330px; display: grid; gap: 14px; font-size: 18px; }
.estate__card strong { font-size: 27px; font-weight: 600; letter-spacing: -.02em; }
.estate__card img { width: 100%; height: 190px; object-fit: cover; border-radius: 12px; max-width: none; }
.estate__bars { display: flex; gap: 8px; }
.estate__bars i { flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.estate__bars i.on::after { content: ""; display: block; height: 100%; background: #fff; transform-origin: left; transform: scaleX(1); }
.is-live .estate__bars i.on::after { animation: fillbar 5s linear infinite; }
@keyframes fillbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.estate__row { display: flex; justify-content: space-between; opacity: .9; }
.estate__btn { background: #fff; color: #0B1220; text-align: center; font-weight: 600; padding: 15px; border-radius: 999px; }

.phone--resto { position: absolute; left: auto; top: 168px; right: -4px; bottom: auto; z-index: 2; --k: .38; margin-top: -40px; filter: drop-shadow(0 22px 24px rgba(30, 20, 5, .45)); }
.resto { height: 100%; background: #0A0A0A; color: #F4EEE4; position: relative; overflow: hidden; text-align: center; padding: 66px 24px 0; font-family: var(--sans); }
.resto__nav { display: flex; align-items: center; justify-content: space-between; }
.resto__menu { display: grid; gap: 6px; width: 26px; }
.resto__menu i { height: 2px; background: #F4EEE4; }
.resto__brand { font-family: var(--serif); font-size: 34px; line-height: 1; display: grid; gap: 4px; }
.resto__brand small { font-family: var(--sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.resto__bag { width: 24px; height: 22px; border-radius: 4px 4px 7px 7px; box-shadow: inset 0 0 0 2px #F4EEE4; }
.resto h4 { margin: 54px 0 0; font-family: var(--serif); font-weight: 500; font-size: 54px; line-height: .98; letter-spacing: -.01em; }
.resto p { margin: 18px auto 0; font-size: 16px; line-height: 1.5; opacity: .8; max-width: 19em; }
.resto__circle { position: absolute; z-index: 2; right: 22px; top: 440px; width: 112px; height: 112px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(244, 238, 228, .8); display: grid; place-items: center; font-size: 15px; background: rgba(10, 10, 10, .35); }
.resto__pizza { position: absolute; left: 50%; bottom: -230px; width: 560px; height: 560px; margin-left: -280px; max-width: none; border-radius: 50%; object-fit: cover;
  -webkit-mask-image: radial-gradient(circle closest-side, #000 86%, transparent 100%); mask-image: radial-gradient(circle closest-side, #000 86%, transparent 100%); }
.is-live .resto__pizza { animation: pizza 14s ease-in-out infinite alternate; }
@keyframes pizza { from { transform: rotate(-6deg) translateY(0); } to { transform: rotate(8deg) translateY(-14px); } }

/* ---------- Incluso in ogni lavoro ---------- */
.included { margin-top: clamp(56px, 6vw, 96px); }
.included__title { font-size: clamp(26px, 2.4vw, 36px); font-weight: 600; letter-spacing: -.03em; margin-bottom: 22px; }
.included__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.card--inc { min-height: 380px; background: #EFE9DF; box-shadow: inset 0 0 0 1px rgba(13, 13, 13, .06); }
.card--inc .card__text h4 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.card--promises { background: var(--paper-ink); color: var(--ink); display: flex; align-items: center; box-shadow: none; }
.promise-list { display: grid; gap: 22px; padding: 30px; }
.promise-list li { display: grid; gap: 4px; }
.promise-list strong { font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.promise-list strong em { font-style: normal; color: var(--gold); }
.promise-list span { color: var(--muted); font-size: 15px; }

/* ---------- Come lavoriamo ---------- */
.steps { background: var(--bg); padding: 0 var(--margin) var(--section); }
.steps__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 20px; align-items: end; padding-top: clamp(40px, 6vw, 96px); border-top: 1px solid rgba(255, 255, 255, .1); }
.steps__head h2 { grid-column: 1 / span 6; font-size: var(--s-h2); font-weight: 600; line-height: 1; letter-spacing: -.04em; }
.steps__head p { grid-column: 8 / span 5; color: #D9D4CB; font-size: clamp(18px, 1.35vw, 21px); max-width: 24em; }
.steps__track { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin: clamp(48px, 5vw, 72px) 0 26px; height: 12px; }
.steps__track::before { content: ""; position: absolute; left: 6px; right: 0; top: 50%; height: 1px; background: linear-gradient(90deg, var(--gold), rgba(201, 168, 76, .25)); transform-origin: left; }
.steps__track i { position: relative; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px var(--gold); }
.steps__track i:last-of-type { background: var(--gold); box-shadow: 0 0 0 6px rgba(201, 168, 76, .18); }
.steps__pulse { position: absolute; top: 50%; left: 0; width: 64px; height: 3px; margin-top: -1.5px; border-radius: 3px; background: linear-gradient(90deg, transparent, #F0D488); filter: drop-shadow(0 0 6px rgba(232, 200, 114, .9)); opacity: 0; }
.js .steps__track.is-in .steps__pulse { animation: travel 4.5s cubic-bezier(.45, 0, .3, 1) 1.2s infinite; }
@keyframes travel { 0% { left: 0; opacity: 0; } 10% { opacity: 1; } 80% { opacity: 1; } 100% { left: calc(100% - 64px); opacity: 0; } }
.js .steps__track.reveal::before { transform: scaleX(0); transition: transform 1.6s var(--ease) .3s; }
.js .steps__track.reveal.is-in::before { transform: scaleX(1); }
.steps__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); list-style: none; margin: 0; padding: 0; }
.step { display: grid; align-content: start; gap: 14px; padding: clamp(24px, 2.4vw, 34px); border-radius: 24px; background: #151513; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.step__n { font-size: 15px; font-weight: 600; color: var(--gold); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.step h3 { font-size: clamp(24px, 2vw, 30px); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.step p { color: var(--muted); font-size: 16.5px; line-height: 1.5; }
.step__out { display: flex; gap: 10px; align-items: baseline; margin-top: 8px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 15px; font-weight: 500; color: #EDE8DF; }
.step__out::before { content: "✓"; color: var(--gold); font-weight: 700; }

/* ---------- Pagine interne (privacy, cookie, 404) ---------- */
.footer__links { display: flex; gap: 18px; }
.footer__links a { color: var(--paper-ink); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(13, 13, 13, .25); text-underline-offset: .25em; }
.footer__links a:hover { text-decoration-color: var(--gold); }
.sub main { background: var(--bg); padding: calc(var(--section) + 40px) var(--margin) var(--section); }
.sub .footer { padding-top: 28px; }
.page-head { max-width: 980px; display: grid; gap: 22px; }
.page-head__kicker { font-size: var(--s-small); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.page-head h1 { font-size: clamp(48px, 8vw, 120px); font-weight: 600; line-height: .95; letter-spacing: -.05em; }
.page-head__lead { color: #D9D4CB; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.5; max-width: 34em; }
.page-head__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 10px; }
.page-head--404 { min-height: 52vh; align-content: center; }
.legal { max-width: 720px; margin-top: clamp(48px, 6vw, 88px); padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, .1); }
.legal__date { font-size: var(--s-small); color: var(--muted); }
.legal h2 { font-size: clamp(22px, 1.9vw, 28px); font-weight: 600; letter-spacing: -.025em; line-height: 1.2; margin: 48px 0 14px; }
.legal p, .legal li { color: #D9D4CB; font-size: 17px; line-height: 1.65; }
.legal ul { display: grid; gap: 14px; padding-left: 0; list-style: none; margin: 0 0 16px; }
.legal li { position: relative; padding-left: 22px; }
.legal li::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.legal strong { color: var(--ink); font-weight: 600; }

/* ---------- Chiusura ---------- */
.close { padding: 0 var(--margin) var(--section); background: var(--paper); color: var(--paper-ink); }
.close__box { background: var(--paper-ink); color: var(--ink); border-radius: 36px; padding: clamp(40px, 6vw, 96px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px; align-items: start; }
.close__intro { grid-column: 1 / span 5; display: grid; gap: 24px; align-content: start; }
.close__intro h2 { font-size: var(--s-h2); font-weight: 600; line-height: 1; letter-spacing: -.04em; }
.close__intro > p { color: #D9D4CB; font-size: clamp(17px, 1.25vw, 19px); max-width: 26em; }
.close__direct { display: grid; gap: 6px; margin-top: 8px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); }
.close__direct span { font-size: var(--s-small); color: var(--muted); }
.close__direct .textlink { font-size: 19px; justify-self: start; }

/* Modulo: prepara un'email, non manda nulla ai nostri server */
.form { grid-column: 7 / -1; display: grid; gap: 22px; padding: clamp(24px, 2.6vw, 36px); border-radius: 26px; background: #171614; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.form__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.form__chips legend, .field label { font-size: 15px; font-weight: 600; color: #EDE8DF; margin-bottom: 10px; padding: 0; }
.form__chips legend span, .field label span { font-weight: 400; color: var(--muted); margin-left: 6px; font-size: 14px; }
.chip-opt { position: relative; cursor: pointer; }
.chip-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip-opt span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; font-size: 16px; font-weight: 500; color: #D9D4CB; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); transition: background-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease); }
.chip-opt:hover span { box-shadow: inset 0 0 0 1px rgba(201, 168, 76, .6); }
.chip-opt input:checked + span { background: var(--gold); color: var(--bg); box-shadow: none; }
.chip-opt input:checked + span::before { content: "✓"; margin-right: 8px; font-weight: 700; }
.chip-opt input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; align-content: start; }
.field label { display: block; }
.field input, .field textarea {
  width: 100%; font: 400 17px/1.4 var(--sans); color: var(--ink); background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 14px; padding: 13px 16px; min-height: 52px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input::placeholder, .field textarea::placeholder { color: #8A847A; }
.field input:hover, .field textarea:hover { border-color: rgba(255, 255, 255, .28); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 168, 76, .22); background: rgba(255, 255, 255, .06); }
.field [aria-invalid="true"] { border-color: #E0866F; }
.field__hint, .field__err { font-size: 13.5px; margin-top: 8px; }
.field__hint { color: var(--muted); }
.field__err { color: #F0A08C; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 4px; }
.form__foot p { flex: 1 1 240px; font-size: var(--s-small); color: var(--muted); line-height: 1.5; }
.form__done { display: grid; gap: 14px; justify-items: start; padding: 18px 20px; border-radius: 16px; background: rgba(201, 168, 76, .08); box-shadow: inset 0 0 0 1px rgba(201, 168, 76, .3); }
.form__done[hidden] { display: none; }
.form__done[data-state="err"] { background: rgba(224, 134, 111, .1); box-shadow: inset 0 0 0 1px rgba(240, 160, 140, .45); }
.form__done:focus { outline: none; }
.btn:disabled { opacity: .7; cursor: progress; transform: none; }
.form__done p { font-size: 15px; color: #D9D4CB; line-height: 1.5; }
.form__done strong { color: var(--ink); }
.btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.btn--line:hover { background: rgba(255, 255, 255, .08); }

.footer { background: var(--paper); color: var(--paper-ink); padding: 0 var(--margin) 28px; display: flex; flex-wrap: wrap; gap: 14px 32px; justify-content: space-between; align-items: center; font-size: var(--s-small); }
.footer .logo { color: var(--paper-ink); }
.footer p { color: var(--paper-muted); }

/* ---------- Entrate ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); }
.js .reveal.is-in { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.js .hero__text > * { opacity: 0; transform: translateY(22px); }
.js .hero.is-in .hero__text > * { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .hero.is-in .hero__text > :nth-child(2) { transition-delay: .12s; }
.js .hero.is-in .hero__text > :nth-child(3) { transition-delay: .24s; }
.js .hero.is-in .hero__text > :nth-child(4) { transition-delay: .36s; }
.js .hero__stage .dash, .js .hero__stage .phone { opacity: 0; transform: translateY(40px); }
.js .hero__stage .links { opacity: 0; }
.js .hero.is-in .hero__stage .links { opacity: 1; transition: opacity 1s var(--ease) 1.1s; }
.js .hero.is-in .hero__stage .dash { opacity: 1; transform: none; transition: opacity 1.2s var(--ease) .2s, transform 1.2s var(--ease) .2s; }
.js .hero.is-in .hero__stage .phone { opacity: 1; transform: none; transition: opacity 1.2s var(--ease) .45s, transform 1.2s var(--ease) .45s; }

@media (prefers-reduced-motion: reduce) {
  .steps__pulse { display: none; }
  html { scroll-behavior: auto; }
  .js .reveal, .js .hero__text > *, .js .hero__stage .dash, .js .hero__stage .phone, .js .hero__stage .links { opacity: 1 !important; transform: none !important; transition: none !important; }
  .scroller, .wave i, .typing i, .dots i, .dash__live i, .estate__photo, .estate__bars i.on::after, .resto__pizza { animation: none !important; }
  .card:hover, .btn:hover { transform: none; }
}

/* Il palco dell'hero si stringe con lo schermo: telefono e pannello rimpiccioliscono insieme */
@media (min-width: 1700px) { .hero__stage { --pk: .74; --dk: .94; height: 720px; } }
@media (max-width: 1360px) { .hero__stage { --pk: .6; --dk: .76; } }
@media (max-width: 1200px) { .hero__stage { --pk: .55; --dk: .7; } }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .hero { grid-template-columns: minmax(0, 1fr); row-gap: 56px; padding-top: 116px; }
  .hero__text, .hero__stage { grid-column: 1; }
  .hero__text h1 { font-size: clamp(40px, 6.3vw, 80px); }
  .hero__stage { --pk: .62; --dk: .84; height: 620px; max-width: 680px; width: 100%; justify-self: center; }
  .nine, .bento-head, .close__box, .steps__head { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .steps__head h2, .steps__head p { grid-column: 1; }
  .nine__canvas, .nine__text, .bento-head h2, .bento-head p, .close__intro, .form { grid-column: 1; }
  .nine__canvas { max-width: 520px; }
  .bento-head p { margin-top: 18px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card--a { grid-column: span 2; grid-row: auto; min-height: 640px; }
  .card--b { grid-column: span 2; grid-row: auto; }
  .card--c, .card--d, .card--e { grid-column: span 1; }
  .card--e { grid-column: span 2; }
  .card--f { grid-column: span 2; }
  .products { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; }
  .product { min-height: 680px; }
  .included__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card--promises { grid-column: span 2; }
}

@media (max-width: 760px) and (min-width: 641px) {
  .hero__stage { --pk: .55; --dk: .7; height: 560px; }
}
@media (max-width: 760px) {
  .steps__track { display: none; }
  .steps__list { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 40px; }
}

/* ---------- Telefono ---------- */
@media (max-width: 640px) {
  .nav__links a:not(.btn) { display: none; }
  .nav { padding: 10px 14px; }
  .btn--glass { margin-left: 0; }
  .hero__text h1 { font-size: 9.6vw; }
  .hero__actions .btn { flex: 1 1 100%; }
  /* sul telefono: prima la chat del cliente, sotto il pannello del titolare, uniti dalla linea d'oro */
  .hero__stage { --pk: .56; --dk: .82; --gap-v: 56px; height: calc(830px * var(--pk) + var(--gap-v) + 616px * var(--dk)); margin-top: 8px; }
  .hero__stage .phone { left: 50%; top: 0; margin-left: calc(420px * var(--pk) / -2); }
  .hero__stage .dash { right: auto; left: 50%; top: calc(830px * var(--pk) + var(--gap-v)); margin-left: calc(380px * var(--dk) / -2); }
  .notif { left: 50%; right: auto; top: auto; bottom: -34px; width: 290px; margin-left: -145px; }
  .stage__caption { right: auto; left: 0; width: 100%; text-align: center; bottom: -78px; }
  .hero { padding-bottom: calc(var(--section) + 40px); }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .card--a, .card--b, .card--c, .card--d, .card--e, .card--f { grid-column: 1; }
  .card--a { min-height: 600px; }
  .duo .phone:nth-child(2) { display: none; }
  .strip { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .product { min-height: 540px; border-radius: 24px; }
  .devices { min-height: 330px; }
  .phone--resto { --k: .34; top: 104px; margin-top: 0; }
  .laptop { width: 94%; top: 8px; }
  .included__grid { grid-template-columns: minmax(0, 1fr); }
  .card--promises { grid-column: 1; }
  .bento-wrap { border-radius: 26px 26px 0 0; }
  .close__box { border-radius: 26px; }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .form__foot .btn { width: 100%; }
  .form { padding: 22px 18px; border-radius: 20px; }
  .close__box { padding: 32px 18px 18px; }
}

/* Eccezioni alle sequenze: tessera e risultato Google mantengono il loro layout */
.stamps i[data-at] { display: grid; }
.stamps i[data-at].on { display: grid; background: var(--gold); box-shadow: none; animation: stamp .5s var(--ease) both; }
.serp__card[data-at].on { display: grid; }
.toast[data-at].on { display: flex; }

.offi__map { margin-top: 26px; height: 170px; border-radius: 16px; background: #1B1E23; position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 14px 16px; font-size: 15px; color: #C9CCD2; }
.offi__map::before { content: ""; position: absolute; left: -20px; right: -20px; top: 70px; height: 14px; background: #2A2E35; transform: rotate(-8deg); }
.offi__map::after { content: ""; position: absolute; top: -10px; bottom: -10px; left: 150px; width: 12px; background: #2A2E35; transform: rotate(14deg); }
.offi__map i { position: absolute; z-index: 1; left: 170px; top: 52px; width: 22px; height: 22px; border-radius: 50% 50% 50% 0; background: #F2B32B; transform: rotate(-45deg); }
.offi__map span { position: relative; z-index: 1; }

@media (max-width: 360px) { .hero__stage { --pk: .5; --dk: .74; } }
