/* ── FILTRI BAR ── */
.filtri-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    padding: 20px 15px 10px;
/*    margin-bottom: 20px;*/
/*
    background: #f8f8f8;
    border-bottom: 1px solid #e5e5e5;
*/
}

.filtro-gruppo {
    position: relative;
}

.filtro-toggle {
    background: #fff;
    border: 1px solid rgba(190, 1, 0, 1);
    border-radius: 3px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, border-color 0.2s;
    font-family: inherit;
    color:rgba(190, 1, 0, 1);
	border-radius: 25px;
}

.filtro-toggle:hover,
.filtro-toggle.attivo {
    background: rgba(190, 1, 0, 1);
    color: #fff;
    border-color: rgba(190, 1, 0, 1);
}

.filtro-toggle.ha-selezione {
    background: rgba(190, 1, 0, 1);
    color: #fff;
    border-color: rgba(190, 1, 0, 1);
}

.filtro-arrow {
    font-size: 10px;
    margin-left: 5px;
    display: inline-block;
    transition: transform 0.2s;
}

.filtro-toggle.aperto .filtro-arrow {
    transform: rotate(180deg);
}

.filtro-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 200px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    z-index: 999;
    padding: 8px 0;
    max-height: 280px;
    overflow-y: auto;
}

.filtro-dropdown.aperto {
    display: block;
}

.filtro-dropdown label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    font-size: 13px;
    cursor: pointer;
    color: #333;
    transition: background 0.15s;
    white-space: nowrap;
}

.filtro-dropdown label:hover {
    background: #f4f4f4;
}

.filtro-dropdown input[type="checkbox"] {
    accent-color: rgba(190, 1, 0, 1);
    width: 14px;
    height: 14px;
    cursor: pointer;
    flex-shrink: 0;
}

.filtro-reset {
    background: transparent;
    border: 1px solid #aaa;
    border-radius: 3px;
    padding: 8px 14px;
    font-size: 12px;
    color: #777;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    align-self: center;
}

.filtro-reset:hover {
    border-color: #333;
    color: #333;
}

/* Contatore risultati */
.filtri-count {
    width: 100%;
    text-align: center;
    font-size: 12px;
    color: #888;
    padding-top: 4px;
}

/* Messaggio nessun risultato */
.filtri-nessun-risultato {
    display: none;
    width: 100%;
    text-align: center;
    padding: 40px 0;
    font-size: 15px;
    color: #888;
}

@media (max-width: 767px) {
    .filtri-bar {
        gap: 8px;
        padding: 15px 10px 8px;
    }
    .filtro-toggle {
        font-size: 12px;
        padding: 7px 12px;
    }
    .filtro-dropdown {
        left: 50%;
        transform: translateX(-50%);
    }
}
