/* =====================================================================
   SOAVE — stile
   Layout: pagina scura "a notte", una sola sezione rumorosa (l'hero con
   i fasci di luce), il resto quieto su griglia a 12 colonne.
   Per cambiare i colori basta modificare le variabili qui sotto.
   ===================================================================== */
:root {
  /* Colori */
  --ink:      #04060D;   /* sfondo pagina */
  --night:    #0A1022;   /* superfici / sezioni alternate */
  --panel:    #0F1730;   /* card */
  --line:     rgba(130, 160, 255, 0.14);
  --brand:    #0052E4;   /* il blu del logo */
  --brand-hi: #3D7BFF;   /* blu acceso per hover, luci */
  --text:     #EDF1FF;
  --muted:    #8E99BD;

  /* Tipografia */
  --f-display: "Archivo", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --f-body:    "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Misure */
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --header-h: 68px;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand-hi); outline-offset: 3px; border-radius: 4px; }
section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--brand); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Tipografia di base ---------- */
.kicker, .eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-hi);
  margin-bottom: 14px;
}
.h2 {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 112;
  font-weight: 800;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.section-note { color: var(--muted); max-width: 42ch; }
.section-note strong { color: var(--text); font-weight: 600; }

/* ---------- Bottoni ----------
   Stile "matrice del biglietto": a sinistra una piccola matrice con la stella ✦ di SOAVE,
   separata da una perforazione tratteggiata (come i biglietti), a destra il testo.
   Al passaggio: la stella ruota e si accende, un riflesso di luce attraversa il bottone. */
.btn {
  --stub: 42px; --perf: rgba(255,255,255,.32);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 18px 0 calc(var(--stub) + 16px);
  border-radius: 6px;
  font-family: var(--f-display); font-variation-settings: "wdth" 118;
  font-weight: 800; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; line-height: 1.15; text-align: center;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background .25s, border-color .25s, transform .25s, box-shadow .3s, color .25s;
  -webkit-tap-highlight-color: transparent;
}
.btn::before {  /* matrice con la stella */
  content: "✦"; position: absolute; left: 0; top: 0; bottom: 0; width: var(--stub);
  display: grid; place-items: center; font-size: 15px; letter-spacing: 0;
  border-right: 1px dashed var(--perf);
  transition: transform .5s cubic-bezier(.2,.8,.2,1), color .25s, text-shadow .25s;
}
.btn::after {  /* riflesso di luce */
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.22), transparent);
  transform: skewX(-18deg); opacity: 0;
}
.btn:hover::after { animation: btn-shine .75s ease-out; }
@keyframes btn-shine { 0% { left: -60%; opacity: 1; } 100% { left: 120%; opacity: 1; } }
.btn:hover::before { transform: rotate(90deg) scale(1.15); }
.btn:active { transform: translateY(1px) scale(.99); }

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #2B6BFF 0%, var(--brand) 55%, #0043BD 100%);
  border-color: rgba(140,175,255,.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 10px 30px -12px rgba(0,82,228,.9);
}
.btn-primary::before { background: rgba(4,6,13,.18); color: #CFE0FF; }
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 0 0 1px rgba(140,175,255,.4), 0 16px 40px -12px rgba(61,123,255,.95);
}
.btn-primary:hover::before { color: #fff; text-shadow: 0 0 10px #9DB8FF, 0 0 18px var(--brand-hi); }

.btn-ghost {
  --perf: rgba(130,160,255,.35);
  color: var(--text); background: rgba(10,16,34,.55);
  border-color: rgba(130,160,255,.32);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.btn-ghost::before { color: var(--brand-hi); }
.btn-ghost:hover { border-color: var(--brand-hi); background: rgba(61,123,255,.12); transform: translateY(-2px); box-shadow: 0 12px 30px -16px rgba(61,123,255,.9); }
.btn-ghost:hover::before { color: #fff; text-shadow: 0 0 10px var(--brand-hi); }

.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn[disabled]::before { transform: none; }
.btn[disabled]::after { display: none; }
@media (prefers-reduced-motion: reduce) { .btn:hover::after { animation: none; } .btn:hover::before { transform: none; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(4, 6, 13, 0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 44px; height: 30px; color: var(--brand-hi); }
.brand-logo { display: block; height: 30px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a {
  text-decoration: none; font-size: 14px; font-weight: 500; color: var(--muted);
  transition: color .2s;
}
.site-nav a:hover { color: var(--text); }
.site-nav .nav-ig { color: var(--text); border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; }
.site-nav .nav-ig:hover { border-color: var(--brand-hi); }

.menu-toggle { display: none; width: 44px; height: 44px; background: none; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; position: relative; }
.menu-toggle .bars, .menu-toggle .bars::before, .menu-toggle .bars::after {
  position: absolute; left: 12px; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, opacity .2s;
}
.menu-toggle .bars { top: 21px; }
.menu-toggle .bars::before { content: ""; left: 0; top: -6px; }
.menu-toggle .bars::after { content: ""; left: 0; top: 6px; }
.menu-toggle[aria-expanded="true"] .bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; overflow: clip; padding-top: clamp(48px, 9vw, 110px); isolation: isolate; }
.hero-beams {
  position: absolute; inset: -40% -20% 0 -20%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 45% at 72% 38%, rgba(0, 82, 228, 0.55), transparent 70%),
    radial-gradient(40% 30% at 15% 20%, rgba(61, 123, 255, 0.18), transparent 70%);
}
.hero-beams::before, .hero-beams::after {
  content: ""; position: absolute; left: 50%; top: 42%; width: 140vmax; height: 140vmax;
  translate: -50% -50%;
  background: conic-gradient(from 0deg,
    transparent 0 8deg, rgba(61,123,255,.16) 10deg, transparent 13deg,
    transparent 40deg, rgba(61,123,255,.10) 43deg, transparent 47deg,
    transparent 95deg, rgba(61,123,255,.14) 98deg, transparent 101deg,
    transparent 180deg, rgba(61,123,255,.12) 183deg, transparent 187deg,
    transparent 250deg, rgba(61,123,255,.10) 252deg, transparent 256deg,
    transparent 360deg);
  mask-image: radial-gradient(circle at center, #000 0 25%, transparent 60%);
  -webkit-mask-image: radial-gradient(circle at center, #000 0 25%, transparent 60%);
  animation: sweep 38s linear infinite;
}
.hero-beams::after { animation-duration: 57s; animation-direction: reverse; opacity: .7; }
@keyframes sweep { to { rotate: 360deg; } }

.hero-title { position: relative; margin: 8px 0 clamp(32px, 5vw, 60px); line-height: 0; }
.hero-title::before {  /* riflesso del neon sullo sfondo */
  content: ""; position: absolute; inset: 0 4%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(66, 240, 226, .16), transparent);
  filter: blur(24px);
}
/* Insegna neon: --neon è il colore del bagliore, color quello del tubo */
.neon-logo {
  --neon: #0052E4;
  display: block; width: 100%; height: auto; max-width: 100%; aspect-ratio: 2440 / 558; overflow: visible;
  color: #E4FFFC; stroke: currentColor; stroke-width: 1.4px;
  filter:
    drop-shadow(0 0 1.5px var(--neon))
    drop-shadow(0 0 6px var(--neon))
    drop-shadow(0 0 18px rgba(66, 240, 226, .55))
    drop-shadow(0 0 44px rgba(66, 176, 240, 0.3));
  animation: neon-on 1.4s linear .15s both, neon-hum 6s ease-in-out 2s infinite;
}
@keyframes neon-on {
  0% { opacity: .12; } 6% { opacity: 1; } 10% { opacity: .3; } 16% { opacity: 1; }
  22% { opacity: .5; } 26%, 100% { opacity: 1; }
}
@keyframes neon-hum { 0%, 100% { opacity: 1; } 47% { opacity: 1; } 50% { opacity: .86; } 53% { opacity: 1; } }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(32px, 6vw, 96px); align-items: start; }
.hero-copy { min-width: 0; padding-top: 6px; }
.hero-lead { font-size: clamp(17px, 1.6vw, 20px); color: #C9D2EE; max-width: 46ch; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Biglietto "prossimo evento" */
.ticket {
  position: relative; min-width: 0;
  background: linear-gradient(160deg, rgba(20, 34, 80, .92), rgba(10, 16, 34, .95));
  border: 1px solid rgba(130,160,255,.25);
  border-radius: var(--radius);
  padding: 26px 26px 24px;
  box-shadow: 0 30px 80px -30px rgba(0, 82, 228, .6);
  display: grid; gap: 18px;
}
.ticket-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-hi); }
.ticket-date { font-family: var(--f-display); font-variation-settings: "wdth" 125; font-weight: 900; font-size: clamp(36px, 4.4vw, 52px); line-height: 1; font-variant-numeric: tabular-nums; }
.ticket-day { display: block; font-family: var(--f-mono); font-weight: 400; font-size: 13px; letter-spacing: .12em; color: var(--muted); margin-top: 8px; text-transform: uppercase; }
.ticket-cut { position: relative; border-top: 1px dashed rgba(130,160,255,.3); margin: 0 -26px; }
.ticket-cut::before, .ticket-cut::after {  /* fori della perforazione */
  content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--ink); border: 1px solid rgba(130,160,255,.25);
}
.ticket-cut::before { left: -12px; clip-path: inset(0 0 0 50%); }
.ticket-cut::after { right: -12px; clip-path: inset(0 50% 0 0); }
.ticket-title { font-family: var(--f-display); font-variation-settings: "wdth" 110; font-weight: 800; font-size: 22px; text-transform: uppercase; }
.ticket-meta { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 15px; }
.ticket-meta dt { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; padding-top: 3px; }
.ticket-meta dd { margin: 0; }
.ticket .btn { width: 100%; }
.ticket-empty { color: var(--muted); }

/* Led wall circolare (sostituisce il nastro scorrevole). Costruito da main.js → buildLedwall */
.ledwall { --h: 100px; --fs: 1; --dur: 40s; position: relative; max-width: 1200px; margin: clamp(56px, 8vw, 112px) auto 0; }
.ledwall-scene { position: relative; height: calc(var(--h) * 2.2); overflow: hidden; perspective: var(--persp, 2000px); perspective-origin: 50% 50%; display: grid; place-items: center; }
.ledwall-tilt { position: relative; width: 0; height: var(--h); transform-style: preserve-3d; transform: translateZ(calc(var(--r, 500px) * -1)) rotateX(7deg); }
.led-face {
  position: absolute; top: 0; height: var(--h); overflow: hidden; backface-visibility: hidden;
  background:
    radial-gradient(circle, rgba(90,120,210,.08) 0 1.05px, transparent 1.35px) 0 0 / 3px 3px,  /* led spenti */
    linear-gradient(180deg, #0B1230 0%, #060A1C 50%, #0B1230 100%);
  box-shadow: inset 1px 0 0 rgba(0,0,0,.65), inset 0 2px 0 #1E2850, inset 0 -2px 0 #1E2850;
}
/* Griglia di led: il testo si vede solo attraverso i "puntini" (maschera ferma sul pannello,
   il testo scorre sotto). Niente livelli sovrapposti: così la griglia copre sempre tutto il pannello. */
.led-mask {
  position: absolute; inset: 0;
  -webkit-mask-image: radial-gradient(circle, #000 0 1.05px, transparent 1.35px); -webkit-mask-size: 3px 3px;
  mask-image: radial-gradient(circle, #000 0 1.05px, transparent 1.35px); mask-size: 3px 3px;
}
.led-move { position: absolute; inset: 0; animation: led-scroll var(--dur) linear infinite; }
.led-strip { position: absolute; top: 0; left: 0; height: 100%; display: flex; }
.led-half { flex: none; height: 100%; display: flex; align-items: center; justify-content: space-around; white-space: nowrap; }
.led-half span {
  font-family: var(--f-display); font-variation-settings: "wdth" 125; font-weight: 900; text-transform: uppercase;
  font-size: calc(var(--h) * .44 * var(--fs)); letter-spacing: .06em; padding-inline: calc(var(--h) * .22 * var(--fs));
  color: #EEF3FF; text-shadow: 0 0 6px rgba(61,123,255,.9), 0 0 18px rgba(0,82,228,.75);
}
.led-half i { font-style: normal; font-size: calc(var(--h) * .34 * var(--fs)); color: #7DF7EE; text-shadow: 0 0 8px #42F0E2; }
@keyframes led-scroll { to { transform: translateX(calc(var(--circ, 3000px) * -1)); } }
.led-under {  /* parte sotto dell'anello, con le luci */
  position: absolute; border-radius: 50%;
  background-image: radial-gradient(circle, rgba(170,195,255,.75) 0 1.4px, rgba(90,130,255,.18) 2.4px, transparent 3.6px), radial-gradient(closest-side, #060a1a 55%, #0d1430 100%);
  background-size: 30px 30px, 100% 100%; box-shadow: 0 0 60px rgba(0,82,228,.25);
}
.led-cable { position: absolute; width: 1px; background: linear-gradient(to top, rgba(160,180,230,.45), rgba(160,180,230,0)); }
.ledwall.is-paused .led-move { animation-play-state: paused; }

/* ---------- Sezioni ---------- */
.section { padding-block: clamp(72px, 10vw, 128px); }
.section-alt { background: var(--night); border-block: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px 40px; margin-bottom: clamp(32px, 5vw, 56px); }

/* Mission */
.mission-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 24px; }
.mission-grid > div:first-child { grid-column: 1 / span 7; }
.mission-body { grid-column: 8 / -1; display: grid; gap: 16px; color: #C9D2EE; align-self: end; }
.pillars { grid-column: 1 / -1; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); margin-top: 16px; }
.pillars li { padding: 28px 28px 0 0; min-width: 0; }
.pillars li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.pillars h3 { font-family: var(--f-display); font-variation-settings: "wdth" 120; font-weight: 800; text-transform: uppercase; font-size: 20px; margin-bottom: 10px; color: var(--brand-hi); }
.pillars p { color: var(--muted); font-size: 16px; }

/* Eventi */
/* slider orizzontale: card centrate se ci stanno tutte, altrimenti scorrono (swipe, frecce, pallini) */
.hslider { position: relative; }
.events {
  display: flex; gap: 20px; justify-content: center;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
  padding: 4px 2px 6px; margin: -4px -2px 0; outline-offset: 4px;
}
.events::-webkit-scrollbar { display: none; }
.hslider.is-scrollable .events { justify-content: flex-start; }
.event { display: flex; flex-direction: column; min-width: 0; flex: 0 0 calc((100% - 60px) / 4); scroll-snap-align: start; }
.slider-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 24px; }
.slider-nav .deck-btn:disabled { opacity: .35; cursor: default; border-color: var(--line); background: transparent; }
.event-cover {
  position: relative; aspect-ratio: 4 / 5; max-width: 100%; border-radius: var(--radius); overflow: hidden;
  background: var(--panel); border: 1px solid var(--line);
}
.event-cover img { width: 100%; height: 100%; object-fit: cover; }
.event-cover .gen { position: absolute; inset: 0; }
.event-cover .vol {
  position: absolute; left: 16px; bottom: 12px;
  font-family: var(--f-display); font-variation-settings: "wdth" 125; font-weight: 900;
  font-size: clamp(40px, 4.2vw, 56px); line-height: .9; color: #fff; mix-blend-mode: normal;
  text-shadow: 0 4px 30px rgba(0,0,0,.35);
}
.event-cover .vol small { display: block; font-family: var(--f-mono); font-weight: 400; font-size: 11px; letter-spacing: .16em; margin-bottom: 6px; opacity: .8; }
.event-cover .mini-s { position: absolute; top: 14px; right: 14px; width: 40px; height: 28px; color: rgba(255,255,255,.9); }
.event-body { padding: 16px 2px 0; display: grid; gap: 6px; }
.event-date { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; color: var(--muted); font-variant-numeric: tabular-nums; }
.event-title { font-family: var(--f-display); font-variation-settings: "wdth" 110; font-weight: 800; font-size: 20px; text-transform: uppercase; line-height: 1.1; }
.event-place { color: #C9D2EE; font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; list-style: none; }
.chips li { font-size: 12px; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.event-link { margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--brand-hi); text-decoration: none; }
.event-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Foto / gallerie */
.foto-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px 64px; align-items: start; }
.foto-grid .section-note { margin-top: 18px; }
/* slider verticale: 4 gallerie visibili, le altre si scorrono */
.vslider { position: relative; min-width: 0; border-top: 1px solid var(--line); --ft: 0px; --fb: 0px; }
.galleries {
  list-style: none; overflow-y: auto; scroll-snap-type: y proximity; scroll-behavior: smooth;
  scrollbar-width: thin; scrollbar-color: rgba(61,123,255,.55) transparent; outline-offset: 4px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 var(--ft), #000 calc(100% - var(--fb)), transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 var(--ft), #000 calc(100% - var(--fb)), transparent 100%);
}
.galleries::-webkit-scrollbar { width: 4px; }
.galleries::-webkit-scrollbar-thumb { background: rgba(61,123,255,.55); border-radius: 4px; }
.vslider.is-scrollable:not(.at-start) { --ft: 28px; }
.vslider.is-scrollable:not(.at-end) { --fb: 44px; }
.gallery-row { scroll-snap-align: start; }
.slider-nav-y { justify-content: flex-end; margin-top: 16px; }
.gallery-row {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 16px; align-items: center;
  padding: 18px 4px; border-bottom: 1px solid var(--line);
}
.gallery-num { font-family: var(--f-mono); color: var(--brand-hi); font-size: 14px; font-variant-numeric: tabular-nums; }
.gallery-name { font-family: var(--f-display); font-variation-settings: "wdth" 110; font-weight: 700; text-transform: uppercase; font-size: 17px; line-height: 1.2; }
.gallery-name span { display: block; font-family: var(--f-mono); font-weight: 400; font-size: 12px; letter-spacing: .08em; color: var(--muted); margin-top: 4px; text-transform: none; }
.gallery-btn { --stub: 38px; min-height: 42px; padding: 0 16px 0 calc(var(--stub) + 14px); font-size: 11px; letter-spacing: .12em; }
.pill-soon { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border: 1px dashed var(--line); padding: 8px 12px; border-radius: 999px; white-space: nowrap; }

/* Merch */
.merch { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.merch-item { min-width: 0; }
.merch-visual {
  aspect-ratio: 1; max-width: 100%; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden;
  background: radial-gradient(80% 70% at 50% 35%, #16265A, var(--panel) 70%);
  display: grid; place-items: center; transition: border-color .25s;
}
.merch-item:hover .merch-visual { border-color: rgba(61,123,255,.5); }
.merch-visual img { width: 100%; height: 100%; object-fit: cover; }
.merch-visual svg { width: 72%; height: 72%; transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.merch-item:hover .merch-visual svg { transform: translateY(-4px) scale(1.03); }
.merch-name { margin-top: 14px; font-family: var(--f-display); font-variation-settings: "wdth" 110; font-weight: 800; text-transform: uppercase; font-size: 17px; }
.merch-detail { color: var(--muted); font-size: 14px; }

/* Ruota */
#community { overflow-x: clip; }
.wheel-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px 72px; align-items: center; }
.wheel-copy > p { color: #C9D2EE; margin-top: 18px; max-width: 46ch; }
.rules { list-style: none; margin-top: 28px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.rules li { padding: 14px 0 14px 28px; border-bottom: 1px solid var(--line); position: relative; font-size: 15px; color: var(--muted); }
.rules li::before { content: "✦"; position: absolute; left: 2px; color: var(--brand-hi); }
.rules strong { color: var(--text); font-weight: 600; }
.wheel-box { display: grid; justify-items: center; gap: 24px; min-width: 0; }
.wheel-stage { position: relative; width: min(100%, 460px); aspect-ratio: 1; isolation: isolate; margin-top: 14px; }
/* raggi di luce dietro la stella (girano piano) */
.wheel-stage::before {
  content: ""; position: absolute; inset: -16%; z-index: -1; border-radius: 50%; pointer-events: none;
  background:
    radial-gradient(circle, rgba(0,82,228,.42) 0 30%, rgba(0,82,228,0) 62%),
    repeating-conic-gradient(from 0deg, rgba(120,160,255,.16) 0deg 3deg, rgba(120,160,255,0) 3deg 15deg);
  -webkit-mask-image: radial-gradient(circle, #000 34%, transparent 70%);
          mask-image: radial-gradient(circle, #000 34%, transparent 70%);
  animation: wheel-rays 90s linear infinite; transition: opacity .6s; opacity: .8;
}
.wheel-stage.is-spinning::before { opacity: 1; }
@keyframes wheel-rays { to { transform: rotate(360deg); } }
.wheel-stage canvas { width: 100%; height: 100%; display: block; will-change: transform; }
/* puntatore: una stella a quattro punte con la punta lunga verso la ruota */
.wheel-pointer {
  position: absolute; top: -30px; left: 50%; width: 44px; height: 64px; margin-left: -22px; z-index: 2;
  transform-origin: 50% 36%;
  filter: drop-shadow(0 0 10px rgba(61,123,255,.95)) drop-shadow(0 6px 10px rgba(0,0,0,.6));
}
.wheel-pointer::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, #FFFFFF 30%, #BFD1FF 100%);
  clip-path: polygon(50% 0, 61% 25%, 100% 36%, 61% 47%, 50% 100%, 39% 47%, 0 36%, 39% 25%);
}
.wheel-hub {
  position: absolute; inset: 50% auto auto 50%; translate: -50% -50%; z-index: 1;
  width: 22%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #12204A, #04060D 70%);
  box-shadow: 0 0 0 2px rgba(140,175,255,.55), 0 0 24px rgba(61,123,255,.55), inset 0 0 18px rgba(61,123,255,.35);
  display: grid; place-items: center;
}
.wheel-hub svg { width: 62%; height: 62%; color: #DCE6FF; filter: drop-shadow(0 0 6px rgba(61,123,255,.9)); }
/* stelle che esplodono quando si vince */
.wheel-burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; z-index: 3; pointer-events: none; }
.wheel-burst i {
  position: absolute; left: -10px; top: -14px; font-style: normal; font-size: 22px; line-height: 1; color: #fff;
  text-shadow: 0 0 10px #3D7BFF, 0 0 22px #3D7BFF; opacity: 0;
  animation: wheel-burst 1.3s cubic-bezier(.15,.7,.3,1) var(--d) forwards;
}
@keyframes wheel-burst {
  0% { opacity: 0; transform: translate(0, 0) scale(.2) rotate(0deg); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(var(--s)) rotate(160deg); }
}
@media (prefers-reduced-motion: reduce) { .wheel-stage::before { animation: none; } }
.btn-spin { min-width: 220px; }
.wheel-result {
  position: relative; width: min(100%, 440px); text-align: center; padding: 20px 22px; border-radius: var(--radius);
  border: 1px solid rgba(130,160,255,.3); background: var(--panel); overflow: hidden;
}
.wheel-result.is-win { border-color: rgba(140,175,255,.7); background: linear-gradient(160deg, #15255A, #0B1330 70%); box-shadow: 0 0 0 1px rgba(61,123,255,.3), 0 20px 60px -20px rgba(0,82,228,.9); }
.wheel-result.is-retry { border-color: rgba(61,123,255,.55); border-style: dashed; }
.wheel-result .res-icon { font-size: 30px; line-height: 1; color: #fff; text-shadow: 0 0 14px #3D7BFF; margin-bottom: 6px; }
.wheel-result.is-retry .res-icon { color: var(--brand-hi); text-shadow: none; }
.wheel-result .res-kicker { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-hi); }
.wheel-result .res-label { font-family: var(--f-display); font-variation-settings: "wdth" 120; font-weight: 900; font-size: 26px; text-transform: uppercase; }
.wheel-result .res-code { display: inline-block; margin: 10px 0 6px; font-family: var(--f-mono); font-size: 18px; letter-spacing: .12em; padding: 6px 14px; border-radius: 8px; background: var(--brand); color: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.25) inset, 0 0 24px rgba(0,82,228,.6); }
.wheel-result p { color: var(--muted); font-size: 14px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 64px 28px; background: var(--ink); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.footer-mark { width: 120px; height: 82px; color: var(--brand); margin-bottom: 18px; }
.footer-brand p { color: var(--muted); }
.footer-links { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.footer-links a { text-decoration: none; color: var(--text); }
.footer-links a:hover { color: var(--brand-hi); }
.footer-mail { color: var(--muted); user-select: all; }
.footer-bottom { position: relative; display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 20px; font-family: var(--f-mono); font-size: 12px; color: var(--muted); letter-spacing: .06em; }
.footer-bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid var(--line); }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .merch { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .event { flex-basis: calc((100% - 20px) / 2); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .ticket { max-width: 480px; }
  .foto-grid, .wheel-grid { grid-template-columns: minmax(0, 1fr); }
  .mission-grid > div:first-child, .mission-body { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); color: var(--text); }
  .site-nav .nav-ig { border: 0; border-radius: 0; padding: 14px 0; color: var(--brand-hi); }
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .pillars li, .pillars li + li { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .event { flex-basis: 80%; }
  .events { gap: 14px; }
  .event-cover { aspect-ratio: 16 / 11; }
  .merch { gap: 14px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .gallery-row { grid-template-columns: 36px minmax(0, 1fr); }
  .gallery-row > :last-child { grid-column: 2; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-beams::before, .hero-beams::after, .led-move { animation: none; }
}

/* Avviso se i contenuti non si caricano */
.load-error { position: relative; z-index: 60; background: #3A1020; color: #FFD9E2; border-bottom: 1px solid rgba(255,120,150,.4); padding: 12px var(--gutter); font-size: 14px; text-align: center; }

/* ---------- Biglietto: extra per la modalità Gomry ---------- */
.ticket-cover { margin: -26px -26px 0; aspect-ratio: 16 / 9; max-width: none; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; background: var(--panel); }
.ticket-cover img { width: 100%; height: 100%; object-fit: cover; }
/* ---------- Foto / locandina nel biglietto ----------
   - .ticket-glow: la foto, molto sfocata, colora la parte alta del biglietto e sfuma verso il basso
     (con la griglia di puntini del led wall sopra), così la locandina "appartiene" al biglietto
   - locandina (verticale o quadrata): intera, appoggiata in cima al biglietto con ombra e bordo sottile
   - foto orizzontale (.is-wide, es. copertine Gomry): a tutta larghezza, sfuma nel biglietto
   Nessun clic: la foto si guarda e basta. */
.ticket-glow {
  position: absolute; inset: 0; z-index: 0; border-radius: inherit; overflow: hidden; pointer-events: none;
}
.ticket-glow::before {
  content: ""; position: absolute; left: -40px; right: -40px; top: -40px; height: 82%;
  background: var(--img) center 30% / cover no-repeat;
  filter: blur(34px) saturate(1.5) brightness(.62);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 100%);
}
.ticket-glow::after {  /* puntini come sul led wall + velo blu per restare nei colori del sito */
  content: ""; position: absolute; inset: 0 0 25% 0;
  background:
    radial-gradient(circle at center, rgba(4,6,13,.55) 0 1px, transparent 1.6px) 0 0 / 4px 4px,
    linear-gradient(180deg, rgba(0,82,228,.18), rgba(10,16,34,0) 70%);
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
}
.ticket-glow ~ :not(.ticket-tab) { position: relative; z-index: 1; }

.ticket-cover.has-img {
  display: flex; align-items: flex-end; justify-content: center;
  aspect-ratio: 5 / 4; padding: 26px 26px 0; background: transparent; overflow: visible;
}
.ticket-cover.has-img img {
  width: auto; height: 100%; max-width: 100%; object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 24px 50px -16px rgba(0,0,0,.85), 0 0 60px -20px rgba(61,123,255,.55);
  opacity: 0; transform: translateY(8px);
  transition: opacity .6s ease, transform .8s cubic-bezier(.2,.8,.2,1);
  pointer-events: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.ticket-cover.has-img.is-ready img { opacity: 1; transform: none; }
/* orizzontale: a tutta larghezza, sfuma in basso nel biglietto */
.ticket-cover.has-img.is-wide { aspect-ratio: 16 / 10; padding: 0; overflow: hidden; }
.ticket-cover.has-img.is-wide img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 0; box-shadow: none; transform: none;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}
.ticket-cover.has-img.is-broken { display: none; }
@media (prefers-reduced-motion: reduce) { .ticket-cover.has-img img { transition: none; transform: none; } }
.ticket-state {
  justify-self: start; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); margin-bottom: -6px;
}
.ticket-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ticket-state.is-ok { color: #6FE3A5; border-color: rgba(111,227,165,.35); }
.ticket-state.is-ok::before { box-shadow: 0 0 0 0 rgba(111,227,165,.6); animation: pulse 2s infinite; }
.ticket-state.is-soon { color: var(--brand-hi); border-color: rgba(61,123,255,.4); }
.ticket-state.is-out { color: #FF8FA3; border-color: rgba(255,143,163,.35); }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(111,227,165,0); } 100% { box-shadow: 0 0 0 0 rgba(111,227,165,0); } }
.ticket-spots { display: grid; gap: 8px; }
.spots-row { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.spots-row strong { font-family: var(--f-display); font-variation-settings: "wdth" 120; font-size: 20px; color: var(--text); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.spots-bar { height: 6px; border-radius: 999px; background: rgba(130,160,255,.14); overflow: hidden; }
.spots-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--brand-hi)); transition: width .8s cubic-bezier(.2,.8,.2,1); }
.ticket-spots.is-few .spots-row span { color: #FFB86B; }
.ticket-spots.is-few .spots-bar i { background: linear-gradient(90deg, #FF8A3D, #FFB86B); }
.ticket-source { margin-top: -6px; text-align: center; font-size: 12px; color: var(--muted); }
.ticket.is-loading > * { opacity: .55; transition: opacity .3s; }
@media (prefers-reduced-motion: reduce) { .ticket-state.is-ok::before { animation: none; } }

/* =====================================================================
   Account, login, staff
   ===================================================================== */
/* Pulsante Accedi / @username nella barra */
.site-nav .nav-account {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand); color: #fff; padding: 8px 16px; border-radius: 999px; font-weight: 600;
  transition: background .2s;
}
.site-nav .nav-account:hover { background: var(--brand-hi); color: #fff; }
.site-nav .nav-account.is-in { background: transparent; color: var(--text); border: 1px solid rgba(61,123,255,.5); padding: 7px 16px; }
.site-nav .nav-account.is-in.has-avatar { padding: 4px 14px 4px 4px; }
.site-nav .nav-account.is-in:hover { border-color: var(--brand-hi); }
.nav-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--panel); }
@media (min-width: 821px) and (max-width: 1060px) { .site-nav { gap: 18px; } }
@media (max-width: 820px) {
  /* pulsante account nel menu mobile: bordo completo (non la riga di separazione delle voci) */
  .site-nav .nav-account, .site-nav .nav-account.is-in {
    margin: 16px 0 6px; justify-content: center; padding: 12px 16px; border: 1px solid transparent; border-radius: 999px;
    flex: none;
  }
  .site-nav .nav-account.is-in, .site-nav .nav-account.is-in.has-avatar { padding: 8px 16px; border-color: rgba(61,123,255,.5); }
}

/* Ruota: messaggio sotto il pulsante */
.wheel-note { max-width: 440px; text-align: center; color: var(--muted); font-size: 14px; margin-top: -10px; }
.wheel-note a, .wheel-result a { color: var(--brand-hi); }

.footer-bottom-links { display: inline-flex; gap: 20px; }

/* Pagine interne (account, staff, privacy) */
.site-footer.is-slim { padding-block: 0 28px; }
.site-footer.is-slim .footer-bottom { margin-top: 0; }
.site-footer.is-slim .footer-bottom::before { display: none; }
.page { padding-block: clamp(36px, 7vw, 80px) clamp(56px, 9vw, 110px); }
.page-narrow { max-width: 760px; }
.page-head { margin-bottom: 28px; display: grid; gap: 10px; }
.page-head p { color: var(--muted); max-width: 56ch; }
.card {
  background: var(--night); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(20px, 4vw, 32px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; min-width: 0;
}
.card + .card { margin-top: 20px; }
.card-title {
  font-family: var(--f-display); font-variation-settings: "wdth" 115; font-weight: 800;
  font-size: 20px; text-transform: uppercase; letter-spacing: .01em;
}
.card-sub { color: var(--muted); font-size: 15px; margin-top: -10px; }
.perks { display: grid; gap: 10px; list-style: none; }
.perks li { position: relative; padding-left: 26px; color: var(--muted); }
.perks li::before { content: "✦"; position: absolute; left: 2px; color: var(--brand-hi); }
.perks strong { color: var(--text); font-weight: 600; }

.who { display: flex; align-items: center; gap: 16px; min-width: 0; }
.who img, .who .who-ph { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; background: var(--panel); border: 1px solid var(--line); }
.who .who-ph { display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 22px; color: var(--brand-hi); }
.who-name { font-family: var(--f-display); font-variation-settings: "wdth" 115; font-weight: 800; font-size: 22px; line-height: 1.1; overflow-wrap: anywhere; }
.who-meta { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }

/* Moduli */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field label, .field .label { font-size: 14px; font-weight: 600; }
.field .opt { color: var(--muted); font-weight: 400; }
.input {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 10px;
  background: var(--ink); color: var(--text); border: 1px solid rgba(130,160,255,.25);
  font: inherit; font-size: 16px; transition: border-color .2s, box-shadow .2s;
}
.input:focus { outline: none; border-color: var(--brand-hi); box-shadow: 0 0 0 3px rgba(61,123,255,.25); }
.input[readonly] { color: var(--muted); background: transparent; }
.input-pre { position: relative; }
.input-pre > span { position: absolute; left: 14px; top: 50%; translate: 0 -50%; color: var(--muted); pointer-events: none; }
.input-pre .input { padding-left: 32px; }
input[type="date"].input { color-scheme: dark; }
/* iPhone/Safari: il campo data ha una larghezza minima propria e usciva dalla card */
input[type="date"].input {
  -webkit-appearance: none; appearance: none;
  display: block; min-width: 0; max-width: 100%; text-align: left;
}
input[type="date"].input::-webkit-date-and-time-value { text-align: left; margin: 0; }
input[type="date"].input::-webkit-datetime-edit { padding: 0; }
.hint { font-size: 13px; color: var(--muted); }
.hint.is-ok { color: #6FE3A5; }
.hint.is-bad, .field-err { color: #FF8FA3; font-size: 13px; }
.field.has-err .input { border-color: rgba(255,143,163,.7); }
.check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 15px; color: var(--muted); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand); }
.check a { color: var(--brand-hi); }
.check strong { color: var(--text); font-weight: 600; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

.notice { padding: 14px 16px; border-radius: 10px; font-size: 15px; border: 1px solid var(--line); background: var(--panel); }
.notice.is-ok { border-color: rgba(111,227,165,.4); color: #BFF5D8; }
.notice.is-bad { border-color: rgba(255,143,163,.45); color: #FFD9E2; background: #2A0E1A; }

/* Premi nel profilo */
.prizes { display: grid; gap: 10px; list-style: none; }
.prize { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--ink); }
.prize-name { font-weight: 600; }
.prize-meta { color: var(--muted); font-size: 13px; }
.prize-code { font-family: var(--f-mono); letter-spacing: .1em; padding: 5px 10px; border-radius: 8px; background: var(--brand); color: #fff; font-size: 15px; }
.prize.is-used .prize-code { background: var(--panel); color: var(--muted); text-decoration: line-through; }
.tag { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.btn-danger { border-color: rgba(255,143,163,.4); color: #FF8FA3; background: transparent; }
.btn-danger:hover { border-color: #FF8FA3; background: rgba(255,143,163,.08); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 11px; letter-spacing: .12em; }
.btn-sm::before, .btn-danger::before { display: none; }
.btn-danger { padding-left: 18px; }
.danger-zone { border-color: rgba(255,143,163,.25); }

/* Staff */
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.stat { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--ink); min-width: 0; }
.stat b { display: block; font-family: var(--f-display); font-variation-settings: "wdth" 120; font-weight: 900; font-size: 30px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: var(--muted); font-family: var(--f-mono); letter-spacing: .06em; text-transform: uppercase; }
.code-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
.code-form .input { font-family: var(--f-mono); letter-spacing: .12em; text-transform: uppercase; font-size: 18px; }
.verdict { border-radius: 12px; padding: 18px; display: grid; gap: 10px; border: 1px solid var(--line); background: var(--ink); }
.verdict-head { font-family: var(--f-display); font-variation-settings: "wdth" 120; font-weight: 900; font-size: 26px; text-transform: uppercase; }
.verdict.is-ok { border-color: rgba(111,227,165,.5); } .verdict.is-ok .verdict-head { color: #6FE3A5; }
.verdict.is-used { border-color: rgba(255,184,107,.5); } .verdict.is-used .verdict-head { color: #FFB86B; }
.verdict.is-bad { border-color: rgba(255,143,163,.5); } .verdict.is-bad .verdict-head { color: #FF8FA3; }
.verdict dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; margin: 0; font-size: 15px; }
.verdict dt { color: var(--muted); }
.verdict dd { margin: 0; overflow-wrap: anywhere; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.toolbar .input { flex: 1 1 220px; width: auto; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; background: var(--ink); }
.table tr:last-child td { border-bottom: 0; }
.table td.muted { color: var(--muted); }

/* Privacy */
.prose { display: grid; gap: 14px; color: var(--muted); }
.prose h2 { color: var(--text); font-family: var(--f-display); font-variation-settings: "wdth" 112; font-size: 20px; text-transform: uppercase; margin-top: 18px; }
.prose ul { padding-left: 20px; display: grid; gap: 6px; }
.prose strong { color: var(--text); }
.prose a { color: var(--brand-hi); }

@media (max-width: 820px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat b { font-size: 24px; }
  .stat span { font-size: 10px; }
}
@media (max-width: 520px) {
  .row-2, .code-form { grid-template-columns: minmax(0, 1fr); }
  .form-actions .btn { flex: 1 1 100%; }
}
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--brand-hi); text-decoration: underline; cursor: pointer; }

/* =====================================================================
   Area admin (/admin/)
   ===================================================================== */
.site-nav .nav-admin { color: var(--brand-hi); font-weight: 600; }
.site-nav .nav-admin::before { content: "✦ "; }
.site-nav .nav-admin[aria-current="page"] { color: var(--text); }
.h3 { font-family: var(--f-display); font-variation-settings: "wdth" 115; font-weight: 800; font-size: clamp(22px, 3vw, 28px); text-transform: uppercase; line-height: 1.1; }

.tabs { display: flex; gap: 6px; padding: 5px; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 999px; background: var(--night); width: fit-content; max-width: 100%; overflow-x: auto; }
.tab { appearance: none; border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 600; font-size: 15px; padding: 9px 20px; border-radius: 999px; cursor: pointer; white-space: nowrap; min-height: 42px; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--brand); color: #fff; }

.sez-list { display: grid; gap: 10px; }
.sez { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--ink); text-decoration: none; transition: border-color .2s; }
.sez:hover { border-color: var(--brand-hi); }
.sez-name { font-weight: 600; font-size: 17px; }
.sez-desc { grid-column: 1; color: var(--muted); font-size: 14px; }
.sez-go { grid-row: 1 / span 2; grid-column: 2; color: var(--brand-hi); font-size: 20px; }

.editor-head { display: grid; gap: 8px; margin-bottom: 16px; }
.back-link { color: var(--brand-hi); text-decoration: none; font-size: 14px; width: fit-content; }
.back-link:hover { text-decoration: underline; }
.input-short { max-width: 200px; }
select.input { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.fieldset legend { padding: 0; margin-bottom: 6px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 6px; }
.seg-opt { position: relative; display: inline-flex; align-items: center; padding: 10px 16px; border: 1px solid rgba(130,160,255,.25); border-radius: 999px; cursor: pointer; font-size: 15px; color: var(--muted); }
.seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.seg-opt:has(input:checked) { border-color: var(--brand-hi); color: var(--text); background: rgba(0,82,228,.2); }
.seg-opt:has(input:focus-visible) { outline: 2px solid var(--brand-hi); outline-offset: 2px; }
.scelta-body { display: grid; gap: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--ink); }

.list-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.items { display: grid; gap: 10px; }
.item { border: 1px solid var(--line); border-radius: 12px; background: var(--ink); }
.item[open] { border-color: rgba(61,123,255,.45); }
.item > summary { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; list-style: none; font-weight: 600; min-height: 52px; }
.item > summary::-webkit-details-marker { display: none; }
.item > summary::after { content: "▾"; margin-left: auto; color: var(--muted); transition: transform .2s; }
.item[open] > summary::after { transform: rotate(180deg); }
.item-num { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-mono); font-size: 12px; background: var(--panel); color: var(--brand-hi); }
.item-sum { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-body { padding: 4px 16px 16px; }
.item-tools { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; border-top: 1px solid var(--line); padding-top: 14px; }
.testi { display: grid; gap: 8px; justify-items: start; }
.testi-row { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 8px; width: 100%; }
.icon-btn { min-height: 48px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; font-size: 16px; }
.icon-btn:hover { color: #FF8FA3; border-color: rgba(255,143,163,.5); }
.img-field { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; align-items: center; }
.img-prev { aspect-ratio: 4 / 3; border-radius: 10px; border: 1px solid var(--line); background: var(--night); overflow: hidden; display: grid; place-items: center; }
.img-prev img { width: 100%; height: 100%; object-fit: cover; }
.img-empty { font-size: 12px; color: var(--muted); text-align: center; padding: 8px; }
.img-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.img-actions .hint { flex-basis: 100%; }
.btn.is-busy { opacity: .5; pointer-events: none; }

.save-bar { position: sticky; bottom: 0; z-index: 20; margin-top: 20px; background: rgba(4,6,13,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
.save-row { display: flex; align-items: center; justify-content: flex-end; gap: 16px; padding-block: 12px; padding-inline: 0; }
.save-row .hint { margin-right: auto; }

@media (max-width: 820px) {
  .site-nav .nav-admin { color: var(--brand-hi); }
}
@media (max-width: 520px) {
  .tabs { width: 100%; }
  .tab { flex: 1; padding: 9px 10px; }
  .img-field { grid-template-columns: 110px minmax(0, 1fr); }
  .save-row { flex-wrap: wrap; }
  .save-row .btn { flex: 1 1 100%; }
  .item-tools .btn { flex: 1 1 auto; }
}
.img-actions label.btn { font-size: 12px; font-weight: 700; }

/* Logo header e insegna neon su schermi piccoli */
@media (max-width: 520px) {
  .brand-logo { height: 26px; }
  .neon-logo { stroke-width: 1px; }
}
@media (prefers-reduced-motion: reduce) { .neon-logo { animation: none; } }

/* ---------- Prossimi eventi: mazzo di biglietti ----------
   I biglietti stanno nella stessa cella della griglia (altezza = il più alto).
   data-d = profondità: 0 davanti, 1 e 2 dietro (spuntano in alto a destra), 3 nascosti. */
.deck { position: relative; min-width: 0; outline: none; }
.deck.is-multi { padding-top: 64px; }
.deck-stack { display: grid; touch-action: pan-y; }
.deck-stack > .ticket { grid-area: 1 / 1; }
.deck.is-multi .ticket { display: flex; flex-direction: column; gap: 18px; }
.deck.is-multi .ticket .ticket-state { align-self: flex-start; }
.deck.is-multi .ticket .btn { margin-top: auto; }
.ticket-cover.is-gen { position: relative; display: flex; align-items: flex-end; padding: 0 22px 14px; }
.ticket-cover.is-gen span {
  font-family: var(--f-display); font-variation-settings: "wdth" 125; font-weight: 900; font-size: 44px; line-height: .9;
  color: #fff; text-shadow: 0 4px 30px rgba(0,0,0,.35);
}
.deck.is-multi .ticket {
  background: linear-gradient(160deg, #15255A, #0B1330 70%);  /* pieno: niente trasparenze tra un biglietto e l'altro */
  transform-origin: 50% 0;
  transition: transform .55s cubic-bezier(.2, .8, .2, 1), opacity .45s, filter .45s, box-shadow .45s;
  user-select: none; -webkit-user-select: none;
}
.deck.is-multi .ticket[data-d="0"] { cursor: grab; }
.deck.is-multi .ticket.is-dragging { transition: none; cursor: grabbing; }
.deck.is-multi .ticket[data-d="1"] { transform: translate(16px, -32px) rotate(2.5deg) scale(.95); cursor: pointer; }
.deck.is-multi .ticket[data-d="2"] { transform: translate(30px, -60px) rotate(5deg) scale(.9); cursor: pointer; }
.deck.is-multi .ticket[data-d="3"] { transform: translate(30px, -60px) rotate(5deg) scale(.9); opacity: 0; pointer-events: none; }
/* velo scuro sui biglietti dietro (sotto l'etichetta con la data, che resta luminosa) */
.deck.is-multi .ticket::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  background: #04060D; opacity: 0; transition: opacity .45s;
}
.deck.is-multi .ticket[data-d="1"]::after { opacity: .42; }
.deck.is-multi .ticket[data-d="2"]::after { opacity: .62; }
.deck.is-multi .ticket[data-d="1"]:hover::after { opacity: .25; }
.deck.is-multi .ticket.is-out-left { transform: translate(-115%, 30px) rotate(-16deg) !important; opacity: 0; }
.deck.is-multi .ticket.is-out-right { transform: translate(115%, 30px) rotate(16deg) !important; opacity: 0; }
.deck .ticket.no-anim { transition: none !important; }
/* etichetta che si legge sui biglietti dietro */
.ticket-tab {  /* data e volume, si leggono sull'angolo dei biglietti dietro */
  position: absolute; top: 4px; right: 14px; z-index: 3;
  display: inline-flex; align-items: baseline; gap: 8px; padding: 3px 10px 4px; border-radius: 0 0 8px 8px;
  background: rgba(61,123,255,.16); border: 1px solid rgba(61,123,255,.35); border-top: 0;
  opacity: 0; transition: opacity .3s;
}
.ticket-tab b { font-family: var(--f-display); font-variation-settings: "wdth" 120; font-weight: 900; font-size: 17px; line-height: 1; color: #fff; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.ticket-tab small { font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-hi); }
.deck.is-multi .ticket:not([data-d="0"]) .ticket-tab { opacity: 1; }
/* comandi */
.deck-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; }
.deck-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.03);
  color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding-bottom: 3px;
  transition: border-color .2s, background .2s, transform .2s;
}
.deck-btn:hover { border-color: var(--brand-hi); background: rgba(61,123,255,.12); }
.deck-btn:active { transform: scale(.94); }
.deck-dots { display: flex; gap: 8px; }
.deck-dot { width: 8px; height: 8px; padding: 0; border-radius: 999px; border: 0; background: rgba(130,160,255,.3); cursor: pointer; transition: width .3s, background .3s; }
.deck-dot[aria-current="true"] { width: 26px; background: var(--brand-hi); box-shadow: 0 0 10px rgba(61,123,255,.7); }
.deck-count { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; color: var(--muted); min-width: 44px; text-align: center; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .deck.is-multi .ticket { transition: none; } }
@media (max-width: 1000px) { .deck { max-width: 480px; } }
@media (max-width: 520px) {
  .deck.is-multi { padding-top: 58px; }
  .deck.is-multi .ticket[data-d="1"] { transform: translate(8px, -30px) rotate(1.8deg) scale(.95); }
  .deck.is-multi .ticket[data-d="2"],
  .deck.is-multi .ticket[data-d="3"] { transform: translate(14px, -55px) rotate(3.4deg) scale(.9); }
}

.deck.is-multi .ticket-cover:not(.has-img) { aspect-ratio: 16 / 10; }
/* nel mazzo i biglietti hanno tutti l'altezza del più alto: lo spazio in più va alla copertina, non sopra il pulsante */
.deck.is-multi .ticket-cover { flex: 1 0 auto; }
.deck.is-multi .ticket-cover:not(.is-broken) ~ .btn { margin-top: 0; }

/* ---------- Admin: riepilogo e contatori della ruota ---------- */
.extra .ruota-calc { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(61,123,255,.05); color: var(--text); font-size: 14px; }
.extra .ruota-calc p { margin: 0; }
.extra .ruota-calc .is-bad { color: #FF8FA3; }
.calc { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.calc th { text-align: left; font-family: var(--f-mono); font-weight: 400; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line); }
.calc td { padding: 7px 8px; border-bottom: 1px solid rgba(130,160,255,.1); vertical-align: top; }
.calc td:first-child { font-weight: 600; }
.ruota-stats { margin-top: 16px; overflow-x: auto; }
@media (max-width: 560px) { .calc { font-size: 12px; } .calc th, .calc td { padding: 6px 5px; } }
