* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

/* regole generali */

/* Slideshow container */

.container-slider {
    padding: 5rem 10rem;
    margin-top: 5%;
    width: 100%;
    height: 75vh;
    display: flex;
    /* position: absolute; */
    bottom: 10px;
}

.main-slider {
    width: 70%;
    height: 100%;
}

.second-slider {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 15%;
    height: 100%;
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.mySlides1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mySlides2 {
    display: none;
    width: 100%;
}

.mySlides2 .image-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.mySlides2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.mySlides2 .hover-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

/* .mySlides2 .image-container:hover img {
    filter: blur(2px);
}

.mySlides2 .image-container:hover .hover-button {
    display: block;
} */

.second-slider h3 {
    font-size: 40px;
    color: #E0D5CC;
    padding-left: 2rem;
    font-family: 'hatton';
    font-weight: 100;
}

.second-slider p {
    padding-left: 2rem;
    font-size: 20px;
    color: #E0D5CC;
    font-family: 'work';
    font-weight: 200;
}

.second-slider .slideshow-container {
    flex-grow: 1;
    max-height: 40%;
    padding: 1rem 1rem 5rem 1rem;
    background-color: #E0D5CC;
}

.second-slider .slideshow-container span {
    font-size: 20px;
    margin-bottom: 20px;
    display: inline-block;
    font-family: 'hatton';
    font-weight: 200;
}

/* Next & previous buttons */
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
    background-color: #f1f1f1;
    color: black;
}

@media only screen and (min-width: 360px) and (max-width: 800px) {
    .container-slider {
        padding: 0;
        margin-top: 0;
        height: 100%;
        flex-direction: column;
    }

    .main-slider {
        width: 100%;
        height: 100%;
        margin-bottom: 1rem;
    }

    .second-slider {
        padding-left: 1rem;
        width: 80%;
        height: 50%;
    }

    .second-slider h3,
    .second-slider p {
        font-size: smaller;
        padding: 1rem 1rem;
    }


    .slideshow-container {
        width: 100%;
        height: auto;
    }

    .mySlides1 img,
    .mySlides2 img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    .prev,
    .next {
        font-size: 16px;
        padding: 12px;
    }

    /* Assicurati che i testi siano visibili e leggibili */
    .second-slider h3,
    .second-slider p {
        width: 100%;
    }



}

@media only screen and (min-width: 810px) and (max-width: 1850px) {

    /* .main-slider {
        width: 80%;
        height: 100%;
    }

    .second-slider {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30%;
        height: 100%;
    }

    .second-slider h3 {
        font-size: 25px;
        color: #E0D5CC;
        padding: 0.5rem 0.7rem;
        font-family: 'hatton';
        font-weight: 100;
    }

    .second-slider p {
        padding: 0.5rem 0.7rem;
        font-size: 18px;
        color: #E0D5CC;
        font-family: 'work';
        font-weight: 200;
    }

    .second-slider .slideshow-container span {
        font-size: 18px;
        margin-bottom: 20px;
        display: inline-block;
        font-family: 'hatton';
        font-weight: 200;
    } */

    .container-slider {
        margin-top: 5%;
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        position: relative;
        bottom: 10px;
    }

    .main-slider {
        width: 100%;
        height: 100%;
    }

    .second-slider {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 100%;
        height: 50%;
    }

    .second-slider h3 {
        font-size: 22px;
        color: #E0D5CC;
        padding: 0.5rem 0.7rem;
        font-family: 'hatton';
        font-weight: 100;
    }

    .second-slider p {
        padding: 0.5rem 0.7rem;
        font-size: 18px;
        color: #E0D5CC;
        font-family: 'work';
        font-weight: 200;
    }

    .second-slider .slideshow-container span {
        font-size: 18px;
        margin-bottom: 20px;
        display: inline-block;
        font-family: 'hatton';
        font-weight: 200;
    }

    .second-slider .slideshow-container {
        display: none;
    }

    /* .cucine {
        margin-top: 2rem;
    } */
}