/* Blocca lo scroll del documento quando la modale è aperta */
.no-scroll {
  overflow: hidden;      /* desktop + Android */
  height: 100vh;
}

/* iOS fix: evita rimbalzi e scroll di sfondo */
.no-scroll,
.no-scroll body {
  overscroll-behavior: none;
}

/* La modale resta scrollabile internamente (se serve) */
.modal-content {
  max-height: 85vh;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

/* Se vuoi evitare lo scroll orizzontale ovunque */
html, body { overflow-x: hidden; }
 
/*BLOCCO 1 CSS  */
.contatti-template .hero {
  display: flex;
  flex-direction: column;
  width: 100%;
  background-color: #eae7dc;
  padding: 40px 20px;
}

.contatti-template .text-section {
  text-align: center;
  max-width: 1200px;
  margin: auto;
}

.contatti-template .mobile-title {
  font-size: 2.4em;
  color: #000;
  margin-bottom: 20px;
}

.contatti-template .mobile-description {
  font-size: 1.2em;
  color: #000;
  margin-bottom: 30px;
}

.contatti-template .methods-grid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.contatti-template .method {
  flex: 1;
  text-align: center;
  background-color: #fff;
  padding: 35px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contatti-template .method img {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
}

.contatti-template .method h3 {
  color: #000;
  font-size: 1em;
  margin: 0;
}

.contatti-template .method a {
  font-size: 1em;
  color: #00aaad;
  text-decoration: none;
}

.contatti-template .mobile-call-to-action {
  color: #000;
  font-size: 1.1em;
  margin-top: 30px;
}

.contatti-template .appointment-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}

.contatti-template .appointment-buttons button {
  padding: 15px 30px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  text-transform: uppercase;
  border: none;
  transition: background 0.3s ease;
}

#prenotaChiamataBtn {
  background-color: #332619;
  color: #fff;
}

#fissaAppuntamentoBtn {
  background-color: #135d5e;
  color: #fff;
}

@media only screen and (max-width: 768px) {
  .contatti-template .methods-grid {
    flex-direction: column;
    gap: 20px;
  }

  .contatti-template .mobile-title {
    font-size: 25px;
  }

  .contatti-template .mobile-description,
  .contatti-template .mobile-call-to-action {
    font-size: 18px;
  }
}

/*<!-- Modal Prenota una Chiamata -->*/
.modal {
  display: none;
  z-index: 9999;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.modal-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-content h3 {
  color: #000;
  margin-bottom: 15px;
}

.modal-content label {
  color: #000;
  display: block;
  margin-top: 10px;
  margin-bottom: 5px;
}

.modal-content input,
.modal-content select {
  width: 100%;
  margin-bottom: 10px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.modal-content button {
  width: 100%;
  background-color: #dedacf;
  color: #000;
  border: none;
  padding: 10px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.modal-content button:hover {
  background-color: #c8c4b7;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 20px;
  cursor: pointer;
}

/*<!-- Modal Fissa un'appuntamento -->*/
/* MODALE GENERICO */
.modal {
  display: none; /* viene mostrato via JS */
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

@media only screen and (max-width: 768px) {
  .appointment-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 10px;
  }


}


/* CONTENUTO MODALE */
.modal-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff;
  padding: 25px;
  border-radius: 10px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  z-index: 10000;
}

.modal-content h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #000;
  text-align: center;
}

/* CHIUSURA MODALE */
.close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 22px;
  color: #333;
  cursor: pointer;
}

/* CAMPI DEL FORM */
.modal-content label {
  display: block;
  margin-bottom: 5px;
  color: #000;
  font-weight: 600;
}

.modal-content input,
.modal-content select {
  width: 100%;
  margin-bottom: 15px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  background-color: #f9f9f9;
  color: #333;
}

/* BOTTONE DI INVIO */
.button-dark {
  width: 100%;
  background-color: #000;
  color: #fff;
  border: none;
  padding: 12px;
  font-size: 15px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.button-dark:hover {
  background-color: #222;
}

.modal-overlay {
    z-index: 1000;
    position: fixed;
}

.modal-content {
    z-index: 1100;
    position: fixed;
}

.close-modal {
    z-index: 1150;
    position: absolute;
}


    .social-links {
        display: flex;
        justify-content: center;
        gap: 30px;
    }

    .social-icon div {
        width: 60px;
        height: 60px;
        background-color: #fff;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .social-icon div:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
    }

    .social-icon img {
        width: 40px;
        height: 40px;
    }

    .mobile-title {
        font-size: 2.4em;
        color: #000;
        margin-bottom: 20px;
        padding: 0 5%;
    }

    .mobile-description {
        font-size: 1.2em;
        color: #000;
        margin-bottom: 30px;
        padding: 0 5%;
    }

    @media only screen and (max-width: 768px) {
    .social-links {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }

    .text-section .mobile-title {
        font-size: 25px !important;
    }

    .text-section .mobile-description {
        font-size: 16px;
    }

    .methods-grid {
        gap: 5px !important; /* Riduce lo spazio tra tutti i box nella griglia */
    }

    /* Riduce lo spazio rosso */
    .methods-grid .method:nth-child(1),
    .methods-grid .method:nth-child(2) {
        margin-bottom: 5px !important; /* Diminuisce il margine sotto i due box superiori */
    }

    
}

@media only screen and (max-width: 768px) {
    .mobile-description {
        font-size: 18px; /* Aumenta la dimensione del testo di 2px (da 16px a 18px) */
        
    }
}

@media only screen and (max-width: 768px) {
    .mobile-call-to-action {
        font-size: 18px; /* Incrementa la dimensione del testo di 2px */
        font-weight: bold; /* Rende il testo bold */
    }
}

@media only screen and (min-width: 769px) {
    .mobile-call-to-action {
        margin-top: 30px; /* Aggiunge più spazio sopra */
        margin-bottom: 30px; /* Aggiunge più spazio sotto */
    }
}

/* CONTACT FORM  BLOCCO 2 */ 

/* Stili generali */
.form-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px;
    background: #f8f8f8;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    margin-top: 40px;
}

/* Stile dell'intestazione */
.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h2 {
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 10px;
}

.form-header p {
    font-size: 16px;
    color: #555;
    line-height: 1.4;
}

.form-icon {
    font-size: 35px;
    color: #333;
    margin-bottom: 15px;
}

/* Layout del form */
.form-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 15px;
}

.form-column {
    flex: 1;
    min-width: 300px;
}

.form-column-full {
    width: 100%;
}
.field-100 {
    width: 100%;
    display: block;
}


.form-column-full textarea {
    width: 100%;
    height: 120px; /* Puoi regolare l'altezza se necessario */
}

/* Centratura della sezione Privacy */
.form-row1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 15px; /* Aggiunge spazio tra la privacy e il bottone */
}

/* Assicura che il testo dell'accettazione sia centrato */
.form-column-full1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Allinea la checkbox con il testo */
.privacy-label {
    display: flex;
    align-items: center;
    gap: 8px; /* Spazio tra checkbox e testo */
}



/* 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: #fff !important;
    outline: none;
    font-family: Arial, sans-serif;
}

/* Miglioramenti per il placeholder */
input::placeholder, textarea::placeholder {
    color: #aaa;
  
}

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;
    width: 100%;
    margin-top: 20px;
}

.btn button {
    background-color: #333;
    color: white;
    padding: 14px 50px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
}

.btn button:hover {
    background-color: #000;
    transform: scale(1.05);
}

/* Responsività */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    .form-column {
        width: 100%;
    }
    .form-container {
        padding: 20px;
    }
}
 

@media only screen and (max-width: 768px) {
  .methods-grid {
    display: flex;
    flex-direction: column;
    gap: 15px !important;
    padding: 0 10px;
  }

  .methods-grid .method {
    margin: 0 !important;
    padding: 25px 15px;
  }

  .method h3 {
    font-size: 1em;
    margin-bottom: 5px;
  }

  .method a {
    font-size: 0.95em;
  }
}



/*BLOCCO 3 */ 
.social-links {
        display: flex;
        justify-content: center;
        gap: 30px;
    }

    .social-icon div {
        width: 60px;
        height: 60px;
        background-color: #fff;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .social-icon div:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
    }

    .social-icon img {
        width: 40px;
        height: 40px;
    }

    .mobile-title {
        font-size: 2.4em;
        color: #ffffff;
        margin-bottom: 20px;
        padding: 0 5%;
    }

    .mobile-description {
        font-size: 1.2em;
        color: #e0e0e0;
        margin-bottom: 30px;
        padding: 0 5%;
    }




    @media (max-width: 768px) {
    .mobile-title {
        font-size: 25px !important; /* Ripristina il titolo a 25px su mobile */
    }

    .mobile-description {
        font-size: 17px; /* Mantiene la dimensione descrizione a 17px */
    }

    .social-links {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }




    }

    
@media only screen and (max-width: 768px) {
  .contatti-template .methods-grid {
    flex-direction: row;
    gap: 15px;
    padding: 0 20px;
  }

  .contatti-template .method {
    margin: 0 !important;
    padding: 25px 15px;
  }

  .method h3 {
    font-size: 1em;
    margin-bottom: 5px;
  }

  .method a {
    font-size: 0.95em;
  }

  .appointment-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 20px;
  }

  .appointment-buttons button {
    width: 100%;
    padding: 14px 10px;
    font-size: 15px;
    text-align: center;
  }

  .mobile-title {
    font-size: 25px !important;
    padding: 0 5%;
  }

  .mobile-description {
    font-size: 17px;
    padding: 0 5%;
  }

  .mobile-call-to-action {
    font-size: 18px;
    font-weight: bold;
  }

  .form-row {
    flex-direction: column;
    gap: 15px;
  }

  .form-column {
    width: 100%;
  }

  .form-container {
    padding: 35px;
  }

  .contatti-template{
    padding: 0px;
  }
  .social-links {
    flex-direction: row;
    justify-content: center;
    gap: 20px;
  }
}



/* ====== RESET MODALE ====== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 99998;
}

.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border-radius: 10px;
    width: calc(100% - 26px);
    max-width: 420px;
    max-height: 90vh;
    overflow: auto;
    padding: 22px 20px;
    box-shadow: 0 12px 30px rgba(0,0,0,.20);
    z-index: 99999;
}

.close-modal {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 22px;
    cursor: pointer;
    color: #333;
}

/* ====== TITOLI MODALE ====== */
#prenotaChiamataModal h3,
#fissaAppuntamentoModal h3 {
    margin: 0 0 14px;
    font-size: 20px;
    font-weight: 700;
    color: #135D5E;
}

/* ====== CF7 stile uniforme ====== */
.cf7-modal {
    display: grid;
    gap: 14px;
    font-size: 15px;
}

.cf7-modal p {
    margin: 0;
    display: grid;
    gap: 6px;
}

.cf7-modal input[type="text"],
.cf7-modal input[type="email"],
.cf7-modal input[type="tel"],
.cf7-modal .datepicker,
.cf7-modal select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #D7D7D7;
    border-radius: 8px;
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease;
}

/* Focus */
.cf7-modal input:focus,
.cf7-modal select:focus {
    border-color: #135D5E;
    box-shadow: 0 0 0 3px rgba(19,93,94,.25);
}

/* Checkbox privacy */
.cf7-modal .wpcf7-acceptance,
.cf7-modal .wpcf7-acceptance .wpcf7-list-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.cf7-modal input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 3px;
}

/* ====== BOTTONE INVIO ====== */
.cf7-modal input[type="submit"] {
    background: #135D5E !important;
    color: #fff;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: background .25s ease, transform .08s ease;
}

.cf7-modal input[type="submit"]:hover {
    background: #0E4A4A !important;
}

.cf7-modal input[type="submit"]:active {
    transform: scale(.98);
}

/* Messaggi CF7 */
.cf7-modal .wpcf7-not-valid-tip {
    font-size: 12px;
    color: #C62828;
}

.cf7-modal .wpcf7-response-output {
    border-radius: 8px !important;
    padding: 12px 14px !important;
    margin-top: 10px !important;
}

.cf7-modal .wpcf7-mail-sent-ok {
    background: #E8F5E9;
    color: #135D5E;
    border-color: #135D5E !important;
}

.cf7-modal .wpcf7-validation-errors {
    background: #FFEBEE;
    color: #C62828;
}

/* ====== BOTTONI HOME (Prenota - Fissa) ====== */
#prenotaChiamataBtn {
    background: #332619;
    padding: 14px 22px;
    border-radius: 8px;
    color: #fff;
    font-weight: 700;
    transition: background .25s ease;
}

#prenotaChiamataBtn:hover {
    background: #000;
}

#fissaAppuntamentoBtn {
    background: #135D5E;
    padding: 14px 22px;
    border-radius: 8px;
    color: #fff;
    font-weight: 700;
    transition: background .25s ease;
}

#fissaAppuntamentoBtn:hover {
    background: #0E4A4A;
}

/* ====== BOX CONTATTI ====== */
.methods-grid .method {
    border-radius: 14px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.12);
}


.methods-grid a {
    color: #135D5E !important;
    font-weight: 600;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
    .modal-content {
        width: calc(100% - 20px);
        padding: 20px;
    }

    .methods-grid {
        gap: 18px !important;
    }

    .methods-grid .method {
        padding: 22px 16px !important;
    }
}
