/* =========================================================
   ROOT VARIABLES
========================================================= */
:root {
  --bg: #05050a;
  --card: #111111;
  --muted: #bdbdbd;
  --accent: #e50914;
  --accent-yellow: #ffcc00;
  --radius: 12px;
  --maxw: 1200px;
}

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

html, body {
  height: 100%;
}

body {
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #1b1b1b 0, #05050a 45%, #010103 100%);
  color: #ffffff;
  overflow-x: hidden;
}

/* =========================================================
   HEADER + MENU MOBILE
========================================================= */

.site-header {
  background: #000;
  padding: 10px 20px;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 9999;
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1rem;
}

.logo .live {
  margin-left: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #ff4b2b);
  font-size: 0.7rem;
}

.nav {
  display: flex;
  gap: 16px;
}

.nav a {
  color: var(--muted);
  font-size: 0.85rem;
  text-decoration: none;
}

.nav a:hover {
  color: #ffffff;
}

.mobile-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* MOBILE NAV */
@media (max-width: 800px) {

  .mobile-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: 60px;
    right: 0;
    background: #000;
    padding: 20px;
    width: 220px;
    flex-direction: column;
    display: none;
    z-index: 99999;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    margin: 10px 0;
  }
}

/* =========================================================
   HERO – VERSIONE COMPATIBILE CON app.js
========================================================= */

.hero {
  position: relative;
  height: 70vh;
  min-height: 450px;
  overflow: hidden;
}

.hero-slides {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.35), rgba(0,0,0,0.85));
  z-index: 1;
}

.hero-inner {
  position: absolute;
  z-index: 2;
  bottom: 40px;
  left: 20px;
  right: 20px;
  color: #fff;
}

.hero-kicker {
  color: var(--accent-yellow);
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero-title {
  font-size: 2.4rem;
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1.1rem;
  max-width: 480px;
  opacity: 0.9;
  margin: 8px 0;
}

.hero-meta {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-bottom: 20px;
}

.btn-primary {
  display: inline-block;
  padding: 12px 22px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

/* DESKTOP HERO */
@media (min-width: 900px) {
  .hero-inner {
    max-width: 800px;
    left: 40px;
  }
  .hero-title {
    font-size: 3rem;
  }
}

/* =========================================================
   TWITCH + COOKIEBOT
========================================================= */

.live-section {
  padding: 18px 0 10px;
}

.cookie-embed-placeholder {
  background: #111;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px dashed rgba(255,255,255,0.25);
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.cookie-embed iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background: #000;
}

/* =========================================================
   SEZIONI GENERALI
========================================================= */

.content-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 16px 24px;
}

.section {
  margin: 22px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.section-header h2 {
  font-size: 1.1rem;
}

.section-sub {
  color: var(--muted);
  font-size: 0.85rem;
}

/* =========================================================
   RIGHE ORIZZONTALI – FIX SCROLL
========================================================= */

.row {
  display: flex;
  gap: 14px;
}

.row.horizontal {
  overflow-x: auto !important;
  overflow-y: hidden;
  display: flex;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 10px;
}

.row.horizontal::-webkit-scrollbar {
  height: 7px;
}

.row.horizontal::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 999px;
}

/* =========================================================
   CARD VIDEO
========================================================= */

.card-video {
  min-width: 220px;
  background: var(--card);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  cursor: pointer;
}

.card-video .thumb {
  aspect-ratio: 16 / 9;
}

.card-video .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-video .body {
  padding: 8px 10px;
}

.card-video .title {
  font-size: 0.9rem;
  font-weight: 600;
}

.card-video .meta {
  font-size: 0.8rem;
  color: var(--muted);
}

/* =========================================================
   FORMAT CARD
========================================================= */

.card-format {
  min-width: 180px;
  background: #101010;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
}

.card-format .label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 4px;
}

.card-format .name {
  font-weight: 600;
  margin-bottom: 6px;
}

.card-format .desc {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.card-format .footer {
  font-size: 0.78rem;
  color: var(--muted);
}

/* =========================================================
   PODCAST
========================================================= */

.card-podcast {
  min-width: 150px;
  max-width: 180px;
}

.card-podcast .cover {
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: #222;
}

.card-podcast .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-podcast .title {
  font-weight: 600;
  margin-top: 8px;
  font-size: 0.9rem;
}

.card-podcast .meta {
  font-size: 0.78rem;
  color: var(--muted);
}

.card-podcast .btn-spotify {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(30,215,96,0.9);
  color: #1ed760;
  font-size: 0.75rem;
  text-decoration: none;
}

/* =========================================================
   EVENTI
========================================================= */

.card-event {
  min-width: 240px;
  background: linear-gradient(180deg,#1d1d1d,#101010);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 10px 12px;
}

.card-event .tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-yellow);
}

.card-event .match {
  font-weight: 600;
}

.card-event .meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.card-event .date {
  font-size: 0.78rem;
  color: #ffffff;
}

/* =========================================================
   REPLICHE
========================================================= */

.grid-repliche .card-video {
  min-width: 260px;
}

/* =========================================================
   FOOTER
========================================================= */

.site-footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 10px 0 14px;
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-right {
  display: flex;
  gap: 10px;
}

.footer-social-icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #ffffff;
}

/* =========================================================
   MODAL VIDEO PLAYER
========================================================= */

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(2px);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-content {
  position: relative;
  background: #000;
  width: 90%;
  max-width: 800px;
  border-radius: 6px;
  overflow: hidden;
}

.modal-content iframe {
  width: 100%;
  height: 450px;
  border: none;
}

.close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 28px;
  cursor: pointer;
  color: white;
  font-weight: bold;
}
