: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 */


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

.logo {
    width: 180px;
}

.bg-header {
    width: 100%;
    background-image: url('img_garaventa_test/Gruppo\ di\ maschere\ 8.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-size: 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;
    }

    .bg-header{
    background-image: none !important;
  }

}

/* FIX iPad: l'immagine non deve coprire il bottone */
@media (max-width: 991.98px){
  a.cta-banner{
    display: inline-block;
    position: relative;
    z-index: 10;
    margin-bottom: 24px; /* crea spazio sotto il bottone */
  }

  .pe-10perc img{
    display: block;
    margin-top: 16px; /* spinge giù l'immagine */
  }
}

@media (max-width: 991.98px){
  .bg-header{
    background-image: none !important;
  }
}

#blocco3, #blocco5, #blocco6, #blocco7, #blocco8, #blocco9, #blocco10{
  content-visibility: auto;
  contain-intrinsic-size: 1000px;
}

/* ✅ CTA chiamata MOBILE in pagina (non più fisso) */
.page-header__phone{
  position: static;     /* ✅ era fixed: ora segue il flusso della pagina */
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  z-index: auto;

  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 10px 16px;
  border-radius: 999px;

  background: rgba(13, 49, 86, 0.95);
  text-decoration: none;

  box-shadow: 0 8px 22px rgba(0,0,0,.22);
  -webkit-tap-highlight-color: transparent;

  white-space: nowrap; /* ✅ impedisce il ritorno a capo */
}

/* Titolo sopra al bottone (non H1) */
.mobile-cta-call__title{
  font-weight: bold;
  font-size: 14px;
  line-height: 1.2;
  margin: 0 0 10px;
  color: #ffffff;
  text-align: center;
}

/* Wrapper che posiziona il blocco "in mezzo" alle sezioni */
.mobile-cta-call{
  padding: 18px 16px;
  background-color: rgba(0, 71, 134, 0.75);
  text-align: center;
}

/* numero bianco */
.phone__number{
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  letter-spacing: .2px;
  color: #ffffff;
  white-space: nowrap; /* ✅ numero sempre su una riga */
}

/* contenitore icona */
.phone__icon{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #e21b2f; /* rosso cornetta */
  flex-shrink: 0; /* ✅ l'icona non si restringe */
}

/* icona svg */
.phone__icon svg{
  fill: currentColor;
}

.page-header__phone:active{
  transform: scale(0.98);
}

/* opzionale: un pelo più piccolo su schermi stretti */
@media (max-width: 360px){
  .page-header__phone{ padding: 9px 12px; }
  .phone__number{ font-size: 14px; }
  .mobile-cta-call__title{ font-size: 13px; }
}