/* ==========================================================
   WARIN — Elementor Global CSS (pixel-perfect)
   Incolla in: Elementor → Impostazioni Sito → CSS personalizzato
   ========================================================== */

/* -------- IMPORT FONT (Fraunces var italic + Inter) -------- */
@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,200;0,9..144,300;0,9..144,400;0,9..144,500;1,9..144,300;1,9..144,400&display=swap");

/* -------- VARIABILI -------- */
:root{
  --wa-ink:        #0f1b22;
  --wa-ink-soft:   #3b4b55;
  --wa-mute:       #6b7b85;
  --wa-bg:         #fbf9f4;
  --wa-bg-soft:    #f3efe6;
  --wa-line:       #e6dfce;
  --wa-gold:       #c9a961;
  --wa-gold-soft:  #e7c891;
  --wa-accent:     #8b5a2b;
  --wa-dark:       #07141a;
  --wa-dark-soft:  #0a1822;
  --wa-radius-sm:  10px;
  --wa-radius-md:  16px;
  --wa-radius-lg:  22px;
  --wa-shadow-sm:  0 2px 8px rgba(15,27,34,.06);
  --wa-shadow-md:  0 10px 30px rgba(15,27,34,.10);
}

/* -------- DISPLAY TYPOGRAPHY (Fraunces @ opsz 144) --------
   Applica queste classi al widget Heading / Product Title / Post Title.
   Selettori ad alta specificità per battere theme kit + widget Elementor.
*/
html body .wa-display,
html body .wa-display *,
html body .wa-display h1, html body .wa-display h2,
html body .wa-display h3, html body .wa-display h4,
html body .wa-display .elementor-heading-title,
html body .wa-display .product_title,
html body .wa-display .page-title,
html body .wa-display .entry-title,
html body .wa-display .post-title,
html body .elementor-widget.wa-display .elementor-widget-container,
html body .elementor-widget.wa-display .elementor-widget-container h1,
html body .elementor-widget.wa-display .elementor-widget-container h2,
html body .elementor-widget.wa-display .elementor-widget-container h3,
html body .elementor-widget.wa-display .elementor-widget-container .elementor-heading-title,
html body .elementor-widget.wa-display .elementor-widget-container .product_title{
  font-family: "fraunces", "Fraunces", Georgia, serif !important;
  font-optical-sizing: auto !important;
  font-variation-settings: "opsz" 144 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.02 !important;
  font-weight: 400 !important;
  font-style: normal !important;
}
html body .wa-display em,
html body .wa-display h1 em, html body .wa-display h2 em, html body .wa-display h3 em,
html body .wa-display .elementor-heading-title em,
html body .wa-display .product_title em,
html body .wa-display .page-title em,
html body em.wa-em-gold{
  font-family: "fraunces italic", "Fraunces", Georgia, serif !important;
  font-style: normal !important;
  color: var(--wa-gold-soft) !important;
  font-variation-settings: "opsz" 144 !important;
  font-weight: 400 !important;
}

/* Override specifico WooCommerce Single Product — alza specificità via body.single-product */
html body.single-product .wa-display,
html body.single-product .wa-display *,
html body.single-product .wa-display .product_title,
html body.single-product .wa-display .elementor-heading-title,
html body.woocommerce-page .wa-display,
html body.woocommerce-page .wa-display *,
html body.single-product .elementor-widget.wa-display .product_title,
html body.single-product .elementor-widget.wa-display .elementor-heading-title{
  font-family: "fraunces", "Fraunces", Georgia, serif !important;
  font-optical-sizing: auto !important;
  font-variation-settings: "opsz" 144 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.02 !important;
  font-weight: 400 !important;
  font-style: normal !important;
}
html body.single-product .wa-display em,
html body.single-product .wa-display .product_title em,
html body.woocommerce-page .wa-display em{
  font-family: "fraunces italic", "Fraunces", Georgia, serif !important;
  font-style: normal !important;
  color: var(--wa-gold-soft) !important;
  font-variation-settings: "opsz" 144 !important;
}

/* h1 hero — 72-104 clamp. Targeting robusto per widget Elementor
   (Heading, Product Title, Post Title, Archive Title, ecc.) */
.wa-h1,
.wa-h1 h1, .wa-h1 h2, .wa-h1 h3, .wa-h1 h4,
.wa-h1 .elementor-heading-title,
.wa-h1 .product_title,
.wa-h1 .page-title,
.wa-h1 .post-title,
.wa-h1 a{
  font-size: clamp(48px, 7vw, 104px) !important;
  font-weight: 400 !important;
  line-height: 1.02 !important;
}
.wa-h2,
.wa-h2 h1, .wa-h2 h2, .wa-h2 h3, .wa-h2 h4,
.wa-h2 .elementor-heading-title,
.wa-h2 .product_title,
.wa-h2 .page-title,
.wa-h2 .post-title{
  font-size: clamp(34px, 4.6vw, 64px) !important;
  font-weight: 400 !important;
  line-height: 1.04 !important;
}
.wa-h3,
.wa-h3 h1, .wa-h3 h2, .wa-h3 h3, .wa-h3 h4,
.wa-h3 .elementor-heading-title,
.wa-h3 .product_title,
.wa-h3 .page-title,
.wa-h3 .post-title{
  font-size: clamp(22px, 2.4vw, 36px) !important;
  font-weight: 500 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.01em !important;
}

/* Size modifiers per tarare — combina con wa-h1/wa-h2 per scalare.
   Esempio: wa-display wa-h1 wa-size-md → titolo hero ma più contenuto */
.wa-size-xl,
.wa-size-xl h1, .wa-size-xl h2, .wa-size-xl .elementor-heading-title,
.wa-size-xl .product_title, .wa-size-xl .page-title{
  font-size: clamp(56px, 8vw, 120px) !important;
}
.wa-size-lg,
.wa-size-lg h1, .wa-size-lg h2, .wa-size-lg .elementor-heading-title,
.wa-size-lg .product_title, .wa-size-lg .page-title{
  font-size: clamp(44px, 5.6vw, 84px) !important;
}
.wa-size-md,
.wa-size-md h1, .wa-size-md h2, .wa-size-md .elementor-heading-title,
.wa-size-md .product_title, .wa-size-md .page-title{
  font-size: clamp(36px, 4.2vw, 64px) !important;
}
.wa-size-sm,
.wa-size-sm h1, .wa-size-sm h2, .wa-size-sm .elementor-heading-title,
.wa-size-sm .product_title, .wa-size-sm .page-title{
  font-size: clamp(28px, 3vw, 48px) !important;
}
.wa-size-xs,
.wa-size-xs h1, .wa-size-xs h2, .wa-size-xs .elementor-heading-title,
.wa-size-xs .product_title, .wa-size-xs .page-title{
  font-size: clamp(22px, 2.2vw, 36px) !important;
}

/* -------- HEADING EDITORIAL (h2/h3 stile articolo, applicabile fuori da .wa-article) --------
   Applica .wa-h2 o .wa-h3 al widget Heading di Elementor.
   Per il testo bronze accent: metti <em>parte accentata</em> dentro il titolo. */
html body .wa-h2,
html body .wa-h2 *,
html body .wa-h2 .elementor-heading-title,
html body .elementor-widget.wa-h2 .elementor-widget-container,
html body .elementor-widget.wa-h2 .elementor-widget-container .elementor-heading-title,
html body .wa-h3,
html body .wa-h3 *,
html body .wa-h3 .elementor-heading-title,
html body .elementor-widget.wa-h3 .elementor-widget-container,
html body .elementor-widget.wa-h3 .elementor-widget-container .elementor-heading-title{
  font-family: "Fraunces", "fraunces", Georgia, serif !important;
  font-optical-sizing: auto !important;
  font-variation-settings: normal !important;
  font-weight: 300 !important;
  line-height: 1.1 !important;
  color: var(--wa-ink) !important;
}
html body .wa-h2,
html body .wa-h2 .elementor-heading-title,
html body .elementor-widget.wa-h2 .elementor-widget-container .elementor-heading-title{
  font-size: clamp(30px, 4.2vw, 48px) !important;
  letter-spacing: -0.035em !important;
}
html body .wa-h3,
html body .wa-h3 .elementor-heading-title,
html body .elementor-widget.wa-h3 .elementor-widget-container .elementor-heading-title{
  font-size: clamp(22px, 2.4vw, 30px) !important;
  letter-spacing: -0.03em !important;
}
/* Em bronze accent dentro .wa-h2 / .wa-h3 */
html body .wa-h2 em,
html body .wa-h2 .elementor-heading-title em,
html body .elementor-widget.wa-h2 .elementor-widget-container em,
html body .wa-h3 em,
html body .wa-h3 .elementor-heading-title em,
html body .elementor-widget.wa-h3 .elementor-widget-container em{
  font-family: "fraunces italic", "Fraunces", Georgia, serif !important;
  font-style: normal !important;
  font-weight: 300 !important;
  color: var(--wa-accent) !important;
  font-optical-sizing: auto !important;
  font-variation-settings: normal !important;
  letter-spacing: inherit !important;
}

/* -------- CARD TITLE / SUB (dimensione gestita da Elementor) -------- */
/* Titolo card: Fraunces display bianco. Size controllata dal widget Elementor. */
html body .wa-card-title,
html body .wa-card-title *,
html body .wa-card-title .elementor-heading-title,
html body .elementor-widget.wa-card-title .elementor-widget-container,
html body .elementor-widget.wa-card-title .elementor-widget-container .elementor-heading-title{
  font-family: "Fraunces", "fraunces", Georgia, serif !important;
  font-optical-sizing: auto !important;
  font-variation-settings: normal !important;
  font-weight: 300 !important;
  letter-spacing: -0.035em !important;
  line-height: 1.1 !important;
  color: var(--wa-bg) !important;
}

/* Sottotitolo card: italic ocra chiaro (custom "fraunces italic", style normal). Size dal widget. */
html body .wa-card-sub,
html body .wa-card-sub *,
html body .wa-card-sub p,
html body .wa-card-sub .elementor-heading-title,
html body .elementor-widget.wa-card-sub .elementor-widget-container,
html body .elementor-widget.wa-card-sub .elementor-widget-container p,
html body .elementor-widget.wa-card-sub .elementor-widget-container .elementor-heading-title{
  font-family: "fraunces italic", "Fraunces", Georgia, serif !important;
  font-style: normal !important;
  font-weight: 300 !important;
  letter-spacing: 0 !important;
  line-height: 1.2 !important;
  color: var(--wa-gold-soft) !important;
  font-optical-sizing: auto !important;
  font-variation-settings: normal !important;
}

/* -------- FORM NEWSLETTER (stile home: input pill + bottone pill) --------
   Applica .wa-form al widget Form Elementor. Varianti:
   - .wa-form-dark → colori invertiti per sfondi scuri
   - .wa-form-gold → bottone gold invece del nero
*/
html body .wa-form .elementor-field-textual,
html body .elementor-widget.wa-form .elementor-field-textual,
html body .wa-form input[type="email"],
html body .wa-form input[type="text"],
html body .wa-form input[type="tel"],
html body .wa-form input[type="url"],
html body .wa-form input[type="number"],
html body .wa-form textarea,
html body .wa-form select{
  min-height: 56px !important;
  padding: 0 18px !important;
  background: #fff !important;
  border: 1px solid var(--wa-line) !important;
  border-radius: 8px !important;
  font-family: "Inter", sans-serif !important;
  font-size: 15px !important;
  color: var(--wa-ink) !important;
  outline: none !important;
  box-shadow: none !important;
  transition: border-color .25s, box-shadow .25s !important;
}
html body .wa-form textarea{
  padding: 14px 18px !important;
  min-height: 120px !important;
}
html body .wa-form .elementor-field-textual:focus,
html body .wa-form input:focus,
html body .wa-form textarea:focus,
html body .wa-form select:focus{
  border-color: var(--wa-accent) !important;
  box-shadow: 0 0 0 4px rgba(139,90,43,.10) !important;
}
html body .wa-form .elementor-button,
html body .wa-form button[type="submit"]{
  min-height: 56px !important;
  padding: 0 28px !important;
  background: var(--wa-ink) !important;
  color: var(--wa-bg) !important;
  border: 0 !important;
  border-radius: 8px !important;
  font-family: "Inter", sans-serif !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: background .2s, transform .15s !important;
}
html body .wa-form .elementor-button:hover,
html body .wa-form button[type="submit"]:hover{
  background: #1a2a32 !important;
  transform: translateY(-1px);
}
/* Nasconde label se presente (design minimal del form home) */
html body .wa-form .elementor-field-label{
  display: none !important;
}
/* Layout: GRID email + bottone a fianco, captcha a riga piena sotto */
html body .wa-form .elementor-form-fields-wrapper,
html body .elementor-widget.wa-form .elementor-form-fields-wrapper{
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  gap: 10px !important;
  align-items: stretch !important;
}
html body .wa-form .elementor-field-group,
html body .wa-form .elementor-column{
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
}
/* Input width 100% dentro il suo field group */
html body .wa-form .elementor-field-group input,
html body .wa-form .elementor-field-group textarea,
html body .wa-form .elementor-field-group select{
  width: 100% !important;
}
/* Captcha: full-width grid column, centrato */
html body .wa-form .elementor-field-type-recaptcha,
html body .wa-form .elementor-field-type-recaptcha_v3,
html body .wa-form .elementor-field-type-turnstile,
html body .wa-form .elementor-field-type-hcaptcha,
html body .wa-form .elementor-field-group[class*="captcha"],
html body .wa-form .elementor-field-group[class*="turnstile"],
html body .wa-form .elementor-field-group[class*="recaptcha"]{
  grid-column: 1 / -1 !important;
  display: flex !important;
  justify-content: center !important;
  margin-top: 18px !important;
}
/* Captcha / reCAPTCHA / Turnstile: va a riga piena, centrato, spinto sotto */
html body .wa-form .elementor-field-type-recaptcha,
html body .wa-form .elementor-field-type-recaptcha_v3,
html body .wa-form .elementor-field-type-turnstile,
html body .wa-form .elementor-field-type-hcaptcha,
html body .wa-form .elementor-field-group[class*="captcha"],
html body .wa-form .elementor-field-group[class*="turnstile"],
html body .wa-form .elementor-field-group[class*="recaptcha"],
html body .wa-form .cf-turnstile,
html body .wa-form div[class*="turnstile"]{
  flex: 1 0 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  order: 99 !important;
  display: flex !important;
  justify-content: center !important;
  margin-top: 18px !important;
}
html body .wa-form .elementor-field-type-recaptcha > *,
html body .wa-form .elementor-field-type-turnstile > *,
html body .wa-form .elementor-field-type-hcaptcha > *,
html body .wa-form .cf-turnstile > *{
  margin: 0 auto !important;
}
/* Rimpicciolisce il widget captcha (scale 0.75 = ~75% dimensione originale) */
html body .wa-form .elementor-field-type-recaptcha iframe,
html body .wa-form .elementor-field-type-turnstile iframe,
html body .wa-form .elementor-field-type-hcaptcha iframe,
html body .wa-form .cf-turnstile iframe,
html body .wa-form .cf-turnstile > div,
html body .wa-form div[class*="turnstile"] iframe{
  transform: scale(0.75) !important;
  transform-origin: center center !important;
}
/* Compensa lo spazio "vuoto" che il transform lascia (l'iframe rimane della sua dimensione logica) */
html body .wa-form .elementor-field-type-turnstile,
html body .wa-form .cf-turnstile{
  min-height: 50px !important;
}

/* Su mobile: stack verticale (il wrapper è grid, quindi si collassa a 1 colonna) */
@media (max-width: 640px){
  html body .wa-form .elementor-form-fields-wrapper,
  html body .elementor-widget.wa-form .elementor-form-fields-wrapper{
    grid-template-columns: 1fr !important;
  }
  html body .wa-form .elementor-field-group,
  html body .wa-form .elementor-column{
    width: 100% !important;
    min-width: 0 !important;
  }
  html body .wa-form .elementor-field-group.e-form__buttons,
  html body .wa-form .elementor-field-group.elementor-field-type-submit{
    width: 100% !important;
  }
  html body .wa-form .elementor-button,
  html body .wa-form button[type="submit"]{
    width: 100% !important;
  }
}

/* Variante dark: input trasparente con bordo chiaro, bottone gold */
html body .wa-form.wa-form-dark input[type="email"],
html body .wa-form.wa-form-dark input[type="text"],
html body .wa-form.wa-form-dark .elementor-field-textual{
  background: rgba(255,255,255,.08) !important;
  border-color: rgba(231,200,145,.35) !important;
  color: var(--wa-bg) !important;
}
html body .wa-form.wa-form-dark input::placeholder{
  color: rgba(231,200,145,.55) !important;
}
html body .wa-form.wa-form-dark .elementor-button,
html body .wa-form.wa-form-dark button[type="submit"]{
  background: var(--wa-gold) !important;
  color: var(--wa-dark) !important;
}
html body .wa-form.wa-form-dark .elementor-button:hover,
html body .wa-form.wa-form-dark button[type="submit"]:hover{
  background: var(--wa-gold-soft) !important;
}

/* Variante gold: bottone sempre gold anche su light */
html body .wa-form.wa-form-gold .elementor-button,
html body .wa-form.wa-form-gold button[type="submit"]{
  background: var(--wa-gold) !important;
  color: var(--wa-dark) !important;
}
html body .wa-form.wa-form-gold .elementor-button:hover,
html body .wa-form.wa-form-gold button[type="submit"]:hover{
  background: var(--wa-gold-soft) !important;
}

/* -------- MESSAGGI FORM (successo / errore) — normalizza stile Elementor -------- */
html body .elementor-message,
html body .e-form__message,
html body .elementor-widget-form .elementor-message,
html body .elementor-widget-form .e-form__message,
html body form .elementor-message,
html body form .e-form__message{
  font-family: "Inter", system-ui, sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  line-height: 1.5 !important;
  padding: 12px 16px !important;
  border-radius: 5px !important;
  margin-top: 14px !important;
  background: rgba(201,152,90,.1) !important;
  color: var(--wa-accent) !important;
  border: 1px solid rgba(201,152,90,.25) !important;
  text-align: left !important;
}
html body .elementor-message.elementor-message-success,
html body .e-form__message.e-form__message--success,
html body .elementor-widget-form .elementor-message-success{
  background: rgba(46,125,50,.08) !important;
  color: #2e7d32 !important;
  border-color: rgba(46,125,50,.25) !important;
}
html body .elementor-message.elementor-message-danger,
html body .e-form__message.e-form__message--error,
html body .elementor-widget-form .elementor-message-danger{
  background: rgba(198,40,40,.08) !important;
  color: #c62828 !important;
  border-color: rgba(198,40,40,.25) !important;
}

/* Variante DARK — aggiungi .wa-dark al widget con .wa-h2/.wa-h3 su sfondo scuro */
html body .wa-h2.wa-dark,
html body .wa-h2.wa-dark *,
html body .wa-h2.wa-dark .elementor-heading-title,
html body .elementor-widget.wa-h2.wa-dark .elementor-widget-container,
html body .elementor-widget.wa-h2.wa-dark .elementor-widget-container .elementor-heading-title,
html body .wa-h3.wa-dark,
html body .wa-h3.wa-dark *,
html body .wa-h3.wa-dark .elementor-heading-title,
html body .elementor-widget.wa-h3.wa-dark .elementor-widget-container,
html body .elementor-widget.wa-h3.wa-dark .elementor-widget-container .elementor-heading-title{
  color: var(--wa-bg) !important;
}
html body .wa-h2.wa-dark em,
html body .wa-h2.wa-dark .elementor-heading-title em,
html body .elementor-widget.wa-h2.wa-dark .elementor-widget-container em,
html body .wa-h3.wa-dark em,
html body .wa-h3.wa-dark .elementor-heading-title em,
html body .elementor-widget.wa-h3.wa-dark .elementor-widget-container em{
  color: var(--wa-gold-soft) !important;
}

/* -------- KICKER (CORSI E PERCORSI con linee) --------
   Applica a widget Heading (tag p) o Text Editor con testo breve */
html body .wa-kicker,
html body .wa-kicker *,
html body .wa-kicker p,
html body .wa-kicker .elementor-heading-title,
html body .elementor-widget.wa-kicker .elementor-widget-container p,
html body .elementor-widget.wa-kicker .elementor-widget-container .elementor-heading-title{
  font-family: "Inter", system-ui, sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: .28em !important;
  text-transform: uppercase !important;
  color: var(--wa-gold) !important;
}
/* Le linee decorative vanno messe solo sull'elemento testo, non sui wrapper */
html body .wa-kicker p,
html body .wa-kicker .elementor-heading-title,
.wa-kicker:not(.elementor-widget){
  display: inline-flex !important;
  align-items: center !important;
  gap: 14px !important;
  justify-content: center !important;
}
html body .wa-kicker p::before,
html body .wa-kicker p::after,
html body .wa-kicker .elementor-heading-title::before,
html body .wa-kicker .elementor-heading-title::after,
.wa-kicker:not(.elementor-widget)::before,
.wa-kicker:not(.elementor-widget)::after{
  content: "";
  display: block;
  width: 36px;
  height: 1px;
  background: var(--wa-gold);
  opacity: .7;
}

/* -------- LEAD / SUBHEADING italic (sotto l'h1) --------
   Selettori ad alta specificità + target nested per widget Elementor
   (Text Editor, Short Description WooCommerce, Heading, Post Excerpt) */
html body .wa-lead,
html body .wa-lead *,
html body .wa-lead p,
html body .wa-lead .elementor-heading-title,
html body .wa-lead .woocommerce-product-details__short-description,
html body .wa-lead .woocommerce-product-details__short-description p,
html body .wa-lead .elementor-widget-container,
html body .wa-lead .elementor-widget-container p,
html body .elementor-widget.wa-lead .elementor-widget-container,
html body .elementor-widget.wa-lead .elementor-widget-container p,
html body .elementor-widget.wa-lead .elementor-widget-container .woocommerce-product-details__short-description,
html body .elementor-widget.wa-lead .elementor-widget-container .woocommerce-product-details__short-description p{
  font-family: "fraunces italic", "Fraunces", Georgia, serif !important;
  font-style: normal !important;
  font-size: clamp(22px, 2vw, 32px) !important;
  line-height: 1.45 !important;
  color: #d8cfb8 !important;
  font-variation-settings: "opsz" 144 !important;
  letter-spacing: 0 !important;
  font-weight: 400 !important;
}
.wa-lead{ max-width: 780px; margin: 0 auto !important; }
.wa-lead-ink,
.wa-lead-ink p,
.wa-lead-ink *{ color: var(--wa-ink-soft) !important; }

/* -------- SUBLEAD — italic sobrio (Google Fonts, opsz auto), bianco crema su dark --------
   Stesso carattere italic degli em dei titoli h2/h3 articolo, ma usato come lead autonomo.
   Applica a widget Heading / Text Editor / Post Excerpt sotto hero scuro. */
html body .wa-sublead,
html body .wa-sublead *,
html body .wa-sublead p,
html body .wa-sublead .elementor-heading-title,
html body .wa-sublead .elementor-widget-container,
html body .wa-sublead .elementor-widget-container p,
html body .elementor-widget.wa-sublead .elementor-widget-container,
html body .elementor-widget.wa-sublead .elementor-widget-container p,
html body .elementor-widget.wa-sublead .elementor-widget-container .elementor-heading-title{
  font-family: "fraunces italic", "Fraunces", Georgia, serif !important;
  font-style: normal !important;
  font-weight: 300 !important;
  font-size: clamp(22px, 2vw, 32px) !important;
  line-height: 1.25 !important;
  letter-spacing: 0 !important;
  word-spacing: normal !important;
  color: var(--wa-bg) !important;
  font-optical-sizing: auto !important;
  font-variation-settings: normal !important;
  text-align: center !important;
}
.wa-sublead{ max-width: 780px; margin: 0 auto !important; }

/* -------- HERO scuro con immagine sotto -------- */
.wa-hero-dark{
  --wa-overlay-top:    rgba(7,20,26,.30);
  --wa-overlay-bottom: rgba(7,20,26,.55);
  background-color: var(--wa-dark) !important;
  color: #fff !important;
  position: relative;
  overflow: hidden;
}
.wa-hero-dark .wa-display{ color: #fff !important; }
.wa-hero-dark::before{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--wa-overlay-top) 0%, var(--wa-overlay-bottom) 100%);
  pointer-events: none;
  z-index: 1;
}
.wa-hero-dark > .e-con-inner,
.wa-hero-dark .elementor-container{ position: relative; z-index: 2; }

/* Modificatori overlay — aggiungi UNA di queste classi al container hero
   insieme a wa-hero-dark. Numero più basso = immagine più visibile. */
.wa-hero-dark.wa-overlay-1{  /* velo leggerissimo — immagine protagonista */
  --wa-overlay-top:    rgba(7,20,26,.10);
  --wa-overlay-bottom: rgba(7,20,26,.30);
}
.wa-hero-dark.wa-overlay-2{  /* velo soft — immagine evidente */
  --wa-overlay-top:    rgba(7,20,26,.25);
  --wa-overlay-bottom: rgba(7,20,26,.45);
}
.wa-hero-dark.wa-overlay-3{  /* velo medio — bilanciato (default) */
  --wa-overlay-top:    rgba(7,20,26,.40);
  --wa-overlay-bottom: rgba(7,20,26,.65);
}
.wa-hero-dark.wa-overlay-4{  /* velo forte — testo in primo piano */
  --wa-overlay-top:    rgba(7,20,26,.60);
  --wa-overlay-bottom: rgba(7,20,26,.82);
}
.wa-hero-dark.wa-overlay-5{  /* velo molto scuro — immagine appena accennata */
  --wa-overlay-top:    rgba(7,20,26,.75);
  --wa-overlay-bottom: rgba(7,20,26,.92);
}
.wa-hero-dark.wa-overlay-6{  /* velo quasi pieno — immagine suggerita nei margini */
  --wa-overlay-top:    rgba(7,20,26,.88);
  --wa-overlay-bottom: rgba(7,20,26,.98);
}

/* -------- CHIP nav (CALENDARIO · VIDEOCORSI · COME SI STUDIA) -------- */
.wa-chip a,
a.wa-chip{
  font-family: "Inter", system-ui, sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: .22em !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,.85) !important;
  padding: 10px 0 !important;
  border-bottom: 1px solid rgba(255,255,255,.25) !important;
  transition: color .2s, border-color .2s;
}
.wa-chip a:hover,
a.wa-chip:hover{
  color: var(--wa-gold-soft) !important;
  border-color: var(--wa-gold-soft) !important;
}

/* -------- BOTTONI -------- */
.wa-btn-gold .elementor-button,
a.wa-btn-gold{
  background: var(--wa-gold) !important;
  color: #0f1b22 !important;
  font-family: "Inter", system-ui, sans-serif !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  letter-spacing: .04em !important;
  padding: 16px 28px !important;
  border-radius: 5px !important;
  border: 0 !important;
  box-shadow: var(--wa-shadow-sm);
  transition: transform .2s, box-shadow .2s, background .2s;
}
.wa-btn-gold .elementor-button:hover,
a.wa-btn-gold:hover{
  background: var(--wa-gold-soft) !important;
  transform: translateY(-1px);
  box-shadow: var(--wa-shadow-md);
}
.wa-btn-ghost .elementor-button,
a.wa-btn-ghost{
  background: transparent !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.4) !important;
  border-radius: 5px !important;
  padding: 14px 26px !important;
  font-family: "Inter", system-ui, sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: .04em !important;
}
.wa-btn-ink .elementor-button,
a.wa-btn-ink{
  background: var(--wa-ink) !important;
  color: #fff !important;
  border-radius: 5px !important;
  padding: 16px 28px !important;
  font-family: "Inter", system-ui, sans-serif !important;
  font-weight: 600 !important;
}

/* -------- SECTION HEAD (label + h2) -------- */
html body .wa-sec-label,
html body .wa-sec-label *,
html body .wa-sec-label p,
html body .wa-sec-label .elementor-heading-title,
html body .elementor-widget.wa-sec-label .elementor-widget-container p,
html body .elementor-widget.wa-sec-label .elementor-widget-container .elementor-heading-title{
  font-family: "Inter", system-ui, sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .32em !important;
  text-transform: uppercase !important;
  color: var(--wa-gold) !important;
}
.wa-sec-label{ margin-bottom: 14px !important; }

/* -------- PRICE CARD -------- */
.wa-price-card{
  background: #fff !important;
  border: 1px solid var(--wa-line) !important;
  border-radius: var(--wa-radius-lg) !important;
  padding: 32px !important;
  box-shadow: var(--wa-shadow-sm) !important;
}
.wa-price-card.wa-featured{
  border: 2px solid var(--wa-gold) !important;
  box-shadow: var(--wa-shadow-md) !important;
}

/* -------- CALENDARIO EVENT CARD -------- */
.wa-cal-card{
  background: #fff;
  border: 1px solid var(--wa-line);
  border-radius: var(--wa-radius-md);
  padding: 24px 28px;
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 24px;
  align-items: center;
}
.wa-cal-date{
  text-align: center;
  padding: 12px 0;
  border-right: 1px solid var(--wa-line);
}
.wa-cal-date .day{
  font-family: "Fraunces", "fraunces", Georgia, serif;
  font-size: 42px;
  line-height: 1;
  font-variation-settings: "opsz" 144;
  color: var(--wa-ink);
}
.wa-cal-date .mo{
  font-family: "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--wa-gold);
  margin-top: 6px;
}

/* -------- DIVIDER GOLD -------- */
.wa-divider-gold{
  width: 48px; height: 2px;
  background: var(--wa-gold);
  border: 0;
  margin: 24px auto;
}

/* -------- OVERRIDE TEMA (solo dove serve) -------- */
body .wa-display p{ margin: 0 !important; }

/* ==========================================================
   ARTICLE / LONG-FORM BODY
   Avvolgi il contenuto in <div class="wa-article">...</div>
   oppure applica la classe al widget Text Editor di Elementor
   ========================================================== */
.wa-article{
  --wa-art-max: 720px;
  --wa-art-fs: 16.5px;
  --wa-art-lh: 1.7;
  font-family: "Inter", -apple-system, "Lato", system-ui, sans-serif !important;
  font-size: var(--wa-art-fs) !important;
  line-height: var(--wa-art-lh) !important;
  color: var(--wa-ink) !important;
  max-width: var(--wa-art-max);
  margin-left: auto;
  margin-right: auto;
}

/* Varianti larghezza */
.wa-article.wa-art-narrow{ --wa-art-max: 620px; }
.wa-article.wa-art-wide{   --wa-art-max: 820px; }
.wa-article.wa-art-full{   --wa-art-max: 100%; }

/* --- Paragrafi --- */
.wa-article p{
  margin: 0 0 1.2em !important;
  color: var(--wa-ink-soft) !important;
  font-size: inherit !important;
  line-height: inherit !important;
}

/* --- Capolettera (drop cap) sul primo paragrafo ---
   Selettori robusti: diretto, widget Elementor, nested container */
.wa-article > p:first-of-type:not(.wa-art-lead):not(.wa-note):not(.wa-cta)::first-letter,
.wa-article > p:first-child:not(.wa-art-lead):not(.wa-note):not(.wa-cta)::first-letter,
.wa-article > .elementor-widget-container > p:first-of-type:not(.wa-art-lead):not(.wa-note):not(.wa-cta)::first-letter,
.wa-article > .elementor-widget-container > p:first-child:not(.wa-art-lead):not(.wa-note):not(.wa-cta)::first-letter,
.elementor-widget.wa-article > .elementor-widget-container > p:first-of-type:not(.wa-art-lead):not(.wa-note):not(.wa-cta)::first-letter,
.elementor-widget.wa-article .elementor-widget-container > p:first-of-type:not(.wa-art-lead):not(.wa-note):not(.wa-cta)::first-letter,
.wa-article .wa-dropcap::first-letter{
  font-family: "fraunces", "Fraunces", Georgia, serif;
  font-variation-settings: "opsz" 144;
  font-weight: 300;
  font-size: 4.3em;
  line-height: .88;
  float: left;
  margin: .05em .1em -.05em 0;
  color: var(--wa-gold);
  padding-right: .04em;
}

/* Disattiva capolettera con .wa-no-dropcap */
.wa-article.wa-no-dropcap > p:first-of-type::first-letter,
.wa-article.wa-no-dropcap > .elementor-widget-container > p:first-of-type::first-letter{
  all: unset;
}

/* --- Heading dentro l'articolo (stile HTML reference) --- */
.wa-article h2,
.wa-article h3{
  font-family: "Fraunces", "fraunces", Georgia, serif !important;
  font-optical-sizing: auto !important;
  font-variation-settings: normal !important;
  font-weight: 300 !important;
  letter-spacing: -0.03em !important;
  color: var(--wa-ink) !important;
  margin: 2em 0 .6em !important;
  line-height: 1.1 !important;
}
.wa-article h2{ font-size: clamp(30px, 4.2vw, 48px) !important; letter-spacing: -0.035em !important; }
.wa-article h3{ font-size: clamp(22px, 2.4vw, 30px) !important; }
.wa-article h4{
  font-family: "Inter", sans-serif !important;
  font-size: 19px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  color: var(--wa-ink) !important;
  line-height: 1.3 !important;
  margin: 1.8em 0 .5em !important;
}
.wa-article h2 em,
.wa-article h3 em{
  font-family: "fraunces italic", "Fraunces", Georgia, serif !important;
  font-style: normal !important;
  font-weight: 300 !important;
  color: var(--wa-accent) !important;
  font-optical-sizing: auto !important;
  font-variation-settings: normal !important;
  letter-spacing: inherit !important;
}

/* Occhiello sopra l'h2 */
.wa-article .wa-art-kicker{
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--wa-gold);
  margin: 3em 0 .5em;
}

/* --- Lead / intro grande sotto il titolo (stile HTML reference) --- */
.wa-article .wa-art-lead{
  font-family: "fraunces", "Fraunces", Georgia, serif !important;
  font-style: normal !important;
  font-weight: 300 !important;
  font-size: clamp(19px, 2.1vw, 24px) !important;
  line-height: 1.55 !important;
  color: var(--wa-ink) !important;
  font-variation-settings: "opsz" 144 !important;
  margin-bottom: 2em !important;
}

/* --- Enfasi nel corpo --- */
.wa-article strong{ color: var(--wa-ink) !important; font-weight: 600 !important; }
.wa-article em{
  font-family: "Fraunces", "fraunces italic", Georgia, serif !important;
  font-style: italic !important;
  font-optical-sizing: auto !important;
  font-variation-settings: normal !important;
  color: var(--wa-ink) !important;
}
.wa-article mark,
.wa-article .wa-hl{
  background: linear-gradient(180deg, transparent 58%, rgba(201,169,97,.35) 58%);
  color: var(--wa-ink);
  padding: 0 .1em;
}

/* --- Link inline --- */
.wa-article a{
  color: var(--wa-ink) !important;
  text-decoration: none !important;
  background-image: linear-gradient(var(--wa-gold), var(--wa-gold));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 100% 1px;
  padding-bottom: 1px;
  transition: background-size .25s, color .25s;
}
.wa-article a:hover{
  color: var(--wa-gold) !important;
  background-size: 100% 2px;
}

/* --- Blockquote / pullquote --- */
.wa-article blockquote,
.wa-article .wa-pullquote{
  margin: 2.2em 0 !important;
  padding: 1.2em 0 1.2em 1.6em !important;
  border-left: 2px solid var(--wa-gold) !important;
  font-family: "fraunces italic", "Fraunces", Georgia, serif !important;
  font-style: normal !important;
  font-variation-settings: "opsz" 144 !important;
  font-size: clamp(22px, 2vw, 28px) !important;
  line-height: 1.4 !important;
  color: var(--wa-ink) !important;
  position: relative;
}
.wa-article blockquote::before,
.wa-article .wa-pullquote::before{
  content: "“";
  position: absolute;
  left: -.05em; top: -.3em;
  font-family: "Fraunces", "fraunces", Georgia, serif;
  font-variation-settings: "opsz" 144;
  font-size: 4em;
  line-height: 1;
  color: var(--wa-gold);
  opacity: .3;
  pointer-events: none;
}
.wa-article blockquote cite,
.wa-article .wa-pullquote cite{
  display: block;
  font-family: "Inter", sans-serif !important;
  font-style: normal !important;
  font-size: 13px !important;
  letter-spacing: .18em !important;
  text-transform: uppercase !important;
  color: var(--wa-gold) !important;
  margin-top: 1em !important;
}
.wa-article blockquote cite::before,
.wa-article .wa-pullquote cite::before{ content: "— "; }

/* Pullquote centrata e grande (tira dal testo principale) */
.wa-article .wa-pullquote-big{
  text-align: center;
  border-left: 0 !important;
  padding: 2em 0 !important;
  margin: 3em -4% !important;
  font-size: clamp(28px, 3vw, 40px) !important;
  color: var(--wa-ink) !important;
  border-top: 1px solid var(--wa-line);
  border-bottom: 1px solid var(--wa-line);
}
.wa-article .wa-pullquote-big::before{
  position: static;
  display: block;
  text-align: center;
  font-size: 2.8em;
  margin-bottom: -.3em;
  opacity: .5;
}

/* --- Liste --- */
.wa-article ul,
.wa-article ol{
  margin: 0 0 1.5em !important;
  padding: 0 !important;
  list-style: none !important;
}
.wa-article ul li,
.wa-article ol li{
  position: relative;
  padding: .55em 0 .55em 2em !important;
  border-bottom: 1px solid var(--wa-line) !important;
  color: var(--wa-ink) !important;
  line-height: 1.55 !important;
  margin: 0 !important;
}
.wa-article ul li:last-child,
.wa-article ol li:last-child{ border-bottom: 0 !important; }

/* Bullet custom per <ul> (cerchio dorato) */
.wa-article ul li::before{
  content: "";
  position: absolute;
  left: .4em;
  top: 1.05em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--wa-gold);
}

/* Numerazione custom per <ol> (con prefisso serif) */
.wa-article ol{ counter-reset: wa-list; }
.wa-article ol li{ counter-increment: wa-list; }
.wa-article ol li::before{
  content: counter(wa-list, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: .55em;
  font-family: "fraunces", "Fraunces", Georgia, serif;
  font-variation-settings: "opsz" 144;
  font-size: 1em;
  color: var(--wa-gold);
  font-weight: 500;
}

/* Variante lista con check-mark */
.wa-article ul.wa-list-check li::before{
  content: "✓";
  background: transparent;
  width: auto; height: auto;
  left: 0; top: .6em;
  color: var(--wa-gold);
  font-weight: 700;
  font-size: 1.1em;
}

/* Variante lista spaziata senza bordi (airy) */
.wa-article ul.wa-list-airy li,
.wa-article ol.wa-list-airy li{
  border-bottom: 0 !important;
  padding: .35em 0 .35em 1.8em !important;
}

/* --- Immagini --- */
.wa-article img,
.wa-article figure img{
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--wa-radius-md);
  margin: 1.5em auto;
  box-shadow: var(--wa-shadow-sm);
}
.wa-article figure{ margin: 2.2em 0; }
.wa-article figcaption{
  font-family: "Inter", sans-serif !important;
  font-size: 13px !important;
  color: var(--wa-mute) !important;
  text-align: center;
  margin-top: .8em;
  letter-spacing: .01em;
}

/* Immagine full-bleed che esce dal max-width */
.wa-article .wa-img-wide{
  margin-left: -8%;
  margin-right: -8%;
  max-width: none;
  width: calc(100% + 16%);
}

/* --- Divisori --- */
.wa-article hr{
  border: 0 !important;
  height: 1px !important;
  background: var(--wa-line) !important;
  margin: 3em 0 !important;
}
.wa-article hr.wa-hr-ornate{
  background: transparent !important;
  height: 24px !important;
  text-align: center;
  position: relative;
  overflow: visible;
}
.wa-article hr.wa-hr-ornate::after{
  content: "✦";
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  color: var(--wa-gold);
  font-size: 16px;
  background: var(--wa-bg, #fff);
  padding: 0 16px;
}
.wa-article hr.wa-hr-ornate::before{
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: var(--wa-line);
  transform: translateY(-50%);
}

/* --- Callout / box evidenza --- */
.wa-article .wa-callout{
  background: var(--wa-bg-soft);
  border-left: 3px solid var(--wa-gold);
  padding: 1.5em 1.8em;
  margin: 2em 0;
  border-radius: 0 var(--wa-radius-md) var(--wa-radius-md) 0;
}
.wa-article .wa-callout p:last-child{ margin-bottom: 0 !important; }
.wa-article .wa-callout .wa-callout-title{
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--wa-gold);
  font-weight: 700;
  margin-bottom: .6em;
}

/* --- Codice inline e blocchi --- */
.wa-article code{
  font-family: "SFMono-Regular", Menlo, Consolas, monospace !important;
  font-size: .88em !important;
  background: var(--wa-bg-soft);
  color: var(--wa-ink);
  padding: .15em .45em;
  border-radius: 6px;
  border: 1px solid var(--wa-line);
}
.wa-article pre{
  background: var(--wa-dark);
  color: #e7e1d0;
  padding: 1.4em 1.6em;
  border-radius: var(--wa-radius-md);
  overflow-x: auto;
  margin: 1.8em 0;
  font-size: 14px;
  line-height: 1.6;
}
.wa-article pre code{
  background: transparent; border: 0; padding: 0;
  color: inherit; font-size: inherit;
}

/* --- Tabella --- */
.wa-article table{
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: .95em;
}
.wa-article th,
.wa-article td{
  padding: 1em 1.2em;
  text-align: left;
  border-bottom: 1px solid var(--wa-line);
}
.wa-article th{
  font-family: "Inter", sans-serif;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--wa-gold);
  font-weight: 700;
  border-bottom: 2px solid var(--wa-gold);
}

/* --- Italic dentro li: usa Inter italic vero, non Fraunces display --- */
.wa-article li em,
.wa-article li i{
  font-family: inherit !important;
  font-style: italic !important;
  font-variation-settings: normal !important;
  color: inherit !important;
}

/* --- Paragrafo "nota editoriale" (sostituisce wrap in <em> intero) --- */
.wa-article .wa-note{
  font-family: "fraunces", "Fraunces", Georgia, serif !important;
  font-style: italic !important;
  font-weight: 300 !important;
  font-size: clamp(17px, 1.5vw, 19px) !important;
  line-height: 1.55 !important;
  color: var(--wa-ink-soft) !important;
  padding: 1em 0 1em 1.4em !important;
  border-left: 2px solid var(--wa-gold) !important;
  margin: 1.8em 0 !important;
  font-variation-settings: "opsz" 36 !important;
}

/* --- Figura: wrapper immagine responsive --- */
.wa-article .wa-figure{
  margin: 2.4em 0 !important;
  text-align: center;
}
.wa-article .wa-figure img{
  margin: 0 auto !important;
  display: block;
}
.wa-article .wa-figure figcaption{
  margin-top: .8em;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  color: var(--wa-mute);
  letter-spacing: .01em;
}
.wa-article .wa-figure.wa-figure-narrow img{ max-width: 420px; }

/* --- CTA finale / pulsanti --- */
.wa-article .wa-cta{
  text-align: center !important;
  margin: 3em 0 !important;
  padding: 0 !important;
}
.wa-article .wa-btn,
.wa-article a.wa-btn{
  display: inline-block !important;
  font-family: "Inter", sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: .22em !important;
  text-transform: uppercase !important;
  padding: 1.1em 2.2em !important;
  border-radius: 2px !important;
  text-decoration: none !important;
  background-image: none !important;
  transition: all .25s ease !important;
  line-height: 1 !important;
}
.wa-article a.wa-btn-gold{
  background: var(--wa-gold) !important;
  color: var(--wa-dark) !important;
  background-size: auto !important;
  padding-bottom: 1.1em !important;
}
.wa-article a.wa-btn-gold:hover{
  background: var(--wa-gold-soft) !important;
  color: var(--wa-dark) !important;
  transform: translateY(-2px);
  background-size: auto !important;
}
.wa-article a.wa-btn-outline{
  background: transparent !important;
  color: var(--wa-ink) !important;
  border: 1px solid var(--wa-gold) !important;
}
.wa-article a.wa-btn-outline:hover{
  background: var(--wa-gold) !important;
  color: var(--wa-dark) !important;
}

/* --- Spaziature responsive --- */
.wa-article > *:first-child{ margin-top: 0 !important; }
.wa-article > *:last-child{ margin-bottom: 0 !important; }

/* -------- RESPONSIVE -------- */
@media (max-width: 768px){
  .wa-kicker::before,
  .wa-kicker::after{ width: 20px; }
  .wa-cal-card{
    grid-template-columns: 72px 1fr;
    grid-template-rows: auto auto;
  }
  .wa-cal-card > :last-child{ grid-column: 1 / -1; }

  .wa-article{ --wa-art-fs: 17px; --wa-art-lh: 1.7; }
  .wa-article > p:first-of-type::first-letter{ font-size: 4.2em; }
  .wa-article .wa-pullquote-big{ margin-left: 0 !important; margin-right: 0 !important; }
  .wa-article .wa-img-wide{ margin-left: 0; margin-right: 0; width: 100%; }
}

/* ===================================================================
   ARCHIVE POSTS — stile v5 (thumb left 220px + body right)
   Layout: thumb sinistra | body (data, titolo, excerpt, leggi tutto)
   Divider hairline gold-soft tra ogni post, no hover scale su immagini.
   =================================================================== */

html body .elementor-widget-archive-posts .elementor-posts-container,
html body .elementor-widget-posts .elementor-posts-container{
  gap: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

html body .elementor-widget-archive-posts .elementor-post{
  padding: 36px 0 !important;
  margin: 0 !important;
  border-bottom: 1px solid rgba(201,152,90,.22) !important;
  transition: padding-left .2s ease;
}
html body .elementor-widget-archive-posts .elementor-post:first-child{
  border-top: 1px solid rgba(201,152,90,.22);
}
html body .elementor-widget-archive-posts .elementor-post:hover{
  padding-left: 6px !important;
}

/* Thumbnail — position relative sul thumb per ancorare l'img absolute (Elementor fit-height) */
html body .elementor-widget-archive-posts .elementor-post__thumbnail__link{
  display: block !important;
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 4 / 3 !important;
  border-radius: 4px !important;
  overflow: hidden !important;
  background: var(--wa-bg-soft) !important;
  margin: 0 !important;
  padding: 0 !important;
}
html body .elementor-widget-archive-posts .elementor-post__thumbnail{
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  display: block !important;
  overflow: hidden !important;
}
html body .elementor-widget-archive-posts .elementor-post__thumbnail img{
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: none !important;
  transform: none !important;
  max-width: 100% !important;
  max-height: 100% !important;
}
html body .elementor-widget-archive-posts .elementor-post:hover .elementor-post__thumbnail img{
  transform: none !important;
}

/* Meta/Data */
html body .elementor-widget-archive-posts .elementor-post__meta-data,
html body .elementor-widget-archive-posts .elementor-post-date{
  font-family: "Inter", sans-serif !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  color: var(--wa-mute) !important;
  margin: 0 0 14px !important;
}

/* Titolo */
html body .elementor-widget-archive-posts .elementor-post__title,
html body .elementor-widget-archive-posts .elementor-post__title a{
  font-family: "Fraunces", Georgia, serif !important;
  font-optical-sizing: auto !important;
  font-weight: 400 !important;
  font-size: clamp(24px, 2.5vw, 30px) !important;
  line-height: 1.18 !important;
  letter-spacing: -0.025em !important;
  color: var(--wa-ink) !important;
  margin: 0 0 12px !important;
  transition: color .25s ease;
}
html body .elementor-widget-archive-posts .elementor-post__title a:hover{
  color: var(--wa-accent) !important;
}
html body .elementor-widget-archive-posts .elementor-post__title em{
  font-style: italic !important;
  color: var(--wa-accent) !important;
  font-weight: 400 !important;
}

/* Excerpt — 2 righe max */
html body .elementor-widget-archive-posts .elementor-post__excerpt,
html body .elementor-widget-archive-posts .elementor-post__excerpt p{
  font-family: "Inter", sans-serif !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
  color: var(--wa-ink-soft) !important;
  margin: 0 0 14px !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Leggi tutto */
html body .elementor-widget-archive-posts .elementor-post__read-more{
  font-family: "Inter", sans-serif !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  color: var(--wa-ink) !important;
  border-bottom: 1px solid var(--wa-accent) !important;
  padding-bottom: 3px !important;
  transition: color .25s ease;
  display: inline-block;
}
html body .elementor-widget-archive-posts .elementor-post__read-more:hover{
  color: var(--wa-accent) !important;
}

/* DESKTOP — grid 220px | 1fr (si attiva senza dipendere da .elementor-posts--thumbnail-left) */
@media (min-width: 768px){
  html body .elementor-widget-archive-posts .elementor-post{
    display: grid !important;
    grid-template-columns: 220px 1fr !important;
    gap: 36px !important;
    align-items: center !important;
  }
  html body .elementor-widget-archive-posts .elementor-post__thumbnail__link{
    width: 220px !important;
    max-width: 220px !important;
    flex: 0 0 220px !important;
  }
  html body .elementor-widget-archive-posts .elementor-post__text{
    padding: 0 !important;
    min-width: 0;
  }
}

/* MOBILE — stack verticale */
@media (max-width: 767px){
  html body .elementor-widget-archive-posts .elementor-post{
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    padding: 28px 0 !important;
  }
  html body .elementor-widget-archive-posts .elementor-post:hover{
    padding-left: 0 !important;
  }
  html body .elementor-widget-archive-posts .elementor-post__thumbnail__link,
  html body .elementor-widget-archive-posts .elementor-post__thumbnail{
    width: 100% !important;
    max-width: 100% !important;
  }
  html body .elementor-widget-archive-posts .elementor-post__thumbnail{
    aspect-ratio: 16 / 10;
  }
  html body .elementor-widget-archive-posts .elementor-post__text{
    padding: 0 !important;
  }
  html body .elementor-widget-archive-posts .elementor-post__title,
  html body .elementor-widget-archive-posts .elementor-post__title a{
    font-size: 22px !important;
  }
}

/* Paginazione */
html body .elementor-widget-archive-posts .elementor-pagination{
  margin-top: 56px !important;
  display: flex !important;
  justify-content: center !important;
  gap: 8px !important;
}
html body .elementor-widget-archive-posts .page-numbers{
  font-family: "Inter", sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 8px 14px !important;
  border-radius: 5px !important;
  color: var(--wa-ink) !important;
  background: transparent !important;
  border: 1px solid var(--wa-line) !important;
  transition: all .2s ease;
}
html body .elementor-widget-archive-posts .page-numbers:hover,
html body .elementor-widget-archive-posts .page-numbers.current{
  background: var(--wa-ink) !important;
  color: var(--wa-bg) !important;
  border-color: var(--wa-ink) !important;
}

/* ================================================================
   LOOP GRID EVENTI (CPT "evento") — /calendario-eventi/
   Classe custom applicata al widget Loop Grid: .wa-event-loop
   Struttura Loop Item:
     .wa-event-card (container row)
       ├── .wa-event-datebox (180px, image overlay sotto)
       │     .wa-event-day + .wa-event-month + .wa-event-year
       │     .wa-event-date (fallback riga unica)
       │     .wa-event-img-overlay (img featured)
       └── .wa-event-body
             .wa-event-kicker / .wa-event-title / .wa-event-sub
             .wa-event-desc / .wa-event-btn
   ================================================================ */

html body .wa-event-loop{
  background: transparent;
}
html body .wa-event-loop .elementor-loop-container{
  display: flex !important;
  flex-direction: column;
  gap: 24px !important;
}

/* Card container — border-radius + hover lift + CLICK OVERLAY sull'intera card */
html body .wa-event-loop .e-loop-item{
  position: relative;
  background: var(--wa-bg);
  border-radius: 18px;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
html body .wa-event-loop .e-loop-item:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(15,27,34,0.08);
}

/* Layout card: sinistra (datebox 180px) + destra (body) */
html body .wa-event-loop .wa-event-card{
  padding: 0 !important;
}
html body .wa-event-loop .wa-event-card > .e-con-inner{
  display: grid !important;
  grid-template-columns: 180px 1fr !important;
  gap: 0 !important;
  align-items: stretch !important;
  padding: 0 !important;
}

/* ---------- DATEBOX (colonna sinistra — SCURO con image visibile) ---------- */
html body .wa-event-loop .wa-event-datebox{
  position: relative !important;
  background: #0f1b22 !important;
  color: #fff !important;
  padding: 22px 18px !important;
  overflow: hidden;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  min-height: 210px;
  gap: 1px !important;
}
html body .wa-event-loop .wa-event-datebox .elementor-heading-title{
  text-align: center !important;
}
/* Velo scuro per leggibilità testo sopra immagine (z-index 1) */
html body .wa-event-loop .wa-event-datebox::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,27,34,0.55) 0%, rgba(15,27,34,0.78) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Image overlay sotto il velo — ora più visibile */
html body .wa-event-loop .wa-event-img-overlay{
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  pointer-events: none;
  overflow: hidden;
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}
html body .wa-event-loop .wa-event-img-overlay .elementor-widget-container{
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  padding: 0 !important;
  margin: 0 !important;
}
html body .wa-event-loop .wa-event-img-overlay img{
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
  filter: grayscale(0.15) contrast(1.02) brightness(0.92) !important;
  transition: transform .8s ease;
}
html body .wa-event-loop .e-loop-item:hover .wa-event-img-overlay img{
  transform: scale(1.05);
}

/* Tutti i widget della datebox sopra l'overlay */
html body .wa-event-loop .wa-event-datebox > .elementor-widget:not(.wa-event-img-overlay){
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Data — 5 pezzi: weekday / day / month / year / time
   Sorgenti ACF: data_nome_giorno / data_giorno / data_mese / data_anno / data_orario */

/* 1) WEEKDAY — UPPERCASE Inter, piccolo, letter-spaced */
html body .wa-event-loop .wa-event-weekday .elementor-heading-title{
  font-family: "Inter", sans-serif !important;
  font-style: normal !important;
  font-weight: 600 !important;
  font-size: 11px !important;
  line-height: 1 !important;
  color: rgba(255,255,255,0.82) !important;
  margin: 0 0 8px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.22em !important;
}

/* 2) GIORNO — numero grande Fraunces */
html body .wa-event-loop .wa-event-day .elementor-heading-title{
  font-family: "Fraunces", Georgia, serif !important;
  font-weight: 300 !important;
  font-size: 72px !important;
  line-height: 0.95 !important;
  letter-spacing: -0.04em !important;
  color: #fff !important;
  margin: 0 !important;
  text-transform: none !important;
}

/* 3) MESE — Fraunces italic, oro caldo acceso */
html body .wa-event-loop .wa-event-month .elementor-heading-title{
  font-family: "Fraunces", Georgia, serif !important;
  font-style: italic !important;
  font-weight: 400 !important;
  font-size: 20px !important;
  letter-spacing: 0 !important;
  text-transform: capitalize !important;
  color: #eab854 !important;
  margin: 6px 0 12px !important;
  line-height: 1 !important;
  font-variation-settings: "opsz" 14 !important;
}

/* 4) ANNO — piccolo grey, con respiro dal mese e dall'orario */
html body .wa-event-loop .wa-event-year .elementor-heading-title{
  font-family: "Inter", sans-serif !important;
  font-weight: 400 !important;
  font-size: 11px !important;
  letter-spacing: 0.14em !important;
  color: rgba(255,255,255,0.7) !important;
  margin: 0 0 14px !important;
  line-height: 1 !important;
  text-transform: none !important;
}

/* 5) ORARIO — divider + oro caldo acceso */
html body .wa-event-loop .wa-event-time .elementor-heading-title{
  font-family: "Inter", sans-serif !important;
  font-weight: 600 !important;
  font-size: 11.5px !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  color: #eab854 !important;
  margin: 0 !important;
  line-height: 1 !important;
  padding-top: 12px !important;
  border-top: 1px solid rgba(234,184,84,0.35) !important;
  width: 100%;
}

/* Fallback — heading riga unica (se non splittata) */
html body .wa-event-loop .wa-event-card .wa-event-datebox .wa-event-date .elementor-heading-title{
  font-family: "fraunces italic", "Fraunces", Georgia, serif !important;
  font-style: normal !important;
  font-weight: 300 !important;
  font-size: 22px !important;
  line-height: 1.25 !important;
  letter-spacing: -0.005em !important;
  color: #fff !important;
  margin: 0 !important;
  text-transform: capitalize !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  writing-mode: horizontal-tb !important;
}

/* ---------- BODY (colonna destra) — flex row wrap per mettere kicker inline SENZA wrapper ---------- */
html body .wa-event-loop .wa-event-body{
  padding: 28px 32px !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: flex-start !important;
  align-content: center !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  background: var(--wa-bg) !important;
}
/* Tutti i widget del body occupano riga intera di default */
html body .wa-event-loop .wa-event-body > .elementor-widget,
html body .wa-event-loop .wa-event-body > .elementor-element{
  flex: 0 0 100% !important;
  width: 100% !important;
  max-width: 100% !important;
}
/* I 3 kicker invece stanno in riga (auto width) */
html body .wa-event-loop .wa-event-body > .wa-event-kicker,
html body .wa-event-loop .wa-event-body > .wa-event-kicker-2,
html body .wa-event-loop .wa-event-body > .wa-event-kicker-3{
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 8px 8px 0 !important;
}
/* Reset margin bottom del wrapper kicker se ultimo della sequenza — lo fa il successivo */

/* Container riga kickers (opzionale, se l'utente vuole comunque wrappare) */
html body .wa-event-loop .wa-event-kickers{
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  align-items: center !important;
  margin-bottom: 18px !important;
  padding: 0 !important;
}
html body .wa-event-loop .wa-event-kickers > .e-con-inner{
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  padding: 0 !important;
  align-items: center !important;
}

/* Stile pill base (chiaro di default) */
html body .wa-event-loop .wa-event-kicker,
html body .wa-event-loop .wa-event-kicker-2,
html body .wa-event-loop .wa-event-kicker-3{
  align-self: flex-start !important;
}
html body .wa-event-loop .wa-event-kicker .elementor-widget-container,
html body .wa-event-loop .wa-event-kicker-2 .elementor-widget-container,
html body .wa-event-loop .wa-event-kicker-3 .elementor-widget-container{
  display: inline-block !important;
  width: auto !important;
}
html body .wa-event-loop .wa-event-kicker .elementor-heading-title,
html body .wa-event-loop .wa-event-kicker-2 .elementor-heading-title,
html body .wa-event-loop .wa-event-kicker-3 .elementor-heading-title{
  display: inline-block !important;
  font-family: "Inter", sans-serif !important;
  font-weight: 700 !important;
  font-size: 10.5px !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  padding: 8px 16px !important;
  border-radius: 100px !important;
  margin: 0 !important;
  line-height: 1.4 !important;
  white-space: nowrap !important;
}

/* Palette 3 toni: bronze / oro chiaro / ardesia — si coordinano senza eccesso di contrasto */
/* Kicker 1 (principale, tipo_di_evento) — bronze terra */
html body .wa-event-loop .wa-event-kicker .elementor-heading-title{
  color: #fff !important;
  background: var(--wa-accent) !important;
}
/* Kicker 2 — oro chiaro */
html body .wa-event-loop .wa-event-kicker-2 .elementor-heading-title{
  color: #5a3a1b !important;
  background: var(--wa-gold-soft) !important;
}
/* Kicker 3 — ardesia / grigio-blu */
html body .wa-event-loop .wa-event-kicker-3 .elementor-heading-title{
  color: #fff !important;
  background: var(--wa-mute) !important;
}

/* Modifier override: wa-event-kicker-dark forza scuro, wa-event-kicker-light forza chiaro */
html body .wa-event-loop .wa-event-kicker.wa-event-kicker-dark .elementor-heading-title,
html body .wa-event-loop .wa-event-kicker-2.wa-event-kicker-dark .elementor-heading-title,
html body .wa-event-loop .wa-event-kicker-3.wa-event-kicker-dark .elementor-heading-title{
  color: #fff !important;
  background: var(--wa-ink) !important;
}
html body .wa-event-loop .wa-event-kicker.wa-event-kicker-light .elementor-heading-title,
html body .wa-event-loop .wa-event-kicker-2.wa-event-kicker-light .elementor-heading-title,
html body .wa-event-loop .wa-event-kicker-3.wa-event-kicker-light .elementor-heading-title{
  color: var(--wa-accent) !important;
  background: var(--wa-bg-soft) !important;
}

/* Margin dopo l'ultimo kicker (spazio contenuto) */
html body .wa-event-loop .wa-event-body > .wa-event-title{
  margin-top: 4px !important;
}

/* Titolo evento — grosso, peso maggiore, em accent italic */
html body .wa-event-loop .wa-event-title .elementor-heading-title{
  font-family: "Fraunces", Georgia, serif !important;
  font-weight: 400 !important;
  font-size: clamp(28px, 3vw, 38px) !important;
  line-height: 1.1 !important;
  letter-spacing: -0.018em !important;
  color: var(--wa-ink) !important;
  margin: 0 0 10px !important;
  text-transform: none !important;
  transition: color .25s ease;
}
html body .wa-event-loop .wa-event-title em{
  font-family: "fraunces italic", "Fraunces", Georgia, serif !important;
  font-style: normal !important;
  color: var(--wa-accent) !important;
  font-weight: 400 !important;
}

/* Sottotitolo (sottotitolo_eventi) — Fraunces italic SOBRIO (no opsz 144 display) */
html body .wa-event-loop .wa-event-sub .elementor-heading-title{
  font-family: "Fraunces", Georgia, serif !important;
  font-style: italic !important;
  font-weight: 400 !important;
  font-size: 17px !important;
  line-height: 1.4 !important;
  letter-spacing: 0 !important;
  color: var(--wa-accent) !important;
  margin: 0 0 10px !important;
  text-transform: none !important;
  font-optical-sizing: auto !important;
  font-variation-settings: "opsz" 14 !important;
}

/* Descrizione (secondo_sottotitolo) */
html body .wa-event-loop .wa-event-desc .elementor-heading-title{
  font-family: "Inter", sans-serif !important;
  font-weight: 400 !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
  color: var(--wa-ink-soft) !important;
  margin: 0 0 18px !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

/* CTA come link testuale con freccia (non bottone pieno) */
html body .wa-event-loop .wa-event-btn{
  align-self: flex-start !important;
  margin-top: 0 !important;
}
html body .wa-event-loop .wa-event-btn .elementor-button-wrapper{
  text-align: left !important;
}
html body .wa-event-loop .wa-event-btn .elementor-button{
  font-family: "Inter", sans-serif !important;
  font-weight: 700 !important;
  font-size: 11.5px !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  padding: 0 !important;
  background: transparent !important;
  color: var(--wa-accent) !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transition: color .2s ease, transform .2s ease;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}
html body .wa-event-loop .wa-event-btn .elementor-button::after{
  content: "→";
  font-size: 14px;
  letter-spacing: 0;
  transition: transform .25s ease;
  display: inline-block;
}
html body .wa-event-loop .wa-event-btn .elementor-button:hover{
  background: transparent !important;
  color: var(--wa-ink) !important;
}
html body .wa-event-loop .wa-event-btn .elementor-button:hover::after{
  transform: translateX(4px);
}

/* Reset animazioni invisible */
html body .wa-event-loop .e-loop-item .elementor-invisible{
  visibility: visible !important;
  opacity: 1 !important;
  animation: none !important;
}

/* ---------- MOBILE ---------- */
@media (max-width: 767px){
  html body .wa-event-loop .wa-event-card > .e-con-inner{
    grid-template-columns: 1fr !important;
  }
  /* Datebox compatto orizzontale — weekday·day grandi, month/year/time inline piccoli */
  html body .wa-event-loop .wa-event-datebox{
    min-height: 110px !important;
    max-height: 130px;
    padding: 18px 20px !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 16px !important;
    flex-wrap: wrap;
  }
  html body .wa-event-loop .wa-event-datebox > .elementor-widget:not(.wa-event-img-overlay){
    width: auto !important;
    flex: 0 0 auto !important;
  }
  html body .wa-event-loop .wa-event-weekday .elementor-heading-title{
    font-size: 14px !important;
    margin: 0 !important;
  }
  html body .wa-event-loop .wa-event-day .elementor-heading-title{
    font-size: 44px !important;
    line-height: 1 !important;
  }
  html body .wa-event-loop .wa-event-month .elementor-heading-title,
  html body .wa-event-loop .wa-event-year .elementor-heading-title{
    margin: 0 !important;
    font-size: 11px !important;
  }
  html body .wa-event-loop .wa-event-time .elementor-heading-title{
    border-top: none !important;
    padding-top: 0 !important;
    padding-left: 12px !important;
    border-left: 1px solid rgba(255,255,255,0.25) !important;
    width: auto !important;
  }
  /* Body mobile compatto */
  html body .wa-event-loop .wa-event-body{
    padding: 22px 22px !important;
  }
  html body .wa-event-loop .wa-event-title .elementor-heading-title{
    font-size: 26px !important;
  }
  html body .wa-event-loop .wa-event-sub .elementor-heading-title{
    font-size: 16px !important;
  }
  html body .wa-event-loop .wa-event-desc .elementor-heading-title{
    font-size: 14.5px !important;
  }
  /* Kicker mobile pills wrap ok */
  html body .wa-event-loop .wa-event-body > .wa-event-kicker,
  html body .wa-event-loop .wa-event-body > .wa-event-kicker-2,
  html body .wa-event-loop .wa-event-body > .wa-event-kicker-3{
    margin: 0 6px 10px 0 !important;
  }
  html body .wa-event-loop .wa-event-kicker .elementor-heading-title,
  html body .wa-event-loop .wa-event-kicker-2 .elementor-heading-title,
  html body .wa-event-loop .wa-event-kicker-3 .elementor-heading-title{
    font-size: 9.5px !important;
    padding: 7px 13px !important;
  }
}
