/***
*   CSS CUSTOM PER SLIDER NELLA HOMEPAGE
*/
.homeCustomLoopCarousel_mainContainer {
    margin-bottom: 10rem;
}

/* 
    Slides 
*/
.container_loopSlider {
    position: relative;
    width: 100%;
    height: 600px;
    text-align: center;
}
.loopSlides {
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
    overflow: hidden;
    scroll-behavior: smooth;
}
.loopSlides::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
.loopSlides::-webkit-scrollbar-thumb {
    background: black;
}
.loopSlides::-webkit-scrollbar-track {
    background: transparent;
}
.loopSlides > div {
    min-width: 100%;
    height: 100%;
    flex-shrink: 0;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.5s;
    background: #eee;
    overflow: hidden;
}
.loopSlide_card {
    position: relative;
    height: 100%;
}
.loopSlide_card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
}
.loopSlide_container_info_overlay { /* Overlay dentro le slide */
    position: absolute;
    gap: 1rem;
    bottom: 0;
    left: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    width: 60%;
    align-items: start;
    justify-content: space-between;
    padding-left: 4rem;
}
.loopSlide_overlay_title {
    color: white;
    font-size: 42px;
    text-align: start;
}
.loopSlide_overlay_subtitle {
    color: white;
    font-size: 20px;
    text-align: start;
}
.silvestri_button_container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0;
    margin: 0;
    padding: 0;
}
.silvestri_button_text {
    margin: 0 1rem;
    font-size: 18px;
}
.silvestri_button_arrow {
    background-color: #D0C0AB;
    padding: 0.5rem;
}
.loopSlide_overlay_img_black_filter {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), transparent);
    z-index: 1;
}

/* 
    Buttons custom per lo slider 
*/
.container_buttons_loopSlider {
    position: absolute;
    bottom: -8rem;
    right: 0;
    z-index: 10;
    padding-right: 4rem;
    display: flex;
    width: auto;
    gap: 2rem;
    justify-content: end;
}
.container_buttons_loopSlider_secondHomeCarousel a::before { /* Segmento della forma a "cartellina" */
    content: '';
    position: absolute;
    top: -12px; /* Altezza da regolare */
    left: 0;
    width: 80px;
    height: 50px;
    background: #fff4e6; /* stesso colore del box */
    clip-path: polygon(0 0, 65% 0, 100% 100%, 0 100%);
}
.button_loopSlider {
    display: flex;
    flex-direction: column;
}
.progress_bar_container {
    width: 100%;
    height: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}
.progress_bar {
    width: 0%;
    height: 100%;
    background-color: #D0C0AB;
    transition: width 5s linear;
}
.container_buttons_loopSlider a {  /* Versione per secondo carousel */
    position: relative;
    width: 212px;
    height: 186px;
    display: flex;
    flex-direction: column;
    background-color: #fff4e6;
    padding: 2px;
    text-decoration: none;
    gap: 1rem;
    position: relative;
}
.container_buttons_loopSlide a:active {
    top: 1px;
}
.container_buttons_loopSlide a:focus {
    background: #000;
}
.slide_button_img_wrapper {
    position: relative;
    display: block;
    width: 100%;
    height: 80% !important;
}
.slide_button_img,
.layer_img_selected_slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100% !important;
}
.slide_button_img {
    object-fit: cover;
    z-index: 1;
}
.layer_img_selected_slide {
    pointer-events: none;
    transition: opacity 0.3s;
    background: rgba(0,0,0,0.6);
    z-index: 2;
    opacity: 0; /* Viene modificato dal js in caso la slide sia selezionata */
}
.eye_icon {
    background-color: #D0C0AB;
    position: absolute;
    z-index: 3;
    margin: 2px;
    padding: 1px 6px;
    opacity: 0; /* Viene modificato dal js in caso la slide sia selezionata */
}
.slide_button_text {
    color: black;
    display: block;        
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.slide_button_text_secondHomeCarousel { /* Versione per secondo carousel */
    color: white;
    font-weight: bold;
    z-index: 2;
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/**
*   RESPONSIVE
*/

/* Tablet */
@media screen and (max-width: 1024px) {
    .homeCustomLoopCarousel_mainContainer {
        margin-bottom: 15rem;
    }
    .container_buttons_loopSlider {
        position: static;
        margin-bottom: 3rem;
        padding-right: 0;
        display: flex;
        justify-content: space-evenly;
        width: auto;
    }
    .loopSlide_overlay_title {
        font-size: 32px;
    }
    .loopSlide_overlay_subtitle {
        font-size: 18px;
    }
    .silvestri_button_text {
        margin: 0 1rem;
        font-size: 16px;
    }
    .button_loopSlider {
        margin-top: 1rem;
    }
    .progress_bar_container {
        margin-bottom: 0;
    }
    .progress_bar_container .progress_bar_container_secondHomeCarousel { /* Versione per secondo carousel */
        margin-bottom: 0;
    }

}

/* Mobile */
@media screen and (max-width: 767px) {
    .loopSlides,
    .loopSlides > div {
        width: 100vw !important;
        min-width: 100vw !important;
        max-width: 100vw !important;
        box-sizing: border-box;
    }
    .homeCustomLoopCarousel_mainContainer {
        margin-bottom: 0;
    }
    .container_buttons_loopSlider {
        display: none;
    }
    .container_loopSlider {
        height: 500px;
    }
    .loopSlide_overlay_title {
        font-size: 26px;
    }
    .loopSlide_overlay_subtitle {
        font-size: 16px;
    }
    .silvestri_button_text {
        margin: 0 1rem;
        font-size: 16px;
    }
    .loopSlide_container_info_overlay { /* Overlay dentro le slide */
        width: 80%;
        padding-left: 1rem;
    }
    .loopSlide_overlay_title {
        color: white;
        font-size: 20px;
        text-align: start;
    }
    .loopSlide_overlay_subtitle {
        color: white;
        font-size: 16px;
        text-align: start;
    }
    .silvestri_button_container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-radius: 0;
        margin: 0;
        padding: 0;
    }
    .silvestri_button_text {
        margin: 0 1rem;
        font-size: 18px;
    }
}