/* Effetto Vetrina · stile del sito. Colori, caratteri e scelte in ../../DESIGN_SITO.md */

@font-face { font-family: "Unbounded"; src: url("fonts/unbounded-900.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("fonts/spacegrotesk-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --canvas: #0B0F33;
  --panel: #141A4D;
  --cobalto: #2433FF;
  --accent: #CCFF33;
  --accent-hover: #DBFF6B;
  --accent-muted: rgba(204, 255, 51, .18);
  --text-primary: #F2F4FF;
  --text-secondary: #A9B0DA;
  --su-cobalto: #DDE2FF;
  --carta: #EEF0FA;
  --inchiostro: #0D0F2A;
  --bordo: rgba(169, 176, 218, .34);

  --f-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-label: "Space Grotesk", "Inter", system-ui, sans-serif;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-inout: cubic-bezier(.65, 0, .35, 1);
  --tshadow: 0 1px 2px rgba(5, 5, 10, .95), 0 3px 12px rgba(5, 5, 10, .78), 0 10px 44px rgba(5, 5, 10, .8);

  --wrap: min(1200px, calc(100vw - 2 * clamp(20px, 5vw, 64px)));
  --sec-pad: clamp(88px, 13vw, 168px);
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; overflow-x: clip; scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; overflow-x: hidden; overflow-x: clip;
  background: var(--canvas); color: var(--text-primary);
  font-family: var(--f-body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  animation: pagina-entra .9s var(--ease-out) both;
}
@keyframes pagina-entra { from { opacity: 0; } to { opacity: 1; } }
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--inchiostro); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--inchiostro); padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none; transition: top .3s var(--ease-out); }
.skip:focus { top: 12px; }
.nascosto { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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

/* ---------- sfondo unico fisso: due bagliori che si spostano piano + grana ---------- */
.env { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.env i { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; filter: blur(90px); opacity: .5; will-change: transform; }
.env__a { background: radial-gradient(circle, rgba(36, 51, 255, .55), transparent 65%); left: -20vmax; top: -10vmax; animation: deriva-a 96s linear infinite; animation-delay: -31s; }
.env__b { background: radial-gradient(circle, rgba(80, 60, 200, .4), transparent 65%); right: -25vmax; bottom: -20vmax; animation: deriva-b 120s linear infinite; animation-delay: -57s; }
.env::after { content: ""; position: absolute; inset: 0; opacity: .07; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes deriva-a { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(18vmax, 12vmax); } }
@keyframes deriva-b { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-16vmax, -10vmax); } }
body.paused *, body.paused *::before, body.paused *::after { animation-play-state: paused !important; }

/* ---------- tipografia ---------- */
.kicker { margin: 0 0 18px; font-family: var(--f-label); font-weight: 500; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.kicker--chiaro { color: var(--accent); }
.h2 { margin: 0 0 24px; font-family: var(--f-display); font-weight: 900; font-size: clamp(30px, 4.6vw, 60px); line-height: 1.04; letter-spacing: -.02em; max-width: 16ch; text-wrap: balance; }
.h2--center { margin-inline: auto; text-align: center; }
.lede { margin: 0 0 28px; font-size: clamp(17px, 1.4vw, 20px); color: var(--text-secondary); max-width: 46ch; }
.link { color: var(--text-primary); text-decoration-color: var(--accent); text-underline-offset: 4px; font-weight: 600; }

/* ---------- pulsanti ---------- */
.btn {
  --sh: 0;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 16px/1.1 var(--f-body); text-decoration: none; text-shadow: none; white-space: nowrap; overflow: hidden;
  transition: transform .35s var(--ease-out), background-color .35s var(--ease-out), box-shadow .35s var(--ease-out), color .35s var(--ease-out);
}
.btn--lime { background: var(--accent); color: var(--inchiostro); box-shadow: 0 0 0 0 rgba(204, 255, 51, 0); }
.btn--lime::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .7) 45%, transparent 60%); transform: translateX(-120%); transition: transform .8s var(--ease-out); }
.btn--lime:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 10px 30px -8px rgba(204, 255, 51, .55); }
.btn--lime:hover::after { transform: translateX(120%); }
.btn--ghost { background: rgba(242, 244, 255, .06); color: var(--text-primary); box-shadow: inset 0 0 0 1.5px rgba(242, 244, 255, .55); }
.btn--ghost:hover { background: rgba(242, 244, 255, .14); transform: translateY(-2px); }
.btn--small { padding: 11px 18px; font-size: 14px; }
.btn--grande { padding: 18px 34px; font-size: 17px; }
@media (pointer: coarse) { .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; } }

/* ---------- menu ---------- */
.nav {
  position: fixed; z-index: 50; top: 0; left: 0; right: 0;
  display: flex; align-items: center; gap: 28px; padding: 14px clamp(16px, 4vw, 40px);
  transition: background-color .5s var(--ease-out), backdrop-filter .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.nav.solido { background: rgba(11, 15, 51, .72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(169, 176, 218, .14); }
.nav__logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text-primary); margin-right: auto; }
.nav__logo .mark { width: 44px; height: 44px; }
.nav__word { font-family: var(--f-display); font-weight: 900; font-size: 15px; line-height: .98; letter-spacing: -.01em; }
.nav__word b, .piede__logo b { color: var(--accent); }
.nav__links { display: flex; gap: 26px; }
.nav__links a { position: relative; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--text-primary); opacity: .86; transition: opacity .3s var(--ease-out); }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease-out); }
.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after { transform: scaleX(1); }
@media (max-width: 900px) { .nav__links { display: none; } .nav__word { display: none; } }

/* =========================================================================
   APERTURA
   ========================================================================= */
.hero { position: relative; height: 100vh; height: 100svh; }
.hero-3d .hero { height: 560vh; }   /* ogni frase ≥ 5 rotellate normali (test delle rotellate) */
.hero__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #070a24; }
.hero__poster { position: absolute; inset: 0; background: #0d1340 url("img/via-ferma.jpg") center bottom / cover no-repeat; }
@media (orientation: portrait) { .hero__poster { background-image: url("img/via-ferma-9x16.jpg"); } }
.hero-3d .hero__poster { background-image: url("img/via-9x16-hd.jpg"); background-position: center top; transition: opacity .8s var(--ease-out); }   /* stessa foto del 3D: un solo download */
@media (orientation: portrait) { .hero-3d .hero__poster { background-image: url("img/via-9x16.jpg"); } }
.hero-3d .hero__stage.gl-pronto .hero__poster { opacity: 0; }
.hero__gl { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .8s var(--ease-out); transform: translateZ(0); }
.gl-pronto .hero__gl { opacity: 1; }
.scrim { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 120% 90% at 50% 45%, rgba(10, 10, 18, 0) 35%, rgba(10, 10, 18, .62) 100%); }

.band {
  --k: 1;
  position: absolute; left: 50%; top: 36%; z-index: 2; margin: 0;
  transform: translate(-50%, -50%); width: min(90vw, 1000px);
  text-align: center; font-family: var(--f-display); font-weight: 900; letter-spacing: -.02em;
  font-size: clamp(28px, 4.6vw, 66px); line-height: 1.06; color: #fff; text-shadow: var(--tshadow);
}
.band > .riga { display: block; max-width: 17ch; margin-inline: auto; text-wrap: balance; }
.band::before {
  content: ""; position: absolute; inset: -18% -8%; z-index: -1; pointer-events: none;
  opacity: calc(.25 + .75 * var(--k, 1));
  background: radial-gradient(ellipse 74% 62% at 50% 50%, rgba(5, 5, 10, .66) 0%, rgba(5, 5, 10, .44) 46%, rgba(5, 5, 10, 0) 76%);
}
.band--2 { top: 40%; }
.band--3 { top: 42%; }
.band--3::before { background: radial-gradient(ellipse 74% 62% at 50% 50%, rgba(5, 5, 10, .72) 0%, rgba(5, 5, 10, .5) 46%, rgba(5, 5, 10, 0) 76%); }
@media (max-width: 720px) {   /* foto verticale chiara e testo che occupa quasi tutta la larghezza: velo più ampio */
  .band::before, .band--3::before { inset: -42% -6%; background: radial-gradient(ellipse 82% 72% at 50% 50%, rgba(5, 5, 10, .8) 0%, rgba(5, 5, 10, .64) 52%, rgba(5, 5, 10, 0) 84%); }
}

/* le parole e le lettere (create da site.js) */
.w { display: inline-block; white-space: nowrap; }
.c { display: inline-block; will-change: transform, opacity; }
/* fascia 1: dal sfocato al nitido (due copie sovrapposte, il filtro non si anima mai) */
.band--1 .doppia { display: grid; }
.band--1 .doppia > * { grid-area: 1 / 1; }
.band--1 .morbida { filter: blur(10px); opacity: calc(1 - var(--k)); }
.band--1 .nitida { opacity: var(--k); transform: scale(calc(1.04 - .04 * var(--k))); }
/* fascia 2: le parole scendono al loro posto, come la telecamera */
.band--2 .w { --kc: clamp(0, (var(--k, 0) - var(--th, 0)) * 2.8, 1); opacity: var(--kc); transform: translateY(calc((1 - var(--kc)) * -28px)); }
/* fascia 3: «accensione», le lettere si accendono a scatti come un neon (opacità scritta da site.js) */
.band--3 .c { opacity: 0; }
.band--3 .c.on { text-shadow: var(--tshadow), 0 0 22px rgba(255, 255, 255, .35); }

/* fascia 4: l'arrivo, la vetrina di vetro con la cornice del logo */
.settle { top: 54%; font-size: inherit; text-shadow: none; }
.settle::before { display: none; }
.vetrina {
  position: relative; overflow: hidden; margin-inline: auto; width: min(92vw, 880px);
  padding: clamp(28px, 5vw, 56px) clamp(22px, 5vw, 60px);
  border-radius: clamp(28px, 4vw, 44px);
  background: rgba(14, 20, 70, calc(.42 + .3 * var(--k)));
  -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, calc(.35 + .6 * var(--k))), 0 0 calc(80px * var(--k)) rgba(36, 51, 255, calc(.55 * var(--k))), 0 40px 80px -30px rgba(0, 0, 0, .7);
  opacity: clamp(0, var(--k) * 3, 1);
  transform: translateY(calc((1 - clamp(0, var(--k) * 2, 1)) * 30px));
}
.vetrina::before { /* la luce che si accende dentro il vetro */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 80% 70% at 50% 40%, rgba(36, 51, 255, .85), rgba(36, 51, 255, .25) 60%, transparent 80%);
  opacity: clamp(0, (var(--k) - .1) * 1.6, 1);
}
.vetrina__shine { position: absolute; inset: -20% -10%; pointer-events: none; transform: translateX(calc(-90% + 160% * var(--k))) skewX(-22deg); }
.vetrina__shine b { position: absolute; top: 0; bottom: 0; background: linear-gradient(90deg, transparent, rgba(204, 255, 51, .5), transparent); }
.vetrina__shine b:first-child { left: 30%; width: 9%; }
.vetrina__shine b:last-child { left: 42%; width: 3%; background: rgba(255, 255, 255, .28); }
.settle .kicker { color: var(--accent); }
.settle__title { margin: 0 0 16px; font-family: var(--f-display); font-weight: 900; font-size: clamp(32px, 6.2vw, 84px); line-height: 1; letter-spacing: -.03em; text-transform: lowercase; color: #fff; }
.settle__title .dot { color: var(--accent); display: inline-block; }
.settle__title .w { --kc: clamp(0, (var(--k, 0) - var(--th, 0)) * 3.2, 1); opacity: var(--kc); transform: translateY(calc((1 - var(--kc)) * 40px)); }
.settle__sub { --ks: clamp(0, (var(--k, 1) - .55) * 3.5, 1); margin: 0 0 28px; font: 600 clamp(16px, 1.6vw, 20px)/1.45 var(--f-body); color: var(--su-cobalto); opacity: var(--ks); transform: translateY(calc((1 - var(--ks)) * 16px)); }
.settle__cta { --kb: clamp(0, (var(--k, 1) - .7) * 4, 1); display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; opacity: var(--kb); transform: translateY(calc((1 - var(--kb)) * 16px)); }

.cue { position: absolute; z-index: 3; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; color: #fff; font: 500 12px var(--f-label); letter-spacing: .24em; text-transform: uppercase; transition: opacity .5s var(--ease-out); }
.cue .ring { width: 34px; height: 34px; transform: rotate(-90deg); }
.cue .ring circle { transition: stroke-dashoffset .2s linear; }
.cue__txt { opacity: 0; transition: opacity .6s var(--ease-out); }
.cue.pronto .ring { animation: cue-respira 2.8s var(--ease-inout) infinite; animation-delay: -.6s; }
.cue.pronto .cue__txt { opacity: .85; }
@keyframes cue-respira { 0%, 100% { transform: rotate(-90deg) translateY(0); opacity: .9; } 50% { transform: rotate(-90deg) translateX(-6px); opacity: .5; } }
.hero-ferma .cue { display: none; }
@media (max-height: 560px) { .cue { display: none; } }

/* versione ferma (movimento ridotto, niente WebGL2, niente JS): solo l'arrivo, già composto */
.hero-ferma .band--1, .hero-ferma .band--2, .hero-ferma .band--3, html:not(.js) .band--1, html:not(.js) .band--2, html:not(.js) .band--3 { display: none; }
.hero-ferma .hero__gl { display: none; }
.hero-ferma .settle, html:not(.js) .settle { top: 56%; }

/* =========================================================================
   1. MARCIAPIEDE
   ========================================================================= */
.marciapiede__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.punti { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.punti li { display: flex; align-items: baseline; gap: 16px; padding: 16px 0; border-top: 1px solid var(--bordo); font-weight: 600; font-size: 17px; }
.punti__n { font: 500 13px var(--f-label); letter-spacing: .16em; color: var(--accent); }
.strada { width: 100%; height: auto; overflow: visible; }
.strada__linea { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: var(--dl, 1); }
.strada__vetro rect { fill: rgba(36, 51, 255, calc(.12 + .5 * var(--vl, 0))); transition: fill .6s var(--ease-out); }
.strada__luce path { fill: var(--accent); opacity: calc(.75 * var(--vl, 0)); transform: translateX(calc(-60px + 60px * var(--vl, 0))); transition: opacity .6s var(--ease-out), transform .9s var(--ease-out); }
.strada__lampione path { fill: none; stroke: var(--text-secondary); stroke-width: 3; stroke-linecap: round; }
.strada__lampione circle { fill: #FFD58A; }
.strada__alone { fill: rgba(255, 196, 102, .22) !important; animation: lampione 5.5s var(--ease-inout) infinite; animation-delay: -2s; transform-origin: 132px 206px; }
@keyframes lampione { 0%, 100% { opacity: .55; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.06); } }
.strada__tag { font: 500 13px var(--f-label); letter-spacing: .2em; text-transform: uppercase; fill: var(--text-secondary); }

/* =========================================================================
   2. LE TRE VETRINE (elemento firma)
   ========================================================================= */
.servizi { background: linear-gradient(180deg, transparent, rgba(20, 26, 77, .6) 30%, rgba(20, 26, 77, .6) 70%, transparent); }
.vetrine { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 32px); margin-top: clamp(40px, 6vw, 72px); }
.vt { position: relative; padding: 18px 18px 28px; }
.vt__vetro {
  position: relative; overflow: hidden; aspect-ratio: 4 / 3.4; margin-bottom: 26px;
  border-radius: 30px; background: #0a0e2e;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .22);
  transition: background-color 1s var(--ease-out), box-shadow 1s var(--ease-out);
}
.vt__vetro::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 70% at 50% 45%, rgba(36, 51, 255, .95), rgba(36, 51, 255, .35) 60%, transparent 85%); opacity: 0; transition: opacity .2s linear; }
.vt__ico { position: absolute; left: 50%; top: 50%; width: 46%; transform: translate(-50%, -50%); fill: none; stroke: rgba(255, 255, 255, .35); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; transition: stroke 1s var(--ease-out); }
.vt__ico .pieno { fill: rgba(255, 255, 255, .2); stroke: none; transition: fill 1s var(--ease-out); }
.vt__ico circle { fill: rgba(255, 255, 255, .35); stroke: none; }
.vt__shine { position: absolute; inset: -20% -10%; pointer-events: none; transform: translateX(-100%) skewX(-22deg); }
.vt__shine b { position: absolute; top: 0; bottom: 0; background: linear-gradient(90deg, transparent, rgba(204, 255, 51, .55), transparent); }
.vt__shine b:first-child { left: 30%; width: 12%; }
.vt__shine b:last-child { left: 46%; width: 4%; background: rgba(255, 255, 255, .3); }
.vt__t { margin: 0 0 10px; font: 900 clamp(22px, 2.2vw, 28px)/1.1 var(--f-display); letter-spacing: -.01em; opacity: .5; transition: opacity .8s var(--ease-out); }
.vt__p { margin: 0; color: var(--text-secondary); max-width: 34ch; opacity: .5; transform: translateY(10px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
/* accesa: luce a scatti (come un neon che parte) + riflesso che attraversa il vetro */
.vt.acceso .vt__vetro { background: #101863; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .95), 0 0 60px -10px rgba(36, 51, 255, .8); }
.vt.acceso .vt__vetro::before { animation: neon-parte 1.1s steps(1, end) both; opacity: 1; }
.vt.acceso .vt__ico { stroke: #fff; }
.vt.acceso .vt__ico .pieno { fill: var(--accent); }
.vt.acceso .vt__ico circle { fill: #fff; }
.vt.acceso .vt__shine { animation: riflesso 1.5s .5s var(--ease-out) both, riflesso-vivo 7s 3s var(--ease-inout) infinite; }
.vt.acceso .vt__t { opacity: 1; }
.vt.acceso .vt__p { opacity: 1; transform: none; transition-delay: .25s; }
@keyframes neon-parte { 0% { opacity: 0; } 12% { opacity: .8; } 20% { opacity: .1; } 34% { opacity: .9; } 42% { opacity: .3; } 56%, 100% { opacity: 1; } }
@keyframes riflesso { from { transform: translateX(-100%) skewX(-22deg); } to { transform: translateX(110%) skewX(-22deg); } }
@keyframes riflesso-vivo { 0%, 70% { transform: translateX(-100%) skewX(-22deg); } 100% { transform: translateX(110%) skewX(-22deg); } }

/* =========================================================================
   3. PROVA: accendi la tua
   ========================================================================= */
.prova { background: var(--cobalto); color: #fff; }
.prova .h2 { color: #fff; }
.prova__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 12px 18px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .1); color: #fff; font: 600 15px var(--f-body);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45);
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out), transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.chip:hover { background: rgba(255, 255, 255, .2); transform: translateY(-2px); }
.chip[aria-checked="true"] { background: #fff; color: var(--cobalto); box-shadow: none; }
@media (pointer: coarse) { .chip { min-height: 44px; } }
.accendi { display: grid; gap: 22px; justify-items: center; }
.accendi__vetro {
  --l: 0;
  position: relative; overflow: hidden; width: 100%; min-height: 360px;
  padding: clamp(28px, 4vw, 44px); border-radius: 40px;
  background: #0a0e2e; color: #fff;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, calc(.3 + .7 * var(--l))), 0 0 calc(90px * var(--l)) rgba(204, 255, 51, calc(.35 * var(--l)));
}
.accendi__luce { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 80% 75% at 50% 40%, #3a4bff, rgba(36, 51, 255, .5) 60%, transparent 90%); opacity: var(--l); }
.accendi__vetro .vetrina__shine { transform: translateX(calc(-90% + 160% * var(--l))) skewX(-22deg); }
.accendi__nome { position: relative; margin: 0 0 22px; font: 900 clamp(26px, 3vw, 38px)/1.05 var(--f-display); letter-spacing: -.02em; opacity: calc(.35 + .65 * var(--l)); }
.accendi__righe { position: relative; list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 12px; }
.accendi__righe li { display: flex; gap: 12px; align-items: baseline; font-weight: 600; font-size: 17px; opacity: calc(.16 + .2 * var(--l, 0)); transform: translateY(6px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.accendi__righe li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); transform: translateY(-1px); }
.accendi__fine, .accendi__cta { position: relative; opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.accendi__fine { margin: 0 0 18px; font: 900 18px var(--f-display); color: var(--accent); }
.accendi.fatto .accendi__righe li { opacity: 1; transform: none; }
.accendi.fatto .accendi__righe li:nth-child(2) { transition-delay: .18s; }
.accendi.fatto .accendi__righe li:nth-child(3) { transition-delay: .36s; }
.accendi.fatto .accendi__fine { opacity: 1; transform: none; transition-delay: .6s; }
.accendi.fatto .accendi__cta { opacity: 1; transform: none; transition-delay: .75s; }
.accendi.fatto.calmo .accendi__righe li, .accendi.fatto.calmo .accendi__fine, .accendi.fatto.calmo .accendi__cta,
.accendi.fatto.calmo .accendi__righe li:nth-child(2), .accendi.fatto.calmo .accendi__righe li:nth-child(3) { transition-delay: 0s; }
.interruttore {
  display: inline-flex; align-items: center; gap: 14px; padding: 10px 24px 10px 10px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .12); color: #fff; font: 600 16px var(--f-body);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); user-select: none; -webkit-user-select: none; touch-action: none;
  transition: background-color .3s var(--ease-out), transform .3s var(--ease-out);
}
.interruttore:hover { background: rgba(255, 255, 255, .2); }
.interruttore.premuto { transform: scale(.97); }
.interruttore svg { width: 52px; height: 52px; transform: rotate(-90deg); }
.interruttore__base { fill: rgba(255, 255, 255, .1); stroke: rgba(255, 255, 255, .35); stroke-width: 3; }
.interruttore__giro { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--l, 0)); }
.interruttore__ico { fill: none; stroke: #fff; stroke-width: 3.5; stroke-linecap: round; transform: rotate(90deg); transform-origin: 30px 30px; }
.interruttore:not(.fermo) .interruttore__base { animation: respira 3.6s var(--ease-inout) infinite; animation-delay: -1s; }
@keyframes respira { 0%, 100% { fill: rgba(255, 255, 255, .08); } 50% { fill: rgba(204, 255, 51, .2); } }
.accendi.fatto .interruttore { display: none; }

/* =========================================================================
   4. LAVORI
   ========================================================================= */
.lavori__fila { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(22px, 3vw, 40px); margin-top: clamp(36px, 5vw, 60px); align-items: start; }
.lavoro:nth-child(2) { margin-top: clamp(0px, 6vw, 80px); }
.tel { position: relative; width: min(100%, 300px); aspect-ratio: 390 / 844; margin: 0 auto 26px; padding: 10px; border-radius: 44px; background: #05071c; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .18), 0 40px 80px -30px rgba(0, 0, 0, .8); }
.tel__schermo { position: relative; overflow: hidden; height: 100%; border-radius: 34px; background: #111; }
.tel__schermo img, .tel__schermo video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tel__schermo video { opacity: 0; transition: opacity .5s var(--ease-out); }
.tel__schermo.in-play video { opacity: 1; }
.tel__schermo--presto { display: grid; place-items: center; align-content: center; gap: 14px; background: linear-gradient(160deg, #1a2170, #0a0e2e); }
.tel__schermo--presto p { margin: 0; font: 500 13px var(--f-label); letter-spacing: .24em; text-transform: uppercase; color: var(--text-secondary); }
.casa { width: 56%; fill: none; stroke: rgba(255, 255, 255, .7); stroke-width: 5; stroke-linejoin: round; }
.casa .pieno { fill: var(--accent); stroke: none; animation: finestra 4.5s var(--ease-inout) infinite; animation-delay: -1.5s; }
@keyframes finestra { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.tel__riflesso { position: absolute; inset: 10px; border-radius: 34px; pointer-events: none; background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .1) 44%, transparent 52%); }
.lavoro__t { margin: 0 0 8px; font: 900 22px/1.15 var(--f-display); letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lavoro__p { margin: 0 0 16px; color: var(--text-secondary); max-width: 34ch; }
.lavoro__azioni { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.etichetta { font: 500 11px var(--f-label); letter-spacing: .2em; text-transform: uppercase; color: var(--inchiostro); background: var(--accent); padding: 4px 8px; border-radius: 6px; }

/* =========================================================================
   5. COME FUNZIONA (sezione chiara)
   ========================================================================= */
.come { background: var(--carta); color: var(--inchiostro); }
.come .h2 { color: var(--inchiostro); }
.passi { list-style: none; margin: clamp(36px, 5vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2.4vw, 32px); counter-reset: none; position: relative; }
.passi::before { content: ""; position: absolute; left: 0; right: 0; top: 58px; height: 3px; background: linear-gradient(90deg, var(--cobalto) var(--pl, 0%), rgba(13, 15, 42, .12) var(--pl, 0%)); }
.passo { position: relative; padding-top: 0; }
.passo__ico { position: relative; z-index: 1; width: 116px; height: 116px; padding: 18px; margin-bottom: 22px; border-radius: 30px; background: #fff; box-shadow: inset 0 0 0 3px var(--inchiostro); fill: none; stroke: var(--inchiostro); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.passo__ico .pieno { fill: var(--cobalto); stroke: none; }
.passo__ico .pieno-tenue { fill: rgba(36, 51, 255, .14); }
.passo__n { position: absolute; top: -6px; left: 96px; z-index: 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--cobalto); color: #fff; font: 900 15px var(--f-display); }
.passo__t { margin: 0 0 8px; font: 900 21px/1.15 var(--f-display); letter-spacing: -.01em; }
.passo__p { margin: 0; color: #3a3f66; max-width: 30ch; }

/* =========================================================================
   6. DOMANDE
   ========================================================================= */
.domande__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
.domande__testa { position: sticky; top: 110px; }
.faq { display: grid; }
.faq__q { border-top: 1px solid var(--bordo); }
.faq__q:last-child { border-bottom: 1px solid var(--bordo); }
.faq__q summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font: 600 clamp(17px, 1.5vw, 20px)/1.35 var(--f-body); }
.faq__q summary::-webkit-details-marker { display: none; }
.faq__q summary::after { content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(242, 244, 255, .6); background: linear-gradient(var(--text-primary), var(--text-primary)) center / 12px 2px no-repeat, linear-gradient(var(--text-primary), var(--text-primary)) center / 2px 12px no-repeat; transition: transform .4s var(--ease-out), background-color .4s var(--ease-out); }
.faq__q[open] summary::after { transform: rotate(45deg); background-color: var(--accent-muted); }
.faq__q summary:hover { color: #fff; }
.faq__q p { margin: 0 0 26px; color: var(--text-secondary); max-width: 58ch; animation: apri .5s var(--ease-out); }
@keyframes apri { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* =========================================================================
   7. ANTEPRIMA
   ========================================================================= */
.modulo-vetrina {
  position: relative; overflow: hidden; display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 64px);
  padding: clamp(28px, 5vw, 64px); border-radius: clamp(30px, 4vw, 48px);
  background: radial-gradient(ellipse 90% 90% at 20% 20%, #3442ff, var(--cobalto) 60%, #1a27d6);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .85), 0 0 120px -20px rgba(36, 51, 255, .8);
}
.modulo-vetrina .vetrina__shine { animation: riflesso-vivo 9s 2s var(--ease-inout) infinite; }
.modulo-vetrina .lede { color: var(--su-cobalto); }
.modulo { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.campo { display: grid; gap: 8px; }
.campo--largo { grid-column: 1 / -1; }
.campo label { font: 600 14px var(--f-body); color: #fff; }
.facolt { font-weight: 400; color: var(--su-cobalto); }
.campo input:not([type=checkbox]), .campo textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 0; font: 400 16px var(--f-body); color: var(--inchiostro);
  background: #fff; box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .3s var(--ease-out);
}
.campo input::placeholder, .campo textarea::placeholder { color: #6b7096; }
.campo input:focus, .campo textarea:focus { outline: none; box-shadow: inset 0 0 0 3px var(--accent), 0 0 0 4px rgba(204, 255, 51, .3); }
.campo input[aria-invalid="true"] { box-shadow: inset 0 0 0 3px #ff8a8a; }
.campo--check { display: flex; align-items: flex-start; gap: 12px; }
.campo--check input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); }
.campo--check label { font-weight: 400; color: var(--su-cobalto); }
.campo--check a { color: #fff; }
.modulo__invio { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 6px; }
.modulo__esito { margin: 0; font-weight: 600; color: #fff; }
.modulo__esito.ok { color: var(--accent); }
.modulo.inviato .campo:not(.modulo__invio) { opacity: .45; pointer-events: none; }

/* =========================================================================
   PIÈ DI PAGINA
   ========================================================================= */
.piede { padding: 70px 0 50px; border-top: 1px solid rgba(169, 176, 218, .16); }
.piede__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 36px; align-items: start; }
.piede__logo { margin: 0 0 12px; font: 900 34px/.95 var(--f-display); letter-spacing: -.02em; }
.piede__claim, .piede__note p { margin: 0 0 8px; color: var(--text-secondary); font-size: 15px; }
.piede__link { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.piede__link a { text-decoration: none; font-weight: 600; }
.piede__link a:hover { color: var(--accent); }

/* ---------- entrate a scroll (.reveal → .in) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }
.js .passi .passo.reveal:nth-child(2) { transition-delay: .1s; }
.js .passi .passo.reveal:nth-child(3) { transition-delay: .2s; }
.js .passi .passo.reveal:nth-child(4) { transition-delay: .3s; }
.js .passi .passo.reveal.in.finito:nth-child(n) { transition-delay: 0s; }
.js .lavori__fila .lavoro.reveal:nth-child(2) { transition-delay: .12s; }
.js .lavori__fila .lavoro.reveal:nth-child(3) { transition-delay: .24s; }
.js .lavori__fila .lavoro.reveal.in.finito:nth-child(n) { transition-delay: 0s; }

/* ---------- telefono e tablet ---------- */
@media (max-width: 900px) {
  .marciapiede__grid, .prova__grid, .domande__grid, .modulo-vetrina { grid-template-columns: 1fr; }
  .marciapiede__art { order: -1; max-width: 460px; }
  .vetrine { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .vt__vetro { aspect-ratio: 16 / 9; }
  .lavori__fila { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; }
  .lavoro:nth-child(2) { margin-top: 0; }
  .passi { grid-template-columns: 1fr 1fr; row-gap: 44px; }
  .passi::before { display: none; }
  .domande__testa { position: static; }
  .piede__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .passi { grid-template-columns: 1fr; }
  .modulo { grid-template-columns: 1fr; }
  .band { top: 34%; }
  .settle { top: 55%; }
  .settle__cta .btn { width: 100%; }
  .nav { padding: 10px 14px; }
}

/* ---------- movimento ridotto: tutto nello stato finale ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .vt .vt__vetro { background: #101863; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .95); }
  .vt .vt__vetro::before { opacity: 1; }
  .vt .vt__t, .vt .vt__p { opacity: 1; transform: none; }
  .vt .vt__ico { stroke: #fff; }
  .vt .vt__ico .pieno { fill: var(--accent); }
  .vt__shine { display: none; }
  .band, .vetrina { --k: 1 !important; }
}
