.hero-section.hero-foto {
    background-image: url('/attivita/img/attivita_bg.webp');
    background-position: center;
}

/* Layout a singola colonna (niente sidebar locandine in questa pagina) */
.main-container.container-foto {
    display: block;
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

/* --- Filtri per categoria --- */
.foto-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.filter-btn {
    background-color: white;
    border: 2px solid #1a4d66;
    color: #1a4d66;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: rgba(26, 77, 102, 0.1);
}

.filter-btn.active {
    background-color: #1a4d66;
    color: white;
}

/* --- Lista Album --- */
.foto-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.foto-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    background-color: white;
    border-radius: 12px;
    padding: 20px 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.foto-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.foto-item-left {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.foto-item-icon {
    font-size: 1.8rem;
    color: #1a4d66;
    flex-shrink: 0;
}

.foto-info h4 {
    margin: 0 0 6px 0;
    font-size: 1.1rem;
    color: #1a4d66;
}

.foto-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.badge-oratorio { background-color: #8bc24a; }
.badge-estateRagazzi { background-color: #8e44ad; }
.badge-default { background-color: #409ed5; }

.btn-apri {
    background-color: #8bbf4a;
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: background-color 0.3s;
    flex-shrink: 0;
}

.btn-apri:hover { background-color: #76a33f; }

.foto-empty {
    text-align: center;
    color: #666;
    padding: 30px 0;
}

/* Adattamento per mobile */
@media (max-width: 600px) {
    .foto-item {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .foto-item-left {
        flex-direction: column;
    }

    .btn-apri {
        text-align: center;
    }
}
