#scatti img {
    transition: opacity 0.5s ease-in-out;
}

.foto-carousel-container {
    position: relative;
    max-width: 400px;
    /* larghezza massima del contenitore */
    margin: 0 auto;
    overflow: hidden;
    box-shadow: none;
    /* tolta l’ombra */
    border: none;
    /* tolto il bordo */
    border-radius: 0;
    /* tolto l’arrotondamento */
    background: transparent;
    /* nessun colore di sfondo */
    padding: 1rem;
    height: 30rem;
}

/* Slide */
.foto-carousel-slide {
    display: none;
    text-align: center;
}

/* Stile polaroid per le immagini */
.foto-carosello {
    max-width: 300px;
    width: 100%;
    height: auto;
    background: #fff;
    padding: 10px 10px 30px 10px;
    /* spazio extra in basso tipico polaroid */
    border: 1px solid #ccc;
    /* bordo solo sull’immagine polaroid */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    display: block;
    margin: 20px auto;
    transition: transform 0.3s ease;
}

.foto-carosello:hover {
    transform: rotate(-2deg) scale(1.02);
    opacity: 0.95;
}

/* Pulsanti esterni */
.nav-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
    gap: 20px;
}

/* Pulsante Prev rosso */
.foto-prev {
    background: #e63946;
    /* rosso */
    color: #fff;
    border: none;
    padding: 10px 16px;
    cursor: pointer;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.foto-prev:hover {
    background: #b71c1c;
    /* rosso scuro al passaggio */
}

/* Pulsante Next blu */
.foto-next {
    background: #1d4ed8;
    /* blu */
    color: #fff;
    border: none;
    padding: 10px 16px;
    cursor: pointer;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.foto-next:hover {
    background: #0a2a7a;
    /* blu scuro al passaggio */
}


.dots {
    text-align: center;
    margin-top: 10px;
}

/* .dot {
    font-size: 20px;
    margin: 0 6px;
    display: inline-block;
    cursor: pointer;
    animation: pulse 2s infinite;
} */

/* Animazione pulse */
/* @keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
} */

/* Stato attivo: nota evidenziata */
.dot.active {
    color: #000;
    animation: pulse 1s infinite;
    /* più veloce per l’attivo */
}

.dots-container {
    display: flex;
    gap: 10px;
    overflow: hidden;
    width: 200px;
    /* spazio visibile solo per 5 dot */
}

.dot {
    font-size: 24px;
    animation: pulse 2s infinite;
}

/* Animazione pulse */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}