/* =============================================
   MISSIONE MONDIALI — DASHBOARD CSS
   ============================================= */

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

:root {
  --accent-dot: #3a7bd5;	
  --navy:         #040d25;
  --blue-dark:    #071236;
  --blue-mid:     #0a1a50;
  --blue-glow:  #1a3a8f;
  --blue-card:    rgba(8, 18, 58, 0.82);
  --blue-card-solid: #08123a;
  --blue-border:  rgba(26, 58, 143, 0.5);
  --card-border:#1e3a7a;
  --gold:         #f5a623;
  --gold-light:   #ffd166;
  --gold-dark:    #c07a00;
  --white:        #ffffff;
  --text-muted:   #7a9acb;
  --sidebar-w:    240px;
  --green:        #2ecc71;
  --blue-badge:   #1a3a8f;
  --sportbet-orange	#ec6728;
    
  
}

html, body {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  font-family: 'Barlow', sans-serif;
  color: var(--white);
  overflow-x: hidden;
}

/* =============================================
   BACKGROUND
   ============================================= */

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.bg-img {
  position: absolute;
  inset: 0;
  background-image: url('/external_cms/SPORTBET/promo/desktop/missione-mondiali/bg-trasparenza.webp');
  background-size: cover;
  background-position: -7vw 27%;
  background-repeat: no-repeat;
  
}



/* =============================================
   LAYOUT
   ============================================= */

.layout {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* =============================================
   SIDEBAR
   ============================================= */

.sidebar-placeholder {
    width:13%;
    flex-shrink: 0;
    /* Non serve scrivere altro, è invisibile ma occupa spazio */
}


.sidebar {
  width: 13%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 28px 18px 24px;
  position: fixed;
  margin-top: 17%;
  overflow-y: hidden;
}

/* Logo */
.sidebar__logo {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.logo-mission {
  font-family: 'Barlow Condensed', sans-serif;
  font-style: italic;
  font-weight: 900;
  font-size: 28px;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.5px;
}

.logo-mondiali {
  font-family: 'Barlow Condensed', sans-serif;
  font-style: italic;
  font-weight: 900;
  font-size: 36px;
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 60%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 0.95;
  letter-spacing: -1px;
  filter: drop-shadow(0 2px 6px rgba(245,166,35,0.4));
}

.logo-tagline {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Trophy art */
.sidebar__trophy {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px 0 20px;
}

.trophy-glow {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,166,35,0.25) 0%, transparent 70%);
  pointer-events: none;
}

.trophy-emoji {
  font-size: 80px;
  filter: drop-shadow(0 0 20px rgba(245,166,35,0.6));
  animation: float 3.5s ease-in-out infinite;
}

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

/* Nav */
.sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  text-decoration: none;
  color:#ec6728;
  font-size: 1.3em;
  letter-spacing: 0.3px;
  background: var(--blue-card);
  backdrop-filter: blur(3px);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  position: relative;
  border: 2px solid #ec6728;
}
@media (hover: hover) {
	.nav-item:hover {
	  background: rgba(255,255,255,0.06);
	  color: var(--white);
	}  
	.nav-item:hover::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 3px;
  background: #ec6728;
  border-radius: 0 3px 3px 0;
	}
	
}

.nav-item--active {
  background:#ec6728;
  color: var(--white);
  box-shadow: 0 0 16px rgba(245,166,35,0.08);
}



.nav-item__icon {
  font-size: 18px;
  flex-shrink: 0;
  color: #ec6728; 
}

.nav-item--active .nav-item__icon {
  color: var(--white) !important;
} 

span.nav-item__label {
	font-weight: 600;
}

/* Sfida Speciale */
.sidebar__sfida {
  margin-top: 24px;
  background: linear-gradient(135deg, rgba(245,166,35,0.12), rgba(245,166,35,0.04));
  border: 1px solid rgba(245,166,35,0.35);
  border-radius: 12px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sfida__icon { font-size: 24px; }

.sfida__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sfida__text strong {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--white);
}

.sfida__text span {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.sfida__btn {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.5px;
  padding: 8px 0;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  width: 100%;
}

.sfida__btn:hover {
  background: var(--gold);
  color: #000;
}

/* =============================================
   MAIN CONTENT
   ============================================= */

.race {
	width: 100%;
	
}

.section-hidden {
	display: none !important;
}

.main {
  flex: 1;
  padding: 24px 24px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

/* Grid rows */
.grid-row {
  display: grid;
  gap: 18px;
}

.grid-row--top {
  grid-template-columns: 3fr 1fr;
  align-items: stretch;
}

.grid-row--bottom {
  grid-template-columns: 1fr 1fr;
}

/* =============================================
   CARDS
   ============================================= */

.card {
  background: var(--blue-card);
  border: 1px solid var(--blue-border);
  border-radius: 16px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 50vh;
}

.card__header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.card__header--spaced {
  justify-content: space-between;
  align-items: flex-start;
}

.card__header-icon {
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 1px;
}

.card__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 1px;
  color: var(--white);
  line-height: 1.1;
}

.card__subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.card__link {
  display: inline-block;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.5px;
  padding: 10px 0 2px;
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  transition: color 0.2s;
}

.card__link:hover { color: var(--gold); }

.card__link-inline {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.5px;
  white-space: nowrap;
  transition: color 0.2s;
  margin-top: 4px;
}

.card__link-inline:hover { color: var(--gold); }

/* Espande la card del calendario su tutta la larghezza disponibile */
.card--calendario-full {
  grid-column: 1 / -1 !important; /* Occupa tutte le colonne della griglia */
  min-height: 70vh !important;    /* Opzionale: aumenta l'altezza minima per dare respiro */
}


/* =============================================
   ANIMAZIONI DI ESPANSIONE E COMPARSA
   ============================================= */

/* La card in stato normale */
.card--calendario {
  transition: grid-column 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
              max-height 0.4s ease, 
              box-shadow 0.3s ease;
  will-change: grid-column, max-height;
}

/* 🎯 Stato espanso: si allarga su tutta la larghezza */
.card--calendario-full {
  grid-column: 1 / -1 !important;
  min-height: 70vh !important;
  box-shadow: 0 20px 50px rgba(4, 10, 37, 0.6);
  animation: expand-glow 0.6s ease forwards;
}

/* Animazione di entrata fluida per i contenuti che appaiono */
.fade-in-smooth {
  animation: fadeInSmooth 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInSmooth {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Un leggero bagliore d'oro che accompagna l'espansione delle promozioni */
@keyframes expand-glow {
  0% {
    border-color: var(--blue-border);
  }
  50% {
    border-color: rgba(245, 166, 35, 0.5);
  }
  100% {
    border-color: var(--blue-border);
  }
}


/* =============================================
   DAY CARD
   ============================================= */
   
.days {
	
}
.days__track {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: stretch;
  flex-wrap: nowrap;
  position: relative;
  z-index: 2;
  height: auto;
  flex-wrap: wrap;
  flex-direction: row;
}

.day-card {
  background: linear-gradient(170deg, #0e2060 0%, #081440 100%);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 18px 14px 18px;
  flex: 1;
  min-width: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;

  /* staggered fade-in */
  opacity: 0;
  transform: translateY(24px);
  animation: card-in 0.5s ease forwards;
  animation-delay: var(--delay, 0s);
}

.day-card.day-card--expired {
	filter: grayscale(1);
}

@keyframes card-in {
  to { opacity: 1; transform: translateY(0); }
}

.day-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-dot), transparent);
  opacity: 0.6;
}

.day-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 16px 40px rgba(10,31,92,0.7), 0 0 20px rgba(58,123,213,0.3);
  border-color: rgba(58,123,213,0.6);
}

.day-promo {
	display: flex;
    align-items: center;
    flex-direction: column;
}

/* Special cards */
.day-card--highlight {
  border-color: rgba(245,166,35,0.4);
}

.day-card--highlight::before {
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.7;
}

.day-card--highlight:hover {
  box-shadow: 0 16px 40px rgba(10,31,92,0.7), 0 0 24px rgba(245,166,35,0.3);
  border-color: rgba(245,166,35,0.7);
}

.day-card--active {
  border-color: var(--gold);
  background: linear-gradient(170deg, #1a2f6e 0%, #0c1950 100%);
  box-shadow: 0 0 30px rgba(245,166,35,0.2);
}

.day-card--special::before {
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
  opacity: 1;
}

.day-card--special:hover {
  box-shadow: 0 16px 40px rgba(10,31,92,0.7), 0 0 32px rgba(245,166,35,0.5);
  border-color: var(--gold-light);
}

/* Day label */
.day-card__day-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.2em;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold);
  text-transform: uppercase;
}

.day-card__day-number {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 36px;
  color: var(--white);
  line-height: 1;
  margin-bottom: 10px;
  text-shadow: 0 0 20px rgba(255,255,255,0.2);
}

/* Circle icon */
.day-card__icon {
  width: 80px;
  height: 80px;
 
  background: transparent;
  
  background-size: contain;
  background-repeat: no repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 12px;
  
}


.day-card--highlight .day-card__icon,
.day-card--special {
  border-color: var(--gold);
  box-shadow: 0 0 16px rgba(245,166,35,0.4);
}

.day-elements { display: flex; gap: 25px; flex-direction: column; margin-top: 15px;}


.day-card--inactive .day-elements {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 0; /* Rimuove il margine per centrare meglio */
}

/* Title */
.day-card__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  color: var(--gold);
  margin-bottom: 6px;
  line-height: 1.2;
}

/* Description */
.day-card__desc {
  font-size: 1.2em;
  line-height: 1.4;
  color: #FFF;
  flex-grow: 1;
  margin-bottom: 14px;
}

/* Points badge */
.day-card__points {
  width: 100%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #000;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 12px;
  margin: 0 -14px;
  width: calc(100% + 28px);
  letter-spacing: 0px;
  line-height: 1;
}

.day-card__points span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-top: 2px;
}

.day-card__points--big {
  font-size: 28px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  box-shadow: 0 -4px 20px rgba(245,166,35,0.3);
}


.day-icon_text-container {
	display: grid;
    grid-template-columns: 50px auto;
    align-items: center;
    justify-content: start;
    justify-items: start;
    width: 100%;
    gap: 30px;
	
}

.day-text-block {
	text-align: start;
}

.lock-wrapper {
	display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    flex-direction: column;
}

.countdown-display {
	font-size:1.5em;
	padding: 10px;
	color: var(--text-muted);
}

.day-card-footer__promo-steps {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 28px;
  padding: 30px 10px;
  color: #fff;
  font-family: Arial, sans-serif;
  
}
 
.day-card-footer__promo-steps__step {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  background: linear-gradient(170deg, #0e2060 0%, #081440 100%);
  padding: 20px;
  border-radius: 10px;
  border: 2px solid var(--gold);
}
 
.day-card-footer__promo-steps__icon {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    color: #ff7900;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 700;
    flex-shrink: 0;
}
 
.text h3 {
  margin: 0 0 12px;
  font-size: 1.5em;
  line-height: 1.2;
  font-weight: 800;
}
 
.text p {
  margin: 0;
  font-size: 1em;
  line-height: 1.45;
}
 
.arrow {
  color: #fff;
  font-size: 80px;
  font-weight: 300;
  align-self: center;
}
 
@media (max-width: 900px) {
  .day-card-footer__promo-steps {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .day-card-footer__promo-steps__icon {
	  width: 50px;
	  height: 50px;
  }
  
  .text h3 {
	  font-size: 1.2em;
  }
  
  
  .day-card-footer__promo-steps__step {
	  padding: 5px;
	  width:100%;
  }
  
 
  .arrow {
    display: none;
  }
}

/* =============================================
   DAY SELECTOR (Calendario)
   ============================================= */

.day-selector {
  display: flex;
  align-items: center;
  gap: 6px;
}

.day-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid transparent;
  cursor: pointer;
  flex: 1;
  transition: background 0.2s, border-color 0.2s;
  min-width: 0;
}

.day-pill:hover {
  background: rgba(255,255,255,0.09);
}

.day-pill--active {
  background: transparent;
  border: 2px solid transparent;
  background:
    linear-gradient(var(--blue-card-solid), var(--blue-card-solid)) padding-box,
    linear-gradient(135deg, var(--gold-dark), var(--gold-light), var(--gold)) border-box;
}

.day-pill__dow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.day-pill--active .day-pill__dow {
  color: var(--gold);
}

.day-pill__num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 22px;
  color: var(--white);
  line-height: 1;
}

.day-pill--active .day-pill__num {
  color: var(--gold-light);
}

.day-pill__mon {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.day-selector__arrow {
  background: rgba(255,255,255,0.08);
  border: none;
  color: var(--white);
  font-size: 20px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}

.day-selector__arrow:hover { background: rgba(255,255,255,0.14); }



/* =============================================
   PROMO LIST
   ============================================= */

.promo-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.promo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.promo-row:last-child { border-bottom: none; }

.promo-row__left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.promo-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(26,58,143,0.6);
  border: 1px solid rgba(58,123,213,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.promo-name {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--white);
}

.promo-desc {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}

.promo-time {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Badges */
.dash_badge {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}
.dash_badge--active {
  background: var(--gold);
  color: #000;
}

.daash_badge--incoming {
  background: rgba(26,58,143,0.7);
  color: var(--text-muted);
  border: 1px solid rgba(58,123,213,0.4);
}

/* =============================================
   GIOCATA DEL GIORNO / MAGGIORATE
   ============================================= */

.card--giocata {
  position: relative;
  max-height: 117vh; 
  overflow: hidden; 
  display: flex;
  flex-direction: column;
}

#quotemaggiorate {
  flex: 1;             /* Occupa tutto lo spazio disponibile tra header e bottone */
  overflow-y: auto;    /* Attiva lo scroll verticale solo qui dentro */
  padding-right: 6px;  /* Distanza estetica per non far toccare le quote sulla scrollbar */
  margin-bottom: 12px; /* Spazio controllato prima del bottone */
}

.card--giocata > .bet-btn {
  margin-top: auto;    /* Lo spinge magneticamente sul fondo della card */
  flex-shrink: 0;      /* Impedisce al browser di rimpicciolirlo o schiacciarlo */
}

/* 2. Il "binario" di sfondo (lo teniamo scuro ma visibile per dare contrasto) */
#quotemaggiorate::-webkit-scrollbar-track {
  background: rgba(4, 10, 32, 0.5); 
  border-radius: 3px;
}

/* 3. La barra vera e propria (il cursore che si muove) */
#quotemaggiorate::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold-light), var(--gold)); /* Sfumatura oro */
  border-radius: 3px;
  box-shadow: 0 0 8px rgba(245, 166, 35, 0.5); /* Effetto glow per farla brillare */
}

/* 4. Effetto al passaggio del mouse (diventa ancora più luminosa) */
#quotemaggiorate::-webkit-scrollbar-thumb:hover {
  background: var(--gold-light);
}

/* 5. Supporto per Firefox (standard moderno) */
#quotemaggiorate {
  scrollbar-width: thin;
  scrollbar-color: var(--gold) rgba(4, 10, 32, 0.5);
}

.countdown-box {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}

.countdown-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.countdown-time {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 20px;
  color: var(--gold);
  letter-spacing: 0.5px;
  font-variant-numeric: tabular-nums;
}

/* Multipla box */
.multipla-box {
  background: rgba(4,10,32,0.6);
  border: 1px solid rgba(245,166,35,0.2);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.multipla-box__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.multipla-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 1px;
  color: var(--white);
}

.quota-total {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.quota-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.quota-value {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 28px;
  color: var(--gold-light);
  line-height: 1;
  filter: drop-shadow(0 0 10px rgba(245,166,35,0.4));
}

/* Legs */
.multipla-legs {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.leg {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.leg:last-child { border-bottom: none; }

.leg__flag {
  font-size: 22px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  flex-shrink: 0;
}

.leg__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.leg__info strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
}

.leg__info span {
  font-size: 11px;
  color: var(--text-muted);
}

.leg__odd {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 20px;
  color: var(--gold-light);
  flex-shrink: 0;
}

#quotemaggiorate {
  margin-bottom: 20px;
}

#quotemaggiorate > a {
  text-decoration: none;
}

.quota-maggiorata-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(170deg, #1a2f6e 0%, #0c1950 100%);
  border: 2px solid var(--gold); /* Colore oro per evidenziare la promo */
  border-radius: 10px;
  padding: 16px 10px;
  box-shadow: 0 0 30px rgba(245, 166, 35, 0.2);
  cursor: pointer;
}

.quota-maggiorata-content {
	display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 20px;
}

.qm-badge {
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
  color: #000000;
  font-size: 13px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;

}

.qm-match {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-top: 6px;
}

.qm-market {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 2px;
}

.qm-values {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.qm-old-value {
  font-size: 16px;
  color: #94a3b8;
  text-decoration: line-through; /* Taglia la quota vecchia */
}

.qm-new-value {
  font-size: 24px;
  font-weight: 800;
  color: #3fb950; /* Colore verde per la nuova quota */
}

.qm-new-vincita {
  font-size: 15px;
  color: #FFF;
  margin-top: 5px;
}


/* BOTTONI*/
.bet-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
  border: none;
  border-radius: 8px;
  color: #000;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 2px;
  padding: 14px 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 24px rgba(245,166,35,0.4);
  margin-top: 4px;
  text-decoration: none;
  text-align: center;
}

.info-btn {
  width: auto;
  background: transparent;
  border: none;
  border-radius: 8px;
  font-weight: 900;
  font-size: 1em;
  padding: 5px 10px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  color: #fff;
  border: 2px solid var(--blue-border);
  margin-top: 4px;
  text-transform: uppercase;
}

.bet-btn.calendario {
	width: 30%;
	text-align: center;
}

.bet-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, transparent 60%);
  pointer-events: none;
}

.bet-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(245,166,35,0.55);
}

.bet-disclaimer {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}

/* =============================================
   IFRAME PLACEHOLDERS
   ============================================= */

.iframe-placeholder {
  position: relative;
  flex: 1;
  overflow: hidden;
  min-height: 50vh;
}

.content-iframe {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  border: none;
  background: transparent;
}

.iframe-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: rgba(122,154,203,0.4);
  font-style: italic;
  pointer-events: none;
}

/* =============================================
   STILE PARTITE
   ============================================= */
	.partite-container { flex: 1; overflow-y: auto; padding: 4px 0; }
      .partite-list { display: flex; flex-direction: column; }
      .partita-row { padding: 12px 22px; border-bottom: 1px solid rgba(255,255,255,0.05); transition: background 0.15s; }
      .partita-row:last-child { border-bottom: none; }
      .partita-date { font-size: 10px; font-weight: 600; letter-spacing: 1px; color: #f5a623; text-transform: uppercase; margin-bottom: 5px; font-family: 'Barlow Condensed', sans-serif; }
      .partita-teams { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
      .team-home, .team-away { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 15px; color: #ffffff; letter-spacing: 0.3px; }
      .team-sep { font-size: 10px; font-weight: 600; color: #7a9acb; letter-spacing: 1px; padding: 0 2px; flex-shrink: 0; }
      .partita-odds { display: flex; gap: 6px;}
      .partita-odd { display: flex; flex-direction: column; align-items: center; background: rgba(4, 13, 37, 0.7); border: 1px solid rgba(26, 58, 143, 0.5); border-radius: 6px; padding: 5px 12px; min-width: 52px; transition: border-color 0.2s, background 0.2s; cursor: pointer; }
      .partita-odd .odd-label { font-size: 9px; font-weight: 700; letter-spacing: 1px; color: #7a9acb; text-transform: uppercase; }
      .partita-odd .odd-value { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 16px; color: #ffd166; line-height: 1.2; }
      .partite-loading { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 40px 20px; color: #7a9acb; font-size: 13px; }
      .partite-spinner { width: 18px; height: 18px; border: 2px solid rgba(122,154,203,0.2); border-top-color: #f5a623; border-radius: 50%; animation: partite-spin 0.7s linear infinite; }
      @keyframes partite-spin { to { transform: rotate(360deg); } }
      .partite-error, .partite-empty { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 40px 20px; color: #7a9acb; font-size: 13px; text-align: center; }
      .partite-error { color: #f85149; }
      .partite-error-icon { font-size: 20px; }
      .partite-container::-webkit-scrollbar { width: 4px; }
      .partite-container::-webkit-scrollbar-thumb { background: rgba(26,58,143,0.5); border-radius: 2px;}


/* =============================================
   BOTTOM BANNER
   ============================================= */

.bottom-banner {
  background: linear-gradient(90deg, rgba(8,18,58,0.9), rgba(12,25,80,0.9));
  border: 1px solid rgba(245,166,35,0.25);
  border-radius: 14px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  backdrop-filter: blur(8px);
}

.bottom-banner__star {
  font-size: 28px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(245,166,35,0.5));
}

.bottom-banner p {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
}

.bottom-banner__btn {
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
  border: none;
  border-radius: 8px;
  color: #000;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 2px;
  padding: 13px 28px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 18px rgba(245,166,35,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.bottom-banner__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,166,35,0.5);
}

/* =============================================
   POPUP — CSS
   Usa le stesse variabili del dashboard.css
   ============================================= */


/* ── Trigger button ── */
.popup-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
  border: none;
  border-radius: 8px;
  color: #000;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 1.5px;
  padding: 12px 24px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(245, 166, 35, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.popup-trigger-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, transparent 60%);
  pointer-events: none;
}

.popup-trigger-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(245, 166, 35, 0.5);
}

.popup-trigger-btn:active {
  transform: translateY(0);
}

.popup-trigger-btn__icon {
  font-size: 17px;
}


/* ── Overlay ── */
.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(4, 13, 37, 0.88);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;

  /* hidden by default */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.popup-overlay--visible {
  opacity: 1;
  pointer-events: all;
}

.popup-overlay--visible .popup {
  transform: translateY(0) scale(1);
  opacity: 1;
}


/* ── Popup box ── */
.popup {
  position: relative;
  background: var(--blue-dark);
  border: 1px solid var(--speciale-c1);
  border-radius: 18px;
  overflow: hidden;
  width: 100%;
  height: 95%;
  max-width: 560px;
  box-shadow:
    0 0 0 1px rgba(26, 58, 143, 0.4),
    0 32px 80px rgba(4, 13, 37, 0.8),
    0 0 60px rgba(245, 166, 35, 0.08);

  /* entrance animation */
  transform: translateY(20px) scale(0.97);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.25s ease;
}

.popup-header {
	height: 40px;
	background-color: var(--speciale-c1);
	width: 100%;
}


/* ── Close button ── */
.popup__close {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 10;
  width: 32px;
  height: 32px;
  background: transparent;
  color: #FFF;
  font-size: 2em;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
 
}

.popup__close:hover {
  background: rgba(245, 166, 35, 0.15);
  color: var(--gold);
  border-color: rgba(245, 166, 35, 0.4);
}


/* ── Image ── */
.popup__img-wrap {
  position: relative;
  height: 150px;
  overflow: hidden;
}

.popup__img {
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  margin:auto;
}

.popup__img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(4, 13, 37, 0) 40%,
    rgba(7, 18, 54, 0.95) 100%
  );
  pointer-events: none;
}


/* ── Body ── */
.popup__body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: auto;
  height: 75%;
}

.popup__eyebrow {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.popup__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 30px;
  letter-spacing: -0.5px;
  color: var(--speciale-c1);
  line-height: 1.1;
}

.popup__text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
}

.popup__text + .popup__text {
  margin-top: -4px;
}


/* ── Actions ── */
.popup__actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.popup__btn {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 1.5px;
  border-radius: 8px;
  padding: 12px 24px;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.popup__btn--primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
  color: #000;
  box-shadow: 0 4px 16px rgba(245, 166, 35, 0.35);
  flex: 1;
}

.popup__btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 166, 35, 0.5);
}

.popup__btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.popup__btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--white);
}


/* ── Responsive ── */
@media (max-width: 640px) {
	
	.popup {
		height: 85%;
	}
  .popup__img-wrap {
    height: 150px;
  }

  .popup__body {
    padding: 18px 20px 22px;
	height: calc(85% - 150px);
  }

  .popup__title {
    font-size: 24px;
  }

  .popup__actions {
    flex-direction: column;
  }

  .popup__btn--primary {
    flex: unset;
  }
}




/* =============================================
   SCROLLBAR
   ============================================= */

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb {
  background: rgba(26,58,143,0.6);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(245,166,35,0.4); }

/* =============================================
   RESPONSIVE
   ============================================= */



@media (max-width: 1200px) {
  .layout { flex-direction: column; width:100vw;}
  .sidebar {
    width: 100%;
    min-height: unset;
    height: auto;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 16px;
    gap: 12px;
	margin-top: 0px;
  }
  
  .sidebar__logo {
	  max-width: 100%;
	  margin: auto;
  }
  
  .sidebar__trophy { display: none; }
  .sidebar__nav {
    flex-direction: row;
	flex-wrap: nowrap;
	justify-content: space-evenly;
    margin-bottom: 0;
	width: 100%;
  }
  .grid-row {
    display: flex;
    gap: 18px;
    flex-direction: column;
  }
  .nav-item__label {
	  display: none;
  }
  .card__header {
	  flex-direction: column;
  }
  
   .days {
    overflow: hidden;
  }

  .days__track {
    display: flex;
    gap: 16px;

    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;

    padding: 0 16px 12px;
	flex-wrap: nowrap;
	justify-content: flex-start;
  }

  .days__track::-webkit-scrollbar {
    display: none;
  }

  .day-card {
    flex: 0 0 96%;

    scroll-snap-align: start;
  }
  
  .day-card__day-number {
	  font-size: 2em;
  }
  
  .day-card__day-label {
	  font-size: 0.8em;
  }
  
  .day-card__desc {
	  font-size: 0.8em;
  }
  
  .ountdown-display {
	  font-size: 0.8em;
  }
  
	.info-btn { font-size:0.8em; padding: 10px 10px;}
  
  .bet-btn.calendario {
	    max-width: 100%;
        width: unset;
        padding: 10px 30px;
        text-decoration: none;
        margin: auto;
  }
  
  .sidebar__sfida { display: none; }
  .main { padding: 16px; }
}

/* =============================================
   RACE
   ============================================= */


  /* ── Widget shell ── */
      #race-widget {
        font-family: 'Barlow', sans-serif;
        color: #e6edf3;
        width: 100%;
      }

      .race-widget-inner {
        display: flex;
        flex-direction: column;
        gap: 20px;
		padding: 24px 24px 24px 20px;
      }

      /* ── HERO ── */
      .race-hero {
		position: relative;
		border-radius: 14px;
		overflow: hidden;
		height: 400px;
		display: flex;
		align-items: stretch;
		border: 2px solid transparent; 
		background: 
			linear-gradient(var(--blue-dark), var(--blue-dark)) padding-box, 
			linear-gradient(90deg, rgba(58, 123, 213, 0.8), rgba(245, 166, 35, 0.7),  rgba(58, 123, 213, 0.8)) border-box;
		box-shadow: 0 12px 40px rgba(4, 13, 37, 0.6), 0 0 30px rgba(58, 123, 213, 0.15);
}

      .race-hero__img {
        position: absolute;
        inset: 0;
        background-size: cover;
        background-position: center top;
        background-repeat: no-repeat;
      }

      .race-hero__img-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(
          100deg,
          rgba(4,13,37,0.97) 0%,
          rgba(4,13,37,0.82) 45%,
          rgba(4,13,37,0.55) 100%
        );
      }

      .race-hero__content {
        position: relative;
        z-index: 1;
        display: flex;
        width: 100%;
        gap: 32px;
        padding: 28px 28px;
        align-items: center;
      }

      .race-hero__left { flex: 1; }

      .race-hero__eyebrow {
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 2px;
        color: #7a9acb;
        text-transform: uppercase;
        margin-bottom: 2em;
      }

      .race-hero__headline {
        font-family: 'Barlow Condensed', sans-serif;
        font-weight: 900;
        font-size: clamp(28px, 3.5vw, 55px);
        line-height: 0.95;
        color: #fff;
        margin-bottom: 12px;
        letter-spacing: -1px;
      }

      .race-accent { 
	  color: #f5a623; 
	  font-weight: 900; 
	  }

      .race-hero__sub {
        font-size: 13px;
        color: rgba(255,255,255,0.75);
        line-height: 1.5;
        max-width: 340px;
      }

      .race-hero__sub strong { color: #f5a623; }

      .race-hero__right {
        display: flex;
        flex-direction: column;
        gap: 14px;
        flex-shrink: 0;
		width: 15%;
		margin-right: 30px;
      }

      .race-hero__stat {
        display: flex;
        align-items: center;
        gap: 10px;
        background: rgba(34, 46, 80, 0.3);
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 10px;
        padding: 10px 14px;
        min-width: 200px;
      }

      .race-hero__stat-icon { font-size: 20px; flex-shrink: 0; }

      .race-hero__stat-label {
        display: block;
        font-size: 9px;
        font-weight: 700;
        letter-spacing: 1.5px;
        color: #7a9acb;
        text-transform: uppercase;
      }

      .race-hero__stat-value {
        display: block;
        font-family: 'Barlow Condensed', sans-serif;
        font-weight: 900;
        font-size: 18px;
        color: #fff;
        line-height: 1.1;
      }

      /* ── BOTTOM LAYOUT ── */
      .race-bottom {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        align-items: start;
      }

      /* ── TABLE ── */
      .race-table-wrap {
        background: rgba(8,18,58,0.8);
        border: 1px solid rgba(26,58,143,0.4);
        border-radius: 12px;
        overflow: hidden;
      }

      .race-table-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 18px;
        border-bottom: 1px solid rgba(26,58,143,0.4);
        background: rgba(4,13,37,0.6);
      }

      .race-table-title {
        font-family: 'Barlow Condensed', sans-serif;
        font-weight: 700;
        font-size: 16px;
        letter-spacing: 1px;
        color: #fff;
        display: flex;
        align-items: center;
        gap: 8px;
      }

      .race-view-all {
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.5px;
        color: #7a9acb;
        text-decoration: none;
        transition: color 0.2s;
      }

      .race-view-all:hover { color: #f5a623; }

      .race-table-scroll {
        max-height: 420px;
        overflow-y: auto;
      }

      .race-table-scroll::-webkit-scrollbar { width: 4px; }
      .race-table-scroll::-webkit-scrollbar-thumb {
        background: rgba(26,58,143,0.6);
        border-radius: 2px;
      }

      .race-table {
        width: 100%;
        border-collapse: collapse;
      }

      .race-th {
        padding: 10px 14px;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        color: #7a9acb;
        text-align: left;
        background: rgba(4,13,37,0.4);
        border-bottom: 1px solid rgba(26,58,143,0.3);
        position: sticky;
        top: 0;
        z-index: 1;
      }

      .race-td {
        padding: 10px 14px;
        font-size: 13px;
        border-bottom: 1px solid rgba(255,255,255,0.04);
        vertical-align: middle;
      }

      .race-row:last-child .race-td { border-bottom: none; }

      .race-row:hover { background: rgba(88,166,255,0.04); }

      .race-row--me { background: rgba(245,166,35,0.08) !important; }
      .race-row--me .race-td { color: #f5a623; }

      .race-row--top .race-td--nick { font-weight: 700; color: #fff; }

      .race-td--pos { width: 80px; }
      .race-td--pts { color: #ffd166; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 15px; }

      .race-pos {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px; height: 28px;
        border-radius: 50%;
        background: rgba(26,58,143,0.4);
        border: 1px solid rgba(26,58,143,0.6);
        font-size: 12px;
        font-weight: 700;
        color: #7a9acb;
      }

      .race-medal { font-size: 22px; }

      .race-prize {
        color: #f5a623;
        font-family: 'Barlow Condensed', sans-serif;
        font-weight: 700;
        font-size: 14px;
      }

      .race-no-players {
        text-align: center;
        color: #7a9acb;
        padding: 32px;
      }

      /* ── RIGHT COLUMN ── */
      .race-bottom__right {
        display: flex;
        flex-direction: column;
        gap: 16px;
      }

      /* ── HOW IT WORKS ── */
      .race-how-wrap {
        background: rgba(8,18,58,0.9);
        border: 1px solid rgba(26,58,143,0.4);
        border-radius: 12px;
        padding: 18px;
      }

      .race-how-title {
        font-family: 'Barlow Condensed', sans-serif;
        font-weight: 700;
        font-size: 15px;
        letter-spacing: 1.5px;
        color: #fff;
        margin-bottom: 16px;
      }

      .race-how {
        display: flex;
        align-items: flex-start;
        gap: 8px;
      }

      .race-how-step {
        flex: 1;
        text-align: center;
      }

      .race-how-num {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 22px; height: 22px;
        border-radius: 50%;
        background: rgba(26,58,143,0.6);
        border: 1px solid rgba(58,123,213,0.5);
        font-size: 11px;
        font-weight: 700;
        color: #7a9acb;
        margin-bottom: 6px;
      }

      .race-how-icon { font-size: 24px; margin-bottom: 6px; }

      .race-how-label {
        font-family: 'Barlow Condensed', sans-serif;
        font-weight: 700;
        font-size: 13px;
        color: #fff;
        margin-bottom: 4px;
      }

      .race-how-sub {
        font-size: 11px;
        color: #7a9acb;
        line-height: 1.4;
      }

      .race-how-arrow {
        color: #7a9acb;
        font-size: 18px;
        padding-top: 32px;
        flex-shrink: 0;
      }

      /* ── T&C ── */
      .race-tc {
        background: rgba(8,18,58,0.9);
        border: 1px solid rgba(26,58,143,0.4);
        border-radius: 12px;
        overflow: hidden;
      }

      .race-tc__summary {
        padding: 14px 18px;
        font-size: 1.2em;
        font-weight: 600;
        color: #7a9acb;
        cursor: pointer;
        user-select: none;
        list-style: none;
        transition: color 0.2s;
      }

      .race-tc__summary:hover { color: #fff; }
	  .race-tc[open] .race-tc__summary {
		color: #FFF; /* Diventa arancione (lo stesso colore della tua icona) */
		}

      .race-tc__body {
        padding: 14px 18px;
        font-size: 12px;
        color: #fff;
        line-height: 1.6;
        border-top: 1px solid rgba(26,58,143,0.3);
        max-height: 200px;
        overflow-y: auto;
      }

      /* ── SKELETON ── */
      .race-skeleton {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 4px;
      }

      .race-sk-hero {
        height: 220px;
        border-radius: 14px;
        background: linear-gradient(90deg, rgba(26,58,143,0.15) 25%, rgba(26,58,143,0.25) 50%, rgba(26,58,143,0.15) 75%);
        background-size: 200% 100%;
        animation: race-shimmer 1.4s infinite;
      }

      .race-sk-row {
        height: 18px;
        border-radius: 6px;
        background: linear-gradient(90deg, rgba(26,58,143,0.15) 25%, rgba(26,58,143,0.25) 50%, rgba(26,58,143,0.15) 75%);
        background-size: 200% 100%;
        animation: race-shimmer 1.4s infinite;
        width: 100%;
      }

      @keyframes race-shimmer {
        0%   { background-position: 200% 0; }
        100% { background-position: -200% 0; }
      }

      /* ── ERROR ── */
      .race-error {
        padding: 24px;
        color: #f85149;
        font-size: 13px;
        line-height: 1.6;
      }

      /* ── RESPONSIVE ── */
      @media (max-width: 1000px) {
        .race-bottom { grid-template-columns: 1fr; }
		.race-hero {height: unset;}
        .race-hero__content { flex-direction: column; align-items: flex-start; gap: 20px; background: var(--blue-card);}
        .race-hero__stat { min-width: 160px; flex: 1; }
        .race-hero__right { flex-direction: column; width: unset; margin-right: unset;}
        .race-how { display: grid; align-items: center; grid-template-columns: auto auto; }
        .race-how-arrow { padding-top: 0; transform: rotate(90deg); }
		.race-hero__img { background-position: 58% 0%; }
		.race-table-header { flex-direction: column; }
		        
		}    
	  
	  
/* =============================================
   STILE SEZIONE FAQ
   ============================================= */

.faq-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 30px;
}

/* Titolo principale della board FAQ */
.faq-main-title {
 
  font-size: 32px;
  font-weight: 900;
  color: #ec6728; /* Allineato a --sportbet-orange */
  margin-bottom: 28px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.faq-main-title i {
  font-size: 28px;
}

/* Contenitore della lista e raggruppamenti */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.faq-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Titolo delle macro-categorie di FAQ */
.faq-section-title {
  
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  border-bottom: 1px solid rgba(26, 58, 143, 0.4); /* Coerente con var(--blue-border) */
  padding-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Singola scheda FAQ */
.faq-item {
  background: var(--blue-card);
  backdrop-filter: blur(5px);
  border: 1px solid var(--blue-border);
  border-radius: 12px;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

/* Varianti speciali (es. box introduzione o note importanti) */
.faq-item--intro {
  border-left: 4px solid var(--white);
  
}

.faq-item:not(.faq-item--intro):hover {
  transform: translateY(-2px);
  border-color: rgba(236, 103, 40, 0.6); /* Bagliore arancione Sportbet */
  box-shadow: 0 8px 24px rgba(4, 13, 37, 0.5), 0 0 12px rgba(236, 103, 40, 0.15);
}

/* Titolo della domanda */
.faq-item-title {
  font-family: 'Barlow', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff; /* Arancione Sportbet per risaltare la domanda */
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-item-title i {
  font-size: 14px;
  color: var(--speciale-c1);
}

/* Testo della risposta */
.faq-item-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}

.faq-item-desc strong {
  color: var(--white);
  font-weight: 600;
}

/* Note o avvisi interni alle risposte */
.faq-item-note {
  display: block;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 11px;
  color: #7a9acb; /* Allineato a --text-muted */
  line-height: 1.4;
}

/* Adattamento responsive per schermi mobile piccoli */
@media (max-width: 768px) {
	
	.faq-container {
    width: 90%;
    margin: 0 auto;
    padding: 10px;
    background: #1a2f6ecc;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
	}
	
  .faq-main-title {
    font-size: 24px;
    margin-bottom: 20px;
  }
  .faq-section-title {
    font-size: 1.5em;
  }
  .faq-item {
    padding: 14px 16px;
  }
  .faq-item-title {
    font-size: 1.2em;
  }
  .faq-item-desc {
    font-size: 1em;
  }
}	  


@media (min-width: 2000px) {
	.card--giocata {
		max-height: 80vh !important;
	}
}