/* SEZIONE */

.hsliderS2-section {
    background-color: rgb(255, 255, 255);
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

.hsliderS2-container {
    padding-top: 60px;
    display: block;
    padding-left: 50px;
    padding-bottom: 60px;
    display: flex;
    justify-content: center;
}

.hsliderS2-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    overflow: hidden;
    max-width: 1450px;
}

.hsliderS2-cols-12 {
    display: block;
    margin: 0 auto;
    text-align: left;
    width: 100%;
    padding-bottom: 30px;
}

.hsliderS2-title {
    font-size: 45px;
    line-height: 52px;
    font-family: Inter, sans-serif;
    font-weight: 600;
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
    color: rgb(0, 0, 0);
    padding-bottom: 10px;
}

.hsliderS2-subtitle {
    font-family: Inter, sans-serif;
    font-size: 26px;
    line-height: 32px;
    font-weight: 400;
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
    color: rgb(0, 0, 0);
}

/* NAV BAR */

.nav-bar {
    width: 100%;
    background: rgb(255, 255, 255);
    padding: 16px 0;
    position: relative;
}

.nav-inner {

    position: relative;
}

/* NAVBAR - desktop */

.hsliderS2-navbar {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    /* su desktop le voci vanno a capo */
    gap: 20px;
    /* spaziatura tra voci */
    overflow: hidden;
    /* niente scroll desktop */
    justify-content: center;
}

.nav-inner ul {
    display: flex;
    gap: 24px;
    margin: 0;
    padding: 0 0 6px 0;
    list-style: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    scrollbar-width: none;
    -ms-overflow-style: none;
    white-space: nowrap;
}

.nav-inner ul::-webkit-scrollbar {
    display: none;
}

.nav-inner li {
    flex: 0 0 auto;
    padding: 8px 12px;
    white-space: nowrap;
    color: rgb(146, 145, 145);
    cursor: pointer;
    font-family: Inter, sans-serif;
    font-size: 20px;
    line-height: 26px;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-inner li:hover,
.nav-inner li.active {
    color: #000000;
    font-weight: 600;
}

/* Linea grigia sotto */

.nav-inner .line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    /* sempre tutta la navbar */
    height: 2px;
    background: #969696;
    z-index: 1;
}


/* Linea attiva (sotto l'elemento selezionato) */

.nav-inner .active-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: rgb(0, 0, 0);
    z-index: 2;
}

/* STILI PER I CONTENUTI DELLE SLIDE */

.hsliderS2-cols-12-slider {
    width: 100%;
    display: flex;
    flex-direction: row;
    margin: 0;
    padding-top: 54px;
    padding-right: 50px;
    padding-left: 50px;
}

.hsliderS2-lg-cols-6-left {
    width: 50%;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    align-self: center;
    padding-left: 25px;
}

.hsliderS2-lg-cols-6-right {
    width: 50%;
    box-sizing: border-box;
    padding-right: 25px;
    display: flex;
    justify-content: center;
}

.slide-title-hsliderS2 {
    font-size: 36px;
    line-height: 42px;
    font-weight: 600;
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
    color: rgb(0, 0, 0);
    font-family: Inter, sans-serif;
    padding-bottom: 20px;
}

.slide-description-hsliderS2,
.slide-description2-hsliderS2 {
    font-family: Inter, sans-serif;
    font-size: 18px;
    line-height: 24px;
    font-weight: 400;
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
    color: rgb(0, 0, 0);
}

.slide-description2-hsliderS2 {
    padding-bottom: 0;
}

/* CAROSELLO PERSONALIZZATO */

.custom-hsliderS2 {
    position: relative;
    max-width: 1400px;
    width: 100%;
    height: auto;
}

.custom-hsliderS2-inner {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    align-items: center;
    flex-direction: row;
}

.image-container-hsliderS2 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.img-fluid-hsliderS2 {
    height: auto;
    display: block;
    width: 100%;
}

.custom-hsliderS2-controls,
.controls-position-outside {
    position: relative;
    margin-top: 50px !important;
}

/* EFFETTO FADE */

.custom-hsliderS2-fade .custom-hsliderS2-item {
    position: absolute;
    max-width: 1400px;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 0;
}

.custom-hsliderS2-fade .custom-hsliderS2-item.active {
    opacity: 1;
    z-index: 1;
}

.custom-hsliderS2:not(.custom-hsliderS2-fade) .custom-hsliderS2-item {
    display: none;
}

.custom-hsliderS2:not(.custom-hsliderS2-fade) .custom-hsliderS2-item.active {
    display: block;
}


@media (max-width: 975px) {
    .hsliderS2-container {
        padding-right: 0px;
    }
}

/* TITOLO PARAGRAFO */

@media (max-width: 369px) {
    .slide-title-hsliderS2 {
        font-size: 26px;
        line-height: 32px;
    }
}

@media (min-width: 370px) and (max-width: 375px) {
    .slide-title-hsliderS2 {
        font-size: 24px;
        line-height: 30px;
    }
}

@media (min-width: 376px) and (max-width: 409px) {
    .slide-title-hsliderS2 {
        font-size: 27px;
        line-height: 33px;
    }
}

@media (min-width: 410px) and (max-width: 414px) {
    .slide-title-hsliderS2 {
        font-size: 28px;
        line-height: 34px;
    }
}

@media (min-width: 415px) and (max-width: 430px) {
    .slide-title-hsliderS2 {
        font-size: 29px;
        line-height: 35px;
    }
}

@media (min-width: 431px) and (max-width: 791px) {
    .slide-title-hsliderS2 {
        font-size: 30px;
        line-height: 36px;
    }
}

@media (min-width: 792px) and (max-width: 810px) {
    .slide-title-hsliderS2 {
        font-size: 31px;
        line-height: 37px;
    }
}

@media (min-width: 811px) and (max-width: 830px) {
    .slide-title-hsliderS2 {
        font-size: 32px;
        line-height: 38px;
    }
}

@media (min-width: 831px) and (max-width: 849px) {
    .slide-title-hsliderS2 {
        font-size: 33px;
        line-height: 39px;
    }
}

@media (min-width: 850px) and (max-width: 964px) {
    .slide-title-hsliderS2 {
        font-size: 35px;
        line-height: 41px;
    }
}

/* DESCRIZIONE PARAGRAFO */

@media (max-width: 1128px) {

    .slide-description-hsliderS2,
    .slide-description2-hsliderS2 {
        font-size: 16px;
        line-height: 22px;
    }

    .slide-description-hsliderS2,
    .slide-description2-hsliderS2 {
        margin-block-start: 0px !important;
        margin-block-end: 0px !important;
    }
}

@media (max-width: 369px) {

    .slide-description-hsliderS2,
    .slide-description2-hsliderS2 {
        line-height: 20px;
        font-size: 14px;
    }
}

/* LI */

@media (min-width: 370px) and (max-width: 1200px) {
    .nav-bar li {
        font-size: 17px;
        line-height: 23px;
    }
}

@media (min-width: 1199px) and (max-width: 1128px) {
    .nav-bar li {
        font-size: 18px;
        line-height: 24px;
    }
}

/* COLONNE */

@media (max-width:699px) {
    .hsliderS2-cols-12-slider {
        display: flex;
        flex-direction: column;
        padding-top: 45px;
        padding-right: 50px;
    }

    .hsliderS2-lg-cols-6-right,
    .hsliderS2-lg-cols-6-left {
        width: 100%;
    }

    .hsliderS2-lg-cols-6-right {
        padding-right: 0px;
    }

    .hsliderS2-lg-cols-6-left {
        padding-left: 0px;
        padding-top: 30px;
    }

    .hsliderS2-subtitle {
        padding-bottom: 30px;
    }
}

/* MEDIA QUERIES */

/* TITOLO */
/* < 369PX */
@media (max-width: 368px) {
    .hsliderS2-title {
        font-size: 31px;
        line-height: 40px;
    }
}


/*  Da 369px a 374px */

@media (min-width: 369px) and (max-width: 374px) {
    .hsliderS2-title {
        font-size: 31px;
        line-height: 40px;
    }
}

/*  Da 375px a 408px */

@media (min-width: 375px) and (max-width: 408px) {
    .hsliderS2-title {
        font-size: 32px;
        line-height: 41px;
    }
}

/*  Da 409px a 413px */

@media (min-width: 409px) and (max-width: 413px) {
    .hsliderS2-title {
        font-size: 33px;
        line-height: 40px;
    }
}

/*  Da 414px a 429px */

@media (min-width: 414px) and (max-width: 429px) {
    .hsliderS2-title {
        font-size: 32.5px;
        line-height: 40px;
    }
}

/*  Da 430px a 790px */

@media (min-width: 430px) and (max-width: 790px) {
    .hsliderS2-title {
        font-size: 34px;
        line-height: 41px;
    }
}

/* Da 791px a 809px */

@media (min-width: 791px) and (max-width: 809px) {
    .hsliderS2-title {
        font-size: 35px;
        line-height: 42px;
    }
}

/* Da 810px a 829px */

@media (min-width: 810px) and (max-width: 829px) {
    .hsliderS2-title {
        font-size: 36px;
        line-height: 43px;
    }
}

/* Da 830px a 848px */

@media (min-width: 830px) and (max-width: 848px) {
    .hsliderS2-title {
        font-size: 37px;
        line-height: 44px;
    }
}

/* Da 849px a 886px */

@media (min-width: 849px) and (max-width: 886px) {
    .hsliderS2-title {
        font-size: 38px;
        line-height: 45px;
    }
}

/* Da 887px a 963px */

@media (min-width: 887px) and (max-width: 963px) {
    .hsliderS2-title {
        font-size: 39px;
        line-height: 46px;
    }
}

/* Da 964px a 1066px */

@media (min-width: 964px) and (max-width: 1066px) {
    .hsliderS2-title {
        font-size: 41px;
        line-height: 48px;
    }
}

/* Da 1067px a 1231px */

@media (min-width: 1067px) and (max-width: 1231px) {
    .hsliderS2-title {
        font-size: 43px;
        line-height: 51px;
    }
}

/* SOTTOTITOLO */

@media (max-width: 369px) {
    .hsliderS2-subtitle {
        line-height: 24px;
        font-size: 16px;
    }
}

@media (min-width: 369px) and (max-width: 388px) {
    .hsliderS2-subtitle {
        line-height: 26px;
        font-size: 18px;
    }
}

@media (min-width: 389px) and (max-width: 409px) {
    .hsliderS2-subtitle {
        line-height: 28px;
        font-size: 20px;
    }
}

@media (min-width: 410px) and (max-width: 820px) {
    .hsliderS2-subtitle {
        line-height: 28px;
        font-size: 20px;
    }
}

@media (min-width: 821px) and (max-width: 943px) {
    .hsliderS2-subtitle {
        line-height: 32px;
        font-size: 24px;
    }
}

@media (min-width:700px) and (max-width:722px) {
    a.btn.btn-outline-receiver-R1 {
        padding-left: 5px;
        padding-right: 5px;
        margin-right: 2.5px;
    }

    .hsliderS2-lg-cols-6-left {
        padding-left: 0px;
    }
}

@media (min-width:723px) and (max-width:774px) {
    a.btn.btn-outline-receiver-R1 {
        padding-left: 9px;
        padding-right: 9px;
        margin-right: 5px;
    }

    .hsliderS2-lg-cols-6-left {
        padding-left: 0px;
    }
}

@media (min-width:775px) and (max-width: 1066px) {
    a.btn.btn-outline-receiver-R1 {
        padding-left: 15px;
        padding-right: 15px;
        margin-right: 10px;
    }

    .hsliderS2-lg-cols-6-left {
        padding-left: 0px;
    }
}

@media (max-width: 920px) {
    .hsliderS2-navbar {
        justify-content: space-between;
    }
}


@media (max-width: 699px) {
    .hsliderS2-navbar {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Firefox */

    }

    .hsliderS2-navbar::-webkit-scrollbar {
        display: none;
        /* Chrome, Safari */
    }

    .hsliderS2-cols-12 {
        padding-bottom: 0px;
    }

    .nav-inner.li {
        padding: 0px;
    }

    .line {
        left: 13px;
        width: 100%;
    }

    .hsliderS2-cols-12-slider {
        padding-left: 0px;
    }

    .image-container-hsliderS2 {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    a.btn.btn-outline-receiver-R1 {
        padding-left: 10px;
        padding-right: 10px;
        margin-right: 10px;
    }
}

@media (max-width: 409px) {
    .hsliderS2-container {
        padding-left: 30px;
    }

    .hsliderS2-cols-12-slider {
        padding-right: 30px;
    }
}

@media (min-width: 410px) and (max-width: 699px) {
    .hsliderS2-container {
        padding-left: 50px;
        padding-top: 60px;
        padding-bottom: 60px;
    }
}

@media (min-width: 700px) and (max-width: 870px) {
    .hsliderS2-container {
        padding-left: 30px;
    }
}

@media (max-width:1030px) {
    .hsliderS2-navbar {
        justify-content: space-between;
    }
}