/* AIgents v2 — nero profondo, un solo accento lime, il colore caldo arriva dalle immagini. */
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("fonts/space-grotesk-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("fonts/space-grotesk-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #070707;
  --surface: #111210;
  --surface-2: #181916;
  --surface-3: #22231f;
  --ink: #f4f4ee;
  --muted: #a6a69d;
  --accent: #c6f432;
  --accent-ink: #0a0b07;
  --logo-dot: var(--accent);

  --display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --text: "Inter", "Helvetica Neue", Arial, sans-serif;

  /* cinque gradini di testo */
  --fs-xl: clamp(54px, 10.2vw, 184px);
  --fs-lg: clamp(42px, 6.6vw, 118px);
  --fs-md: clamp(24px, 2.5vw, 36px);
  --fs-body: 18px;
  --fs-sm: 14px;

  --m: clamp(16px, 2.6vw, 40px);       /* margine pagina */
  --gap: clamp(120px, 14vw, 220px);    /* spazio tra sezioni */
  --r: 18px;                            /* raggio unico per interfacce */
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--fs-body)/1.55 var(--text); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video, canvas, picture { display: block; max-width: 100%; }
picture img { width: 100%; height: 100%; object-fit: cover; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 999px; font-weight: 600; }
.skip:focus { top: 12px; }

/* tipografia */
.xl, .lg, .md { font-family: var(--display); font-weight: 600; letter-spacing: -0.045em; line-height: .94; }
.xl { font-size: var(--fs-xl); }
.lg { font-size: var(--fs-lg); line-height: .96; letter-spacing: -0.04em; }
.md { font-size: var(--fs-md); line-height: 1.1; letter-spacing: -0.025em; font-weight: 500; }
.sm { font: 600 var(--fs-body)/1.3 var(--text); letter-spacing: -0.01em; }
.st { font-family: var(--display); font-size: var(--fs-md); line-height: 1.15; letter-spacing: -0.02em; font-weight: 500; max-width: 26ch; }

/* pulsanti: pillola piena, una sola forma su tutta la pagina */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 600 16px/1 var(--text); text-decoration: none; border: 0; cursor: pointer; transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease); }
.btn:hover { background: var(--ink); }
.btn:active { transform: scale(.97); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn--ghost { background: var(--surface-3); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--accent-ink); }
.btn--ink { background: var(--accent-ink); color: var(--accent); }
.btn--ink:hover { background: var(--ink); color: var(--accent-ink); }
.link { background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink); font: 500 16px/1.3 var(--text); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: color-mix(in srgb, var(--ink) 40%, transparent); transition: text-decoration-color .25s, color .25s; }
.link:hover { text-decoration-color: var(--accent); color: var(--accent); }

/* barra */
.bar { position: fixed; inset: 0 0 auto 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; padding: 18px var(--m); transition: transform .5s var(--ease), background-color .4s; }
.bar.is-solid, html:not(.m) .bar { background: rgba(7,7,7,.92); }
.bar.is-hidden { transform: translateY(-110%); }
.bar__logo { display: block; width: 116px; flex: none; color: var(--ink); }
.lbl-short { display: none; }
.bar__logo svg, .foot__logo svg { width: 100%; height: auto; display: block; }
.bar__nav { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 36px); font-size: 15px; font-weight: 500; }
.bar__nav a:not(.btn) { text-decoration: none; opacity: .85; transition: opacity .2s, color .2s; }
.bar__nav a:not(.btn):hover { opacity: 1; color: var(--accent); }

/* velo scuro sotto il testo sulle foto (unica sfumatura ammessa) */
.scrim { position: absolute; left: 0; right: 0; pointer-events: none; }
.scrim--top { top: 0; height: 52%; background: linear-gradient(rgba(5,5,5,.78), rgba(5,5,5,0)); } /* taste-skill-ignore: scrim neutro sotto il testo */
.scrim--bottom { bottom: 0; height: 46%; background: linear-gradient(rgba(5,5,5,0), rgba(5,5,5,.86)); } /* taste-skill-ignore: scrim neutro sotto il testo */

/* ============ 1. HERO ============ */
.hero { position: relative; }
.hero__stage { position: relative; height: 100svh; min-height: 560px; overflow: hidden; display: grid; grid-template-rows: 1fr auto; }
.hero__media { position: absolute; inset: 0; z-index: 0; transform-origin: 56% 72%; }
.hero__still, .hero__canvas, .hero__sector, .hero__media video { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__canvas { opacity: 0; }
.hero__canvas.is-ready { opacity: 1; }
.hero__media video { object-fit: cover; opacity: 0; transition: opacity .6s; }
.hero__media video.is-playing { opacity: 1; }
.hero__sector { clip-path: inset(100% 0 0 0); }
.hero__sector picture { position: absolute; inset: 0; }
.hero__sector video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s; }
.hero__sector video.is-playing { opacity: 1; }
.hero__copy { position: relative; z-index: 3; padding: clamp(96px, 13vh, 150px) var(--m) 0; }
.hero h1 { max-width: 12ch; }
.hero__l1, .hero__l2 { display: block; }
.verb { white-space: nowrap; display: inline-block; position: relative; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; color: var(--ink); }
.verb__w { display: inline-block; }
.hero__foot { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: 24px 32px; align-items: end; padding: 0 var(--m) clamp(24px, 4vh, 44px); }
.hero__lead { max-width: 40ch; font-size: 18px; }
.hero__actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.hero__sectors { justify-self: end; display: flex; gap: 14px; font-size: var(--fs-sm); color: var(--muted); }
.hero__sectors span { transition: color .4s; }
.hero__sectors .is-on { color: var(--accent); }

/* ============ 2. PROBLEMA ============ */
.problem { position: relative; padding-top: var(--gap); }
.problem__stage { position: relative; }
.problem__sentence { padding: 0 var(--m); }
.problem h2 { font-size: clamp(38px, 7vw, 124px); display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .24em; }
.problem h2 .ln:last-child { flex-basis: 100%; }
html:not(.m) .slot { display: none; }
.slot { display: inline-block; width: 2.3em; height: .74em; border-radius: .14em; overflow: hidden; background: var(--surface-2); align-self: baseline; }
.problem__scene { position: relative; margin-top: 56px; aspect-ratio: 16 / 9; overflow: hidden; }
.scene__before, .scene__after { position: absolute; inset: 0; }
.scene__before picture, .scene__after picture { position: absolute; inset: 0; }
.scene__before video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s; }
.scene__before video.is-playing { opacity: 1; }
.scene__before.is-still video { opacity: 0; }
.scene__after { clip-path: inset(0 0 0 50%); }
.scene__edge { position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; margin-left: -2px; background: var(--accent); }
.problem__lines, .problem__answer { padding: 40px var(--m) 0; display: grid; gap: 18px; }
.answer__big { color: var(--accent); }

/* ============ 3. RIVELAZIONE ============ */
.reveal { position: relative; margin-top: var(--gap); }
.reveal__stage { position: relative; min-height: 100svh; overflow: hidden; display: grid; place-items: center; background: #000; }
.reveal { background: #000; }
.reveal__phone { position: absolute; inset: 0; perspective: 1200px; }
.reveal__phone picture, .reveal__phone canvas, .reveal__phone video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reveal__phone canvas { opacity: 0; }
.reveal__phone canvas.is-ready { opacity: 1; }
.reveal__phone video { opacity: 0; transition: opacity .6s; }
.reveal__phone video.is-playing { opacity: 1; }
.reveal__title { position: absolute; top: clamp(90px, 12vh, 140px); left: var(--m); right: var(--m); text-align: center; z-index: 2; }
.reveal__notes { position: relative; z-index: 2; align-self: end; justify-self: stretch; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 32px; padding: 0 var(--m) 56px; }
.m .reveal__notes { align-self: stretch; position: absolute; inset: 0; display: block; padding: 0; pointer-events: none; }
.m .reveal__notes li { position: absolute; max-width: 15ch; }
.m .reveal__notes li:nth-child(1) { left: var(--m); top: 40%; }
.m .reveal__notes li:nth-child(2) { right: var(--m); top: 46%; text-align: right; }
.m .reveal__notes li:nth-child(3) { left: var(--m); top: 70%; }
.m .reveal__notes li:nth-child(4) { right: var(--m); top: 76%; text-align: right; }

/* ============ 4. DEMO ============ */
.demo { padding: var(--gap) var(--m) 0; }
.demo__head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 32px; align-items: end; margin-bottom: 72px; }
.demo__intro { max-width: 52ch; }
.demo__intro strong { color: var(--accent); font-weight: 600; }
.demo__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 4fr); gap: clamp(20px, 3vw, 48px); align-items: start; }
.demo__controls { display: grid; gap: 22px; align-content: start; }
.demo__ask { color: var(--muted); font-size: 16px; margin-top: 6px; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 4px; gap: 4px; justify-self: start; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 10px 16px; min-height: 44px; border-radius: 999px; font-size: 15px; font-weight: 500; cursor: pointer; color: var(--muted); transition: background-color .25s, color .25s; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--accent-ink); }
.switch-row { display: flex; align-items: center; gap: 14px; font-size: 16px; }
.toggle { position: relative; flex: none; width: 58px; height: 34px; border-radius: 999px; border: 0; background: var(--surface-3); cursor: pointer; transition: background-color .3s var(--ease); }
.toggle span { position: absolute; top: 4px; left: 4px; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); transition: transform .35s var(--ease), background-color .3s; }
.toggle[aria-checked="true"] { background: var(--accent); }
.toggle[aria-checked="true"] span { transform: translateX(24px); background: var(--accent-ink); }
.chips { display: grid; gap: 10px; }
.chips button { text-align: left; border: 0; background: var(--surface-2); color: var(--ink); padding: 14px 18px; border-radius: 14px; font-size: 16px; line-height: 1.35; cursor: pointer; transition: background-color .25s, color .25s, transform .25s var(--ease); }
.chips button:hover:not(:disabled) { background: var(--surface-3); transform: translateX(4px); }
.chips button:disabled { opacity: .45; cursor: default; }
.chips button[data-done] { opacity: .4; }
.demo__restart { justify-self: start; }

.phone { justify-self: center; width: min(100%, 360px); aspect-ratio: 9 / 18.5; background: #000; border-radius: 46px; padding: 10px; }
.phone__screen { height: 100%; border-radius: 37px; background: var(--surface); overflow: hidden; display: grid; grid-template-rows: auto auto 1fr auto; }
.phone__tag { font-size: 12.5px; text-align: center; padding: 14px 10px 6px; color: var(--muted); }
.phone__site { padding: 8px 18px 14px; background: var(--surface-2); }
.phone__site strong { font: 600 22px/1.1 var(--display); letter-spacing: -.02em; display: block; }
.meta { font-size: 13px; color: var(--muted); margin-top: 4px; }
.meta b { color: var(--accent); font-weight: 600; }
.demo[data-state="chiuso"] .meta b { color: #ff8a6b; }
.phone__actions { display: flex; gap: 8px; margin-top: 12px; }
.phone__actions span { flex: 1; text-align: center; font-size: 13px; font-weight: 600; padding: 9px 6px; border-radius: 999px; background: var(--surface-3); }
.phone__actions span:first-child { background: var(--accent); color: var(--accent-ink); }
.chat { overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.msg { max-width: 86%; padding: 10px 13px; border-radius: 16px; font-size: 14px; line-height: 1.42; }
.msg small { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 3px; }
.msg--bot { background: var(--surface-3); border-bottom-left-radius: 6px; }
.msg--me { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 6px; }
.msg--typing { color: var(--muted); }
.phone__foot { font-size: 11.5px; color: var(--muted); padding: 10px 16px 18px; text-align: center; }

.dash { background: var(--surface); border-radius: 28px; padding: 24px; display: grid; gap: 18px; min-height: 100%; align-content: start; }
.dash__top { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.dash__top b { display: block; font: 600 20px/1.2 var(--display); }
.dash__top span { font-size: 13px; color: var(--muted); }
.dash__clock { font: 500 28px/1 var(--display) !important; color: var(--ink) !important; font-variant-numeric: tabular-nums; }
.dash__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dash__stats div { background: var(--surface-2); border-radius: 14px; padding: 12px; }
.dash__stats span { display: block; font-size: 13px; color: var(--muted); }
.dash__stats b { font: 600 24px/1.2 var(--display); font-variant-numeric: tabular-nums; }
.dash__list { display: grid; gap: 10px; min-height: 180px; align-content: start; }
.dash__empty { color: var(--muted); font-size: 15px; padding: 18px 0; }
.notif { background: var(--surface-2); border-radius: 16px; padding: 14px 16px; font-size: 14.5px; line-height: 1.4; }
.notif b { display: block; font-size: 16px; margin: 2px 0; }
.notif__top { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.notif__top span:first-child::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 1px; }
.notif__ok { display: flex; gap: 8px; margin-top: 10px; }
.notif__ok button { border: 0; border-radius: 999px; padding: 8px 14px; min-height: 36px; font-size: 13.5px; font-weight: 600; cursor: pointer; background: var(--surface-3); transition: background-color .2s, color .2s; }
.notif__ok button:first-child { background: var(--accent); color: var(--accent-ink); }
.notif.is-confirmed .notif__ok { display: none; }
.notif__done { display: none; margin-top: 8px; color: var(--accent); font-size: 13.5px; font-weight: 600; }
.notif.is-confirmed .notif__done { display: block; }
.dash__foot { font-size: 14px; color: var(--muted); }

/* ============ 5/9. MACRO ============ */
.macro { position: relative; margin-top: var(--gap); }
.macro__stage { position: relative; height: 100svh; min-height: 520px; overflow: hidden; }
.macro__media { position: absolute; inset: 0; overflow: hidden; }
.macro__media picture, .macro__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.macro__media video { opacity: 0; transition: opacity .6s; }
.macro__media video.is-playing { opacity: 1; }
.macro__text { position: absolute; left: var(--m); bottom: clamp(32px, 7vh, 72px); z-index: 2; max-width: 22ch; font-size: clamp(28px, 3.4vw, 36px); }

/* ============ 6. CHIAMATA ============ */
.call { padding: var(--gap) var(--m) 0; }
.call__head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 32px; align-items: end; margin-bottom: 72px; }
.call__head p { max-width: 52ch; }
.call__head strong { color: var(--accent); font-weight: 600; }
.call__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 96px); align-items: start; }
.call__wave { position: sticky; top: 110px; background: var(--surface); border-radius: 28px; padding: 24px; display: grid; gap: 16px; }
.call__meta { display: flex; gap: 12px; align-items: center; font-size: 14px; color: var(--muted); }
.call__meta span:nth-child(2) { flex: 1; }
.call__meta #call-time { font-variant-numeric: tabular-nums; }
.call__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.wave { width: 100%; height: 200px; }
.call__speaker { font: 500 22px/1.2 var(--display); min-height: 1.2em; }
.call__wave .link { justify-self: start; }
.transcript { display: grid; gap: 22px; }
.t { font: 400 clamp(19px, 1.6vw, 24px)/1.42 var(--text); max-width: 38ch; }
.t b { display: block; font: 500 14px/1.4 var(--text); color: var(--muted); margin-bottom: 4px; }
.t--ai b { color: var(--accent); }
.t--me { color: var(--muted); padding-left: clamp(0px, 4vw, 64px); }
.t--sum { background: var(--accent); color: var(--accent-ink); border-radius: var(--r); padding: 18px 20px; font-size: 18px; }
.t--sum b { color: var(--accent-ink); opacity: .75; }
.js .transcript.is-armed .t { opacity: .12; transition: opacity .5s var(--ease), transform .5s var(--ease); transform: translateY(8px); }
.js .transcript.is-armed .t.is-on { opacity: 1; transform: none; }

/* ============ 7. BANDE ============ */
.bands { margin-top: var(--gap); }
.bands__title { padding: 0 var(--m) 56px; }
.band { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; min-height: 20vh; padding: 28px var(--m); transition: background-color .45s var(--ease); }
.band.is-on { background: var(--surface-2); }
.band__q { font: 500 clamp(26px, 3.4vw, 54px)/1.08 var(--display); letter-spacing: -.03em; color: var(--muted); transition: color .35s; }
.band.is-on .band__q { color: var(--ink); }
.band__a { max-width: 60ch; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .5s var(--ease), opacity .35s, margin .45s var(--ease); font-size: 17px; }
.band.is-on .band__a { opacity: 1; max-height: 8em; margin-top: 10px; }
.band .toggle { width: 74px; height: 42px; }
.band .toggle span { width: 34px; height: 34px; }
.band .toggle[aria-checked="true"] span { transform: translateX(32px); }

/* ============ 8. SERVIZI ============ */
.services { padding: var(--gap) var(--m) 0; }
.services__head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 32px; align-items: end; margin-bottom: 96px; }
.services__head p { max-width: 48ch; }
.svc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 6vw, 120px); align-items: center; padding: 56px 0; }
.svc + .svc { margin-top: 48px; }
.svc--flip .svc__text { order: 2; }
.svc__text { display: grid; gap: 18px; justify-items: start; }
.svc__text ul { display: grid; gap: 8px; }
.svc__text li { padding-left: 22px; position: relative; }
.svc__text li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.soon { color: var(--accent); font-weight: 600; }
.svc__frag { background: var(--surface); border-radius: 32px; padding: clamp(24px, 4vw, 64px); display: grid; place-items: center; min-height: 420px; overflow: hidden; }
.frag { width: min(100%, 420px); background: var(--surface-2); border-radius: 22px; padding: 22px; display: grid; gap: 8px; font-size: 15px; }
.frag small { font-size: 13px; color: var(--muted); }
.frag > b { font: 600 24px/1.15 var(--display); letter-spacing: -.02em; }
.frag__open { color: var(--accent); font-weight: 600; }
.frag__btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.frag__btns span { padding: 8px 14px; border-radius: 999px; background: var(--surface-3); font-size: 14px; font-weight: 500; }
.frag__btns .ok, .frag__btns span:first-child { background: var(--accent); color: var(--accent-ink); }
.frag__hours { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; margin-top: 10px; padding-top: 12px; color: var(--muted); font-size: 14px; }
.frag__row { display: flex; justify-content: space-between; padding: 10px 0; font-size: 16px; }
.frag__row span:last-child { font-variant-numeric: tabular-nums; color: var(--muted); }
.frag__cta { margin-top: 8px; text-align: center; background: var(--accent); color: var(--accent-ink); font-weight: 600; padding: 12px; border-radius: 999px; }
.frag--call p { font-size: 16px; line-height: 1.45; }

/* ============ 10. COME FUNZIONA ============ */
.steps { margin-top: var(--gap); }
.steps__split { display: grid; grid-template-columns: 1fr 1fr; min-height: 78svh; }
.steps__clause { background: var(--surface); padding: clamp(40px, 6vw, 96px) var(--m); display: grid; align-content: space-between; gap: 40px; }
.steps__big { max-width: 15ch; font-size: clamp(38px, 4.8vw, 84px); }
.steps__note { max-width: 44ch; }
.steps__frag { background: var(--surface-2); display: grid; place-items: center; padding: 48px var(--m); }
.card { width: min(100%, 420px); background: var(--bg); border-radius: 24px; padding: 24px; display: grid; gap: 12px; }
.card__h { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); }
.card strong { font: 600 24px/1.2 var(--display); }
.card ul { display: grid; gap: 10px; }
.card li { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.card li i { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-3); }
.card li i.ok { background: var(--accent); }
.card li i.ok::after { content: ""; display: block; width: 6px; height: 10px; margin: 4px auto 0; border: solid var(--accent-ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.card .tag { justify-self: start; margin-top: 6px; background: var(--surface-3); border-radius: 999px; padding: 6px 12px; font-size: 13.5px; font-weight: 600; }
.card .tag--ok { background: var(--accent); color: var(--accent-ink); }
.steps__rail { padding: 36px var(--m) 0; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; margin: 0; --p: 0%; }
input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 999px; background: linear-gradient(to right, var(--ink) var(--p), var(--surface-3) var(--p)); } /* taste-skill-ignore: riempimento nativo del cursore a fasi */
input[type="range"]::-moz-range-track { height: 8px; border-radius: 999px; background: var(--surface-3); }
input[type="range"]::-moz-range-progress { height: 8px; border-radius: 999px; background: var(--ink); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 32px; height: 32px; margin-top: -12px; border-radius: 50%; background: var(--accent); border: 0; transition: transform .2s; }
input[type="range"]::-moz-range-thumb { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); border: 0; }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
.steps__names { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 10px; font-size: 16px; color: var(--muted); }
.steps__names li { cursor: pointer; transition: color .25s; }
.steps__names li:nth-child(2) { text-align: center; text-align: left; }
.steps__names li:last-child { text-align: right; }
.steps__names li.is-on { color: var(--ink); }
.steps__names li:hover { color: var(--accent); }

/* ============ 11. PREZZI ============ */
.prices { padding: var(--gap) var(--m) 0; }
.prices__head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 32px; align-items: end; margin-bottom: 72px; }
.prices__head p { max-width: 48ch; }
.plans { display: grid; gap: 8px; }
.plan { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 3fr) minmax(0, 4fr) minmax(0, 2fr); gap: 24px 32px; align-items: start; padding: clamp(28px, 3.4vw, 48px) clamp(20px, 2.6vw, 40px); border-radius: 28px; background: var(--surface); transition: background-color .35s; }
.plan:hover { background: var(--surface-2); }
.plan--pick { background: var(--surface-2); }
.plan__price b { display: inline-block; font: 600 clamp(40px, 4.6vw, 80px)/1 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.plan--pick .plan__price b { background: var(--accent); color: var(--accent-ink); padding: .06em .16em; border-radius: 10px; }
.plan__price span { display: block; color: var(--muted); margin-top: 10px; font-size: 16px; }
.plan ul { display: grid; gap: 8px; font-size: 16.5px; }
.plan li { padding-left: 22px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--surface-3); }
.plan--pick li::before { background: var(--accent); }
.plan .btn { justify-self: end; }
.prices__more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 72px; }
.extra { display: grid; gap: 10px; align-content: start; }
.extra p, .extra li { color: var(--ink); font-size: 16.5px; }
.extra ul { display: grid; gap: 6px; }
.fiscal { margin-top: 56px; color: var(--muted); font-size: 14px; max-width: 90ch; }

/* ============ 12. CHI SONO ============ */
.about { padding: var(--gap) var(--m) 0; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 10fr); gap: 32px; }
.about__facts { display: grid; gap: 18px; align-content: start; font-size: 14px; color: var(--muted); padding-top: 10px; }
.about__facts b { display: block; color: var(--ink); font-weight: 600; }
.about__text { display: grid; gap: 1.2em; }
.about__p { font: 400 clamp(24px, 2.5vw, 36px)/1.24 var(--display); letter-spacing: -.02em; max-width: 34ch; }
.about__p strong { font-weight: 600; }
.about__p--soft { color: var(--muted); }
.portrait { float: left; width: 3.6em; height: 3.6em; margin: .2em .5em 0 0; background: var(--surface-2); border-radius: 12px; display: grid; place-items: center; text-align: center; }
.portrait span { font: 500 13px/1.3 var(--text); color: var(--muted); letter-spacing: 0; padding: 6px; }

/* ============ 13. PROVE ============ */
.proof { padding: var(--gap) var(--m) 0; }
.proof__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 32px; margin-top: 64px; align-items: start; }
.proof__num b { display: block; font: 600 clamp(140px, 22vw, 360px)/.82 var(--display); letter-spacing: -.06em; color: var(--accent); font-variant-numeric: tabular-nums; }
.proof__num span { display: block; max-width: 30ch; margin-top: 18px; font-size: 18px; }
.proof__list { display: grid; gap: 28px; padding-top: 12px; }
.proof__list p { max-width: 46ch; }
.proof__list b { font-weight: 600; }
.proof__places { margin-top: 80px; max-width: 40ch; color: var(--muted); }
.proof__places span { color: var(--muted); transition: color .4s; }
.proof__places span.is-lit { color: var(--ink); }

/* ============ 14. DOMANDE ============ */
.faq { padding: var(--gap) var(--m) 0; display: grid; gap: clamp(48px, 6vw, 84px); }
.faq__row { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 1fr) minmax(0, 5fr); gap: 16px 0; align-items: start; }
.faq__row h3, .faq__row h2 { grid-column: 1; max-width: 22ch; }
.faq__row p { grid-column: 3; max-width: 44ch; font-size: 17.5px; padding-top: .2em; }
.faq__h { color: var(--muted); }

/* ============ 15. CTA ============ */
.cta { margin-top: var(--gap); background: var(--accent); color: var(--accent-ink); min-height: 92svh; padding: clamp(80px, 12vh, 140px) var(--m) clamp(32px, 6vh, 56px); display: grid; grid-template-rows: 1fr auto; gap: 56px; }
.cta__title span { display: block; }
.cta__foot { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 1fr) minmax(0, 6fr); align-items: end; }
.cta__foot > p { font-size: 20px; max-width: 36ch; grid-column: 1; }
.form { grid-column: 3; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; }
.form label { grid-column: 1 / -1; font-weight: 600; font-size: 16px; }
.form input { grid-column: 1 / -1; height: 60px; border: 0; border-radius: 999px; padding: 0 24px; font: 500 20px/1 var(--text); background: rgba(10,11,7,.1); color: var(--accent-ink); }
.form input::placeholder { color: rgba(10,11,7,.55); }
.form input:focus-visible { outline: 3px solid var(--accent-ink); }
.seg--dark { background: rgba(10,11,7,.1); }
.seg--dark button { color: rgba(10,11,7,.72); }
.seg--dark button:hover { color: var(--accent-ink); }
.seg--dark button[aria-pressed="true"] { background: var(--accent-ink); color: var(--accent); }
.form .btn { min-height: 56px; }
.form__note { grid-column: 1 / -1; font-size: 14px; opacity: .8; }
.cta :focus-visible { outline-color: var(--accent-ink); }

/* ============ FOOTER ============ */
.foot { background: var(--bg); min-height: 80svh; padding: 40px var(--m) 28px; display: grid; grid-template-rows: auto 1fr auto; gap: 48px; }
.foot__top { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 32px; align-items: start; }
.foot__logo { width: 120px; display: block; }
.foot__notes { display: grid; grid-template-columns: repeat(2, minmax(0, 32ch)); gap: 32px; font-size: 15px; color: var(--muted); }
.foot__contact { align-self: end; font: 600 clamp(64px, 15vw, 280px)/.86 var(--display); letter-spacing: -.055em; text-decoration: none; transition: color .3s; word-break: break-word; }
.foot__contact:hover { color: var(--accent); }
.foot__meta { display: grid; grid-template-columns: 1fr 1fr auto; gap: 16px 32px; font-size: 14px; color: var(--muted); }
.foot__meta p:nth-child(2) { text-align: center; }
.foot__meta a { color: var(--ink); }

/* ============ CURSORE ============ */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .has-cursor .cursor { display: block; position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; }
  .has-cursor .cursor span { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--accent); transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background-color .3s, opacity .3s; }
  .has-cursor .cursor.is-link span { width: 54px; height: 54px; margin: -27px 0 0 -27px; background: rgba(198,244,50,.18); }
  .has-cursor .cursor.is-hidden span { opacity: 0; }
}

/* ============ INTRO ============ */
.intro { display: none; }
.m .intro { pointer-events: none; display: grid; place-items: center; position: fixed; inset: 0; z-index: 80; background: var(--bg); }
.intro__logo { width: min(46vw, 300px); color: var(--ink); }
.intro__logo svg { width: 100%; height: auto; display: block; }
.intro__dot { position: fixed; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); transform: scale(0); left: 0; top: 0; }
.m.intro-done .intro { display: none; }
.m .intro { animation: intro-safety 0s 5s forwards; }
@keyframes intro-safety { to { visibility: hidden; } }

/* ======================================================================
   SCENE CON SCROLL — solo quando il movimento è attivo (classe .m su <html>)
   Senza .m (niente JS o movimento ridotto) la pagina è un racconto statico.
   ====================================================================== */
.m .hero { height: 250vh; }
.m .hero__stage { position: sticky; top: 0; }
.m .problem { height: 560vh; padding-top: 0; margin-top: 0; }
.m .problem__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.m .problem__sentence { position: absolute; inset: 0; display: grid; align-content: center; z-index: 3; }
.m .problem__scene { position: absolute; inset: 0; margin: 0; aspect-ratio: auto; z-index: 2; clip-path: inset(40% 40% 40% 40% round 20px); }
.m .scene__after { clip-path: inset(0 0 0 100%); }
.m .scene__edge { left: 100%; opacity: 0; }
.m .slot { background: transparent; }
.m .problem__lines, .m .problem__answer { pointer-events: none; position: absolute; left: 0; right: 0; top: clamp(96px, 15vh, 150px); padding: 0 var(--m); z-index: 4; display: block; }
.m .problem__lines .st, .m .problem__answer .st { position: absolute; left: var(--m); top: 0; opacity: 0; visibility: hidden; }
.m .problem__answer .answer__big { position: absolute; left: var(--m); top: 0; opacity: 0; visibility: hidden; font-size: clamp(54px, 9vw, 160px); }
.m .problem__answer .answer__line { top: calc(clamp(54px, 9vw, 160px) * 1.05 + 12px); }
.m .reveal { height: 320vh; margin-top: 0; }
.m .reveal__stage { position: sticky; top: 0; height: 100svh; }
.m .reveal__title, .m .reveal__notes li { opacity: 0; visibility: hidden; }
.m .macro { height: 230vh; margin-top: 0; }
.m .macro__stage { position: sticky; top: 0; }
.m .macro__media { clip-path: inset(22% 26% 22% 26% round 28px); }
.m .macro__text { opacity: 0; visibility: hidden; }
.m .demo { padding-top: clamp(80px, 10vw, 160px); }
.m .call { padding-top: var(--gap); }

/* parole divise per l'entrata dei titoli */
.split-line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }

/* ============ TELEFONO (≤ 900px) ============ */
@media (max-width: 1100px) {
  .demo__grid { grid-template-columns: 1fr 1fr; }
  .demo__controls { grid-column: 1 / -1; }
  .plan { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .plan .btn { justify-self: start; }
}
@media (max-width: 760px) {
  :root { --fs-body: 17px; }
  body { font-size: 17px; }
  .bar { padding: 14px 16px; }
  .bar__logo { width: 96px; }
  .bar__nav a:not(.btn) { display: none; }
  .bar__nav { gap: 0; flex: none; }
  .lbl-long { display: none; }
  .lbl-short { display: inline; }
  .hero__copy { padding-top: 96px; }
  .hero__media { bottom: auto; height: min(133.34vw, 70svh); transform-origin: 56% 80%; }
  .hero__media .scrim--bottom { height: 40%; background: linear-gradient(rgba(7,7,7,0), #070707); } /* taste-skill-ignore: scrim neutro sotto il testo */
  .hero__stage { background: var(--bg); }
  .reveal__phone picture img { object-fit: contain; object-position: 50% 58%; }
  .hero h1 { font-size: clamp(50px, 15.2vw, 80px); }
  .hero__foot { grid-template-columns: 1fr; gap: 18px; }
  .hero__sectors { justify-self: start; }
  .hero__lead { font-size: 16.5px; }
  .problem h2 { font-size: clamp(30px, 8.6vw, 48px); row-gap: .18em; }
  .problem h2 .ln { flex-basis: 100%; }
  .slot { width: 100%; height: auto; aspect-ratio: 3 / 2; border-radius: 14px; }
  .m .problem__scene { clip-path: inset(40% 16px 40% 16px round 14px); }
  .m .problem__answer .answer__big { font-size: 15vw; }
  .macro__text { font-size: 24px; }
  .m .macro__media { clip-path: none; top: 9svh; bottom: auto; height: min(133.34vw, 74svh); }
  .macro__stage { background: var(--bg); }
  .reveal__title { top: 88px; }
  .m .reveal__notes li { max-width: none; left: 16px !important; right: 16px !important; top: auto !important; bottom: 40px; text-align: left !important; font-size: 24px; }
  .m .reveal { height: 300vh; }
  .demo__head, .call__head, .services__head, .prices__head { grid-template-columns: 1fr; margin-bottom: 48px; }
  .demo__grid { grid-template-columns: 1fr; }
  .phone { width: min(100%, 340px); }
  .call__grid { grid-template-columns: 1fr; }
  .call__wave { position: relative; top: 0; }
  .wave { height: 120px; }
  .band { min-height: 132px; padding: 22px 16px; }
  .band__q { font-size: clamp(22px, 6.4vw, 30px); }
  .svc, .svc--flip { grid-template-columns: 1fr; padding: 24px 0; }
  .svc--flip .svc__text { order: 0; }
  .svc__frag { min-height: 0; border-radius: 24px; padding: 20px; }
  .steps__split { grid-template-columns: 1fr; min-height: 0; }
  .steps__frag { order: -1; min-height: 46svh; padding: 28px 16px; }
  .steps__clause { padding: 32px 16px; }
  .steps__big { font-size: clamp(34px, 9vw, 48px); }
  .steps__names { grid-template-columns: 1fr 1fr; gap: 8px; font-size: 15px; }
  .steps__names li, .steps__names li:last-child { text-align: left; }
  .plan { grid-template-columns: 1fr; border-radius: 22px; }
  .prices__more { grid-template-columns: 1fr; gap: 36px; }
  .about { grid-template-columns: 1fr; }
  .about__facts { order: 2; grid-template-columns: repeat(3, 1fr); gap: 10px; font-size: 13px; }
  .about__p { font-size: 22px; line-height: 1.26; }
  .portrait { width: 5em; height: 5em; }
  .proof__grid { grid-template-columns: 1fr; }
  .faq__row { grid-template-columns: 1fr; }
  .faq__row p { grid-column: 1; }
  .faq__row h3, .faq__row h2 { font-size: 24px; }
  .cta { min-height: 80svh; }
  .cta__title { font-size: clamp(48px, 15vw, 72px); }
  .cta__foot { grid-template-columns: 1fr; gap: 32px; }
  .cta__foot > p { font-size: 17px; }
  .form { grid-column: 1; grid-template-columns: 1fr; }
  .form .btn { width: 100%; }
  .foot__top { grid-template-columns: 1fr auto; }
  .foot__notes { grid-column: 1 / -1; grid-row: 2; grid-template-columns: 1fr; gap: 12px; }
  .foot__contact { font-size: 22vw; }
  .foot__meta { grid-template-columns: 1fr; font-size: 13px; }
  .foot__meta p:nth-child(2) { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ============ PAGINE LEGALI ============ */
.legal { max-width: 760px; margin: 0 auto; padding: 32px var(--m) 80px; }
.legal .bar { position: static; padding: 0 0 56px; }
.legal .bar a { width: 110px; display: block; color: var(--ink); }
.legal .bar svg { width: 100%; height: auto; }
.legal .bar nav a { width: auto; font-size: 15px; }
.legal .head { font: 600 clamp(40px, 6vw, 72px)/1 var(--display); letter-spacing: -.04em; margin-bottom: 24px; }
.legal h2 { font: 600 24px/1.2 var(--display); letter-spacing: -.02em; margin: 44px 0 12px; }
.legal p, .legal li { margin-bottom: 12px; max-width: 68ch; }
.legal ul { list-style: disc; padding-left: 22px; }
.legal .draft { background: var(--surface-2); color: var(--accent); padding: 14px 18px; border-radius: 14px; font-size: 15px; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 16px; }
.legal th, .legal td { text-align: left; padding: 12px; vertical-align: top; border-bottom: 1px solid var(--surface-3); }
.legal th { color: var(--muted); font-weight: 600; }
.legal-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 28px var(--m); color: var(--muted); font-size: 14px; max-width: 760px; margin: 0 auto; }

/* zoom guidato dallo scroll: vale per foto e video insieme */
.scene__before > picture, .scene__before > video, .macro__media > picture, .macro__media > video { transform: scale(var(--s, 1)); }
.hero__canvas, .seq-canvas { transition: opacity .6s var(--ease); }
.seq-canvas.is-ready { background: #000; }
