.elementor-kit-308{--e-global-color-primary:#6EC1E4;--e-global-color-secondary:#54595F;--e-global-color-text:#333333;--e-global-color-accent:#61CE70;--e-global-color-5806ad4:#F7F9FC;--e-global-color-4cbe0c0:#DDE3EA;--e-global-typography-primary-font-family:"Poppins";--e-global-typography-primary-font-size:38px;--e-global-typography-primary-font-weight:700;--e-global-typography-primary-line-height:1.3px;--e-global-typography-primary-letter-spacing:0.2px;--e-global-typography-secondary-font-family:"Poppins";--e-global-typography-secondary-font-size:28px;--e-global-typography-secondary-font-weight:600;--e-global-typography-secondary-line-height:1.4px;--e-global-typography-secondary-letter-spacing:0.2px;--e-global-typography-text-font-family:"Poppins";--e-global-typography-text-font-size:17px;--e-global-typography-text-font-weight:400;--e-global-typography-text-line-height:1.6px;--e-global-typography-text-letter-spacing:0.1px;--e-global-typography-accent-font-family:"Poppins";--e-global-typography-accent-font-size:16px;--e-global-typography-accent-font-weight:600;--e-global-typography-accent-line-height:1.4px;--e-global-typography-accent-letter-spacing:0.2px;color:#374151;font-family:"Poppins", Sans-serif;font-size:18px;font-weight:400;line-height:1.6px;letter-spacing:0px;}.elementor-kit-308 button,.elementor-kit-308 input[type="button"],.elementor-kit-308 input[type="submit"],.elementor-kit-308 .elementor-button{background-color:#6EC1E4;font-family:"Poppins", Sans-serif;font-size:16px;font-weight:600;color:#FFFFFF;border-style:none;border-radius:6px 6px 6px 6px;padding:14px 24px 14px 24px;}.elementor-kit-308 button:hover,.elementor-kit-308 button:focus,.elementor-kit-308 input[type="button"]:hover,.elementor-kit-308 input[type="button"]:focus,.elementor-kit-308 input[type="submit"]:hover,.elementor-kit-308 input[type="submit"]:focus,.elementor-kit-308 .elementor-button:hover,.elementor-kit-308 .elementor-button:focus{background-color:#3BA6CC;color:#333333;box-shadow:0px 0px 8px 0px rgba(0,0,0,0.5);border-radius:6px 6px 6px 6px;}.elementor-kit-308 e-page-transition{background-color:#FFBC7D;}.elementor-kit-308 h1{font-family:"Poppins", Sans-serif;font-weight:700;}.elementor-section.elementor-section-boxed > .elementor-container{max-width:1500px;}.e-con{--container-max-width:1500px;--container-default-padding-top:0px;--container-default-padding-right:0px;--container-default-padding-bottom:00px;--container-default-padding-left:0px;}.elementor-widget:not(:last-child){margin-block-end:0px;}.elementor-element{--widgets-spacing:0px 0px;--widgets-spacing-row:0px;--widgets-spacing-column:0px;}{}h1.entry-title{display:var(--page-title-display);}@media(max-width:1024px){.elementor-kit-308{font-size:17px;}.elementor-section.elementor-section-boxed > .elementor-container{max-width:1024px;}.e-con{--container-max-width:1024px;}}@media(max-width:767px){.elementor-kit-308{font-size:16px;line-height:1.6px;}.elementor-section.elementor-section-boxed > .elementor-container{max-width:767px;}.e-con{--container-max-width:767px;}}/* Start custom CSS *//* ========================================
   WILAI.AI – CSS GLOBALE DEFINITIVO
   Fix completo sovrapposizioni + line-height
   ======================================== */

/* 1) Prevenzione overflow orizzontale globale */
html, body {
  overflow-x: hidden;
  box-sizing: border-box;
}

/* 2) Box sizing coerente ovunque */
*, *::before, *::after {
  box-sizing: inherit;
}

/* ========================================
   W.I.L.A.I. v3 — VARIABILI GLOBALI
   Palette + Tipografia + Spaziatura + Legacy mapping
   (tenere questo blocco PRIMA di html/body)
   ======================================== */
:root{
  /* ---------- Tipografia (baseline) ---------- */
  --lh-body: 1.6;
  --lh-ui: 1.3;
  --lh-tight: 1.2;
  --lh-relaxed: 1.75;

  --fs-base: clamp(15px, 1.5vw, 17px);
  --fs-h1: clamp(28px, 4.2vw, 40px);
  --fs-h2: clamp(24px, 3.2vw, 32px);
  --fs-h3: clamp(20px, 2.4vw, 26px);

  /* ---------- Spaziatura ---------- */
  --wilai-gap-base: 24px;
  --wilai-gap-lg: 32px;

  /* ---------- Neutri strutturali ---------- */
  --bg:#FFFFFF;
  --bg-soft:#F8FAFC;
  --bg-alt:#EEF2F7;
  --ink:#0F172A;     /* testo primario */
  --text:#1E293B;    /* testo base */
  --muted:#475569;   /* testo secondario */
  --border:#E5E7EB;

  /* ---------- Brand (turchese) ---------- */
  --brand:#00B4C0;       /* CTA primarie */
  --brand-600:#007E8C;   /* hover/attivo */
  --brand-300:#8FE9F0;   /* highlight leggero */

  /* ---------- Progress (verde) ---------- */
  --progress:#10B981;       /* success/completato */
  --progress-600:#059669;   /* hover */
  --progress-bg:#D1FAE5;    /* sfondo soft */

  /* ---------- Accenti complementari ---------- */
  --violet:#7C3AED;       /* EDU / teorico */
  --violet-100:#EEF2FF;

  /* ---------- “Miele” caldo ---------- */
  --honey:#FACC15;        /* badge/presto disponibile */
  --honey-200:#FDE68A;    /* sfondo caldo soft */
  --amber:#F59E0B;        /* CTA secondarie / enfasi */

  /* ---------- Navy family (LAB CTA) ---------- */
  --navy-main:#0F172A;    /* testo molto scuro / base */
  --navy-soft:#274C77;    /* blu morbido (outline, testo) */
  --navy-light:#6096BA;   /* blu chiaro (fill primario) */

  /* ---------- Stati ---------- */
  --error:#E11D48;
  --warning:#F59E0B;
  --info:#38BDF8;

  /* ---------- DOT step funnel ---------- */
  --step-current:#38BDF8;   /* azzurro (attuale) */
  --step-available:#10B981; /* verde (disponibile) */
  --step-locked-bg:#E2E8F0; /* grigio (in arrivo) */
  --step-locked-ink:#94A3B8;

  /* ---------- Gradient tokens ---------- */
  --grad-azure-flow: linear-gradient(135deg,#8FE9F0 0%,#00B4C0 100%);
  --grad-mint-rise:  linear-gradient(135deg,#D1FAE5 0%,#10B981 100%);
  --grad-deep-insight: linear-gradient(135deg,#EEF2FF 0%,#7C3AED 100%);
  --grad-copper-glow:  linear-gradient(135deg,#FFF7ED 0%,#FDE68A 55%,#F59E0B 100%);

  /* ---------- Rounding & shadow ---------- */
  --radius:14px;
  --radius-sm:10px;
  --shadow-lg:0 10px 30px rgba(2,132,199,.12);

  /* ---------- Legacy mapping (compatibilità) ---------- */
  --wilai-primary:   var(--brand);
  --wilai-primary-d: var(--brand-600);
  --wilai-link:      var(--brand-600);
  --wilai-accent-text:#7C5400; /* micro-highlight caldo, NON per body text */
  --wilai-text:      var(--ink);
  --wilai-body:      var(--text);
  --wilai-bg:        var(--bg);
  --wilai-bg-soft:   var(--bg-soft);
  --wilai-focus:     #0A66FF;  /* focus ring AA */
}

/* ========================================
   WFX COMPONENTS (namespace separato)
   ======================================== */
:root{ 
  --wfx-surface: #0f1b2d; 
  --wfx-text: #e6f1ff; 
  --wfx-muted: #93a4bd; 
  --wfx-accent: #00b4c0; 
  --wfx-radius: 16px; 
  --wfx-shadow: 0 8px 24px rgba(0,0,0,0.35); 
}

/* Corpo testo – BASE NATURALE */
html { font-size: 100%; }
body{
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   FIX GLOBALE SOVRAPPOSIZIONI
   Margini minimi su tutti gli elementi testo
   ======================================== */
h1, h2, h3, h4, h5, h6{
  line-height: 1.25;
  margin-top: 1em;
  margin-bottom: 0.6em;
}
h1{ font-size: var(--fs-h1); margin-top: 0.8em; }
h2{ font-size: var(--fs-h2); margin-top: 0.9em; }
h3{ font-size: var(--fs-h3); margin-top: 1em; }

p{
  line-height: 1.65;
  margin-top: 0;
  margin-bottom: 1.2em;
}
ul, ol{
  line-height: 1.6;
  margin-top: 0.5em;
  margin-bottom: 1.2em;
  padding-left: 1.5em;
}
li{ margin-bottom: 0.5em; }

blockquote{
  line-height: 1.7;
  margin: 1.5em 0;
  padding-left: 1.5em;
  border-left: 4px solid rgba(0,0,0,0.1);
}

/* UI elements */
button, .button, input, select, textarea, label, .menu a{ line-height: 1.3; }

/* ========================================
   ELEMENTOR: Correzioni specifiche
   ======================================== */
body .elementor-row, 
body .elementor-column, 
body .elementor-widget-wrap{ line-height: inherit; }

body .elementor-widget-text-editor p,
body .elementor-text-editor p{ margin-bottom: 1.2em; }

body .elementor-widget-text-editor h1,
body .elementor-widget-text-editor h2,
body .elementor-widget-text-editor h3,
body .elementor-text-editor h1,
body .elementor-text-editor h2,
body .elementor-text-editor h3{
  margin-top: 1em;
  margin-bottom: 0.6em;
}

body .elementor-widget-text-editor ul,
body .elementor-widget-text-editor ol,
body .elementor-text-editor ul,
body .elementor-text-editor ol{ margin-bottom: 1.2em; }

/* Spazio tra widget Elementor consecutivi */
.elementor-widget:not(:last-child){
  margin-bottom: clamp(16px, 3vw, 32px);
}

/* ========================================
   FIX CARD E PANEL (elementi densi)
   ======================================== */
.card, .panel, .feature{ padding: clamp(24px, 4vw, 40px); }

.card p, .panel p, .feature p{ 
  line-height: 1.7;
  margin-bottom: 1em;
}

.card h1, .card h2, .card h3,
.panel h1, .panel h2, .panel h3,
.feature h1, .feature h2, .feature h3{
  margin-top: 0.8em;
  margin-bottom: 0.6em;
}

/* Primo elemento senza margine top */
.card > *:first-child,
.panel > *:first-child,
.feature > *:first-child{ margin-top: 0; }

/* Helper per testi minuti */
small, .text-small{ 
  line-height: 1.4;
  display: inline-block;
  margin-bottom: 0.5em;
}

/* ========================================
   UTILITY LINE-HEIGHT (opt-in manuale)
   ======================================== */
.lh-tight{ line-height: 1.2; }
.lh-body{ line-height: 1.65; }
.lh-ui{ line-height: 1.3; }
.lh-relaxed{ line-height: 1.75; }

/* 3) Media responsivi */
img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 4) Contenitori Elementor */
.elementor, .elementor-section, .elementor-container, .elementor-widget-wrap {
  overflow-x: hidden;
}

/* 5) Evita 100vw sulle sezioni */
.elementor-section[style*="100vw"],
.elementor-container[style*="100vw"] { width: 100% !important; }

/* 6) Header sticky Elementor */
.elementor-location-header .elementor-sticky--active{ transform: translateZ(0); }

/* 7) Slider/carousel */
.swiper, .elementor-swiper, .elementor-slides { overflow: clip; }

/* DOT funnel (se non già presenti altrove) */
.dot.active    { background:var(--step-current);  color:#fff; border-color:transparent; }
.dot.available { background:var(--step-available);color:#fff; border-color:transparent; }
.dot           { background:var(--step-locked-bg);color:var(--step-locked-ink); border:1px solid var(--border); }

/* ========================================
   FIX CRITICO: Reset properties problematiche
   Solo per contenitori di testo WILAI
   ======================================== */
.wilai-slide,
.grid-50-eq .pane-text{
  writing-mode: horizontal-tb;
  text-orientation: mixed;
}

/* Reset per elementi di testo dentro i contenitori WILAI */
.wilai-slide .title,
.wilai-slide .lead,
.wilai-slide .body,
.wilai-slide .kicker,
.wilai-slide p,
.wilai-slide h1, .wilai-slide h2, .wilai-slide h3,
.grid-50-eq .pane-text .title,
.grid-50-eq .pane-text .lead,
.grid-50-eq .pane-text .body,
.grid-50-eq .pane-text .kicker,
.grid-50-eq .pane-text p,
.grid-50-eq .pane-text h1,
.grid-50-eq .pane-text h2{
  transform: none;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  display: block;
  width: 100%;
  max-width: 100%;
}

/* ========================================
   SLIDE BIANCHE (base)
   ======================================== */
.wilai-slide{
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  padding: clamp(48px, 8vh, 80px) 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--wilai-gap-base);
  overflow-x: hidden;
  min-width: 0;
}

/* Griglia 50/50 base */
.wilai-slide .grid-50{
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--wilai-gap-lg);
  min-width: 0;
}

/* ========================================
   TIPOGRAFIA SLIDE – Specifiche WILAI
   ======================================== */
.wilai-slide .kicker{
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--wilai-link);
  line-height: 1.4;
  margin: 0 0 20px 0;
}

.wilai-slide .title{
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 28px 0;
  color: var(--wilai-text);
}

.wilai-slide .lead{
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 500;
  line-height: 1.65;
  margin: 0 0 24px 0;
  color: var(--wilai-body);
  opacity: .9;
}

.wilai-slide .body{
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 0 20px 0;
  color: var(--wilai-body);
  max-width: 70ch;
}

.wilai-slide p{
  line-height: 1.7;
  margin-bottom: 20px;
}

.wilai-slide h1, .wilai-slide h2, .wilai-slide h3{
  line-height: 1.3;
  margin-top: 1em;
  margin-bottom: 0.7em;
}

/* Primo elemento senza margine top */
.wilai-slide > *:first-child,
.wilai-slide .grid-50 > *:first-child{ margin-top: 0; }

/* Immagini nelle slide */
.wilai-slide img{
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px 0;
}

/* ========================================
   TEMI SLIDE
   ======================================== */
.wilai-slide.theme-a{ background: var(--wilai-bg); color: var(--wilai-body); }
.wilai-slide.theme-b{ background: var(--wilai-bg-soft); color: var(--wilai-body); }
.wilai-slide.theme-invert{
  background: #0C1A2A;
  color: #EAF2FF;
}
.wilai-slide.theme-invert .title{ color: #FFFFFF; }
.wilai-slide.theme-invert .lead{ color: #EAF2FF; opacity: .95; }

.wilai-slide.bg-white{ background: #FFFFFF; }
.wilai-slide.bg-soft{ background: #F9FBFC; }
.wilai-slide.bg-ink{ background: #0C1A2A; color: #EAF2FF; }

/* Accenti testuali */
.wilai-slide .accent{ color: var(--wilai-link); font-weight: 700; }
.wilai-slide .accent-strong{ color: var(--wilai-accent-text); font-weight: 800; }

/* ========================================
   BOTTONI PILL GLOBALI
   ======================================== */
.wilai-btn{
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  border: 0;
  background: var(--wilai-primary);
  color: #fff;
  font-weight: 700;
  font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1rem);
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.08s ease;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
  margin-top: 8px;
}
.wilai-btn:hover{ background: var(--wilai-primary-d); }
.wilai-btn:focus-visible{ outline: 3px solid var(--wilai-focus); outline-offset: 3px; }

.wilai-btn.is-sm{ padding: 0.6rem 1rem; font-size: clamp(0.9rem, 0.85rem + 0.15vw, 0.95rem); }
.wilai-btn.is-lg{ padding: 0.95rem 1.4rem; font-size: clamp(1rem, 0.95rem + 0.25vw, 1.1rem); }

.wilai-btn.is-ghost{
  background: transparent;
  color: var(--wilai-link);
  box-shadow: inset 0 0 0 2px var(--wilai-link);
}
.wilai-btn.is-light{
  background: var(--wilai-bg-soft);
  color: var(--wilai-link);
  box-shadow: inset 0 0 0 2px var(--wilai-link);
}
.wilai-btn.is-dark{ background: #ffffff; color: #0C1A2A; }

.wilai-slide.theme-invert .wilai-btn:not(.is-dark){
  background: #12b3c0;
  color: #00121f;
}

.wilai-btn.is-disabled,
.wilai-btn[aria-disabled="true"]{
  opacity: 0.55;
  pointer-events: none;
  cursor: not-allowed;
}
.wilai-btn.stack-mobile{ width: 100%; justify-content: center; }

/* ========================================
   Varianti palette bottoni – WILAI 2025
   (da usare INSIEME a .wilai-btn)
   ======================================== */

/* Primary 2: tono miele/ambra, per CTA calde */
.wilai-btn.btn-primary-2{
  background: var(--honey);
  color: #111827;
}
.wilai-btn.btn-primary-2:hover{
  background: var(--amber);
  color: #0f172a;
}

/* Navy primary: stile “Entra nel LAB” (fill blu morbido) */
.wilai-btn.btn-navy-primary{
  background: var(--navy-light); /* #6096BA */
  color: #0f1d2a;
  border: 1px solid rgba(39,76,119,.10);
  box-shadow: 0 6px 18px rgba(96,150,186,.22);
}
.wilai-btn.btn-navy-primary:hover{
  background: var(--navy-light);
  box-shadow: 0 10px 24px rgba(96,150,186,.28);
  transform: translateY(-1px);
}

/* Navy ghost: stile “Torna alla home” (outline bianco/blu) */
.wilai-btn.btn-navy-ghost{
  background: #ffffff;
  color: var(--navy-soft); /* #274C77 */
  border: 1px solid rgba(39,76,119,.18);
}
.wilai-btn.btn-navy-ghost:hover{
  border-color: rgba(39,76,119,.28);
  transform: translateY(-1px);
}

/* ========================================
   CLUSTER LAYOUT
   ======================================== */
.cluster{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
}

/* ========================================
   GRIGLIA EQUALIZZATA 50/50
   ======================================== */
.grid-50-eq {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--wilai-gap-lg);
  align-items: stretch;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  min-width: 0;
}
@media (min-width: 900px){ 
  .grid-50-eq { grid-template-columns: 1fr 1fr; gap: 40px; } 
}

/* ========================================
   PANNELLI
   ======================================== */
.pane {
  background: var(--wilai-bg);
  color: var(--wilai-body);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.pane-media { 
  position: relative; 
  overflow: hidden; 
  min-height: 400px;
  flex-shrink: 0;
}
.pane-media::before { content: ""; display: block; aspect-ratio: 4 / 3; }
.pane-media > .media-cover {
  position: absolute; inset: 0;
  background: #0f1b2d center/cover no-repeat;
  border-radius: inherit;
}

/* ========================================
   PANNELLO TESTO
   ======================================== */
.grid-50-eq .pane-text{
  padding: clamp(48px, 6vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  min-width: 0;
}

.grid-50-eq .pane-text .kicker{
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--wilai-link);
  line-height: 1.4;
  margin: 0 0 20px 0;
}
.grid-50-eq .pane-text .title{
  font-size: clamp(32px, 3.6vw, 48px);
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 28px 0;
  color: var(--wilai-text);
}
.grid-50-eq .pane-text .lead{
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 500;
  line-height: 1.65;
  margin: 0 0 24px 0;
  color: var(--wilai-body);
  opacity: .92;
}
.grid-50-eq .pane-text .body{
  font-size: 1.06rem;
  line-height: 1.7;
  max-width: 68ch;
  margin: 0 0 24px 0;
  color: var(--wilai-body);
}
.grid-50-eq .pane-text p{ line-height: 1.7; margin-bottom: 20px; }
.grid-50-eq .pane-text h1,
.grid-50-eq .pane-text h2{
  line-height: 1.3;
  margin-top: 1em;
  margin-bottom: 0.7em;
}

/* Primo/ultimo elemento */
.grid-50-eq .pane-text > *:first-child{ margin-top: 0; }
.grid-50-eq .pane-text > *:last-child{ margin-bottom: 0; }

/* ========================================
   SEZIONI FULL VIEWPORT
   ======================================== */
.section-full { 
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: grid; 
  place-items: center;
  padding: clamp(48px, 8vh, 80px) 24px;
  min-width: 0;
}

.container{
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  min-width: 0;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 899.98px){ 
  .order-media-first { order: -1; }
  .pane-media{ min-height: 300px; }
  .grid-50-eq .pane-text{ padding: clamp(40px, 7vw, 56px); }
  .wilai-slide{ padding: clamp(40px, 6vh, 60px) 20px; }
}
@media (max-width: 1024px){
  .wilai-slide .grid-50{
    grid-template-columns: 1fr;
    gap: var(--wilai-gap-base);
  }
}

/* ========================================
   COVER TEMPLATE
   ======================================== */
.wilai-slide .grid-50.is-cover{ align-items: stretch; }
.wilai-slide .grid-50.is-cover .media{ height: 100%; }
.wilai-slide .grid-50.is-cover .media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
@media (max-width:1024px){
  .wilai-slide .grid-50.is-cover .media{ max-height: 40vh; }
}

/* ========================================
   UTILITY SPACING
   ======================================== */
.wilai-slide .sp16{ height: 16px; display: block; } 
.wilai-slide .sp24{ height: 24px; display: block; } 
.wilai-slide .sp32{ height: 32px; display: block; }
.wilai-slide .sp40{ height: 40px; display: block; }

/* ========================================
   FIX LINK E ELEMENTI INLINE
   ======================================== */
a{
  display:inline;
  line-height: inherit;
  text-decoration: underline;
  text-underline-offset: .15em;
  text-decoration-thickness: .08em;
  padding: 0; /* niente padding che alzi la line box */
}

/* Link dentro paragrafi */
p a, li a, .banner a{ line-height: inherit; vertical-align: baseline; }
/* Emoji e icone – previene collasso */
h1, h2, h3, h4, h5, h6{ display: block; overflow: visible; }
/* Span e tooltip dentro heading */
h1 span, h2 span, h3 span{ display: inline; line-height: inherit; }

/* Banner e alert con margini corretti */
.banner, .alert, .highlight{
  display: block;
  margin: 24px 0;
  padding: 16px 20px;
  line-height: 1.6;
  clear: both;
}
.banner p, .alert p, .highlight p{ margin-bottom: 8px; }
/* manteniamo inline-block qui per spacing verticale controllato */
.banner a{ display: inline-block; margin-top: 8px; line-height: 1.5; padding: 4px 0; }

/* BR forzato per evitare collasso inline */
br{ display: block; content: ""; margin-top: 0.5em; }

/* ========================================
   ACCESSIBILITY
   ======================================== */
@media (prefers-reduced-motion: reduce){
  .wilai-btn{ transition: none; }
}
*:focus-visible{ outline: 3px solid var(--wilai-focus); outline-offset: 2px; }

/* ========================================
   FIX COMING SOON PAGE SPECIFICI
   ======================================== */
.hero{ padding: 20px 0; }
.hero h1{
  line-height: 1.4 !important;
  margin-bottom: 24px !important;
  word-spacing: 0.05em;
}
.intro-hook{ line-height: 1.6 !important; margin-bottom: 16px !important; display: block; }

.container{ line-height: 1.6; }
.container h1{ margin-bottom: 20px; line-height: 1.35; }
.container h2{ margin-top: 32px; margin-bottom: 16px; line-height: 1.3; clear: both; }
.container p{ margin-bottom: 16px; line-height: 1.65; }

.section{ margin-bottom: 48px; clear: both; }
.section h2{ margin-bottom: 20px; }
.section p{ margin-bottom: 16px; }

.banner{ display: block; margin: 32px auto; padding: 20px 24px; line-height: 1.7; clear: both; }
.banner br{ display: block; margin-bottom: 8px; }

.highlight{ margin: 20px 0; padding: 20px; line-height: 1.7; }
.highlight strong{ display: block; line-height: 1.5; }

.cta{ display: inline-block; margin-top: 20px; margin-bottom: 8px; line-height: 1.3; padding: 14px 24px; }

footer{ margin-top: 48px; padding-top: 24px; line-height: 1.6; border-top: 1px solid rgba(0,0,0,0.1); }

/* Tooltip sicuro */
.tooltip{ display: inline; position: relative; line-height: inherit; }

/* Mobile fixes specifici */
@media (max-width: 480px){
  .hero h1{
    font-size: 1.6em !important;
    line-height: 1.45 !important;
    margin-bottom: 20px !important;
  }
  .banner{ padding: 16px; line-height: 1.65; }
  .banner br{ margin-bottom: 10px; }
  .section{ margin-bottom: 40px; }
  .container h2{ margin-top: 24px; margin-bottom: 16px; }
}

/* ========================================
   DEBUG UTILITY
   ======================================== */
.debug * { outline: 1px dashed rgba(0,180,192,0.35); }

/* ========================================
   WFX COMPONENTS
   ======================================== */
.wfx-container{ width: clamp(280px, 92vw, 1120px); margin-inline: auto; }
.wfx-card{ background: var(--wfx-surface); color: var(--wfx-text); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--wfx-radius); box-shadow: var(--wfx-shadow); }
.wfx-btn{ display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; font-weight: 700; border: 2px solid transparent; background: var(--wfx-accent); color: #001018; text-decoration: none; }
.wfx-btn--ghost{ background: transparent; color: var(--wfx-text); border-color: rgba(255,255,255,0.2); }
.wfx-tooltip{ position: relative; cursor: help; border-bottom: 1px dotted rgba(255,255,255,0.4); }
.wfx-tooltip [role=tooltip]{ position: absolute; inset: auto auto 100% 0; transform: translateY(-8px); min-width: 220px; max-width: 280px; background: #0d233d; color: var(--wfx-text); border: 1px solid rgba(255,255,255,0.12); padding: 10px 12px; border-radius: 12px; box-shadow: var(--wfx-shadow); opacity: 0; pointer-events: none; transition: opacity 0.15s ease; }
.wfx-tooltip:focus-within [role=tooltip], 
.wfx-tooltip:hover [role=tooltip]{ opacity: 1; }
.wfx-ribbon{ position: relative; padding-left: 120px; }
.wfx-ribbon::before{ content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 112px; background: linear-gradient(180deg, var(--wfx-accent), #274C77); border-top-right-radius: 18px; border-bottom-right-radius: 18px; }

/* Tooltip – bubble compatibile con CSS globale */
.tooltip[data-tip]::after{
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  transform: translateX(-50%);
  background: var(--wilai-text, #001D3D);
  color: #fff;
  padding: .6rem .85rem;
  border-radius: .5rem;
  font-size: .95rem;
  line-height: 1.35;
  white-space: normal;
  width: max-content;
  max-width: min(340px, 86vw);
  text-align: left;
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
  z-index: 30;
}
.tooltip[data-tip]::before{
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: var(--wilai-text, #001D3D);
  opacity: 0;
  transition: opacity .15s ease;
  z-index: 30;
}
.tooltip:hover::after,
.tooltip:focus::after,
.tooltip:hover::before,
.tooltip:focus::before{ opacity: 1; }

/* Mobile: bolla sopra il testo */
@media (max-width: 900px){
  .tooltip[data-tip]::after{
    top: auto;
    bottom: calc(100% + 10px);
  }
  .tooltip[data-tip]::before{
    top: auto;
    bottom: 100%;
    border: 6px solid transparent;
    border-top-color: var(--wilai-text, #001D3D);
    border-bottom-color: transparent;
  }
}

/* ========================================
   Background come immagine a piena sezione (scopato su .wilai-slide)
   — Consente sfondi di SEZIONE liberi (Elementor/section)
   ======================================== */

/* Immagine di background inserita DIRETTAMENTE dentro la slide */
.wilai-slide > img.bg-as-bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%; /* bias verso l’alto */
  pointer-events: none;
  z-index: 0;
  display: block;
}

/* La slide che contiene l’immagine gestisce stacking e layout
   (non imposta alcun background: lascia libero lo sfondo di SEZIONE) */
.wilai-slide:has(> img.bg-as-bg){
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(48px, 8vh, 80px) 24px;
}

/* Contenuti della slide sopra il background */
.wilai-slide:has(> img.bg-as-bg) > *:not(img.bg-as-bg){
  position: relative;
  z-index: 1;
}

/* ========================================
   Fallback quando :has() non è disponibile
   — Usa un wrapper dedicato senza toccare la SEZIONE
   ======================================== */
.bg-wrap{ 
  position: relative; 
  overflow: hidden; 
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: grid; 
  place-items: center; 
  padding: clamp(48px, 8vh, 80px) 24px; 
}
.bg-wrap > img.bg-as-bg{
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 35%;
  pointer-events: none; z-index: 0; display: block;
}
.bg-wrap > *:not(img.bg-as-bg){ position: relative; z-index: 1; }

/* NOTE:
   - Nessuna regola su .elementor-section o section: gli sfondi di SEZIONE restano liberi.
   - Se vuoi uno sfondo immagine “a mano” nella slide, usa <img class="bg-as-bg"> come primo figlio.
*/

/* Fix spaziatura Privacy Policy / Cookie Policy */
.cmplz-document p,
.cmplz-document li,
.cmplz-document h2,
.cmplz-document h3 {
    line-height: 1.5 !important;
    margin-bottom: 14px !important;
}

/* Fix margini titoli */
.cmplz-document h2 {
    margin-top: 28px !important;
}

/* Fix separazione sezioni accordion */
.cmplz-dropdown {
    padding: 12px 0 !important;
}
/* FIX UNIVERSALE HEADER OVERLAP – WILAI EDU */
#codice-wilai-articolo .codice-wrap {
  padding-top: 120px !important; /* spazio reale visibile sotto header */
}

@media (max-width: 768px) {
  #codice-wilai-articolo .codice-wrap {
    padding-top: 95px !important;
  }
}
/* =========================================================
   FIX GLOBALE NAVIGAZIONE EDU – overflow / sovrapposizione
   Applicato a tutte le schede del Codice W.I.L.A.I.
   ========================================================= */

/* Desktop: nessuna modifica */
.codice-nav {
  align-items: flex-start;
}

/* Mobile fix */
@media (max-width: 600px) {
  .codice-nav {
    flex-direction: column !important;
    gap: 18px !important;
  }

  .codice-nav-link {
    display: block !important;
    width: 100% !important;
    white-space: normal !important;
    word-break: break-word !important;
    line-height: 1.45 !important;
  }

  /* Icone freccia su riga propria se necessario */
  .codice-nav-link span.code {
    display: inline;
  }
}


/* ========================================
   FINE – Nessun codice dopo questa riga
   ======================================== *//* End custom CSS */