/* Componenti del tema che sostituiscono funzioni prima svolte da Elementor */
.slx-lb{position:fixed;inset:0;z-index:100000;background:rgba(10,12,16,.92);display:flex;align-items:center;justify-content:center;padding:24px}
.slx-lb[hidden]{display:none}
.slx-lb img{max-width:min(1400px,92vw);max-height:86vh;width:auto;height:auto;box-shadow:0 20px 60px rgba(0,0,0,.5)}
.slx-lb button{position:absolute;background:rgba(255,255,255,.12);border:0;color:#fff;width:48px;height:48px;border-radius:50%;font-size:26px;line-height:48px;cursor:pointer;padding:0}
.slx-lb button:hover{background:rgba(255,255,255,.25)}
.slx-lb .slx-x{top:18px;right:18px}.slx-lb .slx-p{left:18px;top:50%;margin-top:-24px}.slx-lb .slx-n{right:18px;top:50%;margin-top:-24px}
.slx-hp{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;overflow:hidden!important}
/* Campo data nativo alto come gli altri campi (prima Elementor usava un calendario JS) */
.elementor-field-type-date input[type=date]::-webkit-datetime-edit-fields-wrapper{padding:0}.elementor-field-type-date input[type=date]::-webkit-datetime-edit{padding:0!important}.elementor-field-type-date input[type=date]::-webkit-calendar-picker-indicator{padding:0;height:1.2em;margin:0}
/* Animazioni d'ingresso (prima di Elementor) */
.elementor-invisible{visibility:hidden}
.animated{animation-duration:1.25s}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}.fadeIn{animation-name:fadeIn}
@keyframes fadeInUp{from{opacity:0;transform:translate3d(0,100%,0)}to{opacity:1;transform:none}}.fadeInUp{animation-name:fadeInUp}
@keyframes fadeInDown{from{opacity:0;transform:translate3d(0,-100%,0)}to{opacity:1;transform:none}}.fadeInDown{animation-name:fadeInDown}
@keyframes fadeInLeft{from{opacity:0;transform:translate3d(-100%,0,0)}to{opacity:1;transform:none}}.fadeInLeft{animation-name:fadeInLeft}
@keyframes fadeInRight{from{opacity:0;transform:translate3d(100%,0,0)}to{opacity:1;transform:none}}.fadeInRight{animation-name:fadeInRight}
@keyframes zoomIn{from{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}.zoomIn{animation-name:zoomIn}


/* M1 mobile: niente testi sotto i 12 px, contatti facili da toccare */
@media (max-width:767px){
  .sv-k{font-size:12.5px!important}
  .sc{font-size:12px!important}
  .small-meta{font-size:12px!important}
  a.telefono_contatti,a.email_contatti{display:inline-block;padding-block:10px}
}

/* M2 mobile: bottoni e didascalie almeno 12 px, sempre affiancati */
@media (max-width:767px){
  html body a.ap-b:not(#z1):not(#z2):not(#z3),html body a.sv-b:not(#z1):not(#z2):not(#z3),html body .btns a.btn:not(#z1):not(#z2):not(#z3){font-size:12px!important;letter-spacing:.1em!important;padding-left:12px!important;padding-right:12px!important;white-space:normal!important;text-align:center;line-height:1.25!important;min-height:44px}
  html body p.bg-t:not(#z1):not(#z2):not(#z3),html body a.nr-ap p:not(#z1):not(#z2):not(#z3){font-size:12.5px!important}
}

/* A capo: paragrafi senza parole orfane */
main p,.site-main p,#content p{text-wrap:pretty}
