/* Slideshow modernizzato */
.slideshow-container {
    flex: 1 1 500px;
    max-width: 580px;
    height: 400px;
    position: relative;
    background-color: #fff;
    box-shadow: 0 8px 25px rgba(255, 102, 0, 0.15);
    border-radius: 12px;
    overflow: hidden;
}

.mySlides {
    display: none;
    height: 100%;
}

.mySlides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    width: 38px;
    height: 38px;
    cursor: pointer;
    z-index: 1;
    box-shadow: 0 4px 8px var(--shadow-medium);
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    line-height: 1;
}

.next {
    right: 10px;
}

.prev {
    left: 10px;
}

.numbertext {
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.4);
    color: #f2f2f2;
    font-size: 12px;
    padding: 8px 12px;
    border-bottom-right-radius: 5px;
}

.dots-container {
    text-align: center;
    padding-top: 20px;
}

.dot {
    cursor: pointer;
    height: 14px;
    width: 14px;
    margin: 0 4px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.dot.active,
.dot:hover {
    background-color: var(--color-primary);
}

@keyframes fade {
    from {
        opacity: .4
    }

    to {
        opacity: 1
    }
}

.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}


@media only screen and (max-width: 768px) {
    .slideshow-container {
        height: 380px;
        box-shadow: 0 6px 20px rgba(255, 102, 0, 0.1);

    }

    .mySlides {
        height: 100%;
    }

    .mySlides img {
        height: 100%;
        width: 500px;
        object-fit: cover;
        display: block;
    }

    .prev,
    .next {
        padding: 10px;
        font-size: 16px;
        width: 30px;
        height: 30px;
        top: 48%;
    }

    .dots-container {
        padding-top: 15px;
    }

    .dot {
        height: 12px;
        width: 12px;
        margin: 0 3px;
    }
}

@media only screen and (min-width: 769px) and (max-width: 1024px) {
    .slideshow-container {
        height: 580px;
        max-width: 100%;
    }

    .prev,
    .next {
        padding: 14px;
        font-size: 17px;
        width: 35px;
        height: 35px;
    }
}

@media only screen and (min-width: 1025px) {
    .slideshow-container {
        height: 400px;
    }

    .prev,
    .next {
        padding: 16px;
        font-size: 18px;
        width: 40px;
        height: 40px;
    }
}

@media only screen and (min-width: 601px) and (max-width: 768px) {

    .slideshow-container {
        height: 450px;
        max-width: 100%;
    }

}

@media only screen and (min-width: 1025px) and (max-width: 1440px) {
    .slideshow-container {
        height: 420px;
        max-width: 100%;
    }
}

@media only screen and (min-width: 1441px) {
    .slideshow-container {
        height: 480px;
    }
}