/* Sito di vendita · stile
   Fondo verde-nero da tappetino da taglio, griglia sottile che si accende (scia di luce e alone sotto il puntatore),
   accento arancio vinile (lo stesso del logo). Titoli in Bricolage Grotesque, testo in Instrument Sans.
   Colori tutti qui in :root. Le animazioni a scorrimento sono in js/motion.js e si spengono con «riduci movimento». */

/* caratteri di riserva con le stesse misure dei font Google: niente salti quando i font arrivano */
@font-face { font-family: "Bricolage Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"), local("Helvetica-Bold"); font-weight: 600 900; size-adjust: 90.5%; }
@font-face { font-family: "Bricolage Fallback"; src: local("Arial"), local("ArialMT"), local("Helvetica"); font-weight: 100 599; size-adjust: 89.5%; }
@font-face { font-family: "Instrument Fallback"; src: local("Arial"), local("ArialMT"), local("Helvetica"); font-weight: 100 500; size-adjust: 101%; }
@font-face { font-family: "Instrument Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"), local("Helvetica-Bold"); font-weight: 501 900; size-adjust: 96.5%; }

:root {
  --bg: #020604;
  --bg-2: #050b08;
  --line: rgba(190, 235, 210, .07);
  --line-2: rgba(190, 235, 210, .14);
  --line-3: rgba(190, 235, 210, .24);
  --paper: #eef1e8;
  --sage: #a6bfb0;
  --dim: #74907f;
  --vinyl: #1f8a5a;
  --vinyl-rgb: 31, 138, 90;
  --vinyl-2: #2fa572;
  --vinyl-2-rgb: 47, 165, 114;
  --on-vinyl: #effaf3;
  --ink: #111216;
  --r: 18px;
  --gut: clamp(16px, 4vw, 44px);
  --head: "Bricolage Grotesque", "Bricolage Fallback", system-ui, sans-serif;
  --sans: "Instrument Sans", "Instrument Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--paper);
  font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
p a, li a, dd a { color: var(--vinyl-2); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--vinyl-2); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(var(--vinyl-rgb), .45); color: #fff; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; margin: 0; line-height: 1.02; letter-spacing: -.025em; text-wrap: balance; overflow-wrap: break-word; }
h2 { font-size: clamp(2.2rem, 1.2rem + 3.6vw, 4.4rem); font-weight: 800; letter-spacing: -.04em; line-height: .98; font-variation-settings: "opsz" 96; }
h3 { font-size: 1.35rem; letter-spacing: -.015em; line-height: 1.15; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); color: var(--sage); max-width: 60ch; margin-top: 1.1rem; }
.wrap { width: min(1220px, 100% - 2 * var(--gut)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--paper); color: var(--ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }

/* parole che salgono una dopo l'altra (data-split, js/motion.js) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.w > span { display: inline-block; transform: translateY(110%); transition: transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 45ms); }
.in .w > span { transform: none; }

/* griglia del tappetino: righe ogni 24px, più marcate ogni 120px */
.fx-grid {
  background-image:
    linear-gradient(var(--line-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-2) 1px, transparent 1px),
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
}

/* ---------- pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.4em; border-radius: 999px; border: 0;
  font: 600 1rem/1.1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, color .15s, transform .15s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn-vinyl { background: var(--vinyl); color: var(--on-vinyl); box-shadow: 0 8px 30px -8px rgba(var(--vinyl-rgb), .65); }
.btn-vinyl:hover { background: var(--vinyl-2); box-shadow: 0 10px 40px -6px rgba(var(--vinyl-rgb), .8); }
.btn-line { background: rgba(5, 13, 10, .35); color: var(--paper); box-shadow: inset 0 0 0 1.5px rgba(238, 241, 232, .3); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn-line:hover { background: rgba(238, 241, 232, .08); box-shadow: inset 0 0 0 1.5px rgba(238, 241, 232, .55); }
.btn-sm { min-height: 38px; padding: .5em 1em; font-size: .92rem; box-shadow: none; }

/* ---------- testata ---------- */
.top { position: sticky; top: 0; z-index: 40; background: rgba(4, 10, 7, .9); backdrop-filter: saturate(1.4) blur(20px); -webkit-backdrop-filter: saturate(1.4) blur(20px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 20px; height: 64px; width: min(1320px, 100% - 2 * var(--gut)); margin-inline: auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.25rem/1 var(--head); letter-spacing: -.02em; }
.brand img { border-radius: 8px; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--sage); font-size: .95rem; transition: color .15s; }
.nav a:hover { color: var(--paper); }
.top-act { display: flex; align-items: center; gap: 12px; }
.lang { position: relative; display: inline-flex; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); }
.lang::after { content: ""; position: absolute; right: 12px; top: 50%; width: 6px; height: 6px; margin-top: -5px; border: solid var(--sage); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); pointer-events: none; }
.lang select { appearance: none; -webkit-appearance: none; background: none; border: 0; color: var(--paper); font: 600 .78rem/1 var(--sans); letter-spacing: .04em; padding: 9px 28px 9px 13px; border-radius: 999px; cursor: pointer; }
.lang select:focus-visible { outline: 2px solid var(--vinyl, #2fa572); outline-offset: 2px; }
.lang option { color: #111; background: #fff; }

/* ---------- apertura ---------- */
.hero { position: relative; }
.hero-stick { position: relative; overflow: hidden; padding: clamp(44px, 7vw, 96px) var(--gut) clamp(48px, 6vw, 80px); isolation: isolate; }

/* effetti di fondo: griglia, scia di luce, alone sotto il puntatore, punti d'ancoraggio, bagliore */
.fx { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.fx > .fx-grid { position: absolute; inset: 0; -webkit-mask-image: radial-gradient(120% 90% at 50% 30%, #000 30%, transparent 85%); mask-image: radial-gradient(120% 90% at 50% 30%, #000 30%, transparent 85%); }
.fx-bright { position: absolute; left: 0; top: 0; width: 100vw; height: 100vh; min-height: 100%;
  --line: rgba(160, 255, 210, .22); --line-2: rgba(170, 255, 215, .55); }
.fx-sweep { position: absolute; top: 0; bottom: 0; left: 0; width: 34vw; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%, #000 55%, transparent); mask-image: linear-gradient(90deg, transparent, #000 45%, #000 55%, transparent);
  animation: sweep 9s cubic-bezier(.45, 0, .55, 1) infinite; opacity: .55; }
.fx-sweep .fx-bright { animation: sweep-back 9s cubic-bezier(.45, 0, .55, 1) infinite; }
@keyframes sweep { from { transform: translateX(-40vw); } to { transform: translateX(110vw); } }
@keyframes sweep-back { from { transform: translateX(40vw); } to { transform: translateX(-110vw); } }
.fx-lens { position: absolute; left: 0; top: 0; width: 360px; height: 360px; overflow: hidden; border-radius: 50%; opacity: 0; transition: opacity .4s;
  -webkit-mask-image: radial-gradient(closest-side, #000, transparent); mask-image: radial-gradient(closest-side, #000, transparent); }
.fx-lens.on { opacity: 1; }
.fx-nodes { position: absolute; inset: 0; width: 100%; height: 100%; }
.fx-glow { position: absolute; left: 50%; top: 58%; width: min(1200px, 120vw); aspect-ratio: 2 / 1; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(var(--vinyl-rgb), .32), rgba(var(--vinyl-rgb), .08) 55%, transparent),
              radial-gradient(40% 60% at 30% 60%, rgba(143, 245, 198, .10), transparent 70%);
  animation: breathe 8s ease-in-out infinite alternate; }
@keyframes breathe { from { opacity: .75; transform: translate(-50%, -50%) scale(.95); } to { opacity: 1; transform: translate(-50%, -50%) scale(1.05); } }

.hero-copy { position: relative; text-align: center; max-width: 980px; margin: 0 auto; }
.hero h1 { font-size: clamp(2.7rem, 1.2rem + 6vw, 6.6rem); font-weight: 800; letter-spacing: -.045em; line-height: .94; font-variation-settings: "opsz" 96; color: #fff; }
.hero h1 .ln { display: block; }
.hero h1 .ln-a { font-size: .64em; letter-spacing: -.03em; line-height: 1.05; margin-bottom: .12em; }
.hero h1 .ln-b { font-size: 1.3em; line-height: .9; }
.hero .lead { margin-inline: auto; max-width: 62ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; justify-content: center; }
.hero-os { margin: 16px 0 0; color: var(--dim); font-size: .92rem; }
.hero-copy > .lead, .hero-copy > .hero-cta, .hero-copy > .hero-os { animation: rise 1s var(--ease) both; }
.hero-copy > .lead { animation-delay: .35s; } .hero-copy > .hero-cta { animation-delay: .5s; } .hero-copy > .hero-os { animation-delay: .6s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

.hero-stage { margin: clamp(40px, 6vw, 72px) auto 0; width: min(1160px, 100%); animation: rise 1.2s .55s var(--ease) both; }
.hero-stage figcaption { display: flex; align-items: center; gap: 16px; margin-top: 14px; color: var(--sage); font-size: .93rem; line-height: 1.45; transition: opacity .4s; }
.scroll-cue { display: none; }

/* apertura a scorrimento (computer, schermi abbastanza alti) */
@media (min-width: 820px) and (min-height: 560px) and (prefers-reduced-motion: no-preference) {
  .hero-scroll .hero { height: 260vh; }
  .hero-scroll .hero-stick { position: sticky; top: 0; height: 100vh; padding: 0; }
  .hero-scroll .hero-copy { position: absolute; left: 50%; top: calc(64px + 7vh); width: min(980px, 100% - 2 * var(--gut)); transform: translate(-50%, var(--cy, 0px)); opacity: var(--co, 1); will-change: transform, opacity; }
  .hero-scroll .hero-stage { position: absolute; left: 50%; top: calc(50% + 32px); margin: 0; animation: none;
    width: min(1180px, 92vw, (100vh - 190px) * 1.4885);
    transform: translate(-50%, -50%) translateY(var(--sy, 60vh)) scale(var(--ss, .6)); will-change: transform; }
  .hero-scroll .hero-stage figcaption { opacity: var(--fo, 0); }
  .hero-scroll .scroll-cue { display: none; flex-direction: column; align-items: center; gap: 10px; position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
    margin: 0; font-size: .82rem; color: var(--sage); opacity: var(--co, 1); pointer-events: none; }
  .scroll-cue i { width: 1px; height: 36px; background: linear-gradient(var(--sage), transparent); animation: cue 1.8s ease-in-out infinite; transform-origin: top; }
  @keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
}

/* ---------- confronto prima/dopo ----------
   Stesso componente per apertura, confronto dal vivo e prove: fondo scuro neutro (niente bande chiare),
   linea sottile con una maniglia di vetro, etichette discrete che si spengono quando la linea ci passa sopra,
   zoom a segmenti con l'indicatore che scorre. L'immagine sta nel riquadro .cmp-canvas, grande quanto la foto
   (js/main.js calcola la misura): gli sfondi (bianco, scacchiera…) coprono solo la foto, mai le bande. */
.cmp {
  --x: 50%;
  --stage: #0a0f0c;
  position: relative; overflow: hidden; border-radius: var(--r); background: var(--stage);
  aspect-ratio: 1100 / 739; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize;
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .07);
  -webkit-tap-highlight-color: transparent;
}
.cmp::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.cmp-hero { box-shadow: 0 50px 140px -30px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 255, 255, .1), 0 0 120px -20px rgba(var(--vinyl-rgb), .35); }
.cmp.zoomed { cursor: grab; touch-action: none; }
.cmp.panning { cursor: grabbing; }
.cmp-layer { position: absolute; inset: 0; overflow: hidden; }
.cmp-b { clip-path: inset(0 0 0 var(--x)); }
.cmp-canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; transform-origin: 0 0; }
.cmp-canvas.flip { transition: transform .42s var(--ease); }
.cmp-canvas img { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; -webkit-user-drag: none; }
.cmp.pixelated .cmp-a img { image-rendering: pixelated; }
.cmp-b.bg-checker .cmp-canvas { background: repeating-conic-gradient(#d9dcd4 0 25%, #fff 0 50%) 0 0 / 18px 18px; }
.cmp-b.bg-white .cmp-canvas { background: #fff; }
.cmp-b.bg-black .cmp-canvas { background: #101113; }
.cmp-b.bg-vinyl .cmp-canvas { background: var(--vinyl); }
.cmp-b.bg-photo .cmp-canvas { background: #333 url("../img/demo/firenze-dopo.webp") center / cover; }

/* la linea si sposta con transform (nessun ricalcolo della pagina): elemento largo quanto il confronto, spostato di --x */
.cmp-handle {
  position: absolute; top: 0; bottom: 0; left: 0; width: 100%; z-index: 3; pointer-events: none; outline: none;
  transform: translateX(var(--x)); --hs: 40px;
}
/* linea: 2 px, interrotta dietro la maniglia */
.cmp-handle::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 2px; margin-left: -1px; background: rgba(255, 255, 255, .92);
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .18), 0 0 14px rgba(0, 0, 0, .35);
  -webkit-mask: linear-gradient(#000 calc(50% - var(--hs) / 2 - 3px), transparent 0 calc(50% + var(--hs) / 2 + 3px), #000 0);
          mask: linear-gradient(#000 calc(50% - var(--hs) / 2 - 3px), transparent 0 calc(50% + var(--hs) / 2 + 3px), #000 0);
}
.cmp-handle i {
  position: absolute; left: 0; top: 50%; width: var(--hs); height: var(--hs); margin: calc(var(--hs) / -2) 0 0 calc(var(--hs) / -2);
  display: grid; place-items: center; pointer-events: auto; cursor: ew-resize; border-radius: 50%;
  color: #fff; background: rgba(12, 18, 15, .38);
  -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .92), 0 6px 18px rgba(0, 0, 0, .35);
  transition: transform .22s var(--ease), background-color .22s;
}
.cmp-handle i::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; } /* area di tocco più grande */
.cmp-handle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.cmp-handle:focus-visible i { box-shadow: inset 0 0 0 1.5px #fff, 0 0 0 3px rgba(var(--vinyl-2-rgb), .9), 0 6px 18px rgba(0, 0, 0, .35); }
.cmp-handle i:hover { background: rgba(12, 18, 15, .5); }
.cmp.dragging .cmp-handle i { transform: scale(1.1); background: rgba(var(--vinyl-rgb), .55); }

/* etichette: piccole, di vetro; quella del risultato ha il punto verde. Si spengono quando la linea ci passa sopra */
.tag {
  position: absolute; top: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; max-width: 46%;
  padding: 5px 9px; border-radius: 8px; font: 600 .74rem/1.2 var(--sans); letter-spacing: .005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: rgba(255, 255, 255, .94); background: rgba(8, 12, 10, .46);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .2); pointer-events: none; transition: opacity .25s;
}
.tag-a { left: 12px; }
.tag-b { right: 12px; }
.tag-b::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--vinyl-2); box-shadow: 0 0 8px rgba(var(--vinyl-2-rgb), .9); }
.cmp.near-a .tag-a, .cmp.near-b .tag-b { opacity: 0; }
.hint {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 4; pointer-events: none;
  padding: 6px 11px; border-radius: 8px; font: 500 .76rem/1.2 var(--sans); white-space: nowrap; color: rgba(255, 255, 255, .9);
  background: rgba(8, 12, 10, .62); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .2);
  transition: opacity .3s;
}

/* controllo a segmenti (zoom e lente): l'indicatore scorre sotto il pulsante scelto (--ix/--iw da js/main.js) */
.zoom {
  position: relative; display: inline-flex; flex: none; padding: 3px; border-radius: 11px; isolation: isolate;
  background: rgba(255, 255, 255, .045); box-shadow: inset 0 0 0 1px var(--line-2);
}
.zoom::before {
  content: ""; position: absolute; z-index: -1; top: 3px; bottom: 3px; left: 0; width: var(--iw, 0); border-radius: 8px;
  transform: translateX(var(--ix, 0)); background: rgba(238, 241, 232, .16); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .14), 0 2px 8px rgba(0, 0, 0, .3);
  transition: transform .32s var(--ease), width .32s var(--ease);
}
.zoom button {
  border: 0; background: none; color: var(--sage); font: 600 .82rem/1 var(--sans); font-variant-numeric: tabular-nums;
  min-width: 44px; height: 30px; padding: 0 10px; border-radius: 8px; cursor: pointer; transition: color .2s;
}
.zoom button[aria-pressed="true"] { color: var(--paper); }
.zoom button:hover:not([aria-pressed="true"]) { color: var(--paper); }
.zoom button:focus-visible { outline: 2px solid var(--vinyl-2); outline-offset: -2px; }

/* ---------- numeri ---------- */
.stats { position: relative; padding: clamp(56px, 8vw, 110px) 0; border-block: 1px solid var(--line); background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.stats-in { list-style: none; margin-block: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stats li { position: relative; padding: 4px clamp(12px, 2vw, 28px) 0; }
.stats li + li { border-left: 1px solid var(--line-2); }
.stats li::before { content: ""; position: absolute; left: clamp(12px, 2vw, 28px); top: -1px; width: 28px; height: 2px; background: var(--vinyl); box-shadow: 0 0 14px 2px rgba(var(--vinyl-rgb), .6); }
.num { display: block; margin: 18px 0 10px; font: 800 clamp(2.6rem, 1.4rem + 3.4vw, 5rem)/.95 var(--head); letter-spacing: -.05em; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff, #9fbcab); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; }
.stats li span { display: block; color: var(--sage); font-size: .95rem; line-height: 1.4; max-width: 24ch; }

/* ---------- confronto dal vivo (ingrandimento ×4 con lente) ---------- */
.live { position: relative; padding: clamp(44px, 5vw, 72px) 0 clamp(56px, 7vw, 100px); border-top: 1px solid var(--line);
  background: radial-gradient(60% 45% at 50% 0%, rgba(var(--vinyl-rgb), .10), transparent 70%), var(--bg); }
.live-head { text-align: center; margin-bottom: clamp(24px, 3.4vw, 40px); }
.live-head .lead { margin-inline: auto; }
.kicker { margin: 0 0 14px; font: 600 1.02rem/1.3 var(--sans); color: var(--vinyl-2); }
/* grande, ma sempre tutto dentro lo schermo insieme ai controlli */
.live-stage { margin: 0 auto; width: min(1320px, 100% - 2 * var(--gut), (100vh - 64px - 110px) * 1.5); }
.cmp-live { aspect-ratio: 3 / 2; background: #15171a; border-radius: 22px;
  box-shadow: 0 50px 140px -40px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 255, 255, .1), 0 0 140px -30px rgba(var(--vinyl-rgb), .4); }
.cmp-live .cmp-canvas img { object-fit: cover; }
.cmp-live .tag { top: 14px; font-size: .78rem; padding: 6px 10px; }
.cmp-live .tag-a { left: 14px; } .cmp-live .tag-b { right: 14px; }
.cmp-live .cmp-handle { --hs: 46px; }
.live-bar { display: flex; align-items: center; gap: 16px; margin-top: 14px; color: var(--sage); font-size: .93rem; line-height: 1.45; }
.lens button { padding: 0 13px; }
/* la lente: cerchio che ingrandisce il punto sotto il puntatore, con la sua barra */
.loupe { --L: 250px; position: absolute; left: 0; top: 0; z-index: 4; width: var(--L); height: var(--L); border-radius: 50%; overflow: hidden; pointer-events: none;
  background: #15171a; opacity: 0; transition: opacity .12s; will-change: transform;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .92), 0 0 0 3px rgba(0, 0, 0, .25), 0 20px 50px rgba(0, 0, 0, .55); }
.loupe.on { opacity: 1; }
.loupe > div { position: absolute; inset: 0; overflow: hidden; }
.loupe img { position: absolute; left: 0; top: 0; max-width: none; will-change: transform; }
.loupe-line { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; margin-left: -1px; background: rgba(255, 255, 255, .92); box-shadow: 0 0 10px rgba(0, 0, 0, .35); }

/* ---------- prova dal vivo ---------- */
.try { position: relative; padding: clamp(64px, 8vw, 120px) 0; border-block: 1px solid var(--line); background: radial-gradient(70% 50% at 50% 0%, rgba(var(--vinyl-rgb), .08), transparent 70%), var(--bg-2); }
.sec-head { margin-bottom: clamp(28px, 4vw, 48px); }
.sec-center { text-align: center; }
.sec-center .lead { margin-inline: auto; }
.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 18px; padding: 2px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  flex: none; display: inline-flex; align-items: center; gap: 9px; border: 0; cursor: pointer;
  padding: 12px 18px 12px 14px; border-radius: 14px; font: 600 1rem/1 var(--sans);
  color: var(--sage); background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line-2); transition: color .15s, background-color .15s;
}
.tabs button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabs button:hover { color: var(--paper); background: rgba(255, 255, 255, .06); }
.tabs button[aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 10px 40px -12px rgba(238, 241, 232, .35); }
.tabs button[aria-selected="true"] svg { stroke: var(--vinyl); }

.panel {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(20px, 3vw, 36px);
  padding: clamp(14px, 2vw, 22px); border-radius: 28px; background: linear-gradient(180deg, rgba(18, 40, 31, .7), rgba(7, 18, 13, .85));
  box-shadow: inset 0 0 0 1px var(--line-2), 0 60px 120px -60px rgba(0, 0, 0, .9);
}
.panel::before { content: ""; position: absolute; left: 10%; right: 10%; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(var(--vinyl-2-rgb), .9), transparent); }
.panel .cmp { aspect-ratio: 3 / 2; }
.stage-bar { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.stage-note { margin: 0; color: var(--sage); font-size: .9rem; line-height: 1.4; }
.panel-stage { min-width: 0; }
.panel-side { padding: 6px 4px; min-width: 0; }
.panel-side h3 { font-size: 1.8rem; margin-bottom: .45em; letter-spacing: -.03em; }
.panel-side > p { color: var(--sage); }
/* scelta dell'immagine: striscia orizzontale sotto il confronto (miniatura + nome), scorre di lato se serve */
.picks { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; padding: 2px; scroll-snap-type: x proximity; }
.picks::-webkit-scrollbar { display: none; }
@media (min-width: 761px) { .picks { flex-wrap: wrap; overflow: visible; } }
.pick {
  flex: none; display: inline-flex; align-items: center; gap: 9px; padding: 4px 14px 4px 4px; border: 0; border-radius: 12px; cursor: pointer;
  background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--sage); scroll-snap-align: start;
  font: 600 .86rem/1.1 var(--sans); transition: background-color .2s, color .2s, box-shadow .2s;
}
.pick img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: #fff; }
.pick:hover { color: var(--paper); background: rgba(255, 255, 255, .07); }
.pick[aria-pressed="true"] { color: var(--paper); background: rgba(var(--vinyl-rgb), .16); box-shadow: inset 0 0 0 1.5px var(--vinyl-2); }
.pick:focus-visible { outline: 2px solid var(--vinyl-2); outline-offset: 2px; }
.opt { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.opt[hidden] { display: none; }
.opt-label { flex: none; font-size: .86rem; font-weight: 600; color: var(--dim); }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chips button {
  flex: none; border: 0; cursor: pointer; padding: 8px 12px; border-radius: 10px; font: 600 .84rem/1 var(--sans);
  background: rgba(255,255,255,.06); color: var(--sage); box-shadow: inset 0 0 0 1px var(--line-2); display: inline-flex; align-items: center; gap: 7px;
}
.chips button[aria-pressed="true"] { background: rgba(var(--vinyl-rgb), .16); color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--vinyl-2); }
.chips .sw { width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0,0,0,.3); }
.facts { list-style: none; padding: 0; margin: 14px 0 0; font-size: .9rem; color: var(--sage); border-top: 1px solid var(--line-2); }
.facts li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.facts li b { color: var(--paper); font-weight: 600; text-align: right; }
.credit-note { margin-top: 18px; font-size: .84rem; color: var(--dim); }
.credit-note a { color: var(--sage); }

/* ---------- funzioni ---------- */
.feat { padding: clamp(64px, 8vw, 120px) 0; }
.feat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.feat-grid article { position: relative; padding: 26px 22px 18px; border-radius: 22px; background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.feat-grid article::before { content: ""; position: absolute; inset: 0; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, -40%), rgba(var(--vinyl-rgb), .14), transparent 70%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.feat-grid article:hover::before { opacity: 1; }
.feat-grid h3 { margin-bottom: .6em; font-size: 1.5rem; letter-spacing: -.03em; }
.feat-grid p { color: var(--sage); font-size: .97rem; }
.feat-grid ul { margin: 0; padding: 0; list-style: none; font-size: .93rem; }
.feat-grid li { position: relative; padding: 7px 0 7px 18px; border-top: 1px solid var(--line); }
.feat-grid li::before { content: ""; position: absolute; left: 0; top: 15px; width: 7px; height: 7px; background: var(--vinyl); border-radius: 2px; }

/* ---------- computer, tablet e telefono (schermate vere in cornici disegnate in CSS, niente marchi) ----------
   --dp va da 0 a 1 scorrendo (js/motion.js): i dispositivi si avvicinano solo con transform/opacity; senza JS o con «riduci movimento» resta 1 */
.devices { position: relative; padding: clamp(56px, 7vw, 104px) 0 clamp(56px, 7vw, 100px); border-top: 1px solid var(--line); overflow: hidden;
  background: radial-gradient(60% 40% at 50% 0%, rgba(var(--vinyl-rgb), .09), transparent 70%), var(--bg); }
.dv-head { text-align: center; margin-bottom: clamp(28px, 4vw, 52px); }
.dv-head .lead { margin-inline: auto; }
.dv-stage { --dp: 1; position: relative; width: min(1180px, 100% - 2 * var(--gut)); margin: 0 auto; aspect-ratio: 100 / 57; }
.dv-glow { position: absolute; left: 50%; top: 55%; width: 96%; height: 90%; transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(var(--vinyl-rgb), .30), transparent); opacity: calc(.35 + .65 * var(--dp)); }
.dv { position: absolute; margin: 0; will-change: transform; }
.dv-screen { position: relative; overflow: hidden; background: #050807; }
.dv-screen img { width: 100%; height: auto; }
/* computer portatile */
.dv-pc { left: 15%; top: 0; width: 70%; transform: translateY(calc((1 - var(--dp)) * 48px)) scale(calc(.94 + .06 * var(--dp))); transform-origin: 50% 100%; }
.dv-lid { position: relative; padding: 2.1% 2.1% 2.6%; border-radius: clamp(10px, 1.5vw, 20px) clamp(10px, 1.5vw, 20px) 4px 4px; background: #121514;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .13), 0 0 0 1px rgba(0, 0, 0, .6); }
.dv-lid::before { content: ""; position: absolute; left: 50%; top: .75%; width: .7%; aspect-ratio: 1; border-radius: 50%; transform: translateX(-50%); background: #2a302d; }
.dv-pc .dv-screen { border-radius: 3px; }
.dv-base { position: relative; height: clamp(8px, 1.25vw, 15px); margin: 0 -6.5%; border-radius: 2px 2px 40% 40% / 2px 2px 100% 100%;
  background: linear-gradient(180deg, #3a403d 0%, #22272a 35%, #111413 100%); box-shadow: 0 28px 60px -18px rgba(0, 0, 0, .95); }
.dv-base::before { content: ""; position: absolute; left: 50%; top: 0; width: 15%; height: 42%; transform: translateX(-50%); border-radius: 0 0 8px 8px; background: #161a18; }
/* tablet */
.dv-tab { left: 0; bottom: 1%; width: 39%; padding: 1.7%; border-radius: clamp(12px, 2vw, 26px); background: #0f1211;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 30px 70px -24px rgba(0, 0, 0, .95);
  transform: translate(calc((1 - var(--dp)) * -16%), calc((1 - var(--dp)) * 70px)); opacity: calc(.15 + .85 * var(--dp)); }
.dv-tab .dv-screen { border-radius: clamp(5px, .8vw, 10px); }
/* telefono */
.dv-tel { right: 2.5%; bottom: 0; width: 15%; padding: 1.2%; border-radius: clamp(18px, 2.8vw, 36px); background: #0f1211;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), 0 30px 60px -20px rgba(0, 0, 0, .95);
  transform: translate(calc((1 - var(--dp)) * 30%), calc((1 - var(--dp)) * 110px)); opacity: calc(.15 + .85 * var(--dp)); }
.dv-tel .dv-screen { border-radius: clamp(13px, 2.1vw, 28px); }
.dv-tel .dv-screen::after { content: ""; position: absolute; left: 50%; top: 1.6%; width: 4.4%; aspect-ratio: 1; border-radius: 50%; transform: translateX(-50%); background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
.dv-list { list-style: none; padding: 0; margin: clamp(32px, 4.5vw, 56px) auto 0; max-width: 1100px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 28px; }
.dv-list li { padding: 14px 0 0; border-top: 1px solid var(--line-2); }
.dv-list b { display: flex; align-items: center; gap: 10px; font: 700 1.12rem/1.25 var(--head); letter-spacing: -.01em; margin-bottom: 4px; }
.dv-list b::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--vinyl-2); box-shadow: 0 0 0 4px rgba(var(--vinyl-2-rgb), .18); }
.dv-list span { display: block; color: var(--sage); font-size: .95rem; line-height: 1.45; }
@media (max-width: 760px) {
  .dv-stage { aspect-ratio: 100 / 104; }
  .dv-pc { left: 6%; width: 88%; }
  .dv-tab { left: 0; bottom: 3%; width: 62%; padding: 2.4%; }
  .dv-tel { right: 0; width: 31%; padding: 2.2%; }
  .dv-list { grid-template-columns: 1fr; gap: 0; }
  .dv-list li { padding: 14px 0; }
}

/* ---------- l'app ---------- */
.appwin { position: relative; padding: clamp(64px, 8vw, 120px) 0; border-top: 1px solid var(--line); overflow: hidden; }
.win-stage { position: relative; width: min(1240px, 100% - 2 * var(--gut)); margin: 0 auto; perspective: 1600px; }
.win-glow { position: absolute; left: 50%; top: 60%; width: 90%; height: 70%; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(var(--vinyl-rgb), .38), transparent); opacity: var(--wg, .5); }
.win { position: relative; margin: 0; border-radius: 16px; overflow: hidden; background: #1b1c20; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 60px 140px -40px rgba(0,0,0,.95);
  transform: rotateX(var(--wr, 0deg)) scale(var(--ws, 1)); transform-origin: 50% 100%; will-change: transform; }
.win-bar { display: flex; gap: 8px; padding: 12px 14px; background: #232429; border-bottom: 1px solid rgba(255,255,255,.06); }
.win-bar i { width: 12px; height: 12px; border-radius: 50%; background: #45474e; }
.win img { width: 100%; height: auto; }
.win-shot { position: relative; }
/* numeri sulla schermata, legati all'elenco qui sotto */
.pins { list-style: none; margin: 0; padding: 0; }
.pins li { position: absolute; left: var(--px); top: var(--py); width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%;
  display: grid; place-items: center; font: 700 .9rem/1 var(--sans); background: var(--vinyl); color: var(--on-vinyl);
  box-shadow: 0 0 0 2px #fff, 0 4px 14px rgba(0, 0, 0, .5), 0 0 22px rgba(var(--vinyl-rgb), .7); }
.pins li::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(var(--vinyl-2-rgb), .8); animation: pin 2.4s ease-out infinite; }
.pins li:nth-child(2)::after { animation-delay: .4s; } .pins li:nth-child(3)::after { animation-delay: .8s; } .pins li:nth-child(4)::after { animation-delay: 1.2s; }
.pins li:nth-child(5)::after { animation-delay: 1.6s; } .pins li:nth-child(6)::after { animation-delay: 2s; }
@keyframes pin { from { transform: scale(1); opacity: 1; } to { transform: scale(1.9); opacity: 0; } }
.ui-legend { list-style: none; counter-reset: ui; padding: 0; margin: clamp(28px, 4vw, 44px) auto 0; max-width: 1100px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 28px; }
.ui-legend li { counter-increment: ui; position: relative; padding: 14px 0 14px 44px; border-top: 1px solid var(--line-2); }
.ui-legend li::before { content: counter(ui); position: absolute; left: 0; top: 14px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font: 700 .85rem/1 var(--sans); background: var(--vinyl); color: var(--on-vinyl); }
.ui-legend b { display: block; font: 700 1.08rem/1.25 var(--head); letter-spacing: -.01em; margin-bottom: 3px; }
.ui-legend span { display: block; color: var(--sage); font-size: .93rem; line-height: 1.45; }
.win-cap { text-align: center; color: var(--dim); font-size: .9rem; margin: 18px auto 0; max-width: 70ch; }
.platforms { list-style: none; padding: 0; margin: clamp(32px, 5vw, 56px) auto 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 900px; }
.platforms li { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line-2); background: rgba(255,255,255,.025); }
.platforms svg, .dl-card svg { width: 30px; height: 30px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.platforms svg { color: var(--vinyl-2); }
.platforms b { display: block; font: 700 1.1rem/1.2 var(--head); }
.platforms small { color: var(--sage); font-size: .86rem; }

/* ---------- offline ---------- */
.offline { padding: clamp(80px, 11vw, 170px) 0; border-block: 1px solid var(--line); background: radial-gradient(60% 60% at 80% 30%, rgba(143, 245, 198, .06), transparent 70%), var(--bg-2); }
.offline-k { font: 600 1.05rem/1.3 var(--sans); letter-spacing: 0; color: var(--vinyl-2); margin-bottom: 18px; }
.offline-big { font: 700 clamp(1.8rem, 1rem + 3vw, 3.6rem)/1.12 var(--head); letter-spacing: -.035em; max-width: 24ch; margin: 0 0 clamp(40px, 6vw, 80px); color: var(--paper); text-wrap: pretty; }
.d-tag { margin: -4px 0 10px; color: var(--vinyl-2); font-weight: 600; }
.motto { padding: clamp(80px, 12vw, 180px) 0; text-align: center; }
.motto-t { margin: 0 auto 22px; max-width: 20ch; }
.motto-p { margin: 0 auto; max-width: 52ch; color: var(--sage); font-size: clamp(1rem, .9rem + .4vw, 1.2rem); line-height: 1.55; }
.offline-big .lw { opacity: var(--o, 1); transition: opacity .2s linear; }
.specs { margin: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 4vw, 64px); }
.specs div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line-2); }
.specs div:nth-child(-n+2) { border-top: 1px solid var(--line-2); }
.specs dt { color: var(--sage); }
.specs dd { margin: 0; }

/* ---------- prezzo ---------- */
.price { padding: clamp(64px, 8vw, 120px) 0 clamp(32px, 4vw, 56px); }
.price-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.billing { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(0,0,0,.35); box-shadow: inset 0 0 0 1px var(--line-2); }
.billing button { border: 0; background: none; color: var(--sage); font: 600 .95rem/1 var(--sans); padding: 11px 18px; border-radius: 999px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.billing button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.billing em { font-style: normal; font-size: .78rem; padding: 3px 7px; border-radius: 999px; background: var(--vinyl); color: var(--on-vinyl); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 26px 24px; border-radius: 24px; background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.012)); box-shadow: inset 0 0 0 1px var(--line-2); }
.plan.best { background: var(--paper); color: var(--ink); box-shadow: 0 0 0 1px rgba(255,255,255,.2), 0 30px 80px -30px rgba(var(--vinyl-rgb), .55); }
.plan h3 { font-size: 1.4rem; display: flex; align-items: center; gap: 10px; }
.plan .badge { font: 600 .74rem/1 var(--sans); padding: 5px 9px; border-radius: 999px; background: var(--vinyl); color: var(--on-vinyl); letter-spacing: 0; }
.plan .who { color: var(--sage); font-size: .93rem; margin: .5em 0 1.1em; min-height: 2.8em; }
.plan.best .who, .plan.best .per, .plan.best .sub { color: #4b5a51; }
.plan .amount { margin: 0; font: 800 clamp(2.4rem, 2rem + 1.4vw, 3.1rem)/1 var(--head); letter-spacing: -.04em; display: flex; align-items: baseline; gap: 6px; }
.plan .per { font: 500 .95rem/1.2 var(--sans); color: var(--sage); letter-spacing: 0; }
.plan .sub { font-size: .86rem; color: var(--sage); margin: 6px 0 18px; min-height: 1.3em; }
.plan ul { list-style: none; margin: 0 0 22px; padding: 0; font-size: .95rem; flex: 1; }
.plan li { padding: 8px 0 8px 26px; position: relative; border-top: 1px solid var(--line-2); }
.plan.best li { border-top-color: #d8dbd1; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 14px; width: 11px; height: 6px; border-left: 2.5px solid var(--vinyl); border-bottom: 2.5px solid var(--vinyl); transform: rotate(-45deg); }
.plan li.extra { color: #0f6b34; font-weight: 650; background: #d9f5e2; border-top-color: transparent; border-radius: 10px; padding-left: 34px; margin: 4px 0; }
.plan li.extra::before { left: 11px; border-color: #12a150; }
.plan li.extra + li { border-top-color: transparent; }
.plan .btn { width: 100%; }
.plan:not(.best) .btn { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1.5px rgba(238,241,232,.4); }
.plan:not(.best) .btn:hover { background: rgba(238,241,232,.08); }
.plan.life { background: transparent; box-shadow: inset 0 0 0 1.5px var(--vinyl); }
.price-foot { margin-top: 16px; color: var(--dim); font-size: .86rem; }

/* ---------- download ---------- */
.dl { padding: clamp(40px, 6vw, 90px) 0; }
.dl-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1100px) and (min-width: 761px) { .dl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dl-card {
  display: flex; align-items: center; gap: 16px; padding: 22px; border-radius: 20px; text-decoration: none;
  background: var(--vinyl); color: var(--on-vinyl); transition: background-color .15s, transform .2s;
  box-shadow: 0 20px 50px -24px rgba(var(--vinyl-rgb), .8);
}
.dl-card:hover { background: var(--vinyl-2); transform: translateY(-2px); }
.dl-card b { display: block; font: 700 1.2rem/1.2 var(--head); }
.dl-card small { font-size: .9rem; opacity: .8; }
.dl-soft { background: rgba(255,255,255,.04); color: var(--paper); box-shadow: inset 0 0 0 1px var(--line-2); }
.dl-soft:hover { background: rgba(255,255,255,.08); }
.dl-help { margin-top: 18px; color: var(--sage); font-size: .92rem; max-width: 80ch; }
.dl-help + .dl-help { margin-top: 6px; }
/* guide d'installazione (una per sistema, si apre quella del visitatore) */
.guide { margin-top: 28px; padding: clamp(18px, 3vw, 28px); border-radius: 20px; background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px var(--line-2); }
.guide h3 { margin: 0 0 14px; font: 700 1.25rem/1.2 var(--head); }
.guide-tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.guide-tabs::-webkit-scrollbar { display: none; }
.guide-tabs button { white-space: nowrap; }
.guide-panel { margin-top: 16px; max-width: 80ch; }
.guide-panel ol { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }
.guide-panel li, .guide-panel p { color: var(--paper); line-height: 1.55; }
.guide-panel i { font-style: normal; font-weight: 600; color: var(--paper); }
.guide-note { margin-top: 12px; color: var(--sage) !important; font-size: .92rem; }

/* ---------- domande ---------- */
.faq { padding: clamp(56px, 7vw, 100px) 0; border-top: 1px solid var(--line); }
.faq-in { display: grid; grid-template-columns: 320px 1fr; gap: clamp(24px, 4vw, 60px); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq details:first-child { border-top: 1px solid var(--line-2); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font-weight: 600; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font: 400 1.7rem/1 var(--head); color: var(--vinyl); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--sage); max-width: 68ch; }

/* ---------- piè di pagina ---------- */
.foot { padding: 44px 0 56px; border-top: 1px solid var(--line-2); background: #010302; font-size: .92rem; color: var(--sage); }
.foot-in { display: grid; gap: 10px; }
.foot-brand { display: flex; align-items: center; gap: 10px; font: 700 1.15rem/1 var(--head); color: var(--paper); margin-bottom: 6px; }
.foot-brand img { border-radius: 7px; }
.foot p { margin: 0; }
.foot a { color: var(--paper); }
.foot .pgpg { font-weight: 700; color: var(--vinyl-2); text-decoration: none; }
.foot .pgpg:hover { text-decoration: underline; }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; margin: 6px 0; }
.foot-legal { color: var(--dim); font-size: .84rem; }

/* ---------- avviso ---------- */
.modal { border: 0; padding: 0; border-radius: 22px; background: var(--paper); color: var(--ink); width: min(460px, 100% - 32px); }
.modal::backdrop { background: rgba(3, 9, 7, .75); backdrop-filter: blur(4px); }
.modal-in { padding: 28px; }
.modal h2 { font-size: 1.6rem; margin-bottom: .6em; letter-spacing: -.02em; line-height: 1.1; }
.modal p { color: #3d4a42; }
.modal p a { color: #b23c14; }
.modal-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.modal .btn-line { color: var(--ink); background: transparent; box-shadow: inset 0 0 0 1.5px #b8bcb2; }

/* ---------- pagine di testo (privacy, termini, crediti) ---------- */
.doc { padding: clamp(40px, 6vw, 80px) 0; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem); margin-bottom: .5em; }
.doc h2 { font-size: 1.5rem; margin: 1.8em 0 .5em; letter-spacing: -.02em; line-height: 1.1; }
.doc p, .doc li { color: var(--sage); }
.doc .draft { padding: 14px 18px; border-radius: 12px; border: 2px dashed rgba(var(--vinyl-2-rgb), .6); color: var(--paper); }
.doc table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.doc th, .doc td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.doc td img { width: 88px; height: 60px; object-fit: cover; border-radius: 6px; }
.doc td, .doc p { overflow-wrap: anywhere; }
.doc h1, .doc h2 { hyphens: auto; -webkit-hyphens: auto; }
@media (max-width: 600px) {
  /* telefono: la tabella dei crediti diventa una scheda per riga (niente scorrimento orizzontale) */
  .doc thead { display: none; }
  .doc table, .doc tbody, .doc tr, .doc td { display: block; width: 100%; }
  .doc tr { padding: 12px 0; border-bottom: 1px solid var(--line-2); }
  .doc td { border: 0; padding: 3px 0; }
}
@media (max-width: 420px) { .doc-page .brand span { display: none; } }

/* ---------- telefono e tablet ---------- */
@media (max-width: 1100px) {
  .plans { grid-template-columns: 1fr 1fr; } .plans .plan.life { grid-column: 1 / -1; }
  .stats-in { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .stats li:nth-child(4) { border-left: 0; }
}
@media (max-width: 1080px) {
  .panel { grid-template-columns: minmax(0, 1fr); }
  .ui-legend { grid-template-columns: 1fr 1fr; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  /* testata fissa senza sfocatura sul telefono: lo sfondo sotto non va ricalcolato a ogni scorrimento */
  .top { background: #040a07; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav { display: none; }
  .top-act { margin-left: auto; }
  .hero-stick { padding-top: 40px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-stage figcaption { flex-direction: column; align-items: flex-start; gap: 10px; }
  .stats-in { grid-template-columns: 1fr 1fr; }
  .stats li, .stats li + li { border-left: 0; padding-inline: 0 8px; }
  .stats li::before { left: 0; }
  .stats li:last-child { grid-column: 1 / -1; }
  .cmp-live { aspect-ratio: 1 / 1; border-radius: 16px; }
  .cmp-live .cmp-canvas img { object-position: 74% 50%; }
  .cmp-live .tag { font-size: .72rem; padding: 5px 8px; top: 10px; }
  .cmp-live .tag-a { left: 10px; } .cmp-live .tag-b { right: 10px; }
  .cmp-handle, .cmp-live .cmp-handle { --hs: 36px; }
  .tag { top: 10px; font-size: .7rem; padding: 4px 8px; } .tag-a { left: 10px; } .tag-b { right: 10px; }
  .hint { bottom: 10px; }
  .loupe { --L: 150px; }
  .live-bar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .panel { padding: 10px; border-radius: 20px; }
  .stage-bar { flex-direction: column; align-items: flex-start; gap: 8px; }
  .feat-grid { grid-template-columns: 1fr; }
  .platforms, .dl-grid, .faq-in, .specs { grid-template-columns: 1fr; }
  .specs div:nth-child(2) { border-top: 0; }
  .specs div { grid-template-columns: 110px 1fr; }
  .tabs button { padding: 10px 14px 10px 11px; font-size: .93rem; }
  .win { border-radius: 10px; }
  .pins li { width: 20px; height: 20px; margin: -10px 0 0 -10px; font-size: .68rem; box-shadow: 0 0 0 1.5px #fff, 0 2px 8px rgba(0, 0, 0, .5); }
  .ui-legend { grid-template-columns: 1fr; gap: 0; }
  .win-bar { padding: 8px 10px; gap: 6px; } .win-bar i { width: 8px; height: 8px; }
}
@media (max-width: 680px) { .plans { grid-template-columns: 1fr; } .plans .plan.life { grid-column: auto; } .plan .who { min-height: 0; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .w > span { transform: none; }
}
