
/* BLOCCO 1 - Testata con immagine di sfondo */
.testata-sezione{
   position: relative; text-align: center; padding: 0; margin: 0; 
}
.sfondo-immagine {
    background-image: url('https://sistemair.ch/wp-content/uploads/2025/02/cos-e-l-impianto-sistem-air.webp');
    background-size: cover;
    background-position: center;
    height: 500px; /* Desktop height */
    position: relative;
}

/* Contenitore testo centrato */
.intestazione-blocco {
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -25%);
    width: 80%;
    max-width: 1200px;
    padding: 10px 20px;
    border-radius: 8px;
    text-align: center;
}

/* Titolo */
.title-text {
    color: #dedacf;
    font-size: 2.5em;
    line-height: 1.2;
    margin: 0;
}

/* Sottotitolo */
.subtitle-text {
    font-size: 1.2em;
    margin-top: 5px;
    line-height: 1.5;
}

/* Responsive: mobile */
@media only screen and (max-width: 768px) {
    .sfondo-immagine {
        height: 80vw; /* Più compatta */
    }

    .intestazione-blocco {
        position: static;
        transform: none;
        width: 90%;
        margin: 20px auto;
        padding: 15px 10px;
        border-radius: 6px;
    }

    .title-text {
        font-size: 1.4em;
    }

    .subtitle-text {
        font-size: 1em;
        line-height: 1.4;
    }
}



/*    <!-- BLOCCO 2 E 2B Video e descrizione--> */

.blocco-video{
    max-width: 1200px; margin: 50px auto; background-color: #f6f4ef; border-radius: 10px; padding: 30px; display: flex; flex-wrap: wrap;
}

.sezione-video{
    flex: 50%; padding: 20px;
}
.sezione-testo{
    flex: 50%; display: flex; flex-direction: column; justify-content: center; padding-left: 20px; padding-right: 20px;
}
h2.mobile-title {
    color: #000;
    font-size: 25px;
    line-height: 1.2;
    text-align: left;
    margin-bottom: 10px;
}
.testo-p{
    font-size: 16px; line-height: 1.5; color: #333; text-align: left; padding-right: 20px;
}
.button-conta{
    background-color: #007c89; color: white; text-align: center; padding: 12px 20px; border-radius: 5px; 
    text-decoration: none; display: flex; align-items: center; justify-content: center; text-transform: uppercase;  font-size: 16px; line-height: 1; height: 50px;
}


.vid-desc{
    flex: 50%; display: flex; flex-direction: column; justify-content: center; padding-left: 20px; padding-right: 20px;
}

/* 📌 ADATTABILITÀ PER MOBILE */
@media only screen and (max-width: 768px) {
    .blocco-video {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        margin: 0px !important;
    }

    .blocco-video .video-container {
        max-width: 100%;
        padding: 0;
    }

    .blocco-video .testo-container {
        max-width: 100%;
        padding: 20px;
        text-align: center;
    }

    .blocco-video h2 {
        font-size: 22px; /* Più piccolo per mobile */
        text-align: center;
    }

    .blocco-video p {
        text-align: center;
    }

    .blocco-video .button {
        width: 100%;
        max-width: 250px;
        margin: 10px auto;
    }
}

/*BLOCCO 3 */

.blocchi-wrapper {
  max-width: 1200px;
  margin: auto;
  gap: 40px;
  padding: 20px 0;
}


.customer-care-title-2{

    margin-bottom: 20px;
    text-align: center;
    line-height: 1.2em;
    text-transform: none;
}
.blocchi-titolo {
  color: #000 !important;
  font-size: 32px !important;
  margin-bottom: 15px;
  text-align: left !important;
  margin-left: 50px;
  margin-right: 20px;
}

.blocchi-descrizione {
  text-align: left;
  margin-bottom: 40px;
  color: black;
  max-width: calc(100% - 40px);
  margin-left: 50px;
  margin-right: 50px;
}

.blocchi-container {
  display: flex;
  gap: 20px;
}

.blocchi-contenuto {
  flex: 70%;
}


.hotspot-container{
    position: relative; max-width: 100%;
}

.hotspot {
  position: absolute;
  width: 32px;
  height: 32px;
  background: rgba(0, 170, 173, 0.8);
  border-radius: 50%;
  border: 3px solid white;
  cursor: pointer;
  z-index: 10;
}

/* Posizionamento specifico dei singoli hotspot */
.hotspot-1 {
  top: 78%;
  left: 10%;
}

.hotspot-2 {
  top: 38%;
  left: 52%;
}

.hotspot-3 {
  top: 63%;
  left: 7%;
}

.hotspot-4 {
  top: 75%;
  left: 60%;
}
.popup {
  display: none;
  position: absolute;
  background: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  color: black;
  max-width: 250px;
  z-index: 20;
}

/* Posizionamenti individuali */
.popup-1 {
  top: 78%;
  left: 15%;
}

.popup-2 {
  top: 35%;
  left: 38%;
}

.popup-3 {
  top: 75%;
  left: 10%;
}

.popup-4 {
  top: 65%;
  left: 50%;
}

.popup h4 {
  margin: 0 0 8px;
  font-size: 16px;
}

.popup p {
  margin: 0;
  font-size: 14px;
}


.blocchi-bottone {
  flex: 30%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 40px;
  background-color: #f6f4ef;
  border-radius: 8px;
}

.blocchi-bottone-title {
  text-align: left;
  margin-bottom: 20px;
  font-size: 1.2em;
  color: #333;
  font-weight: bold;
}

.blocchi-bottone-description {
  text-align: left;
  margin-bottom: 20px;
  color: #333;
}

.blocchi-bottone-link {
  text-decoration: none;
  background-color: #ccc5b9;
  color: #333;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease;

  /* centratura orizzontale */
  display: inline-block;
  margin-left: auto;
  margin-right: auto;
}


.blocchi-bottone-link:hover {
  background-color: #b8b1a5;
}
@media only screen and (max-width: 768px) {
    .blocchi-container {
        flex-direction: column;
    }

    /* CENTRA I POPUP 1 e 3 SU MOBILE */
    .popup {
        position: fixed !important; /* Lo rende fisso nella viewport */
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important; /* Perfetto centramento */
        max-width: 80% !important; /* Non superare l'80% della larghezza */
        min-width: 120px !important; /* Mantiene un minimo per leggibilità */
        max-height: 100px !important; /* Imposta un'altezza massima */
        overflow: hidden; /* Evita che il testo si espanda troppo */
        background: white;
        padding: 10px !important; /* Ridotto padding */
        border-radius: 8px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
        text-align: center !important;
    }

    /* RIDIMENSIONA IL TESTO PER MOBILE */
    .popup h4 {
        font-size: 14px !important;
        margin-bottom: 6px !important;
    }

    .popup p {
        font-size: 13px !important;
        line-height: 1.3 !important;
    }

    /* RIDIMENSIONA I PALLINI */
    .hotspot {
        width: 26px !important;
        height: 26px !important;
    }

    .customer-care-title-2 {
        font-size: 27px !important;
    }
}

@media only screen and (min-width: 768px) {
    .customer-care-title-2 {
        font-size: 27px !important;
    }
}

/* BLOCCO 4 */ 

.blocco4-container {
  max-width: 1200px;
  margin: 50px auto;
  padding: 20px;
}

.blocco4-titolo {
  color: #000;
  font-size: 27px;
  margin-bottom: 20px;
}

.blocco4-testo {
  color: #000;
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
}

.blocco4-hero {
  position: relative;
}

.blocco4-sfondo {
  background-image: url('https://sistemair.ch/wp-content/uploads/2025/01/Casa-pulita-con-laspirapolvere-centralizzato-2.webp');
  background-size: cover;
  background-position: center;
  height: 500px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.blocco4-sottotitolo {
  text-align: center;
  color: #fff;
  font-size: 1.5em;
  margin-bottom: 15px;
  background: rgba(0, 0, 0, 0.4);
  padding: 10px 20px;
  border-radius: 5px;
}

.blocco4-bottone {
  background-color: #00444d;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.blocco4-bottone:hover {
  background-color: #006064;
}

.comparison-section {
  margin-top: 20px;
  display: none;
  background-color: #F5F5F5;
  padding: 20px;
  border-radius: 8px;
  color: #000;
}

.comparison-section.active {
  display: block;
}

.tab-switcher {
  display: flex;
  justify-content: center;
  background-color: #F5F5F5;
  padding-bottom: 5px;
  margin-bottom: 0;
}

.tab-button {
  border: 1px solid #dedacf;
  padding: 12px 20px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px 5px 0 0;
  background-color: #dedacf;
  color: #000;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.tab-button.active {
  background-color: #00444d;
  color: #fff;
  border-color: #00444d;
}

.tab-button:hover {
  background-color: #006064;
  color: #fff;
}

.comparison-content {
  display: none;
  padding: 20px;
}

.comparison-content.active {
  display: block;
}

@media only screen and (max-width: 768px) {
    .blocchi4-titolo {
        font-size: 23px !important;
        margin-left: 20px;
        margin-right: 20px;
        text-align: left;
    }

    .blocchi4-testo {
        font-size: 15px;
        line-height: 1.6;
        margin-left: 20px;
        margin-right: 20px;
        text-align: left;
    }

    .blocchi4-sottotitolo {
        font-size: 28px !important;
        text-align: center !important;
    }
}

/*BLOCCO 5 */ 

.blocco5-container {
  max-width: 1200px;
  margin: 50px auto;
  background-color: #f1f0ec;
  border-radius: 10px;
  padding: 30px;
}

.blocco5-titolo {
  text-align: center;
  color: #52504e;
  font-size: 36px;
  margin-bottom: 10px;
}

.blocco5-sottotitolo {
  text-align: center;
  font-size: 17px;
  line-height: 1.6;
  color: #52504e;
  margin-bottom: 30px;
}

.accordion-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.accordion-5 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 700px;
  background-color: #dedacf;
  color: #52504e;
  padding: 15px;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
  cursor: pointer;
  border: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.accordion-arrow {
  font-size: 12px;
  margin-left: 10px;
  transition: transform 0.3s ease-in-out;
}

.accordion-5.active .accordion-arrow {
  transform: rotate(180deg);
}

.accordion-content-5 {
  display: none;
  width: 100%;
  max-width: 700px;
  background-color: white;
  border: 1px solid #dedacf;
  border-radius: 5px;
  padding: 15px;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 10px;
  color: #52504e;
}

.accordion-5.active + .accordion-content-5 {
  display: block;
}

/* Carousel */
.carousel-outer {
  margin-top: 50px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.carousel-track {
  display: flex;
  animation: scroll 20s linear infinite;
  will-change: transform;
}

.carousel-track img {
  flex-shrink: 0;
  width: 300px;
  margin-right: 10px;
  display: block;
  object-fit: cover;
}



/* Responsive */
@media (max-width: 768px) {
  .blocco5-titolo {
    font-size: 24px;
  }

  .accordion-5 {
    font-size: 14px;
    padding: 10px;
  }

  .accordion-content-5 {
    font-size: 13px;
    padding: 10px;
  }

  .carousel-track {
    animation: scroll 10s linear infinite;
  }

  .carousel-track img {
    width: 200px;
  }

  p {
    font-size: 15px;
  }
}

 @keyframes scroll {
            0% { transform: translateX(0); }
            100% { transform: translateX(-100%); }
        }

        @-webkit-keyframes scroll {
            0% { -webkit-transform: translateX(0); }
            100% { -webkit-transform: translateX(-100%); }
        }

        .accordion-4 {
    display: flex;
    justify-content: space-between; /* Testo a sinistra, freccia a destra */
    align-items: center; /* Centra verticalmente */
    width: 100%;
    background-color: #dedacf; /* Sfondo */
    color: #52504e; /* Testo nero */
    padding: 15px;
    cursor: pointer;
    text-align: left;
    border: 1px solid #ddd; /* Bordo sottile */
    outline: none;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px; /* Arrotondamento degli angoli */
}

        /* Stile per la freccia */
.accordion-arrow {
    transition: transform 0.3s ease-in-out;
    font-size: 12px;
    margin-left: 10px;
}

/* Ruota la freccia quando l'accordion è aperto */
.accordion-item.active .accordion-arrow {
    transform: rotate(180deg);
}

        .auto-carousel {
            overflow: hidden;
            position: relative;
            display: flex;
        }

        .auto-carousel .carousel-track {
            animation: scroll 20s linear infinite;
            -webkit-animation: scroll 20s linear infinite;
            will-change: transform;
        }

        .carousel-track img {
            display: block;
            object-fit: cover;
        }

        .accordion-4 {
            cursor: pointer;
        }

        .accordion-4.active + .accordion-content-4 {
            display: block;
        }

        .responsive-title {
            font-size: 36px;
            color: #52504e;
            margin-bottom: 10px;
            text-align: center;
        }

        @media (max-width: 768px) {
            .responsive-title {
                font-size: 24px; /* Modifica la dimensione del titolo */
            }

            .carousel-track {
                animation: scroll 10s linear infinite; /* Aumenta la velocità della galleria */
                -webkit-animation: scroll 10s linear infinite;
            }

            .accordion-4 {
                font-size: 14px;
                padding: 10px;
            }

            .accordion-content-4 {
                font-size: 13px;
                padding: 10px;
            }

            p {
                font-size: 15px;
            }

            .carousel-track img {
                width: 200px;
            }
        }