/* ----------------------------------------------
   RICHIEDI UN PREVENTIVO
---------------------------------------------- */

/* ----------------------------------------------
   BLOCCO 1: Immagine di Testata
---------------------------------------------- */

.hero-section {
    width: 100%;
    margin: 0;
    padding: 0;
}

.hero-section .hero-image {
    width: 100%;
    height: auto;
    max-height: 500px; /* Altezza massima */
    object-fit: cover; /* Garantisce il riempimento senza distorsioni */
    display: block;
}

/* BLOCCO 1: Testata di apertura */
.testata-apertura {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    padding: 100px 20px;
    position: relative;
    color: #333; /* Testo nero */
    min-height: 600px;
    background-image: url("https://sistemair.ch/wp-content/uploads/2025/02/richiedi-preventivo.webp");
  }
  
  .testata-apertura .overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
  }
  
  .testata-apertura .text-block {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    animation: fadeIn 1s ease-out;
    background-color:#f8f8f8;
    border-radius: 15px;
    padding: 20px 30px;
  }
  
  .testata-apertura h1 {
    font-size: 3rem;
    margin-bottom: 10px;
  }
  
  .testata-apertura p {
    font-size: 1.2rem;
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

/* ----------------------------------------------
   BLOCCO 2: Titolo, Testo SEO e Form
---------------------------------------------- */

.request-quote-section {
    text-align: center;
    padding: 40px 20px 80px;
    background-color: #ffffff;
}

.request-quote-section h1 {
    font-family: 'KohinoorLatin', sans-serif;
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #000;
}

.request-quote-section p {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #555;
}

/* Stile aggiornato per il contenitore del form */
.form-container {
    margin: 0 auto;
    max-width: 900px; /* Larghezza massima del blocco form */
    width: 100%;
    background-color: #ffffff; /* Sfondo bianco */
    padding: 20px; /* Spazio interno al box */
    border-radius: 10px; /* Angoli arrotondati */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); /* Ombra leggera */
    transition: box-shadow 0.3s ease; /* Effetto di transizione per un look più fluido */
}

/* Effetto hover per il form (opzionale) */
.form-container:hover {
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.15); /* Ombra più pronunciata al passaggio del mouse */
}

/* Griglia a due colonne */
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px; /* Spaziatura minima tra righe */
}

.field-50 {
    flex: 1 1 calc(50% - 10px);
    max-width: calc(50% - 10px);
    box-sizing: border-box;
}

.field-100 {
    flex: 1 1 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* ----------------------------------------------
   BLOCCO 2: Richiedi Informazioni
---------------------------------------------- */

/* Tecnico Sistem Air */
.blocco-tecnico {
    display: flex;
    align-items: center;
    gap: 55px;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
  }
  
  .avatar-tecnico {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }
  
  .testo-tecnico p {
    margin: 0 0 6px 0;
    font-size: 15px;
    line-height: 1.4;
  }
  
/* Stili generali */
.form-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 50px;
    margin-bottom: 50px;
    padding-left: 100px;
    padding-right: 100px;
}

/* Stile dell'intestazione */
.form-header {
    text-align: center;
    margin-bottom: 20px;
}

.form-header h2 {
    font-size: 25px;
    margin-bottom: 20px;
}

.form-header p {
    font-size: 18px;
    color: #555;
    line-height: 1.5;
}

.form-icon {
    font-size: 40px;
    color: #333;
    margin-bottom: 20px;
}

/* Layout del form */
.form-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 15px;
}

.form-column {
    width: 48%;
}

.form-column-full {
    width: 100%;
}

/* Stili per input, select e textarea */
input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    background-color: white !important;
    outline: none;
}

/* Miglioramenti per il placeholder */
input::placeholder, textarea::placeholder {
    color: #aaa;
    font-style: italic;
}

textarea {
    height: 100px;
    resize: none;
}



/* Checkbox e accettazione privacy */
.form-column-full a {
    color: #0073e6;
    text-decoration: none;
}

.form-column-full a:hover {
    text-decoration: underline;
}

/* Pulsante Invio */
.btn {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.btn button {
    background-color: #333;
    color: white;
    padding: 16px 54px;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn button:hover {
    background-color: #000;
    transform: scale(1.1);
}

/* Responsività */
@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 10px;
    }
    .form-column {
        width: 100%;
    }
    .form-container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* ----------------------------------------------
   LABEL E PRIVACY CHECKBOX
---------------------------------------------- */

/* Allineamento etichette (label) a sinistra */
.contact-form-wrapper label {
    display: block; /* Assicura che ogni etichetta occupi una riga */
    text-align: left; /* Allinea il testo a sinistra */
    font-size: 16px; /* Dimensione del font */
    font-weight: 600; /* Semibold */
    margin-bottom: 5px; /* Spaziatura sotto l'etichetta */
    color: #333; /* Colore del testo */
}

/* Privacy Checkbox e Testo */
.wpcf7-acceptance {
    display: flex;
    justify-content: center; /* Centra orizzontalmente checkbox e testo */
    align-items: center; /* Centra verticalmente checkbox e testo */
    gap: 10px; /* Spazio tra checkbox e testo */
    font-size: 14px; /* Dimensione del testo */
    margin-top: 10px;
}

.wpcf7-acceptance input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0; /* Rimuove margini predefiniti */
}

.wpcf7-acceptance label {
    display: inline-block;
    line-height: 1.5;
    text-align: left; /* Mantiene il testo allineato a sinistra */
}

.form-footer-note {
    font-size: 0.9rem;
    color: #555;
    margin-top: 16px;
    text-align: center;
  }

/* ----------------------------------------------
   ACCORDION  <!-- BLOCCO 3 ACCORDION -->
---------------------------------------------- */

 .accordion-section {
  max-width: 1200px;
  margin: 50px auto;
  background-color: #f1f0ec;
  border-radius: 10px;
  padding: 30px;
}

.accordion-title {
  text-align: center;
  color: #52504e;
  margin-bottom: 10px;
  font-size: 1.8rem;
}

.accordion-subtitle {
  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-toggle {
  text-align: left;
  background-color: #dedacf;
  color: #52504e;
  border: none;
  border-radius: 5px;
  padding: 15px;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
  max-width: 700px;
}

.accordion-arrow {
  float: right;
}

.accordion-content {
  display: none;
  background-color: white;
  border: 1px solid #dedacf;
  border-radius: 5px;
  padding: 15px;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 10px;
  color: #52504e;
  width: 100%;
  max-width: 700px;
}


        /* 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;
        }

        .btn-turnstile-wrapper {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 24px;
            flex-wrap: wrap;
            margin-top: 20px;
          }
          
          .btn-turnstile-wrapper .cf-turnstile {
            flex-shrink: 0;
            transform: translateY(2px); /* lievissimo riallineamento */
          }
          
          .btn-turnstile-wrapper .btn {
            margin: 0; /* rimuove il top margin duplicato */
          }
          
        
          .btn-turnstile-wrapper .btn button:hover {
            background-color: #000;
            transform: scale(1.1);
          }



          
/* ----------------------------------------------
   RESPONSIVE DESIGN
---------------------------------------------- */

@media (max-width: 768px) {
    .testata-apertura {
      padding: 80px 15px;
      background-attachment: scroll;
      min-height: 300px; 
    }
  
    .testata-apertura .text-block {
      background: rgba(255,255,255,0.85); /* trasparenza per vedere lo sfondo sotto */
      padding: 20px;
      border-radius: 12px;
    }
  
    .testata-apertura h1 {
      font-size: 2rem;
    }
  
    .testata-apertura p {
      font-size: 0.9rem;
    }

    .blocco-tecnico {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0px;
    }

    .avatar-tecnico {
    margin-bottom: 0px;
    }

    .testo-tecnico p {
    font-size: 0.95rem;
    line-height: 1.4;
    text-align: center;
    }

    .avatar-e-titolo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    justify-content: center;
    margin-bottom: 12px;
    }
    
    .avatar-e-titolo h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.2;
    }
      
    /* --- Titoli e testi interni al form --- */
    .request-quote-title {
      font-size: 1.5em !important;
      line-height: 1.2 !important;
    }
  
    .description-text {
      font-size: 15px !important;
      line-height: 1.5 !important;
    }
  
    /* --- Campi form e layout --- */
    .contact-form-wrapper input,
    .contact-form-wrapper select,
    .contact-form-wrapper textarea {
      margin-bottom: 8px !important;
      height: 50px !important;
      line-height: normal;
      padding: 0 12px;
      font-size: 16px;
    }
  
    .form-container {
      padding: 20px;
      margin-top: 0;
    }

    .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;
    }
  }

  /* ----------------------------------------------
   SEO Intro Text Section
---------------------------------------------- */
.seo-intro-section {
    background-color: #f8f8f8;
    padding: 60px 20px 40px;
    text-align: center;
}

.seo-intro-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.seo-title {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #000;
    font-weight: bold;
}

.seo-text {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

  