/* 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 immagini fuori schermo, testi minimo 12 px, target tattili */
@media (max-width:767px){
  .sl-media{width:100%!important;max-width:100%!important;min-width:0!important}
  .sl-media img{width:100%!important;height:auto;max-width:100%}
  .sl-eyebrow,.sli-eyebrow,.sli-link,.sli-badge,.sli-count,.sl-badge,.sl-fact .l,.tg{font-size:12px!important}
  .sl-link{display:inline-flex!important;align-items:center;min-height:44px}
  ul.sub li a{display:inline-block;padding-block:8px}
  a.telefono_contatti,a.email_contatti,a.telefono_contatti_affitti,a.email_contatti_affitti{display:inline-block;padding-block:10px}
}

/* M2 privacy: testo legale leggibile */
[id^="cph_corpo"],[id^="cph_corpo"] *{color:#4A4A4A!important}

/* A capo: paragrafi senza parole orfane */
main p,.site-main p,#content p{text-wrap:pretty}

/* Pagine legali (13/11): privacy e cookie policy nello stile del sito */
html body .sl-legal-hero:not(#z1):not(#z2):not(#z3){background:#122B3C;color:#fff;padding:clamp(130px,14vw,190px) 0 clamp(56px,6vw,90px);margin:0}
html body .sl-legal-hero:not(#z1):not(#z2):not(#z3) .sl-legal-in,html body .sl-legal:not(#z1):not(#z2):not(#z3) .sl-legal-in{max-width:1400px;margin:0 auto;padding:0 clamp(20px,4vw,48px)}
html body .sl-legal-hero:not(#z1):not(#z2):not(#z3) .sl-legal-k{margin:0 0 18px;font:500 12px/1.2 Roboto,sans-serif;letter-spacing:.24em;text-transform:uppercase;color:#D2C1B6}
html body .sl-legal-hero:not(#z1):not(#z2):not(#z3) h1{margin:0;font-family:"Libre Caslon Text",Georgia,serif;font-weight:400;font-size:clamp(40px,5vw,72px);line-height:1.05;color:#fff}
html body .sl-legal:not(#z1):not(#z2):not(#z3){background:#F9F3EF;color:#1B3C53;padding:clamp(56px,7vw,110px) 0;margin:0}
html body .sl-legal:not(#z1):not(#z2):not(#z3) .sl-legal-in > *{max-width:760px}
html body .sl-legal:not(#z1):not(#z2):not(#z3) p,html body .sl-legal:not(#z1):not(#z2):not(#z3) li,html body .sl-legal:not(#z1):not(#z2):not(#z3) td,html body .sl-legal:not(#z1):not(#z2):not(#z3) th{font:400 17px/1.7 Roboto,sans-serif;color:#1B3C53}
html body .sl-legal:not(#z1):not(#z2):not(#z3) p{margin:0 0 18px}
html body .sl-legal:not(#z1):not(#z2):not(#z3) ul{margin:0 0 22px;padding-left:22px}
html body .sl-legal:not(#z1):not(#z2):not(#z3) li{margin:0 0 10px}
html body .sl-legal:not(#z1):not(#z2):not(#z3) h2{margin:44px 0 16px;font-family:"Libre Caslon Text",Georgia,serif;font-weight:400;font-size:clamp(24px,2.4vw,32px);line-height:1.2;color:#122B3C}
html body .sl-legal:not(#z1):not(#z2):not(#z3) h3{margin:30px 0 12px;font-family:"Libre Caslon Text",Georgia,serif;font-weight:400;font-size:22px;color:#122B3C}
html body .sl-legal:not(#z1):not(#z2):not(#z3) a{color:#1B3C53;text-decoration:underline;text-underline-offset:3px}
html body .sl-legal:not(#z1):not(#z2):not(#z3) strong{font-weight:600;color:#122B3C}
html body .sl-legal:not(#z1):not(#z2):not(#z3) #cmplz-document,html body .sl-legal:not(#z1):not(#z2):not(#z3) .cmplz-document{max-width:760px;font-size:17px}
html body .sl-legal:not(#z1):not(#z2):not(#z3) .cmplz-document details,html body .sl-legal:not(#z1):not(#z2):not(#z3) .cmplz-document .cmplz-dropdown{background:#fff;border:1px solid #E6DAD2;margin:0 0 10px}
html body .ast-container:has(> .sl-legal-hero){max-width:none!important;padding:0!important;display:block!important}
html body .sl-legal-hero:not(#z1):not(#z2):not(#z3),html body .sl-legal:not(#z1):not(#z2):not(#z3){width:100%!important}
html body .sl-legal:not(#z1):not(#z2):not(#z3) .sl-legal-in > *,html body .sl-legal:not(#z1):not(#z2):not(#z3) #cmplz-document{margin-left:0!important;margin-right:0!important}
html body .sl-legal-hero:not(#z1):not(#z2):not(#z3),html body .sl-legal:not(#z1):not(#z2):not(#z3){display:block!important}
html body .sl-legal-hero:not(#z1):not(#z2):not(#z3) .sl-legal-in,html body .sl-legal:not(#z1):not(#z2):not(#z3) .sl-legal-in{width:100%!important;box-sizing:border-box!important}

/* QA 16/11: la barra legale del footer usa la stessa classe .sl-legal delle pagine privacy/cookie: qui torna scura e su una riga */
html body .sl-footer .sl-legal:not(#z1):not(#z2):not(#z3){background:transparent;color:rgba(200,211,220,.75);padding:28px 0 0;margin:64px 0 0;border-top:1px solid rgba(200,211,220,.16);display:flex!important;justify-content:space-between;align-items:center;gap:10px 24px;flex-wrap:wrap;font:400 12px/1.6 "Libre Caslon Text",Georgia,serif;letter-spacing:.02em;width:auto!important}
html body .sl-footer .sl-legal:not(#z1):not(#z2):not(#z3) span{color:inherit;font:inherit}
html body .sl-footer .sl-legal:not(#z1):not(#z2):not(#z3) a{color:#D2C1B6;text-decoration:underline;text-underline-offset:3px}
html body .sl-footer .sl-legal:not(#z1):not(#z2):not(#z3) a:hover{color:#fff}
@media (max-width:767px){html body .sl-footer .sl-legal:not(#z1):not(#z2):not(#z3){flex-direction:column;align-items:flex-start;margin-top:40px}}

/* QA 16/11: a capo più equilibrati nei titoli (niente parola sola sull ultima riga) */
html body h1,html body h2,html body h3,html body .sl-h1,html body .sl-h2,html body .elementor-heading-title,html body .elementor-post__title,html body .sli-h1,html body .sli-card-title{text-wrap:balance}
html body p,html body li{text-wrap:pretty}
/* QA: passi 01-02-03 su mobile tutti allineati (il bordo a sinistra è solo per le colonne desktop) */
@media (max-width:900px){html body .sl-steps2:not(.x) > li{border-left:0!important;padding-left:0!important}}
/* QA: link "Scopri lo chalet" della griglia su una riga anche su mobile */
@media (max-width:600px){html body .sl-c5 .sl-link{white-space:nowrap;letter-spacing:.1em;font-size:11px}}
/* QA: moduli, segnaposto leggibili, link privacy, reCAPTCHA intero */
html body .elementor-form .elementor-field-textual::placeholder{color:currentColor;opacity:.75}
html body .elementor-form .elementor-field-option label a{color:inherit;text-decoration:underline;text-underline-offset:3px}
html body .elementor-form .elementor-field-type-recaptcha_v3{width:100%!important;max-width:100%!important;flex:0 0 100%!important;overflow:visible!important}
html body .elementor-form .elementor-field-type-recaptcha_v3 .elementor-field{overflow:visible!important}
html body .elementor-form select.elementor-field-textual:invalid{opacity:.75}
/* QA: icone social del footer con area di tocco adeguata */
html body .sl-footer a[aria-label="Facebook"],html body .sl-footer a[aria-label="Instagram"]{display:inline-flex;align-items:center;justify-content:center;min-width:40px;min-height:40px}
/* QA: annunci immobili, testi piccoli portati ad almeno 12px */
html body [class*="sli-"] dt,html body .sli-badge,html body .sli-count,html body .sli-eyebrow,html body .sli-link,html body .sli-btn,html body .sli-tot,html body .sli-allph,html body .sli-form label,html body .sli-filters span,html body .sli-filters label{font-size:12px!important}

/* QA: indirizzi email dei contatti senza a capo a metà parola */
@media (min-width:768px){html body .sl-contacts a[href^="mailto:"]{font-size:14px!important;letter-spacing:0!important}}

/* QA 16/11: menu completo visibile anche sui portatili da 1260 a 1360 px (prima compariva solo l'hamburger) */
@media (min-width:1260px) and (max-width:1360px){
  html body .sl-nav>ul{display:flex!important;gap:14px!important}
  html body .sl-nav>ul>li>a{letter-spacing:.14em!important}
  html body .sl-burger{display:none!important}
  html body header .sl-nav>a.sl-btn,html body .sl-nav .sl-btn{padding-left:16px!important;padding-right:16px!important;letter-spacing:.12em!important;font-size:10.5px!important}
}

/* QA 16/11: titoli sopra i video (sezione sl-film) leggibili anche con cielo e neve chiari */
html body .sl-film:before{background:linear-gradient(0deg,rgba(18,43,60,.85) 0%,rgba(18,43,60,.55) 45%,rgba(18,43,60,.15) 80%,rgba(18,43,60,0) 100%)!important}
html body .sl-film .sl-h2{text-shadow:0 1px 2px rgba(10,25,36,.45),0 0 24px rgba(10,25,36,.45)}
/* QA: bottoni su due righe su schermi stretti, spaziatura lettere ridotta */
@media (max-width:420px){html body .sl-btn{letter-spacing:.14em!important;padding-left:14px!important;padding-right:14px!important}}

/* QA 16/11: annunci immobili con gli stessi titoli del resto del sito (Gloock, niente maiuscolo) */
html body .sli-h1,html body .sli-h2,html body .sli-single h2,html body .sli-sec h2,html body [class^="sli-"] > h2{font-family:var(--sl-serif,'Gloock',Georgia,serif)!important;text-transform:none!important;letter-spacing:0!important;font-weight:400!important}
html body .sli-h1{line-height:1.08!important}
@media (min-width:768px) and (max-width:1199px){html body .sl-contacts{grid-template-columns:minmax(0,1fr)!important}}
html body .sl-hcard .s{white-space:nowrap;font-size:9.5px!important;letter-spacing:.14em!important}
html body .sli-h1:not(#z1):not(#z2):not(#z3),html body .sli-h2:not(#z1):not(#z2):not(#z3),html body [class^="sli-"] > h2:not(#z1):not(#z2):not(#z3){font-family:"Gloock",Georgia,serif!important}

/* 16/11 go-live: avviso Complianz sui video YouTube e sulla mappa. Restava sopra l'intestazione fissa (z-index 98 contro 60)
   quando si scorre: ora sta sotto l'intestazione e ha lo stile dei bottoni del sito. */
.cmplz-blocked-content-container,.cmplz-placeholder-parent{isolation:isolate}
.cmplz-blocked-content-notice.cmplz-accept-category,.cmplz-blocked-content-notice{z-index:2!important;background:rgba(27,60,83,.88)!important;color:#fff!important;border:1px solid rgba(255,255,255,.35)!important;border-radius:0!important;padding:14px 22px!important;max-width:min(320px,86%)!important;font-size:14px!important;line-height:1.5!important;letter-spacing:.02em}
.cmplz-blocked-content-notice:hover{background:rgba(27,60,83,.97)!important}
