/* Elenco percorsi — layout da corsi.php del sito originale. */

.percorsi-fascia {
    color: #fff;
    padding: 1.75rem 0;
}

.percorsi-fascia h1 {
    margin: 0;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
}

.percorsi-filtri {
    margin: 2rem 0 0.5rem;
}

.percorsi-filtri label {
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.percorsi-conteggio {
    margin: 0;
    font-weight: 600;
}

.percorsi-tipologia {
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
}

.percorsi-tipologia h2 {
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.percorsi-tipologia-riga {
    display: block;
    width: 35px;
    height: 2px;
    background: var(--primary-color, #7E0341);
}

.percorso-toggle {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 1.15rem 1.5rem;
    border-radius: 0.25rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.percorso-toggle:hover,
.percorso-toggle:focus {
    color: #fff;
    text-decoration: none;
}

.percorso-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.percorso-toggle h3 {
    margin: 0;
    color: #fff;
    font-size: 1.35rem;
}

.percorso-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    color: #fff;
}

.percorso-toggle .fa-angle-up {
    display: none;
}

.percorso-toggle:not(.collapsed) .fa-angle-down {
    display: none;
}

.percorso-toggle:not(.collapsed) .fa-angle-up {
    display: inline;
}

.percorso-scheda {
    border: 0;
    margin-bottom: 0.65rem;
    background: transparent;
}

.percorso-scheda .card-body {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.percorso-cover {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    margin-bottom: 1.25rem;
}

.percorso-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: #f7f7f7;
    border: 1px solid #e5e5e5;
    border-radius: 10px 0 0 10px;
    padding: 0.9rem 1.15rem;
    margin-bottom: 0.75rem;
    color: inherit;
    text-decoration: none;
}

.percorso-link:hover {
    color: inherit;
    text-decoration: none;
}

.percorso-link h3 {
    margin: 0;
    font-size: 1.05rem;
}

.percorso-doc {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid #e5e5e5;
    padding: 0.75rem 1rem;
    margin-bottom: 0.65rem;
    color: inherit;
    text-decoration: none;
}

.percorso-doc:hover {
    color: inherit;
    text-decoration: none;
}

.percorso-vuoto {
    padding: 2rem 0 3rem;
}

@media (max-width: 767.98px) {
    .percorso-toggle-row {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .percorso-hint {
        white-space: normal;
    }
}
