/* ============================================================
   VOLT — Scarica la stanchezza · FANDEX (concept)
   Prototipo Atto 1. Palette "Citrus Voltage" — chiara, brillante.
   Colori HEX (fallback Safari). Mai #000.
   ============================================================ */

:root {
  --base:   #F7FFE0;   /* off-white caldo */
  --base-2: #FFFFFF;
  --lime:   #C6FF2E;   /* verde elettrico */
  --lime-d: #A9E81E;
  --pop:    #FF2E88;   /* magenta */
  --ink:    #15210A;   /* verde quasi-nero (solo testo) */
  --ink-soft: #4a5640;
  --line:   rgba(21, 33, 10, 0.12);
  --font-display: "Clash Display", system-ui, sans-serif;
  --font-cond: "Anton", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --pad: clamp(1.1rem, 4vw, 4rem);
  --maxw: 1500px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--base);
  color: var(--ink);
  line-height: 1.5;
  overflow-x: hidden;
  /* sfondo brillante con alone d'energia */
  background:
    radial-gradient(120% 90% at 50% 8%, #FFFFFF 0%, var(--base) 46%, #EEF9D2 100%);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img, canvas { display: block; max-width: 100%; }
.mono { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.68rem; }

/* ---- texture: film-grain su tutto (mai piatto) ---- */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  opacity: 0.09; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ---- sistema di segni VOLT ---- */
.mark { position: absolute; pointer-events: none; z-index: 4; color: var(--ink); }
.mark use { color: inherit; }
@media (max-width: 720px) { .mark { display: none; } }   /* su mobile lo spazio è stretto */

/* ---- cursore ---- */
.cursor { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; display: none; }
.cursor__dot { position: fixed; width: 12px; height: 12px; border-radius: 50%; background: var(--pop);
  transform: translate(-50%,-50%); transition: width .25s var(--ease), height .25s var(--ease), background .25s; mix-blend-mode: multiply; }
html.has-cursor .cursor { display: block; }
html.has-cursor.is-hover .cursor__dot { width: 40px; height: 40px; background: var(--lime); }
@media (hover: hover) and (pointer: fine) { html.has-cursor, html.has-cursor a { cursor: none; } }

/* ---- loader ---- */
.loader { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4rem;
  background: var(--base); transition: opacity .7s var(--ease), visibility .7s; }
.loader.is-hidden { opacity: 0; visibility: hidden; }
.loader__mark { font-family: var(--font-display); font-weight: 700; font-size: clamp(3rem, 12vw, 7rem); letter-spacing: -0.02em; color: var(--ink);
  -webkit-text-stroke: 0; position: relative; }
.loader__mark::after { content: ""; position: absolute; left: -6%; right: -6%; bottom: 12%; height: 0.5em; background: var(--lime); z-index: -1; transform: skewX(-8deg); }
.loader__bar { width: min(260px, 60vw); height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.loader__fill { height: 100%; width: 0; background: var(--lime); }

/* ---- topbar ---- */
.topbar { position: fixed; inset: 0 0 auto 0; z-index: 80; display: flex; align-items: center; justify-content: space-between;
  padding: clamp(0.9rem, 2vw, 1.5rem) var(--pad); }
.topbar__brand { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.12em; font-size: 1rem; }
.topbar__mid { color: var(--ink-soft); }
.topbar__cta { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .14em; font-size: .72rem;
  border: 1.5px solid var(--ink); padding: .55em 1.1em; border-radius: 100px; transition: background .35s var(--ease), color .35s; }
.topbar__cta:hover { background: var(--lime); border-color: var(--lime); }
@media (max-width: 720px) { .topbar__mid { display: none; } }

/* ---- nav pill flottante ---- */
.navpill { position: fixed; z-index: 85; left: 50%; bottom: 1.4rem; transform: translateX(-50%);
  display: flex; align-items: center; gap: .15rem; padding: .35rem .4rem;
  background: rgba(255,255,255,0.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1.5px solid var(--ink); border-radius: 100px; box-shadow: 0 12px 34px -14px rgba(21,33,10,.45);
  letter-spacing: .12em; font-size: .66rem; }
.navpill a { padding: .6em 1.05em; border-radius: 100px; color: var(--ink); white-space: nowrap; transition: background .3s var(--ease), color .3s; }
.navpill a:hover { background: var(--lime); }
.navpill a.navpill__cta { background: var(--ink); color: var(--base); }
.navpill a.navpill__cta:hover { background: var(--ink); color: var(--lime); }
@media (max-width: 720px) { .navpill { font-size: .56rem; gap: 0; bottom: 1rem; padding: .3rem .3rem; } .navpill a { padding: .55em .75em; } }

/* canvas 3D persistente (la lattina resta al centro per tutto il sito) */
main { position: relative; z-index: 2; }
.stage { position: fixed; inset: 0; z-index: 1; width: 100%; height: 100%; touch-action: none; }

/* ===================== HERO ===================== */
.hero { position: relative; min-height: 100svh; display: flex; }
.wave { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; opacity: 0.6; }

.hero__copy { position: absolute; z-index: 4; left: var(--pad); bottom: clamp(4.5rem, 12vh, 8rem); max-width: 38ch; display: grid; gap: 1.1rem; pointer-events: none; }
.badge { justify-self: start; color: var(--ink); background: rgba(255,255,255,0.6); border: 1.5px solid var(--ink); padding: .5em 1em; border-radius: 100px; backdrop-filter: blur(4px); }
.hero__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.6rem, 8vw, 6.5rem); line-height: 0.92; letter-spacing: -0.03em; }
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line:last-child { color: var(--ink); }
.hero__sub { font-size: clamp(1rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 34ch; }

.hero__hud { position: absolute; z-index: 4; top: auto; bottom: clamp(4.5rem, 12vh, 8rem); right: var(--pad); display: flex; flex-direction: column; gap: .6rem; align-items: flex-end; color: var(--ink-soft); pointer-events: none; }
.hero__hud .spark { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 var(--lime-d); margin-right: .4em; animation: pulse 1.6s infinite; }
.hero__hud b { color: var(--ink); }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(169,232,30,0.6); } 50% { box-shadow: 0 0 0 7px rgba(169,232,30,0); } }
@media (max-width: 720px) { .hero__hud { top: auto; bottom: clamp(4.5rem,12vh,8rem); right: var(--pad); transform: none; } .hero__hud .hud__r { display: none; } }

.hero__cue { position: absolute; z-index: 4; left: 50%; bottom: 1.4rem; transform: translateX(-50%); color: var(--ink-soft); display: flex; gap: .5em; align-items: center; }
.cue__arrow { display: inline-block; animation: bob 1.8s var(--ease) infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ===================== ATTO 2 — IL RILASCIO ===================== */
.act2 { position: relative; }
.act2__track { height: 480vh; position: relative; }
.act2__stick { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.liquid { position: fixed; z-index: 1; pointer-events: none; opacity: 0; left: 60%; top: 50%; transform: translate(-50%, -50%); width: 50vw; height: 50vw; }
@media (max-width: 720px) { .liquid { left: 50%; top: 34%; width: 94vw; height: 94vw; } }
.act2__intro { position: absolute; top: clamp(5rem, 13vh, 8rem); left: var(--pad); max-width: 28ch; display: grid; gap: .8rem; }
.act2__h { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.2rem, 6vw, 4.6rem); line-height: .94; letter-spacing: -0.02em; }
.hl { position: relative; white-space: nowrap; }
.hl::after { content: ""; position: absolute; left: -3%; right: -3%; bottom: 6%; height: .4em; background: var(--lime); z-index: -1; transform: skewX(-7deg); }
.act2__lead { color: var(--ink-soft); max-width: 32ch; }
.icaps { position: absolute; left: var(--pad); bottom: clamp(4rem, 13vh, 7rem); width: min(36ch, 82vw); height: 8em; }
.icap { position: absolute; inset: auto auto 0 0; width: 100%; display: grid; gap: .35rem; opacity: 0; transform: translateY(22px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.icap.is-on { opacity: 1; transform: none; }
.icap .mono { color: var(--ink-soft); }
.icap b { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 4vw, 2.8rem); line-height: 1; }
.icap em { font-style: normal; color: var(--ink-soft); font-size: clamp(.95rem, 1.4vw, 1.15rem); }
.boom { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .5rem; opacity: 0; transition: opacity .45s var(--ease); pointer-events: none; }
.boom.is-on { opacity: 1; }
.boom__h { font-family: var(--font-display); font-weight: 700; font-size: clamp(3.5rem, 14vw, 11rem); line-height: .88; letter-spacing: -0.03em; }
.boom__p { color: var(--ink-soft); }
.act2__hud { position: absolute; top: clamp(5rem, 13vh, 8rem); right: var(--pad); color: var(--ink-soft); }
@media (max-width: 720px) {
  .act2__intro { top: 4.5rem; max-width: 80vw; }
  .icaps { bottom: 3rem; height: 9em; }
  .act2__hud { top: auto; bottom: 3rem; right: var(--pad); }
}

/* ===================== ATTO 3 — I GUSTI ===================== */
.act3 { position: relative; height: 170vh; }
.act3__stick { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.act3__intro { position: absolute; top: clamp(5rem, 13vh, 8rem); left: var(--pad); max-width: 26ch; display: grid; gap: .8rem; }
.act3__h { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.2rem, 6vw, 4.6rem); line-height: .94; letter-spacing: -0.02em; }
.act3__lead { color: var(--ink-soft); max-width: 30ch; }
.flavs { position: absolute; left: var(--pad); bottom: clamp(4rem, 13vh, 7rem); display: flex; flex-direction: column; gap: .7rem; align-items: flex-start; }
.flav { display: inline-flex; align-items: center; gap: .7rem; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 3.2vw, 2.4rem); letter-spacing: -0.01em; color: var(--ink); background: none; border: 0; padding: .15em 0; cursor: pointer; opacity: .42; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.flav:hover { opacity: .8; }
.flav.is-on { opacity: 1; transform: translateX(6px); }
.flav__dot { width: .7em; height: .7em; border-radius: 50%; background: var(--lime); border: 2px solid var(--ink); transition: background .4s var(--ease); }
.flav:nth-child(1) .flav__dot { background: #C6FF2E; }
.flav:nth-child(2) .flav__dot { background: #FF8A1E; }
.flav:nth-child(3) .flav__dot { background: #FF2E6F; }
.act3__hud { position: absolute; top: clamp(5rem, 13vh, 8rem); right: var(--pad); color: var(--ink-soft); }
html.has-cursor .flav { cursor: none; }
@media (max-width: 720px) {
  .act3__intro { top: 4.5rem; max-width: 80vw; }
  .flavs { bottom: 3rem; }
  .act3__hud { top: auto; bottom: 3rem; right: var(--pad); }
}

/* ===================== SEZIONI MONDO (Fase 3) ===================== */
/* tutte opache (z-index 2) → coprono il canvas: la lattina resta agli Atti 1-3 */
.formula, .manifesto, .gridflavs, .social, .foot { position: relative; z-index: 2; }
.sec__head { max-width: var(--maxw); margin: 0 auto clamp(2.5rem, 6vw, 4.5rem); display: grid; gap: 1rem; padding: 0 var(--pad); }
.sec__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.4rem, 7vw, 5.5rem); line-height: .95; letter-spacing: -0.02em; }
.sec__lead { color: var(--ink-soft); font-size: clamp(1.05rem, 1.7vw, 1.35rem); max-width: 46ch; }

/* -- La formula -- */
.formula { background: var(--base); padding: clamp(5rem, 12vh, 9rem) 0; }
.formula__grid { max-width: var(--maxw); margin: 0 auto clamp(3rem, 6vw, 5rem); padding: 0 var(--pad); display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 2rem); }
.ing { background: #fff; border: 1.5px solid var(--line); border-radius: 22px; padding: 1.4rem; display: grid; gap: .5rem; box-shadow: 0 16px 34px -20px rgba(21,33,10,.3); }
.ing img { width: 66%; aspect-ratio: 1; object-fit: contain; margin: .2rem auto .5rem; }
.ing h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; }
.ing p { color: var(--ink-soft); font-size: .94rem; line-height: 1.4; }
.facts { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 3vw, 3rem); }
.facts li { display: grid; gap: .4rem; border-top: 2px solid var(--ink); padding-top: 1rem; }
.facts .mono { color: var(--ink-soft); }
.facts b { font-family: var(--font-cond); font-weight: 400; font-size: clamp(2.8rem, 6vw, 5rem); line-height: .9; }
.facts b i { font-style: normal; font-size: .32em; color: var(--lime-d); margin-left: .08em; }
.facts li > span:last-child { color: var(--ink-soft); font-size: .88rem; max-width: 22ch; }

/* -- Manifesto (pannello lime) -- */
.manifesto { background: var(--lime); padding: clamp(5rem, 14vh, 10rem) var(--pad); }
.manifesto .badge { color: var(--ink); border-color: var(--ink); background: rgba(255,255,255,.3); }
.manifesto__inner { max-width: var(--maxw); margin: 0 auto; display: grid; gap: 1.5rem; }
.manifesto__h { font-family: var(--font-cond); font-weight: 400; text-transform: uppercase; font-size: clamp(2.8rem, 10vw, 8rem); line-height: .92; color: var(--ink); }
.manifesto__body { font-size: clamp(1.15rem, 2.2vw, 1.8rem); max-width: 42ch; color: var(--ink); line-height: 1.35; }
.manifesto__body em { font-style: italic; }
.values { list-style: none; display: grid; gap: 1rem; margin-top: .5rem; max-width: 54ch; }
.values li { display: flex; align-items: flex-start; gap: .8rem; font-size: clamp(1rem, 1.6vw, 1.25rem); color: var(--ink); border-top: 1.5px solid rgba(21,33,10,.22); padding-top: 1rem; }
.values b { font-family: var(--font-display); font-weight: 600; }
.vmark { width: 1.6rem; height: 1.6rem; flex: none; color: var(--ink); margin-top: .15rem; }

/* -- Griglia gusti -- */
.gridflavs { background: var(--base); padding: clamp(5rem, 12vh, 9rem) 0; }
.fcards { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 2rem); }
.fc { border-radius: 26px; padding: clamp(1.6rem, 3vw, 2.6rem); min-height: clamp(19rem, 30vw, 25rem); display: flex; flex-direction: column; justify-content: flex-end; gap: .5rem; position: relative; overflow: hidden; box-shadow: 0 24px 50px -28px rgba(21,33,10,.5); }
.fc__tag { position: absolute; top: 1.2rem; left: 1.4rem; background: var(--ink); color: var(--base); padding: .45em .9em; border-radius: 100px; }
.fc__mark { position: absolute; top: 1rem; right: 1.2rem; width: 2.4rem; height: 2.4rem; color: var(--ink); opacity: .85; }
.fc h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4vw, 3rem); }
.fc p { color: rgba(21,33,10,.72); font-size: 1rem; }
.fc--lime { background: #C6FF2E; }
.fc--arancia { background: #FF8A1E; }
.fc--rossi { background: #FF2E6F; }
.fc--rossi h3, .fc--rossi .fc__mark { color: var(--base); }
.fc--rossi p { color: rgba(247,255,224,.88); }
.fc--rossi .fc__tag { background: var(--base); color: var(--ink); }

/* -- In carica (social) -- */
.social { background: var(--base); padding: clamp(5rem, 12vh, 9rem) 0; }
.social__handle { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.social__grid { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.6rem, 1.4vw, 1.2rem); }
.tile { aspect-ratio: 1; border-radius: 18px; overflow: hidden; position: relative; display: block; box-shadow: 0 16px 34px -22px rgba(21,33,10,.35); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.tile:hover img { transform: scale(1.06); }
.tile__cap { position: absolute; left: .85rem; bottom: .75rem; z-index: 2; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.6); }

/* -- Footer (pannello magenta) -- */
.foot { background: var(--pop); color: var(--base); padding: clamp(5rem, 14vh, 10rem) var(--pad) clamp(5rem, 9vh, 7rem); display: grid; gap: clamp(3rem, 8vh, 6rem); }
.badge--ghost { color: var(--base); border-color: var(--base); background: rgba(255,255,255,.14); }
.foot__cta { max-width: var(--maxw); margin: 0 auto; width: 100%; display: grid; gap: 1.6rem; justify-items: start; }
.foot__h { font-family: var(--font-display); font-weight: 700; font-size: clamp(3rem, 12vw, 9rem); line-height: .88; letter-spacing: -0.02em; color: var(--base); }
.foot__btn { display: inline-flex; align-items: center; gap: .7rem; background: var(--ink); color: var(--base); padding: 1rem 1.8rem; border-radius: 100px; font-size: 1.1rem; font-weight: 600; box-shadow: 0 16px 40px -18px rgba(0,0,0,.4); transition: background .35s var(--ease), color .35s; will-change: transform; }
.foot__btn:hover { background: var(--base); color: var(--ink); }
.foot__mark { width: 1.2rem; height: 1.2rem; }
.foot__meta { max-width: var(--maxw); margin: 0 auto; width: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; color: rgba(247,255,224,.85); border-top: 1.5px solid rgba(247,255,224,.32); padding-top: 1.6rem; }
.foot__nav { display: flex; gap: 1.2rem; }
.foot__nav a { color: var(--base); }
.foot__legal { flex-basis: 100%; opacity: .72; text-transform: none; letter-spacing: 0; font-size: .72rem; }

@media (max-width: 820px) {
  .formula__grid { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fcards { grid-template-columns: 1fr; }
  .social__grid { grid-template-columns: repeat(2, 1fr); }
}

/* nota prototipo */
.proto-note { padding: clamp(3rem,8vh,6rem) var(--pad); display: flex; justify-content: center; text-align: center; position: relative; background: var(--base); }
.proto-note .mono { color: var(--ink-soft); max-width: 60ch; line-height: 2; }

@media (prefers-reduced-motion: reduce) {
  .cue__arrow, .hero__hud .spark { animation: none; }
}
