/* assets/css/storia.css */

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

:root {
    --rosa-neon: #ff19ff;
    --bianco: #ffffff;
    --nero-transp: rgba(0, 0, 0, 0.85);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --border-glass: rgba(255, 255, 255, 0.1);
}

body {
    background-image: url('../../imm/sfondouml25.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
    background-repeat: no-repeat !important;
    color: var(--bianco);
    font-family: 'HelveticaBold', sans-serif;
    margin: 0;
}

/* FIX SFONDO: Ridotto da 0.6 a 0.4 per matchare le altre pagine */
body::before {
    content: ""; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4); z-index: -1; pointer-events: none;
}

.storia-container {
    width: 95%;
    /* Aumentato da 1200px a 1400px per sfruttare meglio la larghezza */
    max-width: 1400px; 
    margin: 0 auto;
    padding: 40px 0;
}

/* =========================================
   2. HERO SECTION
   ========================================= */
.storia-hero {
    text-align: center;
    margin-bottom: 50px;
    background: var(--nero-transp);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--border-glass);
}

.storia-hero h1 {
    font-family: 'DrukWide', sans-serif;
    font-size: 2.5rem;
    color: var(--rosa-neon);
    margin: 0 0 15px 0;
    text-transform: uppercase;
}

.nav-pills { display: flex; justify-content: center; gap: 15px; margin-top: 20px; }
.nav-pill {
    background: rgba(255,255,255,0.1);
    color: white; padding: 10px 25px; border-radius: 30px;
    text-decoration: none !important; font-family: 'DrukWide', sans-serif; font-size: 0.8rem;
    border: 1px solid transparent; transition: all 0.3s ease;
}
.nav-pill:hover { background: var(--rosa-neon); box-shadow: 0 0 15px var(--rosa-neon); }


/* =========================================
   3. TIMELINE (Compact Linear Layout)
   ========================================= */
.timeline-section {
    position: relative;
    padding: 20px 0 20px 30px;
    margin-bottom: 60px;
}

.timeline-section::before {
    content: ''; position: absolute; top: 0; bottom: 0; left: 15px;
    width: 2px; background: var(--rosa-neon); box-shadow: 0 0 8px var(--rosa-neon); z-index: 0;
}

.timeline-item { position: relative; margin-bottom: 40px; width: 100%; }

.timeline-dot {
    position: absolute; left: -22px; top: 20px;
    width: 14px; height: 14px; background: #000;
    border: 2px solid var(--rosa-neon); border-radius: 50%;
    z-index: 2; box-shadow: 0 0 10px var(--rosa-neon);
}

.timeline-content {
    background: var(--nero-transp);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 20px;
    margin-left: 20px;
    width: calc(100% - 20px);
    box-sizing: border-box;
    transition: transform 0.2s;
}

.timeline-content:hover { border-color: var(--rosa-neon); transform: translateX(5px); }

.timeline-year {
    font-family: 'DrukWide', sans-serif; font-size: 1.5rem; color: var(--rosa-neon);
    margin-bottom: 8px; display: inline-block;
    border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 3px;
}
.timeline-title {
    font-family: 'HelveticaBold', sans-serif; font-size: 1.2rem; color: white;
    margin-bottom: 10px; text-transform: uppercase;
}
.timeline-desc { font-size: 0.95rem; color: #ccc; line-height: 1.5; }


/* ANIMAZIONE FOTO VERTICALE */
.timeline-img-box {
    width: 100%; height: 240px; overflow: hidden;
    border-radius: 8px; margin-top: 15px;
    border: 1px solid rgba(255, 255, 255, 0.15); position: relative;
}
.timeline-img {
    width: 100%; height: 100%; object-fit: cover;
    animation: pan-vertical 15s ease-in-out infinite alternate;
    will-change: object-position;
}
@keyframes pan-vertical {
    0% { object-position: 50% 15%; transform: scale(1.05); }
    100% { object-position: 50% 85%; transform: scale(1.05); }
}


/* =========================================
   4. HALL OF FAME (Fix Spazi e Larghezza)
   ========================================= */
.hof-section {
    margin-top: 60px;
    position: relative !important;
    z-index: 50 !important;
    width: 100%;
}

.section-title {
    font-family: 'DrukWide', sans-serif; font-size: 2.2rem; color: var(--rosa-neon);
    text-align: center; margin-bottom: 40px; letter-spacing: 2px;
}

.hof-tabs { display: flex; justify-content: center; gap: 20px; margin-bottom: 50px; }
.hof-tab {
    background: transparent; border: 1px solid var(--border-glass);
    color: #888; padding: 12px 30px; border-radius: 8px;
    cursor: pointer; font-family: 'DrukWide', sans-serif; font-size: 0.9rem;
    transition: 0.3s; text-transform: uppercase; letter-spacing: 1px;
}
.hof-tab.active {
    background: var(--rosa-neon); color: white; border-color: var(--rosa-neon);
    box-shadow: 0 0 20px rgba(255, 25, 255, 0.4);
}

/* GRIGLIA FLUIDA CHE RIEMPIE LO SPAZIO */
.hof-grid {
    display: grid;
    /* minmax(380px, 1fr) = Le card sono minimo 380px MA si allargano (1fr) 
       per coprire tutto lo spazio vuoto della riga. 
       Niente più buchi laterali. 
    */
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 25px;
    width: 100%;
}

/* --- CARD STAGIONE --- */
.season-card {
    background: rgba(0, 0, 0, 0.85); 
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 25px;
    display: flex; flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.season-card:hover { 
    border-color: var(--rosa-neon); transform: translateY(-5px); 
    box-shadow: 0 15px 40px rgba(255, 25, 255, 0.15);
}

.season-year {
    font-family: 'DrukWide', sans-serif; color: var(--rosa-neon); font-size: 1.6rem;
    margin-bottom: 20px; text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 15px; letter-spacing: 2px;
}

.podium-list { display: flex; flex-direction: column; gap: 12px; }
.podium-row {
    display: flex; align-items: center; gap: 15px;
    padding: 10px; border-radius: 10px;
    background: rgba(255,255,255,0.03); border: 1px solid transparent;
}
.podium-row:first-child { 
    background: linear-gradient(90deg, rgba(255, 25, 255, 0.1), transparent);
    border: 1px solid rgba(255, 25, 255, 0.2);
}

.rank-badge { font-family: 'DrukWide', sans-serif; font-size: 1rem; width: 30px; text-align: center; }
.r-1 { color: var(--rosa-neon); text-shadow: 0 0 8px var(--rosa-neon); }
.r-2, .r-3 { color: white; opacity: 0.6; }

.team-logo-mini {
    width: 40px; height: 40px; object-fit: contain; background: transparent; 
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.6));
}
.team-name { font-size: 1rem; font-weight: bold; text-transform: uppercase; letter-spacing: 0.5px; }

/* --- PREMI INDIVIDUALI --- */
a.award-item, .award-item {
    display: flex !important; align-items: center; gap: 15px;
    background: rgba(0, 0, 0, 0.85); padding: 12px 15px;
    border-radius: 12px; text-decoration: none !important;
    width: 100%; box-sizing: border-box; margin-bottom: 10px;
    
    position: relative !important; z-index: 100 !important;       
    cursor: pointer !important; pointer-events: auto !important; 
    transform: translateZ(0);      
    
    border: 1px solid rgba(255,255,255,0.08); transition: all 0.2s ease-in-out;
}
a.award-item:hover, .award-item:hover {
    background: rgba(30, 30, 30, 0.95); border-color: rgba(255, 25, 255, 0.4);
    border-left: 4px solid var(--rosa-neon); transform: translateX(5px) translateZ(0);
    box-shadow: 0 5px 20px rgba(0,0,0,0.6);
}

.award-icon { width: 35px; height: 35px; object-fit: contain; pointer-events: none; }
.award-player-img {
    width: 45px; height: 45px; border-radius: 10px; object-fit: cover;
    filter: grayscale(100%) contrast(1.2); border: 1px solid rgba(255,255,255,0.3);
    pointer-events: none;
}
.award-info { display: flex; flex-direction: column; pointer-events: none; justify-content: center; }
.award-player { 
    font-weight: bold; font-size: 1rem; color: white; 
    text-transform: uppercase; letter-spacing: 0.5px;
}
.award-label { 
    font-size: 0.7rem; color: var(--rosa-neon); font-weight: bold;
    text-transform: uppercase; letter-spacing: 0; opacity: 0.9;
}

.hof-content { display: none; animation: fadeIn 0.6s ease-out; }
.hof-content.active { display: block; position: relative !important; z-index: 51 !important; }

@media (max-width: 768px) {
    .hof-grid { grid-template-columns: 1fr; width: 95%; }
    .section-title { font-size: 1.6rem; }
}