/* Compatibilità con Divi: il design del sito deve vincere sugli stili di base del tema */
body.jel-divi{background:#0E0C0B;overflow-x:clip}
body.jel-divi #page-container{overflow:visible !important;padding-top:0 !important;margin-top:0 !important;background:#0E0C0B}
body.jel-divi #main-content,body.jel-divi #et-main-area,body.jel-divi .et-l--post{background:#0E0C0B !important}
body.jel-divi .et_pb_section.jel-sec{padding:0 !important;background-color:transparent !important}
body.jel-divi .et_pb_section.jel-sec .et_pb_fullwidth_code{padding:0 !important;margin:0 !important}
/* L'header resta in alto mentre si scorre */
body.jel-divi .et_pb_section.jel-sticky-head{position:sticky !important;top:0;z-index:50}
body.jel-divi.admin-bar .et_pb_section.jel-sticky-head{top:32px}
@media (max-width:782px){body.jel-divi.admin-bar .et_pb_section.jel-sticky-head{top:46px}}
body.jel-divi .et_pb_section.jel-sticky-head header{position:relative !important;top:auto !important}
body.jel-divi .et_pb_section.jel-popup-sec{position:static !important}

/* Reset tipografico dentro il design (Divi imposta colori, margini e dimensioni dei titoli) */
.jel-wrap{font-size:16px;-webkit-font-smoothing:antialiased}
.jel-wrap :is(h1,h2,h3,h4,h5,h6){color:inherit;font-family:inherit;font-size:revert;font-weight:revert;line-height:inherit;padding-bottom:0;letter-spacing:inherit}
.jel-wrap p{padding-bottom:0}
.jel-wrap a{color:inherit}
.jel-wrap ul,.jel-wrap ol{padding:0;list-style:none}
.jel-wrap li{list-style:none}
.jel-wrap input,.jel-wrap textarea,.jel-wrap select{font-family:inherit;border-radius:0;box-shadow:none}
.jel-wrap button{line-height:1.2}
.jel-wrap details summary::-webkit-details-marker{display:none}
.jel-wrap img{max-width:100%}

/* Popup «weekend sul lago»: sempre dentro lo schermo, scorrevole, piccolo su telefono */
[data-popup]{max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
body:has(.jel-if[data-if="showPopup"]:not([hidden])){overflow:hidden}
@media (max-width:700px){
  [data-popup]{max-width:330px !important;border-top:2px solid #D9C3A0 !important}
  [data-popup]>div:nth-of-type(1){display:none !important}
  [data-popup]>div:nth-of-type(2){padding:28px 20px 14px !important;gap:8px !important}
  [data-popup] h2{font-size:27px !important;padding-right:28px}
  [data-popup] p{font-size:13.5px !important;line-height:1.5}
  [data-popup] span{font-size:10px !important}
  [data-popup] label{font-size:10px !important}
  [data-popup] input{font-size:16px !important;padding:6px 0 !important}
  [data-popup] button[data-act="closePopup"]:not([aria-label]){padding:14px 16px !important}
  [data-popup]>button[aria-label]{top:4px !important;right:4px !important}
}
