/* 1) Classe per bloccare lo scroll del body */
body.modal-open {
  overflow: hidden;
}

/* 2) Contenitore modal: permetti lo scroll verticale se il contenuto è troppo grande */
.cta-prenotazione-modal.open {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;                /* abilita lo scroll del container */
  -webkit-overflow-scrolling: touch; /* per un miglior scrolling su iOS */
}

/* 3) Contenuto del modal: vincola l'altezza e abilita lo scroll interno */
.cta-prenotazione-modal-content {
  background-color: #fff;
  padding: 50px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;    /* non oltre il 90% dell'altezza finestra */
  overflow-y: auto;    /* scroll interno */
  border-radius: 4px;
  position: relative;
}

/* Bottone */
.ctaPrenotazioneWidget > .cta-prenotazione-btn {
    color:#F32726!important;
    border: 2px solid #F32726 !important;
    background-color: transparent!important;
    padding: 18px 32px!important;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
.cta-prenotazione-btn:hover {
    background-color: #F32728;
    color: #E2E2E2;
    border-color: #F32728;
}

/* Modal container */
.cta-prenotazione-modal {
  display: none; /* Nascosto di default */
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

/* Classe per mostrare il modal con Flexbox per centrare il contenuto */
.cta-prenotazione-modal.open {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Contenuto del modal */
.cta-prenotazione-modal-content {
  background-color: #fff;
  padding: 50px;
  width: 90%;
  max-width: 800px;
  border-radius: 4px;
  position: relative;
}

/* Bottone di chiusura del modal */
.cta-prenotazione-close {
  position: absolute;
  top: 10px;
  right: 30px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

@media(max-width:480px) {
  .cta-prenotazione-modal-content {
    padding: 40px;
    width: 90%;
    max-width: 800px;
  }
  .cta-prenotazione-close {
  position: absolute;
  top: 5px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

}
