/* =========================================================================
   RESET E IMPOSTAZIONI GLOBALI
   ========================================================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #121212;
    color: #ffffff;
    padding: 20px;
}

/* Layout Mobile (Default una colonna verticale) */
.schedule-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.day-column {
    background-color: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

/* Stile di base dei titoli (Giorni normali) */
.day-title {
    background-color: #37474f; /* Grigio scuro sobrio per i giorni normali */
    color: #b0bec5;
    padding: 12px;
    text-align: center;
    font-size: 1.2rem;
    text-transform: uppercase;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

/* =========================================================================
   STILE SPECIFICO PER IL GIORNO DI OGGI
   ========================================================================= */
.day-column.is-today {
    border: 2px solid #ff5722 !important; /* Bordo arancione Gibson per risaltare */
    box-shadow: 0 0 15px rgba(255, 87, 34, 0.3);
}
.day-column.is-today .day-title {
    background-color: #ff5722 !important; /* Titolo arancione acceso per oggi */
    color: #ffffff !important;
}

.event-list {
    display: flex;
    flex-direction: column;
}
.event-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #2a2a2a;
    gap: 15px;
    background-color: #242424;
    border-left: 5px solid #555;
    transition: background-color 0.2s ease;
}
.event-item:last-child {
    border-bottom: none;
}
.event-time {
    font-weight: bold;
    color: #ffffff;
    min-width: 60px;
    background: rgba(0, 0, 0, 0.4);
    padding: 4px 6px;
    border-radius: 4px;
    text-align: center;
    font-size: 0.9rem;
}
.event-info {
    display: flex;
    flex-direction: column;
}
.event-name {
    font-size: 0.95rem;
    font-weight: 500;
}
.event-category {
    color: #eee;
    font-size: 0.8rem;
    margin-top: 2px;
    opacity: 0.7;
}
.event-comment {
    font-size: 0.78rem;
    color: #b0bec5; /* Grigio chiaro per una lettura rilassante */
    margin-top: 6px;
    font-style: italic;
    line-height: 1.4; /* Dona respiro ai testi lunghi */
    display: block;
    word-wrap: break-word; /* Forza il testo ad andare a capo senza spaccare la griglia desktop */
}

/* =========================================================================
   TAVOLOZZA COLORI PERSONALIZZATI PER CATEGORIA (TONI DARK)
   ========================================================================= */
.cat-diretta {background-color: #6c5a00 !important;border-left: 5px solid #a28700 !important;}
.cat-juke-box {background-color: #161e6c !important;border-left: 5px solid #3041ec !important;}
.cat-format-radio {background-color: #444493 !important;border-left: 5px solid #6d6ded !important;}
.cat-replica {background-color: #008100 !important;border-left: 5px solid #00b700 !important;}
.cat-podcast { background-color: #4a148c !important; border-left: 5px solid #e040fb !important; }
.cat-disco-della-settimana { background-color: #004d40 !important; border-left: 5px solid #1de9b6 !important; }
.cat-news { background-color: #755c3d !important; border-left: 5px solid #ab8759 !important; }
.cat-meteo { background-color: #42617b !important; border-left: 5px solid #557e9f !important; }
.cat-selezione { background-color: #9b3939 !important; border-left: 5px solid #d14d4d !important; }
.cat-generic { background-color: #2b2b2b; border-left: 5px solid #ff5722; }

/* =========================================================================
   LAYOUT RESPONSIVE DESKTOP (PC)
   ========================================================================= */
@media (min-width: 992px) {
    .schedule-container {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 10px;
        align-items: start;
    }
    .day-title {
        font-size: 1rem;
        padding: 10px 5px;
    }
    .event-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding: 12px 10px;
        gap: 5px;
    }
    .event-time {
        min-width: auto;
        font-size: 0.85rem;
        width: 100%;
    }
    .event-name {
        font-size: 0.85rem;
    }
}
