/* Contenitore del banner */
.banner-container {
    width: 100%;
    max-width: 1200px;
    height: 500px; /* Altezza fissa per il banner */
    margin: 20px auto;
    position: relative;
    overflow: hidden;
    background: #f4f4f4;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Contenitore immagini */
.banner-images {
    width: 100%;
    height: 100%;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Immagini */
.banner-images img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Rende l'immagine adattabile senza ritagli eccessivi */
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

/* Mostra solo l'immagine attiva */
.banner-images img.active {
    opacity: 1;
}

/* Pallini (indicatori) */
.dots-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 12px;
    border-radius: 20px;
}

/* Stile dei pallini */
.dot {
    width: 14px;
    height: 14px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.dot.active {
    background-color: #ff7e5f;
    transform: scale(1.3);
}

/* Media Query per dispositivi mobili */
@media (max-width: 768px) {
    .banner-container {
        height: 300px;
    }

    .dot {
        width: 12px;
        height: 12px;
    }

    .dots-container {
        bottom: 10px;
        padding: 6px;
    }
}
