/**
 * Glossario - L'A,B,C della Comparazione
 */

/* Hero Section */
.glossario-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 3rem 0 2rem;
    text-align: center;
}

.glossario-title {
    font-size: 2.8rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

.glossario-desc {
    margin: 0 auto 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
}

.breadcrumb-glossario {
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: left;
    margin-bottom: 1.5rem;
}

.breadcrumb-glossario a {
    color: var(--text-dark);
    text-decoration: none;
}

.breadcrumb-glossario a:hover {
    color: var(--primary-green);
}

.breadcrumb-glossario span {
    color: var(--primary-green);
    font-weight: 600;
}

/* Content Section */
.glossario-content {
    padding: 2rem 0 4rem;
}

/* Alfabeto Navigation */
.alfabeto-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.lettera-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.lettera-link.attiva {
    color: var(--text-dark);
    background: #f1f5f9;
}

.lettera-link.attiva:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
}

.lettera-link.disabilitata {
    color: #cbd5e1;
    cursor: default;
}

/* Termini Lista */
.termini-lista {
    max-width: 900px;
    margin: 0 auto;
}

.lettera-sezione {
    margin-bottom: 2rem;
    scroll-margin-top: 100px;
}

.lettera-titolo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-green);
    display: none; /* Nascosto, usiamo solo per anchor */
}

/* Accordion */
.termine-accordion {
    background: white;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.2s ease;
}

.termine-accordion:hover {
    border-color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(0, 66, 116, 0.08);
}

.termine-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

.termine-nome {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.termine-arrow {
    color: var(--primary-green);
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.termine-accordion.aperto .termine-arrow {
    transform: rotate(180deg);
}

.termine-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
}

.termine-body-inner {
    overflow: hidden;
}

.termine-accordion.aperto .termine-body {
    grid-template-rows: 1fr;
}

.termine-body-inner p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin: 0;
    padding: 0.5rem 1.5rem 1.25rem;
    border-top: 1px solid #f1f5f9;
}

/* Responsive */
@media (max-width: 768px) {
    .glossario-title {
        font-size: 2rem;
    }

    .glossario-desc {
        font-size: 0.95rem;
        padding: 0 1rem;
    }

    .alfabeto-nav {
        gap: 0.3rem;
        padding: 1rem;
    }

    .lettera-link {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .termine-header {
        padding: 1rem 1.25rem;
    }

    .termine-nome {
        font-size: 0.9rem;
    }

    .termine-body-inner p {
        font-size: 0.9rem;
        padding: 0.5rem 1.25rem 1rem;
    }
}

@media (max-width: 480px) {
    .glossario-hero {
        padding: 2rem 0 1.5rem;
    }

    .glossario-title {
        font-size: 1.6rem;
    }

    .lettera-link {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
}
