:root {
    --ufc-red: #d20a0a;
    --ufc-black: #080808;
    --gold: #d4af37;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--ufc-black);
    color: white;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    overflow-x: hidden;
}

/* HEADER */
.main-header { padding: 25px; text-align: center; background: #000; border-bottom: 3px solid var(--ufc-red); }
.main-header img { width: 120px; height: auto; display: block; margin: 0 auto; }

/* HERO ALLARGATA E RIEMPITA */
.hero {
    position: relative;
    height: 70vh; /* Molto più alta */
    background: url('https://images.unsplash.com/photo-1555505019-8c3f4c19e302?auto=format&fit=crop&q=80&w=1600') center/cover no-repeat;
    display: flex; align-items: center; justify-content: center; text-align: center;
}

.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(0,0,0,0.4), var(--ufc-black));
}

.hero-content { position: relative; z-index: 2; padding: 0 20px; }

.hero-top-info { font-weight: bold; margin-bottom: 10px; font-size: 1.1rem; }
.live-tag { color: var(--ufc-red); animation: pulse 1.5s infinite; }
.sep { margin: 0 10px; color: #555; }

.main-event-title { font-size: clamp(3rem, 10vw, 6rem); line-height: 0.9; margin: 15px 0; font-weight: 700; }

.hero-ads {
    display: flex; justify-content: center; gap: 20px; margin: 20px 0;
}
.ad-item {
    border: 1px solid var(--gold); color: var(--gold);
    padding: 5px 15px; font-size: 0.9rem; letter-spacing: 2px;
}

.hero-subtext { font-size: 1.2rem; color: #888; letter-spacing: 4px; }

@keyframes pulse {
    0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; }
}

/* MENU MATCH */
.fight-card-menu { background: #111; position: sticky; top: 0; z-index: 100; border-bottom: 1px solid #333; }
.match-list { display: flex; justify-content: center; gap: 10px; overflow-x: auto; padding: 15px; scrollbar-width: none; }
.match-item {
    background: #222; padding: 10px 20px; cursor: pointer; font-size: 0.8rem;
    border: 1px solid #444; transition: 0.3s; white-space: nowrap;
}
.match-item.active { background: var(--ufc-red); border-color: #fff; }

/* SEZIONE STATS */
.fighter-display {
    padding: 80px 20px;
    background: linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.85)), 
                url('https://dmxg5wxfqgb4u.cloudfront.net/styles/background_image_xl/s3/2018-05/01_UFC_LOGO_1.jpg') center/cover;
    background-attachment: fixed; min-height: 600px;
    display: flex; justify-content: center; align-items: center;
}

.stats-container { width: 100%; max-width: 900px; transition: opacity 0.3s; }
.fighter-names { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.fighter-names h2 { font-size: clamp(1.5rem, 5vw, 3rem); flex: 1; text-align: center; }
.vs-circle { background: var(--ufc-red); width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: bold; }

.match-cat-label { text-align: center; color: var(--gold); margin-bottom: 40px; font-weight: bold; letter-spacing: 2px; }

.tote-table { background: rgba(255,255,255,0.05); padding: 30px; border-radius: 10px; }
.stat-row { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.val { font-size: 1.8rem; font-weight: bold; width: 30%; text-align: center; }
.label { color: #888; font-size: 0.8rem; letter-spacing: 2px; }

/* LEAGUE INFO */
/* LEAGUE INFO - Aggiornata con sfondo a tutto schermo */
.league-info { 
    padding: 100px 10%; 
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), 
                url('https://dmxg5wxfqgb4u.cloudfront.net/styles/background_image_xl/s3/2018-05/01_UFC_LOGO_1.jpg') center/cover no-repeat;
    background-attachment: fixed; /* Effetto parallax molto bello */
    border-top: 1px solid #222;
}

.league-container { 
    display: flex; 
    align-items: center; 
    justify-content: center; /* Centriamo il contenuto */
    max-width: 1200px; 
    margin: auto; 
}

.league-text {
    max-width: 800px; /* Testo più centrato e leggibile */
    text-align: center;
}

.league-text h2 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 25px; }

.league-text p { 
    color: #bbb; 
    text-transform: none; 
    line-height: 1.8; 
    font-size: 1.1rem;
}

/* Rimuoviamo la vecchia league-image perché ora l'immagine è lo sfondo */
.league-image { display: none; }

.league-stats-row { 
    display: flex; 
    gap: 25px; 
    margin-top: 40px; 
    justify-content: center;
}

.stat-box { 
    background: rgba(255, 255, 255, 0.05); 
    padding: 30px; 
    border-left: 5px solid var(--ufc-red);
    min-width: 200px;
}
.stat-num { display: block; font-size: 2rem; font-weight: bold; }
.stat-label { color: var(--gold); font-size: 0.8rem; }
.league-image img { width: 100%; border-radius: 5px; opacity: 0.7; }

.final-footer { padding: 40px; text-align: center; color: #333; font-size: 0.8rem; }

@media (max-width: 768px) {
    .hero { height: 50vh; }
    .hero-ads { flex-wrap: wrap; }
    .fighter-names { flex-direction: column; }
    .league-container { flex-direction: column; text-align: center; }
}