/* Landing Ads e pagine legali: contenuto Elementor originale nel nuovo shell. Il vecchio tema (Quarty) non viene caricato:
   qui si ripristina solo il minimo per i suoi widget (banner, about-us) e si allineano contenitori, bottoni e campi al nuovo design. */
.im-legacy .legacy-main{min-height:60vh;overflow-x:clip;font-size:var(--fs-body)}
.im-legacy .legacy-main img{max-width:100%;height:auto}
.im-legacy .legacy-main a{color:var(--primary)}

/* Contenitori centrati (tranne il banner iniziale a tutta larghezza) */
.im-legacy .legacy-main .elementor-top-section>.elementor-container{width:min(100% - 2.5rem,var(--wrap));max-width:none;margin-inline:auto}
.im-legacy .legacy-main>.elementor>.elementor-top-section:first-child>.elementor-container{width:100%}
.im-legacy .legacy-title{padding-block:clamp(2rem,1.5rem + 3vw,4rem) 0}
.im-legacy .legacy-title h1{margin:0}

/* Banner Quarty */
.im-legacy .qrt-page-cover{position:relative;isolation:isolate;height:clamp(240px,30vw,420px);overflow:hidden;background:var(--deep)}
.im-legacy .qrt-page-cover>img,.im-legacy .qrt-page-cover img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
.im-legacy .qrt-page-cover::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(0deg,rgba(28,39,72,.8),rgba(28,39,72,.1) 60%)}
.im-legacy .qrt-about-info{position:absolute;left:0;right:0;bottom:0;padding:0 1.25rem 1.5rem}
.im-legacy .qrt-cover-info{width:min(100%,var(--wrap));margin-inline:auto}
.im-legacy .qrt-table{list-style:none;margin:0;padding:0}
.im-legacy .qrt-table h5,.im-legacy .qrt-white{margin:0;color:#fff;font:600 var(--fs-sm)/1.2 Montserrat,sans-serif;text-transform:uppercase;letter-spacing:.14em}
.im-legacy .qrt-p-0-40,.im-legacy .row{margin:0}
.im-legacy .col-lg-12{width:100%;padding:0}

/* Bottoni Elementor */
.im-legacy .elementor-button,.im-legacy .elementor-button-link{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:.75rem 1.6rem;border-radius:999px;background:var(--primary);color:#fff;font:600 1rem/1 Montserrat,sans-serif;text-decoration:none;border:2px solid var(--primary);transition:background .25s var(--ease),transform .25s var(--ease),box-shadow .25s var(--ease)}
.im-legacy .elementor-button:hover{background:var(--primary-d);color:#fff;transform:translateY(-2px);box-shadow:var(--shadow)}
.im-legacy .elementor-button .elementor-button-text{color:inherit}

/* Form Elementor */
.im-legacy .elementor-form .elementor-field-textual{min-height:52px;padding:.7rem 1rem;border:1.5px solid #b9c3cc;border-radius:12px;background:#fff;font:inherit;font-size:1rem;color:var(--ink);width:100%;transition:border-color .2s,box-shadow .2s}
.im-legacy .elementor-form textarea.elementor-field-textual{min-height:120px}
.im-legacy .elementor-form .elementor-field-textual:hover{border-color:var(--primary)}
.im-legacy .elementor-form .elementor-field-textual:focus{outline:0;border-color:var(--primary);box-shadow:0 0 0 4px rgba(60,85,137,.18)}
.im-legacy .elementor-form .elementor-field-label{font-weight:600;font-size:.95rem;margin-bottom:.4rem;display:block}
.im-legacy .elementor-form .elementor-field-type-acceptance label{font-weight:400;display:flex;gap:.7rem;align-items:flex-start}
.im-legacy .elementor-form input[type=checkbox]{width:22px;height:22px;accent-color:var(--primary)}
.im-legacy .elementor-form .elementor-button{width:100%}
.im-legacy .elementor-message-success{color:#14532d;background:#e6f4ea;padding:.8rem 1rem;border-radius:10px}
.im-legacy .elementor-message-danger{color:#7f1d1d;background:#fdecea;padding:.8rem 1rem;border-radius:10px}

/* Accordion (FAQ) */
.im-legacy .elementor-accordion .elementor-accordion-item{border:0;border-bottom:1px solid var(--line)}
.im-legacy .elementor-accordion .elementor-tab-title{padding:1.1rem .25rem;cursor:pointer}
.im-legacy .elementor-accordion .elementor-accordion-title{color:var(--primary);font:600 var(--fs-faq) Montserrat,sans-serif}
.im-legacy .elementor-accordion .elementor-tab-content{padding:0 .25rem 1.2rem;color:var(--muted)}
.im-legacy .elementor-accordion-icon svg{width:1em;height:1em}

/* Pagine legali: testo leggibile */
.im-legacy.page-id-3 .legacy-main,.im-legacy.page-id-3227 .legacy-main,.im-legacy.page-id-3240 .legacy-main,.im-legacy.page-id-3248 .legacy-main{line-height:1.7}

/* v3: colonne Elementor impilate su telefoni, checkbox privacy accanto al testo, tipografia coerente col nuovo sito */
@media (max-width:767px){
	.im-legacy .legacy-main .elementor-column{width:100%!important;flex:0 0 100%;max-width:100%}
	.im-legacy .legacy-main .elementor-widget-wrap{padding-inline:0}
}
.im-legacy .elementor-form .elementor-field-group.elementor-field-type-acceptance{display:flex;flex-wrap:nowrap!important;align-items:flex-start;gap:.7rem}
.im-legacy .elementor-form .elementor-field-type-acceptance .elementor-field-subgroup{order:1;flex:none;width:auto!important;margin-top:.15rem}
.im-legacy .elementor-form .elementor-field-type-acceptance .elementor-field-label{order:2;flex:1 1 0;width:auto!important;margin:0;font-weight:400}
.im-legacy .legacy-main{line-height:var(--lh-body)}
/* Bottoni Elementor: il colore dei link del contenuto non deve sovrascrivere il testo bianco */
.im-legacy .legacy-main a.elementor-button,.im-legacy .legacy-main a.elementor-button:hover,.im-legacy .legacy-main a.elementor-button .elementor-button-text{color:#fff}
