/* CSS Variables for Theme */
:root {
    /* Colori Base dai loghi (Panna/Bianco) */
    --bg-cream: #f7efdd;
    --bg-white: #fefefc;
    
    /* Colori Scelti (Ottanio, Rosso Vintage, Giallo Ocra) */
    --teal-dark: #003d33;   /* Sostituisce il nero per il testo */
    --teal-main: #005b5b;   /* Ottanio principale */
    --teal-light: #e0f2f1;  /* Ottanio chiarissimo per sfondi secondari */
    
    --vintage-red: #a63d40;
    --ochre-yellow: #d4a373;
    
    /* Tipografia */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    
    /* Ombre e Transizioni */
    --shadow-sm: 0 2px 8px rgba(0, 61, 51, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 61, 51, 0.12);
    --shadow-hover: 0 12px 32px rgba(0, 61, 51, 0.18);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--teal-dark);
    background-color: var(--bg-cream);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--teal-main);
}

a {
    color: var(--teal-main);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--vintage-red);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Nav */
.site-header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

.site-header.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-md);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 90px;
    width: auto;
    transition: var(--transition);
}

.site-header.scrolled .logo-img {
    height: 68px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 600;
    color: var(--teal-main);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--vintage-red);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.social-links-top {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--teal-light);
    color: var(--teal-main);
    font-size: 1.1rem;
}

.social-icon:hover {
    transform: translateY(-3px);
    color: var(--bg-white);
}

.social-icon.whatsapp:hover { background-color: #25D366; }
.social-icon.facebook:hover { background-color: #1877F2; }
.social-icon.instagram:hover { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.social-icon.youtube:hover { background-color: #FF0000; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--vintage-red);
    color: var(--bg-white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--bg-white);
    color: var(--vintage-red);
    border-color: var(--vintage-red);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: transparent;
    color: var(--teal-main);
    border-color: var(--teal-main);
}

.btn-secondary:hover {
    background-color: var(--teal-main);
    color: var(--bg-white);
}

.btn-whatsapp-community {
    background-color: #25D366;
    color: #ffffff;
    box-shadow: var(--shadow-md);
    font-size: 1.1rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
}

.btn-whatsapp-community:hover {
    background-color: #1ebe57;
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    color: #ffffff;
}

.btn-large {
    font-size: 1.3rem;
    padding: 1.2rem 2.5rem;
}

/* Hero Section */
.hero {
    padding: 2rem 0 4rem;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-cream) 0%, var(--bg-white) 100%);
    border-bottom: 2px solid var(--ochre-yellow);
}

.hero-logo {
    max-width: 25%;
    height: auto;
    margin: 0 auto 2rem;
    display: block;
}

.hero-title {
    font-size: 4rem;
    color: var(--teal-main);
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    color: var(--ochre-yellow);
    font-style: italic;
    margin-bottom: 2rem;
}

.hero-text {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2.5rem;
    color: var(--teal-dark);
}

.video-container {
    margin: 0 auto 2.5rem;
    max-width: 800px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.hero-video {
    width: 100%;
    display: block;
}

/* Manifesto Section */
.manifesto-section {
    padding: 5rem 0;
}

.manifesto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.manifesto-card {
    background-color: var(--bg-white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-top: 4px solid var(--vintage-red);
}

.manifesto-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--ochre-yellow);
    margin-bottom: 1.5rem;
}

.manifesto-card h2 {
    font-size: 1.6rem;
    color: var(--teal-main);
}

.manifesto-card p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

/* Regole del Manifesto */
.manifesto-rules {
    background-color: var(--teal-light);
    padding: 4rem;
    border-radius: 24px;
    box-shadow: inset 0 0 40px rgba(0, 91, 91, 0.05);
}

.manifesto-rules h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.rules-intro {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--teal-main);
}

.rules-list {
    list-style: none;
    max-width: 900px;
    margin: 0 auto;
}

.rules-list li {
    background-color: var(--bg-white);
    margin-bottom: 1.5rem;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    position: relative;
    padding-left: 4.5rem;
}

.rules-list li i {
    position: absolute;
    left: 1.5rem;
    top: 1.8rem;
    font-size: 1.5rem;
    color: var(--vintage-red);
}

.rules-list li strong {
    display: block;
    color: var(--teal-main);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* Eventi Section */
.events-section {
    background-color: var(--bg-white);
    padding: 5rem 0;
    border-top: 1px solid rgba(0,91,91,0.1);
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--ochre-yellow);
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-style: italic;
    margin-bottom: 3rem;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.event-card {
    background-color: var(--bg-cream);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(0,91,91,0.1);
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.event-content {
    padding: 2.5rem;
}

.event-content h3 {
    font-size: 1.5rem;
    color: var(--teal-main);
    margin-bottom: 0.5rem;
}

.event-date {
    color: var(--vintage-red);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-desc {
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

/* Footer */
.site-footer {
    background-color: var(--teal-main);
    color: var(--bg-white);
    padding: 5rem 0 2rem;
    text-align: center;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, var(--vintage-red) 0%, var(--ochre-yellow) 100%);
}

.footer-title {
    font-size: 2.5rem;
    color: var(--bg-white);
    margin-bottom: 1.5rem;
}

.footer-text {
    max-width: 800px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
    color: var(--teal-light);
}

.footer-callout {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--ochre-yellow);
    font-style: italic;
    margin-bottom: 3rem;
}

.social-links-bottom {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.social-links-bottom .social-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    background-color: rgba(255,255,255,0.1);
    color: var(--bg-white);
}

.social-links-bottom .social-icon:hover {
    background-color: var(--bg-white);
    color: var(--teal-main);
}

.social-links-bottom .social-icon.whatsapp:hover { color: #25D366; }
.social-links-bottom .social-icon.facebook:hover { color: #1877F2; }
.social-links-bottom .social-icon.instagram:hover { color: #e6683c; }
.social-links-bottom .social-icon.youtube:hover { color: #FF0000; }

.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    font-size: 0.9rem;
    color: var(--teal-light);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-logo { display: none; }
    
    .hero-title { font-size: 3rem; }
    
    .manifesto-rules {
        padding: 2rem 1.5rem;
    }
    
    .rules-list li {
        padding-left: 1.5rem;
        padding-top: 4rem;
    }
    
    .rules-list li i {
        top: 1.5rem;
    }
}

/* ==========================================================================
   Sezione Trova il tuo corso - Stili Filtri, Tabella e Responsive
   ========================================================================== */

/* Active Nav Link */
.nav-links a.nav-active {
    color: var(--vintage-red);
}

.nav-links a.nav-active::after {
    width: 100%;
}

/* Corsi Page Specifics */
.hero-corsi {
    padding: 3rem 0 3.5rem;
    background: linear-gradient(135deg, var(--teal-light) 0%, var(--bg-cream) 100%);
}

.courses-main-section {
    padding: 3rem 0 5rem;
}

/* Filters Card */
.filters-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    margin-bottom: 2.5rem;
    border-top: 4px solid var(--vintage-red);
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.filters-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filters-header h2 {
    font-size: 1.6rem;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.courses-counter-badge {
    background-color: var(--teal-light);
    color: var(--teal-main);
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.95rem;
}

.toggle-filters-btn {
    background-color: var(--teal-light);
    color: var(--teal-main);
    border: 1.5px solid transparent;
    padding: 0.45rem 1rem;
    border-radius: 20px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.toggle-filters-btn:hover {
    background-color: var(--teal-main);
    color: var(--bg-white);
}

.filters-body {
    margin-top: 1.5rem;
    transition: all 0.3s ease-in-out;
}

.filters-body.hidden {
    display: none;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.filter-group-search {
    grid-column: 1 / -1;
}

@media (min-width: 992px) {
    .filter-group-search {
        grid-column: span 2;
    }
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

/* Day Pills Multi-select Filter */
.filter-group-days {
    grid-column: 1 / -1;
}

@media (min-width: 992px) {
    .filter-group-days {
        grid-column: span 2;
    }
}

.day-pills-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.day-pill {
    padding: 0.55rem 1rem;
    border-radius: 20px;
    border: 2px solid var(--teal-light);
    background-color: var(--bg-white);
    color: var(--teal-main);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.day-pill:hover {
    border-color: var(--teal-main);
    background-color: var(--teal-light);
    transform: translateY(-1px);
}

.day-pill.active {
    background-color: var(--vintage-red);
    color: var(--bg-white);
    border-color: var(--vintage-red);
    box-shadow: 0 2px 8px rgba(166, 61, 64, 0.3);
}

.day-pill.active:hover {
    background-color: #8c3235;
    border-color: #8c3235;
}

.day-pill.disabled,
.day-pill:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
    background-color: #f1f3f5;
    color: #a0aec0;
    border-color: #e2e8f0;
    box-shadow: none;
    transform: none;
}

.filter-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--teal-dark);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper input {
    width: 100%;
    padding: 0.75rem 1rem;
    padding-right: 2.5rem;
    border: 2px solid var(--teal-light);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--teal-dark);
    background-color: var(--bg-white);
    transition: var(--transition);
}

.search-input-wrapper input:focus {
    outline: none;
    border-color: var(--teal-main);
    box-shadow: 0 0 0 3px rgba(0, 91, 91, 0.15);
}

.clear-search-btn {
    position: absolute;
    right: 0.8rem;
    background: none;
    border: none;
    color: var(--teal-main);
    font-size: 1rem;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
}

.clear-search-btn:hover {
    opacity: 1;
    color: var(--vintage-red);
}

.filter-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--teal-light);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--teal-dark);
    background-color: var(--bg-white);
    cursor: pointer;
    transition: var(--transition);
}

.filter-group select:focus {
    outline: none;
    border-color: var(--teal-main);
    box-shadow: 0 0 0 3px rgba(0, 91, 91, 0.15);
}

.filters-actions {
    display: flex;
    justify-content: flex-end;
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
}

/* Table Card & Table */
.table-card {
    background-color: var(--bg-white);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-bottom: 3rem;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.courses-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.courses-table th {
    background-color: var(--teal-main);
    color: var(--bg-white);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    padding: 1.2rem 1rem;
    white-space: nowrap;
}

.courses-table td {
    padding: 1.2rem 1rem;
    border-bottom: 1px solid var(--teal-light);
    vertical-align: top;
    font-size: 0.95rem;
}

.courses-table tbody tr {
    transition: var(--transition);
}

.courses-table tbody tr:hover {
    background-color: rgba(224, 242, 241, 0.4);
}

.courses-table tbody tr:last-child td {
    border-bottom: none;
}

/* Table cell contents */
.course-name-cell {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--teal-main);
}

.school-name {
    font-weight: 600;
    color: var(--teal-dark);
}

.teachers-name {
    color: #555;
    font-size: 0.88rem;
}

.badge {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-right: 0.3rem;
    margin-bottom: 0.3rem;
    transition: var(--transition);
}

/* Badges Stili di Ballo (Colori pastello tenui distinti) */
.badge-stile-lindy {
    background-color: #fdebd0;
    color: #7e5109;
    border: 1px solid #f8c471;
}

.badge-stile-boogie {
    background-color: #d4efdf;
    color: #1e8449;
    border: 1px solid #abebc6;
}

.badge-stile-balboa {
    background-color: #e8daef;
    color: #6c3483;
    border: 1px solid #d2b4de;
}

.badge-stile-shag-blues {
    background-color: #d6eaf8;
    color: #1f618d;
    border: 1px solid #aed6f1;
}

.badge-stile-individuali {
    background-color: #fadbd8;
    color: #943126;
    border: 1px solid #f5b7b1;
}

.badge-stile-fitness {
    background-color: #e5e7e9;
    color: #2c3e50;
    border: 1px solid #d5d8dc;
}

.badge-stile-rocknroll {
    background-color: #fbeee6;
    color: #a04000;
    border: 1px solid #f5cba7;
}

.badge-stile-default {
    background-color: var(--teal-light);
    color: var(--teal-main);
    border: 1px solid rgba(0, 91, 91, 0.2);
}

/* Badges Livelli (Scala monocromatica: dal molto chiaro al molto scuro) */
.badge-livello-base {
    /* Molto chiaro: Base / Primi Passi / Principianti */
    background-color: #eef2ff;
    color: #312e81;
    border: 1px solid #c7d2fe;
}

.badge-livello-int1 {
    /* Chiaro-medio: Intermedio 1 / Improvers / Open / Junior */
    background-color: #c7d2fe;
    color: #1e1b4b;
    border: 1px solid #a5b4fc;
}

.badge-livello-int2 {
    /* Medio: Intermedio 2 */
    background-color: #818cf8;
    color: #ffffff;
    border: 1px solid #6366f1;
}

.badge-livello-int3 {
    /* Scuro-medio: Intermedio 3+ / Int-Adv */
    background-color: #4f46e5;
    color: #ffffff;
    border: 1px solid #4338ca;
}

.badge-livello-avanzato {
    /* Molto scuro: Avanzato / Show / Gare */
    background-color: #1e1b4b;
    color: #ffffff;
    border: 1px solid #312e81;
    font-weight: 700;
}

.cost-tag {
    font-weight: 600;
    color: var(--vintage-red);
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.btn-link-action {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    border: 1px solid var(--teal-main);
    color: var(--teal-main);
    transition: var(--transition);
}

.btn-link-action:hover {
    background-color: var(--teal-main);
    color: var(--bg-white);
}

.course-note-box {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #666;
    background-color: var(--bg-cream);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    border-left: 3px solid var(--ochre-yellow);
}

/* Mobile Cards Container */
.mobile-cards-container {
    display: none;
    padding: 1.5rem;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-course-card {
    background-color: var(--bg-cream);
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--teal-main);
}

.mobile-course-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.mobile-course-title {
    font-size: 1.2rem;
    color: var(--teal-main);
    font-family: var(--font-heading);
    margin-bottom: 0.2rem;
}

.mobile-course-row {
    margin-bottom: 0.6rem;
    font-size: 0.92rem;
}

.mobile-course-row strong {
    color: var(--teal-dark);
}

/* Empty State */
.empty-state {
    padding: 4rem 2rem;
    text-align: center;
}

.empty-icon {
    font-size: 3.5rem;
    color: var(--ochre-yellow);
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #666;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Custom Multi-select Dropdowns per Filtri Sede (Provincia, Città, Zona)
   ========================================================================== */
.custom-multiselect {
    position: relative;
    width: 100%;
}

.multiselect-trigger {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--teal-light);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--teal-dark);
    background-color: var(--bg-white);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    transition: var(--transition);
    user-select: none;
}

.custom-multiselect.disabled .multiselect-trigger {
    background-color: #f3f4f6;
    border-color: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.8;
}

.multiselect-trigger:focus {
    outline: none;
    border-color: var(--teal-main);
    box-shadow: 0 0 0 3px rgba(0, 91, 91, 0.15);
}

.multiselect-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 0.5rem;
}

.ms-arrow {
    font-size: 0.8rem;
    color: var(--teal-main);
    transition: transform 0.2s ease;
}

.custom-multiselect.open .ms-arrow {
    transform: rotate(180deg);
}

.multiselect-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 220px;
    overflow-y: auto;
    background-color: var(--bg-white);
    border: 2px solid var(--teal-main);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    z-index: 100;
    padding: 0.4rem 0;
}

.custom-multiselect.open .multiselect-dropdown {
    display: block;
}

.multiselect-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1rem;
    font-size: 0.92rem;
    color: var(--teal-dark);
    cursor: pointer;
    transition: background-color 0.15s ease;
    user-select: none;
}

.multiselect-item:hover {
    background-color: var(--teal-light);
}

.multiselect-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--vintage-red);
    cursor: pointer;
}

/* Sede cell styling */
.sede-info {
    font-size: 0.9rem;
    line-height: 1.35;
}

.sede-via {
    font-weight: 600;
    color: var(--teal-dark);
}

.sede-dettaglio {
    font-size: 0.85rem;
    color: #555;
}

/* Info Callout */
.info-callout {
    background-color: var(--teal-light);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    border: 1px solid rgba(0, 91, 91, 0.15);
}

.info-callout i {
    font-size: 1.8rem;
    color: var(--teal-main);
    margin-top: 0.2rem;
}

.info-callout p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Responsive Table toggle */
@media (max-width: 850px) {
    #table-view-container {
        display: none;
    }
    
    .mobile-cards-container {
        display: flex;
    }
}

