:root {
    --color-blu-scuro-new: #002C54;
    --color-blu-scuro: #004a95;
    --color-blu-scuro-rgba: #004786;
    --color-blu-scuro-hex: #004786;
    --color-blu-chiaro: #3398cc;
    --color-red: #e11a27;
    --color-grey: #f8f8f8;
    --color-light-grey: #F7F8FA;
    --primary-font: 'Ubuntu', sans-serif;
}

body {
    font-family: var(--primary-font);
    color: #4E4E4E;
    font-size: 15px;
    font-weight: 100;
    line-height: 1.4;
    background-color: white;

}


/* TYPOGRAPHY */

h1 {
    font-size: 40px;
}

h2 {
    font-size: 26px;
    font-weight: bold;
}

strong {
    color: #000 !important;
}


/* COLOR */

.bg-blu-scuro {
    background-color: var(--color-blu-scuro);
}

.bg-blu-scuro-new {
    background-color: var(--color-blu-scuro-new);
}

.bg-blu-scuro-rgba {
    background-color: var(--color-blu-scuro-rgba);
}

.bg-blu-scuro-hex {
    background-color: var(--color-blu-scuro-hex);
}

.bg-red {
    background-color: var(--color-red);
}

.blu-scuro {
    color: var(--color-blu-scuro);
}

.blu-scuro {
    color: var(--color-blu-scuro-new);
}

.blu-scuro-rgba {
    color: var(--color-blu-scuro-rgba);
}

.blu-scuro-hex {
    color: var(--color-blu-scuro-hex);
}

.blu-chiaro {
    color: var(--color-blu-chiaro);
}

.bg-grey {
    background-color: var(--color-grey);
}


/* TAB SLIDER */

.nav-link {
    font-weight: bold;
}

/* TAB SLIDER END */

/* MODIFICHE VARIE */

.mobile-text>p.list {
    /* color: white;
    text-shadow: 1px 0px 2px black; */
}

#blocco2>div>div>div>h1 {
    text-shadow: 1px 0px 2px white;
}

.logo {
    width: 180px;
}

.bg-header {
    width: 100%;
    background-image: url('img_garaventa/Roma.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top;
}

h2.payoff {
    font-size: 28px;
}

p.list::before {
    content: url(img_garaventa_test/checkmark-filled.svg);
    margin-right: 10px;
    display: inline-block;
    width: 25px;
    margin-top: auto;
    margin-bottom: auto;
}

p.list {
    font: 25px;
    display: flex;
    align-items: center;
    color: #4E4E4E;
    font-weight: bold;
}

.tab-pane {
    text-align: left;
}


.ps-10perc {
    padding-left: 10%;
    padding-right: 5%;
}

.pe-10perc {
    padding-right: 10%;
}

.pe-10perc>img {
    border-radius: 20px;
    max-height: 300px;
}

.ps-10perc>p:first-child,
.ps-10perc>h4 {
    color: var(--color-blu-scuro-rgba);
    font-weight: bold;
    margin-bottom: 20px;
}

.bg-form {
    background-color: rgba(0, 71, 134, 0.75);
    padding: 30px;
    border-radius: 20px;
}

h2.title-form {
    font-size: 25px;
}

p.subtitle-form {
    font-size: 15px;
}

.consenso label {
    font-size: 14px;
    line-height: 0px;
    display: inline;
}

a.cta-banner {
    background-color: var(--color-red);
    color: #fff;
    padding: 15px 25px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 15px;
}

ul.list-client {
    list-style-type: none;
    padding-left: 0px;
}

p.footer {
    font-size: 15px;
}

.cta-mobile {
    display: none;
}

.separator {
    border-top: 2px solid var(--color-blu-scuro);
    height: 30px;
    width: 150px;
    margin: auto;
}


figcaption.figure-caption {
    color: var(--color-blu-chiaro);
    font-weight: bold;
    font-size: 20px;
}

.font-border {
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
}



/* CARD SLIDER */

.installations-section {
    padding: 40px 20px;
    text-align: center;
}

.installations-section h2 {
    color: #003087;
    font-size: 24px;
    margin-bottom: 30px;
}

.swiper-container {
    position: relative;
    padding: 0 40px;
}

.swiper-slide {
    display: flex;
    justify-content: center;
}

.card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    /* padding: 10px; */
    max-width: 300px;
    text-align: center;
}

.card img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

.card p {
    margin-top: 10px;
    font-size: 14px;
    font-weight: bold;
    color: #444;
    line-height: 1.4;
}

.swiper-button-next,
.swiper-button-prev {
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    width: 32px;
    height: 32px;
    top: 50%;
    transform: translateY(-50%);
    color: #003087;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 16px;
}

.slider-wrapper {
    max-width: 100%;
    overflow: hidden;
}

.swiper-button-next:after {
    content: url('img_garaventa_test/arrow-left-circle-fill.svg');
}

.swiper-button-prev:after {
    content: url('img_garaventa_test/arrow-left-circle-fill.svg');
    display: inline-block;
    transform: rotate(180deg);
}

/* CARD SLIDER END*/

/* RISPARMIA CON DETRAZIONI */
.br-20 {
    border-radius: 20px;
}

#blocco5 {
    /* padding: 150px; */
}

.promo-section .object-fit-cover {
    object-fit: cover;
    height: 100%;
    min-height: 250px;
    max-height: 320px;
}

.promo-section>div>div:nth-child(2) {
    min-height: 320px;

    padding: 1.5rem 2rem;
}

.promo-section>div>div:nth-child(2)>p.fw-semibold {
    font-size: 27px;
}

@media (max-width: 767.98px) {
    .promo-section>div>div:nth-child(2) {
        min-height: none !important;

    }


    .promo-section .row {
        flex-direction: column;
    }

    .promo-section .col-md-6 {
        width: 100%;
    }

    .promo-section img {}

    .promo-section .bg-primary {
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }

    #blocco5 {
        padding: 20px;
    }

}

/* RISPARMIA CON DETRAZIONI END*/

/* VIDEO */

.video-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 100%;
    /* Limit maximum width of the container */
    width: 720px;
    /* Set a base width (can be adjusted) */
    margin: 30px auto 30px auto;
}

video {
    display: block;
    max-width: 100%;
    /* Make video scale down to fit container */
    height: auto;
}

/* VIDEO END */



/* SLIDER */
.nav-pills .nav-link.active {
    border-radius: 50%;
    background-color: var(--color-blu-scuro-hex) !important;
}

.nav-pills .nav-link {
    color: var(--color-blu-scuro-hex);
    background-color: var(--color-grey);
    border-radius: 50%;
    margin-left: 5px;
    margin-right: 5px;
}


.slideshow-container {
    overflow: hidden;
    white-space: nowrap;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.slideshow-wrapper {
    display: inline-block;
    animation: slide 15s linear infinite;
    /* Adjust duration for speed */
}

.logo-item {
    display: inline-block;
    margin-right: 30px;
    /* Adjust spacing between logos */
    opacity: 0.7;
    /* Optional: Slightly fade logos */
    filter: grayscale(100%);
    /* Black and white filter */
}

.logo-item img {
    height: 50px;
    /* Adjust logo height */
    vertical-align: middle;
}


@keyframes slide {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }

    /* Slides to the left */
}

/* Keep the animation smooth by duplicating the content */
.slideshow-wrapper.duplicate {
    animation: slide-duplicate 15s linear infinite;
}

@keyframes slide-duplicate {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}




/* ============== MOBILE ================== */


@media only screen and (max-width:576px) {

    .slideshow-wrapper {
        display: inline-block;
        animation: slide 10s linear infinite;
        /* Adjust duration for speed */
    }

    .slideshow-wrapper.duplicate {
        animation: slide-duplicate 10s linear infinite;
    }

    .tab-pane>.row>div>div {
        margin-bottom: 3rem;
    }

    .ps-10perc {
        padding: 5%;
    }

    .pe-10perc {
        padding: 5%;

    }

    .cta-mobile {
        display: block;
        background-color: #fff;
        padding: 10px;
        text-align: center;
        bottom: 0px;
        z-index: 100;
        border-top: 1px solid var(--color-blu-scuro-new);
    }

    a.cta-scroll-mobile {
        text-decoration: none;
        font-weight: bold;
        font-size: 25px;
        color: white;
        font-weight: bold;
    }

    h1 {
        font-size: 30px;
    }

    h2 {
        font-size: 23px;
    }

    h2.payoff {
        font-size: 24px;
    }

    h2.title-form {
        font-size: 24px;
    }

    p.list {
        font-size: 18px;
    }

    .bg-header {
        background-position: 50%;

    }

    #blocco1 {
        background: white !important;
    }

    a.cta-banner {
        /* font-size: 17px; */
        margin-bottom: 20px;
    }

    h2.title-slider {
        font-size: 21px;
    }

    #blocco1 {
        order: 9;

    }

    #blocco2 {
        order: 1;
    }

    #blocco3 {
        order: 2;
    }

    #blocco4 {
        order: 3;
    }

    #blocco5 {
        order: 4;
    }

    #blocco6 {
        order: 5;
    }

    #blocco7 {
        order: 6;
    }

    #blocco8 {
        order: 7;
    }

    #blocco9 {
        order: 8;
    }

    #blocco10 {
        order: 10;
    }

}