/* CALCIOTEL - CSS Unificato 2025
   Consolidamento di style.css e style-2025.css
   Ottimizzato per Speed Index e performance
*/

:root {
    --primary-color: #004d40; /* Verde Calcio scuro */
    --accent-color: #ffc107;  /* Giallo oro */
    --blue-calciotel: #0288D1;
    --text-dark: #2c3e50;
    --text-light: #ffffff;
    --bg-body: #f4f7f6;
    --bg-card: #ffffff;
    --border-radius: 10px;
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* --- RESET & BASE --- */
* { box-sizing: border-box; }

body {
    background-color: var(--bg-body);
    font-family: 'Inter', 'Roboto', sans-serif;
    color: var(--text-dark);
    margin: 0;
    padding-bottom: 70px;
}

a { text-decoration: none; transition: 0.3s; color: inherit; }
a:hover { color: var(--blue-calciotel); }
ul { list-style: none; padding: 0; margin: 0; }

/* --- GRID SYSTEM & LAYOUT --- */
.main-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.cta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 14px;
    margin: 14px 0 20px;
}

.contenuto-cn {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow);
}

/* --- COMPONENTI CARDS & SEZIONI --- */
.classifica, .marcatori, .giornate, .rosa, .cerca, .disciplina, .cerca1, .risultati, .blocconotizia {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.classifica:hover, .marcatori:hover, .giornate:hover, .rosa:hover, .cerca:hover, .disciplina:hover, .cerca1:hover, .risultati:hover, .blocconotizia:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* --- TITOLI --- */
.classifica h2, .marcatori h2, .arbitriab h2, .giornate h3, .sidebar-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #343a40;
    padding: 0 0 15px 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #dee2e6;
    text-align: left;
    display: flex;
    align-items: center;
}

.sidebar-title {
    color: #333;
    border-bottom: 2px solid var(--blue-calciotel);
}

/* --- TABELLE --- */
table {
    border-collapse: collapse;
    width: 100%;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

/* --- SIDEBAR & BUTTONS --- */
.btn-sidebar-custom {
    display: flex;
    align-items: center;
    background-color: var(--blue-calciotel);
    color: #ffffff !important;
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-sidebar-custom:hover {
    background-color: #01579b;
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-sidebar-custom i {
    margin-right: 12px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* --- MEDIA QUERIES UNIFICATE --- */
@media (max-width: 900px) {
    .main-container { grid-template-columns: 1fr; }
    .cta-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 768px) {
    .sidebar-notizie, .sidebar-dx {
        display: none;
        width: 0;
    }
    .blocconotizia { width: 100%; }
}

@media (max-width: 520px) {
    .cta-grid { grid-template-columns: 1fr; }
    .main-container { padding: 10px; }
}