/* Contenitore principale slider */
.hero_homepage-section {
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: #000;
    overflow: hidden;
    position: relative;
}

/* Wrapper interno slider */
.hero_homepage-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 126px;
    padding: 0;
    background-color: #000;
    overflow: hidden;
    font-family: Inter, 'sans-serif';
}

/* Carosello */
.custom-hero_homepage {
    position: relative;
    width: 100%;
    height: 550px; 
    overflow: hidden;
}

/* Slide singola */
.custom-hero_homepage-item {
    display: flex;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.5s ease-in-out;
    opacity: 0;
}

.custom-hero_homepage-item.active {
    opacity: 1;
    z-index: 1;
}

.hero_homepage-cols-12-slider {
    display: flex;
    width: 100%;
    height: 100%;
}


/* Colonna testo (30%) */
.hero_homepage-lg-cols-6-left {
    flex: 0 0 33.333%;
    max-width: 33.333%;
    padding: 60px 0px 60px 50px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.text-padding {
    box-sizing: border-box;
    color: #fff;
    background: rgba(0, 0, 0, 0.2);
}


/* Colonna immagine (70%) */
.hero_homepage-lg-cols-6-right {
    flex: 0 0 66.667%;
    max-width: 66.667%;
    margin: 0;
    padding-left: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-container-hero_homepage {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.img-fluid-hero_homepage {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center;
    display: block;
}


/* Titoli e descrizioni */
.slide-title-hero_homepage {
    font-family: Inter, sans-serif;
    font-size: 36px;
    font-weight: 400;
    line-height: 42px;
    margin: 0 0 20px 0;
    margin-block-start: 0px !important;
    margin-block-end: 0px !important;
    padding-bottom: 20px;
}

.slide-description-hero_homepage {
    font-family: Inter, sans-serif;
    font-size: 22px;
    line-height: 28px;
    margin: 0 0 30px 0;
        margin-block-start: 0px !important;
    margin-block-end: 0px !important;
    padding-bottom: 40px;
}

/* Pulsanti */
.btn-blu {
    width: 230px;
    height: 54px;
    background-color: #008bee;
    border: 0px;
    border-radius: 30px;
    font-family: Inter;
    font-weight: 700;
    font-size: 20px;
    line-height: 24px;
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
    cursor: pointer;
    align-content: center;
}

.btn-blu:hover {
    background-color: #006bb3 !important;
}

/* Indicatori */
.custom-hero_homepage-controls {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding-top: 25px;
    padding-bottom: 60px;
    background-color: white;
}


.custom-hero_homepage-indicator {
  width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.4);
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.custom-hero_homepage-indicator.active {
    background-color: #000000;
    transform: scale(1.2);
}

.custom-hero_homepage-indicator:hover {
        background-color: rgba(0, 0, 0, 0.8);
}

/* TITOLO */

@media (max-width: 369px) {
    .slide-title-hero_homepage {
        font-size: 26px;
        line-height: 32px;
    }
}

@media (min-width: 370px) and (max-width: 375px) {
    .slide-title-hero_homepage {
        font-size: 24px;
        line-height: 30px;
    }
}

@media (min-width: 376px) and (max-width: 409px) {
    .slide-title-hero_homepage {
        font-size: 27px;
        line-height: 33px;
    }
}

@media (min-width: 410px) and (max-width: 414px) {
    .slide-title-hero_homepage {
        font-size: 28px;
        line-height: 34px;
    }
}

@media (min-width: 415px) and (max-width: 430px) {
    .slide-title-hero_homepage {
        font-size: 29px;
        line-height: 35px;
    }
}

@media (min-width: 431px) and (max-width: 791px) {
    .slide-title-hero_homepage {
        font-size: 30px;
        line-height: 36px;
    }
}

@media (min-width: 792px) and (max-width: 810px) {
    .slide-title-hero_homepage {
        font-size: 31px;
        line-height: 37px;
    }
}

@media (min-width: 811px) and (max-width: 830px) {
    .slide-title-hero_homepage {
        font-size: 32px;
        line-height: 38px;
    }
}

@media (min-width: 831px) and (max-width: 849px) {
    .slide-title-hero_homepage {
        font-size: 33px;
        line-height: 39px;
    }
}


@media (min-width: 850px) and (max-width: 964px) {
    .slide-title-hero_homepage {
        font-size: 35px;
        line-height: 41px;
    }
}

/* DESCRIZIONE */


@media (max-width: 1066px) {
    .slide-description-hero_homepage {
        font-size: 18px;
        line-height: 24px;
    }
}

@media (min-width: 1067px) and (max-width: 1231px) {
    .slide-description-hero_homepage {
        font-size: 20px;
        line-height: 26px;
    }
}



@media (max-width: 699px) {
    .custom-hero_homepage-item {
        flex-direction: column;
        position: relative; 
        height: auto !important; 
        opacity: 1; 
        width: 100%;
        display: none; 
        overflow: hidden;
    }

    .custom-hero_homepage {
        height: auto !important;
        overflow: hidden !important;
    }

    .custom-hero_homepage-item.active {
        display: flex; 
    }

    .hero_homepage-lg-cols-6-left,
    .hero_homepage-lg-cols-6-right {
        width: 100%;
        max-width: 100%;
    }

    /* Ordine: immagine sopra, testo sotto */
    .hero_homepage-lg-cols-6-left {
        /* padding: 30px 20px !important; */
        box-sizing: border-box;
    }

    .hero_homepage-lg-cols-6-right {
        order: 1; 
        padding: 0px !important;
    }


    .image-container-hero_homepage {
        width: 100%;
    }

    .img-fluid-hero_homepage {
        width: 100%;
        object-fit: cover;
    }

     .custom-hero_homepage-controls {
        order: 3; 
        background-color: white;
    }

    .hero_homepage-cols-12-slider {
        display: flex;
        flex-direction: column-reverse;
    }

    a.btn-blu {
        width: 230px;
    }
}



@media (min-width: 700px) and (max-width: 1250px) {
    a.btn-blu {
        width: 100%;
    }
}

/* @media (max-width: 350px) {
    a.btn-blu {
        width: 100%;
        font-size: 16px !important;
    }
} */

/* CONTENITORE */
@media (max-width: 409px) {
    .hero_homepage-lg-cols-6-left {
        padding-left: 30px;
        padding-right: 30px;
    }

    a.btn-blu {
        width: 100%;
    }

    .hero_homepage-lg-cols-6-right {
        padding-left: 30px;
    }
}

@media (min-width: 410px) and (max-width: 699px) {
    .hero_homepage-lg-cols-6-left {
        padding-right: 50px;
        padding-left: 50px;
    }


}

@media (min-width: 700px) and (max-width: 870px) {
    .hero_homepage-lg-cols-6-left {
        padding-left: 30px;
    }

    .hero_homepage-lg-cols-6-right {
        padding-left: 30px;
    }
}



@media (min-width:1281px ) and (max-width: 1430px) {
    .hero_homepage-wrapper {
        margin-top: 100px;
    }
}

@media (max-width: 1280px) {
     .hero_homepage-wrapper {
        margin-top: 0px;
    }
}

