/* =====================================================================
   Voltare Pagina — landing
   1. Token (colori chiaro/scuro con color-mix, tipografia, raggi, ombre, easing)
   2. Base e utilità
   3. Componenti: bottoni, chip, card, effetti cursore, illustrazioni "fogli"
   4. Sezioni, nell'ordine della pagina
   5. Movimento ridotto e fallback
   ===================================================================== */

/* ---------- 1. Token ---------- */
:root {
  /* palette di marca: petrolio + rame, con un verde acqua che fa da controcanto */
  --c1: #F6D7B9;  /* champagne */
  --c2: #E2B08C;  /* rame chiaro */
  --c3: #B87C59;  /* rame */
  --c4: #3C8C88;  /* verde acqua */
  --c5: #0B2E33;  /* petrolio */

  /* chiaro / scuro */
  --bg-l: #F7F2EA;   --bg-d: #031316;
  --card-l: #FFFDF9; --card-d: #0A1F23;
  --ink-l: #0D2125;  --ink-d: #F4EEE6;
  --muted-l: #586869; --muted-d: #A0B2AE;
  --line-l: rgba(13, 33, 37, .09); --line-d: rgba(244, 238, 230, .10);
  --soft-l: #EFE7DC; --soft-d: #0E262B;
  --acc1-l: #9A5F3D; --acc1-d: #F6D7B9;
  --acc2-l: #B87C59; --acc2-d: #E2B08C;
  --acc3-l: #2F7672; --acc3-d: #C98A60;

  --dkp: 0%;   /* avanzamento verso lo scuro, scritto dal JS nella "zona scura" */
  --dk: 0;

  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --r-sm: 6px; --r-md: 12px; --r-lg: 16px; --r-xl: 22px;
  --r-btn: 10px; /* stesso arrotondamento per i bottoni grandi e la navbar */
  --cta: #C8916A; --cta-hover: #D29B74; --cta-ink: #1B1009; /* colore pieno delle azioni principali */
  --tile: #0D2125; --tile-ink: #E8C4A4; /* tessere scure delle icone */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 60px;
  --gutter: clamp(16px, 4vw, 40px);
}

/* i token "vivi": ricalcolati su :root e su ogni .tscope (che può fissare il proprio --dkp) */
:root, .tscope, .chrome {
  --bg: color-mix(in oklab, var(--bg-l), var(--bg-d) var(--dkp));
  --card: color-mix(in oklab, var(--card-l), var(--card-d) var(--dkp));
  --ink: color-mix(in oklab, var(--ink-l), var(--ink-d) var(--dkp));
  --muted: color-mix(in oklab, var(--muted-l), var(--muted-d) var(--dkp));
  --line: color-mix(in oklab, var(--line-l), var(--line-d) var(--dkp));
  --soft: color-mix(in oklab, var(--soft-l), var(--soft-d) var(--dkp));
  --ring: color-mix(in oklab, rgba(13, 33, 37, .07), rgba(244, 238, 230, .08) var(--dkp));
  --drop: color-mix(in oklab, rgba(13, 33, 37, .05), rgba(0, 0, 0, .35) var(--dkp));
  --btn-bg: color-mix(in oklab, #0D2125, #F4EEE6 var(--dkp));
  --btn-fg: color-mix(in oklab, #F7F2EA, #0D2125 var(--dkp));
  --acc1: color-mix(in oklab, var(--acc1-l), var(--acc1-d) var(--dkp));
  --acc2: color-mix(in oklab, var(--acc2-l), var(--acc2-d) var(--dkp));
  --acc3: color-mix(in oklab, var(--acc3-l), var(--acc3-d) var(--dkp));
  --sh-1: 0 0 0 1px var(--ring), 0 4px 4px var(--drop);
  --sh-2: 0 0 0 1px var(--ring), 0 2px 6px rgba(12, 10, 9, .08), 0 24px 48px -12px rgba(3, 19, 22, .22);
}
.tscope { background: var(--bg); color: var(--ink); }
.tscope--dark { --dkp: 100%; }
.tscope--light, .chrome { --dkp: 0%; }

/* browser senza color-mix: tema chiaro e sezioni scure fisse */
@supports not (color: color-mix(in oklab, red, blue)) {
  :root, .tscope--light { --bg: var(--bg-l); --card: var(--card-l); --ink: var(--ink-l); --muted: var(--muted-l); --line: var(--line-l); --soft: var(--soft-l); --ring: rgba(13,33,37,.07); --drop: rgba(13,33,37,.05); --btn-bg: #0D2125; --btn-fg: #F7F2EA; --acc1: var(--acc1-l); --acc2: var(--acc2-l); --acc3: var(--acc3-l); }
  .tscope--dark { --bg: var(--bg-d); --card: var(--card-d); --ink: var(--ink-d); --muted: var(--muted-d); --line: var(--line-d); --soft: var(--soft-d); --ring: rgba(244,238,230,.08); --drop: rgba(0,0,0,.35); --btn-bg: #F4EEE6; --btn-fg: #0D2125; --acc1: var(--acc1-d); --acc2: var(--acc2-d); --acc3: var(--acc3-d); }
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.5; font-weight: 450;
  letter-spacing: -0.0125em; font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 14px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--c3); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(226, 176, 140, .45); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 10px 14px; border-radius: 8px; background: var(--c5); color: #fff; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-inline: var(--gutter); }
.mono { font-family: var(--mono); font-weight: 500; letter-spacing: .02em; }
.muted { color: var(--muted); }
.center { display: flex; justify-content: center; margin-top: 40px; }
.ic { display: inline-flex; flex: none; }
.ic .ico { width: 1em; height: 1em; }
.ph { background: #FFE9A8; color: #6A4A00 !important; border-radius: 4px; padding: 0 4px; -webkit-text-fill-color: #6A4A00; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* tipografia */
.h1 { font-size: clamp(42px, 6.2vw, 86px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 540; }
.h2 { font-size: clamp(32px, 4.2vw, 58px); line-height: 1.04; letter-spacing: -0.04em; font-weight: 540; }
.h3 { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.2; letter-spacing: -0.025em; font-weight: 600; margin-bottom: 10px; }
.lead { font-size: clamp(17px, 1.55vw, 21px); line-height: 1.45; font-weight: 500; color: var(--muted); letter-spacing: -0.015em; max-width: 46ch; }
.accent { font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: -0.01em; font-size: 1.1em; line-height: .9; padding-right: .06em; color: var(--acc2); }

/* ---------- 3. Componenti ---------- */

/* bottoni */
.btn {
  --b: var(--btn-bg); --f: var(--btn-fg);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 18px; border: 0; border-radius: var(--r-sm);
  background: var(--b); color: var(--f); text-decoration: none; cursor: pointer;
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; text-align: center;
  transition: transform .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease), filter .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn__arr { display: inline-block; transition: transform .2s var(--ease); }
.btn:hover .btn__arr { transform: translateX(3px); }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn--lg { min-height: 54px; padding: 0 24px; font-size: 16px; border-radius: var(--r-btn); }
.btn--block { display: flex; width: 100%; }
.btn--primary { box-shadow: 0 1px 2px rgba(3, 19, 22, .12), 0 8px 18px -12px rgba(3, 19, 22, .45); }
.btn--primary:hover { filter: brightness(1.12); }
.btn--copper { --b: var(--cta); --f: var(--cta-ink); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .16), 0 10px 24px -14px rgba(0, 0, 0, .55); }
.btn--copper:hover { --b: var(--cta-hover); }
.btn--ghost { --b: rgba(255, 255, 255, .06); --f: #F4EEE6; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.btn--ghost:hover { --b: rgba(255, 255, 255, .11); }
.btn--secondary { --b: #fff; --f: #0D2125; box-shadow: 0 0 0 1px rgba(13, 33, 37, .1), 0 1px 2px rgba(13, 33, 37, .06); }
.btn--secondary:hover { --b: #FBF7F1; }
.btn__sq { width: 7px; height: 7px; border-radius: 2px; background: var(--c3); }

/* eyebrow e chip */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; padding: 7px 11px 7px 9px;
  border-radius: var(--r-sm); background: var(--card); box-shadow: var(--sh-1); color: var(--muted);
  font: 500 11.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
}
.eyebrow .ic { font-size: 13px; color: var(--acc2); }
.chip { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 22px; padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.chip--glass { background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); color: #F4EEE6; backdrop-filter: blur(10px); }
.chip__dot { width: 7px; height: 7px; border-radius: 50%; background: #7FD3B4; box-shadow: 0 0 0 4px rgba(127, 211, 180, .18); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(127, 211, 180, 0); } }

/* intestazioni di sezione */
.section { position: relative; padding-block: clamp(76px, 9vw, 128px); }
.shead { margin-bottom: clamp(36px, 5vw, 64px); }
.shead--split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: end; }
.shead--split .lead { padding-left: 24px; border-left: 1px solid var(--line); margin: 0; }
.shead--center { display: flex; flex-direction: column; align-items: center; text-align: center; }
.shead--center .lead { margin: 18px auto 0; }
.shead .h2 + .lead { margin-top: 18px; }

/* card e bento */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; }
.c-4 { grid-column: span 4; } .c-5 { grid-column: span 5; } .c-6 { grid-column: span 6; } .c-7 { grid-column: span 7; }
.card {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 28px; border-radius: var(--r-lg); background: var(--card); box-shadow: var(--sh-1);
}
.card__tag { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; }
.card__tag b { color: var(--ink); font-weight: 600; }
.card__tag .ic { font-size: 14px; color: var(--acc2); }
.card__text { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.card__src { margin: 22px 0 0; color: var(--muted); font-size: 11px; opacity: .85; }
.card--data { min-height: 310px; display: flex; flex-direction: column; justify-content: space-between; }
.bignum {
  display: flex; align-items: baseline; gap: 2px; margin: 14px 0 16px;
  font-size: clamp(60px, 6.4vw, 96px); line-height: .95; letter-spacing: -0.055em; font-weight: 500; font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.bignum small { font-size: .34em; letter-spacing: -0.01em; margin-left: 6px; color: var(--acc2); }
.card--pain { min-height: 420px; display: flex; flex-direction: column; justify-content: flex-start; gap: 18px; }

/* ---- effetti cursore sulle griglie (solo puntatori precisi, vedi app.js) ---- */
.fx {
  --mx: -999px; --my: -999px; --px: 0; --py: 0; --h: 0; --n: 0; --tilt: 5deg;
  transform: perspective(1100px) rotateX(calc(var(--py) * var(--tilt) * -.85)) rotateY(calc(var(--px) * var(--tilt)));
}
.fx::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(480px circle at var(--mx) var(--my), rgba(201, 138, 96, .07), transparent 70%);
  opacity: var(--h);
}
.fx::before {
  content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: radial-gradient(300px circle at var(--mx) var(--my), rgba(201, 138, 96, .55), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: var(--n);
}
.fx__art { transform: translate3d(calc(var(--px) * -26px), calc(var(--py) * -18px), 0) rotate(calc(var(--px) * -4deg)) scale(calc(1 + .05 * var(--h))); }
.fx__copy { position: relative; transform: translate3d(calc(var(--px) * 5px), calc(var(--py) * 4px), 0); }

/* ---- illustrazioni: pile di fogli in 3D (CSS puro) ---- */
.iso { --gap: calc(13px + var(--h, 0) * 12px); position: relative; width: 210px; height: 178px; margin: -8px auto 6px; pointer-events: none; }
.iso::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 4px; height: 22px; border-radius: 50%; background: radial-gradient(closest-side, rgba(3, 19, 22, .32), transparent); }
.iso__stack {
  position: absolute; left: 50%; top: 54%; width: 104px; height: 134px; margin: -67px 0 0 -52px; z-index: 1;
  transform: rotateX(58deg) rotateZ(-40deg); transform-style: preserve-3d;
}
.iso__stack i {
  position: absolute; inset: 0; border-radius: 10px;
  background:
    linear-gradient(#C98A60, #C98A60) 13px 14px / 40px 5px no-repeat,
    repeating-linear-gradient(180deg, rgba(13, 33, 37, .13) 0 2px, transparent 2px 10px) 13px 30px / calc(100% - 26px) 64% no-repeat,
    #FBF8F2;
  box-shadow: 0 0 0 1px rgba(13, 33, 37, .07), 1.5px 2.5px 0 #D9C6B0, 3px 5px 0 rgba(13, 33, 37, .06);
  transition: transform .5s var(--ease-out);
}
.iso__stack i:nth-child(2) { transform: translateZ(var(--gap)); }
.iso__stack i:nth-child(3) { transform: translateZ(calc(var(--gap) * 2)); }
.iso__stack i:nth-child(4) { transform: translateZ(calc(var(--gap) * 3)); }
.iso__stack i:nth-child(5) { transform: translateZ(calc(var(--gap) * 4)); }
.iso__stack i:last-child:not(:first-child) {
  background: #8DC3BD;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5), 1.5px 2.5px 0 #5E9D97;
}
.iso--b .iso__stack i:last-child:not(:first-child) { background: #E3BC9C; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55), 1.5px 2.5px 0 #C0906C; }
.iso--c .iso__stack i:last-child:not(:first-child) { background: #F2E8DB; }
.iso--book { --gap: calc(5px + var(--h, 0) * 7px); }
.iso--book .iso__stack i:last-child:not(:first-child) { background: #0E3A40; box-shadow: inset 0 0 0 1px rgba(226, 176, 140, .55), 1.5px 2.5px 0 #061a1d; }
.iso--plane .iso__stack i { background: #B9DAD5; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); }
.iso__icon {
  position: absolute; left: 50%; top: 10%; z-index: 3; display: grid; place-items: center;
  width: 54px; height: 54px; margin-left: -27px; border-radius: 14px; font-size: 24px; color: var(--tile-ink);
  background: var(--tile);
  box-shadow: 0 12px 24px -14px rgba(3, 19, 22, .7);
  animation: isoFloat 4.6s var(--ease) infinite alternate;
}
.iso--lg { width: 250px; height: 210px; }
@keyframes isoFloat { from { transform: translateY(0); } to { transform: translateY(-9px); } }

/* ---- reveal allo scorrimento ---- */
.js .rv { opacity: 0; translate: 0 18px; transition: opacity .7s var(--ease-out) var(--d, 0s), translate .7s var(--ease-out) var(--d, 0s); }
.js .rv.in { opacity: 1; translate: 0 0; }

/* ---------- 4. Sezioni ---------- */

/* ---- navigazione: capsula flottante in vetro, si adatta al colore della sezione sotto ---- */
.nav { position: fixed; z-index: 60; top: 14px; left: 0; right: 0; padding-inline: 16px; pointer-events: none; }
.nav__pill {
  --nav-fg: #0D2125; --nav-hover: rgba(13, 33, 37, .06);
  pointer-events: auto; position: relative; display: flex; align-items: center; gap: 16px;
  max-width: 1080px; height: var(--nav-h); margin: 0 auto; padding: 0 8px 0 18px; border-radius: var(--r-btn); color: var(--nav-fg);
  background: rgba(255, 253, 249, .82);
  -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: 0 0 0 1px rgba(13, 33, 37, .08), 0 12px 32px -18px rgba(3, 19, 22, .4);
  transition: background .45s var(--ease), box-shadow .45s var(--ease), color .45s var(--ease), max-width .6s var(--ease-out);
}
.nav.is-scrolled .nav__pill { max-width: 1000px; }
.nav--dark .nav__pill {
  --nav-fg: #F4EEE6; --nav-hover: rgba(255, 255, 255, .08);
  background: rgba(8, 28, 32, .72);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .09), 0 14px 34px -18px rgba(0, 0, 0, .7);
}
.brand { position: relative; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; flex: none; }
.brand__mark { width: 30px; height: 30px; }
.brand__word { font-size: 18px; font-weight: 650; letter-spacing: -0.035em; }
.brand__word i { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 1.2em; letter-spacing: -0.01em; }
.nav__links { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; gap: 2px; }
.nav__links a { padding: 9px 14px; border-radius: 7px; font-size: 14.5px; font-weight: 550; text-decoration: none; color: inherit; opacity: .86; transition: background-color .2s var(--ease), opacity .2s var(--ease); }
.nav__links a:hover { background: var(--nav-hover); opacity: 1; }
.nav__actions { position: relative; display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav__actions .btn { border-radius: 7px; min-height: 42px; }
.nav__video { --b: rgba(13, 33, 37, .05); --f: #0D2125; box-shadow: inset 0 0 0 1px rgba(13, 33, 37, .08); }
.nav__video:hover { --b: rgba(13, 33, 37, .09); }
.nav--dark .nav__video { --b: rgba(255, 255, 255, .07); --f: #F4EEE6; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.nav--dark .nav__video:hover { --b: rgba(255, 255, 255, .12); }
.burger { display: none; position: relative; width: 44px; height: 44px; margin-left: auto; border: 0; border-radius: 7px; background: var(--nav-hover); cursor: pointer; transition: background-color .3s var(--ease); }
.burger span { position: absolute; left: 14px; right: 14px; height: 1.6px; border-radius: 2px; background: var(--nav-fg); transition: transform .35s var(--ease), top .35s var(--ease), background-color .3s var(--ease); }
.burger span:first-child { top: 18px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }

.sheet {
  position: fixed; inset: 0; z-index: 55; overflow-y: auto; color: #0D2125;
  background: #F7F2EA;
  opacity: 0; transition: opacity .35s var(--ease);
}
.sheet[hidden] { display: none; }
.sheet.is-open { opacity: 1; }
.sheet__inner { min-height: 100%; display: flex; flex-direction: column; padding: calc(var(--nav-h) + 44px) var(--gutter) calc(28px + env(safe-area-inset-bottom)); }
.sheet__eyebrow { margin: 0 0 8px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: #586869; }
.sheet__list { list-style: none; margin: 0; padding: 0; }
.sheet__list a { display: flex; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(13, 33, 37, .09); font-size: 34px; font-weight: 550; letter-spacing: -0.04em; text-decoration: none; transform: translateY(12px); opacity: 0; transition: transform .5s var(--ease-out), opacity .5s var(--ease-out); }
.sheet__list a .mono { font-size: 12px; color: #586869; letter-spacing: .04em; }
.sheet.is-open .sheet__list a { transform: none; opacity: 1; }
.sheet.is-open .sheet__list li:nth-child(2) a { transition-delay: .05s; }
.sheet.is-open .sheet__list li:nth-child(3) a { transition-delay: .1s; }
.sheet.is-open .sheet__list li:nth-child(4) a { transition-delay: .15s; }
.sheet__inner > .btn { margin-top: auto; }
.sheet__inner > nav { margin-bottom: 32px; }

/* ---- hero ---- */
.hero {
  --px: 0; --py: 0;
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: max(680px, 100svh); padding-top: 120px; background: #031316;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; perspective: 1100px; }
.hero__glow { position: absolute; inset: -25%; will-change: transform; transition: translate .9s var(--ease-out); }
.hero__glow--a { background: radial-gradient(34% 40% at 70% 40%, rgba(201, 138, 96, .55), transparent 70%); mix-blend-mode: screen; animation: driftA 9s ease-in-out infinite alternate; translate: calc(var(--px) * -40px) calc(var(--py) * -30px); }
.hero__glow--b { background: radial-gradient(30% 36% at 86% 78%, rgba(60, 140, 136, .5), transparent 70%); mix-blend-mode: screen; animation: driftB 12s ease-in-out infinite alternate; translate: calc(var(--px) * 24px) calc(var(--py) * 18px); }
.hero__glow--c { background: radial-gradient(28% 32% at 14% 92%, rgba(246, 215, 185, .16), transparent 70%); animation: driftC 14s ease-in-out infinite alternate; translate: calc(var(--px) * 12px) calc(var(--py) * 10px); }
@keyframes driftA { from { transform: translate3d(-3%, 2%, 0) scale(1); } to { transform: translate3d(3%, -3%, 0) scale(1.08); } }
@keyframes driftB { from { transform: translate3d(2%, 3%, 0) scale(1.05); } to { transform: translate3d(-4%, -2%, 0) scale(.96); } }
@keyframes driftC { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(5%, -4%, 0) scale(1.1); } }

/* muro di pagine in prospettiva, in loop perfetto (altezza piastrella = 176px) */
.wall {
  position: absolute; left: 34%; top: -36%; width: 110%; height: 190%;
  transform: rotateX(56deg) rotateZ(-24deg); transform-origin: 50% 50%;
  -webkit-mask-image: radial-gradient(closest-side at 50% 50%, #000 30%, transparent 78%); mask-image: radial-gradient(closest-side at 50% 50%, #000 30%, transparent 78%);
  opacity: .55; translate: calc(var(--px) * -14px) calc(var(--py) * -10px); transition: translate .9s var(--ease-out);
}
.wall__track {
  position: absolute; left: 0; right: 0; top: -704px; height: calc(100% + 704px);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='132' height='176'%3E%3Crect x='8' y='8' width='116' height='160' rx='9' fill='%23ffffff' fill-opacity='.028' stroke='%23ffffff' stroke-opacity='.08'/%3E%3Crect x='20' y='22' width='44' height='6' rx='3' fill='%23E2B08C' fill-opacity='.38'/%3E%3Cg fill='%23ffffff' fill-opacity='.09'%3E%3Crect x='20' y='40' width='90' height='3' rx='1.5'/%3E%3Crect x='20' y='50' width='84' height='3' rx='1.5'/%3E%3Crect x='20' y='60' width='92' height='3' rx='1.5'/%3E%3Crect x='20' y='70' width='60' height='3' rx='1.5'/%3E%3Crect x='20' y='88' width='90' height='3' rx='1.5'/%3E%3Crect x='20' y='98' width='88' height='3' rx='1.5'/%3E%3Crect x='20' y='108' width='70' height='3' rx='1.5'/%3E%3Crect x='20' y='126' width='86' height='3' rx='1.5'/%3E%3Crect x='20' y='136' width='48' height='3' rx='1.5'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 132px 176px;
  animation: wallScroll 34s linear infinite;
}
@keyframes wallScroll { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, 704px, 0); } }

.hero__vignette {
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 65% 40%, transparent 45%, rgba(3, 19, 22, .85) 100%),
    linear-gradient(90deg, rgba(3, 19, 22, .82) 0%, rgba(3, 19, 22, .45) 34%, transparent 62%),
    linear-gradient(0deg, rgba(3, 19, 22, .9) 0%, transparent 40%);
}
.grain {
  position: absolute; inset: 0; opacity: .10; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.2 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero__stage { position: absolute; z-index: 1; top: 0; right: 0; bottom: 0; width: 56%; }
.hero__gl { width: 100%; height: 100%; cursor: pointer; opacity: 0; transition: opacity 1.6s var(--ease-out); -webkit-tap-highlight-color: transparent; }
.hero__gl.is-ready { opacity: 1; }
.hero__inner { position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; padding-bottom: 34px; pointer-events: none; }
.hero__inner > * { pointer-events: auto; }
.hero__copy { max-width: 640px; color: #F4EEE6; }
.hero__copy .h1 { color: #F4EEE6; }
.hero__lead { margin: 22px 0 30px; max-width: 560px; color: rgba(244, 238, 230, .74); font-size: clamp(17px, 1.45vw, 20px); line-height: 1.5; font-weight: 500; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; }

/* card del video */
.vcard {
  position: relative; flex: none; display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center;
  width: 360px; padding: 10px 16px 10px 10px; border: 0; border-radius: 16px; cursor: pointer; text-align: left;
  color: rgba(244, 238, 230, .82); font-size: 13.5px; line-height: 1.45;
  background: rgba(10, 31, 35, .66); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 20px 50px -24px rgba(0, 0, 0, .8);
  transition: transform .3s var(--ease), background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.vcard:hover { transform: translateY(-2px); background: rgba(12, 38, 43, .78); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2), 0 24px 56px -24px rgba(0, 0, 0, .85); }
.vcard b { color: #F4EEE6; }
.vcard__thumb { position: relative; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: #0E3A40; }
.vcard__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 30%; transition: transform .6s var(--ease-out); }
.vcard__thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3, 19, 22, .05), rgba(3, 19, 22, .45)); }
.vcard:hover .vcard__thumb img { transform: scale(1.05); }
/* tasto play: solo vetro sfocato, senza riflessi */
.vcard__play {
  position: relative; z-index: 2; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; color: #fff;
  background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24);
  transition: transform .4s var(--ease-out), background-color .3s var(--ease);
}
.vcard__play svg { width: 17px; height: 17px; margin-left: 3px; }
.vcard:hover .vcard__play { transform: scale(1.06); background: rgba(255, 255, 255, .24); }
/* desktop: card del video più grande */
@media (min-width: 1101px) {
  .vcard { width: clamp(420px, 35vw, 560px); grid-template-columns: 48% 1fr; gap: 20px; padding: 12px 24px 12px 12px; border-radius: 22px; font-size: 15.5px; line-height: 1.5; }
  .vcard__thumb { border-radius: 14px; }
  .vcard__play { width: 62px; height: 62px; }
  .vcard__play svg { width: 22px; height: 22px; margin-left: 4px; }
}

.hero__trust { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 10px 32px; padding-block: 18px 26px; border-top: 1px solid rgba(244, 238, 230, .1); color: rgba(244, 238, 230, .66); font-size: 14px; font-weight: 550; }
.hero__trust > span { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust b { color: #F4EEE6; font-weight: 650; }
.hero__trust .ic { color: var(--c2); font-size: 16px; }
.scrollcue { position: absolute; z-index: 2; left: 50%; bottom: 22px; width: 22px; height: 34px; margin-left: -11px; border-radius: 12px; box-shadow: inset 0 0 0 1.5px rgba(244, 238, 230, .28); display: none; }
.scrollcue span { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--c2); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ---- numeri ---- */
.metrics { position: relative; padding: 18px 0 30px; background: var(--bg); color: var(--ink); }
.metrics__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric { display: flex; flex-direction: column; gap: 10px; padding: 26px 28px; border-left: 1px solid var(--line); }
.metric:first-child { border-left: 0; padding-left: 0; }
.metric__num { font-size: clamp(46px, 5.2vw, 76px); line-height: 1; letter-spacing: -0.05em; font-weight: 500; font-variant-numeric: tabular-nums; }
.metric__unit { margin-left: 6px; font-size: .36em; letter-spacing: -0.01em; color: var(--acc2); font-weight: 600; }
.metric__label { color: var(--muted); font-size: 14.5px; line-height: 1.4; max-width: 22ch; }

/* ---- parole in movimento ---- */
.marquee { position: relative; overflow: hidden; padding: 26px 0 38px; background: var(--bg); color: var(--ink); }
.marquee__clip { overflow: hidden; -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; width: max-content; animation: marq 46s linear infinite; }
.marquee__row { display: flex; align-items: center; gap: 30px; padding-right: 30px; }
.marquee__row span { font-size: clamp(34px, 5.4vw, 72px); font-weight: 500; letter-spacing: -0.045em; white-space: nowrap; }
.marquee__row .o { color: transparent; -webkit-text-stroke: 1.2px color-mix(in oklab, var(--ink) 40%, transparent); }
.marquee__mark { width: 30px; height: 30px; flex: none; }
@keyframes marq { to { transform: translate3d(-50%, 0, 0); } }

/* ---- la pagina che si volta ---- */
.turn { position: relative; height: 290vh; }
.turn__stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.turn__under, .turn__page { position: absolute; inset: 0; }
.turn__under { z-index: 0; background: var(--bg); color: var(--ink); } /* segue la pagina: si scurisce insieme alle Storie che vengono subito dopo */
.turn__page { z-index: 1; background: #031316; will-change: clip-path; }
/* sfondo delle due pagine: aloni morbidi che si spostano piano, righe di quaderno appena visibili e grana */
.turn__glow, .turn__paper { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.turn__glow::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 95% at 35% 50%, transparent 45%, rgba(2, 12, 14, .6) 100%); }
.tg { position: absolute; border-radius: 50%; will-change: transform, translate; translate: calc(var(--hx, 0) * var(--dx, 0px)) calc(var(--hy, 0) * var(--dy, 0px)); }
/* spostamento col cursore (--hx/--hy da -1 a 1, scritti dal JS): ogni alone a una profondità diversa */
.tg--a { --dx: 90px; --dy: 64px; }
.tg--b { --dx: -64px; --dy: -46px; }
.tg--c { --dx: 150px; --dy: 105px; }
.tg--d { --dx: 48px; --dy: 34px; }
.tg--a { width: 84vmax; height: 84vmax; right: -26vmax; top: -30vmax; background: radial-gradient(closest-side, rgba(214, 150, 104, .46), rgba(201, 138, 96, .16) 46%, transparent 72%); animation: tgA 19s ease-in-out infinite alternate; }
.tg--b { width: 76vmax; height: 76vmax; left: -26vmax; bottom: -32vmax; background: radial-gradient(closest-side, rgba(60, 140, 136, .42), rgba(60, 140, 136, .14) 48%, transparent 72%); animation: tgB 24s ease-in-out infinite alternate; }
.tg--c { width: 50vmax; height: 50vmax; left: 38%; top: 22%; background: radial-gradient(closest-side, rgba(246, 215, 185, .14), transparent 70%); mix-blend-mode: screen; animation: tgC 16s ease-in-out infinite alternate; }
.tg--d { width: 58vmax; height: 58vmax; left: -14vmax; top: 18%; background: radial-gradient(closest-side, rgba(201, 138, 96, .14), transparent 70%); animation: tgD 21s ease-in-out infinite alternate; }
.turn__paper .tg--a { background: radial-gradient(closest-side, rgba(226, 176, 140, .30), rgba(226, 176, 140, .10) 46%, transparent 72%); }
.turn__paper .tg--b { background: radial-gradient(closest-side, rgba(60, 140, 136, .16), transparent 72%); }
.turn__lines { position: absolute; inset: 0; background: repeating-linear-gradient(180deg, rgba(244, 238, 230, .045) 0 1px, transparent 1px 36px); -webkit-mask-image: radial-gradient(75% 70% at 72% 45%, #000, transparent 78%); mask-image: radial-gradient(75% 70% at 72% 45%, #000, transparent 78%); }
.turn__glow .grain { opacity: .08; }
@keyframes tgA { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-11vmax, 8vmax, 0) scale(1.16); } }
@keyframes tgB { from { transform: translate3d(0, 0, 0) scale(1.08); } to { transform: translate3d(10vmax, -8vmax, 0) scale(.92); } }
@keyframes tgC { from { transform: translate3d(-7vmax, 5vmax, 0) scale(.9); } to { transform: translate3d(8vmax, -6vmax, 0) scale(1.18); } }
@keyframes tgD { from { transform: translate3d(0, 0, 0) scale(.95); } to { transform: translate3d(6vmax, -4vmax, 0) scale(1.1); } }
/* telefono e schermi touch: niente cursore, quindi gli aloni si muovono al doppio della velocità */
@media (hover: none), (max-width: 899px) {
  .tg--a { animation-duration: 9.5s; }
  .tg--b { animation-duration: 12s; }
  .tg--c { animation-duration: 8s; }
  .tg--d { animation-duration: 10.5s; }
}
.turn__content { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.turn__content .lead { margin: 22px 0 30px; }
.turn__title { font-size: clamp(40px, 6.4vw, 96px); line-height: 1.02; letter-spacing: -0.05em; font-weight: 540; max-width: 14ch; }
.turn__hint { display: inline-flex; align-items: center; gap: 12px; margin: 0; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.turn__hint span { position: relative; width: 40px; height: 1px; background: var(--line); overflow: hidden; }
.turn__hint span::after { content: ""; position: absolute; inset: 0; background: var(--c2); transform: translateX(-100%); animation: hint 2s var(--ease) infinite; }
@keyframes hint { to { transform: translateX(100%); } }
.turn__flap {
  position: absolute; z-index: 2; left: 0; top: 0; width: 100%; height: 100%; transform-origin: 0 0; pointer-events: none; overflow: hidden;
  background:
    repeating-linear-gradient(180deg, rgba(13, 33, 37, .035) 0 1px, transparent 1px 26px),
    linear-gradient(135deg, #F4ECE1, #E9DDCB);
  will-change: transform, clip-path;
}
.turn__flapShade, .turn__cast { position: absolute; left: 0; top: 0; width: 220vmax; height: 440vmax; transform-origin: 0 0; pointer-events: none; }
.turn__flapShade { background: linear-gradient(90deg, rgba(255, 255, 255, .75) 0, rgba(255, 255, 255, .15) 1.2vmax, rgba(255, 255, 255, 0) 5vmax, rgba(120, 85, 50, .0) 14vmax, rgba(120, 85, 50, .22) 60vmax); }
.turn__cast { z-index: 1; background: linear-gradient(90deg, rgba(3, 19, 22, .38) 0, rgba(3, 19, 22, .12) 3vmax, rgba(3, 19, 22, 0) 9vmax); }

/* ---- metodo ---- */
.method__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.method__side { position: sticky; top: 120px; }
.method__side .lead { margin-top: 20px; }
.rail { position: relative; list-style: none; margin: 40px 0 0; padding: 0 0 0 26px; display: grid; gap: 4px; }
.rail::before { content: ""; position: absolute; left: 7px; top: 14px; bottom: 14px; width: 1.5px; background: var(--line); }
.rail__fill { position: absolute; left: 7px; top: 14px; bottom: 14px; width: 1.5px; transform-origin: top; transform: scaleY(var(--mp, 0)); background: var(--c3); }
.rail__item { position: relative; display: flex; align-items: center; gap: 14px; padding: 10px 0; color: var(--muted); font-weight: 550; transition: color .35s var(--ease); }
.rail__item::before { content: ""; position: absolute; left: -23px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line); transition: background-color .35s var(--ease), box-shadow .35s var(--ease); }
.rail__item .mono { display: inline-grid; place-items: center; min-width: 34px; height: 26px; padding: 0 6px; border-radius: 6px; font-size: 12px; background: var(--card); box-shadow: var(--sh-1); transition: background-color .35s var(--ease), color .35s var(--ease); }
.rail__item.is-on { color: var(--ink); }
.rail__item.is-on::before { background: var(--c3); box-shadow: none; }
.rail__item.is-on .mono { background: var(--tile); color: #F4EEE6; box-shadow: none; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.step { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 20px; align-items: center; min-height: 270px; }
.step .iso { margin: 0; }


/* ---- cosa ti aspetta ---- */
.included { display: flex; flex-wrap: wrap; gap: 8px; margin: -16px 0 26px; padding: 0; list-style: none; }
.included li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: var(--card); box-shadow: var(--sh-1); font-size: 14.5px; font-weight: 550; }
.included .ic { color: var(--acc2); font-size: 16px; }
.feat { min-height: 300px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.feat.c-7 .fx__copy { max-width: 56%; margin-top: auto; }
.feat .iso--lg { position: absolute; right: 2%; top: 50%; margin: -112px 0 0; }
.steps-mini { display: flex; align-items: center; gap: 8px; }
.steps-mini span { display: grid; place-items: center; height: 34px; min-width: 44px; padding: 0 10px; border-radius: 8px; font: 600 13px/1 var(--mono); color: var(--muted); background: var(--soft); position: relative; }
.steps-mini span + span::before { content: ""; position: absolute; right: 100%; width: 8px; height: 1.5px; background: var(--line); }
.steps-mini span:first-child { background: var(--tile); color: #F4EEE6; }
.pace { display: grid; gap: 8px; }
.pace span { display: block; height: 8px; border-radius: 99px; background: var(--soft); position: relative; overflow: hidden; }
.pace span::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--tile); transform-origin: left; transform: scaleX(var(--w)); transition: transform 1.2s var(--ease-out); }
.js .rv:not(.in) .pace span::after { transform: scaleX(0); }
.week { display: flex; gap: 6px; }
.week span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; font: 600 12px/1 var(--mono); color: var(--muted); background: var(--soft); }
.week .on { background: var(--tile); color: #F4EEE6; }
.script { display: grid; gap: 9px; padding: 16px; border-radius: 12px; background: var(--soft); }
.script i { display: block; height: 7px; width: calc(var(--w) * 100%); border-radius: 99px; background: color-mix(in oklab, var(--ink) 14%, transparent); }
.script i.hl { background: var(--c3); }

/* ---- storie (zona che diventa scura) ---- */
.stories { overflow: hidden; }
.stories__glow { position: absolute; inset: 0; pointer-events: none; opacity: var(--dk); background: radial-gradient(40% 35% at 15% 20%, rgba(201, 138, 96, .2), transparent 70%), radial-gradient(40% 40% at 90% 60%, rgba(60, 140, 136, .18), transparent 70%); }
.rating { display: inline-flex; align-items: center; gap: 14px; margin-top: 26px; padding: 10px 18px; border-radius: 999px; background: var(--card); box-shadow: var(--sh-1); }
.rating__num { font-size: 26px; font-weight: 650; letter-spacing: -0.04em; }
.tp-stars { display: inline-flex; gap: 3px; }
.tp-stars i { width: 24px; height: 24px; display: block; background: #00B67A url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M12 1l2.59 7.44 7.87.16-6.28 4.76 2.29 7.54L12 16.4l-6.47 4.5 2.29-7.54L1.54 8.6l7.87-.16z'/%3E%3C/svg%3E") center / 68% no-repeat; opacity: .3; transform: scale(.85); transition: opacity .4s var(--ease), transform .5s var(--ease-out); }
.tp-stars i:nth-child(2) { transition-delay: .06s; } .tp-stars i:nth-child(3) { transition-delay: .12s; }
.tp-stars i:nth-child(4) { transition-delay: .18s; } .tp-stars i:nth-child(5) { transition-delay: .24s; }
.tp-stars i.tp-stars__half { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M12 1l2.59 7.44 7.87.16-6.28 4.76 2.29 7.54L12 16.4l-6.47 4.5 2.29-7.54L1.54 8.6l7.87-.16z'/%3E%3C/svg%3E") center / 68% no-repeat, linear-gradient(90deg, #00B67A 50%, #DCDCE6 50%); }
.rating.is-lit .tp-stars i, .rating:hover .tp-stars i { opacity: 1; transform: none; }
.tp-logo { display: inline-flex; align-items: center; gap: 5px; font-size: 19px; font-weight: 700; letter-spacing: -0.035em; color: var(--ink); }
.tp-logo svg { width: 22px; height: 22px; margin-top: -2px; }
.tp-ico { width: 16px; height: 16px; flex: none; }
.metric__tp { display: inline-block; width: .44em; height: .44em; margin-left: 10px; vertical-align: .02em; }

.featured { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.story--big { display: grid; grid-template-columns: 140px minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 6px 26px; margin: 0; padding: 26px; }
.story--big img { grid-column: 1; grid-row: 1 / 3; width: 140px; height: 172px; object-fit: cover; border-radius: 12px; }
.story--big blockquote { grid-column: 2; grid-row: 2; margin: 0; font-size: 16.5px; line-height: 1.6; color: var(--ink); }
.story--big figcaption { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.story--big figcaption b { font-size: 18px; letter-spacing: -0.02em; }
.story--big figcaption span { color: var(--muted); font-size: 14px; }

.reviews { position: relative; display: grid; gap: 6px; margin-top: 6px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.reviews__row { overflow: hidden; }
.reviews__track { display: flex; width: max-content; animation: marq 70s linear infinite; }
.reviews__row--rev .reviews__track { animation-direction: reverse; animation-duration: 80s; }
.reviews:hover .reviews__track { animation-play-state: paused; }
.reviews__set { display: flex; }
.review { flex: none; width: 360px; margin: 0 6px 0 0; padding: 22px; }
.review figcaption { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.review img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line); }
.review b { display: block; font-size: 15.5px; letter-spacing: -0.02em; }
.review small { display: block; color: var(--muted); font-size: 12.5px; }
.review blockquote { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.note { margin: 30px auto 0; max-width: 720px; text-align: center; color: var(--muted); font-size: 13.5px; }

/* ---- chi ti accompagna ---- */
.card.founder { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); padding: 0; }
.founder__photo { position: relative; overflow: hidden; display: grid; place-items: center; min-height: 420px; background: var(--soft); }
.founder__meta { margin: 10px 0 0; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.founder__facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.founder__facts li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 999px; background: var(--soft); font-size: 14px; font-weight: 550; color: var(--ink); }
.founder__facts .ic { color: var(--acc2); font-size: 15px; }
.founder__photo picture, .founder__img { position: absolute; inset: 0; width: 100%; height: 100%; }
.founder__img { object-fit: cover; object-position: 60% 22%; }
.founder__body { padding: clamp(28px, 4.5vw, 56px); }
.founder__body p { color: var(--muted); }
.founder__claim { margin: 14px 0 22px; font-family: var(--serif); font-style: italic; font-size: 26px; line-height: 1.2; color: var(--ink) !important; }
.founder__quote { margin: 26px 0 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--c2); font-size: 18px; line-height: 1.5; font-weight: 550; letter-spacing: -0.02em; }
.founder__quote cite { display: block; margin-top: 8px; font-style: normal; font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }

/* ---- sigilli di sicurezza ---- */
.seal-card { min-height: 360px; }
.seal { position: relative; width: 132px; height: 132px; margin-bottom: 26px; }
.seal svg { width: 100%; height: 100%; animation: sealSpin 32s linear infinite; }
.seal text { font: 600 9.6px var(--mono); letter-spacing: 2.4px; fill: var(--muted); }
.seal__core { position: absolute; inset: 30px; display: grid; place-items: center; border-radius: 50%; font-size: 28px; color: var(--tile-ink); background: var(--tile); box-shadow: 0 0 0 8px rgba(13, 33, 37, .05); }
@keyframes sealSpin { to { transform: rotate(360deg); } }

/* ---- FAQ ---- */
.faq { max-width: 880px; }
.faq__list { border-bottom: 1px solid var(--line); }
.qa { border-top: 1px solid var(--line); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; cursor: pointer; list-style: none; font-size: clamp(17px, 1.5vw, 20px); font-weight: 600; letter-spacing: -0.02em; }
.qa summary::-webkit-details-marker { display: none; }
.qa__chev { position: relative; flex: none; width: 32px; height: 32px; border-radius: 8px; background: var(--card); box-shadow: var(--sh-1); transition: transform .3s var(--ease); }
.qa__chev::before { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -6px 0 0 -4px; border-right: 1.6px solid var(--ink); border-bottom: 1.6px solid var(--ink); transform: rotate(45deg); }
.qa[open] .qa__chev { transform: rotate(180deg); }
.qa.is-closing .qa__chev { transform: none; }
.qa__a { overflow: hidden; }
.qa__a p { margin: 0 0 26px; max-width: 70ch; color: var(--muted); font-size: 16px; line-height: 1.6; }

/* ---- CTA finale ---- */
.cta { position: relative; overflow: hidden; padding-block: clamp(80px, 10vw, 140px); background: #031316; }
.cta__bg { position: absolute; inset: 0; pointer-events: none; }
.cta__bg .hero__glow--a { animation-duration: 11s; }
.cta__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.cta__art { position: relative; aspect-ratio: 1 / .86; }
.cta__gl { position: absolute; inset: -10%; width: 120%; height: 120%; opacity: 0; transition: opacity 1.4s var(--ease-out); cursor: pointer; }
.cta__gl.is-ready { opacity: 1; }
.cta__title { color: var(--ink); }
.cta__copy .lead { margin: 22px 0 30px; }
.cta__hint { margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.cta__facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 34px 0 0; padding: 22px 0 0; list-style: none; border-top: 1px solid var(--line); color: var(--muted); font-size: 14.5px; font-weight: 550; }
.cta__facts li { display: inline-flex; align-items: center; gap: 8px; }
.cta__facts .ic { color: var(--c2); }

/* ---- footer ---- */
.foot { padding: 64px 0 calc(28px + env(safe-area-inset-bottom)); background: #021013; }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.foot .brand { color: var(--ink); margin-bottom: 20px; }
.foot__lead { max-width: 42ch; color: var(--ink); font-size: 17px; font-weight: 550; letter-spacing: -0.02em; }
.foot__next { color: var(--muted); }
.foot__nav { display: flex; flex-wrap: wrap; align-content: flex-start; justify-content: flex-end; gap: 8px 22px; }
.foot__nav a, .foot__legal a { color: var(--muted); text-decoration: none; transition: color .2s var(--ease); }
.foot__nav a:hover, .foot__legal a:hover { color: var(--ink); }
.foot__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 22px; color: var(--muted); font-size: 13px; }
.foot__legal p { margin: 0; }
.foot__legal p:last-child { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* ---- barra CTA mobile ---- */
.dock { position: fixed; z-index: 45; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: none; transform: translateY(160%); transition: transform .5s var(--ease-out); }
.dock.is-on { transform: none; }
.dock .btn { box-shadow: 0 14px 32px -12px rgba(3, 19, 22, .55); min-height: 54px; }

/* ---- video ---- */
.vmodal { width: min(980px, calc(100vw - 24px)); max-width: none; padding: 0; border: 0; background: transparent; color: #F4EEE6; }
.vmodal::backdrop { background: rgba(3, 19, 22, .74); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.vmodal[open] .vmodal__box { animation: pop .32s var(--ease-out); }
@keyframes pop { from { opacity: 0; transform: scale(.97) translateY(-6px); } }
.vmodal__box { position: relative; border-radius: 20px; overflow: hidden; background: #06191C; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .08); }
.vmodal__frame { position: relative; aspect-ratio: 16 / 9; }
.vmodal__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vmodal__ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; text-align: center; background: radial-gradient(60% 70% at 30% 20%, rgba(201, 138, 96, .3), transparent 70%), radial-gradient(50% 60% at 90% 90%, rgba(60, 140, 136, .25), transparent 70%); }
.vmodal__ph > *:not(.vmodal__poster) { position: relative; z-index: 1; }
.vmodal__poster { position: absolute; inset: 0; z-index: 0; }
.vmodal__poster img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }
.vmodal__poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3, 19, 22, .05) 35%, rgba(3, 19, 22, .55) 62%, rgba(3, 19, 22, .92) 100%); }
/* anteprima del video: play al centro, messaggio in basso così il viso resta libero */
.vmodal__ph { justify-content: flex-end; gap: 14px; padding: 24px 24px clamp(22px, 4vw, 40px); }
.vmodal__ph .vcard__play { position: absolute; z-index: 1; left: 50%; top: 40%; width: 88px; height: 88px; transform: translate(-50%, -50%); }
.vmodal__ph .vcard__play svg { width: 30px; height: 30px; margin-left: 5px; }
.vmodal__ph p { margin: 0; color: rgba(244, 238, 230, .82); }
.vmodal__ph b { color: #F4EEE6; font-size: 18px; }
.vmodal__close { position: absolute; z-index: 2; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .1); color: #F4EEE6; font-size: 26px; line-height: 1; cursor: pointer; }
.vmodal__close:hover { background: rgba(255, 255, 255, .18); }

/* ---- prenotazione: modulo e ringraziamento ---- */
.lead { width: min(560px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); padding: 0; border: 0; overflow: visible; color: var(--ink); }
.lead.tscope { background: transparent; }
.lead::backdrop { background: rgba(3, 19, 22, .74); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lead[open] .lead__box { animation: pop .36s var(--ease-out); }
.lead__box {
  position: relative; max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain;
  padding: clamp(26px, 4.5vw, 44px) clamp(20px, 4.5vw, 44px) clamp(22px, 4vw, 36px); border-radius: 24px; text-align: center;
  background: #0A2226;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .09), 0 40px 100px -30px rgba(0, 0, 0, .85);
}
.lead__close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); color: #F4EEE6; font-size: 24px; line-height: 1; cursor: pointer; transition: background-color .2s var(--ease); }
.lead__close:hover { background: rgba(255, 255, 255, .12); }
.lead__mark { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 15px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.lead__mark svg { width: 30px; height: 30px; }
.lead__eyebrow { margin: 18px 0 8px; color: var(--c2); font-size: 11.5px; text-transform: uppercase; letter-spacing: .14em; }
.lead__title { font-size: clamp(27px, 3.6vw, 38px); line-height: 1.06; letter-spacing: -0.04em; font-weight: 560; }
.lead__title:focus { outline: none; }
.lead__mark + .lead__title { margin-top: 18px; } /* titolo subito sotto il logo, senza etichetta sopra */
.lead__lead { max-width: 42ch; margin: 12px auto 24px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.lf { margin-bottom: 14px; text-align: left; }
.lf label { display: block; margin-bottom: 7px; color: var(--muted); font: 500 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.lf__box { display: flex; align-items: center; gap: 11px; height: 56px; padding: 0 14px; border-radius: 13px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .13); transition: background-color .2s var(--ease), box-shadow .2s var(--ease); }
.lf__box:focus-within { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(244, 238, 230, .34); }
.lf__box > .ic { color: rgba(244, 238, 230, .55); font-size: 19px; }
.lf__box input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: none; background: transparent; color: #F4EEE6; font: 500 16px/1 var(--sans); letter-spacing: -0.01em; }
.lf__box input::placeholder { color: rgba(244, 238, 230, .34); }
.lf__cc { position: relative; flex: none; display: inline-flex; align-items: center; gap: 4px; height: 30px; padding-right: 11px; border-right: 1px solid rgba(255, 255, 255, .16); color: #F4EEE6; font-weight: 650; }
.lf__cc svg { width: 12px; height: 12px; opacity: .6; }
.lf__cc select { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.lf__hint { margin: 7px 2px 0; color: var(--muted); font-size: 12.5px; }
.lf__err { margin: 7px 2px 0; color: #F3A6A2; font-size: 13px; line-height: 1.4; }
.lf__err:empty { display: none; }
.lf.is-err .lf__box { box-shadow: inset 0 0 0 1px rgba(240, 138, 134, .8); }
/* stato della verifica email (come nel quiz) */
.lf__status { margin: 8px 2px 0; font-size: 13px; line-height: 1.45; color: var(--muted); text-align: left; }
.lf__status:empty { display: none; }
.lf__status--wait { display: flex; align-items: center; gap: 8px; }
.lf__status--ok { color: #7FD3B4; }
.lf__status--typo { padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); color: #F4EEE6; }
.lf__status strong { color: #F4EEE6; font-weight: 650; }
.lf__status-extra { display: block; margin-bottom: 4px; color: #F3A6A2; }
.lf__status-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.lf__chip { min-height: 38px; padding: 0 14px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); color: #F4EEE6; font: 600 13.5px/1 var(--sans); cursor: pointer; }
.lf__chip:hover { background: rgba(255, 255, 255, .13); }
.lf__chip--primary { background: var(--cta); color: var(--cta-ink); box-shadow: none; }
.lf__chip--primary:hover { background: var(--cta-hover); }
.lf__spin { flex: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .2); border-top-color: var(--c2); animation: lfspin .8s linear infinite; }
@keyframes lfspin { to { transform: rotate(360deg); } }
.lf__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead form .btn { margin-top: 8px; }
.lead__privacy { margin: 14px auto 0; max-width: 46ch; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.lead__privacy a { color: #F4EEE6; }
.lead__check { display: inline-block; width: 66px; height: 66px; margin: 6px 0 14px; }
.lead__check svg { width: 100%; height: 100%; fill: none; stroke: var(--c2); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.lead__check circle, .lead__check path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.lead__view:not([hidden]) .lead__check circle { animation: draw .7s var(--ease-out) .1s forwards; }
.lead__view:not([hidden]) .lead__check path { animation: draw .5s var(--ease-out) .55s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.lead__note { max-width: 38ch; margin: 0 auto 18px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.lead__small { margin: 12px auto 18px; max-width: 40ch; color: var(--muted); font-size: 12px; line-height: 1.5; }
.lead .btn--ghost { --f: #F4EEE6; }
.lead #leadCal .ic { font-size: 18px; }
.lead #leadCal.is-off { pointer-events: none; opacity: .5; }

/* ---------- Responsive ---------- */


@media (max-width: 1100px) and (min-width: 900px) {
  .hero__stage { width: 48%; top: 6%; bottom: 14%; }
  .hero__copy { max-width: 560px; }
}
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .vcard { width: 300px; grid-template-columns: 96px 1fr; }
}
@media (max-width: 1023px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento > * { grid-column: span 1; }
  .bento > .c-7, .bento > .c-5 { grid-column: span 2; }
  .feat.c-7 .fx__copy { max-width: 58%; }
  .metrics__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric:nth-child(3) { border-left: 0; padding-left: 0; }
  .metric:nth-child(n+3) { border-top: 1px solid var(--line); }
  .story--big { display: flex; flex-direction: column; gap: 14px; }
  .story--big img { order: 0; width: 76px; height: 76px; border-radius: 50%; }
  .story--big figcaption { order: 1; margin: 0; }
  .story--big blockquote { order: 2; }
  .method__grid { grid-template-columns: 1fr; }
  .method__side { position: static; }
  .rail { display: none; }
}
@media (max-width: 899px) {
  :root { --nav-h: 56px; }
  .nav { top: 10px; padding-inline: 10px; }
  .nav__pill { padding: 0 6px 0 16px; }
  .nav.is-scrolled .nav__pill { max-width: 1080px; }
  .nav__actions { display: none; }
  .burger { display: block; }
  .dock { display: block; }
  .brand__word { font-size: 17px; }

  .hero { padding-top: calc(var(--nav-h) + 8px + 43svh); min-height: 0; }
  .hero__stage { top: calc(var(--nav-h) + 8px); bottom: auto; width: 100%; height: 46svh; }
    .hero__vignette { background: linear-gradient(0deg, rgba(3, 19, 22, .96) 0%, rgba(3, 19, 22, .75) 42%, transparent 62%), radial-gradient(120% 70% at 50% 30%, transparent 50%, rgba(3, 19, 22, .8) 100%); }
  .wall { left: -10%; top: -40%; width: 140%; }
  .hero__inner { flex-direction: column; align-items: stretch; gap: 26px; padding-bottom: 22px; }
  .hero__ctas .btn { width: 100%; }
  /* telefono: card del video verticale, anteprima grande e play al centro */
  .vcard { width: 100%; grid-template-columns: 1fr; gap: 14px; padding: 10px 10px 18px; border-radius: 22px; text-align: center; font-size: 15px; line-height: 1.5; }
  .vcard__thumb { aspect-ratio: 16 / 9; border-radius: 15px; }
  .vcard__thumb img { object-position: 58% 32%; }
  .vcard__play { width: 72px; height: 72px; }
  .vcard__play svg { width: 26px; height: 26px; margin-left: 4px; }
  .vcard__text { display: block; max-width: 36ch; margin: 0 auto; padding: 0 8px; }
  .vcard { max-width: 640px; }
  .hero__trust { gap: 10px 20px; font-size: 13.5px; }

  .shead--split { grid-template-columns: 1fr; gap: 18px; }
  .shead--split .lead { padding-left: 0; border-left: 0; }
  .featured { grid-template-columns: 1fr; }
  .card.founder { grid-template-columns: 1fr; }
  .founder__photo { min-height: 300px; }
  .cta__grid { grid-template-columns: 1fr; gap: 8px; }
  .cta__art { max-width: 460px; width: 100%; margin: -24px auto 0; aspect-ratio: 1 / .72; }
  .cta__gl { inset: 0; width: 100%; height: 100%; }
  .foot__grid { grid-template-columns: 1fr; }
  .foot__nav { justify-content: flex-start; }
  .foot { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
@media (max-width: 640px) {
  .vmodal__frame { aspect-ratio: 4 / 5; }
  .vmodal__ph .vcard__play { top: 54%; width: 64px; height: 64px; }
  .bento { grid-template-columns: 1fr; }
  .bento > *, .bento > .c-7, .bento > .c-5 { grid-column: auto; }
  .card { padding: 22px; }
  .card--data { min-height: 0; }
  .card--pain { min-height: 0; }
  .feat { min-height: 0; }
  .seal-card { min-height: 0; }
  .feat.c-7 .fx__copy { max-width: none; }
  .feat .iso--lg { position: relative; right: auto; top: auto; margin: -10px auto 0; width: 220px; height: 180px; }
  .step { grid-template-columns: 1fr; gap: 6px; min-height: 0; }
  .step .iso { margin: -6px auto 0; }
  .metric { padding: 20px 16px; }
  .metric:nth-child(odd) { padding-left: 0; border-left: 0; }
  .metric:nth-child(even) { border-left: 1px solid var(--line); }
  .review { width: 300px; }
  .rating { gap: 10px; padding: 9px 14px; }
  .week span { width: 34px; height: 34px; }
  .sheet__list a { font-size: 30px; }
}

/* ---------- 5. Movimento ridotto e senza JS ---------- */
.no-js .turn, .reduced .turn { height: auto; }
.no-js .turn__stage, .reduced .turn__stage { position: relative; height: auto; overflow: visible; }
.no-js .turn__under, .no-js .turn__page, .reduced .turn__under, .reduced .turn__page { position: relative; min-height: 86vh; }
.no-js .turn__page, .reduced .turn__page { order: -1; }
.no-js .turn__stage, .reduced .turn__stage { display: flex; flex-direction: column; }
.no-js .turn__flap, .reduced .turn__flap, .no-js .turn__cast, .reduced .turn__cast, .no-js .turn__hint, .reduced .turn__hint { display: none; }
.no-js .reviews__row, .reduced .reviews__row { overflow-x: auto; }
.no-js .hero__gl { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .rv { opacity: 1; translate: none; }
  .marquee__track, .reviews__track, .wall__track, .seal svg { animation: none !important; transform: none !important; }
  .fx, .fx__art, .fx__copy { transform: none !important; }
}
