@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/roboto-latin-var.woff2') format('woff2-variations'),
         url('../fonts/roboto-latin-var.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Bebas Neue';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/bebas-neue-latin-400.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --rosso: #E31937;
    --bianco: #FFFFFF;
    --nero: #1A1A1A;
    --grigio-scuro: #333333;
    --grigio-chiaro: #F5F5F5;
    --border-color: #eee;
}

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

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bianco);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-icon {
    text-align: center;
}

.preloader-icon i {
    font-size: 4rem;
    color: var(--rosso);
    transition: all 0.5s ease;
}

.fa-scale-balanced {
    animation: pulse-scale 1.5s infinite ease-in-out;
}

@keyframes pulse-scale {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--nero);
    background: var(--bianco);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
}

.main-header {
    background-color: #bf2424;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.main-header.scrolled {
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 15px rgba(0,0,0,0.15);
}

/* --- GESTIONE HEADER SCROLLED: TESTO, BOTTONI E STATO ATTIVO --- */

/* 1. Colore dei link del menu principale e freccette allo scroll */
.main-header.scrolled .main-menu a, 
.main-header.scrolled .has-submenu > a .fa-caret-down,
.main-header.scrolled .menu-toggle i {
    color: var(--nero) !important;
}

/* 2. Colore al passaggio del mouse e stato ACTIVE (Pagina Corrente) allo scroll */
.main-header.scrolled .main-menu a.active {
    color: var(--rosso) !important;
    border-bottom: 2px solid var(--rosso);
}

@media (hover: hover) {
    .main-header.scrolled .main-menu a:hover {
        color: var(--rosso) !important;
        border-bottom: 2px solid var(--rosso);
    }
}

/* 3. Stato ACTIVE quando l'header è ancora ROSSO (inizio pagina) */
.main-header:not(.scrolled) .main-menu a.active {
    color: var(--bianco) !important;
    border-bottom: 2px solid var(--bianco);
}

/* 4. Fix Sottomenu allo scroll */
.main-header.scrolled .submenu {
    background-color: var(--bianco);
    border: 1px solid var(--border-color);
}
.main-header.scrolled .submenu li a {
    color: var(--nero) !important;
}
.main-header.scrolled .submenu li a:hover {
    background-color: var(--grigio-chiaro);
    color: var(--rosso) !important;
}

/* 5. Pulsante TICKETS allo scroll (Stato Normale e Hover) */
.main-header.scrolled .btn-tickets {
    background-color: var(--rosso); /* Sfondo rosso allo scroll */
    color: var(--bianco) !important;
    box-shadow: 0 4px 12px rgba(227, 25, 55, 0.2);
    transition: all 0.3s ease;
}

.main-header.scrolled .btn-tickets:hover {
    background-color: #c7152e; /* Diventa nero quando ci passi sopra */
    color: var(--bianco) !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Effetto riflesso (shimmer) del pulsante anche in modalità scrolled */
.main-header.scrolled .btn-tickets::before {
    background: rgba(255, 255, 255, 0.2);
}

/* --- AGGIUNTA SUBMENU OPACO ALLO SCROLL --- */

.main-header.scrolled .submenu {
    background-color: rgba(255, 255, 255, 0.6) !important; /* Trasparenza 80% */
    backdrop-filter: blur(8px); /* Effetto sfocatura */
    -webkit-backdrop-filter: blur(8px); /* Supporto Safari */
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.main-header.scrolled .submenu li a {
    color: var(--nero) !important;
}

.main-header.scrolled .submenu li a:hover {
    background-color: rgba(255, 255, 255, 0.6);
    color: var(--rosso) !important;
}

.header-content {
    display: flex;
    align-items: center;
    padding: 15px 0;
    gap: 20px;
    position: relative;
    padding-left: 140px;
}

.logo {
    flex-shrink: 0;
    position: absolute;
    left: 20px;
    top: 10px;
    z-index: 1010;
}

.logo img {
    height: 100px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.1);
}

.main-nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.main-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-menu li {
    margin: 0 12px;
    position: relative;
}

.main-menu a {
    color: var(--bianco);
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: color 0.3s, border-bottom 0.3s;
    padding: 5px 0;
}

.main-menu a:hover,
.main-menu a.active {
    color: var(--bianco);
    border-bottom: 2px solid var(--bianco);
}

.has-submenu > a .fa-caret-down {
    margin-left: 5px;
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

@media (hover: hover) {
    .has-submenu:hover > a .fa-caret-down {
        transform: rotate(180deg);
    }
}

.submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #bf2424;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    border-radius: 0 0 4px 4px;
    padding-bottom: 8px;
}

@media (hover: hover) {
    .has-submenu:hover > .submenu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.submenu li a {
    padding: 10px 15px;
    font-size: 1em;
    white-space: nowrap;
    color: var(--bianco);
    display: block;
}

.submenu li a:hover {
    background-color: #bf2424;
}

.header-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* ===== LANGUAGE SWITCHER ===== */
.lang-switcher {
    position: relative;
}

.lang-toggle {
    background: none;
    border: none;
    color: var(--bianco);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
}

.lang-toggle:hover {
    transform: scale(1.1);
}

.main-header.scrolled .lang-toggle {
    color: var(--nero);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background-color: #bf2424;
    list-style: none;
    margin: 0;
    padding: 8px 0;
    min-width: 170px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    z-index: 1100;
}

.lang-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: var(--bianco);
    text-decoration: none;
    font-size: 0.95rem;
}

.lang-menu a .fi {
    border-radius: 2px;
    flex-shrink: 0;
}

.lang-menu a:hover {
    background-color: rgba(0, 0, 0, 0.15);
}

/* Nasconde l'interfaccia predefinita di Google Translate: usiamo solo il nostro pulsante */
#google_translate_element,
.goog-te-banner-frame,
.goog-te-gadget-icon,
.skiptranslate iframe {
    display: none !important;
}

body {
    top: 0 !important;
}

.goog-text-highlight {
    background: none !important;
    box-shadow: none !important;
}

.btn-tickets {
    background-color: var(--nero);
    color: var(--bianco);
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-tickets:hover {
    background-color: #000000;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.btn-tickets:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.btn-tickets::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transform: skewX(-20deg);
    transition: transform 0.5s ease;
    z-index: 1;
}

.btn-tickets:hover::before {
    transform: translateX(200%) skewX(-20deg);
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.3rem;
    -webkit-tap-highlight-color: transparent;
}

.hero-slider {
    height: 550px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/bg.jpg') no-repeat center center / cover;
    color: var(--bianco);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.animation-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.logo-animation-wrapper {
    width: 150px;
    height: 150px;
    position: relative;
    opacity: 0;
}

.full-logo {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    background-image: url('../images/logo.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 2;
}

.left-half, .right-half {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    background-image: url('../images/logo.png');
    background-size: cover;
    background-repeat: no-repeat;
    animation-fill-mode: forwards;
    background-position: center;
    display: none;
}

.left-half {
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
    z-index: 1;
}

.right-half {
    clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
    z-index: 1;
}

@keyframes move-and-rotate {
    0% {
        transform: translateX(-100vw) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateX(0) rotate(1080deg);
        opacity: 1;
    }
}

@keyframes split-and-open-left {
    from { transform: translateX(0); }
    to { transform: translateX(-350px) scale(0.95); }
}

@keyframes split-and-open-right {
    from { transform: translateX(0); }
    to { transform: translateX(350px) scale(0.95); }
}

.animated-title-container {
    position: absolute;
    text-align: center;
    opacity: 0;
    visibility: hidden;
}

.animated-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    white-space: nowrap;
    display: flex;
    gap: 15px;
}

/* Slider Background Fix */
#hero-bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Prenderà i 500px del genitore .hero-slider */
    z-index: 0;
}

.bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out; /* Animazione fluida tra foto */
}

.bg-slide.active {
    opacity: 1;
}

/* Assicurati che l'animazione del logo sia sopra lo sfondo */
.animation-container {
    z-index: 2;
}

.animated-title .word{
    opacity: 0;
    transform: translateY(1000px);
    display: block;
}

@keyframes bounceInUp {
    0% {
        opacity: 0;
        transform: translateY(1000px);
    }
    60% {
        opacity: 1;
        transform: translateY(-30px);
    }
    80% {
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-section {
    padding: 0;
    padding-bottom: 60px;
    background-color: var(--bianco);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.section-header h2 {
    font-family: 'Bebas Neue', sans-serif;
    color: var(--rosso);
    font-size: 2.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.view-all {
    background-color: var(--rosso);
    color: var(--bianco);
    padding: 8px 18px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.view-all:hover {
    background-color: #c7152e;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.25);
}

.view-all:active {
    transform: translateY(0);
    box-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: var(--bianco);
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.news-card .news-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.8rem;
    padding: 15px 20px 0px;
    color: var(--grigio-scuro);
}

.news-category {
    color: var(--rosso);
    font-weight: 500;
    text-transform: uppercase;
}

.news-date {
    color: var(--grigio-scuro);
}

.news-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--nero);
    padding: 0px 20px;
}

.news-excerpt {
    color: var(--grigio-scuro);
    font-size: 0.95rem;
    flex-grow: 1;
    padding: 0px 20px 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

#no-main-news-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 30px;
    border: 1px dashed #ccc;
    border-radius: 8px;
    color: #888;
    font-style: italic;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    display: none;
}

#news-hero-section {
    width: 100%;
    height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    background-blend-mode: multiply;
}

#news-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.1));
    z-index: 1;
}

#news-hero-section .container {
    position: relative;
    z-index: 2;
}

.news-hero-content {
    color: var(--bianco);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
}

.news-hero-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 10px;
}

.news-hero-category {
    color: var(--bianco);
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 20px;
}

.news-hero-divider {
    width: 3%;
    height: 2px;
    background-color: var(--bianco);
    margin-bottom: 20px;
}

.news-hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.5rem;
    color: var(--bianco);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    line-height: 1.1;
}

.news-content-body {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 15px;
    text-align: left;
}

.news-detail-meta {
    margin-bottom: 20px;
    text-align: left;
    font-size: 0.9rem;
    color: var(--grigio-scuro);
}

.news-content-body #news-full-text p {
    margin-bottom: 20px;
}

.page-content {
    background-color: var(--bianco);
    flex-grow: 1;
}

.page-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    text-align: center;
    color: var(--rosso);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 15px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.index-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    text-align: center;
    color: var(--rosso);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 15px;
    margin-top: 30px;
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    position: relative;
    padding-bottom: 40px;
}

.story-content p {
    margin-bottom: 20px;
}

.story-source {
    margin: 0;
    position: absolute;
    bottom: 0;
    right: 0;
    font-style: italic;
    color: var(--grigio-scuro);
    font-size: 0.9rem;
}

.story-source a {
    color: inherit;
    text-decoration: none;
}

.story-closing {
    text-align: center;
    font-weight: 700;
    color: var(--nero);
    margin-top: 10px;
}

.team-image-placeholder {
    text-align: center;
    margin-top: 15px;
    margin-bottom: 40px;
}

.story-entry {
    margin-top: 50px;
    padding-top: 45px;
    border-top: 2px solid var(--border-color);
}

.story-entry-first {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.story-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    text-align: center;
    color: var(--rosso);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.team-image-placeholder img {
    max-width: 60%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.media-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
    justify-content: center;
    margin-bottom: 20px;
    width: 100%;
}

.media-card {
    width: 100%;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carousel-media {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 60px;
    margin-bottom: 60px;
}

.media-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: var(--rosso);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.media-btn.prev { left: 0; }
.media-btn.next { right: 0; }

.media-btn:hover {
    background: #c7152e;
    transform: translateY(-50%) scale(1.1);
}

.media-btn.hidden {
    display: none !important;
}

@media (max-width: 992px) {
    .media-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .carousel-media {
        padding: 0;
    }
    .media-gallery-grid {
        grid-template-columns: 1fr;
    }
    .media-btn {
        display: none;
    }
    .team-image-placeholder img {
        max-width: 100%;
    }
}

.media-content .play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 3rem;
    pointer-events: none;
    z-index: 10;
    opacity: 0.8;
    transition: all 0.3s ease;
    text-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.media-card:hover .play-button-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.media-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.media-content {
    width: 100%;
    height: 220px;
    background: #000;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.media-item {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
}

.media-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.media-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.media-info h4 {
    font-family: 'Bebas Neue', sans-serif;
    margin-bottom: 5px;
    font-size: 1.3rem;
}

.media-info p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.no-media-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 30px;
    border: 1px dashed #ccc;
    border-radius: 8px;
    color: #888;
    font-style: italic;
    background-color: var(--bianco);
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

#no-images-message, #no-videos-message {
    text-align: center;
    font-size: 1.5rem;
    color: var(--rosso);
}

.media-detail-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    text-align: center;
    color: var(--rosso);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 15px;
    margin-top: 30px;
    margin-bottom: 30px;
    position: relative;
}

.media-detail-title::after {
    content: '';
    display: block;
    width: 300px;
    height: 2px;
    background-color: var(--border-color);
    margin: 15px auto 0;
}

.media-detail-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
    text-align: center;
}

.media-content-container {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    width: 100%; 
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.media-content-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.media-content-wrapper {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: block;
}

.media-detail-image,
.media-detail-video {
    width: 100%; 
    height: auto; 
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border: none;
    border-radius: 10px;
}

.media-info-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin: 10px auto 20px;
    font-size: 0.9rem;
    color: var(--grigio-scuro);
}

.media-info-block p {
    margin: 0;
}

.media-info-block .media-type-text {
    font-style: italic;
    text-transform: capitalize;
}

.media-detail-body {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: left;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--grigio-scuro);
}

.media-detail-body p {
    margin-bottom: 20px;
}

.fans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.fan-item {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.fan-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.fan-media {
    width: 100%;
    padding-bottom: 56.25%;
    position: relative;
    background-color: #f0f0f0;
    overflow: hidden; 
}

.fan-media img,
.fan-media video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 3rem;
    pointer-events: none;
    z-index: 10;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.fan-item:hover .play-button-overlay {
    opacity: 1;
}

.fan-info {
    padding: 15px;
    text-align: center;
    background-color: white;
}

.fan-info h3 {
    margin: 0 0 5px 0;
    color: var(--rosso);
    font-family: 'Bebas Neue', sans-serif;
}

.fan-info p {
    margin: 0;
    font-size: 0.9em;
    color: #666;
}

.page-content.fans-detail-page {
    text-align: left;
}

.fan-title {
    font-family: 'Bebas Neue', sans-serif;
    color: var(--rosso);
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 30px;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
    text-align: center;
}

.fan-title::after {
    content: '';
    display: block;
    width: 300px;
    height: 2px;
    background-color: var(--border-color);
    margin: 15px auto 0;
}

.fan-media-container {
    max-width: 400px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fan-media-containeryt {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fan-media-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.fan-media-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: -20px;
}

.video-responsive {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#media-content-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-slider
.fan-media-container video, 
.fan-media-container img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px; 
}

.fan-media-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: #000;
}

.vertical-video-container {
    max-width: 400px; 
    margin: 0 auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.fan-media-wrapper.vertical-video-container video {
    height: auto; 
    width: auto;
    max-width: 100%;
    max-height: 90vh; 
}

.fan-caption-detail {
    max-width: 800px;
    margin: 20px auto 40px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--grigio-scuro);
    padding: 0 15px;
}

.btn-back {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--rosso);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    margin-bottom: 50px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.btn-back:hover {
    background-color: #c7152e;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.btn-back i {
    margin-right: 8px;
}

/* ==========================================
   SEZIONE PROSSIMO INCONTRO - FINALE
   ========================================== */
.next-match-section {
    padding-bottom: 50px;
    padding-top: 10px;
    /* Alone radiale per dare profondità */
    text-align: center;
    position: relative; 
    overflow: hidden;   
}

/* LA BARRA ORIZZONTALE - EFFETTO VETRO */
.next-match-section::before {
    content: '';
    position: absolute;
    top: 60%;
    left: 0;
    width: 100%;
    height: 140px;
    transform: translateY(-50%);
    z-index: 0;
    /* L'immagine che deve trasparire sotto il vetro */
    background-color: var(--grigio-scuro);
}

/* OVERLAY SCURO E SFOCATURA (IL "VETRO") */
.next-match-section::after {
    content: '';
    position: absolute;
    top: 60%;
    left: 0;
    width: 100%;
    height: 140px;
    transform: translateY(-50%);
    z-index: 0;
    /* Filtro scuro e blur */
    background-color: rgba(0, 0, 0, 0.225); 
    -webkit-backdrop-filter: blur(10px);
    /* Bordi sottili per definire il rettangolo */
}

/* Titolo con linea rossa centrata */
.next-match-section .section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.5rem;
    color: #1a1a1a;
    text-transform: uppercase;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    z-index: 2;         /* Sopra la barra */
}

.next-match-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: #ff3131;
}

/* Card centrata con immagine interna (grass.jpg) */
.match-card {
    position: relative;
    z-index: 1;         /* Sopra la barra, sotto il titolo */
    max-width: 800px;
    margin: 0 auto;
    border-radius: 25px;
    overflow: hidden;
    padding: 50px 40px;
    box-shadow: none;
    
    /* SFONDO INTERNO */
    background: url('../images/grass.jpg') center/cover no-repeat;
}

/* Filtro Vetro Scuro (Glassmorphism) dentro la card */
.match-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(360deg, rgba(0,0,0,0.90), rgba(0,0,0,0.7));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: -1; 
}

/* Contenuto sopra il vetro */
.match-card > * {
    position: relative;
    z-index: 2;
    color: white;
}

.match-competition {
    font-family: 'Bebas Neue', sans-serif;
    color: #ff3131;
    font-size: 1.3rem;
    letter-spacing: 3px;
    margin-bottom: 35px;
}

.match-main {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 40px;
}

.match-team {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.match-team img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.5));
}

/* Nasconde l'icona dell'immagine rotta */
.match-team img[src=""], .match-team img:not([src]) {
    display: none;
}

.match-team span {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.2rem;
    margin-top: 15px;
}

.match-vs {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4rem;
    opacity: 0.2;
    font-style: italic;
}

.match-details {
    display: flex;
    justify-content: center;
    gap: 40px;
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 30px;
}

.match-details p {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    color: #efefef;
}

.match-details i {
    color: #ff3131;
}

.match-offseason {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    text-align: center;
    padding: 0 20px;
}

.match-offseason p {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    letter-spacing: 1px;
    color: #efefef;
    margin: 0;
}

/* SPONSOR */

.partners-section {
    background-color: var(--grigio-chiaro);
    padding: 30px 0; /* Aumentato per dare più respiro ai loghi grandi */
    text-align: center;
    margin-bottom: 0;
}

.partners-title {
    font-family: 'Bebas Neue', sans-serif;
    color: var(--nero);
    font-size: 2.2rem; /* Leggermente più grande per bilanciare i loghi */
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

/* --- GESTIONE RULLO PARTNER OTTIMIZZATA --- */

.partners-slider {
    width: 100%;
    overflow: hidden; 
    padding: 30px 0;
    position: relative;
    display: flex;
    align-items: center;
    /* Effetto sfumatura ai lati migliorato */
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.partners-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: scroll 35s linear infinite; /* Rallentato leggermente per loghi più grandi */
}

.partners-track .sponsor-item {
    padding: 0 50px; /* Più spazio tra i loghi per evitare affollamento */
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partners-track img {
    /* MODIFICA DIMENSIONI: Tutti i loghi ora hanno la stessa area di base */
    height: 110px;       /* Altezza visibile aumentata (prima era 50px) */
    width: 220px;       /* Larghezza massima fissa per uniformità */
    object-fit: contain; /* Forza il logo a stare nel rettangolo senza deformarsi */
    
    opacity: 0.9;
    transition: all 0.3s ease;
    display: block;
}

.partners-track img:hover {
    opacity: 1;
    transform: scale(1.15); /* Effetto zoom più marcato */
}

/* LOGICA ANTI-SCATTO:
   Con il JS che triplica i loghi (Originale + Copia + Copia),
   lo spostamento al -33.33% garantisce un loop fluido e infinito.
*/
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100% / 3)); 
    }
}

.partners-slider:hover .partners-track {
    animation-play-state: paused;
}

.main-footer {
    background-color: var(--nero);
    color: var(--bianco);
    padding: 50px 0 30px;
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-col h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--rosso);
}

.footer-col p {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.footer-col i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    color: var(--rosso);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--bianco);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--rosso);
}

.main-footer a:focus {
    outline: none;
}

.main-footer a img {
    border: none;
}

.footer-logo-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logos {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

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

.footer-partner-logo {
    height: 100px;
    width: auto;
    border-radius: 8px;
}


.fan-text{
    padding-bottom: 30px;
}

.role-group { margin-bottom: 60px; }

.role-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    color: #000;
    margin: 30px 0 20px 0;
    text-transform: uppercase;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    padding: 20px 20px !important; /* Ridotto padding laterale per dare spazio alla griglia */
    overflow: visible;
    max-width: 1200px !important; /* Aumentato per ospitare più card per riga */
    margin: 0 auto 50px auto !important;
    width: 100%;
}

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

.p-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    line-height: 1.1;
    color: white;
    text-transform: uppercase;
    text-align: center;
}

.p-nickname {
    display: block;
    margin-top: 10px;
    color: #e62117;
    font-weight: bold;
    font-size: 1.1rem;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.p-number { display: none !important; }

/* MODIFICATO: Permette alla riga di espandersi e centrarsi */
.players-wrapper {
    width: 100% !important;
    max-width: 1200px !important; 
    overflow: visible !important; /* Rimosso hidden per vedere le righe sotto */
    padding: 20px 0 !important;
    display: flex;
    justify-content: center; /* Centra la griglia rispetto al titolo */
    margin: 0 auto;
}

/* MODIFICATO: Diventa una griglia flessibile che va a capo */
.players-grid {
    display: flex !important;
    flex-wrap: wrap !important; /* Fondamentale per creare il 3x3 */
    justify-content: center !important; /* Centra gli elementi dell'ultima riga */
    gap: 20px !important;
    width: 100% !important;
    transform: none !important; /* Disabilita lo spostamento del carosello */
    transition: none !important;
}

.player-card {
    flex: 0 0 280px;
    width: 280px;
    max-width: 280px;
    aspect-ratio: 3 / 4;
    position: relative;
    background: #111;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.player-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.4s ease;
}

.player-card:hover .player-img { transform: scale(1.08); }

.player-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    min-height: 45%;
    background: linear-gradient(transparent, rgba(0,0,0,0.95));
    display: flex;
    align-items: flex-end;
    padding-bottom: 20px;
}

/* Aggiungilo al tuo file CSS */
.break-line {
    flex-basis: 100%;
    height: 0;
    margin: 0 !important;
}

/* STAFF */
.staff-display-container { padding-bottom: 80px; display: flex; justify-content: center; }
.staff-horizontal-card { display: flex; align-items: center; gap: 40px; max-width: 1000px; width: 100%; padding: 0 20px; }
.staff-horizontal-card .player-card { flex: 0 0 280px; }
.staff-info { flex: 1; text-align: left; }
.staff-name { font-family: 'Bebas Neue', sans-serif; font-size: 3.5rem; color: var(--rosso); margin-bottom: 15px; line-height: 1; text-transform: uppercase; }
.staff-description { color: var(--nero); line-height: 1.6; font-size: 1.1rem; }

/* NAV BUTTONS: Nascosti perché non servono più con la griglia 3x3 */
.nav-btn { display: none !important; }

#all-news-grid.news-grid { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 30px; margin-bottom: 50px; }
.pagination-wrapper { display: flex; justify-content: center; align-items: center; gap: 20px; margin: 40px 0 60px 0; width: 100%; }

.btn-nav { background-color: var(--rosso); color: var(--bianco); border: none; padding: 12px 25px; font-family: 'Bebas Neue', sans-serif; font-size: 1.3rem; cursor: pointer; border-radius: 5px; text-transform: uppercase; transition: 0.3s; display: inline-flex; align-items: center; justify-content: center; gap: 10px; line-height: 1; text-decoration: none; min-width: 160px; }
.btn-nav:hover { background-color: var(--nero); transform: translateY(-3px); }

@media (max-width: 992px) {
    #all-news-grid.news-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .players-wrapper { width: 100% !important; }
}

@media (max-width: 768px) {
    #main-news-grid.news-grid .news-card:nth-child(n+5) {
        display: none;
    }

    @keyframes split-and-open-left {
        0% { transform: translateX(0) scale(1); opacity: 1; }
        55% { transform: translateX(-90px) scale(0.95); opacity: 1; }
        100% { transform: translateX(-90px) scale(0.95); opacity: 0; }
    }

    @keyframes split-and-open-right {
        0% { transform: translateX(0) scale(1); opacity: 1; }
        55% { transform: translateX(90px) scale(0.95); opacity: 1; }
        100% { transform: translateX(90px) scale(0.95); opacity: 0; }
    }

    .staff-horizontal-card { flex-direction: column; text-align: center; }
    .staff-info { text-align: center; }

    .players-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .player-card {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
    }

    .break-line {
        display: none !important;
    }

    .player-info-overlay {
        min-height: 40%;
        padding-bottom: 10px;
    }

    .p-name {
        font-size: 1.1rem;
    }

    .p-nickname {
        font-size: 0.85rem;
        margin-top: 4px;
    }

    .role-group {
        margin-bottom: 35px;
    }
}

@media (max-width: 480px) {
    .players-wrapper { width: 100% !important; }
    .role-title { font-size: 2.2rem; text-align: center; }
    #all-news-grid.news-grid { grid-template-columns: 1fr !important; }
}

.fan-media-wrapper video {
    border-radius: 10px;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fan-media-wrapper:hover video {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.fan-media-detail-image {
    display: block;
    max-width: 500px;
    width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fan-media-detail-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}
.animated-subtitle {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: var(--bianco);
    letter-spacing: 2px;
    text-align: center;
    margin-top: 10px;
    opacity: 1;
}

.animated-subtitle .word {
    opacity: 0;
    transform: translateY(1000px);
    display: inline-block;
    margin: 0 4px;
}

.locandina-content {
    height: 320px;
}

.locandina-img {
    object-fit: contain !important;
    background: #f5f5f5;
}

/* ==========================================
   RESPONSIVE - TABLET / MOBILE
   ========================================== */
@media (max-width: 992px) {
    .main-header.scrolled {
        background-color: #bf2424;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .main-header.scrolled .btn-tickets {
        background-color: var(--nero);
        color: var(--bianco) !important;
    }

    .main-header.scrolled .btn-tickets:hover {
        background-color: #000000;
    }

    .menu-toggle {
        display: block;
        color: var(--bianco);
        z-index: 1010;
    }

    .main-header.scrolled .menu-toggle i {
        color: var(--bianco) !important;
    }

    .header-content {
        padding-left: 115px;
        padding-right: 25px;
        justify-content: flex-end;
    }

    .logo {
        left: 15px;
        top: 10px;
    }

    .logo img {
        height: 88px;
    }

    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        height: calc(100vh - 70px);
        width: auto;
        z-index: 1005;
        pointer-events: none;
    }

    .main-nav:has(.main-menu.active) {
        pointer-events: auto;
    }

    .main-menu {
        flex-direction: column;
        width: 100%;
        height: 0;
        overflow: hidden;
        background-color: #bf2424;
        transition: height 0.45s cubic-bezier(0.65, 0, 0.35, 1);
    }

    .main-menu.active {
        height: 100%;
        overflow-y: auto;
    }

    .main-menu::before {
        content: '';
        display: block;
        flex-shrink: 0;
        height: 48px;
    }

    .main-header.scrolled .main-menu {
        background-color: #bf2424;
    }

    .main-menu li {
        margin: 0;
        width: 100%;
    }

    .main-menu a,
    .main-header.scrolled .main-menu a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 25px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        color: var(--bianco) !important;
    }

    .main-menu a.active,
    .main-header:not(.scrolled) .main-menu a.active,
    .main-header.scrolled .main-menu a.active,
    .main-menu a:hover,
    .main-header.scrolled .main-menu a:hover {
        color: var(--bianco) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .main-header.scrolled .has-submenu > a .fa-caret-down {
        color: var(--bianco) !important;
    }

    .has-submenu.open > a .fa-caret-down {
        transform: rotate(180deg);
    }

    .has-submenu:not(.open) > a .fa-caret-down {
        transform: none;
    }

    .submenu {
        position: static;
        opacity: 1;
        visibility: hidden;
        transform: none;
        max-height: 0;
        overflow: hidden;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background-color: transparent;
        transition: max-height 0.35s cubic-bezier(0.65, 0, 0.35, 1), visibility 0.35s;
        padding-bottom: 0;
    }

    .has-submenu.open > .submenu {
        max-height: 400px;
        visibility: visible;
        background-color: rgba(0, 0, 0, 0.2);
    }

    .main-header.scrolled .has-submenu.open > .submenu {
        background-color: rgba(0, 0, 0, 0.2) !important;
        backdrop-filter: none;
    }

    .submenu li a,
    .main-header.scrolled .submenu li a {
        color: var(--bianco) !important;
        padding: 12px 15px 12px 32px;
        white-space: normal;
    }

    .submenu li a:hover,
    .main-header.scrolled .submenu li a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: var(--bianco) !important;
    }

    .header-actions {
        gap: 20px;
    }

    .btn-tickets {
        padding: 10px 18px;
        font-size: 0.8rem;
    }

    .hero-slider {
        height: 420px;
    }

    .animated-title {
        font-size: 2.3rem;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
        white-space: normal;
    }

    .animated-subtitle {
        font-size: 1.3rem;
    }

    .logo-animation-wrapper {
        width: 100px;
        height: 100px;
    }

    .match-card {
        padding: 35px 20px;
    }

    .match-main {
        gap: 15px;
    }

    .match-team img {
        width: 75px;
        height: 75px;
    }

    .match-team span {
        font-size: 1.4rem;
    }

    .match-vs {
        font-size: 2.2rem;
    }

    .match-details {
        flex-wrap: wrap;
        gap: 15px 25px;
    }

    .player-card {
        width: min(280px, 80vw);
        flex-basis: min(280px, 80vw);
    }
}

@media (max-width: 600px) {
    .header-content {
        padding-left: 115px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .page-title,
    .index-title,
    .fan-title,
    .media-detail-title {
        font-size: 2.2rem;
    }

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

    #news-hero-section {
        height: 380px;
    }

    .partners-track img {
        height: 70px;
        width: 140px;
    }

    .partners-track .sponsor-item {
        padding: 0 25px;
    }

    .staff-name {
        font-size: 2.4rem;
    }
}