/* =====================================================================
   zeronodipm — Refresh 2026
   Layer di modernizzazione. Caricato PER ULTIMO: ridefinisce i design
   token (sia quelli di app.css sia quelli di znp-product.css) e ripulisce
   gli strati decorativi datati. Nessuna riscrittura dei componenti:
   il sito eredita il nuovo look attraverso le variabili.
   Direzione: moderno, umano, essenziale ma con carattere. Base chiara
   leggermente tintata, accento verde↔blu, ambiance soffusa, gradienti
   d'impatto su hero e CTA. Colore presente ma mai fastidioso.
   ===================================================================== */

:root {
  /* --- Colori vivi (solo per gradienti, glow e grandi superfici) --- */
  --g-green: #12b28f;      /* verde brillante */
  --g-blue:  #2f7ae5;      /* blu brillante   */
  --grad: linear-gradient(118deg, #10a98a 0%, #2f7ae5 100%);
  --grad-soft: linear-gradient(118deg, #16b596 0%, #3d86ef 100%);
  --grad-btn: linear-gradient(118deg, #0a7060 0%, #2159c6 100%);
  --grad-deep: linear-gradient(140deg, #06403c 0%, #0b5d5a 44%, #133f74 100%);
  --accent-line: linear-gradient(90deg, #12b28f 0%, #2f7ae5 100%);

  /* --- Token di app.css --- */
  --ink: #10201d;
  --ink-soft: #24352f;
  --body: #38474a;
  --muted: #5a6a6c;
  --subtle: #889696;
  --rule: #dde8e4;
  --surface: #ffffff;
  --canvas: #eef5f3;        /* base chiara tintata (verde-blu tenue) */
  --paper: #ffffff;
  --paper-soft: #f1f7f5;
  --band: #e4f1ec;          /* banda tenue tintata */
  --band-blue: #e6eff8;     /* banda tenue blu     */
  --white: #ffffff;

  /* accento testuale = verde profondo (buon contrasto) */
  --blue: #0a7360;
  --blue-dim: #dcf1ea;
  --blue-glow: rgba(18, 178, 143, 0.24);

  --warm: #857152;
  --warm-dim: #eef4f2;

  /* verdi WhatsApp: lasciati on-brand */
  --green-bg: #075e54;
  --green-dark: #054a42;

  --radius: 14px;
  --shadow-soft: 0 1px 2px rgba(9, 45, 40, 0.05), 0 14px 34px rgba(9, 45, 40, 0.07);
  --shadow-card: 0 2px 6px rgba(9, 45, 40, 0.06), 0 22px 52px rgba(9, 45, 40, 0.12);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* --- Token di znp-product.css --- */
  --bg: #eef5f3;
  --surface-soft: #e4f1ec;
  --line: #dde8e4;
  --brand: #0a7360;
  --brand-dark: #086555;
  --accent: #0a7360;
  --shadow: 0 2px 6px rgba(9, 45, 40, 0.06), 0 22px 52px rgba(9, 45, 40, 0.12);
}

/* ---------------------------------------------------------------------
   1. Fondo tintato + ambiance soffusa verde↔blu (fissa, tutta pagina)
   --------------------------------------------------------------------- */
body {
  background: var(--canvas);
  color: var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* niente più griglia + bande diagonali datate */
body::before,
body::after {
  display: none !important;
  content: none !important;
  background: none !important;
}

/* ---------------------------------------------------------------------
   2. Tipografia — dai serif tradizionali a un sans moderno e deciso
   --------------------------------------------------------------------- */
:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter",
    system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
}
body {
  font-family: var(--font-sans);
  line-height: 1.65;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  color: var(--ink);
  font-weight: 680;
  letter-spacing: -0.021em;
  line-height: 1.1;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.35rem, 2.9vw + 1rem, 3.85rem);
  font-weight: 720;
  letter-spacing: -0.03em;
  line-height: 1.04;
}
h2 {
  font-size: clamp(1.7rem, 2vw + 0.8rem, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.026em;
  line-height: 1.07;
}
h3 {
  font-size: clamp(1.3rem, 0.9vw + 0.95rem, 1.7rem);
  font-weight: 660;
  letter-spacing: -0.018em;
}

.lead {
  color: var(--body);
  font-size: clamp(1.08rem, 0.5vw + 1rem, 1.24rem);
  line-height: 1.6;
}

/* eyebrow: piccola, spaziata, sobria */
.eyebrow,
.kicker {
  color: var(--blue);
  font-weight: 650;
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

/* logo testuale di fallback (dietro l'immagine) */
.brand {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* numeri grandi del metodo: sans, non serif */
.method-card .number,
.path-number,
.step-num {
  font-family: var(--font-sans) !important;
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* ---------------------------------------------------------------------
   3. Header — bianco pulito, hairline
   --------------------------------------------------------------------- */
.site-header {
  position: sticky;
  background: rgba(238, 245, 243, 0.8);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: saturate(150%) blur(16px);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
}
/* sottile barra accento verde→blu in cima */
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: var(--accent-line);
  z-index: 102;
}
.main-nav {
  border-top-color: var(--rule);
}
.menu-toggle {
  border-color: var(--rule);
  background: var(--white);
}

/* ---------------------------------------------------------------------
   4. Sezioni — niente più banding azzurro; ritmo affidato all'aria
   --------------------------------------------------------------------- */
.section {
  background: transparent;
  border-block: 0;
}
/* bande alternate: un solo neutro tenue, quando serve stacco */
.focus-section,
.soft-section,
.problem-band,
.contact-section,
.before-after-section,
.proof-section,
.outcome-section,
.value-section,
.lead-magnet-section,
.preview-section,
.scenarios-section,
.premium-path-section,
.use-case-section,
.audit-output-section,
.process-contact-section {
  background: var(--band);
  border-block: 1px solid var(--rule);
}

/* ---------------------------------------------------------------------
   5. Hero — piatto e luminoso, con un alone teal appena percettibile
   --------------------------------------------------------------------- */
.hero,
.product-hero,
.page-hero,
.product-page-hero,
.document-hero {
  background:
    radial-gradient(78% 120% at 4% -25%, rgba(18, 178, 143, 0.22), transparent 56%),
    radial-gradient(70% 115% at 100% -12%, rgba(47, 122, 229, 0.20), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 42%),
    var(--canvas);
  border-bottom: 1px solid var(--rule);
}

/* pannello affiancato all'hero */
.hero-panel {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: clamp(24px, 3.4vw, 38px);
}
.hero-panel h2 {
  font-size: clamp(1.25rem, 1vw + 0.9rem, 1.6rem);
  margin-bottom: 16px;
}

/* ---------------------------------------------------------------------
   6. Bottoni — neri essenziali (primario), hairline (secondario)
   --------------------------------------------------------------------- */
.btn {
  border-radius: 11px;
  font-weight: 640;
  letter-spacing: -0.005em;
  min-height: 50px;
}
.btn.primary {
  background: var(--grad-btn);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 2px 6px rgba(12, 74, 120, 0.22), 0 12px 26px rgba(12, 74, 120, 0.20);
}
.btn.primary:hover,
.btn.primary:focus-visible {
  filter: brightness(1.07) saturate(1.05);
  box-shadow: 0 4px 10px rgba(12, 74, 120, 0.28), 0 18px 38px rgba(12, 74, 120, 0.28);
}
.btn.secondary {
  background: var(--white);
  color: var(--ink);
  border-color: var(--rule);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}
.btn.secondary:hover,
.btn.secondary:focus-visible {
  border-color: var(--ink);
  background: var(--white);
  box-shadow: 0 8px 22px rgba(16, 24, 40, 0.08);
}

/* bottoni dentro sezioni scure (CTA, dark-section):
   primario chiaro su fondo scuro, secondario outline chiaro */
.final-cta .btn.primary,
.dark-section .btn.primary {
  background: #ffffff;
  color: #14181c;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}
.final-cta .btn.primary:hover,
.final-cta .btn.primary:focus-visible,
.dark-section .btn.primary:hover,
.dark-section .btn.primary:focus-visible {
  background: #f2f4f3;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}
.final-cta .btn.secondary,
.dark-section .btn.secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
  box-shadow: none;
}
.final-cta .btn.secondary:hover,
.final-cta .btn.secondary:focus-visible,
.dark-section .btn.secondary:hover,
.dark-section .btn.secondary:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
}

/* link testuali con freccia/underline moderno */
.text-link {
  color: var(--blue);
  font-weight: 640;
}
.text-link:hover,
.text-link:focus-visible {
  color: var(--brand-dark);
}

/* ---------------------------------------------------------------------
   7. Card — bianche, hairline, ombra sottile, hover teal
   --------------------------------------------------------------------- */
.card,
.problem-card,
.service-card,
.info-card,
.contact-card,
.featured-card,
.path-card,
.method-card,
.document-card,
.case-card,
.guide-card,
.offer-card,
.document-status-panel,
.lead-form,
.process-table {
  border-radius: 16px;
  border-color: var(--rule);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}
.hero-card:hover,
.card:hover,
.problem-card:hover,
.service-card:hover,
.info-card:hover,
.contact-card:hover,
.featured-card:hover,
.path-card:hover,
.case-card:hover,
.guide-card:hover,
.document-card:hover {
  border-color: rgba(18, 178, 143, 0.42);
  box-shadow: var(--shadow-card);
}

/* pill/label/badge accento → tinta teal coerente */
.problem-card .label,
.service-card .label,
.doc-category,
.pill,
.tag,
.badge {
  border-radius: 999px;
}
/* pill sempre compatte, mai a tutta larghezza */
.doc-category,
.doc-access {
  display: inline-flex;
  width: fit-content;
}
.problem-card .label,
.service-card .label,
.doc-category {
  background: var(--blue-dim);
  color: var(--brand-dark);
}

/* card scura "in evidenza": gradiente verde→blu profondo, testo chiaro */
.featured-primary {
  background: var(--grad-deep);
  border-color: transparent;
  color: #ffffff;
}
.featured-primary:hover {
  border-color: rgba(94, 234, 212, 0.4);
  box-shadow: var(--shadow-card);
}
.featured-primary h3,
.featured-primary .text-link {
  color: #ffffff;
}
.featured-primary p {
  color: rgba(255, 255, 255, 0.76);
}
.featured-primary span {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
}

/* icona servizio: tinta neutra, non beige */
.service-icon {
  background: var(--blue-dim);
  color: var(--brand-dark);
  border-radius: 12px;
}

/* ---------------------------------------------------------------------
   8. Sezioni scure / CTA / footer — gradiente profondo verde↔blu
   --------------------------------------------------------------------- */
.final-cta,
.dark-section {
  background: var(--grad-deep);
  border-radius: 22px;
}
.dark-section {
  border-radius: 0;
}
.final-cta .eyebrow,
.dark-section .eyebrow {
  color: #6ff0d4;
}
.site-footer {
  background: #08201d;
  border-top: 3px solid transparent;
  border-image: var(--accent-line) 1;
}

/* metodo scuro: numeri/hover coerenti */
.method-card {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}
.method-card:hover {
  border-color: rgba(94, 234, 212, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

/* ---------------------------------------------------------------------
   9. Form — focus teal coerente
   --------------------------------------------------------------------- */
.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
  border-color: rgba(18, 178, 143, 0.5);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-glow);
}

/* ---------------------------------------------------------------------
   10. Micro-rifiniture
   --------------------------------------------------------------------- */
.topic-grid a {
  border-color: var(--rule);
  background: var(--white);
  border-radius: 12px;
}
.topic-grid a:hover,
.topic-grid a:focus-visible {
  border-color: rgba(18, 178, 143, 0.45);
  color: var(--ink);
}
:focus-visible {
  outline-color: var(--blue);
}
