/* ==========================================================================
   ALCAROTTI ORARIO CORSI — Frontend Stylesheet
   Ottimizzato per Mobile-First UX, Oxygen Builder & OxyExtras
   Colori ufficiali PDF Alcarotti 2026/2027:
   - Tonificazione:     #E72D45
   - Cardio / Acqua:    #95C11F
   - Anima Mente Corpo: #E3CC17
   - Virtual:           #C878AF
   - A30 (30 min):      #209E98
   - Antracite Brand:   #1D1D1B
   ========================================================================== */

.alc-orario-wrapper,
.alc-orario-wrapper *,
.alc-orario-wrapper *::before,
.alc-orario-wrapper *::after {
    box-sizing: border-box;
}

.alc-orario-wrapper [hidden] {
    display: none !important;
}

.alc-orario-wrapper {
    --alc-red: #E72D45;
    --alc-green: #95C11F;
    --alc-yellow: #DFC613;
    --alc-yellow-text: #FFFFFF;
    --alc-pink: #C878AF;
    --alc-teal: #209E98;
    --alc-dark: #1D1D1B;
    --alc-gray-bg: #EDEDED;
    --alc-gray-light: #F6F6F6;
    --alc-border: #E2E4E8;
    --alc-radius-pill: 999px;
    --alc-radius-card: 16px;
    --alc-shadow-sm: 0 2px 8px rgba(29, 29, 27, 0.06);
    --alc-shadow-md: 0 8px 24px rgba(29, 29, 27, 0.10);

    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    font-family: 'Poppins', 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--alc-dark);
    line-height: 1.35;
    -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------------------------------
   1. BARRA SUPERIORE CONTROLLI (SWITCH VISTA, FASCE ORARIE, RICERCA, CATEGORIE)
   -------------------------------------------------------------------------- */
.alc-topbar {
    background: #FFFFFF;
    border: 1px solid var(--alc-border);
    border-radius: var(--alc-radius-card);
    padding: 14px 16px;
    margin-bottom: 12px;
    box-shadow: var(--alc-shadow-sm);
}

.alc-topbar-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.alc-view-switcher {
    display: inline-flex;
    background: #F1F2F4;
    padding: 4px;
    border-radius: 12px;
    gap: 4px;
}

.alc-view-btn {
    appearance: none;
    border: none;
    background: transparent;
    color: #555;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 9px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.alc-view-btn:hover {
    color: var(--alc-dark);
}

.alc-view-btn.is-active {
    background: var(--alc-dark);
    color: #FFFFFF;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
}

.alc-tools-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: flex-end;
}

.alc-timeband-pills {
    display: inline-flex;
    background: #F1F2F4;
    padding: 3px;
    border-radius: 10px;
    gap: 2px;
    overflow-x: auto;
    max-width: 100%;
}

.alc-band-btn {
    appearance: none;
    border: none;
    background: transparent;
    color: #555;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.alc-band-btn small {
    opacity: 0.7;
    font-weight: 500;
    margin-left: 2px;
}

.alc-band-btn.is-active {
    background: #FFFFFF;
    color: var(--alc-dark);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* Ricerca Rapida */
.alc-search-box {
    position: relative;
    min-width: 240px;
    flex: 0 1 280px;
}

.alc-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
    pointer-events: none;
}

.alc-search-input {
    width: 100%;
    padding: 8px 32px 8px 36px;
    border: 1.5px solid var(--alc-border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 13px;
    color: var(--alc-dark);
    background: #FAFAFA;
    transition: border-color 0.2s, background 0.2s;
}

.alc-search-input:focus {
    outline: none;
    border-color: var(--alc-dark);
    background: #FFFFFF;
}

.alc-search-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: #E0E0E0;
    color: #333;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Filtri Categorie (Chips scorrevoli su Mobile) */
.alc-cat-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.alc-cat-filters::-webkit-scrollbar {
    display: none;
}

.alc-cat-chip {
    appearance: none;
    border: 1.5px solid var(--alc-border);
    background: #FFFFFF;
    color: var(--alc-dark);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    padding: 7px 13px;
    border-radius: var(--alc-radius-pill);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    transition: all 0.18s ease;
    flex-shrink: 0;
}

.alc-chip-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--alc-chip-color, var(--alc-dark));
    display: inline-block;
    flex-shrink: 0;
}

.alc-dot-all {
    background: conic-gradient(var(--alc-red) 0 25%, var(--alc-green) 25% 50%, var(--alc-yellow) 50% 75%, var(--alc-teal) 75% 100%);
}

.alc-cat-chip:hover {
    border-color: var(--alc-chip-color, var(--alc-dark));
    transform: translateY(-1px);
}

.alc-cat-chip.is-active {
    background: var(--alc-chip-color, var(--alc-dark));
    border-color: var(--alc-chip-color, var(--alc-dark));
    color: #FFFFFF;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.alc-cat-chip.is-active .alc-chip-dot {
    background: #FFFFFF;
}

/* --------------------------------------------------------------------------
   2. BARRA GIORNI STICKY (LUN - DOM)
   -------------------------------------------------------------------------- */
.alc-day-tabs-sticky {
    position: sticky;
    top: 0;
    z-index: 30;
    background: transparent;
    padding: 8px 0;
    margin-bottom: 12px;
    border-bottom: none;
}

.alc-day-tabs {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}

.alc-day-tab {
    appearance: none;
    border: 1.5px solid var(--alc-border);
    background: #FFFFFF;
    color: var(--alc-dark);
    border-radius: 12px;
    padding: 9px 6px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    position: relative;
    transition: all 0.18s ease;
    font-family: inherit;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
}

.alc-day-short {
    display: none;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.alc-day-full {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.alc-day-count {
    font-size: 11px;
    font-weight: 600;
    color: #777;
    background: #F1F2F4;
    padding: 1px 7px;
    border-radius: 99px;
    margin-top: 2px;
}

.alc-today-badge {
    position: absolute;
    top: -6px;
    right: 6px;
    background: var(--alc-green);
    color: #FFFFFF;
    font-size: 9px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 99px;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 4px rgba(149, 193, 31, 0.4);
}

.alc-day-tab:hover {
    border-color: var(--alc-teal);
}

.alc-day-tab.is-active {
    background: var(--alc-dark);
    border-color: rgba(255, 255, 255, 0.45);
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    transform: translateY(-1px);
}

.alc-day-tab.is-active .alc-day-count {
    background: rgba(255, 255, 255, 0.18);
    color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   3. VISTA GIORNALIERA (MOBILE-FIRST "UNA BOMBA!" + DESKTOP CARD TIMELINE)
   Mostra ogni ora (es. 09:00 - 10:00) divisa in 4 quarti d'ora (:00 :15 :30 :45)
   così lo scarto di 15' dei corsi da 45' e i doppi turni 30'+30' attaccati
   (Acquagym e A30 Cardio+Tone) sono visivamente immediati!
   -------------------------------------------------------------------------- */
.alc-day-view-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alc-hour-card {
    background: #FFFFFF;
    border: 1px solid var(--alc-border);
    border-radius: var(--alc-radius-card);
    overflow: hidden;
    box-shadow: var(--alc-shadow-sm);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.alc-hour-card.is-current-hour {
    border: 2px solid var(--alc-teal);
    box-shadow: 0 6px 20px rgba(32, 158, 152, 0.16);
}

/* Intestazione Ora + Righello Quarti d'Ora (:00 | :15 | :30 | :45 | :00) */
.alc-hour-header {
    display: grid;
    grid-template-columns: 78px 1fr;
    align-items: center;
    background: #F4F5F7;
    border-bottom: 1px solid var(--alc-border);
    padding: 6px 12px 6px 14px;
}

.alc-hour-title {
    font-size: 16px;
    font-weight: 900;
    color: var(--alc-dark);
    display: flex;
    align-items: center;
    gap: 6px;
}

.alc-now-tag {
    background: var(--alc-teal);
    color: #FFFFFF;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 99px;
    text-transform: uppercase;
}

.alc-quarter-ruler {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    font-size: 11px;
    font-weight: 700;
    color: #686B73;
    position: relative;
}

.alc-quarter-tick {
    padding-left: 4px;
    border-left: 1px solid rgba(0, 0, 0, 0.12);
    line-height: 1.2;
}

.alc-quarter-tick:first-child {
    border-left: 2px solid var(--alc-dark);
    color: var(--alc-dark);
    font-weight: 800;
}

/* Corpo dell'ora: Griglia a 4 quarti d'ora di sfondo + Corsie */
.alc-hour-body {
    display: grid;
    grid-template-columns: 78px 1fr;
    padding: 10px 12px 10px 14px;
    position: relative;
}

.alc-hour-side-info {
    padding-right: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 2px solid var(--alc-dark);
}

.alc-hour-range-label {
    font-size: 11px;
    font-weight: 700;
    color: #777;
}

.alc-hour-lanes {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding-left: 0;
    background-image: linear-gradient(
        to right,
        transparent 0%,
        transparent calc(25% - 1px),
        #ECEEF2 calc(25% - 1px),
        #ECEEF2 25%,
        transparent 25%,
        transparent calc(50% - 1px),
        #E0E3E9 calc(50% - 1px),
        #E0E3E9 50%,
        transparent 50%,
        transparent calc(75% - 1px),
        #ECEEF2 calc(75% - 1px),
        #ECEEF2 75%,
        transparent 75%
    );
}

/* Singola riga/corsia proporzionale sui 60 minuti */
.alc-lane-track {
    position: relative;
    width: 100%;
    min-height: 38px;
    display: flex;
    align-items: stretch;
}

/* Pillola Corso posizionata in % sui 60 minuti dell'ora */
.alc-course-pill {
    position: absolute;
    top: 0;
    bottom: 0;
    border-radius: var(--alc-radius-pill);
    padding: 4px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    color: #FFFFFF;
    font-weight: 800;
    font-size: 13px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
}

.alc-course-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 4;
}

/* Colori per categoria */
.alc-course-pill--tonificazione {
    background: var(--alc-red);
    color: #FFFFFF;
}

.alc-course-pill--cardio {
    background: var(--alc-green);
    color: #FFFFFF;
}

.alc-course-pill--anima_mente_corpo {
    background: var(--alc-yellow);
    color: #FFFFFF;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.alc-course-pill--a30 {
    background: var(--alc-teal);
    color: #FFFFFF;
}

.alc-course-pill--virtual {
    background: #F6F0F4;
    border: 1.8px solid var(--alc-pink);
    color: var(--alc-pink);
    box-shadow: none;
}

.alc-pill-main {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    flex: 1;
}

.alc-pill-title {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.alc-pill-title-sub {
    font-weight: 700;
    opacity: 0.92;
    font-size: 11.5px;
    margin-left: 3px;
}

.alc-pill-meta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.16);
    color: #FFFFFF;
    padding: 2px 7px;
    border-radius: 99px;
    white-space: nowrap;
    flex-shrink: 0;
}

.alc-course-pill--virtual .alc-pill-meta {
    background: rgba(200, 120, 175, 0.16);
    color: #A6528C;
}

.alc-virtual-icon {
    width: 30px;
    height: 16px;
    flex-shrink: 0;
}

.alc-a30-mini-tag {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.03em;
    background: rgba(255, 255, 255, 0.22);
    padding: 1px 5px;
    border-radius: 4px;
    text-transform: uppercase;
}

/* Indicatore visivo dello scarto di 15' (:45 - :00) accanto ai corsi da 45' */
.alc-gap-indicator {
    position: absolute;
    left: 75%;
    width: 25%;
    top: 4px;
    bottom: 4px;
    border-radius: 99px;
    border: 1px dashed #D0D4DC;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    color: #9AA0AC;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   4. VISTA TABELLONE SETTIMANALE (REPLICA FEDELE DEL PDF ALCAROTTI)
   -------------------------------------------------------------------------- */
.alc-grid-view-container {
    background: #FFFFFF;
    border: 1px solid var(--alc-border);
    border-radius: var(--alc-radius-card);
    padding: 16px;
    box-shadow: var(--alc-shadow-sm);
    overflow-x: auto;
}

.alc-pdf-board {
    min-width: 1220px;
    width: 100%;
}

/* Intestazione Orari Verticali (7.00 | 7.15 | 7.30 | 7.45 | 8.00 ...) */
.alc-board-header {
    display: grid;
    grid-template-columns: 105px repeat(15, 1fr);
    margin-bottom: 6px;
    border-bottom: 2px solid var(--alc-dark);
    padding-bottom: 6px;
}

.alc-board-corner {
    font-size: 11px;
    font-weight: 800;
    color: #888;
    display: flex;
    align-items: flex-end;
    padding-left: 8px;
}

.alc-board-hour-col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-left: 1.5px solid var(--alc-dark);
    position: relative;
}

.alc-board-q-label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 10px;
    font-weight: 500;
    color: var(--alc-dark);
    text-align: center;
    padding: 4px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alc-board-q-label.is-full-hour {
    font-weight: 900;
    font-size: 11px;
}

/* Riga Giorno nel Tabellone Settimanale */
.alc-board-day-row {
    display: grid;
    grid-template-columns: 105px repeat(15, 1fr);
    background: var(--alc-gray-bg);
    margin-bottom: 10px;
    border-radius: 6px;
    overflow: hidden;
}

.alc-board-day-row.is-today-row {
    outline: 2px solid var(--alc-teal);
}

.alc-board-day-name {
    padding: 12px 10px;
    font-size: 13px;
    font-weight: 800;
    color: var(--alc-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #E4E4E4;
    border-right: 1px solid #D5D5D5;
}

.alc-board-hour-cell {
    border-left: 1.5px solid var(--alc-dark);
    position: relative;
    padding: 4px 1px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    background-image: linear-gradient(
        to right,
        transparent 0%,
        transparent calc(25% - 1px),
        rgba(255,255,255,0.65) calc(25% - 1px),
        rgba(255,255,255,0.65) 25%,
        transparent 25%,
        transparent calc(50% - 1px),
        rgba(255,255,255,0.65) calc(50% - 1px),
        rgba(255,255,255,0.65) 50%,
        transparent 50%,
        transparent calc(75% - 1px),
        rgba(255,255,255,0.65) calc(75% - 1px),
        rgba(255,255,255,0.65) 75%,
        transparent 75%
    );
}

/* Le 4 corsie fisse per ogni giorno nel tabellone PDF */
.alc-board-lane {
    position: relative;
    height: 22px;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.7);
}

.alc-board-lane:last-child {
    border-bottom: none;
}

/* Quando in Corsia 2 c'è sia Step/Dance (45') che Acquagym (30'+30'), raddoppia l'altezza */
.alc-board-lane.has-sublanes {
    height: 34px;
}

.alc-board-pill {
    position: absolute;
    top: 1px;
    bottom: 1px;
    border-radius: 999px;
    font-size: 8.5px;
    font-weight: 800;
    line-height: 1.02;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1px 3px;
    color: #FFFFFF;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.12s ease, filter 0.12s ease;
}

.alc-board-pill:hover {
    transform: scale(1.05);
    z-index: 10;
    filter: brightness(1.05);
    box-shadow: 0 3px 8px rgba(0,0,0,0.22);
}

.alc-board-pill.is-sublane-top {
    top: 1px;
    bottom: 50%;
    font-size: 7.5px;
}

.alc-board-pill.is-sublane-bottom {
    top: 50%;
    bottom: 1px;
    font-size: 7.5px;
}

.alc-board-pill--tonificazione { background: var(--alc-red); }
.alc-board-pill--cardio { background: var(--alc-green); }
.alc-board-pill--anima_mente_corpo { background: var(--alc-yellow); }
.alc-board-pill--a30 { background: var(--alc-teal); }
.alc-board-pill--virtual {
    background: #EFEFEF;
    border: 1.2px solid var(--alc-pink);
    color: var(--alc-pink);
}

.alc-board-pill--virtual svg {
    width: 22px;
    height: 12px;
}

/* --------------------------------------------------------------------------
   6. LEGENDA UFFICIALE ALCAROTTI (Fedele al PDF)
   -------------------------------------------------------------------------- */
.alc-legend-section {
    margin-top: 18px;
    background: #FFFFFF;
    border: 1px solid var(--alc-border);
    border-radius: var(--alc-radius-card);
    padding: 18px 20px;
    display: flex;
    align-items: stretch;
    gap: 16px;
    box-shadow: var(--alc-shadow-sm);
}

.alc-legend-label-vert {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.18em;
    color: var(--alc-dark);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid var(--alc-border);
    padding-left: 8px;
}

.alc-legend-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 14px;
    align-items: center;
}

.alc-legend-col-cats,
.alc-legend-col-specials,
.alc-legend-col-durations {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.alc-legend-pill {
    padding: 9px 18px;
    border-radius: var(--alc-radius-pill);
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.alc-legend-pill--tonificazione { background: var(--alc-red); }
.alc-legend-pill--cardio { background: var(--alc-green); }
.alc-legend-pill--anima { background: var(--alc-yellow); }

.alc-legend-box-virtual {
    background: var(--alc-gray-bg);
    border: 2px solid var(--alc-pink);
    border-radius: 22px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--alc-pink);
}

.alc-legend-virtual-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.alc-legend-virtual-title {
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
}

.alc-legend-virtual-svg {
    width: 36px;
    height: 18px;
}

.alc-legend-virtual-mid,
.alc-legend-virtual-right {
    font-size: 11.5px;
    font-weight: 700;
    font-style: italic;
    line-height: 1.25;
}

.alc-legend-virtual-right {
    border-left: 1.5px solid var(--alc-pink);
    padding-left: 12px;
}

.alc-legend-box-a30 {
    background: var(--alc-teal);
    border-radius: var(--alc-radius-pill);
    padding: 8px 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: #FFFFFF;
}

.alc-legend-a30-logo svg {
    width: 76px;
    height: 26px;
    display: block;
}

.alc-legend-a30-text {
    font-size: 12px;
    font-weight: 700;
    font-style: italic;
    line-height: 1.2;
}

.alc-legend-dur-pill {
    border: 1.5px solid #DDDDDD;
    border-radius: var(--alc-radius-pill);
    padding: 9px 16px;
    font-size: 13px;
    font-style: italic;
    font-weight: 600;
    color: var(--alc-dark);
    background: #FAFAFA;
}

.alc-legend-gap-note {
    font-size: 11.5px;
    color: #666;
    font-weight: 500;
}

/* Stato vuoto quando i filtri non trovano corsi */
.alc-empty-state {
    background: #FFFFFF;
    border: 1px dashed var(--alc-border);
    border-radius: var(--alc-radius-card);
    padding: 36px 20px;
    text-align: center;
    color: #666;
}

.alc-empty-state h4 {
    margin: 0 0 6px;
    color: var(--alc-dark);
    font-size: 16px;
}

.alc-reset-filters-btn {
    margin-top: 10px;
    appearance: none;
    border: none;
    background: var(--alc-dark);
    color: #FFFFFF;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 99px;
    cursor: pointer;
}

/* Modal / Popover dettaglio corso al tap su Mobile */
.alc-course-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(29, 29, 27, 0.55);
    backdrop-filter: blur(3px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.alc-course-modal {
    background: #FFFFFF;
    border-radius: 20px;
    max-width: 420px;
    width: 100%;
    padding: 22px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
    position: relative;
    animation: alcModalPop 0.18s ease-out;
}

@keyframes alcModalPop {
    from { opacity: 0; transform: translateY(10px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.alc-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #F1F2F4;
    color: var(--alc-dark);
    font-size: 18px;
    cursor: pointer;
}

.alc-modal-cat-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.alc-modal-title {
    font-size: 22px;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0 0 6px;
    color: var(--alc-dark);
}

.alc-modal-time {
    font-size: 15px;
    font-weight: 700;
    color: #444;
    margin-bottom: 14px;
}

.alc-modal-other-days {
    border-top: 1px solid var(--alc-border);
    padding-top: 12px;
    margin-top: 12px;
    font-size: 12.5px;
}

.alc-modal-other-days h5 {
    margin: 0 0 8px;
    font-size: 12px;
    text-transform: uppercase;
    color: #777;
}

.alc-modal-other-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-height: 150px;
    overflow-y: auto;
}

.alc-modal-slot-chip {
    background: #F4F5F7;
    padding: 4px 9px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   7. RESPONSIVE MOBILE BREAKPOINTS (< 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
    .alc-day-short {
        display: block;
    }
    .alc-day-full {
        display: none;
    }
    .alc-topbar {
        padding: 12px;
    }
    .alc-topbar-row {
        flex-direction: column;
        align-items: stretch;
    }
    .alc-view-switcher {
        width: 100%;
    }
    .alc-view-btn {
        flex: 1;
        justify-content: center;
    }
    .alc-tools-group {
        flex-direction: column;
        align-items: stretch;
    }
    .alc-timeband-pills {
        width: 100%;
        justify-content: space-between;
    }
    .alc-band-btn {
        flex: 1;
        text-align: center;
        padding: 7px 4px;
    }
    .alc-search-box {
        width: 100%;
        flex: none;
    }
    .alc-hour-header,
    .alc-hour-body {
        grid-template-columns: 58px 1fr;
        padding-left: 10px;
        padding-right: 8px;
    }
    .alc-hour-title {
        font-size: 14px;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    .alc-course-pill {
        padding: 4px 8px;
        font-size: 12px;
    }
    .alc-pill-title {
        font-size: 12px;
    }
    .alc-pill-meta {
        font-size: 10px;
        padding: 2px 5px;
    }
    .alc-gap-indicator span {
        display: none;
    }
    .alc-gap-indicator::after {
        content: "15' cambio";
        font-size: 9px;
    }
    .alc-legend-section {
        flex-direction: column;
        padding: 14px;
    }
    .alc-legend-label-vert {
        writing-mode: horizontal-tb;
        transform: none;
        border-left: none;
        border-bottom: 1px solid var(--alc-border);
        padding-left: 0;
        padding-bottom: 6px;
        justify-content: flex-start;
        font-weight: 800;
    }
}
