/* Slide height */
.hero_slider .hero-carousel .slick-list .slick-track .slide {
    height: 700px !important;
    position: relative;
}

/* Immagine di sfondo */
.hero_slider .wrap-img {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.hero_slider .wrap-img img {
    min-height: 700px;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.hero_slider .hero-carousel .slide {
    position: relative;
    overflow: hidden;
}

/* Layer base - Gradiente chiaro */
.hero_slider .hero-carousel .slide::after,
.hero_slider .hero-carousel .slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: opacity 0.6s ease-in-out;
    pointer-events: none;
    z-index: 1;
}

/* Gradiente scuro (visibile di default) */
.hero_slider .hero-carousel .slide::after {
    background: linear-gradient(179deg, rgba(0, 0, 0, 0.00) -32.41%, #000 98.89%);
    opacity: 1;
}

/* Gradiente chiaro nascosto di default */
.hero_slider .hero-carousel .slide::before {
    background: linear-gradient(179deg, rgba(255, 255, 255, 0) -32.41%, #ffffff 98.89%);
    opacity: 0;
}

/* Gradiente desktop  */
@media screen and (min-width:768px) {
    .hero_slider .hero-carousel .slide::after {
        background: linear-gradient(270deg, rgba(0, 0, 0, 0.00) -6.13%, #000 106.34%);
    }

    .hero_slider .hero-carousel .slide::before {
        background: linear-gradient(270deg, rgba(255, 255, 255, 0) -6.13%, #ffffff 106.34%);
    }
}

/* Quando è attiva la modalità dark: invertiamo le opacità */
.hero_slider .hero-carousel.dark .slide::after {
    opacity: 0;
}

.hero_slider .hero-carousel.dark .slide::before {
    opacity: 1;
}

/* Content Slide */
.hero_slider .content-slide {
    z-index: 100;
    position: relative;
    width: 100%;
}

@media screen and (min-width: 1200px) {
    .hero_slider .content-slide {
        width: 50%;
    }
}

.hero_slider .content-slide .label {
    width: fit-content;
    font-size: 0.85rem;
}

.hero_slider .content-slide p {
    width: 100%;
}

@media screen and (min-width: 768px) {
    .hero_slider .content-slide p {
        width: 70%;
    }
}

/* Arrows */
.hero_slider .hero-carousel .slick-arrow {
    top: auto;
    bottom: 24px;
    z-index: 2;
    width: 24px;
    height: 24px;
}

/* prev */
.hero_slider .hero-carousel .slick-arrow.slick-prev {
    left: calc(50% - 70px);
}

.hero_slider .hero-carousel .slick-arrow.slick-prev::before {
    content: url('../../../../src/assets/ico-arrow-black-slider.svg');
    display: block;
    line-height: 0px;
}

/* next */
.hero_slider .hero-carousel .slick-arrow.slick-next {
    left: calc(50% + 48px);
}

.hero_slider .hero-carousel .slick-arrow.slick-next::before {
    content: url('../../../../src/assets/ico-arrow-black-slider.svg');
    transform: rotate(180deg);
    display: block;
    line-height: 0px;
}

/* Colore frecce */
.hero_slider .hero-carousel .slick-arrow::before {
    -webkit-filter: invert(1);
        filter: invert(1);
    transition: filter 0.1s ease;
}

.hero_slider .hero-carousel.dark .slick-arrow::before {
    -webkit-filter: invert(0);
    filter: invert(0);
}

/* Dots */
.hero_slider .hero-carousel .slick-dots {
    width: auto;
    left: 50%;
    transform: translateX(-50%);
    bottom: 36px;
}

/* Stato base */
.hero_slider .hero-carousel .slick-dots li:not(.slick-active) button::before {
    color: #fff;
    opacity: 0.5;
    background-color: transparent;
    
}

/* Active state */
.hero_slider .hero-carousel .slick-dots li.slick-active button::before {
    color: transparent;
    width: 16px;
    height: 6px;
    background-color: #ffffff;
    border-radius: 100px;
    top: calc(50% - 4px);
    margin-top: 0;
    font-size: 0;
}

/* Colori .dark */
.hero_slider .hero-carousel.dark .slick-dots li:not(.slick-active) button::before {
    color: #000;
}

.hero_slider .hero-carousel.dark .slick-dots li.slick-active button::before {
    background-color: #000;
}


/* Gestione navigation in base al numero di slide */

.hero_slider .slick-slider .slick-dots {
    display: none;
}


.hero_slider div.slick-slide:first-child:nth-last-child(n + 1):parent(.slick-slider) .slick-dots {
    display: block;
}