/* /fiera — "il punto": i colori del biglietto (nero, carta, arancione) in chiave morbida.
   Fondo nero caldo, la sfera arancione che vive dietro la pagina (orb.js), fogli color carta
   arrotondati, vetro, raggi grandi. Regole in DESIGN.md. */

:root {
  --ink: var(--ds-ink);
  --ink-2: #161615;
  --paper: var(--ds-paper);
  --paper-hi: var(--ds-paper-hi);
  --paper-top: var(--ds-paper-top);
  --orange: var(--ds-orange);
  --peach: var(--ds-peach);
  --ember: var(--ds-ember);

  --font-head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --r-s: 14px; --r-m: 22px; --r-l: 32px; --r-xl: 44px; --r-full: 999px;
  --wrap: 1240px;
  --pad: clamp(18px, 4vw, 40px);
  --sec: clamp(88px, 12vw, 168px);
  --spring: cubic-bezier(.2, .9, .25, 1.12);
  --soft: cubic-bezier(.22, .8, .24, 1);

  /* tema scuro (default) */
  --fg: var(--ds-paper);
  --fg-2: var(--ds-body-on-ink);
  --fg-3: var(--ds-muted-on-ink);
  --em: var(--ds-paper);
  --fg-lead: #a5a6a1;
  --surface: color-mix(in srgb, var(--ds-paper) 5%, transparent);
  --surface-2: color-mix(in srgb, var(--ds-paper) 9%, transparent);
  --line: color-mix(in srgb, var(--ds-paper) 11%, transparent);
  --spot: color-mix(in srgb, var(--ds-paper) 10%, transparent);
  color-scheme: dark;
}
/* foglio chiaro */
.sheet {
  --fg: var(--ds-ink);
  --fg-2: #2e2f2c;
  --fg-3: var(--ds-muted-on-sunk);
  --em: var(--ds-ink);
  --fg-lead: #6a6b67;
  --surface: var(--paper-top);
  --surface-2: color-mix(in srgb, var(--ds-ink) 6%, transparent);
  --line: color-mix(in srgb, var(--ds-ink) 9%, transparent);
  --spot: color-mix(in srgb, var(--ds-orange) 7%, transparent);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; background: var(--ink); scrollbar-color: var(--ds-muted-on-paper) var(--ink); interpolate-size: allow-keywords; }
body { margin: 0; background: var(--ink); color: var(--fg-2); font-family: var(--font-body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; caret-color: var(--orange); }
img, svg { max-width: 100%; display: block; }
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(--orange); color: var(--ink); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -64px; z-index: 300; background: var(--orange); color: var(--ink); padding: 12px 18px; border-radius: var(--r-full); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* la sfera */
#orb { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
html.no-webgl #orb { display: none; }
html.no-webgl body::before { content: ""; position: fixed; right: -12vw; top: 8vh; width: 62vw; height: 62vw; border-radius: 50%; background: radial-gradient(circle, var(--peach), var(--orange) 34%, transparent 70%); filter: blur(30px); opacity: .75; pointer-events: none; }
.grain { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E"); }
main, .site-footer { position: relative; z-index: 2; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.sec { padding-block: var(--sec); position: relative; }

/* ── TIPOGRAFIA ── */
.h1, .h2, .h3 { font-family: var(--font-head); color: var(--fg); margin: 0; text-wrap: balance; font-stretch: 104%; }
.h1, .h2 { color: var(--fg-lead); }
.h1 { font-size: clamp(44px, 6.6vw, 100px); line-height: 1; font-weight: 550; letter-spacing: -0.04em; }
.h2 { font-size: clamp(36px, 5.2vw, 76px); line-height: 1.03; font-weight: 550; letter-spacing: -0.038em; }
.h3 { font-size: clamp(21px, 2vw, 26px); line-height: 1.2; font-weight: 600; letter-spacing: -0.022em; }
/* seconda voce del titolo: Archivo Expanded, il carattere del logo DS2. Niente corsivo */
.h1 em, .h2 em { font-family: var(--font-head); font-style: normal; font-stretch: 125%; font-weight: 760; font-size: .9em; letter-spacing: -0.05em; color: var(--em); }
.h2 em { display: block; }
.ds-dot { white-space: nowrap; }
.ds-dot::after { content: ""; display: inline-block; width: .19em; height: .19em; margin-left: .05em; border-radius: 50%; background: var(--orange); }
.lead { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.5; color: var(--fg-2); max-width: 44ch; text-wrap: pretty; }
.micro, .caption { font-size: 14px; line-height: 1.5; color: var(--fg-3); }
.body { max-width: 56ch; text-wrap: pretty; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; letter-spacing: -0.005em; color: var(--fg-2); padding: 8px 16px 8px 12px; border-radius: var(--r-full); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 color-mix(in srgb, var(--ds-orange) 55%, transparent); animation: ping 2.6s var(--soft) infinite; }
@keyframes ping { 70%, 100% { box-shadow: 0 0 0 9px transparent; } }
.head { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; margin-bottom: clamp(44px, 6vw, 80px); }
.head--c { align-items: center; text-align: center; margin-inline: auto; }
.head--c .h2 em { display: block; }
.head--c .lead { max-width: 52ch; }

/* ── BOTTONI ── */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; padding: 0 28px; border: 0; border-radius: var(--r-full); font-family: var(--font-body); font-size: 16px; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; cursor: pointer; white-space: nowrap; transition: box-shadow .35s var(--soft), background .25s, color .25s; will-change: transform; }
.btn .ico { width: 18px; height: 18px; stroke-width: 2.2; transition: transform .35s var(--spring); }
.btn:hover .ico { transform: translateX(4px); }
.btn--primary { background: var(--orange); color: var(--ink); box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 34%, transparent), 0 10px 24px -14px color-mix(in srgb, var(--ds-orange) 55%, transparent); }
.btn--primary:hover { background: var(--ds-orange-hover); box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 40%, transparent), 0 14px 30px -14px color-mix(in srgb, var(--ds-orange) 70%, transparent); }
.btn--glass { background: var(--surface-2); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.btn--glass:hover { background: color-mix(in srgb, var(--ds-paper) 15%, transparent); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--s { min-height: 44px; padding: 0 20px; font-size: 14px; }
.btn--ink { background: var(--ink); color: var(--paper); box-shadow: 0 14px 30px -14px color-mix(in srgb, var(--ds-ink) 70%, transparent); }
.btn--ink:hover { background: var(--ink-2); }
.link { display: inline-flex; align-items: center; gap: 8px; color: var(--fg); font-weight: 600; font-size: 15px; text-decoration: none; }
.link .ico { width: 16px; height: 16px; stroke-width: 2.2; transition: transform .35s var(--spring); }
.link:hover .ico { transform: translateX(4px); }

/* ── NAV: pillola di vetro ── */
.site-nav { position: fixed; top: 14px; left: 50%; translate: -50% 0; z-index: 200; width: min(calc(100% - 24px), 1180px); }
.site-nav__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 8px 8px 24px; border-radius: var(--r-full); background: color-mix(in srgb, var(--ds-ink) 84%, transparent); -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ds-paper) 12%, transparent), 0 14px 40px -18px color-mix(in srgb, var(--ds-ink) 80%, transparent); }
.logo { font-family: var(--font-head); font-weight: 800; font-stretch: 125%; font-size: 21px; letter-spacing: -0.03em; color: var(--paper); text-decoration: none; }
.site-nav__links { display: flex; align-items: center; gap: 22px; }
.site-nav__links > a:not(.btn) { position: relative; font-size: 14px; font-weight: 500; color: var(--ds-body-on-ink); text-decoration: none; transition: color .25s; }
.site-nav__links > a:not(.btn):hover, .site-nav__links > a[aria-current="page"] { color: var(--paper); }
.lang { display: flex; gap: 2px; padding: 3px; border-radius: var(--r-full); background: color-mix(in srgb, var(--ds-paper) 8%, transparent); }
.lang button { background: none; border: 0; border-radius: var(--r-full); min-width: 34px; min-height: 30px; font-size: 12px; font-weight: 600; color: var(--ds-muted-on-ink); cursor: pointer; transition: color .25s, background .25s; }
.lang button:hover { color: var(--paper); }
.lang button.active { background: var(--paper); color: var(--ink); }
.nav-cta--mob { display: none; }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; background: color-mix(in srgb, var(--ds-paper) 10%, transparent); border: 0; border-radius: 50%; color: var(--paper); cursor: pointer; }
.nav-toggle .ico { width: 20px; height: 20px; }

.ico { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ── HERO ── */
.hero { min-height: min(100svh, 980px); display: flex; align-items: center; padding-block: 128px 72px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__visual { position: relative; perspective: 1400px; animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px); } }
.typed .t-off { color: transparent; }
.typed.typing .ds-dot::after { visibility: hidden; }
.typed .caret { position: relative; }
.typed .caret::after { content: ""; position: absolute; left: 3px; top: .1em; width: 3px; height: .86em; border-radius: 2px; background: var(--orange); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* ── CARD ── */
.card { position: relative; overflow: hidden; border-radius: var(--r-l); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); padding: clamp(22px, 2.6vw, 34px); isolation: isolate; }
.sheet .card { box-shadow: inset 0 0 0 1px var(--line), 0 24px 50px -36px color-mix(in srgb, var(--ds-ink) 35%, transparent); }
.card--glass { background: color-mix(in srgb, var(--ink-2) 72%, transparent); -webkit-backdrop-filter: blur(24px) saturate(140%); backdrop-filter: blur(24px) saturate(140%); }
/* luce che segue il mouse (motion.js scrive --mx e --my) */
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), var(--spot), transparent 72%); transition: opacity .4s; }
.card:hover::before { opacity: 1; }

/* ── PROVA ── */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.proof .bento > :nth-child(1) { grid-column: span 12; }
.proof .bento > :nth-child(n+2) { grid-column: span 4; }
.proof-who { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.proof-who__l { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.proof-who__logo { display: block; width: 180px; height: 32px; background: var(--fg); -webkit-mask: url(/LP/gioel.svg) no-repeat left center / contain; mask: url(/LP/gioel.svg) no-repeat left center / contain; }
.stat__v { font-family: var(--font-head); font-weight: 550; font-stretch: 104%; font-size: clamp(52px, 6.4vw, 92px); line-height: 1; letter-spacing: -0.045em; color: var(--fg); white-space: nowrap; font-variant-numeric: tabular-nums; }
.stat__l { font-size: 17px; line-height: 1.4; color: var(--fg); margin-top: 16px; max-width: 26ch; }
.stat__b { font-size: 14px; line-height: 1.45; color: var(--fg-3); margin-top: 8px; max-width: 34ch; }
[data-num][data-stato="da-verificare"] { display: none !important; }
html.draft [data-num][data-stato="da-verificare"] { display: block !important; outline: 2px dashed var(--orange); outline-offset: 8px; }

/* ── FOGLI ── */
.sheet { position: relative; margin-inline: clamp(8px, 1.2vw, 18px); border-radius: clamp(32px, 4vw, 56px); background: var(--paper-hi); color: var(--fg-2); padding-block: var(--sec); overflow: clip; }
.sheet::before { content: ""; position: absolute; right: -14%; top: -22%; width: 58%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--ds-orange) 9%, transparent), transparent 66%); pointer-events: none; }
.sheet > .wrap { position: relative; }

/* ── PASSI ── */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step { display: flex; flex-direction: column; gap: 14px; min-height: 280px; }
.step__ico { width: 56px; height: 56px; margin-bottom: auto; display: grid; place-items: center; border-radius: var(--r-m); background: var(--ink); color: var(--paper); }
.step:nth-child(2) .step__ico { background: var(--orange); color: var(--ink); }
.step__ico .ico { width: 26px; height: 26px; }
.step__n { font-family: var(--font-head); font-style: normal; font-stretch: 125%; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; color: var(--em); }

/* ── DENTRO L'APP: le schermate cadono una sull'altra e si fondono nella home.
   Senza motion.js resta una pagina normale: i passi in lista e il telefono con la home. */
.shots-cap { font-size: 14px; line-height: 1.5; color: var(--fg-3); margin-top: 28px; }
.story { position: relative; margin-top: var(--sec); margin-bottom: calc(-1 * var(--sec)); }
.story__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(24px, 4vw, 60px); align-items: center; }
.story__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.story .h2 { font-size: clamp(32px, 4vw, 60px); }
.story__steps { display: grid; gap: 4px; width: 100%; max-width: 480px; margin-top: 6px; }
.story__step button { display: block; width: 100%; text-align: left; background: transparent; border: 0; border-radius: var(--r-m); padding: 10px 18px; cursor: pointer; transition: background .35s var(--soft); }
.story__step b { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 550; font-stretch: 104%; font-size: 20px; line-height: 1.25; letter-spacing: -0.02em; color: var(--fg-3); transition: color .3s; }
.story__step b::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .35; flex: none; transition: background .3s, opacity .3s; }
.story__step span { display: block; font-size: 15px; line-height: 1.45; color: var(--fg-2); padding-left: 17px; }
.story__step.is-on button { background: var(--surface); box-shadow: 0 16px 30px -24px color-mix(in srgb, var(--ds-ink) 45%, transparent); }
.story__step.is-on b { color: var(--fg); }
.story__step.is-on b::before { background: var(--orange); opacity: 1; }
.story__bar { display: none; }
.story__scene { position: relative; display: grid; place-items: center; min-height: 660px; perspective: 2000px; }
.stack__tilt, .stack__spin { position: relative; transform-style: preserve-3d; width: 312px; height: 646px; }
.stack__p { position: absolute; inset: 0; }
.stack__p:not(.stack__p--home) { display: none; }
.stack__floor { display: none; }
.story__cap { position: absolute; left: 0; right: 0; bottom: 14px; margin: 0; text-align: center; font-size: 13px; }

/* versione viva: la attiva motion.js */
.story--live { height: 350svh; margin-top: 40px; }
.story--live .story__pin { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; align-items: center; padding-top: 76px; }
.story--live .story__scene { min-height: 0; height: calc(100svh - 96px); }
.story--live .stack__tilt { position: absolute; left: 50%; top: 50%; margin: -323px 0 0 -156px; }
.story--live .story__copy { position: relative; z-index: 2; }
.story--live .story__step button { padding: 10px 18px; }
.story--live .story__step span { display: block; height: 0; opacity: 0; overflow: hidden; transition: height .4s var(--soft), opacity .35s, margin-top .4s var(--soft); }
.story--live .story__step.is-on span { height: auto; opacity: 1; margin-top: 4px; }
.story--live .stack__p { display: block; will-change: transform, opacity; backface-visibility: hidden; }
.story--live .stack__p--space { left: 50%; top: 50%; right: auto; bottom: auto; width: 380px; height: 380px; margin: -190px 0 0 -190px; }
/* pannello di uno spazio: una lastra chiara, niente cornice né barre da telefono */
.plate { width: 100%; height: 100%; display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: 40px; background: #fff; color: var(--ds-ink); font-size: 12px; line-height: 1.35; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ds-ink) 13%, transparent), 0 30px 44px -22px color-mix(in srgb, var(--ds-ink) 52%, transparent); }
.plate__h { display: flex; align-items: center; gap: 12px; }
.plate__ic { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 15px; background: var(--ink); color: var(--paper); }
.plate__ic .ico { width: 21px; height: 21px; }
.plate__h b { display: block; font-family: var(--font-head); font-weight: 600; font-stretch: 104%; font-size: 22px; line-height: 1.1; letter-spacing: -0.03em; }
.plate__h small { display: block; font-size: 12px; color: var(--p-2); margin-top: 2px; }
.plate .cc { background: color-mix(in srgb, var(--ds-paper) 22%, #fff); box-shadow: none; padding: 16px; flex: 1; min-height: 0; }
.plate .cc__name { font-size: 18px; }
.plate .deck-btns { margin-top: 0; }
.plate .ui-map { height: 138px; background: color-mix(in srgb, var(--ds-paper) 22%, #fff); }
.plate .ui-row { background: color-mix(in srgb, var(--ds-paper) 22%, #fff); box-shadow: none; }
.plate__cta { display: flex; gap: 8px; margin-top: auto; }
.plate__cta .ui-btn { flex: 1; padding: 10px; font-size: 12px; }
.story--live .stack__p .phone { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ds-paper) 18%, transparent), 0 26px 40px -22px rgba(0,0,0,.42); }
.story--live .stack__floor { display: block; position: absolute; left: 50%; top: 50%; width: 460px; height: 460px; margin: -230px 0 0 -230px; border-radius: 80px; background: radial-gradient(closest-side, color-mix(in srgb, var(--ds-ink) 11%, transparent), transparent); transform: translateZ(-30px); }

/* ── TELEFONO ── */
.phone { --pw: 312px; position: relative; width: var(--pw); height: calc(var(--pw) * 2.07); flex: none; padding: 9px; border-radius: 52px; background: linear-gradient(160deg, #2a2a28, #101010 40%, #1d1d1b); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ds-paper) 18%, transparent), 0 40px 80px -30px rgba(0,0,0,.55); transform-style: preserve-3d; }
[data-screen] { --pw: 312px; }
[data-screen]:empty { width: var(--pw); height: calc(var(--pw) * 2.07); }
[data-screen="heroDeck"]:empty { width: 0; height: 0; }
.phone__screen, .plate { --p-bg: color-mix(in srgb, var(--ds-paper) 30%, #fff); --p-card: #fff; --p-fg: var(--ds-ink); --p-2: var(--ds-muted-on-paper); --p-line: color-mix(in srgb, var(--ds-ink) 7%, transparent); }
.phone__screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 44px; background: var(--p-bg); color: var(--p-fg); display: flex; flex-direction: column; font-size: 12px; line-height: 1.35; }
.phone__island { position: absolute; top: 9px; left: 50%; translate: -50% 0; width: 86px; height: 24px; border-radius: 14px; background: var(--ink); z-index: 3; }
.phone__status { height: 42px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 8px 26px 0; color: var(--p-fg); font-size: 11px; font-weight: 600; }
.phone__status i::before { content: ""; display: block; width: 18px; height: 9px; border: 1.3px solid currentColor; border-radius: 3px; }
.phone__body { flex: 1; min-height: 0; overflow: hidden; padding: 6px 14px 10px; display: flex; flex-direction: column; gap: 8px; }
.phone__body > * { flex-shrink: 0; }
.phone__tabs { flex: none; display: flex; justify-content: space-around; margin: 0 10px 12px; padding: 8px 4px; border-radius: 26px; background: var(--ink); color: var(--ds-muted-on-ink); }
.phone__tabs span { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 8px; font-weight: 500; }
.phone__tabs span.on { color: var(--paper); font-weight: 700; }
.phone__tabs .ico { width: 15px; height: 15px; stroke-width: 1.7; }
.ui-head { padding: 2px 2px 6px; }
.ui-title { font-family: var(--font-head); font-weight: 600; font-stretch: 104%; font-size: 18px; line-height: 1.15; letter-spacing: -0.03em; color: var(--p-fg); }
.ui-title small { font-family: var(--font-head); font-style: normal; font-stretch: 125%; font-weight: 800; color: var(--ds-orange); font-size: inherit; }
.ui-sub { font-size: 10.5px; color: var(--p-2); }
.ui-head .ui-sub { margin-top: 2px; }
.ui-label { display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 600; color: var(--p-2); }
.ui-tag { display: inline-block; font-size: 8.5px; font-weight: 600; color: var(--p-fg); background: color-mix(in srgb, var(--ds-orange) 12%, #fff); border-radius: var(--r-full); padding: 2px 7px; }
.ui-tag--g { background: var(--ink); color: var(--paper); }
.ui-tag--w { color: var(--ember); }
.ui-back { font-size: 10.5px; font-weight: 600; color: var(--ember); }
.ui-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ui-grid--6 .ui-tile { min-height: 98px; justify-content: center; }
.ui-tile { display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; background: var(--p-card); border-radius: 20px; padding: 8px 4px; box-shadow: 0 8px 18px -14px color-mix(in srgb, var(--ds-ink) 40%, transparent); transition: transform .35s var(--spring); }
.ui-tile .ico { width: 14px; height: 14px; color: var(--p-2); }
.ui-tile b { font-size: 9.5px; font-weight: 600; color: var(--p-fg); }
.ui-tile.done { background: var(--ink); }
.ui-tile.done .ico, .ui-tile.done b, .ui-tile.done .ring span { color: var(--paper); }
.ui-tile.done .ring span small { color: var(--ds-muted-on-ink); }
.ring { position: relative; width: 46px; height: 46px; }
.ring svg { width: 46px; height: 46px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 4.5; stroke-linecap: round; }
.ring .bg { stroke: color-mix(in srgb, var(--ds-ink) 8%, transparent); }
.ring .fg { stroke: var(--orange); }
.ui-tile.done .ring .bg { stroke: color-mix(in srgb, var(--ds-paper) 16%, transparent); }
.ring span { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 600; font-size: 13px; line-height: 1; color: var(--p-fg); }
.ring span small { font-family: var(--font-body); font-weight: 500; font-size: 7px; color: var(--p-2); margin-top: 1px; }
.ring--count { border-radius: 50%; box-shadow: inset 0 0 0 4.5px var(--orange); }
.ui-row { display: flex; align-items: center; gap: 9px; background: var(--p-card); border-radius: 18px; padding: 9px 12px; box-shadow: 0 8px 18px -14px color-mix(in srgb, var(--ds-ink) 40%, transparent); }
.ui-row--hl { background: var(--ink); }
.ui-row.ui-row--hl b { color: var(--paper); }
.ui-row.ui-row--hl small { color: var(--ds-muted-on-ink); }
.ui-row--late { background: color-mix(in srgb, var(--ds-orange) 12%, #fff); }
.ui-row.ui-row--late b, .ui-row.ui-row--late small { color: var(--ember); }
.ui-row .grow { flex: 1; min-width: 0; }
.ui-row b { display: block; font-size: 11.5px; font-weight: 600; color: var(--p-fg); }
.ui-row small { display: block; font-size: 10px; color: var(--p-2); }
.ui-row .chev { color: var(--p-2); font-size: 14px; }
.ui-ic { width: 30px; height: 30px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 11px; background: var(--p-bg); color: var(--p-fg); }
.ui-ic .ico { width: 15px; height: 15px; }
.ui-ic--t { background: var(--orange); color: var(--ink); }
.ui-ic--r { background: var(--orange); color: var(--ink); }
.av { width: 28px; height: 28px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--p-bg); color: var(--p-fg); font-size: 9.5px; font-weight: 700; }
.ui-pills { display: flex; flex-wrap: wrap; gap: 4px; }
.ui-pills > span:not(.ui-tag):not(.ui-btn) { font-size: 9.5px; font-weight: 600; color: var(--p-2); background: var(--p-card); border-radius: var(--r-full); padding: 4px 10px; }
.ui-pills > span.on:not(.ui-tag):not(.ui-btn) { background: var(--ink); color: var(--paper); }
.ui-btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; font-size: 10px; font-weight: 600; border-radius: var(--r-full); padding: 7px 12px; }
.ui-btn .ico { width: 11px; height: 11px; stroke-width: 2.2; }
.ui-btn--t { background: var(--orange); color: var(--ink); }
.ui-btn--o { background: var(--p-bg); color: var(--p-fg); }
.ui-big2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ui-big2 div { background: var(--p-card); border-radius: 18px; padding: 11px 4px; text-align: center; }
.ui-big2 b { display: block; font-family: var(--font-head); font-weight: 600; font-size: 22px; line-height: 1; color: var(--p-fg); }
.ui-big2 small { font-size: 8.5px; font-weight: 500; color: var(--p-2); }
.cc { position: relative; background: var(--p-card, #fff); border-radius: 22px; padding: 15px; box-shadow: 0 14px 28px -20px color-mix(in srgb, var(--ds-ink) 45%, transparent); color: var(--ds-ink); }
.cc__name { font-family: var(--font-head); font-weight: 600; font-size: 16px; line-height: 1.15; letter-spacing: -0.025em; color: var(--ds-ink); margin: 4px 0 10px; padding-right: 48px; }
.cc__line { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--ds-muted-on-paper); margin-bottom: 4px; }
.cc__line .ico { width: 11px; height: 11px; }
.cc__note { font-size: 10.5px; color: var(--ds-muted-on-paper); margin-top: 9px; line-height: 1.45; }
.stamp { position: absolute; top: 13px; right: 13px; font-size: 9.5px; font-weight: 700; border-radius: var(--r-full); padding: 3px 9px; transform: rotate(6deg); background: var(--ink); color: var(--paper); }
.stamp--skip { background: var(--orange); color: var(--ink); transform: rotate(-6deg); }
.deck-btns { display: flex; justify-content: center; gap: 16px; margin-top: 4px; }
.deck-btns span { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--p-card); color: var(--p-fg); box-shadow: 0 8px 16px -10px color-mix(in srgb, var(--ds-ink) 40%, transparent); }
.deck-btns .v { background: var(--orange); color: var(--ink); }
.deck-btns .ico { width: 16px; height: 16px; stroke-width: 2.4; }
.ui-map { position: relative; height: 112px; border-radius: 18px; background: var(--p-card); overflow: hidden; }
.ui-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-block { fill: var(--p-bg); }
.map-route { fill: none; stroke: var(--orange); stroke-width: 2; stroke-dasharray: 4 4; }
.map-pin { fill: var(--ink); }
.map-pin--off { fill: var(--ds-muted-on-ink); }
.map-pins { font-family: var(--font-body); font-size: 9px; font-weight: 700; fill: var(--paper); }

/* mazzo dell'hero */
.deck { position: absolute; left: -176px; bottom: 26px; width: 226px; height: 176px; z-index: 4; }
.deck .cc { position: absolute; inset: 0; transform-origin: 50% 120%; box-shadow: 0 30px 50px -24px rgba(0,0,0,.6); }
.deck .cc:nth-child(2) { transform: translateY(14px) scale(.94); }
.deck .cc .stamp { opacity: 0; }
.deck .cc { animation: deck 10s ease-in-out infinite; }
.deck .cc:nth-child(1) { --dx: -130%; --rot: -14deg; }
.deck .cc:nth-child(2) { --dx: 130%; --rot: 14deg; animation-delay: -5s; }
.deck .cc .stamp { animation: stamp 10s ease-in-out infinite; }
.deck .cc:nth-child(2) .stamp { animation-delay: -5s; }
@keyframes deck {
  0%, 30%  { transform: translateY(0) scale(1); opacity: 1; z-index: 2; }
  42%      { transform: translateX(var(--dx)) rotate(var(--rot)); opacity: 0; z-index: 2; }
  43%      { transform: translateY(14px) scale(.94); opacity: 0; z-index: 1; }
  55%, 80% { transform: translateY(14px) scale(.94); opacity: 1; z-index: 1; }
  92%      { transform: translateY(0) scale(1); opacity: 1; z-index: 1; }
  100%     { transform: translateY(0) scale(1); opacity: 1; z-index: 2; }
}
@keyframes stamp { 0%, 18% { opacity: 0; } 26%, 40% { opacity: 1; } 43%, 100% { opacity: 0; } }

/* ── FONTI ── */
.marquee { position: relative; overflow: hidden; margin-bottom: 16px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 10px; width: max-content; animation: slide 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(calc(-50% - 5px)); } }
.chip { flex: none; display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px 12px 16px; border-radius: var(--r-full); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 16px; font-weight: 500; color: var(--fg); white-space: nowrap; }
.chip .ico { width: 18px; height: 18px; color: var(--fg-3); }
.fonti { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); display: grid; gap: 16px; align-items: stretch; }
.big { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 100%; }
.bignum__v { font-family: var(--font-head); font-weight: 550; font-stretch: 104%; font-size: clamp(96px, 13vw, 176px); line-height: .92; letter-spacing: -0.055em; color: var(--fg); }
.bignum__l { font-size: clamp(19px, 1.9vw, 24px); line-height: 1.35; letter-spacing: -0.012em; color: var(--fg); margin-top: 24px; }
.bignum__l small { display: block; font-size: 16px; line-height: 1.5; letter-spacing: 0; color: var(--fg-2); margin-top: 10px; }

/* ── TORTA: ciambella con icone sugli spicchi, il centro dice cosa stai guardando ── */
.pie { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: center; }
.pie__plot { position: relative; aspect-ratio: 1; }
.pie__plot > svg { width: 100%; height: 100%; overflow: visible; }
.pie__s { --tx: 0; --ty: 0; cursor: pointer; transform: translate(calc(var(--tx) * 1px), calc(var(--ty) * 1px)); transition: transform .5s var(--spring), opacity .35s; }
.pie__s > path { stroke-width: 7; stroke-linejoin: round; }
.pie__s .ico { stroke: var(--ink); stroke-width: 2; }
.pie__s.is-on { transform: translate(calc(var(--tx) * 2.4px), calc(var(--ty) * 2.4px)); }
.pie.has-on .pie__s:not(.is-on) { opacity: .82; }
.c-o { fill: var(--orange); stroke: var(--orange); background: var(--orange); }
.c-p { fill: var(--paper); stroke: var(--paper); background: var(--paper); }
.c-m { fill: var(--ds-muted-on-ink); stroke: var(--ds-muted-on-ink); background: var(--ds-muted-on-ink); }
.c-h { fill: var(--peach); stroke: var(--peach); background: var(--peach); }
.c-g { fill: var(--ds-muted-on-paper); stroke: var(--ds-muted-on-paper); background: var(--ds-muted-on-paper); }
.pie__s .c-g + .ico { stroke: var(--paper); }
.pie__c { position: absolute; inset: 27%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center; pointer-events: none; }
.pie__c b { font-family: var(--font-head); font-weight: 550; font-stretch: 104%; font-size: clamp(28px, 3vw, 38px); line-height: 1; letter-spacing: -0.04em; color: var(--fg); }
.pie__c span { font-size: 12px; line-height: 1.25; color: var(--fg-2); }
.pie__legend { display: grid; gap: 2px; }
.pie__row { display: grid; grid-template-columns: 12px 20px minmax(0, 1fr) auto; gap: 11px; align-items: center; padding: 10px 14px; border-radius: var(--r-s); color: var(--fg-2); font-size: 15px; line-height: 1.3; cursor: pointer; transition: background .3s, color .3s; }
.pie__row i { width: 12px; height: 12px; border-radius: 50%; }
.pie__row .ico { width: 18px; height: 18px; color: var(--fg-3); }
.pie__row b { font-family: var(--font-head); font-weight: 600; font-size: 18px; letter-spacing: -0.02em; color: var(--fg); font-variant-numeric: tabular-nums; }
.pie__row.is-on { background: var(--surface-2); color: var(--fg); }
.pie__base { grid-column: 1 / -1; font-size: 13px; line-height: 1.5; color: var(--fg-3); }

/* ── DASHBOARD ── */
.dash { border-radius: var(--r-l); overflow: hidden; background: #fff; color: var(--ds-ink); font-size: 12px; line-height: 1.4; text-align: left; box-shadow: 0 0 0 1px var(--line), 0 60px 100px -50px color-mix(in srgb, var(--ds-ink) 55%, transparent); transform-origin: 50% 100%; }
.dash__bar { display: flex; align-items: center; justify-content: center; position: relative; height: 38px; background: color-mix(in srgb, var(--ds-paper) 40%, #fff); color: var(--ds-muted-on-paper); font-size: 11px; }
.dash__bar::before { content: ""; position: absolute; left: 16px; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); box-shadow: 16px 0 0 var(--ds-muted-on-ink), 32px 0 0 var(--ds-paper-sunk); }
.dash__body { display: grid; grid-template-columns: 190px minmax(0, 1fr); min-height: 440px; }
.dash__side { background: var(--ink); color: var(--ds-muted-on-ink); padding: 22px 14px; }
.dash__side .brand { font-family: var(--font-head); font-weight: 600; font-size: 19px; letter-spacing: -0.03em; color: var(--paper); padding: 0 10px; }
.dash__side .brand small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 10px; color: var(--ds-muted-on-ink); margin-top: 1px; letter-spacing: 0; }
.dash__side ul { margin-top: 22px; display: grid; gap: 2px; }
.dash__side li { display: flex; align-items: center; gap: 9px; font-size: 12px; padding: 9px 10px; border-radius: 12px; }
.dash__side li.on { background: color-mix(in srgb, var(--ds-paper) 12%, transparent); color: var(--paper); font-weight: 600; }
.dash__side .ico { width: 14px; height: 14px; }
.dash__main { display: grid; gap: 12px; align-content: start; min-width: 0; padding: 22px; background: color-mix(in srgb, var(--ds-paper) 22%, #fff); }
.dash__top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 12px; }
.dash__title { display: block; font-family: var(--font-head); font-weight: 600; font-size: 20px; letter-spacing: -0.03em; color: var(--ds-ink); }
.dash__top small { font-size: 11px; color: var(--ds-muted-on-paper); }
.dash__filters { display: flex; flex-wrap: wrap; gap: 6px; }
.dash__filters span { background: #fff; border-radius: var(--r-full); padding: 5px 11px; font-size: 10px; color: var(--ds-muted-on-paper); }
.dash__filters b { color: var(--ds-ink); }
.dash__kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.dash__kpi, .dash__panel { background: #fff; border-radius: 18px; padding: 14px; min-width: 0; box-shadow: 0 10px 22px -18px color-mix(in srgb, var(--ds-ink) 30%, transparent); }
.dash__kpi small { font-size: 10.5px; color: var(--ds-muted-on-paper); }
.dash__kpi b { display: block; font-family: var(--font-head); font-weight: 600; font-size: 24px; line-height: 1.15; letter-spacing: -0.035em; color: var(--ds-ink); margin: 2px 0 4px; }
.dash__kpi em { font-style: normal; font-size: 9.5px; font-weight: 600; color: var(--ember); }
.dash__kpi em.n { color: var(--ds-muted-on-paper); font-weight: 500; }
.dash__two { display: grid; grid-template-columns: 1.1fr .9fr; gap: 10px; }
.dash__panel { overflow-x: auto; }
.dash__ptitle { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 600; color: var(--ds-ink); margin-bottom: 12px; }
.dash__ptitle small { font-weight: 400; color: var(--ds-muted-on-paper); }
.fbar { display: grid; grid-template-columns: 112px 1fr 46px; gap: 8px; align-items: center; font-size: 10.5px; color: var(--ds-muted-on-paper); margin-bottom: 7px; }
.fbar i { position: relative; height: 10px; background: color-mix(in srgb, var(--ds-paper) 40%, #fff); border-radius: 6px; overflow: hidden; }
.fbar i::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 6px; background: var(--ink); transition: width 1.3s var(--soft) .25s; }
.fbar i.g::before { background: var(--orange); }
.dash:not(.is-in) .fbar i::before, .dash:not(.is-in) .tbar::before { width: 0; }
.fbar b { text-align: right; font-weight: 600; color: var(--ds-ink); font-variant-numeric: tabular-nums; }
.stackbar__bar { display: flex; gap: 2px; height: 14px; border-radius: 8px; overflow: hidden; }
.stackbar__bar span { display: block; height: 100%; }
.c1 { background: var(--orange); } .c2 { background: var(--peach); } .c3 { background: var(--ds-muted-on-ink); } .c4 { background: var(--ds-muted-on-paper); } .c5 { background: var(--ink); } .c6 { background: var(--ds-paper-sunk); }
.dash__legend { display: grid; gap: 4px; margin-top: 12px; }
.dash__legend li { display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: var(--ds-muted-on-paper); }
.dash__legend i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dash__legend b { margin-left: auto; font-weight: 600; color: var(--ds-ink); }
.dash table { width: 100%; border-collapse: collapse; font-size: 10.5px; }
.dash th { text-align: left; font-weight: 500; color: var(--ds-muted-on-paper); padding: 4px 6px; white-space: nowrap; }
.dash td { padding: 7px 6px; border-top: 1px solid color-mix(in srgb, var(--ds-ink) 6%, transparent); color: var(--ds-muted-on-paper); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dash td.who { display: flex; align-items: center; gap: 7px; font-weight: 600; color: var(--ds-ink); }
.dash td .av { width: 22px; height: 22px; font-size: 7.5px; background: color-mix(in srgb, var(--ds-orange) 12%, #fff); color: var(--ember); }
.tbar { position: relative; display: inline-block; width: 70px; height: 6px; margin-right: 6px; vertical-align: middle; background: color-mix(in srgb, var(--ds-paper) 40%, #fff); border-radius: 4px; overflow: hidden; }
.tbar::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 4px; background: var(--ink); transition: width 1.3s var(--soft) .35s; }
.tbar.w::before { background: var(--orange); }
.st { font-size: 8.5px; font-weight: 600; border-radius: var(--r-full); padding: 3px 8px; color: var(--ds-ink); background: color-mix(in srgb, var(--ds-paper) 40%, #fff); }
.st.top { background: var(--ink); color: var(--paper); }
.st.w { background: color-mix(in srgb, var(--ds-orange) 12%, #fff); color: var(--ember); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.mini { display: flex; flex-direction: column; gap: 8px; }
.privacy { display: inline-flex; align-items: center; gap: 12px; margin-top: 20px; padding: 14px 22px 14px 16px; border-radius: var(--r-full); background: var(--ink); color: var(--ds-body-on-ink); font-size: 15px; line-height: 1.35; }
.privacy b { color: var(--paper); font-weight: 600; }
.privacy .ico { color: var(--paper); }

/* ── OFFERTA ── */
.offer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 16px; }
.offer__card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; overflow: hidden; padding: clamp(26px, 3.4vw, 44px); border-radius: var(--r-xl); background: var(--paper-hi); color: var(--ink); isolation: isolate; }
.offer__card::after { content: ""; position: absolute; right: -30%; bottom: -45%; width: 90%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--ds-orange) 16%, transparent), transparent 68%); z-index: -1; }
.offer__tag { font-size: 15px; font-weight: 600; }
.offer__card .stat { padding: 0; }
.offer__card .stat__b { display: none; }
.offer__card .stat__v { font-size: clamp(130px, 19vw, 240px); line-height: .84; letter-spacing: -0.06em; color: var(--ink); }
.offer__card .stat__l { font-size: 22px; letter-spacing: -0.015em; line-height: 1.25; color: var(--ink); max-width: 18ch; }
.offer__card p { color: var(--ink); }
.offer__card .btn { margin-top: auto; }
.offer__side { display: flex; flex-direction: column; gap: 16px; }
.offer__lab { font-size: 14px; font-weight: 500; color: var(--fg-3); margin-bottom: 16px; }
.offer__steps { display: grid; gap: 18px; }
.offer__steps li { display: grid; gap: 2px; }
.offer__steps b { font-family: var(--font-head); font-weight: 600; font-stretch: 104%; font-size: 19px; line-height: 1.25; letter-spacing: -0.02em; color: var(--fg); }
.offer__steps span { font-size: 16px; color: var(--fg-2); }
.custom-list { display: flex; flex-wrap: wrap; gap: 8px; }
.custom-list li { padding: 9px 16px; border-radius: var(--r-full); background: var(--surface-2); color: var(--fg); font-size: 15px; line-height: 1.3; }

/* ── FAQ ── */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-wrap .head { margin-bottom: 0; position: sticky; top: 120px; }
.faq { display: grid; gap: 10px; }
.faq details { border-radius: var(--r-m); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: background .3s; }
.faq details[open] { background: var(--surface-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 24px; font-family: var(--font-head); font-weight: 550; font-stretch: 104%; font-size: 19px; line-height: 1.25; letter-spacing: -0.018em; color: var(--fg); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); font-family: var(--font-body); font-weight: 400; font-size: 22px; line-height: 1; color: var(--fg); transition: transform .45s var(--spring), background .3s, color .3s; }
.faq details[open] summary::after { transform: rotate(135deg); background: var(--orange); color: var(--ink); }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .45s var(--soft), content-visibility .45s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq details p { padding: 0 72px 24px 24px; color: var(--fg-2); }
.faq a { color: var(--fg); text-underline-offset: 3px; }

/* ── REFERRAL ── */
.ref { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(20px, 3vw, 44px); align-items: center; padding: clamp(26px, 3.4vw, 44px); border-radius: var(--r-xl); background: var(--paper); color: var(--ink); }
.ref > b { font-family: var(--font-head); font-style: normal; font-stretch: 125%; font-weight: 800; font-size: clamp(56px, 7vw, 100px); line-height: .9; letter-spacing: -0.05em; color: var(--ink); }
.ref p { font-size: clamp(19px, 2vw, 24px); line-height: 1.25; letter-spacing: -0.015em; font-weight: 500; color: var(--ink); }
.ref p small { display: block; font-size: 16px; line-height: 1.45; letter-spacing: 0; font-weight: 400; color: #2e2f2c; margin-top: 6px; }

/* ── CONTATTI ── */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact .head { margin-bottom: 0; }
.contact-line { margin-top: 28px; font-family: var(--font-head); font-stretch: 104%; font-weight: 550; letter-spacing: -0.03em; font-size: clamp(22px, 2.4vw, 30px); color: var(--fg); }
.contact-line a { text-decoration-thickness: 1px; text-underline-offset: 6px; }
.form-card { border-radius: var(--r-xl); background: var(--surface); padding: clamp(20px, 3vw, 36px); box-shadow: 0 40px 80px -50px color-mix(in srgb, var(--ds-ink) 40%, transparent); }
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label { font-size: 14px; font-weight: 500; color: var(--fg); }
.field input, .field select, .field textarea { width: 100%; min-height: 54px; padding: 14px 18px; border: 0; border-radius: var(--r-s); background: color-mix(in srgb, var(--ds-paper) 34%, #fff); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.4; box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .25s, background .25s; }
.field input::placeholder, .field textarea::placeholder { color: var(--ds-muted-on-paper); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; background: #fff; box-shadow: inset 0 0 0 1.5px var(--orange), 0 0 0 5px color-mix(in srgb, var(--ds-orange) 16%, transparent); }
.field textarea { min-height: 130px; resize: vertical; }
.field--select { position: relative; }
.field--select::after { content: ""; position: absolute; right: 20px; bottom: 24px; width: 8px; height: 8px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); pointer-events: none; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 44px; }
.form-ok { display: none; padding: 26px; border-radius: var(--r-m); background: var(--ink); color: var(--paper); font-size: 18px; animation: okIn .6s var(--spring); }
@keyframes okIn { from { opacity: 0; transform: translateY(12px) scale(.97); } }

/* ── TEAM: foto grandi ── */
#team { margin-top: clamp(64px, 9vw, 128px); }
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.team__card { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--ink); isolation: isolate; }
.team__card img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; transition: transform 1s var(--soft); }
.team__card:hover img { transform: scale(1.04); }
.team__card > div { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; flex-direction: column; padding: 16px 22px; border-radius: var(--r-l); background: color-mix(in srgb, var(--ds-ink) 58%, transparent); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); color: var(--paper); }
.team__card b { font-family: var(--font-head); font-weight: 600; font-stretch: 104%; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; letter-spacing: -0.03em; }
.team__card span { font-size: 15px; color: var(--ds-body-on-ink); }

/* ── FOOTER ── */
.site-footer { padding: clamp(56px, 8vw, 100px) 0 0; color: var(--fg-3); font-size: 15px; overflow: hidden; }
.site-footer__in { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; }
.site-footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.site-footer a { color: var(--fg-3); text-decoration: none; transition: color .25s; }
.site-footer a:hover, .site-footer .logo { color: var(--fg); }
.site-footer__mark { display: block; margin: clamp(24px, 4vw, 48px) 0 -.13em; font-family: var(--font-head); font-weight: 800; font-stretch: 125%; font-size: clamp(120px, 27.5vw, 410px); line-height: .9; letter-spacing: -0.045em; color: var(--paper); white-space: nowrap; text-align: center; }

/* ── RESPONSIVE ── */
@media (max-width: 1160px) {
  .site-nav__links { gap: 16px; }
  .site-nav__links a.hide-md { display: none; }
}
@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }
  .nav-cta--desk { display: none; }
  .nav-cta--mob { display: inline-flex; margin-left: auto; min-height: 40px; padding: 0 16px; font-size: 13.5px; }
  .site-nav__in { padding: 7px 7px 7px 20px; }
  .site-nav__links { display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 20px; border-radius: var(--r-l); background: color-mix(in srgb, var(--ds-ink) 92%, transparent); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ds-paper) 12%, transparent); }
  .site-nav.open .site-nav__links { display: flex; }
  .site-nav__links > a:not(.btn) { padding-block: 13px; font-size: 17px; }
  .site-nav__links a.hide-md { display: block; }
  .site-nav__links .lang { margin-block: 12px; align-self: flex-start; }
  .lang button { min-width: 46px; min-height: 42px; font-size: 14px; }
  .hero { min-height: 0; padding-top: 118px; }
  .hero__grid, .faq-wrap, .contact, .offer, .fonti { grid-template-columns: minmax(0, 1fr); }
  .hero__visual { justify-self: center; }
  .deck { left: -76px; bottom: -8px; width: 206px; height: 170px; }
  .faq-wrap .head { position: static; }
  .dash__body { grid-template-columns: minmax(0, 1fr); }
  .dash__side { display: none; }
  .dash__kpis { grid-template-columns: 1fr 1fr; }
  .grid-3, .steps { grid-template-columns: minmax(0, 1fr); }
  .step { min-height: 0; }
  .step__ico { margin-bottom: 14px; }
  .ref { grid-template-columns: auto minmax(0, 1fr); }
  .ref .btn { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 860px) {
  /* storia su telefono: titolo e passo in alto, pila sotto. Un passo alla volta */
  .story__grid { grid-template-columns: minmax(0, 1fr); gap: 12px; align-content: start; }
  .story--live { height: 320svh; }
  .story--live .story__pin { align-items: flex-start; padding-top: 84px; }
  .story--live .story__grid { height: 100%; grid-template-rows: auto minmax(0, 1fr); }
  .story--live .story__copy { gap: 10px; }
  .story--live .kicker { display: none; }
  .story--live .h2 { font-size: clamp(25px, 7.2vw, 34px); line-height: 1.08; }
  .story--live .h2 em { display: inline; }
  .story--live .story__steps { display: grid; margin-top: 0; max-width: none; }
  .story--live .story__step { grid-area: 1 / 1; opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s var(--soft); pointer-events: none; }
  .story--live .story__step.is-on { opacity: 1; transform: none; }
  .story--live .story__step button { padding: 0; background: transparent !important; box-shadow: none !important; }
  .story--live .story__step b { font-size: 19px; color: var(--fg); }
  .story--live .story__step b::before { background: var(--orange); opacity: 1; }
  .story--live .story__step span { height: auto; opacity: 1; margin-top: 3px; font-size: 15px; min-height: 3em; }
  .story--live .story__bar { display: block; width: 100%; height: 3px; border-radius: 3px; overflow: hidden; background: color-mix(in srgb, var(--ds-ink) 10%, transparent); }
  .story--live .story__bar i { display: block; height: 100%; border-radius: 3px; background: var(--ink); transform: scaleX(0); transform-origin: left; }
  .story--live .story__scene { min-height: 0; height: 100%; clip-path: inset(0 -100vw -100vw -100vw); }
  .story--live .story__cap { display: none; }
  .story:not(.story--live) .story__scene { min-height: 0; }
}
@media (max-width: 720px) {
  /* leggerezza: niente sfocature grandi mentre si scorre */
  .grain { display: none; }
  .card--glass { background: var(--ink-2); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .team__card > div { background: color-mix(in srgb, var(--ds-ink) 78%, transparent); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .hero__cta { width: 100%; }
  .hero__cta .btn { flex: 1 1 100%; }
  .proof .bento > :nth-child(n+2) { grid-column: span 12; }
  .pie { grid-template-columns: minmax(0, 1fr); }
  .pie__plot { max-width: 300px; width: 100%; margin-inline: auto; }
  .form__row, .team { grid-template-columns: minmax(0, 1fr); }
  .dash__two { grid-template-columns: minmax(0, 1fr); }
  .dash__main { padding: 14px; }
  .dash .hide-s { display: none; }
  .fbar { grid-template-columns: 92px 1fr 40px; }
  .faq details p { padding-right: 24px; }
  .faq summary { padding: 18px 18px 18px 20px; font-size: 17px; }
  .faq details p { padding-left: 20px; }
  .privacy { border-radius: var(--r-m); align-items: flex-start; }
}
@media (max-width: 400px) {
  .hero .phone, .hero [data-screen] { --pw: 276px; }
  .hero .deck { left: -28px; width: 186px; height: 176px; }
  .hero .deck .cc { padding: 12px; }
  .hero .deck .cc__name { font-size: 14px; }
  .btn { padding: 0 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__visual, .marquee__track, .kicker::before, .deck .cc, .deck .cc .stamp { animation: none; }
  .deck .cc:nth-child(1) { z-index: 2; }
  .deck .cc:nth-child(1) .stamp { opacity: 1; }
  .pie__s, .faq details::details-content { transition: none; }
}
