/* Noemi Zirpoli — stable overrides migrated losslessly from Additional CSS — 2026-08-17 */
/* Additional CSS — consolidated visual hierarchy system — 2026-08-15 */

/* Sources links */
body .nz-sources a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .16em;
  text-decoration-thickness: 1px;
}
body .nz-sources a:hover,
body .nz-sources a:focus-visible {
  text-decoration-thickness: 2px;
}

/* Core widths and rhythm */
body .nz-page .container,
body .nz-blog-hub .nz-blog-section {
  width: min(100% - 48px, 1180px);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

body .nz-page .section,
body .nz-page .content-section,
body .nz-blog-hub .nz-blog-section:not(.nz-blog-opening) {
  padding-top: clamp(68px, 7vw, 96px);
  padding-bottom: clamp(68px, 7vw, 96px);
}

body .nz-page .eyebrow,
body .nz-blog-hub .nz-blog-eyebrow,
body .nz-blog-hub .eyebrow {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: .16em;
  font-weight: 700;
  text-transform: uppercase;
}

body .nz-page .body-copy {
  max-width: 720px;
}
body .nz-page .body-copy > p:first-child { margin-top: 0; }
body .nz-page .body-copy > p:last-child { margin-bottom: 0; }

body .nz-page .container > .lead,
body .nz-page .container > .lead-big,
body .nz-page .opening-intro .sub,
body .nz-page .contact-open .lead {
  max-width: 760px;
}

body .nz-page .h2,
body .nz-page .section-title,
body .nz-page .side-title,
body .nz-blog-hub .nz-blog-section > h2 {
  font-size: clamp(34px, 3.15vw, 43px);
  line-height: 1.11;
  letter-spacing: -.015em;
}

body .nz-page h3 {
  font-size: clamp(22px, 2vw, 27px);
  line-height: 1.2;
}

body .nz-page .card h3,
body .nz-page .profile h3,
body .nz-page .area h3,
body .nz-page .step h3,
body .nz-page .tool h3 {
  margin-bottom: 12px;
}

/* Functional backgrounds */
body .nz-page .section-bone {
  background: #F4EFE8 !important;
}

/* ------------------------------
   Institutional openings
   ------------------------------ */
body .nz-page-servizi .opening-intro,
body .nz-page-su-di-me .opening-intro {
  padding-top: clamp(58px, 6vw, 76px) !important;
  padding-bottom: clamp(62px, 6.5vw, 82px) !important;
  min-height: 0 !important;
  background: #FCFBF8;
}

body .nz-page-servizi .opening-intro .container,
body .nz-page-su-di-me .opening-intro .container {
  max-width: 1100px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  grid-template-areas:
    "eyebrow copy"
    "title copy"
    "title signoff";
  column-gap: clamp(54px, 7vw, 104px);
  row-gap: 0;
  align-items: start;
}

body .nz-page-servizi .opening-intro .eyebrow,
body .nz-page-su-di-me .opening-intro .eyebrow { grid-area: eyebrow; }

body .nz-page-servizi .opening-intro .opening-title,
body .nz-page-su-di-me .opening-intro .opening-title {
  grid-area: title;
  max-width: 560px;
  margin: 56px 0 0;
  font-size: clamp(40px, 4.15vw, 54px);
  line-height: 1.08;
  letter-spacing: -.02em;
}

body .nz-page-servizi .opening-intro .sub,
body .nz-page-su-di-me .opening-intro .sub {
  grid-area: copy;
  max-width: 520px;
  margin: 0;
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.62;
}

body .nz-page-servizi .opening-intro .signoff {
  grid-area: signoff;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: center;
  margin-top: 24px;
  padding-top: 0;
}
body .nz-page-servizi .opening-intro .signoff p { margin: 0; }

/* Tighten useful transition links instead of leaving them isolated */
body .nz-page .handoff,
body .nz-page .method-link,
body .nz-page .process-bottom,
body .nz-page .ricca-bottom {
  margin-top: 30px !important;
  margin-bottom: 0 !important;
}

/* Contact opening follows the same hierarchy, without forcing a two-column layout */
body .nz-page-contatti .contact-open {
  padding-top: clamp(58px, 6vw, 76px);
  padding-bottom: clamp(62px, 6.5vw, 82px);
}
body .nz-page-contatti .contact-open .container { max-width: 980px; }
body .nz-page-contatti .contact-opening-title {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(40px, 4.15vw, 54px);
  line-height: 1.08;
  letter-spacing: -.02em;
}

/* ------------------------------
   Metodo RICCA
   ------------------------------ */
body .nz-page-metodo-ricca .page-intro {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: clamp(58px, 6vw, 80px) 24px clamp(64px, 6.5vw, 86px) !important;
  box-sizing: border-box;
  text-align: center;
  background: #FCFBF8;
}
body .nz-page-metodo-ricca .page-intro .intro-title {
  max-width: 1040px;
  margin: 0 auto;
  font-size: clamp(42px, 4.5vw, 56px);
  line-height: 1.06;
  letter-spacing: -.023em;
}
body .nz-page-metodo-ricca .page-intro .intro-copy {
  max-width: 760px;
  margin: 24px auto 0;
  font-size: clamp(18px, 1.55vw, 20px);
  line-height: 1.6;
}
body .nz-page-metodo-ricca .nz-method-why {
  background: #F4EFE8 !important;
}
body .nz-page-metodo-ricca .nz-method-why .method-intro {
  column-gap: clamp(52px, 7vw, 104px);
  align-items: start;
}
body .nz-page-metodo-ricca .nz-method-why .h2 { max-width: 560px; }
body .nz-page-metodo-ricca .nz-method-why .body-copy { max-width: 640px; }

/* ------------------------------
   Newsletter band
   ------------------------------ */
body .nz-page .nz-newsletter-band .newsletter-inner {
  width: min(100% - 48px, 1180px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(300px, .88fr);
  gap: clamp(50px, 7vw, 96px);
  align-items: center;
}
body .nz-page .nz-newsletter-band .newsletter-inner > .wp-block-buttons {
  align-self: center;
  justify-content: stretch;
  margin: 0;
}
body .nz-page .nz-newsletter-band .newsletter-inner > .wp-block-buttons .wp-block-button,
body .nz-page .nz-newsletter-band .newsletter-inner > .wp-block-buttons .wp-block-button__link {
  width: 100%;
}

/* ------------------------------
   Final split CTA: identical geometry on Servizi and Metodo
   ------------------------------ */
body .nz-page .nz-final-split {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  align-items: stretch;
}
body .nz-page .nz-final-split > .cta-main,
body .nz-page .nz-final-split > .cta-side {
  width: auto !important;
  min-width: 0;
  min-height: 500px;
  padding: clamp(58px, 6vw, 82px) clamp(38px, 5vw, 72px) !important;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
body .nz-page .nz-final-split > .cta-main > *,
body .nz-page .nz-final-split > .cta-side > * {
  width: min(100%, 560px);
  margin-left: auto;
  margin-right: auto;
}
body .nz-page .nz-final-split > .cta-main > h2,
body .nz-page .nz-final-split > .cta-main > .display,
body .nz-page .nz-final-split > .cta-side > h3 {
  margin-top: 0;
}
body .nz-page .nz-final-split .wp-block-buttons {
  margin-top: 28px;
  margin-bottom: 0;
}
body .nz-page .nz-final-split .micro,
body .nz-page .nz-final-split .micro-cta {
  margin-top: 14px;
  margin-bottom: 0;
}

/* Home CTA text measure */
body .nz-page-home .nz-home-cta .cta-main > p:not(.eyebrow):not(.micro):not(.micro-cta) {
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
}

/* ------------------------------
   Blog opening and hierarchy
   ------------------------------ */
body .nz-blog-hub .nz-blog-opening {
  width: min(100% - 48px, 1100px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-top: clamp(58px, 6vw, 76px) !important;
  padding-bottom: clamp(62px, 6.5vw, 82px) !important;
}
body .nz-blog-hub .nz-blog-opening > .nz-blog-eyebrow {
  margin-bottom: 14px;
}
body .nz-blog-hub .nz-blog-opening > h2 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(40px, 4.15vw, 54px);
  line-height: 1.08;
  letter-spacing: -.02em;
}
body .nz-blog-hub .nz-blog-introduction__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
  gap: clamp(48px, 7vw, 88px);
  align-items: start;
  margin-top: 26px;
}
body .nz-blog-hub .nz-blog-introduction__lead > p:first-child {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: clamp(18px, 1.55vw, 20px);
  line-height: 1.6;
}
body .nz-blog-hub .nz-blog-introduction__secondary {
  margin-top: 0;
  font-size: 17px;
  line-height: 1.58;
}
body .nz-blog-hub .nz-blog-introduction__aside {
  margin: 0;
  padding-left: 24px;
  border-left: 2px solid #9B2C10;
}
body .nz-blog-hub .nz-blog-introduction__aside strong {
  display: block;
  margin-bottom: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
}
body .nz-blog-hub .nz-blog-introduction__aside span {
  display: block;
  font-size: 15px;
  line-height: 1.55;
}

body .nz-blog-hub .nz-blog-section:not(.nz-blog-opening) > h2 {
  max-width: 860px;
  margin-top: 0;
}
body .nz-blog-hub .nz-blog-intro {
  max-width: 760px;
}

/* ------------------------------
   Mobile
   ------------------------------ */
@media (max-width: 899px) {
  body .nz-page-servizi .opening-intro .container,
  body .nz-page-su-di-me .opening-intro .container {
    display: block;
  }
  body .nz-page-servizi .opening-intro .opening-title,
  body .nz-page-su-di-me .opening-intro .opening-title {
    margin-top: 0;
    margin-bottom: 22px;
  }
  body .nz-page-servizi .opening-intro .sub,
  body .nz-page-su-di-me .opening-intro .sub {
    max-width: 100%;
  }
  body .nz-page-servizi .opening-intro .signoff {
    margin-top: 22px;
  }

  body .nz-page .nz-newsletter-band .newsletter-inner {
    display: block;
    width: min(100% - 32px, 1180px);
  }
  body .nz-page .nz-newsletter-band .newsletter-inner > .wp-block-buttons {
    margin-top: 28px;
  }

  body .nz-page .nz-final-split {
    grid-template-columns: 1fr !important;
  }
  body .nz-page .nz-final-split > .cta-main,
  body .nz-page .nz-final-split > .cta-side {
    min-height: 0;
    padding: 52px 28px !important;
  }

  body .nz-blog-hub .nz-blog-introduction__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 767px) {
  body .nz-page .container,
  body .nz-blog-hub .nz-blog-section {
    width: min(100% - 32px, 1180px);
  }
  body .nz-page .section,
  body .nz-page .content-section,
  body .nz-blog-hub .nz-blog-section:not(.nz-blog-opening) {
    padding-top: 54px;
    padding-bottom: 54px;
  }
  body .nz-page-metodo-ricca .page-intro {
    padding: 48px 18px 56px !important;
  }
  body .nz-blog-hub .nz-blog-opening {
    width: min(100% - 32px, 1100px) !important;
    padding-top: 48px !important;
    padding-bottom: 56px !important;
  }
}

/* --- WPWriter addition --- */

/* ==========================================================
   NZ — Color rhythm audit — 2026-08-15
   Ogni sezione adiacente usa un fondo diverso e percepibile.
   ========================================================== */
:root {
  --nz-cream: #FCFBF8;
  --nz-bone-surface: #EEE4DA;
  --nz-mint-surface: #E5EFEA;
  --nz-green: #1E3029;
  --nz-terracotta: #9B2C10;
  --nz-walnut: #57483B;
}

/* Fondi funzionali: non dipendono più dal tema */
body .nz-page .section-bone { background: var(--nz-bone-surface) !important; }
body .nz-page .section-mint { background: var(--nz-mint-surface) !important; }
body .nz-page .section-green { background: var(--nz-green) !important; }

/* HOME: cream → mint → bone → cream → mint → bone → terracotta */
body .nz-page-home > .recognition { background: var(--nz-cream) !important; }
body .nz-page-home > .ricca { background: var(--nz-mint-surface) !important; }
body .nz-page-home > .about { background: var(--nz-bone-surface) !important; }
body .nz-page-home > .process { background: var(--nz-cream) !important; }
body .nz-page-home > .faq { background: var(--nz-mint-surface) !important; }
body .nz-page-home > .home-map { background: var(--nz-bone-surface) !important; }
body .nz-page-home > .nz-home-cta { background: var(--nz-terracotta) !important; }

/* SU DI ME: i blocchi neutri senza classe colore sono crema */
body .nz-page-su-di-me > .opening-intro,
body .nz-page-su-di-me > section.section:not(.section-bone):not(.section-mint):not(.section-green) {
  background: var(--nz-cream) !important;
}
body .nz-page-su-di-me > .cta { background: var(--nz-terracotta) !important; }
body .nz-page-su-di-me > .nz-newsletter-band { background: var(--nz-mint-surface) !important; }

/* SERVIZI: cream → bone → mint → cream → green → mint → cream → mint → green → bone → cream → split */
body .nz-page-servizi > .opening-intro,
body .nz-page-servizi > section.section:not(.section-bone):not(.section-mint):not(.section-green) {
  background: var(--nz-cream) !important;
}

/* METODO: cream → bone → mint → green → bone → cream → split */
body .nz-page-metodo-ricca > .page-intro,
body .nz-page-metodo-ricca > section.section:not(.section-bone):not(.section-mint):not(.section-green) {
  background: var(--nz-cream) !important;
}

/* CTA finali Servizi + Metodo: due metà diverse ma speculari */
body .nz-page .nz-final-split > .cta-main {
  background: var(--nz-terracotta) !important;
  color: #fff !important;
}
body .nz-page .nz-final-split > .cta-side {
  background: var(--nz-walnut) !important;
  color: #fff !important;
}
body .nz-page .nz-final-split > .cta-main h2,
body .nz-page .nz-final-split > .cta-main h3,
body .nz-page .nz-final-split > .cta-main p,
body .nz-page .nz-final-split > .cta-side h2,
body .nz-page .nz-final-split > .cta-side h3,
body .nz-page .nz-final-split > .cta-side p {
  color: inherit !important;
}

/* CONTATTI: cream → bone → mint → cream → terracotta → mint */
body .nz-page-contatti > .contact-open { background: var(--nz-cream) !important; }
body .nz-page-contatti > .nz-contact-choice { background: var(--nz-bone-surface) !important; }
body .nz-page-contatti > .nz-contact-process { background: var(--nz-mint-surface) !important; }
body .nz-page-contatti > .nz-contact-location { background: var(--nz-cream) !important; }
body .nz-page-contatti > .simple-cta {
  background: var(--nz-terracotta) !important;
  color: #fff !important;
}
body .nz-page-contatti > .simple-cta h2,
body .nz-page-contatti > .simple-cta p { color: inherit !important; }
body .nz-page-contatti > .nz-newsletter-band { background: var(--nz-mint-surface) !important; }

/* BLOG: cream → bone → mint → cream → bone → mint → terracotta */
body .nz-blog-hub > .nz-blog-opening { background: var(--nz-cream) !important; }
body .nz-blog-hub > .nz-blog-start { background: var(--nz-bone-surface) !important; }
body .nz-blog-hub > .nz-blog-paths { background: var(--nz-mint-surface) !important; }
body .nz-blog-hub > .nz-blog-topics { background: var(--nz-cream) !important; }
body .nz-blog-hub > .nz-blog-archive { background: var(--nz-bone-surface) !important; }
body .nz-blog-hub > .nz-blog-resources { background: var(--nz-mint-surface) !important; }
body .nz-blog-hub > .nz-blog-closing {
  background: var(--nz-terracotta) !important;
  color: #fff !important;
}
body .nz-blog-hub > .nz-blog-closing .nz-blog-cta {
  background: transparent !important;
  border: 0 !important;
  color: inherit !important;
}
body .nz-blog-hub > .nz-blog-closing h2,
body .nz-blog-hub > .nz-blog-closing p,
body .nz-blog-hub > .nz-blog-closing span { color: inherit !important; }
body .nz-blog-hub > .nz-blog-closing .nz-blog-button {
  background: var(--nz-cream) !important;
  color: var(--nz-terracotta) !important;
}


/* --- WPWriter addition --- */

/* ==========================================================
   NZ — Blog full-bleed bands — 2026-08-15
   Le sezioni colorate occupano tutta la viewport; il contenuto
   resta allineato alla gabbia editoriale interna.
   ========================================================== */
body .nz-blog-hub > .nz-blog-section {
  width: 100vw !important;
  max-width: none !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  box-sizing: border-box !important;
  padding-left: max(24px, calc((100vw - 1180px) / 2)) !important;
  padding-right: max(24px, calc((100vw - 1180px) / 2)) !important;
}

/* L'apertura mantiene una gabbia leggermente più raccolta, come le altre aperture istituzionali */
body .nz-blog-hub > .nz-blog-opening {
  width: 100vw !important;
  max-width: none !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding-left: max(24px, calc((100vw - 1100px) / 2)) !important;
  padding-right: max(24px, calc((100vw - 1100px) / 2)) !important;
}

@media (max-width: 767px) {
  body .nz-blog-hub > .nz-blog-section,
  body .nz-blog-hub > .nz-blog-opening {
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}


/* --- WPWriter addition --- */

/* ==========================================================
   NZ — Integrated newsletter CTA — 2026-08-15
   CTA nello stesso blocco editoriale, non isolata a destra.
   ========================================================== */

/* Su di me + Contatti: un solo blocco editoriale */
body .nz-page .nz-newsletter-integrated .newsletter-inner {
  display: block !important;
  width: min(100% - 48px, 1180px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body .nz-page .nz-newsletter-integrated .newsletter-inner > .wp-block-group {
  max-width: 760px;
}

body .nz-page .nz-newsletter-integrated .newsletter-buttons-integrated {
  margin-top: 28px !important;
  margin-bottom: 0 !important;
  justify-content: flex-start !important;
}

body .nz-page .nz-newsletter-integrated .newsletter-buttons-integrated .wp-block-button,
body .nz-page .nz-newsletter-integrated .newsletter-buttons-integrated .wp-block-button__link {
  width: auto !important;
}

body .nz-page .nz-newsletter-integrated .newsletter-buttons-integrated .wp-block-button__link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 290px;
  padding-left: 28px !important;
  padding-right: 28px !important;
}

/* Blog: stessa logica, dentro la fascia full-bleed */
body .nz-blog-hub .nz-blog-closing-integrated .nz-blog-cta--integrated {
  display: block !important;
  grid-template-columns: none !important;
  max-width: 760px;
  margin: 0 !important;
}

body .nz-blog-hub .nz-blog-closing-integrated .nz-blog-newsletter-copy--integrated {
  max-width: 760px;
}

body .nz-blog-hub .nz-blog-closing-integrated .nz-blog-cta__action--integrated {
  margin-top: 28px !important;
  margin-left: 0 !important;
  text-align: left !important;
}

body .nz-blog-hub .nz-blog-closing-integrated .nz-blog-button--integrated {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: 190px;
  padding-left: 28px !important;
  padding-right: 28px !important;
}

@media (max-width: 767px) {
  body .nz-page .nz-newsletter-integrated .newsletter-inner {
    width: min(100% - 32px, 1180px) !important;
  }

  body .nz-page .nz-newsletter-integrated .newsletter-buttons-integrated .wp-block-button__link,
  body .nz-blog-hub .nz-blog-closing-integrated .nz-blog-button--integrated {
    min-width: 0;
    width: 100% !important;
  }
}


/* --- WPWriter addition --- */

/* ==========================================================
   NZ — True mirrored final CTA + newsletter axis — 2026-08-15
   ========================================================== */

@media (min-width: 900px) {
  /* Servizi + Metodo: stessa gabbia verticale nelle due metà */
  body .nz-page .nz-final-split {
    align-items: stretch !important;
  }

  body .nz-page .nz-final-split > .cta-main,
  body .nz-page .nz-final-split > .cta-side {
    min-height: 590px !important;
    padding: 64px clamp(42px, 5vw, 72px) 54px !important;
    display: grid !important;
    grid-template-rows: auto 156px minmax(190px, 1fr) auto 42px !important;
    row-gap: 16px !important;
    align-content: stretch !important;
    justify-content: initial !important;
    text-align: left !important;
  }

  body .nz-page .nz-final-split > .cta-main > *,
  body .nz-page .nz-final-split > .cta-side > * {
    width: min(100%, 520px) !important;
    max-width: 520px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
  }

  body .nz-page .nz-final-split > .cta-main > .eyebrow,
  body .nz-page .nz-final-split > .cta-side > .eyebrow {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    align-self: start;
  }

  body .nz-page .nz-final-split > .cta-main > h2,
  body .nz-page .nz-final-split > .cta-main > .display,
  body .nz-page .nz-final-split > .cta-side > h3 {
    margin: 0 !important;
    font-size: clamp(35px, 3.3vw, 46px) !important;
    line-height: 1.09 !important;
    letter-spacing: -.018em !important;
    align-self: start;
    text-align: left !important;
  }

  body .nz-page .nz-final-split .cta-copy {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    align-self: start;
    font-size: 17px;
    line-height: 1.6;
  }

  body .nz-page .nz-final-split .cta-copy > p {
    margin-top: 0 !important;
    margin-bottom: 14px !important;
  }

  body .nz-page .nz-final-split .cta-copy > p:last-child {
    margin-bottom: 0 !important;
  }

  body .nz-page .nz-final-split .wp-block-buttons {
    width: min(100%, 520px) !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    justify-content: flex-start !important;
    align-self: start;
  }

  body .nz-page .nz-final-split .wp-block-button {
    margin-left: 0 !important;
    margin-right: auto !important;
  }

  body .nz-page .nz-final-split .micro,
  body .nz-page .nz-final-split .micro-cta {
    min-height: 42px;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    align-self: end;
    text-align: left !important;
  }

  /* Newsletter: il bottone deve partire sullo stesso asse del copy */
  body .nz-page .nz-newsletter-integrated .newsletter-inner > .wp-block-group {
    width: min(100%, 760px) !important;
    max-width: 760px !important;
    margin-left: 0 !important;
    margin-right: auto !important;
  }

  body .nz-page .nz-newsletter-integrated .newsletter-buttons-integrated {
    display: flex !important;
    width: 100% !important;
    max-width: 760px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    justify-content: flex-start !important;
    text-align: left !important;
  }

  body .nz-page .nz-newsletter-integrated .newsletter-buttons-integrated .wp-block-button {
    margin-left: 0 !important;
    margin-right: auto !important;
  }

  body .nz-page .nz-newsletter-integrated .newsletter-buttons-integrated .wp-block-button__link {
    margin-left: 0 !important;
    margin-right: auto !important;
  }
}

@media (max-width: 899px) {
  body .nz-page .nz-final-split > .cta-main,
  body .nz-page .nz-final-split > .cta-side {
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 52px 28px !important;
    text-align: left !important;
  }

  body .nz-page .nz-final-split > .cta-main > *,
  body .nz-page .nz-final-split > .cta-side > * {
    width: 100% !important;
    max-width: 560px !important;
    min-height: 0 !important;
  }

  body .nz-page .nz-final-split > .cta-main > h2,
  body .nz-page .nz-final-split > .cta-main > .display,
  body .nz-page .nz-final-split > .cta-side > h3 {
    min-height: 0 !important;
  }

  body .nz-page .nz-final-split .cta-copy {
    min-height: 0 !important;
    margin-top: 20px !important;
  }

  body .nz-page .nz-final-split .wp-block-buttons {
    margin-top: 26px !important;
  }

  body .nz-page .nz-final-split .micro,
  body .nz-page .nz-final-split .micro-cta {
    min-height: 0 !important;
    margin-top: 14px !important;
  }
}


/* --- WPWriter addition --- */

/* ==========================================================
   NZ — Blog closing newsletter centered — 2026-08-15
   ========================================================== */
body .nz-blog-hub .nz-blog-closing-integrated .nz-blog-cta--integrated,
body .nz-blog-hub .nz-blog-closing-integrated .nz-blog-newsletter-copy--integrated {
  width: min(100%, 820px) !important;
  max-width: 820px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

body .nz-blog-hub .nz-blog-closing-integrated .nz-blog-newsletter-copy--integrated > * {
  margin-left: auto !important;
  margin-right: auto !important;
}

body .nz-blog-hub .nz-blog-closing-integrated .nz-blog-newsletter-lead {
  max-width: 720px !important;
}

body .nz-blog-hub .nz-blog-closing-integrated .nz-blog-cta__action--integrated {
  display: flex !important;
  justify-content: center !important;
  width: 100% !important;
  margin: 28px auto 0 !important;
  text-align: center !important;
}

body .nz-blog-hub .nz-blog-closing-integrated .nz-blog-button--integrated {
  margin-left: auto !important;
  margin-right: auto !important;
}


/* --- WPWriter addition --- */

/* ==========================================================
   NZ — Home RICCA contrast fix — 2026-08-15
   Mantiene il fondo mint ma ripristina contrasto e gerarchia.
   ========================================================== */
body .nz-page-home > .ricca {
  background: var(--nz-mint-surface, #E5EFEA) !important;
  color: #1E3029 !important;
}

body .nz-page-home > .ricca h2,
body .nz-page-home > .ricca h3,
body .nz-page-home > .ricca p,
body .nz-page-home > .ricca .lead,
body .nz-page-home > .ricca .ricca-letter,
body .nz-page-home > .ricca .ricca-name,
body .nz-page-home > .ricca .text-link {
  color: #1E3029 !important;
}

body .nz-page-home > .ricca .eyebrow {
  color: #9B2C10 !important;
}

body .nz-page-home > .ricca .ricca-card {
  border-color: rgba(30, 48, 41, .22) !important;
}

body .nz-page-home > .ricca .ricca-letter {
  color: #9B2C10 !important;
}

body .nz-page-home > .ricca .ricca-name {
  color: #1E3029 !important;
  font-weight: 700 !important;
}

body .nz-page-home > .ricca .text-link {
  border-color: rgba(30, 48, 41, .35) !important;
}


/* --- WPWriter addition --- */

/* ==========================================================
   NZ — Mobile rendering optimization — 2026-08-15
   Riduce il lavoro iniziale del browser sulle sezioni molto sotto la piega.
   Nessun contenuto viene rimosso: viene renderizzato appena si avvicina al viewport.
   ========================================================== */
@media (max-width: 900px) {
  body .nz-page-home > .about,
  body .nz-page-home > .process,
  body .nz-page-home > .faq,
  body .nz-page-home > .home-map,
  body .nz-page-home > .nz-home-cta {
    content-visibility: auto;
    contain-intrinsic-size: auto 900px;
  }
}


/* --- WPWriter addition --- */

/* ==========================================================
   NZ — PageSpeed accessibility fixes — 2026-08-15
   Contrasto process + microcopy CTA + touch targets mobile.
   ========================================================== */
body .nz-page-home > .process .step-num,
body .nz-page-home > .process .step-num p {
  color: #57483B !important;
  opacity: 1 !important;
}

body .nz-page-home > .process .step-num p {
  font-weight: 700 !important;
}

body .nz-page-home > .nz-home-cta .micro {
    color: var(--nz-green) !important;
  opacity: 1 !important;
}

@media (max-width: 767px) {
  body footer a[href^="tel:"],
  body footer a[href^="mailto:"] {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 44px !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
  }
}


/* --- WPWriter addition --- */

/* Fideuram footer/theme logo: reserve layout space before load */
body img.nz-inst-logo {
  aspect-ratio: 416 / 164 !important;
  height: auto !important;
}


/* --- WPWriter addition --- */

/* SEO technical audit cache refresh marker — 2026-08-16 */


/* --- WPWriter addition --- */

/* NZ — Mobile footer CTA spacing — 2026-08-16 */
@media (max-width: 767px) {
  body footer .wp-block-button:has(a[href*="/contatti/"]),
  body footer a.wp-block-button__link[href*="/contatti/"],
  body footer a.wp-element-button[href*="/contatti/"][class*="button"],
  body footer a[href*="/contatti/"][class*="btn"] {
    margin-bottom: 28px !important;
  }
}


/* --- WPWriter addition --- */

/* ==========================================================
   NZ — Single article mobile system — 2026-08-16
   Responsive fix globale per tutti gli articoli.
   ========================================================== */
@media (max-width: 767px) {
  body.single-post {
    overflow-x: hidden;
  }

  /* Hero/header: mai più altezze rigide che tagliano titolo o metadati */
  body.single-post .entry-header,
  body.single-post .post-header,
  body.single-post .article-header,
  body.single-post .nz-article-header,
  body.single-post .nz-post-hero,
  body.single-post .nz-article-hero,
  body.single-post [class*="post-hero"],
  body.single-post [class*="article-hero"],
  body.single-post [class*="article-header"] {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    box-sizing: border-box !important;
  }

  /* Titolo articolo: grande ma leggibile su 360–430 px */
  body.single-post .entry-title,
  body.single-post .entry-header h1,
  body.single-post .post-header h1,
  body.single-post .article-header h1,
  body.single-post .nz-article-title,
  body.single-post [class*="post-hero"] h1,
  body.single-post [class*="article-hero"] h1,
  body.single-post [class*="article-header"] h1 {
    margin-top: 0 !important;
    margin-bottom: 22px !important;
    font-size: clamp(36px, 10.7vw, 46px) !important;
    line-height: 1.04 !important;
    letter-spacing: -.018em !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    hyphens: auto;
  }

  /* Respiro interno della testata senza alterare breadcrumb o header sito */
  body.single-post .entry-header,
  body.single-post .post-header,
  body.single-post .article-header,
  body.single-post .nz-article-header,
  body.single-post .nz-post-hero,
  body.single-post .nz-article-hero {
    padding-top: 28px !important;
    padding-bottom: 32px !important;
  }

  /* Gabbia di lettura mobile */
  body.single-post .entry-content {
    width: min(calc(100% - 40px), 760px) !important;
    max-width: 760px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }

  /* L'excerpt è già presente nell'hero: evita la duplicazione immediata nel corpo */
  body.single-post .entry-content > .nz-article-lead:first-child,
  body.single-post article .entry-content > .nz-article-lead:first-child {
    display: none !important;
  }

  /* Ritmo editoriale del corpo */
  body.single-post .entry-content p,
  body.single-post .entry-content li {
    font-size: 18px !important;
    line-height: 1.68 !important;
  }

  body.single-post .entry-content > p {
    margin-top: 0;
    margin-bottom: 1.35em;
  }

  body.single-post .entry-content h2 {
    margin-top: 48px !important;
    margin-bottom: 18px !important;
    font-size: clamp(29px, 8.4vw, 35px) !important;
    line-height: 1.12 !important;
    letter-spacing: -.012em !important;
  }

  body.single-post .entry-content h3 {
    margin-top: 38px !important;
    margin-bottom: 14px !important;
    font-size: clamp(24px, 6.8vw, 29px) !important;
    line-height: 1.16 !important;
  }

  body.single-post .entry-content ul,
  body.single-post .entry-content ol {
    padding-left: 1.25em !important;
    margin-top: 18px !important;
    margin-bottom: 28px !important;
  }

  body.single-post .entry-content li + li {
    margin-top: 12px !important;
  }

  /* Box editoriali e CTA non possono uscire dalla viewport */
  body.single-post .entry-content blockquote,
  body.single-post .nz-key-statement,
  body.single-post .nz-case-study,
  body.single-post .nz-resource-cta,
  body.single-post .nz-related-item,
  body.single-post .nz-rail-summary-item,
  body.single-post .nz-rail-related-item,
  body.single-post .nz-rail-context-item {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  body.single-post .nz-resource-cta,
  body.single-post .nz-case-study__rows > div,
  body.single-post .nz-rail-related-item {
    grid-template-columns: 1fr !important;
  }

  body.single-post .nz-button,
  body.single-post .nz-resource-cta .nz-button {
    max-width: 100% !important;
    white-space: normal !important;
    text-align: center !important;
    line-height: 1.3 !important;
  }

  body.single-post img,
  body.single-post figure,
  body.single-post iframe,
  body.single-post table {
    max-width: 100% !important;
  }
}


/* --- WPWriter addition --- */

/* ==========================================================
   NZ — Mobile robust fallback: footer + single posts — 2026-08-16
   ========================================================== */
@media (max-width: 767px) {
  /* Footer/contact CTA: fallback indipendente dal wrapper semantico */
  body .wp-block-button:has(a[href*="/contatti/"]),
  body a.wp-block-button__link[href*="/contatti/"],
  body a.wp-element-button[href*="/contatti/"] {
    margin-bottom: 28px !important;
  }

  /* Negli articoli il lead è già ripreso dalla testata: elimina il duplicato nel body */
  body.single-post p.nz-article-lead,
  body.post-template-default p.nz-article-lead {
    display: none !important;
  }

  /* Titolo articolo: fallback sul vero H1, a prescindere dalle classi del template */
  body.single-post main h1,
  body.post-template-default main h1 {
    font-size: clamp(34px, 9.5vw, 42px) !important;
    line-height: 1.07 !important;
    letter-spacing: -.018em !important;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    top: auto !important;
    transform: none !important;
    max-width: 100% !important;
    overflow-wrap: break-word !important;
  }

  /* I contenitori immediati della testata non devono avere altezza rigida */
  body.single-post main article > header,
  body.post-template-default main article > header,
  body.single-post main article > section:first-child,
  body.post-template-default main article > section:first-child {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding-top: 28px !important;
    padding-bottom: 30px !important;
    box-sizing: border-box !important;
  }

  /* Corpo articolo: fallback anche quando il tema non usa .entry-content */
  body.single-post main article,
  body.post-template-default main article {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  body.single-post main article > p,
  body.single-post main article > h2,
  body.single-post main article > h3,
  body.single-post main article > ul,
  body.single-post main article > ol,
  body.single-post main article > blockquote,
  body.post-template-default main article > p,
  body.post-template-default main article > h2,
  body.post-template-default main article > h3,
  body.post-template-default main article > ul,
  body.post-template-default main article > ol,
  body.post-template-default main article > blockquote {
    max-width: calc(100vw - 40px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }
}


/* --- WPWriter addition --- */

/* NZ — Mobile footer structural spacing fix — 2026-08-16 */
@media (max-width: 767px) {
  body footer > *:first-child,
  body .site-footer > *:first-child,
  body #colophon > *:first-child,
  body [class*="footer"] > [class*="contact"]:first-child,
  body [class*="footer"] > [class*="top"]:first-child {
    padding-bottom: 32px !important;
    box-sizing: border-box !important;
  }
}


/* --- WPWriter addition --- */

/* ==========================================================
   NZ — MOBILE FIX SU CLASSI REALI DEL TEMA — 2026-08-16
   ========================================================== */
@media (max-width: 781px) {
  /* FOOTER: spazio verde reale tra CTA Contatti e fascia istituzionale */
  body .nz-site-footer .nz-footer-grid {
    padding-bottom: 34px !important;
    box-sizing: border-box !important;
  }

  /* ARTICOLI: hero realmente fluida su smartphone */
  body .nz-single-article .nz-article-hero {
    width: calc(100% - 32px) !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    border-radius: 20px !important;
  }

  body .nz-single-article .nz-article-hero::after {
    display: none !important;
  }

  body .nz-single-article .nz-article-hero__copy {
    position: relative !important;
    order: 1 !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 26px 20px 28px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    overflow: visible !important;
    box-sizing: border-box !important;
    background: var(--nz-sage, #E5EFEA) !important;
  }

  body .nz-single-article .nz-article-hero__title {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    font-size: clamp(34px, 9vw, 42px) !important;
    line-height: 1.05 !important;
    letter-spacing: -0.025em !important;
    text-wrap: balance !important;
    overflow-wrap: normal !important;
  }

  body .nz-single-article .nz-article-hero__lead {
    width: 100% !important;
    max-width: none !important;
    margin: 17px 0 0 !important;
  }

  body .nz-single-article .nz-article-hero__lead p {
    margin: 0 !important;
    font-size: 16px !important;
    line-height: 1.55 !important;
  }

  body .nz-single-article .nz-article-hero__meta {
    width: 100% !important;
    margin: 20px 0 0 !important;
    padding: 16px 0 0 !important;
    min-height: 0 !important;
    height: auto !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px 14px !important;
    align-items: center !important;
    overflow: visible !important;
  }

  body .nz-single-article .nz-author-mark {
    width: 32px !important;
    height: 32px !important;
  }

  body .nz-single-article .nz-article-hero__image {
    position: relative !important;
    inset: auto !important;
    order: 2 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    aspect-ratio: 16 / 9 !important;
    overflow: hidden !important;
  }

  body .nz-single-article .nz-article-hero__image img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 16 / 9 !important;
    object-fit: cover !important;
  }

  /* Corpo articolo: gabbia più leggibile e niente introduzione duplicata */
  body .nz-single-article .nz-article-shell {
    width: calc(100% - 40px) !important;
    max-width: 720px !important;
    margin: 38px auto 0 !important;
    display: block !important;
  }

  body .nz-single-article .nz-toc-wrap {
    display: none !important;
  }

  body .nz-single-article .nz-article-body-wrap,
  body .nz-single-article .nz-article-body {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  body .nz-single-article .nz-article-body > .nz-article-lead:first-child {
    display: none !important;
  }

  body .nz-single-article .nz-article-body,
  body .nz-single-article .nz-article-body p,
  body .nz-single-article .nz-article-body li {
    font-size: 17px !important;
    line-height: 1.68 !important;
  }

  body .nz-single-article .nz-article-body h2 {
    margin-top: 48px !important;
    margin-bottom: 17px !important;
    font-size: clamp(30px, 8vw, 36px) !important;
    line-height: 1.13 !important;
  }

  body .nz-single-article .nz-article-body h3 {
    margin-top: 36px !important;
    margin-bottom: 13px !important;
    font-size: 25px !important;
    line-height: 1.18 !important;
  }

  body .nz-single-article .nz-resource-cta,
  body .nz-single-article .nz-author-section,
  body .nz-single-article .nz-related {
    width: calc(100% - 32px) !important;
    max-width: none !important;
  }
}


/* --- WPWriter addition --- */

/* ==========================================================
   NZ — Mobile article flow + footer CTA proportion — 2026-08-16 21:42
   Correzione precisa dopo test Phase 1.
   ========================================================== */
@media (max-width: 781px) {
  /* ARTICLE HERO: ogni elemento torna nel flusso normale */
  html body.single-post .nz-single-article .nz-article-hero {
    width: calc(100% - 24px) !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
    overflow: hidden !important;
    border-radius: 16px !important;
  }

  html body.single-post .nz-single-article .nz-article-hero__copy {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 24px 20px 22px !important;
    display: block !important;
    overflow: visible !important;
    transform: none !important;
    box-sizing: border-box !important;
  }

  html body.single-post .nz-single-article .nz-article-hero__category,
  html body.single-post .nz-single-article .nz-article-hero__title,
  html body.single-post .nz-single-article .nz-article-hero__lead,
  html body.single-post .nz-single-article .nz-article-hero__meta {
    position: static !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    float: none !important;
    clear: both !important;
  }

  html body.single-post .nz-single-article .nz-article-hero__category {
    display: block !important;
    width: 100% !important;
    margin: 0 0 12px !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
  }

  html body.single-post .nz-single-article .nz-article-hero__title {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: clamp(30px, 8vw, 36px) !important;
    line-height: 1.09 !important;
    letter-spacing: -0.018em !important;
    text-wrap: balance !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
  }

  html body.single-post .nz-single-article .nz-article-hero__lead {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 16px 0 0 !important;
    padding: 0 !important;
  }

  html body.single-post .nz-single-article .nz-article-hero__lead p {
    margin: 0 !important;
    font-size: 15.5px !important;
    line-height: 1.55 !important;
  }

  html body.single-post .nz-single-article .nz-article-hero__meta {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 18px 0 0 !important;
    padding: 14px 0 0 !important;
    gap: 9px 12px !important;
    overflow: visible !important;
  }

  html body.single-post .nz-single-article .nz-article-hero__image {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    transform: none !important;
  }

  html body.single-post .nz-single-article .nz-article-shell {
    width: calc(100% - 32px) !important;
    max-width: 720px !important;
    margin: 30px auto 0 !important;
  }

  /* FOOTER CTA: conserva il distacco ma non sembra un banner */
  html body .nz-site-footer .nz-footer-grid .wp-block-buttons,
  html body .nz-site-footer .nz-footer-grid .wp-block-button {
    width: auto !important;
    max-width: 100% !important;
    justify-content: flex-start !important;
  }

  html body .nz-site-footer .nz-footer-grid .wp-block-button__link {
    width: auto !important;
    min-width: 220px !important;
    max-width: 100% !important;
    min-height: 46px !important;
    padding: 13px 20px !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
  }
}


/* --- WPWriter addition --- */

/* NZ — Check-up patrimoniale: mobile hero exception — 2026-08-16 */
@media (max-width: 781px) {
  body.postid-3676 .nz-single-article .nz-article-hero__title {
    font-size: clamp(28px, 7.6vw, 33px) !important;
    line-height: 1.06 !important;
    letter-spacing: -.02em !important;
  }

  body.postid-3676 .nz-single-article .nz-article-hero__lead {
    display: none !important;
  }

  body.postid-3676 .nz-single-article .nz-article-hero__meta {
    margin-top: 18px !important;
  }
}


/* --- WPWriter addition --- */

/* NZ — Check-up patrimoniale FINAL mobile override — beats Phase 1 inline CSS — 2026-08-16 */
@media (max-width: 781px) {
  html body.single.single-post.postid-3676 .nz-single-article .nz-article-hero__title {
    font-size: clamp(28px, 7.4vw, 32px) !important;
    line-height: 1.06 !important;
    letter-spacing: -0.018em !important;
    margin: 0 !important;
  }

  html body.single.single-post.postid-3676 .nz-single-article .nz-article-hero__lead {
    display: none !important;
    height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  html body.single.single-post.postid-3676 .nz-single-article .nz-article-hero__meta {
    position: relative !important;
    inset: auto !important;
    margin: 16px 0 0 !important;
    padding-top: 12px !important;
    transform: none !important;
  }
}


/* --- WPWriter addition --- */

/* NZ — Check-up patrimoniale: mobile featured-image focal point — 2026-08-16 */
@media (max-width: 781px) {
  html body.single.single-post.postid-3676 .nz-single-article .nz-article-hero__image img {
    object-position: 50% 72% !important;
  }
}


/* --- WPWriter addition --- */

/* NZ — Check-up patrimoniale: focal point correction — 2026-08-16 */
@media (max-width: 781px) {
  html body.single.single-post.postid-3676 .nz-single-article .nz-article-hero__image img {
    object-position: 50% 28% !important;
  }
}


/* --- WPWriter addition --- */

/* NZ — Mobile article hero images: preserve native aspect ratio — 2026-08-16 */
@media (max-width: 781px) {
  html body.single.single-post[class*="postid-"] .nz-single-article .nz-article-hero__image {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    overflow: hidden !important;
  }

  html body.single.single-post[class*="postid-"] .nz-single-article .nz-article-hero__image img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: 50% 50% !important;
  }
}


/* --- WPWriter addition --- */

/* NZ — QA MOBILE Metodo RICCA card grids — 2026-08-16 */
@media (max-width: 767px) {
  html body .nz-page-metodo-ricca .card-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  html body .nz-page-metodo-ricca .card-grid > .card {
    min-width: 0 !important;
    width: 100% !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--bone, #D5CABD) !important;
    padding: 28px 22px !important;
  }
  html body .nz-page-metodo-ricca .card-grid > .card:last-child {
    border-bottom: 0 !important;
  }
  html body .nz-page-metodo-ricca .card-grid > .card h3 {
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
  }
}


/* --- WPWriter addition --- */

/* NZ — QA MOBILE/FORM Contatti CF7 — 2026-08-16 */
body .nz-page-contatti .contact-form .wpcf7 form {
  width: 100% !important;
  max-width: 100% !important;
}
body .nz-page-contatti .contact-form .wpcf7 form > p {
  margin: 0 !important;
}
body .nz-page-contatti .contact-form .wpcf7 input[type="text"],
body .nz-page-contatti .contact-form .wpcf7 input[type="email"],
body .nz-page-contatti .contact-form .wpcf7 input[type="tel"],
body .nz-page-contatti .contact-form .wpcf7 textarea {
  max-width: 100% !important;
  box-sizing: border-box !important;
}
body .nz-page-contatti .contact-form .wpcf7 .wpcf7-acceptance label {
  display: grid !important;
  grid-template-columns: 20px minmax(0,1fr) !important;
  gap: 10px !important;
  align-items: start !important;
  font-weight: 400 !important;
}
body .nz-page-contatti .contact-form .wpcf7 .wpcf7-acceptance input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  margin: 3px 0 0 !important;
  padding: 0 !important;
}
body .nz-page-contatti .contact-form .wpcf7 input.wpcf7-submit {
  width: auto !important;
  min-width: 190px !important;
  min-height: 48px !important;
  padding: 13px 22px !important;
  border: 1px solid #9B2C10 !important;
  background: #9B2C10 !important;
  color: #fff !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}
@media (max-width: 767px) {
  body .nz-page-contatti .contact-form .wpcf7 input.wpcf7-submit {
    width: 100% !important;
  }
}


/* --- WPWriter addition --- */

/* NZ — FOOTER MOBILE DEFINITIVO SU MARKUP REALE — 2026-08-16 */
@media (max-width: 900px) {
  html body .nz-site-footer {
    padding: 44px 20px 0 !important;
    overflow: hidden !important;
  }

  html body .nz-site-footer .nz-footer-grid {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) !important;
    gap: 30px !important;
    width: 100% !important;
    max-width: 760px !important;
    margin: 0 auto !important;
    padding: 0 0 34px !important;
  }

  html body .nz-site-footer .nz-footer-grid > * {
    min-width: 0 !important;
    width: 100% !important;
    grid-column: auto !important;
  }

  html body .nz-site-footer .nz-footer-brand {
    width: min(230px, 78vw) !important;
    height: 64px !important;
    margin: 0 0 10px !important;
  }

  html body .nz-site-footer .nz-footer-social {
    margin-top: 18px !important;
  }

  html body .nz-site-footer .nz-footer-grid h3 {
    margin: 0 0 10px !important;
  }

  html body .nz-site-footer .wp-block-navigation__container {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
  }

  html body .nz-site-footer .wp-block-navigation-item,
  html body .nz-site-footer .wp-block-navigation-item__content {
    width: 100% !important;
  }

  html body .nz-site-footer .wp-block-navigation-item__content {
    display: flex !important;
    align-items: center !important;
    min-height: 42px !important;
    padding: 5px 0 !important;
  }

  /* Annulla i vecchi margini generici applicati a tutti i CTA /contatti/ */
  html body .nz-site-footer .wp-block-buttons,
  html body .nz-site-footer .wp-block-button,
  html body .nz-site-footer .wp-block-button__link,
  html body .nz-site-footer a[href*="/contatti/"] {
    margin-bottom: 0 !important;
  }

  html body .nz-site-footer .wp-block-buttons {
    margin-top: 16px !important;
  }

  html body .nz-site-footer .wp-block-button__link {
    width: auto !important;
    min-width: 220px !important;
    min-height: 46px !important;
    padding: 13px 20px !important;
  }

  /* Fascia istituzionale: bianca, leggibile, non schiacciata */
  html body .nz-site-footer .nz-footer-institutional {
    display: grid !important;
    grid-template-columns: minmax(0,1.35fr) minmax(0,1fr) !important;
    gap: 14px 18px !important;
    align-items: center !important;
    margin: 0 -20px !important;
    padding: 18px 20px !important;
    background: #FCFBF8 !important;
    color: #1E3029 !important;
    border-top: 1px solid rgba(30,48,41,.12) !important;
    border-bottom: 1px solid rgba(30,48,41,.14) !important;
  }

  html body .nz-site-footer .nz-footer-institutional .nz-inst-logo {
    display: block !important;
    width: 100% !important;
    max-width: 220px !important;
    max-height: 54px !important;
    margin: 0 !important;
    object-fit: contain !important;
    object-position: left center !important;
  }

  html body .nz-site-footer .nz-footer-institutional .nz-inst-ocf {
    max-width: 160px !important;
    max-height: 50px !important;
  }

  html body .nz-site-footer .nz-footer-institutional .nz-inst-copy {
    grid-column: 1 / -1 !important;
    margin: 0 !important;
    padding: 12px 0 0 !important;
    border-top: 1px solid #D5CABD !important;
    color: #445149 !important;
    font-size: 11.5px !important;
    line-height: 1.5 !important;
  }

  html body .nz-site-footer .nz-footer-bottom {
    margin: 0 -20px !important;
    padding: 18px 20px 20px !important;
    background: #15231E !important;
    border-top: 0 !important;
  }

  html body .nz-site-footer .nz-footer-bottom .nz-legal {
    max-width: 760px !important;
    margin: 0 auto !important;
  }

  html body .nz-site-footer .nz-legal-links {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px 14px !important;
    margin: 0 0 10px !important;
  }

  html body .nz-site-footer .nz-copyright {
    margin: 0 0 10px !important;
  }

  html body .nz-site-footer .nz-disclaimer {
    margin: 7px 0 0 !important;
    font-size: 10.5px !important;
    line-height: 1.45 !important;
    color: rgba(255,255,255,.68) !important;
  }
}


/* --- WPWriter addition --- */

/* NZ — reCAPTCHA v3: badge hidden, disclosure shown under form — 2026-08-16 */
.grecaptcha-badge {
  visibility: hidden !important;
}
body .nz-page-contatti .contact-form .nz-recaptcha-note {
  margin: 14px 0 0 !important;
  color: #66736D !important;
  font-size: 11.5px !important;
  line-height: 1.5 !important;
}
body .nz-page-contatti .contact-form .nz-recaptcha-note a {
  color: #57483B !important;
  text-decoration: underline !important;
  text-underline-offset: 2px !important;
}


/* --- WPWriter addition --- */

/* NZ — QA MOBILE footer compact — 2026-08-16 */
@media (max-width: 767px) {
  html body .nz-site-footer {
    padding-top: 30px !important;
  }

  html body .nz-site-footer .nz-footer-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    gap: 20px 22px !important;
    padding-bottom: 24px !important;
  }

  html body .nz-site-footer .nz-footer-grid > .wp-block-group {
    min-width: 0 !important;
  }

  /* Brand: compatto; il claim è già presente nel sito e su mobile allunga inutilmente il footer */
  html body .nz-site-footer .nz-footer-grid > .wp-block-group:nth-child(1) {
    grid-column: 1 / -1 !important;
  }
  html body .nz-site-footer .nz-footer-grid > .wp-block-group:nth-child(1) > p.wp-block-paragraph {
    display: none !important;
  }
  html body .nz-site-footer .nz-footer-brand {
    width: 190px !important;
    height: 50px !important;
    margin: 0 0 10px !important;
  }
  html body .nz-site-footer .nz-footer-social {
    margin-top: 0 !important;
  }

  /* Esplora + Risorse affiancati */
  html body .nz-site-footer .nz-footer-grid > .wp-block-group:nth-child(2),
  html body .nz-site-footer .nz-footer-grid > .wp-block-group:nth-child(3) {
    grid-column: auto !important;
  }

  /* Contatti sotto, a tutta larghezza */
  html body .nz-site-footer .nz-footer-grid > .wp-block-group:nth-child(4) {
    grid-column: 1 / -1 !important;
    padding-top: 4px !important;
    border-top: 1px solid rgba(255,255,255,.16) !important;
  }

  html body .nz-site-footer .nz-footer-grid h3 {
    margin: 0 0 7px !important;
    font-size: 11px !important;
    line-height: 1.3 !important;
    letter-spacing: .10em !important;
    text-transform: uppercase !important;
  }

  html body .nz-site-footer .wp-block-navigation-item__content {
    padding: 3px 0 !important;
    min-height: 36px !important;
    display: flex !important;
    align-items: center !important;
    font-size: 12.5px !important;
  }

  html body .nz-site-footer .nz-footer-grid > .wp-block-group:nth-child(4) > p {
    margin: 8px 0 10px !important;
    line-height: 1.5 !important;
  }

  html body .nz-site-footer .nz-footer-grid > .wp-block-group:nth-child(4) .wp-block-button__link {
    min-width: 0 !important;
    min-height: 44px !important;
    padding: 11px 16px !important;
    font-size: 12px !important;
  }

  html body .nz-site-footer .nz-footer-institutional {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
  }

  html body .nz-site-footer .nz-footer-institutional .nz-inst-copy {
    padding-top: 9px !important;
    font-size: 10.5px !important;
    line-height: 1.42 !important;
  }

  html body .nz-site-footer .nz-footer-bottom {
    padding-top: 14px !important;
    padding-bottom: 16px !important;
  }

  html body .nz-site-footer .nz-legal-links {
    gap: 4px 10px !important;
    margin-bottom: 7px !important;
    font-size: 10.5px !important;
  }

  html body .nz-site-footer .nz-copyright {
    margin-bottom: 6px !important;
    font-size: 10.5px !important;
  }

  html body .nz-site-footer .nz-disclaimer {
    margin-top: 5px !important;
    font-size: 9.8px !important;
    line-height: 1.38 !important;
  }
}


/* --- WPWriter addition --- */

/* NZ — QA MOBILE footer CTA + institutional band FINAL — 2026-08-16 */
@media (max-width: 767px) {
  /* CTA: neutralizza il vecchio .btn{width:100%} mobile */
  html body .nz-site-footer .nz-footer-grid > .wp-block-group:nth-child(4) .wp-block-buttons,
  html body .nz-site-footer .nz-footer-grid > .wp-block-group:nth-child(4) .wp-block-button,
  html body .nz-site-footer .nz-footer-grid > .wp-block-group:nth-child(4) .btn {
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    display: inline-flex !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    margin: 0 !important;
  }

  html body .nz-site-footer .nz-footer-grid > .wp-block-group:nth-child(4) .wp-block-button__link,
  html body .nz-site-footer .nz-footer-grid > .wp-block-group:nth-child(4) a.wp-element-button {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 36px !important;
    height: 36px !important;
    padding: 0 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 10.5px !important;
    line-height: 1 !important;
    letter-spacing: .01em !important;
    white-space: nowrap !important;
  }

  /* Fascia istituzionale: banda bianca reale, da bordo a bordo */
  html body .nz-site-footer .nz-footer-institutional {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding: 13px 16px 12px !important;
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: minmax(0,1.35fr) minmax(0,.9fr) !important;
    gap: 10px 18px !important;
    align-items: center !important;
    background: #FCFBF8 !important;
    color: #1E3029 !important;
    border-top: 1px solid rgba(30,48,41,.12) !important;
    border-bottom: 1px solid rgba(30,48,41,.14) !important;
    border-radius: 0 !important;
  }

  html body .nz-site-footer .nz-footer-institutional .nz-inst-logo {
    width: auto !important;
    max-width: 132px !important;
    max-height: 38px !important;
    height: auto !important;
    margin: 0 !important;
    justify-self: start !important;
    object-fit: contain !important;
    object-position: left center !important;
  }

  html body .nz-site-footer .nz-footer-institutional .nz-inst-ocf {
    max-width: 94px !important;
    max-height: 38px !important;
    justify-self: start !important;
  }

  html body .nz-site-footer .nz-footer-institutional .nz-inst-copy {
    grid-column: 1 / -1 !important;
    margin: 0 !important;
    padding: 9px 0 0 !important;
    border-top: 1px solid #D5CABD !important;
    color: #56615C !important;
    font-size: 9.8px !important;
    line-height: 1.38 !important;
  }
}

