/* ================================================
   Victor Volley — Design System
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700&family=Inter:wght@400;500&display=swap');

/* --- Variables --- */
:root {
  /* Colori */
  --c-navy:         #053063;
  --c-azzurro:      #008CFD;
  --c-azzurro-dark: #0070D6;
  --c-magenta:      #CB2168;
  --c-white:        #FFFFFF;
  --c-gray-light:   #F4F4F6;
  --c-text:         #1A1A1E;

  /* Tipografia */
  --font-heading: 'Barlow', 'Poppins', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Spaziatura */
  --section-gap:        80px;
  --card-padding:       24px;
  --container-max:      1200px;
  --container-padding:  24px;

  /* Forme */
  --card-radius:        12px;
  --btn-radius:         3px;
  --card-shadow:        0 2px 8px rgba(5, 48, 99, 0.08);
  --card-shadow-hover:  0 8px 24px rgba(5, 48, 99, 0.16);

  /* Transizioni */
  --t: 0.2s ease;

  /* Sidebar */
  --sidebar-w: 160px;

  /* Mobile topbar */
  --topbar-h: 0px;

  /* -------------------------------------------------------
     SFONDO HERO — cambia solo questa riga per aggiornare
     l'immagine di sfondo della sezione hero / first-screen.
     Percorso relativo a css/style.css (es. ../assets/foto.webp)
  ------------------------------------------------------- */
  --hero-bg: url('../assets/team-bg.webp');

  /* -------------------------------------------------------
     DARK SPORT THEME — usato dalle pagine "immersive" (Squadre,
     Calendario/Classifica): canvas scuro, font condensato,
     gradienti cool/warm. Condiviso tra i CSS di pagina dedicati.
  ------------------------------------------------------- */
  --sport-navy-deep:    #050e1f;
  --sport-ink:          #0b1b33;
  --sport-azzurro-dim:  #3aa6ff;
  --sport-magenta-dim:  #e05c92;
  --sport-grad-cool:    linear-gradient(158deg, #0a2c57 0%, #0d1830 55%, #051022 100%);
  --sport-grad-warm:    linear-gradient(158deg, #5a1638 0%, #33112c 55%, #150a1c 100%);
  --sport-font-display: 'Arial Narrow', 'Helvetica Neue Condensed', var(--font-heading), sans-serif;
}

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--c-text);
  background-color: var(--c-white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* --- Tipografia --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--c-navy);
}

h1 { font-size: 48px; font-weight: 700; line-height: 1.1; }
h2 { font-size: 32px; font-weight: 600; line-height: 1.2; }
h3 { font-size: 20px; font-weight: 600; line-height: 1.3; }

.text-meta {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* --- Link --- */
a {
  color: var(--c-azzurro);
  text-decoration: none;
  transition: color var(--t);
}

a:hover {
  color: var(--c-azzurro-dark);
}

/* --- Layout --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--section-gap) 0;
}

.section--alt {
  background-color: var(--c-gray-light);
}

.section--dark {
  background-color: #020d1a;
}
.section--dark .section-heading h2 { color: #fff; }
.section--dark .section-heading p   { color: rgba(255,255,255,0.55); }

/* --- Bottoni --- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--btn-radius);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background-color var(--t), color var(--t), border-color var(--t);
  line-height: 1;
}

.btn--primary {
  background-color: var(--c-azzurro);
  color: var(--c-white);
}

.btn--primary:hover {
  background-color: var(--c-azzurro-dark);
  color: var(--c-white);
}

.btn--outline {
  background-color: transparent;
  color: var(--c-navy);
  border: 2px solid var(--c-navy);
}

.btn--outline:hover {
  background-color: rgba(5, 48, 99, 0.05);
  color: var(--c-navy);
}

/* --- Card --- */
.card {
  background-color: var(--c-white);
  border-radius: var(--card-radius);
  padding: var(--card-padding);
  box-shadow: var(--card-shadow);
  transition: transform var(--t), box-shadow var(--t);
}

@media (hover: hover) {
  .card--clickable:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
    cursor: pointer;
  }
}

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

/* --- Badge --- */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge--azzurro {
  background-color: rgba(0, 140, 253, 0.12);
  color: var(--c-azzurro-dark);
}

.badge--magenta {
  background-color: rgba(203, 33, 104, 0.12);
  color: var(--c-magenta);
}

/* --- Sidebar (navigazione laterale) --- */
.site-header {
  position: fixed;
  left: 0; top: 0;
  width: var(--sidebar-w);
  height: 100vh;
  z-index: 270;
  background-color: #021e3a;
  display: flex;
  flex-direction: column;
  overflow: visible;
  transition: transform 0.3s ease;
}

/* --- Footer (base — sviluppato nel punto 3) --- */
.site-footer {
  background-color: var(--c-navy);
  color: var(--c-white);
}

/* --- Splash screen --- */
html.no-splash #splash-screen {
  display: none;
}

#splash-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #07111e;
  display: flex;
  flex-direction: column;
  transition: opacity 0.4s ease;
}

#splash-screen.is-fading {
  opacity: 0;
  pointer-events: none;
}

.splash-top {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash-logo {
  width: 140px;
  height: 140px;
  object-fit: contain;
}

.splash-line {
  width: 100%;
  height: 2px;
  background: var(--c-azzurro);
  flex-shrink: 0;
}

.splash-bottom {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash-percent {
  font-family: var(--font-heading);
  font-size: clamp(64px, 12vw, 112px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* --- Reveal animation (punto 12 — struttura base) --- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- prefers-reduced-motion --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ================================================
   Sidebar — contenuto interno
================================================ */
main, footer.site-footer {
  margin-left: var(--sidebar-w);
}

.sidebar-logo {
  padding: 20px 14px 16px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex;
}

.sidebar-logo a { display: block; text-decoration: none; }
.sidebar-logo img { width: 96px; height: auto; }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 4px 0; }

.sidebar-nav-list { list-style: none; }

.sidebar-nav-link,
.sidebar-nav-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 11px 14px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.78);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  background: none;
  border: none;
  border-left: 3px solid transparent;
  cursor: pointer;
  text-align: left;
  line-height: 1.2;
  transition: color var(--t), background-color var(--t), border-left-color var(--t);
}

.sidebar-nav-link:hover,
.sidebar-nav-trigger:hover {
  color: var(--c-white);
  background-color: rgba(255,255,255,0.06);
  border-left-color: var(--c-azzurro);
}

.sidebar-nav-link.is-active,
.sidebar-nav-trigger.is-active {
  color: var(--c-azzurro);
  border-left-color: var(--c-azzurro);
}

.sidebar-nav-link--atleti {
  color: rgba(255,255,255,0.55);
  font-size: 12px;
  letter-spacing: 0.02em;
}
.sidebar-nav-link--atleti:hover { color: rgba(255,255,255,0.9); }
.sidebar-nav-link--atleti.is-active { color: var(--c-azzurro); }

.sidebar-nav-item.is-open > .sidebar-nav-trigger {
  color: var(--c-white);
  background-color: rgba(255,255,255,0.06);
  border-left-color: var(--c-azzurro);
}

.sidebar-nav-arrow {
  display: inline-flex;
  align-items: center;
  opacity: 0.4;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.sidebar-nav-item.is-open > .sidebar-nav-trigger .sidebar-nav-arrow {
  transform: rotate(180deg);
  opacity: 0.7;
}

/* Flyout panel (desktop) */
.sidebar-flyout {
  position: fixed;
  left: var(--sidebar-w);
  top: 0;
  height: 100vh;
  width: 210px;
  background-color: #042554;
  z-index: 199;
  padding: 24px 18px;
  overflow-y: auto;
  box-shadow: 4px 0 24px rgba(0,0,0,0.35);
  display: none;
}

.sidebar-flyout.is-open { display: block; }

.sidebar-flyout-title {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.28);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-flyout-link {
  display: block;
  padding: 10px 0;
  font-family: var(--font-heading);
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color var(--t);
}

.sidebar-flyout-link:hover { color: var(--c-azzurro); }

/* CTA button */
.sidebar-cta {
  padding: 10px 14px;
  flex-shrink: 0;
}

.sidebar-cta-btn {
  display: block;
  width: 100%;
  padding: 13px 14px;
  background-color: var(--c-magenta);
  color: var(--c-white);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 2px;
  line-height: 1.35;
  text-align: center;
  transition: background-color var(--t);
}

.sidebar-cta-btn:hover { background-color: #a81857; color: var(--c-white); }

/* Social / bottom strip */
.sidebar-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-shrink: 0;
}

.sidebar-social-link {
  color: rgba(255,255,255,0.38);
  display: flex;
  align-items: center;
  transition: color var(--t), transform var(--t);
}

.sidebar-social-link:hover { color: var(--c-azzurro); transform: scale(1.15); }

/* Mobile toggle (hamburger) */
.sidebar-toggle {
  display: none;
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 300;
  width: 40px;
  height: 40px;
  background-color: #021e3a;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 8px;
}

.sidebar-toggle-line {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--c-white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.sidebar-toggle.is-open .sidebar-toggle-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sidebar-toggle.is-open .sidebar-toggle-line:nth-child(2) { opacity: 0; }
.sidebar-toggle.is-open .sidebar-toggle-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Overlay mobile */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.52);
  z-index: 265;
}

.sidebar-overlay.is-open { display: block; }

.btn--sm { padding: 8px 16px; font-size: 13px; }

/* ================================================
   Footer
================================================ */
.footer-main {
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  flex-wrap: wrap;
}

.footer-logo-img {
  height: 40px;
  width: auto;
}

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

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: background-color var(--t), color var(--t);
}

.footer-social a:hover {
  background-color: var(--c-azzurro);
  color: var(--c-white);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--t);
}

.footer-links a:hover { color: var(--c-azzurro); }

.footer-side {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-email {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--t);
}

.footer-email:hover { color: var(--c-azzurro); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p,
.footer-bottom a {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
}

.footer-bottom a { text-decoration: none; transition: color var(--t); }
.footer-bottom a:hover { color: rgba(255, 255, 255, 0.65); }

/* ================================================
   Page header (banner top di pagine interne)
================================================ */
.page-header {
  background-color: var(--c-navy);
  padding: 48px 0 40px;
  color: var(--c-white);
}

.page-header h1 { color: var(--c-white); margin-bottom: 8px; }

.page-header .breadcrumb {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.page-header .breadcrumb a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}

.page-header .breadcrumb a:hover { color: var(--c-azzurro); }

/* ================================================
   First screen — wrapper che contiene partite + hero
================================================ */
.first-screen {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ================================================
   Partite Bar — due colonne sempre visibili
================================================ */
.partite-bar {
  flex-shrink: 0;
  background: #020d1a;
  z-index: 20;
}

.partite-cols {
  display: flex;
  height: 100%;
}

.partite-col {
  flex: 1;
  min-width: 0;
  padding: 10px 16px;
}

.partite-col:first-child {
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.partite-col-title {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 6px 0;
}

.partite-scroll-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  display: flex;
  justify-content: safe center; /* centra solo se il contenuto entra, altrimenti parte da sinistra: con "center" puro il primo elemento veniva tagliato quando le card non ci stavano tutte */
}
.partite-scroll-wrap::-webkit-scrollbar { display: none; }

.partite-scroll {
  display: flex;
  gap: 8px;
  width: max-content;
}

/* ---- Micro-card partita — layout a due righe ---- */
.partite-card {
  flex-shrink: 0;
  width: 300px;
  background: linear-gradient(135deg, #0b1f38 0%, #0e2648 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 9px 12px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

/* riga 1: badge + data */
.partite-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.partite-card-cat {
  flex-shrink: 0;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #fff;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(0, 140, 253, 0.75);
  white-space: nowrap;
}
.partite-card-cat--magenta { background: rgba(203, 33, 104, 0.75); }

.partite-card-date {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
}

/* riga 2: squadre (sx) + VS o punteggi (dx) */
.partite-card-body {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.partite-card-teams {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.partite-card-team {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.partite-card-logo {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.partite-card-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.partite-card-logo-init {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1;
}

.partite-card-tname {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/* colonna destra: VS centrato */
.partite-card-vs-col {
  flex-shrink: 0;
  width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partite-card-vs {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.3);
}

/* colonna destra: punteggi allineati riga per riga */
.partite-card-scores-col {
  flex-shrink: 0;
  width: 28px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.partite-card-pts {
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.partite-empty {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  font-style: italic;
  padding: 4px 0;
}

/* ---- Card LIVE ---- */
@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.35; transform: scale(0.65); }
}

.partite-card-live-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #ff4d4d;
}

.partite-card-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff4d4d;
  flex-shrink: 0;
  animation: live-pulse 1.4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .partite-card-live-dot { animation: none; }
}

.partite-card-live-detail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 5px;
  margin-top: 1px;
}

.partite-card-live-score {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.45);
  font-variant-numeric: tabular-nums;
}

.partite-card-live-expand {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.3);
  font-size: 10px;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  transition: color 0.15s;
}
.partite-card-live-expand:hover { color: rgba(255, 255, 255, 0.7); }

.partite-card-set-detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 5px;
  margin-top: 1px;
}

.partite-card-set-row {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.4);
  font-variant-numeric: tabular-nums;
}

/* ---- Responsive: colonne impilate su mobile ---- */
@media (max-width: 640px) {
  .partite-cols { flex-direction: column; }
  .partite-col:first-child { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.07); }
  .partite-card { width: 260px; }
}

/* ================================================
   Hero Cards — 3 carte portrait 9:16 centrate
================================================ */
.hero-cards {
  --card-h: calc(100vh - 145px - 40px);
  --card-w: calc(var(--card-h) * 9 / 16);
  --card-gap: 16px;
  background: #020d1a;
  flex: 1;
  min-height: 0;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.hero-cards::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: var(--hero-bg) center center / cover no-repeat;
  filter: blur(12px);
  opacity: 0.32;
  z-index: 0;
}

.hero-cards-track {
  display: flex;
  gap: var(--card-gap);
  position: relative;
  z-index: 1;
}

/* ---- Card ---- */
.hero-card {
  width: var(--card-w);
  height: var(--card-h);
  flex-shrink: 0;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.4s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.hero-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  transition: transform 0.55s ease;
}

.hero-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(2, 8, 20, 0.92) 0%,
    rgba(2, 8, 20, 0.55) 35%,
    rgba(2, 8, 20, 0.12) 62%,
    rgba(2, 8, 20, 0.04) 100%
  );
}

.hero-card-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px 20px;
}

.hero-card-cat {
  align-self: flex-start;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.hero-card-cat--azzurro { background: rgba(0, 140, 253, 0.85); }
.hero-card-cat--magenta { background: rgba(203, 33, 104, 0.85); }

.hero-card-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-azzurro);
  text-decoration: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ---- Hover ---- */
@media (hover: hover) {
  .hero-card:hover .hero-card-bg  { transform: scale(1.06); }
  .hero-card:hover .hero-card-cta { opacity: 1; transform: translateY(0); }
  .hero-card.is-hovered {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.7);
    z-index: 2;
  }
  .hero-cards-track.has-hover .hero-card:not(.is-hovered) {
    opacity: 0.45;
    transform: scale(0.97);
  }
  .news-page-cards.has-hover .hero-card:not(.is-hovered),
  .related-cards.has-hover .hero-card:not(.is-hovered) {
    opacity: 0.45;
    transform: scale(0.97);
  }
}

/* ---- Dots carosello mobile ---- */
.hero-dots-mobile {
  display: none;
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  gap: 8px;
  z-index: 5;
}
.hero-dot-m {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.hero-dot-m.is-active {
  background: #fff;
  transform: scale(1.25);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero-cards { --card-h: calc(100vh - 240px - 40px); }
  .hero-cards-track .hero-card:nth-child(3) { display: none; }
}
@media (max-width: 640px) {
  /* first-screen: altezza auto — hero + partite si impilano */
  .first-screen { height: auto; }

  /* Hero: prende il viewport rimanente sotto la topbar */
  .hero-cards {
    order: 1;
    flex: none;
    height: calc(100vh - var(--topbar-h));
    height: calc(100svh - var(--topbar-h));
    align-items: center;
    --card-h: calc((100svh - var(--topbar-h)) * 0.80);
    --card-w: min(calc(var(--card-h) * 9 / 16), calc(100vw - 20px));
  }

  /* Partite bar: si sposta sotto la hero */
  .partite-bar {
    order: 2;
    height: auto;
  }
  .partite-cols .partite-col:first-child { display: none; }
  .partite-scroll-wrap { justify-content: flex-start; }

  /* Carosello: tutte e 3 le card visibili, scroll-snap */
  .hero-cards-track .hero-card:nth-child(2),
  .hero-cards-track .hero-card:nth-child(3) { display: block; }

  .hero-cards-track {
    width: 100%;
    justify-content: flex-start;
    align-items: center;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 10px;
    box-sizing: border-box;
    gap: 10px;
  }
  .hero-cards-track::-webkit-scrollbar { display: none; }

  .hero-card {
    scroll-snap-align: center;
    height: var(--card-h);
    width: var(--card-w);
  }

  .hero-dots-mobile { display: flex; }
}

/* ================================================
   News Cards — slider ultime news (stessa card 9:16 dell'hero)
================================================ */
.news-cards {
  --card-h: 460px;
  --card-w: calc(var(--card-h) * 9 / 16);
  --card-gap: 16px;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 0 32px;
}

.news-cards-track {
  display: flex;
  gap: var(--card-gap);
  will-change: transform;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  z-index: 1;
}

@media (hover: hover) {
  .news-cards-track.has-hover .hero-card:not(.is-hovered) {
    opacity: 0.45;
    transform: scale(0.97);
  }
}

.news-cards-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.news-cards-arrow:hover:not(:disabled) { background: rgba(255, 255, 255, 0.22); }
.news-cards-arrow:disabled { opacity: 0.25; cursor: default; }
.news-cards-arrow--prev { left: 20px; }
.news-cards-arrow--next { right: 20px; }

.news-dots-mobile {
  display: none;
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  gap: 8px;
  z-index: 5;
}

@media (max-width: 900px) {
  .news-cards { --card-h: 400px; }
}

@media (max-width: 640px) {
  .news-cards {
    --card-h: 340px;
    --card-w: min(calc(var(--card-h) * 9 / 16), calc(100vw - 40px));
    padding: 20px 0 40px;
    justify-content: flex-start;
  }
  .news-cards-track {
    width: 100%;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 10px;
    box-sizing: border-box;
    gap: 10px;
    transition: none;
    transform: none !important;
  }
  .news-cards-track::-webkit-scrollbar { display: none; }
  .news-cards-track .hero-card { scroll-snap-align: center; }
  .news-cards-arrow { display: none; }
  .news-dots-mobile { display: flex; }
}

.btn--outline-white {
  background-color: transparent;
  color: var(--c-white);
  border: 2px solid rgba(255, 255, 255, 0.45);
}

.btn--outline-white:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--c-white);
  border-color: rgba(255, 255, 255, 0.7);
}

/* ================================================
   Stats strip
================================================ */
/* ================================================
   Sponsor Ticker
================================================ */
.sponsor-ticker {
  overflow: hidden;
  background: #fff;
  border-top: 1px solid #eaecf0;
  border-bottom: 1px solid #eaecf0;
  padding: 16px 0;
  display: none; /* mostrato via JS solo se ci sono sponsor */
}

.sponsor-ticker-track {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: max-content;
  animation: spt-scroll 30s linear infinite;
  will-change: transform;
}

.sponsor-ticker-track:hover { animation-play-state: paused; }

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

.spt-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 100px;
  padding: 0 16px;
  box-sizing: border-box;
  text-decoration: none;
  flex-shrink: 0;
  border-right: 1px solid #eaecf0;
}
.spt-item:last-child { border-right: none; }

.spt-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.spt-item:hover .spt-logo { filter: none; opacity: 1; }

/* ================================================
   Sezione con titolo standard
================================================ */
.section-heading {
  margin-bottom: 40px;
}

.section-heading h2 { margin-bottom: 8px; }

.section-heading p {
  color: #555;
  font-size: 16px;
}

.section-heading--center { text-align: center; }

/* ================================================
   Card partita — dark style
================================================ */
.partite-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.partita-card {
  background: linear-gradient(160deg, #0d2240 0%, #07111e 100%);
  border-radius: 16px;
  padding: 26px 22px 20px;
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.32);
}

.partita-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 100px;
  background: linear-gradient(to top, rgba(0,130,200,0.08), transparent);
  pointer-events: none;
}

.partita-card--home::after {
  background: linear-gradient(to top, rgba(200,30,90,0.10), transparent);
}

/* Sport icon chip */
.pc-icon {
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,0.09);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  flex-shrink: 0;
}

/* Meta: category + date */
.pc-meta { margin-bottom: 20px; }

.pc-cat {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  margin-bottom: 3px;
}

.pc-datetime {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.58);
  letter-spacing: 0.04em;
}

/* Team logos */
.pc-logos {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.pc-logo-wrap {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.94);
  border-radius: 8px;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pc-logo-wrap img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  image-rendering: auto;
}

.pc-logo-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  background: rgba(0,0,0,0.06);
}

/* Team names stacked */
.pc-teams {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-bottom: 16px;
}

.pc-team-name {
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.05;
  color: rgba(255,255,255,0.50);
  letter-spacing: -0.01em;
}

.pc-team-bold {
  font-weight: 800;
  color: #fff;
  font-size: clamp(26px, 2.7vw, 36px);
}

/* Footer CTA */
.pc-footer { margin-top: auto; }

.pc-cta {
  display: block;
  width: 100%;
  padding: 9px 14px;
  border: 1.5px solid rgba(255,255,255,0.20);
  border-radius: 6px;
  color: rgba(255,255,255,0.60);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.pc-cta:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.38);
  color: #fff;
}

/* Countdown */
.countdown {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.10);
}

.countdown-unit { text-align: center; }

.countdown-num {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.countdown-label {
  font-size: 9px;
  font-weight: 600;
  color: rgba(255,255,255,0.38);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ================================================
   Girone — featured card + classifica
================================================ */

/* Layout row */
.girone-row {
  display: flex;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 36px;
}

.girone-featured { flex: 1; min-width: 0; }

.girone-classifica { width: 290px; flex-shrink: 0; }

/* Altre categorie label */
.partite-altri-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 14px;
}

/* ---- Featured card ---- */
.gf-card {
  background: linear-gradient(160deg, #0d2240 0%, #07111e 100%);
  border-radius: 16px;
  padding: 26px 28px 22px;
  color: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.32);
  box-sizing: border-box;
}

.gf-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 120px;
  background: linear-gradient(to top, rgba(0,130,200,0.10), transparent);
  pointer-events: none;
}

.gf-card--home::after {
  background: linear-gradient(to top, rgba(203,33,104,0.12), transparent);
}

/* Top row */
.gf-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
}

.gf-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
}

.gf-badge--cat  { background: rgba(255,255,255,0.10); color: rgba(255,255,255,0.65); }
.gf-badge--home { background: rgba(203,33,104,0.25);  color: #f07aaa; }
.gf-badge--away { background: rgba(0,140,253,0.20);   color: #70c2ff; }

.gf-date {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* Body: two teams + VS */
.gf-body {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  margin-bottom: 20px;
}

.gf-team {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.gf-team--opp { align-items: flex-end; text-align: right; }

.gf-logo {
  width: 54px;
  height: 54px;
  background: rgba(255,255,255,0.92);
  border-radius: 10px;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gf-logo-img { max-width: 100%; max-height: 100%; object-fit: contain; }
.gf-logo-img--init {
  font-size: 22px;
  font-weight: 700;
  color: #0d2240;
}

.gf-tname {
  font-family: var(--font-heading);
  font-size: clamp(17px, 2.2vw, 26px);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.05;
  color: rgba(255,255,255,0.45);
  letter-spacing: -0.01em;
}

.gf-tname--vv { color: #fff; font-weight: 700; }

.gf-vs {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 700;
  color: rgba(255,255,255,0.12);
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

/* Venue */
.gf-venue {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255,255,255,0.40);
  margin-bottom: 16px;
}

/* Countdown */
.gf-countdown {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.gf-cd-unit {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 8px 14px;
  text-align: center;
  min-width: 54px;
}

.gf-cd-num {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.01em;
}

.gf-cd-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.10em;
  color: rgba(255,255,255,0.30);
  margin-top: 3px;
}

.gf-empty {
  padding: 40px 20px;
  color: rgba(255,255,255,0.40);
  font-size: 14px;
  text-align: center;
}

/* ---- Classifica panel ---- */
.gc-panel {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.gc-header {
  padding: 16px 18px 12px;
  border-bottom: 1px solid #f0f0f2;
}

.gc-title {
  display: block;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-navy);
}

.gc-sub {
  display: block;
  font-size: 11px;
  color: #aaa;
  margin-top: 1px;
}

.gc-table {
  width: 100%;
  border-collapse: collapse;
  flex: 1;
}

.gc-table thead th {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #bbb;
  padding: 8px 12px 6px;
  border-bottom: 1px solid #f0f0f2;
  text-align: left;
}

.gc-table thead th.gc-stat,
.gc-table thead th.gc-pts,
.gc-table thead th.gc-pos { text-align: center; }

.gc-table td {
  padding: 10px 12px;
  font-size: 13px;
  border-bottom: 1px solid #f6f6f8;
  color: #333;
}

.gc-table tbody tr:last-child td { border-bottom: none; }

.gc-pos  { text-align: center; width: 28px; color: #aaa; font-size: 11px; }
.gc-name { display: flex; align-items: center; gap: 7px; font-weight: 500; }
.gc-stat { text-align: center; width: 28px; color: #777; }
.gc-pts  { text-align: center; width: 36px; font-weight: 700; color: #111; }

.gc-logo {
  width: 20px; height: 20px;
  object-fit: contain; border-radius: 3px; flex-shrink: 0;
}

.gc-logo-init {
  width: 20px; height: 20px;
  background: #e8edf2; border-radius: 3px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: #555; flex-shrink: 0;
}

.gc-row--vv td             { background: rgba(5,48,99,0.04); }
.gc-row--vv .gc-name       { font-weight: 700; color: var(--c-navy); }
.gc-row--vv .gc-pts        { color: var(--c-azzurro); }

.gc-footer {
  padding: 9px 16px;
  font-size: 11px;
  color: #ccc;
  border-top: 1px solid #f0f0f2;
  text-align: right;
}

/* Mobile */
@media (max-width: 768px) {
  .girone-row {
    flex-direction: column;
  }
  .girone-classifica { width: 100%; }
}

/* ================================================
   News grid
================================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  background-color: var(--c-white);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--t), box-shadow var(--t);
}

@media (hover: hover) {
  .news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
  }
}

.news-card-img {
  height: 180px;
  background-color: var(--c-gray-light);
  overflow: hidden;
  position: relative;
}

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

.news-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--c-navy) 0%, #0a4a8c 100%);
  color: rgba(255, 255, 255, 0.3);
  font-size: 40px;
}

.news-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.news-card-date { font-size: 12px; color: #aaa; }

.news-card-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--c-navy);
  margin-bottom: 8px;
  line-height: 1.35;
}

.news-card-excerpt {
  font-size: 14px;
  color: #666;
  line-height: 1.55;
  flex: 1;
  margin-bottom: 16px;
}

.news-card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-azzurro);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color var(--t);
}

.news-card-link:hover { color: var(--c-azzurro-dark); }

/* ================================================
   News page — wrapper sfondo hero-bg (page-header + section)
================================================ */
.news-bg-wrap {
  background: #020d1a;
  position: relative;
  overflow: hidden;
}
.news-bg-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-bg) center top / cover no-repeat;
  opacity: 0.28;
  z-index: 0;
  pointer-events: none;
}
.news-bg-wrap > * {
  position: relative;
  z-index: 1;
}
.news-bg-wrap .page-header {
  background: transparent;
  padding-bottom: 0;
}
.news-bg-wrap .page-header h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  text-shadow: 0 2px 16px rgba(0,0,0,0.55);
  letter-spacing: -0.01em;
}
.news-bg-wrap .page-header .breadcrumb,
.news-bg-wrap .page-header .breadcrumb a {
  color: rgba(255,255,255,0.65);
}

/* Dark-mode overrides per filtri e paginazione */
.section--news-bg .filter-btn {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.72);
}
.section--news-bg .filter-btn:hover {
  background: rgba(255,255,255,0.13);
  border-color: var(--c-azzurro);
  color: #fff;
}
.section--news-bg .filter-btn.is-active {
  background: var(--c-azzurro);
  border-color: var(--c-azzurro);
  color: #fff;
}
.section--news-bg .news-pagination-btn {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.85);
}
.section--news-bg .news-pagination-btn:hover:not(:disabled) {
  background: rgba(255,255,255,0.15);
  border-color: var(--c-azzurro);
}
.section--news-bg .news-pagination-info { color: rgba(255,255,255,0.5); }

/* ================================================
   News page — grid 9:16 con paginazione
================================================ */
.news-page-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 8px 0 0;
}

.news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
  padding-bottom: 8px;
}

.news-pagination-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 8px;
  border: 1px solid var(--c-border);
  background: var(--c-white);
  color: var(--c-navy);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--t), border-color var(--t);
}
.news-pagination-btn:hover:not(:disabled) {
  background: var(--c-gray-light);
  border-color: var(--c-azzurro);
}
.news-pagination-btn:disabled { opacity: 0.35; cursor: default; }

.news-pagination-info {
  font-size: 14px;
  color: #666;
  min-width: 80px;
  text-align: center;
}

@media (max-width: 900px) {
  .news-page-cards { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .news-page-cards { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

/* ================================================
   Squadre grid
================================================ */
.squadre-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.squadra-card {
  background-color: var(--c-white);
  border-radius: var(--card-radius);
  padding: 24px 16px;
  text-align: center;
  box-shadow: var(--card-shadow);
  text-decoration: none;
  display: block;
  transition: transform var(--t), box-shadow var(--t);
}

@media (hover: hover) {
  .squadra-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
  }
}

.squadra-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-navy), var(--c-azzurro));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  color: var(--c-white);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
}

.squadra-card-name {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--c-navy);
  margin-bottom: 4px;
}

.squadra-card-desc { font-size: 12px; color: #888; }

/* ================================================
   Gallery preview
================================================ */
.gallery-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.gallery-preview-item {
  aspect-ratio: 1;
  background-color: var(--c-gray-light);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.gallery-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-preview-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

@media (hover: hover) {
  .gallery-preview-item:hover img { transform: scale(1.05); }
}

/* ================================================
   Maglia teaser — "in arrivo", dinamico ma senza immagine reale.
   #magliaTeaserContent è pensato per essere sostituito 1:1 con
   l'iframe quando sarà pronto (vedi commento in index.html).
================================================ */
.maglia-teaser {
  background: linear-gradient(160deg, #0F172A 0%, var(--c-navy) 100%);
  padding-bottom: 56px;
  overflow: hidden;
  position: relative;
}

.maglia-ticker {
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 0;
  margin-bottom: 48px;
}
.maglia-ticker-track {
  display: flex;
  width: max-content;
  gap: 10px;
  animation: maglia-scroll 22s linear infinite;
  white-space: nowrap;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.maglia-ticker-track span { color: var(--c-magenta); margin: 0 10px; }
@keyframes maglia-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.maglia-teaser-body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.maglia-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 340px;
  height: 340px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0, 140, 253, 0.35) 0%, rgba(203, 33, 104, 0.18) 45%, transparent 72%);
  filter: blur(6px);
  animation: maglia-pulse 3.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes maglia-pulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(0.92); }
  50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.05); }
}

.maglia-silhouette {
  position: relative;
  z-index: 1;
  width: 140px;
  height: 140px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 24px;
  animation: maglia-float 4.5s ease-in-out infinite;
}
@keyframes maglia-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.maglia-teaser-title {
  position: relative;
  z-index: 1;
  color: #fff;
  margin-bottom: 14px;
}

.maglia-teaser-subtitle {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
  line-height: 1.5;
}

.maglia-teaser-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-azzurro);
  margin-bottom: 32px;
}
.maglia-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-azzurro);
  animation: maglia-blink 1.6s ease-in-out infinite;
}
@keyframes maglia-blink {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 140, 253, 0.5); }
  50%      { opacity: 0.4; box-shadow: 0 0 0 6px rgba(0, 140, 253, 0); }
}

.maglia-countdown {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
}
.maglia-countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 56px;
  padding: 10px 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 0 rgba(0, 140, 253, 0.35);
  animation: maglia-countdown-glow 3.2s ease-in-out infinite;
}
@keyframes maglia-countdown-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 140, 253, 0); }
  50%      { box-shadow: 0 0 18px 0 rgba(0, 140, 253, 0.35); }
}
.maglia-countdown-num {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.maglia-countdown-label {
  margin-top: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.maglia-countdown-sep {
  color: var(--c-magenta);
  font-size: 22px;
  font-weight: 800;
  transform: translateY(-8px);
}
.maglia-countdown.is-done .maglia-countdown-item {
  animation: none;
  box-shadow: 0 0 18px 0 rgba(203, 33, 104, 0.5);
  border-color: var(--c-magenta);
}

@media (max-width: 640px) {
  .maglia-glow { width: 240px; height: 240px; }
  .maglia-silhouette { width: 100px; height: 100px; }
  .maglia-countdown { gap: 8px; }
  .maglia-countdown-item { min-width: 46px; padding: 8px 4px; }
  .maglia-countdown-num { font-size: 22px; }
}

/* ================================================
   Sponsor — homepage (Gold in evidenza + ticker Silver/Bronze,
   stessi componenti di /sponsor, solo un po' di respiro in più
   per stare vicino alle card gold invece che come divider di pagina)
================================================ */
#sponsorSection .sponsor-ticker { margin-top: 32px; }

/* ================================================
   CTA Banner ("Vieni a giocare con noi")
================================================ */
.cta-banner {
  background-color: var(--c-navy);
  padding: 64px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner h2 { color: var(--c-white); margin-bottom: 16px; }
.cta-banner p { color: rgba(255, 255, 255, 0.7); margin-bottom: 32px; font-size: 17px; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-banner .btn--primary { margin-right: 12px; }

/* Pallone decorativo */
.deco-ball {
  position: absolute;
  opacity: 0.06;
  pointer-events: none;
  animation: ball-float 4s ease-in-out infinite;
}

@keyframes ball-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ================================================
   Tabella calendario / risultati
================================================ */
.table-responsive { overflow-x: auto; }

.partite-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.partite-table th {
  background-color: var(--c-navy);
  color: var(--c-white);
  padding: 12px 16px;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.partite-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--c-gray-light);
  vertical-align: middle;
}

.partite-table tr:last-child td { border-bottom: none; }
.partite-table tr:hover td { background-color: rgba(0, 140, 253, 0.04); }

/* ================================================
   Calendario — tab + card partita/risultato
================================================ */
.cal-tabs-wrap {
  background: var(--c-white);
  border-bottom: 1px solid #e8e8ee;
  position: sticky;
  top: 56px;
  z-index: 40;
}

.cal-tabs {
  display: flex;
  gap: 4px;
  padding: 12px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.cal-tab {
  padding: 10px 22px;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  color: #777;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.cal-tab:hover { color: var(--c-navy); background-color: rgba(0, 140, 253, 0.06); }
.cal-tab.is-active { background-color: var(--c-navy); color: var(--c-white); }

.cal-panel.is-hidden { display: none; }

.match-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.match-card {
  background: var(--c-white);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow var(--t), transform var(--t);
}
@media (hover: hover) {
  .match-card:hover { transform: translateY(-3px); box-shadow: var(--card-shadow-hover); }
}

.match-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.match-card-cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
  white-space: nowrap;
}

.match-card-date {
  font-size: 12px;
  color: #888;
  font-weight: 500;
  white-space: nowrap;
}

.match-card-teams {
  display: flex;
  align-items: center;
  gap: 10px;
}

.match-card-team {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.match-card-team-logo {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: contain;
  flex-shrink: 0;
  background: var(--c-gray-light);
  padding: 3px;
  box-sizing: border-box;
}

.match-card-team span {
  font-size: 14px;
  font-weight: 500;
  color: #444;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-card-team--vv span { font-weight: 700; color: var(--c-navy); }

.match-card-vs {
  font-size: 11px;
  font-weight: 700;
  color: #bbb;
  flex-shrink: 0;
}

.match-card-score {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--c-navy);
  flex-shrink: 0;
}
.match-card-score--vittoria { color: #1a8a2e; }
.match-card-score--sconfitta { color: var(--c-magenta); }

.match-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f3;
}

.match-card-venue {
  font-size: 12px;
  color: #999;
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.match-card-venue svg { flex-shrink: 0; }

.match-grid-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: #888;
  padding: 48px 24px;
}

/* Sponsor sopra il singolo articolo — fino a 3 loghi scelti in admin,
   stessa dimensione per tutti e sempre interi (object-fit:contain,
   mai ritagliati anche se il logo originale è più grande). */
.art-sponsors {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 96px;
  max-width: 1080px;
  margin: 0 auto 24px;
}
.art-sponsors:empty { display: none; }

.art-sponsors-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 130px;
  height: 72px;
  text-decoration: none;
}

.art-sponsors-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transform: scale(1.8);
}

@media (max-width: 640px) {
  .art-sponsors {
    gap: clamp(10px, 5vw, 40px);
    margin-bottom: 20px;
    flex-wrap: nowrap;
  }
  .art-sponsors-item {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
    max-width: 100px;
    height: 56px;
  }
}

/* ================================================
   News dettaglio — split a due colonne: copertina 9:16 sticky a
   sinistra, articolo (titolo + testo) a destra. Solo la colonna di
   testo scorre; l'immagine resta agganciata finché il testo non
   supera la sua altezza. Su mobile collassa in una colonna, immagine
   centrata e non sticky.
================================================ */
.article-content {
  max-width: 1080px;
  margin: 0 auto;
}

.article-split {
  display: grid;
  grid-template-columns: minmax(280px, 400px) 1fr;
  gap: 56px;
  align-items: start;
}

.article-media-col {
  position: sticky;
  top: 32px;
}

.article-hero-media {
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow-hover);
  background: var(--c-gray-light);
}
.article-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-cover-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--c-navy) 0%, #0a4a8c 100%);
  font-size: 56px;
}

.article-text-col h1 { margin-bottom: 16px; }
.article-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.article-date { font-size: 13px; color: #888; }

.article-body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--c-text);
}

.article-body p { margin-bottom: 20px; }
.article-body h2 { margin: 32px 0 16px; }
.article-body h3 { margin: 24px 0 12px; }

@media (max-width: 860px) {
  .article-split { display: block; }
  .article-media-col { position: static; max-width: 260px; margin: 0 auto 28px; }
  .article-text-col { text-align: center; }
  .article-meta { justify-content: center; }
  .article-body { text-align: left; }
}

/* Articoli correlati — stessa card 9:16 usata in hero/news, non più
   il vecchio thumb orizzontale */
.related-section { max-width: 1080px; margin: 0 auto; }
.related-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.news-page-cards .hero-card,
.related-cards .hero-card {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  flex-shrink: unset;
}
@media (max-width: 640px) {
  .related-cards { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* ================================================
   Galleria lightbox
================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.gallery-item {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}

@media (hover: hover) {
  .gallery-item:hover img { transform: scale(1.06); }
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
}

.lightbox.is-open { display: flex; }

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--c-white);
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity var(--t);
}

.lightbox-close:hover { opacity: 1; }

/* ================================================
   Form "Vieni a giocare con noi"
================================================ */
.form-wrapper {
  max-width: 640px;
  margin: 0 auto;
}

.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-navy);
  margin-bottom: 6px;
}

.form-label .required { color: var(--c-magenta); margin-left: 2px; }

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--c-text);
  background-color: var(--c-white);
  border: 2px solid #e0e0e8;
  border-radius: 6px;
  transition: border-color var(--t), box-shadow var(--t);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--c-azzurro);
  box-shadow: 0 0 0 3px rgba(0, 140, 253, 0.12);
}

.form-textarea { resize: vertical; min-height: 120px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ================================================
   Contatti
================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(0, 140, 253, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--c-azzurro);
}

.contact-info-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--c-navy);
  margin-bottom: 4px;
}

.contact-info-value { font-size: 14px; color: #666; }

.map-embed {
  width: 100%;
  height: 380px;
  border-radius: var(--card-radius);
  border: none;
  background-color: var(--c-gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 14px;
}

/* ================================================
   Sponsor page
================================================ */
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
}

.sponsor-card {
  background-color: var(--c-white);
  border-radius: var(--card-radius);
  padding: 32px 24px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  min-height: 140px;
  text-decoration: none;
  transition: box-shadow var(--t), transform var(--t);
}

@media (hover: hover) {
  .sponsor-card:hover { transform: translateY(-3px); box-shadow: var(--card-shadow-hover); }
}

.sponsor-card-name { font-size: 13px; color: #aaa; font-weight: 500; }

/* I loghi sponsor sono sempre file quadrati (normalizzati dall'editor in admin),
   quindi il box del logo è quadrato: niente più margini laterali morti. */
.sponsor-card-logo { aspect-ratio: 1 / 1; object-fit: contain; display: block; }

/* ---- Livelli Gold / Silver / Bronze ---- */
.sponsor-tier { margin-bottom: 64px; }
.sponsor-tier:last-child { margin-bottom: 0; }

.sponsor-tier-head {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  text-align: center;
}

.sponsor-tier-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 999px;
}
.sponsor-tier-badge--gold   { background: #f5e3ab; color: #7a5c00; }
.sponsor-tier-badge--silver { background: #e4e7ec; color: #4a5568; }
.sponsor-tier-badge--bronze { background: #eccba5; color: #7a4620; }

.sponsor-tier-sub { font-size: 14px; color: #888; }

.sponsor-grid--gold {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  max-width: 900px;
  margin: 0 auto;
}
.sponsor-card--gold {
  padding: 32px;
  border: 1px solid #e8d38c;
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.15);
}
.sponsor-card--gold .sponsor-card-logo { width: 180px; }

.sponsor-grid--silver { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.sponsor-card--silver { padding: 24px; }
.sponsor-card--silver .sponsor-card-logo { width: 140px; }

.sponsor-grid--bronze { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.sponsor-card--bronze { padding: 20px; }
.sponsor-card--bronze .sponsor-card-logo { width: 110px; }

@media (hover: hover) {
  .sponsor-card--gold:hover   { box-shadow: 0 10px 28px rgba(212, 175, 55, 0.25); }
  .sponsor-card--silver:hover { box-shadow: 0 10px 28px rgba(148, 163, 184, 0.3); }
  .sponsor-card--bronze:hover { box-shadow: 0 10px 28px rgba(205, 127, 50, 0.3); }
}

.sponsor-tier-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 28px;
  color: #999;
  font-size: 14px;
  border: 1px dashed #ddd;
  border-radius: 12px;
}
.sponsor-tier-empty a { color: var(--c-azzurro); font-weight: 600; }

/* ================================================
   Filtro categorie (calendario / news)
================================================ */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.filter-btn {
  padding: 7px 18px;
  border-radius: 999px;
  border: 2px solid var(--c-gray-light);
  background-color: var(--c-white);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  transition: all var(--t);
}

.filter-btn:hover { border-color: var(--c-azzurro); color: var(--c-azzurro); }
.filter-btn.is-active { background-color: var(--c-navy); border-color: var(--c-navy); color: var(--c-white); }

/* ================================================
   Categoria accordion (squadre mobile)
================================================ */
.categoria-section { margin-bottom: 56px; }
.categoria-section:last-child { margin-bottom: 0; }

.categoria-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--c-azzurro);
}

.categoria-header h2 { margin-bottom: 0; }

/* ================================================
   Risultato partita
================================================ */
.risultato {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--c-navy);
}

.risultato--vittoria { color: #1a8a2e; }
.risultato--sconfitta { color: var(--c-magenta); }
.risultato--pareggio { color: #888; }

/* ================================================
   Mobile topbar
================================================ */
.mobile-topbar {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 260;
  background: #020d1a;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-direction: column;
}

/* Riga 1: hamburger + logo + nome (tutto un unico tasto) */
.mtb-bar {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.mtb-ham-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.mtb-identity {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.mtb-tv-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 54px;
  background: none;
  border: none;
  color: var(--c-magenta);
  cursor: pointer;
  flex-shrink: 0;
  padding: 0 14px 0 0;
  transition: color 0.2s;
}
.mtb-tv-btn:active { color: rgba(203,33,104,0.6); }


.mtb-ham {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}
.mtb-line {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.mtb-ham-btn.is-open .mtb-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mtb-ham-btn.is-open .mtb-line:nth-child(2) { opacity: 0; }
.mtb-ham-btn.is-open .mtb-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mtb-logo {
  width: 34px; height: 34px;
  object-fit: contain;
  flex-shrink: 0;
}

.mtb-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  font-family: 'Barlow', sans-serif;
}

/* Riga 2: prossima partita — usa .partite-card desktop */
.mtb-match {
  border-top: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
  padding: 8px 12px 10px;
}
.mtb-match:empty { display: none; }
.mtb-match .partite-card {
  width: 100%;
  border: none;
  background: transparent;
}

/* ================================================
   Pagina Diretta — video streaming + tabellone live
================================================ */
.dt-sponsors-gold {
  overflow: hidden;
  padding: 20px 24px;
}
.dt-sponsors-gold:empty { display: none; }

.dt-sponsors-gold-track {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 36px;
}

@media (min-width: 641px) {
  .dt-sponsors-gold-track { gap: 100px; }
}

.dt-sponsors-gold-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 190px;
  height: 110px;
  overflow: hidden;
  text-decoration: none;
}

.dt-sponsors-gold-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Desktop: zoom leggero sui loghi gold per dargli più peso visivo,
   mantenendo invariata la fascia (stessa larghezza/altezza dello slot). */
@media (min-width: 641px) {
  .dt-sponsors-gold-logo { transform: scale(1.8); }
}

/* Mobile: i loghi si allargano per riempire la riga; se non ci stanno,
   si passa allo scorrimento automatico invece di andare a capo. */
@media (max-width: 640px) {
  .dt-sponsors-gold { padding: 14px 12px; }
  .dt-sponsors-gold-track {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 12px;
  }
  .dt-sponsors-gold-item {
    width: auto;
    flex: 1 1 110px;
    min-width: 110px;
    max-width: 190px;
    height: 100px;
  }
  .dt-sponsors-gold-track.is-scrolling {
    justify-content: flex-start;
    gap: 0;
    width: max-content;
    animation-name: spt-scroll;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
  }
  .dt-sponsors-gold-track.is-scrolling .dt-sponsors-gold-item {
    flex: 0 0 auto;
    width: 150px;
    max-width: none;
    min-width: 0;
    padding: 0 14px;
  }
  .dt-sponsors-gold-logo { transform: scale(1.8); }
}
.dt-live-section { padding-top: 32px; padding-bottom: 20px; }
@media (max-width: 640px) {
  .dt-live-section { padding-bottom: 8px; }
}

.dt-live-grid {
  display: grid;
  grid-template-columns: 7fr 3fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 900px) {
  .dt-live-grid { grid-template-columns: 1fr; }
}

.dt-video-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.dt-side-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.dt-video-msg {
  margin: 0;
  text-align: center;
  font-size: 14px;
  color: var(--c-navy);
  background: var(--c-gray-light);
  border-radius: 10px;
  padding: 10px 16px;
}
.dt-video-msg[hidden] { display: none; }

.dt-video-wrap {
  position: relative;
  padding-top: 56.25%; /* 16:9, relativo alla larghezza della colonna */
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}
.dt-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.dt-video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  text-align: center;
  padding: 24px;
}
.dt-video-placeholder a { color: var(--c-azzurro); font-weight: 600; }

.dt-video-fallback {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  text-decoration: none;
  transition: background-color 0.2s;
}
.dt-video-fallback:hover { background: rgba(0,0,0,0.8); }

.dt-tabellone {
  background: var(--c-navy);
  border-radius: 16px;
  padding: 24px 20px;
  color: #fff;
}

.dt-loading {
  text-align: center;
  color: rgba(255,255,255,0.45);
  font-size: 14px;
  padding: 12px 0;
}

.dt-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.dt-cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.08);
  padding: 4px 10px;
  border-radius: 20px;
}

.dt-live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ff4d4d;
}
.dt-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff4d4d;
  animation: live-pulse 1.4s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .dt-live-dot { animation: none; } }

.dt-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.dt-team {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.dt-team-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.dt-team-logo img { width: 100%; height: 100%; object-fit: contain; }
.dt-team-logo-init { font-size: 20px; font-weight: 700; color: rgba(255,255,255,0.6); }
.dt-team-name { font-size: 13px; font-weight: 600; text-align: center; }
.dt-team-sets { font-size: 32px; font-weight: 800; font-family: var(--font-heading); }

.dt-vs-col {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.dt-vs-label { font-size: 10px; color: rgba(255,255,255,0.35); text-transform: uppercase; letter-spacing: .08em; }
.dt-current-score { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }

.dt-sets-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 4px;
}
.dt-sets-table th, .dt-sets-table td {
  padding: 8px 6px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.dt-sets-table th {
  color: rgba(255,255,255,0.4);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
}

.dt-meta {
  margin-top: 16px;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

.dt-upcoming-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--c-azzurro);
  text-align: center;
  margin-bottom: 16px;
}
.dt-upcoming-note {
  margin-top: 14px;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  font-style: italic;
}

/* ================================================
   Responsive sidebar + hero
================================================ */
@media (max-width: 900px) {
  :root { --sidebar-w: 0px; --topbar-h: 54px; }

  .site-header {
    width: 260px;
    transform: translateX(-100%);
  }

  .site-header.is-open { transform: translateX(0); }

  /* topbar sostituisce hamburger floating */
  .sidebar-toggle { display: none !important; }
  .mobile-topbar  { display: flex; }
  .sidebar-logo   { display: flex; justify-content: center; align-items: center; }

  /* Sidebar mobile — tutto centrato verticalmente */
  .site-header {
    overflow-y: auto;
    padding-top: 0;
    height: 100svh;
    justify-content: center;
  }
  .site-header::before { display: none; }
  .sidebar-nav {
    flex: none;
    overflow-y: visible;
    padding: 0;
    width: 100%;
  }
  .sidebar-nav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0;
  }
  .sidebar-nav-list > li { width: 100%; }
  .sidebar-nav-link,
  .sidebar-nav-trigger {
    font-size: 21px;
    padding: 10px 24px;
    border-left: none;
    text-align: center;
    justify-content: center;
    background: none;
  }
  .sidebar-nav-link:hover,
  .sidebar-nav-trigger:hover { background: none; border-left: none; }
  .sidebar-nav-link.is-active { border-left: none; }
  .sidebar-nav-item.is-open > .sidebar-nav-trigger { background: none; border-left: none; }
  .sidebar-flyout-link {
    padding: 8px 0;
    font-size: 14px;
    text-align: center;
    display: block;
  }
  .sidebar-flyout {
    position: static;
    width: 100%;
    height: auto;
    box-shadow: none;
    background-color: transparent;
    padding: 0 0 4px;
  }
  .sidebar-flyout-title { display: none; }
  /* CTA stesso font size, subito sotto Contatti */
  .sidebar-cta {
    padding: 8px 24px 0;
    display: flex;
    justify-content: center;
  }
  .sidebar-cta-btn {
    font-size: 21px;
    padding: 10px 28px;
    width: auto;
    line-height: 1.2;
  }
  /* Social spostati su, ingranditi */
  .sidebar-bottom {
    border-top: none;
    padding: 20px 24px 0;
    justify-content: center;
    gap: 28px;
  }
  .sidebar-social-link svg { width: 26px; height: 26px; }

  main { margin-left: 0; padding-top: var(--topbar-h); }
  footer.site-footer { margin-left: 0; }

  .first-screen { height: auto; }

  /* Flyout inline su mobile */
  .sidebar-flyout {
    position: static;
    width: 100%;
    height: auto;
    box-shadow: none;
    background-color: transparent;
    padding: 2px 0 8px;
  }

}

@media (max-width: 768px) {
  .footer-main { align-items: center; padding: 28px 0; }
  .footer-links { display: none; }
  .footer-side { display: contents; }
  .footer-social { order: 2; }
  .footer-email { order: 3; flex-basis: 100%; }
}

/* ================================================
   Responsive pagine
================================================ */
@media (max-width: 768px) {
  .hero-title { font-size: 36px; }
  .hero-subtitle { font-size: 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { padding: 0 16px; }
  .stat-item:nth-child(2n+1) { border-left: none; }
  .stat-item:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 32px; margin-top: 32px; }
  .news-grid { grid-template-columns: 1fr; }
  .squadre-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gallery-preview-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .partite-grid { grid-template-columns: repeat(2, 1fr); }
  .pc-team-name { font-size: 20px; }
  .pc-team-bold { font-size: 24px; }
}

@media (max-width: 560px) {
  .squadre-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-number { font-size: 36px; }
  .partite-grid { grid-template-columns: 1fr; }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  :root {
    --section-gap: 48px;
  }

  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  h3 { font-size: 18px; }

  .splash-logo {
    width: 120px;
    height: 120px;
  }
}
