/* ==========================================================================
   Dance Suite — sito vetrina · ds.css  (2026.09 rev.12)
   Motore condiviso con newplanetacademy.it (np.css), marca Dance Suite:
   base chiara "platino" + fasce indaco, barra metallica come nel gestionale rev.12,
   Inter self-hosted. Nessuna libreria esterna.

   Indice
   01 Token & reset        07 Marquee & problema      13 Documenti (vademecum, privacy)
   02 Utility              08 Funzioni (scroll orizz.) 14 Funzionalità (chip + schede)
   03 Sipario & progress   09 Prezzo                  15 Pagine esito (grazie/errore)
   04 Cursore              10 Video & demo            16 Reveal, coriandoli
   05 Header & menu        11 Contatti (form)         17 Riduci animazioni · Stampa
   06 Bottoni & hero       12 Footer
   ========================================================================== */

/* 01 — TOKEN & RESET ------------------------------------------------------ */
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('fonts/inter-latin-wght-normal.woff2') format('woff2-variations'), url('fonts/inter-latin-wght-normal.woff2') format('woff2');
}
:root {
  color-scheme: light;
  --bg: #F1F5F9; --bg-2: #E9EDF3; --paper: #FFFFFF;
  --ink: #0F172A; --text: #1E293B; --muted: #475569;
  --line: #D5DAE2; --line-strong: #B8C0CE;
  --ind: #4F46E5; --ind-d: #4338CA; --ind-dd: #312E81; --ind-l: #A5ACFA;
  --notte: #14123F; --notte-2: #0B0A2A; --notte-3: #1E1B4B;
  --oro: #FBBF24; --oro-d: #B45309; --teal: #2DD4BF; --teal-d: #0F766E; --rosa: #DB2777;
  --m-bar: linear-gradient(120deg, #14123F 0%, #4338CA 22%, #C7CCFF 46%, #4338CA 64%, #14123F 100%);
  --m-btn: linear-gradient(180deg, #A5ACFA 0%, #4F46E5 48%, #2E2A8F 52%, #211E6E 100%);
  --band: linear-gradient(160deg, #4338CA, #504AE2 55%, #4A43D8);
  --m-ind: linear-gradient(145deg, #818CF8 0%, #3730A3 52%, #1E1B4B 100%);
  --m-teal: linear-gradient(145deg, #2DD4BF 0%, #0F766E 52%, #042F2E 100%);
  --m-oro: linear-gradient(145deg, #FBBF24 0%, #B45309 52%, #451A03 100%);
  --m-notte: linear-gradient(145deg, #64748B 0%, #1E293B 52%, #020617 100%);
  --m-ros: linear-gradient(145deg, #F472B6 0%, #BE185D 52%, #500724 100%);
  --m-vio: linear-gradient(145deg, #A78BFA 0%, #6D28D9 52%, #2E1065 100%);
  --radius: 22px; --gutter: clamp(1.25rem, 4vw, 3rem); --max: 1200px; --header-h: 80px;
  --ease: cubic-bezier(.22, 1, .36, 1); --ease-io: cubic-bezier(.76, 0, .24, 1);
  --shadow: 0 2px 6px rgba(30, 27, 75, .08), 0 10px 24px -12px rgba(30, 27, 75, .18);
  --shadow-lg: 0 26px 50px -12px rgba(30, 27, 75, .38);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-outline: 'Segoe UI Variable Display', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem); line-height: 1.65; overflow-x: clip;
  -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--ind); outline-offset: 3px; border-radius: 6px; }
.band :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: #FDE68A; }
::selection { background: var(--ind); color: #fff; }
h1, h2, h3 { font-weight: 800; line-height: 1.05; letter-spacing: -.03em; color: var(--ink); text-wrap: balance; }

/* 02 — UTILITY ------------------------------------------------------------ */
.container { width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: .75rem; left: .75rem; z-index: 1000; padding: .7rem 1.1rem; border-radius: 999px; background: #fff; color: var(--ind-dd); font-weight: 700; transform: translateY(-200%); transition: transform .3s var(--ease); }
.skip-link:focus { transform: none; }
.eyebrow { display: inline-flex; align-items: center; gap: .7rem; font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--teal-d); }
.eyebrow::before { content: ""; width: 2.2rem; height: 2px; background: currentColor; }
.band .eyebrow { color: #FDE68A; }
.section { position: relative; padding-block: clamp(4.5rem, 10vw, 8rem); }
.section__head { display: grid; gap: 1.1rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); max-width: 56rem; }
.title { font-size: clamp(2rem, 5.2vw, 3.6rem); }
.lead { color: var(--muted); font-size: clamp(1.05rem, 1rem + .4vw, 1.28rem); max-width: 42rem; }
.band { background: var(--band); color: #fff; position: relative; }
.band .title, .band h2, .band h3 { color: #fff; }
.band .lead, .band p { color: #EEF0FF; }
.gr { background: linear-gradient(120deg, var(--ind-d), #0D9488); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* 03 — SIPARIO TRA LE PAGINE & BARRA DI AVANZAMENTO ------------------------ */
.curtain { position: fixed; inset: 0; z-index: 2000; display: flex; pointer-events: none; }
.curtain span { flex: 1; background: var(--notte); position: relative; }
.curtain span:nth-child(1) { --i: 0; } .curtain span:nth-child(2) { --i: 1; } .curtain span:nth-child(3) { --i: 2; } .curtain span:nth-child(4) { --i: 3; } .curtain span:nth-child(5) { --i: 4; }
.curtain span:nth-child(even) { background: var(--notte-3); }
.curtain span::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--m-bar); }
html:not(.js) .curtain { display: none; }
.js .curtain span { transform: scaleY(1); transform-origin: top; }
.js.is-ready .curtain span { transform: scaleY(0); transform-origin: top; transition: transform .8s var(--ease-io) calc(var(--i) * 70ms); }
.js.is-leaving .curtain { pointer-events: auto; }
.js.is-leaving .curtain span { transform: scaleY(1); transform-origin: bottom; transition: transform .6s var(--ease-io) calc(var(--i) * 60ms); }
.js.is-leaving .curtain span::after { top: 0; bottom: auto; }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 300; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, #FBBF24, #FDE68A 50%, #FBBF24); transform: scaleX(var(--p, 0)); transform-origin: left; }

/* 04 — CURSORE PERSONALIZZATO ---------------------------------------------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 1500; pointer-events: none; opacity: 0; transition: opacity .3s; }
.cursor.is-on { opacity: 1; }
.cursor__ring { display: grid; place-items: center; width: 44px; height: 44px; margin: -22px 0 0 -22px; border: 2px solid var(--ind); border-radius: 50%; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #fff; transition: transform .35s var(--ease), background-color .3s; mix-blend-mode: normal; }
.cursor.is-hover .cursor__ring { transform: scale(1.5); background: rgba(79, 70, 229, .14); }
.cursor.is-label .cursor__ring { transform: scale(2.1); background: var(--ind); }
.cursor.is-down .cursor__ring { transform: scale(.8); }
.cursor.is-label.is-down .cursor__ring { transform: scale(1.8); }
.cursor__label { opacity: 0; transition: opacity .2s; }
.cursor.is-label .cursor__label { opacity: 1; }

/* 05 — HEADER & MENU (logo e scritta grandi) ------------------------------- */
.site-header { position: sticky; top: 0; z-index: 200; background: var(--m-bar); color: #fff; box-shadow: 0 6px 22px rgba(20, 18, 63, .38); }
.site-header__inner { display: flex; align-items: center; gap: 1.4rem; height: var(--header-h); transition: height .4s var(--ease); }
.site-header.is-solid .site-header__inner { height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .9rem; position: relative; z-index: 2; }
.brand__icon { width: 54px; height: 54px; border-radius: 50%; background: #0B0A2A; box-shadow: 0 0 0 2.5px #FBBF24, 0 6px 16px rgba(0, 0, 0, .4); transition: width .4s var(--ease), height .4s var(--ease), transform .7s var(--ease); }
.brand:hover .brand__icon { transform: rotate(-14deg) scale(1.06); }
.site-header.is-solid .brand__icon { width: 44px; height: 44px; }
.brand__name { font-size: 1.65rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; transition: font-size .4s var(--ease); }
.brand__name span { color: #FBBF24; }
.site-header.is-solid .brand__name { font-size: 1.45rem; }
.site-header .nav li a, .site-header .badge-version { text-shadow: 0 1px 2px rgba(11, 10, 42, .55); }
.badge-version { display: inline-block; font-size: .72rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: rgba(11, 10, 42, .6); border: 1px solid rgba(255, 255, 255, .38); white-space: nowrap; }
.site-header .badge-version { display: none; }
@media (min-width: 560px) { .site-header .badge-version { display: inline-block; } }
.menu-btn { position: relative; z-index: 2; margin-left: auto; width: 3.1rem; height: 3.1rem; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .55); background: rgba(11, 10, 42, .45); display: grid; place-items: center; }
.menu-btn__bars, .menu-btn__bars::before { display: block; width: 1.3rem; height: 2px; background: #fff; border-radius: 2px; transition: transform .4s var(--ease); }
.menu-btn__bars { position: relative; transform: translateY(-3px); }
.menu-btn__bars::before { content: ""; position: absolute; top: 7px; left: 0; }
.menu-btn[aria-expanded="true"] .menu-btn__bars { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars::before { transform: translateY(-7px) rotate(-90deg); }
.nav { position: fixed; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: center; gap: 2rem; padding: 6rem var(--gutter) 3rem; background: linear-gradient(160deg, var(--notte-2), var(--notte-3) 60%, #312E81); clip-path: circle(0 at calc(100% - 2.5rem) 2.5rem); visibility: hidden; transition: clip-path .7s var(--ease-io), visibility 0s .7s; }
.nav.is-open { clip-path: circle(150% at calc(100% - 2.5rem) 2.5rem); visibility: visible; transition-delay: 0s; }
.nav__list { display: grid; gap: .3rem; }
.nav li { overflow: hidden; list-style: none; }
.nav li a { display: inline-block; font-size: clamp(2rem, 9vw, 3.2rem); font-weight: 800; letter-spacing: -.03em; transform: translateY(110%); transition: transform .7s var(--ease), color .3s; }
.nav.is-open li a { transform: none; transition-delay: calc(.25s + var(--i, 0) * 70ms); }
.nav li a:hover, .nav li a[aria-current="page"] { color: #FDE68A; }
@media (min-width: 1000px) {
  .menu-btn { display: none; }
  .site-header__inner { justify-content: space-between; }
  .nav { position: static; flex-direction: row; align-items: center; gap: 1.6rem; padding: 0; background: none; clip-path: none; visibility: visible; transition: none; }
  .nav__list { display: flex; gap: 1.6rem; }
  .nav li { overflow: visible; }
  .nav li a { position: relative; font-size: .88rem; font-weight: 600; letter-spacing: 0; transform: none; padding-block: .4rem; white-space: nowrap; }
  .nav li a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: #FBBF24; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
  .nav li a:hover::after, .nav li a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
  .nav li a:hover, .nav li a[aria-current="page"] { color: #fff; }
}
html.no-scroll { overflow: hidden; }
/* Sotto i 1000 px logo e scritta stanno a sinistra: la fascia chiara della barra metallica passa a destra, così non ne riduce il contrasto */
@media (max-width: 999px) { .site-header { background: linear-gradient(120deg, #14123F 0%, #4338CA 48%, #9AA2F7 84%, #4338CA 100%); } }
.brand__name { text-shadow: 0 1px 2px rgba(11, 10, 42, .5); }
/* Telefono: logo e scritta ridotti (icona 44 px, scritta 20 px) ma sempre ben leggibili */
@media (max-width: 559px) {
  :root { --header-h: 72px; }
  .brand { gap: .7rem; }
  .brand__icon, .site-header.is-solid .brand__icon { width: 44px; height: 44px; }
  .brand__name, .site-header.is-solid .brand__name { font-size: 1.25rem; }
  .site-header__inner, .site-header.is-solid .site-header__inner { height: 72px; }
  .site-header.is-solid .site-header__inner { height: 68px; }
}


/* 06 — BOTTONI & HERO ------------------------------------------------------ */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .7em; padding: .95em 1.7em; border-radius: 999px; border: 1.5px solid transparent; isolation: isolate; overflow: hidden; font-weight: 700; font-size: .95rem; letter-spacing: .01em; line-height: 1.2; text-align: center; transition: color .4s var(--ease), border-color .4s, transform .35s var(--ease), box-shadow .4s, translate .35s var(--ease); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fill, #fff); transform: translateY(102%); border-radius: 50% 50% 0 0 / 100% 100% 0 0; transition: transform .55s var(--ease), border-radius .55s var(--ease); }
.btn:hover::before, .btn:focus-visible::before { transform: none; border-radius: 0; }
.btn__arrow { transition: transform .4s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(.35em); }
.btn:active { transform: scale(.96); }
.btn--primary { background: var(--m-btn); color: #fff; --fill: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 10px 24px -8px rgba(79, 70, 229, .7); }
.btn--primary:hover, .btn--primary:focus-visible { color: var(--ind-dd); }
.btn--ghost { background: #fff; border-color: var(--line-strong); color: var(--ink); --fill: var(--ink); }
.btn--ghost:hover, .btn--ghost:focus-visible { color: #fff; border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ind-dd); --fill: #FDE68A; box-shadow: 0 10px 26px -8px rgba(11, 10, 42, .55); }
.btn--outline-light { border-color: rgba(255, 255, 255, .6); color: #fff; --fill: #fff; }
.btn--outline-light:hover, .btn--outline-light:focus-visible { color: var(--ind-dd); }
.btn--nav { padding: .6em 1.2em; font-size: .86rem; background: var(--notte-2); color: #fff; --fill: #FDE68A; }
.btn--nav:hover { color: var(--notte-2); }
.btn--xl { padding: 1.15em 2.2em; font-size: 1.05rem; }
.ripple { position: absolute; border-radius: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; pointer-events: none; background: rgba(251, 191, 36, .55); animation: ripple .7s var(--ease) forwards; z-index: -1; }
@keyframes ripple { to { transform: scale(40); opacity: 0; } }

.hero { position: relative; overflow: clip; padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.5rem, 8vw, 6rem); background: radial-gradient(60% 80% at 92% 0%, rgba(79, 70, 229, .2), transparent 60%), radial-gradient(55% 70% at 0% 100%, rgba(45, 212, 191, .24), transparent 60%); }
.hero__grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1.02fr .98fr; } }
.hero__title { font-size: clamp(2.5rem, 6vw, 5rem); line-height: .98; letter-spacing: -.045em; margin: 1.3rem 0 1.5rem; }
.line { display: block; overflow: hidden; padding-block: .06em .12em; margin-block: -.06em -.12em; }
.word { display: inline-block; white-space: nowrap; }
.char { display: inline-block; transition: translate .3s var(--ease); }
.char:hover { translate: 0 -.06em; }
.js .hero .char { transform: translateY(115%) rotate(7deg); opacity: 0; }
.js.is-ready .hero .char { animation: charIn 1s var(--ease) forwards; animation-delay: calc(.5s + var(--i) * 32ms); }
@keyframes charIn { to { transform: none; opacity: 1; } }
.line--grad .char { color: var(--ind-d); color: color-mix(in oklab, var(--ind-d), #0D9488 calc(var(--g, 0) / max(var(--gn, 1) - 1, 1) * 100%)); }
.hero__title em { font-style: normal; }
[data-depth] { translate: var(--tx, 0px) var(--ty, 0px); }
.hero__lead { max-width: 34rem; color: var(--muted); font-size: clamp(1.05rem, 1rem + .5vw, 1.3rem); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.js .hero [data-hero-in] { opacity: 0; transform: translateY(26px); }
.js.is-ready .hero [data-hero-in] { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(.85s + var(--d, 0) * 1ms); }

.stage { position: relative; min-height: 340px; padding: 1rem 1.2rem 2.4rem 0; }
.win { position: relative; border-radius: 14px; overflow: hidden; background: #EEF2F7; box-shadow: var(--shadow-lg); transform: perspective(1100px) rotateY(-8deg) rotateX(3deg); transition: transform .8s var(--ease); }
.win:hover { transform: none; }
.win__bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #D9DFEA; font-size: .74rem; color: #475569; }
.win__bar i { width: 10px; height: 10px; border-radius: 50%; background: #94A3B8; }
.win img, .phone img { width: 100%; height: auto; }
.phone { position: absolute; right: 0; bottom: 0; width: 27%; border-radius: 20px; border: 5px solid var(--notte); overflow: hidden; box-shadow: var(--shadow-lg); transform: rotate(4deg); background: var(--notte); }
.mock { position: absolute; padding: .8rem 1rem; border-radius: 16px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .8); box-shadow: 0 18px 38px -10px rgba(30, 27, 75, .4); font-size: .82rem; min-width: 11rem; animation: float 6s ease-in-out infinite; }
.mock--a { left: -3%; top: 7%; }
.mock--b { left: 4%; bottom: 2%; max-width: 15rem; animation-delay: -3s; }
.mock__label { font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ind-d); margin-bottom: .35rem; }
.mock__row { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); }
.mock__row b { color: var(--ink); }
.mock__row b.rosa { color: var(--rosa); } .mock__row b.teal { color: var(--teal-d); }
.mock__bubble { background: var(--ind-d); color: #fff; padding: .55rem .8rem; border-radius: 14px 14px 14px 4px; font-size: .82rem; line-height: 1.4; }
@keyframes float { 50% { transform: translateY(-12px); } }
.ring { position: absolute; border-radius: 50%; border: 1.5px dashed rgba(79, 70, 229, .4); pointer-events: none; animation: spin 40s linear infinite; }
.ring--1 { width: 70%; aspect-ratio: 1; right: -18%; top: -22%; }
.ring--2 { width: 46%; aspect-ratio: 1; left: -14%; bottom: -20%; animation-direction: reverse; border-color: rgba(15, 118, 110, .4); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 640px) { .mock--a { left: 0; top: -2%; } .mock--b { display: none; } .phone { width: 30%; } }

/* 07 — MARQUEE & PROBLEMA -------------------------------------------------- */
.marquee { overflow: hidden; padding: 1.15rem 0; border-block: 1px solid rgba(255, 255, 255, .22); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; flex: none; }
.marquee__group span { display: flex; align-items: center; gap: 2.4rem; padding-right: 2.4rem; font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.02em; white-space: nowrap; color: #fff; }
.marquee__group span::after { content: "✦"; font-size: .6em; color: #FDE68A; }
.marquee__group span:nth-child(even) { font-family: var(--font-outline); color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .9); }
@keyframes marquee { to { transform: translateX(-50%); } }

.problema__grid { display: grid; gap: 1.25rem; }
@media (min-width: 800px) { .problema__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.prob { position: relative; overflow: hidden; padding: 2rem 1.7rem 2.2rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.prob::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--m-bar); }
.prob__n { display: block; margin-bottom: 1.1rem; font-family: var(--font-outline); font-size: clamp(3.2rem, 6vw, 4.6rem); font-weight: 900; line-height: 1; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 2px var(--ind); }
.prob p { font-size: 1.12rem; font-weight: 500; color: var(--ink); }
.js .scrub-w { opacity: .2; transition: opacity .35s var(--ease); }
.js .scrub-w.is-lit { opacity: 1; }

/* 08 — FUNZIONI: scroll orizzontale (griglia se senza JS / riduci animazioni) */
.funzioni { overflow: clip; }
.problema { padding-block: clamp(3rem, 6vw, 4.5rem); }
.funzioni .section__head { margin-bottom: clamp(1.5rem, 3vw, 2.4rem); }
.hscroll.is-compact .section__head .lead { display: none; }
.hscroll.is-on .hscroll__pin > .container { width: min(100% - var(--gutter) * 2, var(--max)); }
.hscroll__track { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr)); gap: 1.25rem; width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto; }
.hscroll__bar { display: none; }
.hscroll.is-on { height: var(--hs-h, auto); }
.hscroll.is-on .hscroll__pin { position: sticky; top: 68px; height: calc(100vh - 68px); display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.hscroll.is-on .hscroll__track { display: flex; width: max-content; margin: 0; padding-inline: var(--gutter); gap: 1.4rem; will-change: transform; }
.hscroll.is-on .fn { flex: none; width: min(78vw, 21.5rem); }
.hscroll.is-on .hscroll__bar { display: block; height: 4px; margin: 2.2rem auto 0; width: min(100% - var(--gutter) * 2, var(--max)); border-radius: 4px; background: var(--line); }
.hscroll__bar span { display: block; height: 100%; border-radius: 4px; background: var(--m-btn); transform: scaleX(var(--hp, 0)); transform-origin: left; }
.fn { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; padding: 1.7rem 1.6rem 1.9rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: box-shadow .5s var(--ease), transform .5s var(--ease); }
.fn:hover { box-shadow: var(--shadow-lg); }
.fn__n { position: absolute; top: 1.3rem; right: 1.5rem; font-size: .85rem; font-weight: 800; letter-spacing: .1em; color: var(--muted); }
.fn__tile { display: grid; place-items: center; width: 4.3rem; height: 4.3rem; border-radius: 18px; color: #fff; background: var(--m-ind); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -9px 14px rgba(0, 0, 0, .22), 0 12px 22px -10px rgba(30, 27, 75, .65); transition: transform .6s var(--ease); }
.fn:hover .fn__tile { transform: rotate(-8deg) scale(1.06); }
.fn__tile svg { width: 2.2rem; height: 2.2rem; }
.ti2 { background: var(--m-teal); } .ti3 { background: var(--m-oro); } .ti4 { background: var(--m-notte); } .ti5 { background: var(--m-ros); } .ti6 { background: var(--m-vio); }
.fn h3 { font-size: 1.32rem; letter-spacing: -.02em; line-height: 1.15; }
.fn p { color: var(--muted); font-size: .97rem; }
.badge-novita { display: inline-block; padding: .18rem .65rem; border-radius: 999px; vertical-align: middle; margin-left: .35rem; font-size: .64rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: #3B1D02; background: linear-gradient(180deg, #FDE68A, #FBBF24 50%, #D97706); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7); }
.funzioni__cta { display: grid; justify-items: center; gap: 1.4rem; margin-top: clamp(2rem, 5vw, 3.5rem); text-align: center; }
.funzioni__cta p { color: var(--muted); }
.funzioni__cta p a, .doc__main a:not(.btn), .lead a { color: var(--ind-d); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.funzioni__cta p a:hover, .doc__main a:not(.btn):hover, .lead a:hover { color: var(--rosa); }

/* 09 — PREZZO -------------------------------------------------------------- */
@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.badge-incluso { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem 1rem; border-radius: 999px; font-size: .84rem; font-weight: 700; color: #3B1D02; background: linear-gradient(180deg, #FDE68A, #FBBF24 55%, #E5A00D); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 6px 14px -6px rgba(180, 83, 9, .6); }
.prezzi { display: grid; gap: 1.6rem; max-width: 58rem; margin-inline: auto; }
@media (min-width: 780px) { .prezzi { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.prezzo { position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 1.1rem; padding: 2.3rem 2rem 2.1rem; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.prezzo::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 2.5px; pointer-events: none; background: conic-gradient(from var(--ang), #A5ACFA, #4F46E5, #14123F, #4F46E5, #A5ACFA); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: ang 7s linear infinite; }
.prezzo--multi::before { background: conic-gradient(from var(--ang), #FDE68A, #2DD4BF, #4F46E5, #2DD4BF, #FDE68A); }
@keyframes ang { to { --ang: 360deg; } }
.prezzo__label { font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ind-d); }
.prezzo__figures { display: flex; align-items: flex-end; flex-wrap: wrap; gap: .5rem 1rem; }
.fig { display: grid; }
.fig b { font-size: clamp(2.5rem, 5vw, 3.4rem); font-weight: 900; line-height: 1; letter-spacing: -.04em; color: var(--ink); }
.fig span { font-size: .88rem; font-weight: 600; color: var(--muted); }
.prezzo__plus { padding-bottom: 1.3rem; font-size: 1.6rem; font-weight: 800; color: var(--ind); }
.prezzo__note { font-weight: 700; color: var(--teal-d); }
.prezzo__detail { color: var(--muted); font-size: .96rem; flex: 1; }
.prezzo .btn { align-self: flex-start; }

/* 10 — VIDEO & DEMO (fasce indaco) ------------------------------------------ */
.video-band { padding-block: clamp(4rem, 9vw, 7rem); overflow: clip; }
.video-band::before, .demo-band::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 60% at 85% 0%, rgba(255, 255, 255, .1), transparent 65%), radial-gradient(40% 50% at 5% 100%, rgba(45, 212, 191, .2), transparent 65%); }
.video-band .container { position: relative; display: grid; gap: 1rem; justify-items: center; text-align: center; }
.video-band .title { max-width: 30ch; }
.video__frame { width: min(100%, 60rem); margin-top: 1.6rem; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #0B0A2A; border: 1px solid rgba(255, 255, 255, .3); box-shadow: 0 30px 60px -18px rgba(11, 10, 42, .7), 0 0 0 6px rgba(255, 255, 255, .1); }
.video__frame video { width: 100%; height: 100%; object-fit: contain; background: #0B0A2A; }
.video__frame a { color: #FDE68A; text-decoration: underline; }

.demo-band { padding-block: clamp(4rem, 9vw, 7rem); overflow: clip; }
.demo__grid { position: relative; display: grid; gap: 1.6rem; }
@media (min-width: 900px) { .demo__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.demo-card { display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem; padding: clamp(1.7rem, 3vw, 2.5rem); border-radius: var(--radius); background: rgba(20, 18, 63, .28); border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(6px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); }
.demo-card h2 { font-size: clamp(1.6rem, 3.2vw, 2.35rem); }
.demo-card > p:not(.eyebrow) { flex: 1; }
.demo-card strong { color: #fff; }
.demo-card--main { background: rgba(11, 10, 42, .42); border-color: rgba(253, 230, 138, .55); }

/* 11 — CONTATTI (form) ----------------------------------------------------- */
.contatti__grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 900px) { .contatti__grid { grid-template-columns: .85fr 1.15fr; gap: 4rem; } }
.contatti__text { display: grid; gap: 1.1rem; }
@media (min-width: 900px) { .contatti__text { position: sticky; top: 7rem; } }
.form { display: grid; gap: 1.1rem; padding: clamp(1.5rem, 3.5vw, 2.6rem); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.form__row { display: grid; gap: 1.1rem; }
@media (min-width: 560px) { .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: .45rem; font-size: .86rem; font-weight: 700; color: var(--ink); }
.field input, .field textarea { width: 100%; padding: .85rem 1rem; border-radius: 14px; border: 1.5px solid var(--line-strong); background: #F8FAFC; color: var(--ink); font-weight: 500; font-size: 1rem; transition: border-color .3s, box-shadow .3s, background-color .3s; }
.field textarea { resize: vertical; min-height: 7.5rem; }
.field input::placeholder, .field textarea::placeholder { color: #64748B; font-weight: 400; }
.field input:hover, .field textarea:hover { border-color: var(--ind); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ind); background: #fff; box-shadow: 0 0 0 4px rgba(79, 70, 229, .22); }
.field input:user-invalid, .field textarea:user-invalid, .field .is-invalid { border-color: var(--rosa); }
.campo-nascosto { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }
.form .btn { justify-self: start; }
.form.is-sending .btn { opacity: .65; pointer-events: none; }
.form__notice { padding: .9rem 1.1rem; border-radius: 12px; background: #FEF3C7; border: 1px solid #F59E0B; color: #78350F; font-size: .92rem; font-weight: 600; }

/* 12 — FOOTER (sottile, scuro) ---------------------------------------------- */
.site-footer { position: relative; background: var(--notte-2); color: #DDE1FF; padding: 1.9rem 0 1.6rem; font-size: .9rem; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--m-bar); }
.site-footer__row { display: grid; gap: 1.2rem 2rem; align-items: center; }
@media (min-width: 900px) { .site-footer__row { grid-template-columns: auto 1fr; } .site-footer__nav { justify-self: end; } .site-footer__legal { grid-column: 1 / -1; } }
.site-footer .brand__icon { width: 44px; height: 44px; }
.site-footer .brand__name { font-size: 1.4rem; color: #fff; }
.site-footer__brand { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.site-footer__nav a { position: relative; padding-block: .25rem; font-weight: 600; color: #DDE1FF; transition: color .3s; }
.site-footer__nav a:hover { color: #FDE68A; }
.site-footer__legal { display: grid; gap: .5rem; padding-top: 1.1rem; border-top: 1px solid rgba(255, 255, 255, .16); color: #C7CCFF; font-size: .82rem; line-height: 1.55; }
.site-footer__legal p { max-width: 70ch; }
.site-footer .badge-version { background: rgba(255, 255, 255, .1); }

/* 13 — DOCUMENTI (vademecum, privacy) ---------------------------------------- */
:root { --soft: #E0E7FF; --soft-t: #D5F5EF; --code: #EEF1F8; }
@media (prefers-color-scheme: dark) {
  body.is-doc .solo-admin { color: #C7CCFF; }
  body.is-doc { color-scheme: dark; --bg: #0F1020; --bg-2: #14162C; --paper: #181A33; --ink: #F1F3FF; --text: #DDE1F5; --muted: #AEB5D3; --line: #2E3157; --line-strong: #4A4F80; --soft: #26295A; --soft-t: #10332F; --code: #22254A; --ind-d: #A5ACFA; --teal-d: #4FD8C4; --rosa: #FF7AB0; }
}
.page-hero { position: relative; overflow: clip; padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2rem, 4vw, 3rem); background: radial-gradient(60% 90% at 92% 0%, rgba(79, 70, 229, .18), transparent 60%), radial-gradient(50% 80% at 0% 100%, rgba(45, 212, 191, .22), transparent 60%); }
.page-hero .title { font-size: clamp(2.2rem, 5.6vw, 4rem); margin-block: 1.1rem 1.2rem; }
.doc { width: min(100% - var(--gutter) * 2, var(--max)); margin: 0 auto; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.2rem); padding-block: 2.5rem 5rem; }
.doc--narrow { grid-template-columns: minmax(0, 1fr); max-width: 52rem; }
.toc { position: sticky; top: calc(var(--header-h) + 1rem); align-self: start; max-height: calc(100vh - var(--header-h) - 2rem); overflow-y: auto; padding: 0 1rem 1rem 0; border-right: 1px solid var(--line); scrollbar-width: thin; }
.toc__title { margin-bottom: .9rem; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-d); }
.toc ol { list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; margin-bottom: 2px; }
.toc a { display: flex; gap: .6rem; padding: .42rem .6rem; border-radius: 9px; font-size: .86rem; line-height: 1.3; color: var(--muted); transition: background-color .3s, color .3s; }
.toc a::before { content: counter(toc, decimal-leading-zero); flex: none; font-weight: 700; color: var(--ind-d); }
.toc a:hover { background: var(--soft); color: var(--ink); }
.toc a.is-active { background: var(--ind-d); color: #fff; }
.toc a.is-active::before { color: #FDE68A; }
body.is-doc .toc a.is-active { background: var(--ind); }
.doc__main { min-width: 0; padding: clamp(1.5rem, 4vw, 3.4rem); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--text); }
.doc__main :focus-visible { outline-color: var(--ind); }
.testata { margin-bottom: 2.6rem; padding-bottom: 1.8rem; border-bottom: 2px solid var(--line); }
.testata-logo { width: 64px; height: 64px; margin-bottom: 1.1rem; border-radius: 50%; background: #0B0A2A; box-shadow: 0 0 0 2.5px #FBBF24, 0 8px 18px rgba(20, 18, 63, .35); }
.testata .etichetta { margin-bottom: .7rem; font-size: .74rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--teal-d); }
.testata h1 { margin-bottom: .8rem; font-size: clamp(2rem, 4.4vw, 3rem); }
.testata p:not(.etichetta) { max-width: 62ch; font-size: 1.06rem; color: var(--muted); }
.sottotitolo { color: var(--muted); font-size: 1.02rem; margin-bottom: .4rem; }
.aggiornato { color: var(--muted); font-size: .84rem; }
.doc__main section { margin-bottom: 3.6rem; scroll-margin-top: calc(var(--header-h) + 1rem); }
.doc__main h2 { display: flex; align-items: center; gap: .85rem; margin: 0 0 .7rem; font-size: clamp(1.35rem, 2.6vw, 1.75rem); letter-spacing: -.025em; line-height: 1.15; }
.doc__main h2 .num { display: inline-grid; place-items: center; flex: none; min-width: 2.5rem; height: 2.5rem; padding-inline: .4rem; border-radius: 11px; font-size: .9rem; font-weight: 800; color: #fff; background: var(--m-ind); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -6px 10px rgba(0, 0, 0, .2); }
.doc--flat .doc__main h2 { margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.doc--flat .doc__main .testata + h2, .doc--flat .doc__main h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.doc__main h3 { margin: 1.7rem 0 .6rem; font-size: 1.1rem; letter-spacing: -.015em; }
.doc__main p { margin-bottom: .9rem; max-width: 70ch; line-height: 1.7; }
.doc__main .intro { margin-bottom: 1.4rem; color: var(--muted); }
.doc__main ul, .doc__main ol.passi { margin: 0 0 1.1rem; max-width: 70ch; }
.doc__main ul { list-style: none; }
.doc__main ul li { position: relative; margin-bottom: .5rem; padding-left: 1.4rem; line-height: 1.6; }
.doc__main ul li::before { content: ""; position: absolute; left: .15rem; top: .72em; width: .5rem; height: .5rem; border-radius: 50%; background: var(--m-ind); }
.doc--flat .doc__main ul { list-style: none; }
.doc__main ol.passi { list-style: none; counter-reset: passo; }
.doc__main ol.passi li { position: relative; counter-increment: passo; margin-bottom: .7rem; padding-left: 2.2rem; line-height: 1.6; }
.doc__main ol.passi li::before { content: counter(passo); position: absolute; left: 0; top: .05em; display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 7px; font-size: .78rem; font-weight: 800; color: var(--ind-d); background: var(--soft); }
.riquadro, .box { max-width: 68ch; margin: 1.2rem 0; padding: 1rem 1.3rem; border-radius: 0 12px 12px 0; background: var(--soft-t); border-left: 4px solid var(--teal-d); }
.box { border-radius: 14px; border: 1px solid var(--line); background: var(--bg); }
.riquadro p, .box p { margin: 0; font-size: .95rem; }
.box p + p { margin-top: .5rem; }
.riquadro .et { display: block; margin-bottom: .3rem; font-size: .72rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--teal-d); }
.solo-admin { display: inline-flex; align-items: center; gap: .4rem; margin-left: .7rem; padding: .22rem .7rem; border-radius: 999px; vertical-align: middle; font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ind-dd); background: var(--soft); }
code, .percorso { padding: .1em .45em; border-radius: 6px; font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: .88em; color: var(--ink); background: var(--code); }
.tabella-manuale { width: 100%; max-width: 70ch; margin: .6rem 0 1.3rem; border-collapse: collapse; font-size: .94rem; }
.tabella-manuale th, .tabella-manuale td { padding: .6rem .8rem; text-align: left; border-bottom: 1px solid var(--line); }
.tabella-manuale th { font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.piede-doc, .piede { margin-top: 3rem; padding-top: 1.4rem; border-top: 2px solid var(--line); color: var(--muted); font-size: .86rem; }
.doc__progress { position: fixed; left: 0; top: 0; width: 100%; height: 4px; z-index: 301; }
@media (max-width: 860px) {
  .doc { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; max-height: none; padding: 0 0 1.4rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .toc ol { columns: 2; column-gap: 1rem; }
  .toc li { break-inside: avoid; }
}
@media (max-width: 560px) { .toc ol { columns: 1; } .doc__main { padding: 1.4rem 1.1rem; } .doc__main h2 { align-items: flex-start; } }

/* 14 — FUNZIONALITÀ: chip categorie + schede -------------------------------- */
.chips { position: sticky; top: 68px; z-index: 50; padding-block: .75rem; background: rgba(241, 245, 249, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.chips__list { list-style: none; display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding-block: 2px; }
.chips__list::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: .5rem 1.05rem; border-radius: 999px; border: 1.5px solid var(--line-strong); background: #fff; font-size: .86rem; font-weight: 700; color: var(--ink); white-space: nowrap; transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease); }
.chip:hover { border-color: var(--ind); transform: translateY(-2px); }
.chip.is-active { color: #fff; border-color: transparent; background: var(--m-btn); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5); }
.cat { padding-block: clamp(2.2rem, 5vw, 3.6rem) 0; scroll-margin-top: 9rem; }
.cat__title { position: relative; display: flex; align-items: center; gap: 1rem; margin-bottom: 1.6rem; font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.cat__title::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, var(--line-strong), transparent); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1.25rem; }
.card-fn { position: relative; padding: 1.7rem 1.6rem 1.8rem; background: var(--paper); border: 1px solid var(--line); border-top: 5px solid var(--ind); border-radius: var(--radius); box-shadow: var(--shadow); transition: box-shadow .5s var(--ease), transform .4s var(--ease); }
.card-fn.teal { border-top-color: var(--teal-d); }
.card-fn:hover { box-shadow: var(--shadow-lg); }
.card-fn h3 { margin-bottom: .8rem; font-size: 1.22rem; letter-spacing: -.02em; line-height: 1.2; }
.card-fn ul { list-style: none; display: grid; gap: .5rem; }
.card-fn li { position: relative; padding-left: 1.4rem; font-size: .96rem; line-height: 1.5; color: var(--text); }
.card-fn li::before { content: ""; position: absolute; left: .1rem; top: .55em; width: .55rem; height: .55rem; border-radius: 50%; background: var(--m-ind); }
.card-fn.teal li::before { background: var(--m-teal); }
.cta-final { margin-top: clamp(3rem, 7vw, 5rem); padding: clamp(2.5rem, 6vw, 4.5rem) 0; text-align: center; }
.cta-final .container { display: grid; justify-items: center; gap: 1.2rem; }
.cta-final .btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
[data-tilt] { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; }

/* 15 — PAGINE ESITO (grazie / errore) -------------------------------------- */
.esito { display: grid; place-items: center; min-height: calc(100vh - var(--header-h) - 150px); padding-block: 4rem; text-align: center; background: radial-gradient(50% 60% at 50% 0%, rgba(79, 70, 229, .16), transparent 65%), radial-gradient(40% 50% at 100% 100%, rgba(45, 212, 191, .2), transparent 65%); }
.esito .container { display: grid; justify-items: center; gap: 1.2rem; max-width: 40rem; }
.esito__badge { display: grid; place-items: center; width: 6rem; height: 6rem; border-radius: 50%; font-size: 3rem; font-weight: 800; color: #fff; background: var(--m-teal); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .5), inset 0 -12px 18px rgba(0, 0, 0, .25), 0 20px 34px -12px rgba(15, 118, 110, .7); animation: pop .9s var(--ease) both; }
.esito--err .esito__badge { background: var(--m-ros); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .5), inset 0 -12px 18px rgba(0, 0, 0, .25), 0 20px 34px -12px rgba(190, 24, 93, .6); }
@keyframes pop { from { transform: scale(.2) rotate(-30deg); opacity: 0; } }
.esito .title { font-size: clamp(2rem, 5vw, 3.2rem); }
.esito strong { color: var(--ink); }

/* 16 — REVEAL, CORIANDOLI --------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 1ms); }
.js [data-reveal="scale"] { transform: scale(.94); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-tilt][data-reveal].is-in { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.confetti { position: fixed; inset: 0; z-index: 1600; width: 100%; height: 100%; pointer-events: none; }
/* Rete di sicurezza: se qualcosa blocca l'avvio, sipario e contenuti non restano nascosti */
.js:not(.is-ready) .curtain { animation: curtain-out .01s 3.5s forwards; }
@keyframes curtain-out { to { visibility: hidden; } }
.js.no-reveal [data-reveal], .js.no-reveal .scrub-w, .js.no-reveal .hero .char, .js.no-reveal .hero [data-hero-in] { opacity: 1; transform: none; }

/* 17 — RIDUCI ANIMAZIONI · STAMPA ------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .curtain, .cursor { display: none !important; }
  .marquee__track { animation: none; }
  .js [data-reveal], .js .scrub-w, .js .hero .char, .js .hero [data-hero-in] { opacity: 1; transform: none; }
  .win { transform: none; }
}
@media print {
  .cc, .site-header, .site-footer, .toc, .progress, .doc__progress, .curtain, .cursor, .skip-link, .chips, .confetti { display: none !important; }
  body, body.is-doc { background: #fff; color: #221019; --paper: #fff; --text: #221019; --ink: #221019; --muted: #6B5A61; --line: #E2D8DA; --soft-t: #E7F3F0; --soft: #EEF0FF; --code: #F1ECEA; color-scheme: light; }
  .doc { display: block; width: 100%; padding: 0; }
  .doc__main { padding: 0; border: 0; box-shadow: none; background: #fff; }
  .doc__main section { break-inside: avoid; page-break-inside: avoid; margin-bottom: 2rem; }
  .doc__main a { color: inherit; text-decoration: none; }
  .doc__main h2 .num { color: #312E81; background: #EEF0FF; box-shadow: none; }
  .testata { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; margin: 0; padding: 0; border: 0; text-align: center; break-after: page; page-break-after: always; }
  .testata-logo { width: 140px; height: 140px; margin-bottom: 2rem; }
  .testata h1 { font-size: 2.6rem; }
  .testata p:not(.etichetta) { max-width: 52ch; margin-inline: auto; font-size: 1.1rem; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* 18 — CONSENSO COOKIE (banner + link nel footer) --------------------------- */
.cc { position: fixed; z-index: 1600; left: 1rem; right: 1rem; bottom: 1rem; max-width: 30rem; padding: 1.15rem 1.3rem 1.2rem; border-radius: 18px; background: var(--notte-2); color: #E6E9FF; border: 1px solid rgba(255, 255, 255, .18); box-shadow: var(--shadow-lg); }
.cc[hidden] { display: none; }
.cc__titolo { font-weight: 800; font-size: 1rem; color: #fff; margin-bottom: .35rem; }
.cc__testo { font-size: .88rem; line-height: 1.55; color: #D5DAFF; }
.cc__testo a { color: #FDE68A; text-decoration: underline; text-underline-offset: 2px; }
.cc__azioni { display: flex; gap: .7rem; margin-top: .95rem; }
.cc__btn { flex: 1 1 0; padding: .75em 1em; border-radius: 999px; border: 1.5px solid #A5ACFA; background: var(--ind-d); color: #fff; font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer; transition: background-color .25s, border-color .25s; }
.cc__btn:hover, .cc__btn:focus-visible { background: var(--ind); border-color: #fff; }
.cc :focus-visible { outline: 2px solid #FDE68A; outline-offset: 2px; }
.site-footer__link { padding: .25rem 0; border: 0; background: none; font: inherit; font-weight: 600; color: #DDE1FF; cursor: pointer; transition: color .3s; }
.site-footer__link:hover { color: #FDE68A; }
@media (min-width: 700px) { .cc { right: auto; left: 1.5rem; bottom: 1.5rem; } }
.form__privacy { margin-top: .9rem; font-size: .82rem; line-height: 1.5; color: inherit; opacity: .85; }
.form__privacy a { text-decoration: underline; text-underline-offset: 2px; }
