:root {
    --vz-red: #E30613; 
    --vz-blue: #001B54; /* Un blu ancora più profondo e premium */
    --vz-gold: #D4AF37; 
    --vz-black: #0A0A0A;
    --vz-gray: #F0F2F5;
    --vz-white: #FFFFFF;
    --font-main: 'Montserrat', sans-serif;
}

* { box-sizing: border-box; scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    background-color: var(--vz-gray);
    color: var(--vz-black);
    margin: 0; padding: 0;
    overflow-x: hidden;
}

h1, h2, h3, h4 { text-transform: uppercase; margin: 0; }

/* --- NAVBAR PREMIUM --- */
.navbar {
    background-color: var(--vz-blue);
    position: sticky; top: 0; z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.navbar-container {
    max-width: 1600px; margin: 0 auto; padding: 10px 5%;
    display: flex; justify-content: space-between; align-items: center;
}
.navbar-brand img { height: 75px; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.navbar-brand img:hover { transform: scale(1.1) rotate(-3deg); }
.nav-links { display: flex; gap: 15px; align-items: center; }
.nav-links a {
    color: var(--vz-white); text-decoration: none; font-weight: 700;
    font-size: 0.8rem; letter-spacing: 1px; position: relative; padding: 10px 0;
}

.nav-links { display: flex; gap: 15px; align-items: center; }
.nav-links a {
    color: var(--vz-white); text-decoration: none; font-weight: 700;
    font-size: 0.8rem; letter-spacing: 1px; position: relative; padding: 10px 0;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 0%; height: 3px; background-color: var(--vz-red); transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }

/* --- HERO CINEMATOGRAFICA --- */
.hero-section {
    height: 90vh;
    background: linear-gradient(135deg, rgba(0,27,84,0.9) 0%, rgba(10,10,10,0.7) 100%), url('../img/stadio-bg.jpg') center/cover fixed;
    position: relative; display: flex; align-items: center; justify-content: flex-start;
    overflow: hidden;
}
.hero-watermark {
    position: absolute; right: -5%; bottom: -10%;
    font-size: 40vw; font-weight: 900; color: rgba(255,255,255,0.03);
    line-height: 0.8; z-index: 1; pointer-events: none;
}
.hero-overlay {
    position: relative; z-index: 2; padding: 0 10%; width: 100%;
}
.hero-overlay h1 {
    font-size: clamp(4rem, 8vw, 8rem); font-weight: 900; color: var(--vz-white); line-height: 0.9;
    letter-spacing: -3px; margin-bottom: 20px;
}
.highlight-red { color: var(--vz-red); }
.hero-overlay p {
    font-size: 1.2rem; color: var(--vz-white); font-weight: 500; text-transform: uppercase; letter-spacing: 5px;
    border-left: 4px solid var(--vz-gold); padding-left: 15px;
}

/* --- TITOLI SEZIONE SHARP --- */
.section-container { padding: 100px 5%; max-width: 1600px; margin: 0 auto; }
.section-title {
    font-size: 3rem; font-weight: 900; color: var(--vz-blue);
    margin-bottom: 60px; display: flex; align-items: center; gap: 20px;
}
.section-title::after {
    content: ''; flex-grow: 1; height: 2px; background: rgba(0,27,84,0.1);
}

/* --- CARD GIOCATORI (Taglio Sportivo Premium) --- */
.premium-player-card {
    background-color: var(--vz-white); position: relative; cursor: pointer; display: flex; flex-direction: column;
    height: 480px; transition: all 0.4s ease;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%);
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}
.premium-player-img-wrapper {
    height: 320px; background: radial-gradient(circle at top, #2a3b61 0%, var(--vz-blue) 100%);
    position: relative; overflow: hidden;
}
.premium-player-img {
    width: 100%; height: 100%; background-size: cover; background-position: top center;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.premium-player-card:hover { transform: translateY(-10px); box-shadow: 0 25px 50px rgba(0,0,0,0.15); }
.premium-player-card:hover .premium-player-img { transform: scale(1.08); }

.premium-player-info { padding: 30px 25px; background-color: var(--vz-white); position: relative; z-index: 2; }
.premium-player-info h3 { color: var(--vz-blue); font-size: 1.5rem; letter-spacing: -0.5px; }
.premium-player-info p { color: var(--vz-red); font-weight: 800; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px; margin: 8px 0 0 0; }
.premium-player-number {
    position: absolute; right: 20px; top: -60px; font-size: 5rem;
    color: var(--vz-white); font-weight: 900; line-height: 1; opacity: 0.9;
    text-shadow: 2px 5px 15px rgba(0,0,0,0.3);
}

/* --- MATCH CENTER ROW --- */
.premium-match-row {
    display: flex; justify-content: space-between; align-items: center;
    background: var(--vz-white); padding: 30px 50px; margin-bottom: 20px;
    transition: all 0.3s; clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}
.premium-match-row:hover { transform: scale(1.01); box-shadow: 0 15px 30px rgba(0,0,0,0.08); }
.match-team { flex: 1; display: flex; align-items: center; gap: 25px; font-weight: 900; font-size: 1.6rem; letter-spacing: -0.5px; color: var(--vz-blue); }
.match-team.right { justify-content: flex-end; text-align: right; }
.match-logo { width: 60px; height: 60px; object-fit: contain; filter: drop-shadow(0 5px 10px rgba(0,0,0,0.1)); }
.match-score { flex: 0 0 160px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.match-date { font-size: 0.85rem; color: #888; margin-bottom: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.score-badge {
    background: var(--vz-black); color: var(--vz-white); font-size: 1.8rem; font-weight: 900;
    padding: 10px 30px; letter-spacing: 3px; clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

/* --- NEWS CARD --- */
.premium-news-card {
    background: var(--vz-white); display: flex; flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04); transition: transform 0.3s;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}
.premium-news-card:hover { transform: translateY(-10px); }
.premium-news-img { height: 250px; background-size: cover; background-position: center; }
.premium-news-content { padding: 40px 30px; border-left: 4px solid var(--vz-red); }
.premium-news-date { font-size: 0.8rem; font-weight: 800; color: #888; letter-spacing: 2px; }
.premium-news-content h3 { font-size: 1.4rem; margin: 15px 0; color: var(--vz-blue); line-height: 1.3; }
.news-link { display: inline-block; margin-top: 20px; color: var(--vz-red); font-weight: 900; text-decoration: none; text-transform: uppercase; letter-spacing: 1px; transition: 0.3s; }
.news-link:hover { color: var(--vz-blue); padding-left: 10px; }

/* --- NEWSLETTER --- */
.newsletter-box {
    background: linear-gradient(135deg, var(--vz-blue) 0%, #001133 100%); color: var(--vz-white);
    padding: 100px 5%; text-align: center; clip-path: polygon(0 30px, 100% 0, 100% calc(100% - 30px), 0 100%);
}
.newsletter-box h2 { font-size: 3rem; margin-bottom: 40px; color: var(--vz-gold); }
.newsletter-box input {
    padding: 22px 30px; width: 100%; max-width: 450px; border: none; font-family: inherit; font-size: 1rem;
    background: rgba(255,255,255,0.05); color: white; outline: none; margin-right: 15px;
    border-bottom: 2px solid var(--vz-white); transition: border-color 0.3s;
}
.newsletter-box input:focus { border-bottom-color: var(--vz-gold); background: rgba(255,255,255,0.1); }
.newsletter-box button {
    padding: 22px 50px; background: var(--vz-red); color: white; border: none;
    font-family: inherit; font-weight: 900; font-size: 1.1rem; text-transform: uppercase; cursor: pointer;
    transition: all 0.3s; clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.newsletter-box button:hover { background: var(--vz-gold); color: var(--vz-black); transform: scale(1.05); }

/* --- FOOTER E SPONSOR --- */
.site-footer { background-color: var(--vz-black); color: white; padding: 100px 5% 50px 5%; text-align: center; }
.footer-logo img {
    height: 140px; 
    filter: grayscale(100%) opacity(0.4); 
    transition: all 0.5s ease; 
}
.footer-logo img:hover { filter: grayscale(0%) opacity(1); transform: scale(1.1); }
.footer-info { margin-top: 50px; font-size: 0.9rem; color: #555; letter-spacing: 1px; }

/* SPINNER LOADER */
.spinner { width: 50px; height: 50px; border: 5px solid rgba(0,27,84,0.1); border-top-color: var(--vz-red); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 20px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Responsive */
@media (max-width: 768px) {
    .hero-overlay h1 { font-size: 4rem; }
    .hero-watermark { font-size: 50vw; }
    .nav-links { display: none; }
    .premium-match-row { flex-direction: column; text-align: center; gap: 20px; clip-path: none; border-radius: 10px; }
    .match-team { flex-direction: column; justify-content: center; }
    .match-team.right { flex-direction: column-reverse; }
    .newsletter-box input { margin-right: 0; margin-bottom: 20px; }
    .newsletter-box button { width: 100%; max-width: 450px; }
}

/* Navbar Dinamica allo Scroll */
.navbar { transition: all 0.4s ease; }
.navbar-brand { display: flex; align-items: center; text-decoration: none; }
.navbar-brand-text {
    display: none; color: var(--vz-white); font-weight: 900; font-size: 1.5rem; 
    margin-left: 15px; letter-spacing: 1px; opacity: 0; transition: opacity 0.4s;
}
.navbar.scrolled { background-color: rgba(0, 27, 84, 0.95); backdrop-filter: blur(10px); padding: 5px 0; }
.navbar.scrolled .navbar-brand img { height: 50px; }
.navbar.scrolled .navbar-brand-text { display: block; opacity: 1; }

/* Roster Diviso per Ruoli */
.role-group { margin-bottom: 60px; }
.role-title {
    font-size: 1.8rem; color: var(--vz-red); border-bottom: 2px solid var(--vz-red);
    padding-bottom: 10px; margin-bottom: 30px; font-weight: 800; letter-spacing: 2px;
}
.players-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; }

/* --- Dropdown Menu Squadre - CORRETTO --- */
.dropdown { position: relative; display: flex; align-items: center; height: 100%; }

.dropdown-content {
    display: none; position: absolute; top: 100%; left: 0; background-color: var(--vz-white); min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); z-index: 1; border-radius: 4px; 
    overflow: visible; /* FONDAMENTALE: permette al sottomenu di uscire dai bordi */
}

.dropdown-content a {
    color: var(--vz-blue); padding: 12px 16px; text-decoration: none; display: block;
    font-weight: 600; border-bottom: 1px solid #eee; transition: 0.3s;
}

.dropdown-content a:hover { background-color: var(--vz-gray); color: var(--vz-red); padding-left: 20px; }

/* Il segno ">" fa aprire SOLO il primo livello, non tutti insieme */
.dropdown:hover > .dropdown-content { display: block; }

/* --- Sottomenu Dinamico (Altre Squadre) --- */
.dropdown-submenu { position: relative; }
.dropdown-submenu .dropdown-content { 
    top: 0; left: 100%; display: none; margin-top: -1px; 
    box-shadow: 8px 8px 16px 0px rgba(0,0,0,0.1); 
}
.dropdown-submenu:hover > .dropdown-content { display: block; }

/* Footer Istituzionale Aggiornato */
.footer-content-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; text-align: left; }
.footer-links h4 { color: var(--vz-gold); margin-bottom: 20px; font-size: 1.2rem; }
.footer-links a { display: block; color: #bbb; text-decoration: none; margin-bottom: 10px; transition: 0.3s; }
.footer-links a:hover { color: var(--vz-white); }
.footer-bottom { border-top: 1px solid #333; padding-top: 20px; text-align: center; }

/* === MODAL (POPUP) PREMIUM BRUTALISTA === */
.vz-modal {
    display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%;
    overflow: auto; background-color: rgba(0,0,0,0.85); backdrop-filter: blur(8px);
    opacity: 0; transition: opacity 0.3s ease;
}
.vz-modal.show { display: block; opacity: 1; }

.vz-modal-content {
    background-color: var(--vz-black); margin: 5% auto; padding: 0; width: 90%; max-width: 800px;
    position: relative; overflow: hidden; box-shadow: 0 25px 50px rgba(0,0,0,0.8);
    transform: translateY(-50px); transition: transform 0.3s ease;
    border: 1px solid #333;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%);
}
.vz-modal.show .vz-modal-content { transform: translateY(0); }

.vz-close {
    color: var(--vz-white); position: absolute; top: 15px; right: 25px; font-size: 35px;
    font-weight: bold; cursor: pointer; z-index: 10; text-shadow: 0 2px 10px rgba(0,0,0,0.9);
    transition: 0.3s;
}
.vz-close:hover { color: var(--vz-red); transform: scale(1.1); }

/* Contenuto Modal News */
.modal-news-img { width: 100%; height: 400px; object-fit: cover; opacity: 0.9; }
.modal-news-text { padding: 40px; background: linear-gradient(180deg, var(--vz-black) 0%, #0a0a0a 100%); }
.modal-news-text h2 { color: var(--vz-white); font-size: 2rem; margin-bottom: 10px; font-weight: 900; letter-spacing: -1px; }
.modal-news-date { color: var(--vz-red); font-weight: 800; margin-bottom: 20px; display: block; letter-spacing: 2px; }
.modal-news-body { line-height: 1.8; color: #ccc; font-size: 1.1rem; }

/* Contenuto Modal Giocatore */
.modal-player-grid { display: grid; grid-template-columns: 1fr 1fr; }
.modal-player-img { width: 100%; height: 100%; min-height: 400px; object-fit: cover; background: var(--vz-blue); filter: grayscale(20%); transition: 0.4s;}
.modal-player-img:hover { filter: grayscale(0%); }
.modal-player-info { padding: 40px; background: var(--vz-black); display: flex; flex-direction: column; justify-content: center; position: relative; border-left: 2px solid #222;}
.modal-player-info h2 { font-size: 2.5rem; color: var(--vz-white); margin-bottom: 5px; line-height: 1; font-weight: 900; }
.modal-player-role { font-size: 1.2rem; color: var(--vz-red); font-weight: 800; letter-spacing: 2px; margin-bottom: 20px; }
.modal-player-number { font-size: 6rem; font-weight: 900; color: rgba(255,255,255,0.05); position: absolute; right: 20px; top: -10px; pointer-events: none; }
.modal-player-bio { line-height: 1.6; color: #aaa; }

/* Pagine Istituzionali & Staff */
.modal-page-wrapper { padding: 40px; background: var(--vz-black); color: #ccc; }
.modal-page-wrapper h2 { color: var(--vz-white); margin-bottom: 20px; font-size: 2rem; text-transform: uppercase; font-weight: 900; border-bottom: 2px solid var(--vz-red); padding-bottom: 10px; display: inline-block;}
.modal-page-wrapper h3 { color: var(--vz-gold); margin-top: 30px; margin-bottom: 15px; font-size: 1.4rem; }

@media (max-width: 768px) {
    .modal-player-grid { grid-template-columns: 1fr; }
    .modal-player-info { border-left: none; border-top: 2px solid #222; }
}

/* --- SCROLL ORIZZONTALE SPONSOR CAROUSEL --- */
.sponsor-track::-webkit-scrollbar { height: 6px; }
.sponsor-track::-webkit-scrollbar-thumb { background: var(--vz-red); border-radius: 10px; }
.sponsor-track::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); }

/* --- SOTTOMENU GIOVANILI DINAMICO --- */
.dropdown-submenu { position: relative; }
.dropdown-submenu .dropdown-content { 
    top: 0; left: 100%; display: none; margin-top: -1px; 
    box-shadow: 8px 8px 16px 0px rgba(0,0,0,0.1); 
}
.dropdown-submenu:hover .dropdown-content { display: block; }

/* ==========================================
   --- FIX SPAZI, RESPONSIVE E SFONDI ---
   ========================================== */

/* Riduzione spazi tra le sezioni */
.section-container {
    padding: 60px 5% !important; 
}
.section-title {
    margin-bottom: 30px !important; 
}

/* Sfondi Dinamici (Effetto Parallasse allo scroll) */
.scroll-bg {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1;
    background-size: cover; background-position: center; background-attachment: fixed;
    transition: opacity 0.8s ease-in-out; opacity: 0;
}
.scroll-bg.active { opacity: 0.15; }
.scroll-bg::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), rgba(0,0,0,1));
}

/* Disclaimer a scomparsa */
#site-disclaimer {
    position: fixed; bottom: 0; left: 0; width: 100%; background: var(--vz-blue); color: white;
    padding: 15px 20px; text-align: center; z-index: 9999; box-shadow: 0 -5px 15px rgba(0,0,0,0.3);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; justify-content: center; align-items: center; gap: 20px; flex-wrap: wrap;
}
#site-disclaimer.hidden { transform: translateY(100%); }

/* Menu Hamburger (Nascosto su Desktop) */
.hamburger { display: none; font-size: 2.2rem; cursor: pointer; color: var(--vz-gold); background: none; border: none; }

/* Responsive Mobile Reale (Smartphone) */
@media (max-width: 900px) {
    .hamburger { display: block; }
    
    .nav-wrapper {
        display: none !important;
        flex-direction: column;
        position: absolute; 
        top: 75px; 
        left: 0; 
        width: 100%;
        background: rgba(0, 27, 84, 0.98); 
        backdrop-filter: blur(10px);
        text-align: center; 
        padding: 20px 0 30px 0;
        box-shadow: 0 15px 25px rgba(0,0,0,0.6);
        max-height: calc(100vh - 75px);
        overflow-y: auto;
    }
    .nav-wrapper.active { display: flex !important; }
    
    .nav-links { 
        flex-direction: column; 
        gap: 15px; 
        margin-bottom: 20px; 
        width: 100%; 
    }
    .nav-links a { font-size: 1.1rem; }
    
    /* Forza il selettore lingua in basso nel menu mobile */
    .lang-switch { 
        margin: 15px auto 0 auto !important; 
        justify-content: center; 
    }

    /* Fix Titolo Tagliato su Mobile */
    .navbar-brand-text {
        font-size: 1.1rem !important;
        margin-left: 8px !important;
        letter-spacing: 0.5px !important;
        white-space: nowrap;
    }
    .navbar-container {
        padding: 10px 3% !important;
    }
}

/* ==========================================
   --- CAROSELLO ORIZZONTALE ROSA ---
   ========================================== */
.roster-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.roster-scroll-container {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 5px 30px 5px;
    width: 100%;
    -webkit-overflow-scrolling: touch;
}
.roster-scroll-container::-webkit-scrollbar {
    height: 8px;
}
.roster-scroll-container::-webkit-scrollbar-thumb {
    background: var(--vz-red);
    border-radius: 10px;
}
.roster-scroll-container::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--vz-blue);
    color: white;
    border: 2px solid var(--vz-gold);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: 0.3s;
}
.carousel-btn:hover { background: var(--vz-red); transform: translateY(-50%) scale(1.1); }
.carousel-btn.prev { left: -20px; }
.carousel-btn.next { right: -20px; }

/* Adatta la card nel carosello */
.roster-scroll-container .premium-player-card {
    min-width: 270px;
    flex: 0 0 auto;
}
@media (max-width: 768px) {
    .carousel-btn { display: none; } /* Su smartphone si usa direttamente lo swipe */
}

/* ==========================================
   --- OFFICIAL STORE & CARRELLO ---
   ========================================== */

.product-card {
    background: var(--vz-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.product-card:hover { transform: translateY(-10px); }
.product-img {
    width: 100%; height: 280px; object-fit: cover;
    background: #f9f9f9; border-bottom: 3px solid var(--vz-red);
}
.product-price { color: var(--vz-red); font-size: 1.6rem; font-weight: 900; margin: 15px 0; }
.btn-add-cart {
    background: var(--vz-blue); color: white; border: none;
    padding: 12px 25px; border-radius: 6px; font-weight: 900; font-size: 0.9rem;
    cursor: pointer; transition: 0.3s; text-transform: uppercase; width: 100%;
}
.btn-add-cart:hover { background: var(--vz-gold); color: black; }

/* Carrello Fluttuante */
#floating-cart {
    position: fixed; bottom: 30px; right: 30px;
    background: var(--vz-blue); color: white;
    width: 65px; height: 65px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 1.8rem; box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    cursor: pointer; z-index: 1000; transition: transform 0.3s;
    border: 2px solid var(--vz-gold);
}
#floating-cart:hover { transform: scale(1.1); background: var(--vz-black); }
#cart-badge {
    position: absolute; top: -5px; right: -5px;
    background: var(--vz-red); color: white; font-size: 0.85rem; font-weight: 900;
    width: 26px; height: 26px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3); transition: transform 0.2s;
}

/* ==========================================
   --- STORIA (TIMELINE) & SOCIAL WALL ---
   ========================================== */

/* Timeline della Storia */
.timeline { position: relative; max-width: 1200px; margin: 0 auto; padding: 40px 0; }
.timeline::after { 
    content: ''; position: absolute; width: 4px; background: var(--vz-red); 
    top: 0; bottom: 0; left: 50%; margin-left: -2px; 
}
.timeline-item { padding: 10px 40px; position: relative; width: 50%; }
.timeline-item.left { left: 0; text-align: right; }
.timeline-item.right { left: 50%; }
.timeline-item::after { 
    content: ''; position: absolute; width: 24px; height: 24px; right: -12px; 
    background-color: var(--vz-gold); border: 4px solid var(--vz-black); 
    top: 15px; border-radius: 50%; z-index: 1; transition: 0.3s;
}
.timeline-item.right::after { left: -12px; }
.timeline-item:hover::after { transform: scale(1.3); background-color: var(--vz-red); }

.timeline-content { 
    padding: 30px; background: #111; position: relative; 
    border-radius: 8px; border: 1px solid #333; box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}
.timeline-year { color: var(--vz-gold); font-size: 2.5rem; font-weight: 900; margin-bottom: 10px; line-height: 1; }
.timeline-content h3 { color: white; margin-bottom: 10px; font-size: 1.3rem; }
.timeline-content p { color: #aaa; line-height: 1.6; margin: 0; }

@media screen and (max-width: 768px) {
    .timeline::after { left: 31px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; text-align: left; }
    .timeline-item.right { left: 0; }
    .timeline-item.left::after, .timeline-item.right::after { left: 19px; }
}

/* Social Wall Card */
.social-card { 
    background: var(--vz-white); border-radius: 12px; padding: 20px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: 0.3s; 
}
.social-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.1); }
.social-header { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.social-header img { width: 45px; height: 45px; border-radius: 50%; border: 2px solid var(--vz-red); padding: 2px; }
.social-username { font-weight: 900; color: var(--vz-blue); font-size: 1.1rem; }
.social-username span { display: block; font-size: 0.8rem; font-weight: normal; color: #888; }
.social-img { width: 100%; height: 250px; object-fit: cover; border-radius: 8px; margin-bottom: 15px; }
.social-text { color: #444; font-size: 0.95rem; line-height: 1.5; }
.social-text strong { color: var(--vz-blue); }

/* ==========================================
   --- FIX URGENTI MOBILE (Titolo, Menu, Card Giocatori) ---
   ========================================== */

/* 1. Allineamento Menu Hamburger e Logo nella barra in alto */
.navbar-container {
    display: flex !important;
    align-items: center !important;
}
.hamburger {
    margin: 0 !important;
    padding: 0 10px !important;
    display: flex;
    align-items: center;
}

/* 2. Titolo Valenzana Mado nella foto (Hero) che veniva tagliato */
@media (max-width: 768px) {
    .hero-overlay h1 {
        font-size: 3.2rem !important; /* Rimpicciolisce il font su mobile */
        line-height: 1.1 !important;
        word-wrap: break-word !important;
    }
    .hero-overlay p {
        font-size: 1rem !important;
    }
}

/* 3. Card Giocatori adattabili allo schermo del cellulare (Effetto App) */
@media (max-width: 768px) {
    .roster-scroll-container {
        scroll-snap-type: x mandatory; /* Effetto scorrimento magnetico */
        padding: 10px 5vw 30px 5vw !important;
        gap: 15px !important;
    }
    
    .roster-scroll-container .premium-player-card {
        min-width: 90vw !important; /* Prende il 90% della larghezza dello schermo */
        height: 65vh !important; /* Prende il 65% dell'altezza dello schermo */
        min-height: 400px !important; 
        max-height: 600px !important;
        scroll-snap-align: center; /* Centra la card automaticamente quando scorri */
        margin: 0 !important;
    }
    
    /* L'immagine prende il 70% della card per adattarsi all'altezza */
    .roster-scroll-container .premium-player-card .premium-player-img-wrapper {
        height: 70% !important; 
    }
    
    /* Ridimensiona un po' il testo della card su mobile */
    .roster-scroll-container .premium-player-info {
        padding: 15px 20px !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: 30% !important;
    }
    .roster-scroll-container .premium-player-info h3 {
        font-size: 1.3rem !important;
    }
}

/* ==========================================
   --- FIX CRITICI: HAMBURGER E TITOLO MOBILE ---
   ========================================== */

@media (max-width: 900px) {
    /* 1. Forza l'apparizione delle voci nel menu hamburger (annulla il vecchio display: none) */
    .nav-links {
        display: flex !important;
    }
    
    /* 2. Il titolo "VALENZANA" non si spezzerà MAI PIÙ a metà parola */
    .hero-overlay h1 {
        font-size: 13vw !important; /* Grandezza liquida: si adatta esattamente alla larghezza del telefono */
        white-space: nowrap !important; /* Vieta l'andata a capo a metà parola */
        word-break: keep-all !important;
    }
}

/* ==========================================
   --- FIX MENU A FISARMONICA E FOOTER MOBILE ---
   ========================================== */

@media (max-width: 900px) {
    /* 1. Trasforma il menu Squadre in una Fisarmonica Centrale */
    .dropdown {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .dropdown-content, 
    .dropdown-submenu .dropdown-content {
        position: relative !important; /* Rimuove l'effetto "fluttuante" */
        top: 0 !important;
        left: 0 !important;
        box-shadow: none !important;
        background-color: rgba(255, 255, 255, 0.05) !important; /* Sfondo leggermente in risalto */
        width: 100% !important;
        margin-top: 10px !important;
        border-radius: 8px;
    }
    .dropdown-content a {
        color: var(--vz-gold) !important;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.05) !important;
        padding: 15px !important;
    }
    
    /* 2. Fix Footer Tagliato (Dispone tutto su una singola colonna centrata) */
    .footer-content-grid {
        grid-template-columns: 1fr !important; /* Forza una sola colonna invece di tre */
        text-align: center !important;
        gap: 40px !important;
    }
    .footer-links a {
        display: block;
        margin: 0 auto 15px auto;
    }
    .footer-container {
        padding: 0 5% !important;
        overflow: hidden; /* Evita qualsiasi sbordamento laterale */
    }
}

/* ==========================================
   --- FIX FINALI: DESKTOP, POPUP, SCROLL ---
   ========================================== */

/* 1. Nascondi Hamburger su PC */
@media (min-width: 901px) {
    .hamburger { display: none !important; }
}

/* 2. Scorrimento vellutato (Smooth Scroll) in tutta la pagina */
html { scroll-behavior: smooth !important; }

/* 3. Fix Popup Area Stampa tagliato su Smartphone */
@media (max-width: 768px) {
    .vz-modal-content {
        width: 95% !important;
        margin: 5% auto !important;
        box-sizing: border-box !important;
    }
    .modal-page-wrapper {
        padding: 20px !important;
        box-sizing: border-box !important;
    }
    .modal-page-wrapper form {
        grid-template-columns: 1fr !important; /* Forza 1 singola colonna per non sbordare */
    }
    .modal-page-wrapper input, 
    .modal-page-wrapper select, 
    .modal-page-wrapper textarea, 
    .modal-page-wrapper button {
        grid-column: span 1 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        max-width: 100% !important;
    }
}

/* 4. Logica Menu a Fisarmonica per Cellulari */
@media (max-width: 900px) {
    .dropdown > .dropdown-content, 
    .dropdown-submenu > .dropdown-content {
        display: none !important; /* Nascosti di default */
    }
    .dropdown.active-acc > .dropdown-content,
    .dropdown-submenu.active-acc > .dropdown-content {
        display: block !important; /* Si aprono al tocco della voce madre */
    }
}

/* ==========================================
   --- SCORRIMENTO ORIZZONTALE MOBILE (News, Match, Store, Social) ---
   ========================================== */
@media (max-width: 768px) {
    #news-grid, #store-grid, #social-grid, #match-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        gap: 15px !important;
        padding-bottom: 20px !important;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Ridimensiona le card all'85% dello schermo per far intuire che ce ne sono altre a lato */
    #news-grid > div, #store-grid > div, #social-grid > div, #match-grid > div {
        flex: 0 0 85% !important;
        scroll-snap-align: center;
        max-width: 85% !important;
    }
}

/* ==========================================
   --- SOCIAL WALL: GRAFICA FIGHISSIMA ---
   ========================================== */
.social-card {
     background: var(--vz-white); border-radius: 12px; padding: 20px;
     box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: 0.3s;
}
.social-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.1); }
.social-header { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.social-header img { width: 45px; height: 45px; border-radius: 50%; border: 2px solid var(--vz-red); padding: 2px; }
.social-username { font-weight: 900; color: var(--vz-blue); font-size: 1.1rem; }
.social-username span { display: block; font-size: 0.8rem; font-weight: normal; color: #888; }
.social-img { width: 100%; height: 250px; object-fit: cover; border-radius: 8px; margin-bottom: 15px; }
.social-text { color: #444; font-size: 0.95rem; line-height: 1.5; }
.social-text strong { color: var(--vz-blue); }

/* Forza lo scorrimento orizzontale magnetico su cellulare */
@media (max-width: 768px) {
    #social-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        gap: 15px !important;
        padding-bottom: 20px !important;
        -webkit-overflow-scrolling: touch;
    }
    #social-grid > div {
        flex: 0 0 85% !important;
        scroll-snap-align: center;
        max-width: 85% !important;
    }
}

/* ==========================================
   --- FIX GRIGLIA DESKTOP SOCIAL WALL ---
   ========================================== */
@media (min-width: 769px) {
    #social-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important; /* Forza esattamente 3 colonne allineate su PC */
        gap: 30px !important;
    }
}

/* === SCROLL TIMELINE STORIA === */
.timeline-scroll-box {
    max-height: 700px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 15px;
    scrollbar-width: thin; /* Per Firefox */
    scrollbar-color: var(--vz-red) #111;
}

/* Stile barra di scorrimento per Chrome/Safari/Edge */
.timeline-scroll-box::-webkit-scrollbar {
    width: 8px;
}
.timeline-scroll-box::-webkit-scrollbar-track {
    background: #111; 
    border-radius: 4px;
}
.timeline-scroll-box::-webkit-scrollbar-thumb {
    background: var(--vz-red); 
    border-radius: 4px;
}
.timeline-scroll-box::-webkit-scrollbar-thumb:hover {
    background: var(--vz-gold); 
}

/* =========================================
   MATCH CENTER PRO - TABS & STATISTICHE
   ========================================= */
.match-pro-modal .vz-modal-content { max-width: 850px; background: #111; color: white; padding: 0; overflow: hidden; border: 1px solid #333; }
.match-pro-header { background: var(--vz-blue); padding: 20px; text-align: center; border-bottom: 4px solid var(--vz-red); }
.match-pro-score { font-size: 2.5rem; font-weight: 900; margin: 10px 0; color: white; text-shadow: 0 4px 10px rgba(0,0,0,0.5); }

/* Sistema a Tab */
.match-tabs { display: flex; background: #0a0a0a; border-bottom: 2px solid #222; }
.match-tab { flex: 1; text-align: center; padding: 15px; cursor: pointer; font-weight: 800; color: #555; text-transform: uppercase; letter-spacing: 1px; transition: 0.3s; }
.match-tab:hover { color: #888; }
.match-tab.active { color: var(--vz-gold); border-bottom: 3px solid var(--vz-red); background: #111; }
.match-tab-content { display: none; padding: 30px 20px; animation: fadeIn 0.4s ease; }
.match-tab-content.active { display: block; }

/* Barre Statistiche */
.stat-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; font-weight: bold; }
.stat-label { width: 120px; text-align: center; font-size: 0.85rem; color: #aaa; text-transform: uppercase; letter-spacing: 1px; }
.stat-val { width: 40px; text-align: center; font-size: 1.4rem; color: white; }
.stat-bar-wrapper { flex: 1; height: 10px; background: #222; border-radius: 5px; display: flex; margin: 0 15px; overflow: hidden; box-shadow: inset 0 2px 5px rgba(0,0,0,0.5); }
.stat-bar-home { background: var(--vz-red); height: 100%; transition: width 1.5s cubic-bezier(0.25, 1, 0.5, 1); }
.stat-bar-away { background: #4a90e2; height: 100%; transition: width 1.5s cubic-bezier(0.25, 1, 0.5, 1); }

/* Campo da Calcio (Pitch) */
.soccer-pitch { background: #2e7d32; border: 2px solid rgba(255,255,255,0.3); border-radius: 8px; height: 420px; position: relative; margin: 0 auto; max-width: 380px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.pitch-line-center { position: absolute; top: 50%; width: 100%; height: 2px; background: rgba(255,255,255,0.3); transform: translateY(-50%); }
.pitch-circle { position: absolute; top: 50%; left: 50%; width: 70px; height: 70px; border: 2px solid rgba(255,255,255,0.3); border-radius: 50%; transform: translate(-50%, -50%); }
.pitch-box-bottom { position: absolute; bottom: 0; left: 50%; width: 140px; height: 60px; border: 2px solid rgba(255,255,255,0.3); border-bottom: none; transform: translateX(-50%); }
.pitch-box-top { position: absolute; top: 0; left: 50%; width: 140px; height: 60px; border: 2px solid rgba(255,255,255,0.3); border-top: none; transform: translateX(-50%); }
.player-dot { position: absolute; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--vz-gold); display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 900; color: white; transform: translate(-50%, -50%); box-shadow: 0 4px 10px rgba(0,0,0,0.6); z-index: 2; transition: all 0.3s; }
.player-dot:hover { transform: translate(-50%, -50%) scale(1.2); cursor: pointer; }

/* ==========================================
   --- SUPER SEARCH BAR OVALE ED ESPANDIBILE ---
   ========================================== */
.main-search-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -28px; /* La fa sovrapporre leggermente all'header */
    position: relative;
    z-index: 20;
    padding: 0 5%;
}

.oval-search {
    width: 280px;
    padding: 16px 30px;
    border-radius: 50px;
    border: 3px solid var(--vz-red);
    background: var(--vz-white);
    color: var(--vz-blue);
    font-size: 1.1rem;
    font-weight: 800;
    text-align: center;
    outline: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    font-family: var(--font-main);
}

.oval-search:focus {
    width: 100%;
    max-width: 600px; /* Si espande fino a 600px su PC, o prende il 100% su mobile */
    box-shadow: 0 15px 35px rgba(227, 6, 19, 0.3);
    border-color: var(--vz-gold);
}

.oval-search::placeholder {
    color: #94a3b8;
    font-weight: 600;
}

.search-dropdown {
    display: none;
    position: absolute;
    top: 65px;
    width: 100%;
    max-width: 600px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    overflow: hidden;
    z-index: 2000;
    border: 1px solid #eee;
}

/* Stile dei risultati della ricerca */
.search-result-item {
    display: block;
    padding: 15px 20px;
    color: var(--vz-blue);
    text-decoration: none;
    border-bottom: 1px solid #eee;
    font-weight: bold;
    text-align: left;
    transition: 0.2s;
}
.search-result-item:hover {
    background-color: var(--vz-gray);
    color: var(--vz-red);
    padding-left: 25px;
}

/* ==========================================
   --- FIX URGENTE MOBILE: OVERFLOW SCHERMO E TABELLE ---
   ========================================== */

/* 1. Blocca lo scorrimento orizzontale generale in modo assoluto */
html, body {
    overflow-x: clip !important;
    max-width: 100vw !important;
}

/* 2. Adatta la Barra di Ricerca per non sfondare i bordi */
.main-search-wrapper {
    box-sizing: border-box !important;
    width: 100%;
}
.oval-search {
    width: 100% !important;
    max-width: 280px; 
}
.oval-search:focus {
    max-width: 100% !important;
}

/* 3. Fix Calendario (Fa scorrere col dito le tabelle troppo larghe solo su Mobile) */
@media (max-width: 768px) {
    table {
        display: block !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap; 
    }
}

/* 4. Fix Tabellone in partita.php per i cellulari */
@media (max-width: 768px) {
    .container {
        padding: 15px !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }
    .score-row {
        flex-direction: column;
        gap: 15px !important;
        width: 100%;
    }
    .team-name {
        font-size: 1.4rem !important; /* Rimpicciolisce il font delle squadre */
        text-align: center !important;
        justify-content: center !important;
        flex-wrap: wrap; /* Manda a capo il testo se è troppo lungo */
        width: 100%;
    }
    .score {
        font-size: 2.5rem !important;
        padding: 10px 20px !important;
    }
    .match-grid {
        grid-template-columns: 1fr !important;
        width: 100% !important;
    }
}

/* ==========================================
   --- 1. SFONDO PIU' CHIARO (VISIBILITA' STADIO) ---
   ========================================== */
.scroll-bg.active { 
    opacity: 0.45 !important; /* Rende la foto molto più visibile (prima era 0.15) */
}
.scroll-bg::after {
    /* Sostituisce il nero totale con un blu scuro semi-trasparente */
    background: linear-gradient(to bottom, rgba(0, 27, 84, 0.75), rgba(10, 10, 10, 0.9)) !important; 
}

/* ==========================================
   --- 2. ROSTER A SCORRIMENTO CONTINUO ---
   ========================================== */
.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    position: relative;
    padding: 20px 0;
}

.marquee-content {
    display: flex;
    gap: 25px;
    /* 40 secondi per completare un giro. Modifica per rallentare o velocizzare */
    animation: scrollMarquee 40s linear infinite; 
}

.marquee-wrapper:hover .marquee-content {
    animation-play-state: paused; /* Si ferma comodamente se l'utente ci mette il mouse o il dito sopra! */
}

@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* -50% perchè duplicheremo i giocatori per non lasciare spazi vuoti */
}

/* Card Giocatore Stile "Social Wall" */
.player-box-card {
    background: var(--vz-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    cursor: pointer;
    width: 250px; /* Larghezza fissa come nel Social Wall */
    flex-shrink: 0;
    border: 1px solid #eee;
}

.player-box-card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 15px 40px rgba(0,0,0,0.15); 
}

.player-box-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: #f1f5f9;
    border-bottom: 3px solid var(--vz-red);
}

.player-box-info {
    padding: 20px 15px;
    text-align: center;
}

.player-box-info h3 {
    color: var(--vz-blue);
    font-size: 1.25rem;
    margin: 0 0 5px 0;
    font-weight: 900;
}

.player-box-info p.role {
    color: var(--vz-red);
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 800;
    margin: 0 0 8px 0;
}

.player-box-info p.dob {
    color: #888;
    font-size: 0.8rem;
    font-weight: 600;
    margin: 0;
}

/* --- STILE GLOBALE PER I FILTRI (Roster, News, Store) --- */
.filters-container { 
    display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; margin-bottom: 40px; padding: 0 5%; 
}
.filter-btn { 
    background: #e2e8f0; color: var(--vz-blue); border: none; padding: 10px 20px; border-radius: 30px; font-weight: 800; cursor: pointer; transition: 0.3s; text-transform: uppercase; font-size: 0.85rem; 
}
.filter-btn.active, .filter-btn:hover { 
    background: var(--vz-red); color: white; 
}

/* ==========================================
   --- GDPR COOKIE BANNER & PLACEHOLDER ---
   ========================================== */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; width: 100%;
    background: rgba(0, 27, 84, 0.98); backdrop-filter: blur(10px);
    color: white; padding: 20px 5%; z-index: 10000;
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.5); transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    border-top: 3px solid var(--vz-red);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-text { font-size: 0.9rem; line-height: 1.5; flex: 1; min-width: 300px; }
.cookie-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-cookie { padding: 12px 25px; border: none; border-radius: 6px; font-weight: 900; cursor: pointer; text-transform: uppercase; font-size: 0.85rem; transition: 0.3s; }
.btn-cookie-accept { background: var(--vz-gold); color: var(--vz-black); }
.btn-cookie-accept:hover { background: white; }
.btn-cookie-reject { background: transparent; color: white; border: 1px solid rgba(255,255,255,0.3); }
.btn-cookie-reject:hover { background: rgba(255,255,255,0.1); }

.yt-placeholder {
    background: #111; border: 2px dashed #444; border-radius: 12px; height: 250px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; color: #888;
}