/* ========================================
   RESET & VARIABILI
======================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #e63946;
    --primary-dark: #b71c1c;
    --secondary: #ff6b35;
    --gold: #ffd700;
    --dark: #0a0a0a;
    --dark-card: rgba(10, 10, 10, 0.92);
    --text: #ffffff;
    --text-muted: #8a8a8a;
    --glow-primary: 0 0 40px rgba(230, 57, 70, 0.3);
    --glow-secondary: 0 0 40px rgba(255, 107, 53, 0.3);
    --glow-gold: 0 0 40px rgba(255, 215, 0, 0.3);
    --border-glow: 0 0 30px rgba(230, 57, 70, 0.1);
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-sport: 'Bangers', cursive;
}

body {
    font-family: var(--font-body);
    background: var(--dark);
    color: var(--text);
    overflow-x: hidden;
}

/* ========================================
   NAVBAR - STILE CALCIO
======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.6rem 2rem;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary);
    transition: all 0.3s ease;
}
.navbar.scrolled {
    background: rgba(0, 0, 0, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
}
.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--text);
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.2rem;
}
.nav-logo img {
    height: 40px;
    width: auto;
}
.nav-logo span {
    color: #fff;
}
.nav-logo span .red {
    color: var(--primary);
}
.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.3rem;
    align-items: center;
}
.nav-menu li a {
    padding: 0.5rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.nav-menu li a:hover {
    color: #fff;
    background: rgba(230, 57, 70, 0.1);
}
.nav-menu li a.active {
    color: #fff;
    background: var(--primary);
}
.nav-menu li a i { margin-right: 0.4rem; }
.btn-nav-admin {
    background: var(--primary) !important;
    color: #fff !important;
    font-weight: 700 !important;
    padding: 0.5rem 1.2rem !important;
    border-radius: 4px !important;
}
.btn-nav-admin:hover {
    background: var(--primary-dark) !important;
    transform: scale(1.05);
}
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}
.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ========================================
   HERO - STADIO / CALCETTO PURO
======================================== */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    background: 
        linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0.9) 100%),
        url('https://images.unsplash.com/photo-1574629810360-7efbbe195018?w=1600&q=80') center/cover no-repeat;
    background-attachment: fixed;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(0deg, transparent, transparent 50px, rgba(255,255,255,0.01) 50px, rgba(255,255,255,0.01) 51px),
        repeating-linear-gradient(90deg, transparent, transparent 50px, rgba(255,255,255,0.01) 50px, rgba(255,255,255,0.01) 51px);
    pointer-events: none;
}
.hero-badge {
    position: relative;
    background: var(--primary);
    padding: 0.5rem 2rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
    animation: pulse-badge 2s ease-in-out infinite;
}
@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 60px rgba(230, 57, 70, 0.3), 0 4px 30px rgba(0,0,0,0.5);
    margin-bottom: 0.5rem;
    line-height: 1.1;
    animation: fadeInUp 1s ease forwards;
}
.hero-title .highlight {
    color: var(--primary);
    text-shadow: 0 0 40px rgba(230, 57, 70, 0.5);
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-subtitle {
    font-size: 1.4rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 2.5rem;
    font-weight: 300;
    max-width: 600px;
    animation: fadeInUp 1.2s ease forwards;
    opacity: 0;
    animation-delay: 0.2s;
}
.hero-subtitle span {
    color: var(--gold);
    font-weight: 700;
}

/* ===== HERO BUTTONS ===== */
.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 1.4s ease forwards;
    opacity: 0;
    animation-delay: 0.4s;
}
.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2.5rem;
    border-radius: 4px;
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
}
.btn-hero-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 40px rgba(230, 57, 70, 0.3);
}
.btn-hero-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 0 60px rgba(230, 57, 70, 0.5);
}
.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}
.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    transform: translateY(-3px);
}

/* ===== HERO STATS ===== */
.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3.5rem;
    padding: 2rem 3rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 1.6s ease forwards;
    opacity: 0;
    animation-delay: 0.6s;
}
.stat-item {
    text-align: center;
    padding: 0 1.5rem;
}
.stat-number {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--primary);
    display: block;
    line-height: 1;
}
.stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.3rem;
}
.stat-divider {
    width: 2px;
    background: rgba(255, 255, 255, 0.05);
}

/* ===== NEXT MATCH CARD ===== */
.hero-match-card {
    margin-top: 2rem;
    padding: 1.5rem 3rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 1.6s ease forwards;
    opacity: 0;
    animation-delay: 0.8s;
}
.hero-match-card .match-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold);
    background: rgba(255, 215, 0, 0.1);
    padding: 0.3rem 1.2rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 215, 0, 0.1);
}
.hero-match-card .match-teams {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
}
.hero-match-card .match-teams .vs {
    color: var(--text-muted);
    font-size: 0.8rem;
}
.hero-match-card .match-teams .team-home {
    color: #fff;
}
.hero-match-card .match-teams .team-away {
    color: var(--secondary);
}
.hero-match-card .match-detail {
    color: var(--text-muted);
    font-size: 0.85rem;
}
.hero-match-card .match-detail i {
    color: var(--primary);
    margin-right: 0.3rem;
}

/* ========================================
   MATCHDAY ALERT
======================================== */
.matchday-alert {
    position: relative;
    z-index: 2;
    margin: 0 2rem -2rem;
    padding: 1rem 2rem;
    background: var(--primary);
    border-radius: 4px;
    text-align: center;
    color: #fff;
    font-weight: 700;
    animation: pulse-glow 2s ease-in-out infinite;
    box-shadow: 0 0 60px rgba(230, 57, 70, 0.3);
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 40px rgba(230, 57, 70, 0.2); }
    50% { box-shadow: 0 0 80px rgba(230, 57, 70, 0.5); }
}
.matchday-alert i {
    animation: bounce 1.5s ease-in-out infinite;
    display: inline-block;
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}
.matchday-alert a {
    color: #fff;
    text-decoration: underline;
    font-weight: 600;
}
.matchday-alert a:hover { color: var(--gold); }

/* ========================================
   SECTION GENERALI
======================================== */
.section {
    position: relative;
    z-index: 1;
    padding: 5rem 2rem;
}
.section.bg-dark {
    background: rgba(0, 0, 0, 0.3);
}
.section.bg-pitch {
    background: 
        linear-gradient(180deg, rgba(0,0,0,0.95) 0%, rgba(20,40,20,0.9) 50%, rgba(0,0,0,0.95) 100%),
        url('https://images.unsplash.com/photo-1574629810360-7efbbe195018?w=1600&q=80') center/cover fixed no-repeat;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.section-header h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
}
.section-header h2 i {
    color: var(--primary);
    margin-right: 0.75rem;
}
.section-header .section-sub {
    color: var(--text-muted);
    font-size: 0.9rem;
}
.section-header .btn-outline-section {
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    border: 2px solid var(--primary);
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
}
.section-header .btn-outline-section:hover {
    background: var(--primary);
    color: #fff;
    transform: translateX(5px);
}

/* ========================================
   NEWS GRID
======================================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.news-card {
    background: var(--dark-card);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
}
.news-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 0 40px rgba(230, 57, 70, 0.1);
}
.news-card .news-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.news-card .news-image .news-date-badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.8);
    padding: 0.3rem 1rem;
    border-radius: 4px;
    font-size: 0.7rem;
    color: var(--text-muted);
    border-left: 3px solid var(--primary);
}
.news-card .news-content {
    padding: 1.5rem;
}
.news-card .news-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}
.news-card .news-content h3 a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}
.news-card .news-content h3 a:hover {
    color: var(--primary);
}
.news-card .news-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}
.news-card .news-content .read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
}
.news-card .news-content .read-more:hover {
    gap: 1rem;
}

/* ========================================
   STANDINGS & SCORERS
======================================== */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}
.standings-preview {
    background: var(--dark-card);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow-x: auto;
}
.standings-preview table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.standings-preview table th {
    text-align: left;
    padding: 0.5rem 0.3rem;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--primary);
}
.standings-preview table td {
    padding: 0.5rem 0.3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.standings-preview table tr.highlight {
    background: rgba(230, 57, 70, 0.1);
    border-left: 3px solid var(--primary);
}
.standings-preview table tr.highlight td {
    border-bottom-color: rgba(230, 57, 70, 0.1);
}
.standings-preview .btn-standings {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
}
.standings-preview .btn-standings:hover {
    background: var(--primary-dark);
    transform: translateX(5px);
}

/* ===== TOP SCORERS ===== */
.top-scorers {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.scorer-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    background: var(--dark-card);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}
.scorer-item:hover {
    border-color: var(--primary);
    transform: translateX(5px);
}
.scorer-item.top {
    border-left: 4px solid var(--gold);
    background: rgba(255, 215, 0, 0.03);
}
.scorer-item .scorer-rank {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.2rem;
    color: var(--text-muted);
    min-width: 30px;
}
.scorer-item.top .scorer-rank {
    color: var(--gold);
}
.scorer-item .scorer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 0.8rem;
}
.scorer-item .scorer-name {
    flex: 1;
    font-weight: 600;
}
.scorer-item .scorer-goals {
    font-family: var(--font-display);
    font-weight: 900;
    color: var(--gold);
    font-size: 1.2rem;
    background: rgba(255, 215, 0, 0.05);
    padding: 0.2rem 0.8rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 215, 0, 0.1);
}
.scorer-item .scorer-goals i {
    font-size: 0.7rem;
    margin-right: 0.2rem;
}

/* ========================================
   SPONSOR SECTION
======================================== */
.sponsor-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: var(--dark-card);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.sponsor-item {
    opacity: 0.4;
    transition: all 0.3s ease;
    filter: grayscale(1);
}
.sponsor-item:hover {
    opacity: 1;
    filter: grayscale(0);
    transform: scale(1.05);
}
.sponsor-item img {
    height: 50px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

/* ========================================
   FOOTER - STILE CALCIO
======================================== */
.footer {
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.95);
    padding: 3rem 2rem 1.5rem;
    border-top: 3px solid var(--primary);
    margin-top: 2rem;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-col h3, .footer-col h4 {
    font-family: var(--font-display);
    margin-bottom: 1rem;
}
.footer-col h3 { font-size: 1.2rem; color: #fff; }
.footer-col h4 { font-size: 0.9rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.footer-col p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}
.footer-social {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
}
.footer-social a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-social a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
    border-color: var(--primary);
}
.footer-col ul {
    list-style: none;
}
.footer-col ul li {
    margin-bottom: 0.6rem;
}
.footer-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}
.footer-col ul li a:hover {
    color: var(--primary);
}
.footer-col ul li i {
    width: 20px;
    color: var(--primary);
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 0.5rem;
}
.footer-bottom i.fa-heart {
    color: var(--primary);
}

/* ========================================
   ANIMATIONS
======================================== */
[data-aos] {
    opacity: 0;
    transition: all 0.8s ease;
}
[data-aos].aos-animate {
    opacity: 1;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 1024px) {
    .grid-2 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 1rem 0;
        background: #000;
        border-top: 2px solid var(--primary);
        position: absolute;
        top: 100%;
        left: 0;
    }
    .nav-menu.open { display: flex; }
    .nav-toggle { display: flex; }
    .nav-menu li a { padding: 0.8rem 1rem; width: 100%; text-align: center; }
    .btn-nav-admin { width: 100%; text-align: center; }

    .hero-title { font-size: 2.8rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-stats { gap: 1.5rem; padding: 1.5rem; }
    .stat-number { font-size: 2rem; }
    .hero-match-card { padding: 1rem; flex-direction: column; gap: 0.5rem; }
    .hero-match-card .match-teams { font-size: 1rem; }

    .section { padding: 3rem 1rem; }
    .section-header h2 { font-size: 1.5rem; }
    .news-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-buttons .btn-hero { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.2rem; }
    .hero-stats { gap: 1rem; padding: 1rem; flex-direction: column; }
    .stat-divider { display: none; }
    .hero-match-card .match-teams { flex-direction: column; gap: 0.3rem; }
    .hero-match-card .match-teams .vs { transform: rotate(0deg); }
}



/* ========================================
   RESET & VARIABILI
======================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #e63946;
    --primary-dark: #b71c1c;
    --secondary: #ff6b35;
    --gold: #ffd700;
    --dark: #0a0a0a;
    --dark-card: rgba(10, 10, 10, 0.92);
    --text: #ffffff;
    --text-muted: #8a8a8a;
    --glow-primary: 0 0 40px rgba(230, 57, 70, 0.3);
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    font-family: var(--font-body);
    background: var(--dark);
    color: var(--text);
    overflow-x: hidden;
}

/* ========================================
   NAVBAR
======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.6rem 2rem;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary);
    transition: all 0.3s ease;
}
.navbar.scrolled {
    background: rgba(0, 0, 0, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
}
.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--text);
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.2rem;
}
.nav-logo img {
    height: 40px;
    width: auto;
}
.nav-logo span {
    color: #fff;
}
.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.3rem;
    align-items: center;
}
.nav-menu li a {
    padding: 0.5rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.nav-menu li a:hover {
    color: #fff;
    background: rgba(230, 57, 70, 0.1);
}
.nav-menu li a.active {
    color: #fff;
    background: var(--primary);
}
.nav-menu li a i { margin-right: 0.4rem; }
.btn-nav-admin {
    background: var(--primary) !important;
    color: #fff !important;
    font-weight: 700 !important;
    padding: 0.5rem 1.2rem !important;
    border-radius: 4px !important;
}
.btn-nav-admin:hover {
    background: var(--primary-dark) !important;
    transform: scale(1.05);
}
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}
.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ========================================
   MATCHDAY ALERT
======================================== */
.matchday-alert {
    position: relative;
    z-index: 2;
    margin: 0 2rem -2rem;
    padding: 1rem 2rem;
    background: var(--primary);
    border-radius: 4px;
    text-align: center;
    color: #fff;
    font-weight: 700;
    animation: pulse-glow 2s ease-in-out infinite;
    box-shadow: 0 0 60px rgba(230, 57, 70, 0.3);
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 40px rgba(230, 57, 70, 0.2); }
    50% { box-shadow: 0 0 80px rgba(230, 57, 70, 0.5); }
}
.matchday-alert i {
    animation: bounce 1.5s ease-in-out infinite;
    display: inline-block;
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}
.matchday-alert a {
    color: #fff;
    text-decoration: underline;
    font-weight: 600;
}
.matchday-alert a:hover { color: var(--gold); }

/* ========================================
   MAIN CONTENT
======================================== */
main {
    padding-top: 80px;
    min-height: 70vh;
}

/* ========================================
   SECTIONS
======================================== */
.section {
    position: relative;
    z-index: 1;
    padding: 5rem 2rem;
}
.section.bg-dark {
    background: rgba(0, 0, 0, 0.3);
}
.section.bg-pitch {
    background: 
        linear-gradient(180deg, rgba(0,0,0,0.95) 0%, rgba(20,40,20,0.9) 50%, rgba(0,0,0,0.95) 100%),
        url('https://images.unsplash.com/photo-1574629810360-7efbbe195018?w=1600&q=80') center/cover fixed no-repeat;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.section-header h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
}
.section-header h2 i {
    color: var(--primary);
    margin-right: 0.75rem;
}
.section-header .section-sub {
    color: var(--text-muted);
    font-size: 0.9rem;
}
.btn-outline-section {
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    border: 2px solid var(--primary);
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
}
.btn-outline-section:hover {
    background: var(--primary);
    color: #fff;
    transform: translateX(5px);
}

/* ========================================
   GRID & CARDS
======================================== */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

/* ========================================
   BADGE
======================================== */
.badge {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}
.badge-primary { background: var(--primary); color: #fff; }
.badge-success { background: #2ecc71; color: #fff; }
.badge-danger { background: var(--primary); color: #fff; }
.badge-warning { background: var(--gold); color: #000; }
.badge-info { background: #3498db; color: #fff; }
.badge-secondary { background: var(--text-muted); color: #fff; }

/* ========================================
   FOOTER
======================================== */
.footer {
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.95);
    padding: 3rem 2rem 1.5rem;
    border-top: 3px solid var(--primary);
    margin-top: 2rem;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-col h3, .footer-col h4 {
    font-family: var(--font-display);
    margin-bottom: 1rem;
}
.footer-col h3 { font-size: 1.2rem; color: #fff; }
.footer-col h4 { font-size: 0.9rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.footer-col p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}
.footer-social {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
}
.footer-social a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-social a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
    border-color: var(--primary);
}
.footer-col ul {
    list-style: none;
}
.footer-col ul li {
    margin-bottom: 0.6rem;
}
.footer-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}
.footer-col ul li a:hover {
    color: var(--primary);
}
.footer-col ul li i {
    width: 20px;
    color: var(--primary);
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 0.5rem;
}
.footer-bottom i.fa-heart {
    color: var(--primary);
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 1024px) {
    .grid-2 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 1rem 0;
        background: #000;
        border-top: 2px solid var(--primary);
        position: absolute;
        top: 100%;
        left: 0;
    }
    .nav-menu.open { display: flex; }
    .nav-toggle { display: flex; }
    .nav-menu li a { padding: 0.8rem 1rem; width: 100%; text-align: center; }
    .btn-nav-admin { width: 100%; text-align: center; }

    .section { padding: 3rem 1rem; }
    .section-header h2 { font-size: 1.5rem; }
    .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .grid-3 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: 1fr 1fr; }
}

/* ========================================
   FILTERS
======================================== */
.filters {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    border: 2px solid rgba(255,255,255,0.1);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: #fff;
}

.filter-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}


/* ========================================
   PLAYER CARDS
======================================== */
.player-card {
    background: var(--dark-card);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
    position: relative;
}

.player-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(230,57,70,0.1);
}

.player-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    color: rgba(255,255,255,0.05);
    position: absolute;
    top: -5px;
    right: 10px;
}

.player-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary);
}

.player-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-avatar span {
    width: 100%;
    height: 100%;
    background: rgba(230,57,70,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.player-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.player-stats {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin: 0.5rem 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.player-stats i.fa-futbol {
    color: var(--gold);
}

.player-stats i.fa-eye {
    color: var(--primary);
}

.player-stats i.fa-clock {
    color: var(--text-muted);
}

.player-cards {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.player-cards span {
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    background: rgba(255,215,0,0.1);
    border: 1px solid rgba(255,215,0,0.2);
}

/* ========================================
   FILTERS
======================================== */
.filters {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    border: 2px solid rgba(255,255,255,0.1);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: #fff;
}

.filter-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);

}




/* ========================================
   PULSANTE TORNA SU
======================================== */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(230, 57, 70, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 30px rgba(230, 57, 70, 0.6);
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn i {
    animation: arrow-bounce 2s ease-in-out infinite;
}

@keyframes arrow-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@media (max-width: 768px) {
    .scroll-top-btn {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        bottom: 20px;
        right: 20px;
    }
}


/* ========================================
   OTTIMIZZAZIONI MOBILE
======================================== */

/* --- PAGINA SQUADRA: CARD PIÙ COMPATTE --- */
@media (max-width: 480px) {
    .player-card {
        padding: 1rem !important;
    }

    .player-card .player-avatar {
        width: 70px !important;
        height: 70px !important;
    }

    .player-card .player-number {
        font-size: 2rem !important;
        top: 0 !important;
    }

    .player-card h3 {
        font-size: 0.95rem !important;
    }

    .player-card .player-stats {
        flex-wrap: wrap;
        gap: 0.5rem !important;
        font-size: 0.75rem !important;
    }

    .player-card .badge {
        font-size: 0.65rem !important;
        padding: 0.15rem 0.6rem !important;
    }
}

/* --- FILTRI MOBILE: COMPATTI E A SCHERMO INTERO --- */
@media (max-width: 480px) {
    .filters {
        gap: 0.4rem !important;
    }

    .filter-btn {
        padding: 0.3rem 0.8rem !important;
        font-size: 0.65rem !important;
        flex: 1;
        min-width: 60px;
        text-align: center;
    }
}

/* --- TABELLA CLASSIFICA: SCROLL ORIZZONTALE --- */
@media (max-width: 768px) {
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table-container table {
        font-size: 0.75rem !important;
        min-width: 600px;
    }

    .table-container th,
    .table-container td {
        padding: 0.4rem 0.3rem !important;
        white-space: nowrap;
    }
}

/* --- PARTITE: LAYOUT VERTICALE --- */
@media (max-width: 480px) {
    .match-card {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 0.8rem !important;
        gap: 0.5rem !important;
    }

    .match-card .match-date {
        text-align: center;
        font-size: 0.75rem !important;
        min-width: auto !important;
    }

    .match-card .match-result {
        flex-direction: column !important;
        gap: 0.3rem !important;
    }

    .match-card .match-result .score {
        font-size: 1.5rem !important;
    }

    .match-card .match-status {
        justify-content: center !important;
        min-width: auto !important;
        flex-wrap: wrap;
    }

    .match-card .match-status .badge {
        font-size: 0.65rem !important;
    }
}

/* --- PROSSIMA PARTITA IN EVIDENZA --- */
@media (max-width: 480px) {
    .next-match-card {
        padding: 1rem !important;
    }

    .next-match-card .next-match-content {
        flex-direction: column !important;
        gap: 0.3rem !important;
    }

    .next-match-card .match-teams {
        flex-direction: column !important;
        gap: 0.3rem !important;
        font-size: 0.9rem !important;
    }

    .next-match-card .match-details {
        flex-direction: column !important;
        gap: 0.3rem !important;
        font-size: 0.8rem !important;
        align-items: center !important;
    }
}

/* --- HERO MOBILE --- */
@media (max-width: 480px) {
    .hero {
        padding: 6rem 1rem 2rem !important;
        min-height: 90vh !important;
    }

    .hero .hero-title {
        font-size: 2.2rem !important;
    }

    .hero .hero-subtitle {
        font-size: 0.9rem !important;
        padding: 0 0.5rem !important;
    }

    .hero .hero-badge {
        font-size: 0.6rem !important;
        padding: 0.3rem 1rem !important;
    }

    .hero .btn-hero {
        padding: 0.7rem 1.5rem !important;
        font-size: 0.8rem !important;
        width: 100% !important;
        justify-content: center !important;
    }

    .hero .hero-stats {
        padding: 1rem !important;
        gap: 0.8rem !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }

    .hero .stat-item {
        padding: 0 0.5rem !important;
        flex: 1 0 40%;
    }

    .hero .stat-number {
        font-size: 1.8rem !important;
    }

    .hero .stat-label {
        font-size: 0.6rem !important;
    }

    .hero .stat-divider {
        display: none !important;
    }

    .hero .hero-match-card {
        padding: 1rem !important;
        flex-direction: column !important;
        gap: 0.5rem !important;
        width: 100% !important;
    }

    .hero .hero-match-card .match-teams {
        flex-direction: column !important;
        gap: 0.3rem !important;
        font-size: 0.9rem !important;
    }

    .hero .hero-match-card .match-teams .vs {
        font-size: 0.7rem !important;
    }

    .hero .hero-match-card .match-detail {
        font-size: 0.7rem !important;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.3rem 0.8rem !important;
    }

    .hero .hero-match-card .match-detail span {
        font-size: 0.65rem !important;
        padding: 0.15rem 0.5rem !important;
    }
}

/* --- NEWS MOBILE --- */
@media (max-width: 480px) {
    .news-card .news-image {
        height: 150px !important;
    }

    .news-card .news-content h3 {
        font-size: 0.95rem !important;
    }

    .news-card .news-content p {
        font-size: 0.8rem !important;
    }

    .news-card .news-content .read-more {
        font-size: 0.75rem !important;
    }
}

/* --- CONTATTI MOBILE --- */
@media (max-width: 480px) {
    .contact-info ul li,
    .contact-form form {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 0.9rem !important;
        padding: 0.6rem !important;
    }

    .contact-form button {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* --- PAGINA NOTIZIA SINGOLA --- */
@media (max-width: 480px) {
    article {
        padding: 1.5rem !important;
    }

    article h1 {
        font-size: 1.5rem !important;
    }

    article .contenuto {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
    }
}

/* --- SPONSOR MOBILE --- */
@media (max-width: 480px) {
    .sponsor-grid {
        gap: 1rem !important;
        padding: 1rem !important;
    }

    .sponsor-item img {
        height: 35px !important;
        max-width: 100px !important;
    }
}

/* --- FOOTER MOBILE --- */
@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .footer-bottom {
        flex-direction: column !important;
        text-align: center !important;
        gap: 0.3rem !important;
        font-size: 0.7rem !important;
    }

    .footer-social {
        justify-content: center !important;
    }

    .footer-social a {
        width: 36px !important;
        height: 36px !important;
        font-size: 0.8rem !important;
    }
}

/* --- SEZIONI GENERALI --- */
@media (max-width: 480px) {
    .section {
        padding: 2rem 0.8rem !important;
    }

    .section-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem !important;
    }

    .section-header h2 {
        font-size: 1.3rem !important;
    }

    .section-header .section-sub {
        font-size: 0.75rem !important;
    }

    .section-header .btn-outline-section {
        font-size: 0.7rem !important;
        padding: 0.3rem 1rem !important;
    }

    .grid-2 {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .grid-3 {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .container {
        padding: 0 0.5rem !important;
    }
}

/* --- PULSANTE TORNA SU MOBILE --- */
@media (max-width: 480px) {
    .scroll-top-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 1rem !important;
        bottom: 15px !important;
        right: 15px !important;
    }
}

/* --- ADMIN PAGES MOBILE --- */
@media (max-width: 480px) {
    .admin-sidebar {
        width: 100% !important;
        height: auto !important;
        position: relative !important;
        padding: 0.8rem !important;
    }

    .admin-sidebar nav {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 0.2rem !important;
    }

    .admin-sidebar nav a {
        padding: 0.3rem 0.6rem !important;
        font-size: 0.7rem !important;
    }

    .admin-content {
        margin-left: 0 !important;
        padding: 0.8rem !important;
        width: 100% !important;
    }

    .admin-header h1 {
        font-size: 1.2rem !important;
    }

    .admin-header .btn {
        font-size: 0.7rem !important;
        padding: 0.4rem 0.8rem !important;
    }

    .admin .stats-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.5rem !important;
    }

    .admin .stat-card {
        padding: 0.8rem !important;
    }

    .admin .stat-card .number {
        font-size: 1.5rem !important;
    }

    .admin .stat-card .label {
        font-size: 0.6rem !important;
    }

    .admin .form-grid {
        grid-template-columns: 1fr !important;
        gap: 0.8rem !important;
    }

    .admin .table-container {
        padding: 0.8rem !important;
        font-size: 0.7rem !important;
    }

    .admin .table-container table {
        font-size: 0.65rem !important;
        min-width: 500px;
    }

    .admin .table-container th,
    .admin .table-container td {
        padding: 0.3rem 0.2rem !important;
    }

    .admin .btn-action {
        padding: 0.2rem 0.4rem !important;
        font-size: 0.6rem !important;
    }

    .admin .settings-container {
        padding: 1rem !important;
    }

    .admin .settings-grid {
        grid-template-columns: 1fr !important;
        gap: 0.8rem !important;
    }

    .admin .form-actions {
        flex-direction: column !important;
    }

    .admin .form-actions .btn {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* --- TABELLA CLASSIFICA HOME MOBILE --- */
@media (max-width: 480px) {
    .standings-preview {
        padding: 0.8rem !important;
    }

    .standings-preview table {
        font-size: 0.65rem !important;
        min-width: 350px;
    }

    .standings-preview table th,
    .standings-preview table td {
        padding: 0.3rem 0.2rem !important;
    }
}



/* ========================================
   NAVBAR MOBILE MIGLIORATA
======================================== */
@media (max-width: 768px) {
    .navbar {
        padding: 0.4rem 1rem !important;
    }

    .nav-logo {
        font-size: 0.9rem !important;
    }

    .nav-logo img {
        height: 30px !important;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 0.5rem 0;
        background: rgba(0, 0, 0, 0.98);
        border-top: 2px solid var(--primary);
        position: absolute;
        top: 100%;
        left: 0;
        gap: 0 !important;
    }

    .nav-menu.open {
        display: flex !important;
    }

    .nav-menu li a {
        padding: 0.7rem 1rem !important;
        width: 100% !important;
        text-align: center !important;
        font-size: 0.8rem !important;
        border-bottom: 1px solid rgba(255,255,255,0.03);
    }

    .nav-menu li:last-child a {
        border-bottom: none;
    }

    .nav-menu .btn-nav-admin {
        background: var(--primary) !important;
        color: #fff !important;
        margin: 0.3rem 1rem !important;
        width: auto !important;
        text-align: center !important;
        border-radius: 4px !important;
    }

    .nav-toggle {
        display: flex !important;
    }

    /* Hamburger animato */
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

/* ========================================
   NAVBAR MOBILE MIGLIORATA
======================================== */
@media (max-width: 768px) {
    .navbar {
        padding: 0.4rem 0.8rem !important;
    }

    .nav-logo {
        font-size: 0.85rem !important;
    }

    .nav-logo img {
        height: 28px !important;
    }

    .nav-toggle {
        display: flex !important;
        flex-direction: column;
        cursor: pointer;
        gap: 4px;
        padding: 5px;
        z-index: 1001;
        background: rgba(255,255,255,0.05);
        border-radius: 4px;
        border: 1px solid rgba(255,255,255,0.1);
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
    }

    .nav-toggle span {
        width: 22px;
        height: 2.5px;
        background: #fff;
        border-radius: 2px;
        transition: all 0.3s ease;
        display: block;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: scale(0);
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -4px);
    }

    .nav-menu {
        display: none !important;
        flex-direction: column;
        width: 100%;
        padding: 0.5rem 0;
        background: rgba(0, 0, 0, 0.98);
        border-top: 2px solid var(--primary);
        position: absolute;
        top: 100%;
        left: 0;
        gap: 0 !important;
        box-shadow: 0 20px 40px rgba(0,0,0,0.8);
    }

    .nav-menu.open {
        display: flex !important;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu li a {
        padding: 0.7rem 1.2rem !important;
        width: 100% !important;
        text-align: center !important;
        font-size: 0.85rem !important;
        border-bottom: 1px solid rgba(255,255,255,0.03);
        display: block !important;
        border-radius: 0 !important;
    }

    .nav-menu li:last-child a {
        border-bottom: none;
    }

    .nav-menu .btn-nav-admin {
        background: var(--primary) !important;
        color: #fff !important;
        margin: 0.5rem 1rem !important;
        width: auto !important;
        text-align: center !important;
        border-radius: 4px !important;
        border: none !important;
    }
}

/* ========================================
   TABELLA CLASSIFICA - MOBILE
======================================== */
@media (max-width: 768px) {
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: var(--primary) rgba(255,255,255,0.05);
        padding-bottom: 0.5rem;
    }

    .table-container::-webkit-scrollbar {
        height: 4px;
    }

    .table-container::-webkit-scrollbar-track {
        background: rgba(255,255,255,0.05);
        border-radius: 10px;
    }

    .table-container::-webkit-scrollbar-thumb {
        background: var(--primary);
        border-radius: 10px;
    }

    .table-container table {
        font-size: 0.7rem !important;
        min-width: 500px;
        width: 100%;
    }

    .table-container th,
    .table-container td {
        padding: 0.4rem 0.3rem !important;
        white-space: nowrap;
        text-align: center !important;
    }

    .table-container th:first-child,
    .table-container td:first-child {
        padding-left: 0.5rem !important;
    }

    .table-container th:last-child,
    .table-container td:last-child {
        padding-right: 0.5rem !important;
    }
}

@media (max-width: 480px) {
    .standings-preview {
        padding: 0.5rem !important;
    }

    .standings-preview table {
        font-size: 0.6rem !important;
        min-width: 320px;
    }

    .standings-preview table th,
    .standings-preview table td {
        padding: 0.25rem 0.15rem !important;
    }

    .standings-preview table th {
        font-size: 0.5rem !important;
    }
}

/* ========================================
   NAVBAR - HAMBURGER ANIMATO
======================================== */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 5px;
    z-index: 1001;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.1);
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

.nav-toggle span {
    width: 22px;
    height: 2.5px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}