#elementor-popup-modal-4774 .dialog-widget-content{animation-duration:1.2s;background-color:#FFFFFF;box-shadow:2px 8px 23px 3px rgba(0,0,0,0.2);}#elementor-popup-modal-4774{background-color:#00000080;justify-content:center;align-items:center;pointer-events:all;}#elementor-popup-modal-4774 .dialog-message{width:578px;height:567px;align-items:flex-start;}#elementor-popup-modal-4774 .dialog-close-button{display:flex;}#elementor-popup-modal-4774 .dialog-close-button i{color:#333333;}#elementor-popup-modal-4774 .dialog-close-button svg{fill:#333333;}@media(max-width:1024px){#elementor-popup-modal-4774 .dialog-message{width:75vw;height:75vh;}}@media(max-width:767px){.elementor-4774 .elementor-element.elementor-element-3396b49c{padding:0% 6% 0% 6%;}#elementor-popup-modal-4774 .dialog-message{width:100vw;height:100vh;}#elementor-popup-modal-4774{align-items:center;}}/* Start custom CSS for html, class: .elementor-element-dddc070 *//* popup/modal: permette scroll su mobile */
@media (max-width: 768px){
  .elementor-popup-modal .dialog-widget-content,
  .elementor-popup-modal .dialog-message{
    height: 90vh !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  /* evita che il contenuto esca lateralmente */
  .elementor-popup-modal .dialog-message{
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
  }
}
/* nasconde widget flottanti quando il popup è aperto */
.elementor-popup-modal ~ .wa__btn_popup,
.elementor-popup-modal ~ .ht_ctc_chat,
.elementor-popup-modal ~ #weglot_switcher,
.elementor-popup-modal #weglot_switcher{
  display:none !important;
}/* End custom CSS */
/* Start custom CSS for section, class: .elementor-element-3396b49c *//* 1) limita l’altezza del popup e abilita lo scroll interno */
.elementor-popup-modal .dialog-widget-content{
  max-height: 90vh;
  overflow: hidden; /* lo scroll lo facciamo dentro dialog-message */
}

.elementor-popup-modal .dialog-message{
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0; /* evita che il form “sbordi” */
}

/* 2) il form si adatta al popup (brevo mette max-width:540 inline) */
.elementor-popup-modal #sib-container{
  max-width: 100% !important;
  box-sizing: border-box;
}

/* 3) un po’ di respiro sui lati, soprattutto mobile */
.elementor-popup-modal #sib-form-container{
  padding: 16px;
  box-sizing: border-box;
}
/* popup brevo: non taglia sopra, si ancora in alto e scorre dentro */
.elementor-popup-modal.popup-brevo .dialog-widget-content{
  top: 5vh !important;
  transform: translateY(0) !important;
  max-height: 90vh !important;
  overflow: hidden !important;
}

.elementor-popup-modal.popup-brevo .dialog-message{
  max-height: 90vh !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

.elementor-popup-modal.popup-brevo #sib-container{
  max-width: 100% !important;
}/* End custom CSS */