/* assets/css/archivio-2.css - FIX TRASPARENZA PARTITE */

/* =========================================
   1. FONTS & VARIABILI
   ========================================= */
@font-face {
    font-family: 'DrukWide';
    src: url('../../doc/DrukWideBold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'HelveticaBold';
    src: url('../../doc/HelveticaBold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

:root {
    --rosa-neon: #ff19ff;
    --viola: #5e00ff;
    --bianco: #ffffff;
    --nero-transp: rgba(0, 0, 0, 0.85);
    --bg-menu: rgba(0, 0, 0, 0.7); 
    --testo-bianco: #ffffff;
}

.druk-font { font-family: 'DrukWide', sans-serif; letter-spacing: 0; }
.helvetica-font { font-family: 'HelveticaBold', sans-serif; letter-spacing: 0; }


/* =========================================
   2. GLOBAL BODY & RESET
   ========================================= */
body {
    font-family: 'HelveticaBold', Arial, sans-serif;
    color: var(--testo-bianco);
    margin: 0;
    padding: 0;
    background: transparent !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* SFONDO FISSO */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    background-image: url('../../imm/sfondouml25.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: -1; 
    pointer-events: none;
    transform: translateZ(0); 
}

main.container {
    flex: 1;
    width: 100%;
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center; 
}

a, a:hover, a:visited, a:active {
    text-decoration: none !important;
    color: inherit !important;
}

/* =========================================
   3. HEADER STAGIONI
   ========================================= */
.sottoheader {
    background-color: var(--bg-menu);
    padding: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
    white-space: nowrap;
    display: flex;
    gap: 10px;
    justify-content: center;
    width: 100%;
}

.sottoheader a {
    text-decoration: none !important;
    color: var(--testo-bianco) !important;
    display: block; 
}

.stagione-box {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--testo-bianco);
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    min-width: 80px;
    font-family: 'HelveticaBold', sans-serif !important;
    font-size: 14px !important; 
    font-weight: bold;
}

.stagione-box:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.stagione-box img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-top: 5px;
}

.stagione-box.active-stagione {
    outline: 2px solid var(--rosa-neon);
    outline-offset: 2px;
    box-shadow: 0 0 15px var(--rosa-neon);
    background-color: rgba(0, 0, 0, 0.6);
}

/* =========================================
   4. MENU TAB
   ========================================= */
.archivio-menu {
    background-color: var(--bg-menu);
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center;
    overflow-x: auto;
    white-space: nowrap;
    width: 100%;
    max-width: 1200px;
}

.archivio-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.archivio-menu ul li a {
    color: var(--testo-bianco);
    padding: 10px 15px;
    border-radius: 5px;
    display: block;
    white-space: nowrap;
    transition: background 0.3s;
    font-weight: bold;
    text-transform: uppercase;
    font-family: 'HelveticaBold', sans-serif !important;
    font-size: 1rem !important;
}

.archivio-menu ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.archivio-menu ul li a.active {
    background-color: var(--rosa-neon);
    color: white !important;
    box-shadow: 0 0 10px rgba(255, 25, 255, 0.5) !important;
}


/* =========================================
   5. CONTENUTO & FIX
   ========================================= */
.archivio-content {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center; 
}

.archivio-content h1, 
.archivio-content h2,
.archivio-content .phase-title {
    display: none !important;
}

/* TOGGLE SWITCH */
.archivio-content .toggle-switch {
    background: var(--bg-menu) !important;
    border: none !important;
    border-radius: 8px !important;
    margin: 20px auto 30px auto !important;
    display: flex !important;
    justify-content: center !important;
    width: fit-content !important;
    min-width: 200px;
    padding: 8px !important;
    box-shadow: none !important;
    gap: 5px !important;
}

.archivio-content .toggle-switch a {
    font-family: 'HelveticaBold', sans-serif !important;
    font-size: 14px !important;
    border-radius: 5px !important;
    border: none !important;
    text-transform: uppercase !important;
    padding: 8px 15px !important;
    text-align: center !important;
    flex: 1;
}

.archivio-content .toggle-switch a.active {
    background: var(--rosa-neon) !important;
    color: white !important;
    box-shadow: 0 0 10px rgba(255, 25, 255, 0.5) !important;
}

/* --- FIX TRASPARENZA PARTITE --- */
.match-row, 
.partita-box, 
.box-partita, 
.match-row-glass { 
    background-color: rgba(0, 0, 0, 0.6) !important; /* 35% Opacità */
    backdrop-filter: blur(5px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    transition: background-color 0.3s ease;
}

/* Hover su desktop */
@media (min-width: 769px) {
    .match-row:hover, 
    .partita-box:hover, 
    .box-partita:hover,
    .match-row-glass:hover {
        background-color: rgba(0, 0, 0, 0.55) !important;
    }
}


/* =========================================
   6. RESPONSIVE MOBILE
   ========================================= */
@media (max-width: 768px) {
    
    body { font-size: 90% !important; }
    
    .sottoheader { 
        justify-content: flex-start;
        padding: 5px 0 5px 15px; 
        gap: 8px;
        margin-bottom: 10px;
    }
    .stagione-box {
        min-width: 60px !important;
        padding: 6px !important;
        font-size: 11px !important;
    }
    .stagione-box img {
        width: 35px !important;
        height: 35px !important;
        margin-top: 3px !important;
    }
    
    .archivio-menu { 
        padding: 5px; 
        width: 100%;
        margin-bottom: 15px;
    }
    .archivio-menu ul { 
        justify-content: flex-start;
        padding-left: 10px;
        gap: 5px;
    }
    .archivio-menu ul li a { 
        font-size: 11px !important;
        padding: 6px 10px !important;
    }
    
    .archivio-content .toggle-switch {
        margin: 5px auto 15px auto !important;
        padding: 4px !important;
        min-width: auto !important;
        width: fit-content !important;
        gap: 2px !important;
    }
    
    .archivio-content .toggle-switch a {
        font-size: 10px !important;
        padding: 6px 10px !important;
        border-radius: 4px !important;
    }
}