@import url('https://fonts.googleapis.com/css2?family=Anton&family=Archivo+Black&family=Inter:wght@400;500;600&family=Luckiest+Guy&family=Bowlby+One&family=Oswald:wght@500;700&display=swap');

:root {
  --bg: #0a0709;
  --bg-2: #120b10;
  --crimson: #9d0119;
  --crimson-2: #b3001b;
  --crimson-3: #e42335;
  --red: 228, 35, 53;
  --brown-red: 255, 0, 50;
  --gold-rgb: 252, 196, 25;
  --red-soft: #ff5a63;
  --live-red: #ff0033;
  --live-orange: #ff6d1f;
  --live: #22c55e;
  --live-rgb: 34, 197, 94;
  --gold: #fcc419;
  --gold-2: #ffd94d;
  --white: #f6f3ee;
  --muted: #a89aa1;
  --font-display: 'Anton', 'Archivo Black', sans-serif;
  --font-head: 'Oswald', sans-serif;
  --font-body: 'Oswald', system-ui, sans-serif;
  --font-ticker: 'Oswald', 'Bahnschrift', 'Segoe UI', system-ui, sans-serif;
  --font-logo: 'Luckiest Guy', var(--font-display);
  --font-slogan: 'Bowlby One', var(--font-display);
  --font-menu: 'Oswald', var(--font-display);
  --radius: 14px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-size: 1.2em;
  line-height: 1.6;
  position: relative;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

.accent {
  background: linear-gradient(100deg, var(--gold) 10%, var(--gold-2) 45%, var(--crimson-3) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Overlay decorativi ---------- */
.scanlines {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 60;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.16) 0px,
    rgba(0, 0, 0, 0.16) 1px,
    transparent 1px,
    transparent 4px
  );
  opacity: 0.5;
}

/* Badge "sito in costruzione" — SOLO dev (is_dev in template) */
.under-construction {
  position: fixed;
  top: 6.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 70;
  padding: 0.75rem 1.6rem;
  border-radius: 10px;
  border: 2px solid #000;
  background: #fcc419;
  color: #000;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55);
  white-space: nowrap;
}

.vignette {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 55;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}

/* Layer ambientale dietro tutto il contenuto (si estende su tutta la pagina) */
.ambient {
  position: absolute; inset: 0;
  min-height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(clamp(22rem,32vw,38rem) at 12% 6%, rgba(var(--red), 0.42), transparent 62%),
    radial-gradient(clamp(20rem,30vw,34rem) at 88% 22%, rgba(var(--red), 0.28), transparent 62%),
    radial-gradient(clamp(18rem,26vw,30rem) at 20% 42%, rgba(var(--red), 0.26), transparent 62%),
    radial-gradient(clamp(20rem,30vw,34rem) at 78% 60%, rgba(var(--red), 0.22), transparent 62%),
    radial-gradient(clamp(18rem,26vw,28rem) at 30% 80%, rgba(var(--red), 0.2), transparent 62%),
    radial-gradient(clamp(16rem,22vw,26rem) at 70% 30%, rgba(246, 243, 238, 0.12), transparent 60%),
    radial-gradient(clamp(16rem,22vw,26rem) at 50% 55%, rgba(246, 243, 238, 0.11), transparent 60%),
    radial-gradient(clamp(14rem,20vw,24rem) at 85% 88%, rgba(246, 243, 238, 0.1), transparent 60%);
}

.ambient-blob {
  position: absolute;
  width: clamp(30rem, 44vw, 54rem);
  height: clamp(30rem, 44vw, 54rem);
  filter: blur(28px);
  pointer-events: none;
  will-change: transform;
}
.ambient-blob-inner {
  position: absolute; inset: 0;
  border-radius: 50%;
  will-change: transform;
}
.ambient-blob.ab-1 { top: 4%; left: -6%; }
.ambient-blob.ab-2 { top: 24%; right: -6%; }
.ambient-blob.ab-3 { top: 46%; left: -5%; }
.ambient-blob.ab-4 { top: 66%; right: -5%; }
.ambient-blob.ab-5 { top: 88%; left: 18%; }

.ambient-blob.ab-1 .ambient-blob-inner {
  background: radial-gradient(circle at 40% 40%, rgba(var(--red), 0.8), rgba(var(--red), 0.2) 55%, transparent 78%);
  animation: float-a 9s ease-in-out infinite alternate;
}
.ambient-blob.ab-2 .ambient-blob-inner {
  background: radial-gradient(circle at 55% 45%, rgba(246, 243, 238, 0.22), rgba(246, 243, 238, 0.07) 55%, transparent 78%);
  animation: float-b 10s ease-in-out infinite alternate-reverse;
}
.ambient-blob.ab-3 .ambient-blob-inner {
  background: radial-gradient(circle at 45% 45%, rgba(var(--red), 0.75), rgba(var(--red), 0.18) 55%, transparent 78%);
  animation: float-c 9s ease-in-out infinite alternate;
  animation-delay: -3s;
}
.ambient-blob.ab-4 .ambient-blob-inner {
  background: radial-gradient(circle at 50% 50%, rgba(246, 243, 238, 0.2), rgba(246, 243, 238, 0.06) 55%, transparent 78%);
  animation: float-a 11s ease-in-out infinite alternate-reverse;
  animation-delay: -5s;
}
.ambient-blob.ab-5 .ambient-blob-inner {
  background: radial-gradient(circle at 40% 45%, rgba(var(--red), 0.7), rgba(var(--red), 0.16) 55%, transparent 78%);
  animation: float-b 10s ease-in-out infinite alternate;
  animation-delay: -4s;
}

main { position: relative; }

/* ---------- Ticker ---------- */
.ticker {
  overflow: hidden;
  background: linear-gradient(90deg, var(--crimson-2), var(--crimson));
  color: #fff;
  font-family: var(--font-ticker);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  white-space: nowrap;
  position: relative;
  z-index: 70;
}

.ticker-track {
  display: inline-flex;
  gap: 3rem;
  padding: 0.55rem 1.5rem;
  animation: ticker-scroll 26s linear infinite;
  will-change: transform;
}

.top-ticker { position: fixed; top: 0; left: 0; right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.top-ticker .ticker-track { padding-top: 0.5rem; padding-bottom: 0.5rem; }

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 80;
  padding: calc(1.85rem + 1.8rem) 0 0;
  transition: padding 0.35s ease, background 0.35s ease;
}

.nav.scrolled {
  padding-top: 0.85rem;
  padding-bottom: 7px;
  background: rgba(10, 7, 9, 0.95);
  border-bottom: 1px solid rgba(246, 243, 238, 0.08);
}

.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

@keyframes blink { 50% { opacity: 0.25; } }

.nav-links { display: flex; gap: 2rem; }

.nav-links a {
  font-family: var(--font-menu);
  font-weight: 700;
  font-size: 1.2rem;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  transition: color 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-burger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer;
  padding: 6px;
}

.nav-burger span {
  width: 26px; height: 2px; background: var(--white);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column; gap: 0.4rem;
  padding: 1rem var(--gutter) 1.25rem;
  background: rgba(10, 7, 9, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(246, 243, 238, 0.08);
}

.nav-mobile a {
  padding: 0.6rem 0;
  font-family: var(--font-menu);
  font-weight: 700;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(246,243,238,0.06);
}
.nav-mobile a.btn { border-bottom: 0; margin-top: 0.6rem; text-align: center; }

/* ---------- OTHER Links  ---------- */
.other-links a {
  font-family: var(--font-menu);
  font-weight: 700;
  font-size: 1.2rem;
  text-transform: uppercase;
  position: relative;
  animation: other-flash 1.2s ease-in-out infinite;
  transition: color 0.2s ease;
}

@keyframes other-flash {
  0%, 100% { color: var(--crimson-2); text-shadow: 0 0 12px rgb(174, 8, 8); }
  50%      { color: var(--white); text-shadow: 0 0 0 rgba(0, 0, 0, 0); }
}

.other-links a:hover {
  color: var(--gold);
  text-shadow: 0 0 16px rgba(var(--gold-rgb), 0.9);
  animation: none;
}

.other-links-off {
  font-family: var(--font-menu);
  font-weight: 700;
  font-size: 1.2rem;
  text-transform: uppercase;
  color: rgba(246, 243, 238, 0.35);
  cursor: not-allowed;
}

.poll-info {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--gold);
  margin-top: 0.3rem;
}

.poll-deadline {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  font-family: var(--font-head);
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.04em;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-sm { padding: 0.55rem 1.2rem; font-size: 0.85rem; }
.btn-lg { padding: 1.05rem 2.2rem; font-size: 1.05rem; }

.btn-solid {
  background: linear-gradient(120deg, var(--crimson-2), var(--crimson-3));
  color: #fff;
  box-shadow: 0 8px 30px rgba(180, 10, 30, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-solid:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(var(--red), 0.5);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(246, 243, 238, 0.28);
  color: var(--white);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(var(--gold-rgb), 0.18);
}

.btn-play {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.5em; height: 1.5em;
  font-size: 1em;
  border-radius: 50%;
  background: var(--white);
  color: var(--crimson);
  flex: none;
}
.btn-play svg { display: block; }

/* ---------- Section generica ---------- */
.section {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(5rem, 12vh, 8rem) var(--gutter);
}

.section-head { max-width: 640px; margin-bottom: 3.5rem; }

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  text-transform: uppercase;
  line-height: 1.02;
  letter-spacing: 0.01em;
  margin: 0.4rem 0 1rem;
}

.section-head p { color: var(--muted); font-size: 1.05rem; }

.kicker {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 0.75rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--gold);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9rem var(--gutter) 6rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 20% 20%, rgba(var(--red), 0.35), transparent 60%),
    var(--bg);
}

.hero-mesh {
  position: absolute; inset: -20%;
  background:
    conic-gradient(from 0deg, transparent 0 20deg, rgba(var(--gold-rgb),0.5) 20deg 22deg, transparent 22deg 60deg, rgba(var(--red),0.5) 60deg 62deg, transparent 62deg 100deg, rgba(255,255,255,0.14) 100deg 102deg, transparent 102deg 140deg, rgba(var(--gold-rgb),0.4) 140deg 142deg, transparent 142deg 180deg),
    conic-gradient(from 180deg, transparent 0 20deg, rgba(var(--red),0.4) 20deg 22deg, transparent 22deg 60deg, rgba(var(--gold-rgb),0.45) 60deg 62deg, transparent 62deg 100deg, rgba(255,255,255,0.12) 100deg 102deg, transparent 102deg 140deg, rgba(var(--red),0.35) 140deg 142deg, transparent 142deg 180deg);
  background-size: 33% 50%, 33% 50%;
  background-repeat: no-repeat;
  opacity: 0.55;
  filter: blur(24px) saturate(1.3);
  animation: mesh-drift 16s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes mesh-drift {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  50% { transform: translate3d(3%, -5%, 0) rotate(5deg) scale(1.12); }
  100% { transform: translate3d(7%, -8%, 0) rotate(12deg) scale(1.22); }
}

/* ---------- Floating blobs (GPU: solo transform/opacity, blur statico) ---------- */
/* Esterno: posizione + blur + parallax GSAP (transform libero).
   Interno (.blob-float): gradiente + float CSS, senza conflitti di transform. */
.hero-blob {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  filter: blur(32px);
  will-change: transform;
}

.hero-blob[data-blob="1"] { width: 55vw; height: 55vw; top: -12%; left: -12%; }
.hero-blob[data-blob="2"] { width: 45vw; height: 45vw; bottom: -18%; right: -12%; }
.hero-blob[data-blob="3"] { width: 60vw; height: 60vw; top: 30%; left: 50%; margin-left: -30vw; }

.blob-float {
  position: absolute; inset: 0;
  border-radius: 50%;
  will-change: transform;
}

.bf-1 {
  background: radial-gradient(circle at 35% 35%, rgba(var(--red), 0.95), rgba(var(--brown-red), 0.35) 55%, transparent 78%);
  opacity: 0.95;
  animation: float-a 9s ease-in-out infinite alternate;
}

.bf-2 {
  background: radial-gradient(circle at 60% 40%, rgba(255, 250, 245, 0.9), rgba(255, 255, 255, 0.22) 55%, transparent 78%);
  opacity: 0.5;
  animation: float-b 11s ease-in-out infinite alternate;
}

.bf-3 {
  background: radial-gradient(circle at 50% 50%, rgba(var(--brown-red), 0.9), rgba(10, 7, 9, 0.4) 58%, transparent 80%);
  opacity: 0.85;
  animation: float-c 13s ease-in-out infinite alternate;
}

@keyframes float-a {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  50% { transform: translate3d(18vw, 12vh, 0) rotate(6deg) scale(1.22); }
  100% { transform: translate3d(6vw, 20vh, 0) rotate(-4deg) scale(1.1); }
}

@keyframes float-b {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1.1); }
  50% { transform: translate3d(-16vw, -15vh, 0) rotate(-6deg) scale(0.9); }
  100% { transform: translate3d(-20vw, 8vh, 0) rotate(5deg) scale(1.26); }
}

@keyframes float-c {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  50% { transform: translate3d(12vw, -14vh, 0) rotate(5deg) scale(1.28); }
  100% { transform: translate3d(-8vw, 10vh, 0) rotate(-5deg) scale(1.08); }
}

.hero-content {
  position: relative; z-index: 2;
  text-align: center;
  max-width: 880px;
  padding-block: clamp(1.5rem, 3vh, 2.5rem);
}

.hero-content > * {
  position: relative;
  z-index: 1;
}

/* ---------- Bandierina orbitante nel background della hero ---------- */
/* Esterno (.hero-orbit): ancorato al centro della hero, contenitore dell'orbita.
   .orbit-track: ruota 360° attorno al centro della hero.
   .hero-flag-float: posizionato sul raggio dell'orbita (left/top + margin, senza trasform),
     il parallax GSAP agisce qui.
   Interno (.flag-surface): contro-rotazione per tenere il logo dritto mentre orbita. */
.hero-orbit {
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  z-index: 0;
  pointer-events: none;
}

.orbit-track {
  width: 0; height: 0;
  will-change: transform;
}

.hero-flag-float {
  --flag-size: clamp(220px, 30vmin, 300px);
  --orbit-radius: clamp(150px, 18vw, 260px);
  position: absolute;
  top: 50%; left: 50%;
  width: var(--flag-size);
  height: var(--flag-size);
  margin-left: calc(var(--flag-size) / -2);
  margin-top: calc(var(--flag-size) / -2);
  will-change: transform;
  backface-visibility: hidden;
  animation: orbit-spin 48s linear infinite;
}

.flag-surface {
  position: absolute; inset: 0;
  background: url('../img/pabflag-512.png') center / contain no-repeat;
}

.ffs-1 {
  opacity: 0.45;
}

@keyframes orbit-spin {
  from { transform: rotate(0deg) translateX(var(--orbit-radius)) rotate(0deg); }
  to { transform: rotate(360deg) translateX(var(--orbit-radius)) rotate(-360deg); }
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 1rem;
  flex-wrap: wrap; justify-content: center;
  margin-bottom: 1.8rem;
  font-family: var(--font-head);
  font-weight: 600; font-size: 0.85rem; letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}

.badge-live {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: rgba(246, 243, 238, 0.05);
  border: 1px solid rgba(246, 243, 238, 0.25);
  color: var(--muted);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  box-shadow: none;
}

.badge-live .pulse-dot {
  background: var(--muted);
  animation: none;
  box-shadow: none;
}

.state-onair .badge-live {
  background: rgba(var(--live-rgb), 0.14);
  border-color: rgba(var(--live-rgb), 0.55);
  color: #d6ffe4;
  box-shadow: 0 0 24px rgba(var(--live-rgb), 0.35);
}

.state-onair .badge-live .pulse-dot {
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(var(--live-rgb), 0.7);
  animation: pulse-live 1.6s infinite;
}

.pulse-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--crimson-3);
  box-shadow: 0 0 0 0 rgba(var(--red), 0.7);
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(var(--red), 0.7); }
  70% { box-shadow: 0 0 0 12px rgba(var(--red), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--red), 0); }
}

@keyframes pulse-live {
  0% { box-shadow: 0 0 0 0 rgba(var(--live-rgb), 0.7); }
  70% { box-shadow: 0 0 0 12px rgba(var(--live-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--live-rgb), 0); }
}

.btn-poll {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: rgba(var(--live-rgb), 0.14);
  border: 1px solid rgba(var(--live-rgb), 0.55);
  color: #d6ffe4;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 0 24px rgba(var(--live-rgb), 0.35);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.btn-poll:hover {
  background: rgba(var(--live-rgb), 0.24);
  box-shadow: 0 0 32px rgba(var(--live-rgb), 0.5);
}

.btn-poll.is-off {
  background: rgba(246, 243, 238, 0.05);
  border-color: rgba(246, 243, 238, 0.25);
  color: var(--muted);
  box-shadow: none;
}

.btn-poll.is-off .poll-dot {
  background: var(--muted);
  box-shadow: none;
  animation: none;
}

.btn-poll.is-off:hover {
  background: rgba(246, 243, 238, 0.05);
  box-shadow: none;
}

.poll-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(var(--live-rgb), 0.7);
  animation: pulse-live 1.6s infinite;
}

.hero-title {
  font-family: var(--font-logo);
  font-weight: 400;
  font-size: clamp(3.6rem, 13vw, 9.5rem);
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: 0.01em;
  display: flex; justify-content: center; gap: 0.05em;
  text-shadow: 0 18px 60px rgba(0, 0, 0, 0.6);
  margin-bottom: 1.6rem;
  -webkit-font-smoothing: antialiased;
}

.title-line { display: block; }

.title-line.accent {
  background: linear-gradient(100deg, var(--crimson-3), var(--red-soft) 35%, var(--gold) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 10px 34px rgba(var(--red), 0.5));
}

.hero-slogan {
  font-family: var(--font-slogan);
  font-size: clamp(1rem, 2.4vw, 1.45rem);
  color: var(--white);
  line-height: 1.5;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.hero-actions {
  display: flex; gap: 1rem; justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.platform-icon svg {
  display: block;
  width: 1.1em; height: 1.1em;
  fill: #fff;
}

.scroll-hint {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(246, 243, 238, 0.35);
  border-radius: 14px;
  display: flex; justify-content: center;
  padding-top: 8px;
  z-index: 2;
}

.scroll-hint span {
  width: 4px; height: 9px; border-radius: 2px;
  background: var(--gold);
  animation: scroll-hint 1.8s ease-in-out infinite;
}

@keyframes scroll-hint {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- Piattaforme ---------- */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}

.platform-card {
  position: relative;
  background: linear-gradient(160deg, rgba(246, 243, 238, 0.06), rgba(246, 243, 238, 0.02));
  border: 1px solid rgba(246, 243, 238, 0.1);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex; flex-direction: column; gap: 0.9rem;
}

.platform-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 50% 0%, var(--card-glow, rgba(var(--red), 0.25)), transparent 60%);
  opacity: 0; transition: opacity 0.3s ease;
}

.platform-card:hover {
  transform: translateY(-8px);
  border-color: var(--card-accent, var(--gold));
  box-shadow: 0 22px 50px -20px rgba(0, 0, 0, 0.8), 0 0 40px -12px var(--card-accent, var(--gold));
}

.platform-card:hover::before { opacity: 1; }

.platform-icon {
  width: 58px; height: 58px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 16px;
  font-family: var(--font-head);
  font-weight: 900; font-size: 1.5rem;
  color: #fff;
  position: relative; z-index: 1;
}

.platform-icon.yt { background: linear-gradient(135deg, #ff0033, #c40d2e); }
.platform-icon.fb { background: linear-gradient(135deg, #4c8dff, #1877f2); }
.platform-icon.ig { background: linear-gradient(135deg, #feda75, #d62976 50%, #962fbf); }
.platform-icon.tv { background: linear-gradient(135deg, var(--gold), #d29b00); }

.platform-card h3 {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 800;
  position: relative; z-index: 1;
}

.platform-card p { color: var(--muted); font-size: 0.95rem; position: relative; z-index: 1; }

.platform-link {
  margin-top: auto;
  font-family: var(--font-head);
  font-weight: 700; font-size: 0.85rem;
  color: var(--gold);
  position: relative; z-index: 1;
}

/* ---------- Chi siamo ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.about-text p { color: var(--muted); margin-bottom: 1.2rem; font-size: 1.05rem; }

.about-features { margin-top: 1.8rem; display: grid; gap: 0.9rem; }

.about-features li {
  display: flex; gap: 0.8rem; align-items: flex-start;
  color: var(--white);
  font-size: 0.98rem;
}

.about-features li::before {
  content: "●";
  color: var(--gold);
  font-size: 0.7rem;
  margin-top: 0.4rem;
}

.about-features strong { color: var(--white); }

.tv-frame {
  border-radius: 22px;
  padding: 0.55rem;
  background: linear-gradient(160deg, #2a2326, #141013);
  border: 1px solid rgba(246, 243, 238, 0.14);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 6px rgba(246, 243, 238, 0.03);
  transform: perspective(1200px) rotateY(-8deg) rotateX(2deg);
}

.tv-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(60% 80% at 30% 20%, rgba(var(--red), 0.55), transparent 60%),
    radial-gradient(50% 70% at 80% 80%, rgba(var(--gold-rgb), 0.5), transparent 60%),
    repeating-conic-gradient(from 0deg, rgba(255,255,255,0.06) 0 2deg, transparent 2deg 4deg),
    #18090d;
  animation: screen-flicker 5s ease-in-out infinite;
}

@keyframes screen-flicker {
  0%, 100% { filter: brightness(1); }
  3% { filter: brightness(1.25); }
  6% { filter: brightness(0.95); }
  9% { filter: brightness(1.12); }
  50% { filter: brightness(1.02); }
}

.tv-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* ---------- Bottoni "Guarda la diretta" visibili solo in ON AIR ---------- */
.js .onair-only { display: none; }
.js.state-onair .onair-only { display: inline-flex; }

/* ---------- Bottoni OFF AIR (differita) visibili solo quando non si è in onda ---------- */
.js .offair-only { display: none; }
.js.state-offair .offair-only { display: inline-flex; }

.tv-scanline {
  position: absolute; left: 0; right: 0; height: 6px;
  background: rgba(255, 255, 255, 0.35);
  filter: blur(2px);
  animation: scan-sweep 3.4s linear infinite;
  z-index: 3;
}

@keyframes scan-sweep {
  0% { top: -10%; }
  100% { top: 110%; }
}

/* ---------- Countdown ---------- */
.countdown {
  text-align: center;
  background: linear-gradient(150deg, rgba(var(--brown-red), 0.35), rgba(18, 11, 16, 0.6));
  border: 1px solid rgba(var(--red), 0.35);
  border-radius: var(--radius);
  padding: 2.4rem 1.5rem;
  margin-bottom: 3.5rem;
  box-shadow: inset 0 0 60px rgba(var(--red), 0.12);
  position: relative;
  overflow: hidden;
}

.countdown::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(60% 100% at 50% 0%, rgba(var(--gold-rgb), 0.12), transparent 60%);
  pointer-events: none;
}

.countdown-label {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--gold);
  margin-bottom: 1.4rem;
}

.countdown-units {
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  font-family: var(--font-display);
}

.c-unit { display: flex; flex-direction: column; align-items: center; min-width: 64px; }

.c-num {
  font-size: clamp(2.2rem, 8vw, 4.2rem);
  line-height: 1;
  background: linear-gradient(120deg, var(--white), #c9c2bd);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.c-label {
  font-family: var(--font-body);
  font-weight: 600; font-size: 0.72rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.4rem;
}

.c-sep {
  font-size: clamp(2rem, 7vw, 3.5rem);
  color: var(--crimson-3);
  animation: blink 1s steps(2, start) infinite;
  align-self: flex-start;
  margin-top: -0.1rem;
}

/* ---------- Palinsesto ---------- */
#live-cover, #ultima-puntata { scroll-margin-top: 120px; }

.schedule-grid {
  display: grid; /* grid attivata: 1 live + 3 feed, oppure 4 feed */
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}

.schedule-card {
  position: relative;
  z-index: 65; /* sopra l'overlay scanlines (60): cover senza righe */
  background: linear-gradient(165deg, rgba(246, 243, 238, 0.06), rgba(246, 243, 238, 0.02));
  border: 1px solid rgba(246, 243, 238, 0.1);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
  display: flex; flex-direction: column; gap: 0.55rem;
  color: inherit;
  text-decoration: none;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.schedule-card:hover {
  transform: translateY(-8px);
  border-color: rgba(var(--red), 0.6);
  box-shadow: 0 24px 50px -24px rgba(var(--red), 0.4);
}

.schedule-card .s-cover {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(18, 11, 16, 0.6);
  margin-bottom: 0.3rem;
}

.schedule-card .s-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.schedule-card .s-live-flag {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--crimson-3);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.schedule-card .s-ep {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--white);
}

/* In ON AIR: numeri e data nascosti, resta la label "Siamo in onda" */
.js.state-onair .countdown-units { display: none; }

.countdown-next {
  margin-top: 1.2rem;
  font-family: var(--font-head);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.js.state-onair .countdown-next { display: none; }

/* live-cover evidenziata in verde solo in ON AIR */
.state-onair .schedule-card-live {
  border-color: rgba(var(--live-rgb), 0.7);
  box-shadow: 0 0 32px rgba(var(--live-rgb), 0.35);
}
.state-onair .schedule-card-live:hover {
  border-color: rgba(var(--live-rgb), 0.95);
  box-shadow: 0 24px 50px -20px rgba(var(--live-rgb), 0.55);
}

@keyframes live-now-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.schedule-empty {
  grid-column: 1 / -1;
  color: var(--muted);
  text-align: center;
  padding: 1.5rem 0;
}

.s-badge {
  align-self: flex-start;
  font-family: var(--font-head);
  font-weight: 700; font-size: 0.66rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(var(--gold-rgb), 0.4);
  background: rgba(var(--gold-rgb), 0.08);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.4rem;
}

.schedule-card h3 { font-family: var(--font-head); font-size: 1.2rem; font-weight: 800; }

.schedule-card p { color: var(--muted); font-size: 0.92rem; }

.s-tag {
  margin-top: auto;
  align-self: flex-start;
  font-size: 0.72rem; font-weight: 600;
  color: #ffd9dd;
  background: rgba(var(--red), 0.18);
  border: 1px solid rgba(var(--red), 0.4);
  padding: 0.2rem 0.65rem;
  border-radius: 6px;
}

/* ---------- Sondaggi ---------- */
.sondaggi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.sondaggi-text p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.3;
}

.sondaggi-imgs {
  position: relative;
  z-index: 65; /* sopra l'overlay scanlines (60): immagini senza righe */
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  border: 2px dashed rgba(var(--gold-rgb), 0.45);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(246, 243, 238, 0.04), rgba(246, 243, 238, 0.01));
  color: var(--muted);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.img-placeholder:hover {
  border-color: var(--gold);
  box-shadow: 0 0 30px -8px rgba(var(--gold-rgb), 0.3);
}

#stagione { scroll-margin-top: 120px; }

.tables-stack {
  display: grid;
  gap: 1rem;
}

.table-block {
  display: grid;
  gap: 1rem;
}

.table-title {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
}

.table-toggle {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-align: left;
  animation: other-flash 1.2s ease-in-out infinite;
}

.table-toggle::after {
  content: '';
  width: 0.45em;
  height: 0.45em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.table-toggle:hover,
.table-toggle[aria-expanded='true'] {
  color: var(--gold);
  text-shadow: 0 0 16px rgba(var(--gold-rgb), 0.9);
  animation: none;
}

.table-toggle[aria-expanded='true']::after {
  transform: rotate(-135deg);
}

.tables-frame {
  position: relative;
  z-index: 65;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(var(--gold-rgb), 0.25);
  background: #000;
  box-shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.9);
}

.tables-frame[hidden] { display: none; }

.tables-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 1280px;
  height: 720px;
  border: 0;
  transform: scale(var(--table-scale, 1));
  transform-origin: top left;
}

.table-hint {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Ospiti ---------- */
.staff-rows {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  max-width: 1000px;
  margin: 0 auto;
}

.staff-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: center;
}

.staff-row:nth-child(even) .staff-img { order: -1; }

.staff-text h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.6rem;
}

.staff-text p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 46ch;
}

.staff-img {
  width: min(200px, 42vw);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  justify-self: center;
}

.staff-img span { text-align: center; padding: 0 1rem; }

.staff-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* ---------- Contatti ---------- */
.info-box {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(160deg, rgba(246, 243, 238, 0.06), rgba(246, 243, 238, 0.02));
  border: 1px solid rgba(246, 243, 238, 0.1);
  border-radius: 22px;
  padding: clamp(2.2rem, 6vw, 4rem);
}

.info-box .section-head { margin: 0 auto 1.6rem; }

.info-intro {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 1.8rem;
}

.info-mail {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(0.95rem, 2.4vw, 1.2rem);
  color: var(--gold);
  padding: 0.9rem 1.5rem;
  border: 1px solid rgba(var(--gold-rgb), 0.35);
  border-radius: 999px;
  background: rgba(var(--gold-rgb), 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  word-break: break-all;
}

.info-mail:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 12px 32px rgba(var(--gold-rgb), 0.25);
}

/* ---------- Footer ---------- */
.footer { background: var(--bg-2); border-top: 1px solid rgba(246, 243, 238, 0.08); position: relative; z-index: 1; }

.bottom-ticker {
  background: linear-gradient(90deg, var(--crimson-2), var(--crimson));
  color: #fff;
  border-bottom: 1px solid rgba(246, 243, 238, 0.08);
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 4rem var(--gutter);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
}

.footer-brand p {
  color: var(--muted);
  margin-top: 1rem;
  max-width: 320px;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.footer-links strong {
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold);
  display: block; margin-bottom: 0.9rem;
}

.footer-links a {
  display: block;
  color: var(--muted);
  padding: 0.28rem 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover { color: var(--white); transform: translateX(4px); }

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.5rem var(--gutter);
  border-top: 1px solid rgba(246, 243, 238, 0.07);
  display: flex; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- Reveal base (JS abilitato) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(40px);
  will-change: transform, opacity;
}

/* ---------- Bottone torna su ---------- */
.back-to-top {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(var(--red), 0.45);
  background: var(--white);
  color: rgb(var(--red));
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.back-to-top svg {
  width: 24px;
  height: 24px;
  display: block;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: rgb(var(--red));
  box-shadow: 0 10px 26px rgba(var(--red), 0.4);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .platform-grid, .schedule-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .tv-frame { max-width: 520px; margin: 0 auto; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav > .nav-inner > .btn { display: none; }
  .nav-mobile.show { display: flex; }
  .hero-eyebrow { flex-direction: column; gap: 0.7rem; }
  .sondaggi-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .staff-row { grid-template-columns: 1fr; gap: 1.5rem; justify-items: center; }
  .staff-row:nth-child(even) .staff-img { order: 0; }
  .staff-img { width: min(180px, 50vw); }
  .staff-text h3, .staff-text p { text-align: center; }
  .staff-text p { max-width: 100%; }
}

@media (max-width: 560px) {
  .platform-grid, .schedule-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .c-unit { min-width: 52px; }
  .under-construction { top: 5.5rem; font-size: 0.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  html { scroll-behavior: auto; }
  .table-toggle { animation: none; color: var(--gold); }
}
