/* ==========================================================
   JAFET — DESIGN SYSTEM GLOBALE
   Colori e regole condivise tra tutte le pagine.
   ========================================================== */

:root {
  --jafet-navy-950: #101d34;
  --jafet-navy-900: #14233f;
  --jafet-navy-800: #1a2a47;
  --jafet-orange: #ea5d1b;
  --jafet-white: #ffffff;
  --jafet-black: #000000;
  --jafet-cream: #f2eee6;
}

/* I titoli chiari devono essere sempre bianco puro. */
.jh h1, .jh h2, .jh h3, .jh h4, .jh h5,
.sv-hero h1, .sv-block h2,
.sg-hero h1, .sg-sec h2, .sg-link h3,
.ct-hero h1, .ct-map h2,
.pf-hero h1, .pf-card h3,
.cl-hero h1, .cat-card h3,
.jafet-srv-hero h1, .jafet-srv-sec h2,
#jafet-hero-section h1,
#jafet-why-section h2,
#jafet-heritage-section h2,
#jafet-method-section h2,
#jafet-compare-section h2,
#jafet-team-section h2,
#jafet-team-section h4 {
  color: #ffffff !important;
}

/* Testi descrittivi collocati su fondi scuri. */
.jh-hero p, .jh-how p, .jh-claim p, .jh-prod p, .jh-srv p,
.jh-lab p, .jh-rev p, .jh-occ p,
.sv-hero p, .sv-services p,
.sg-hero p, .sg-design p, .sg-print p, .sg-process p,
.sg-gallery p, .sg-links p,
.pf-hero p, .pf-main p,
.cl-hero p, .cl-catalogs p,
.ct-hero p, .ct-contact p, .ct-map p,
.jafet-srv-hero p, .jafet-srv-features p,
.jafet-srv-deliv p, .jafet-srv-process p,
.jafet-srv-gallery p, .jafet-srv-others p,
#jafet-hero-section p, #jafet-why-section p,
#jafet-heritage-section p, #jafet-method-section p,
#jafet-compare-section p, #jafet-team-section p,
.gc-row .t span,
#jafet-heritage-section .sub,
#jafet-team-section .member .desc,
#jafet-team-section .member .tag,
.jafet-footer p, .jafet-footer a {
  color: #ffffff !important;
}

/* Testi descrittivi collocati su fondi chiari. */
.jh-about p, .jh-ct p,
.sv-cta p, .sg-philo p, .sg-ba-sec p, .sg-cta p,
.pf-cta p, .cl-cta p,
.ct-contact .ct-form-wrap p,
.jafet-srv-cta p,
#jafet-manifesto-section p {
  color: #000000 !important;
}

/* Responsive condiviso: su tablet/mobile contenuti e CTA centrati. */
@media (max-width: 980px) {
  .sv-hero, .sv-services, .sv-cta,
  .pf-hero, .pf-main, .pf-cta,
  .cl-hero, .cl-catalogs, .cl-cta,
  .ct-hero, .ct-contact, .ct-map,
  #jafet-hero-section, #jafet-manifesto-section,
  #jafet-why-section, #jafet-heritage-section,
  #jafet-method-section, #jafet-compare-section,
  #jafet-team-section {
    text-align: center;
  }

  .sv-hero p, .sv-cta p,
  .pf-hero p, .pf-cta p,
  .cl-hero p, .cl-cta p,
  .ct-hero p, .ct-map p,
  #jafet-hero-section p, #jafet-manifesto-section p,
  #jafet-why-section p, #jafet-heritage-section p,
  #jafet-method-section p, #jafet-compare-section p,
  #jafet-team-section p {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .sv-hero .btn, .sv-services .btn, .sv-cta .btn,
  .pf-body .pf-btn, .pf-cta .cta-btn, .pf-cta .hp-btn,
  .cat-card .dl, .cl-cta .btn,
  .ct-quick .qa,
  #jafet-hero-section .btn, #jafet-method-section .btn {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }

  .sv-head, .sv-contacts, .pf-body,
  .cl-contacts, .ct-quick,
  #jafet-team-section .member .info {
    justify-content: center;
    text-align: center;
  }

  /* Eccezione: i contenuti delle timeline restano allineati a sinistra. */
  #jafet-heritage-section .timeline,
  #jafet-heritage-section .tl-item,
  #jafet-heritage-section .tl-item h3,
  #jafet-heritage-section .tl-item h4,
  #jafet-heritage-section .tl-item p {
    text-align: left !important;
  }
}

/* Scala tipografica mobile: più leggibile senza alterare il desktop. */
@media (max-width: 560px) {
  .jh section h2,
  .sv-hero h1, .sv-block h2, .sv-cta h2,
  .sg-hero h1, .sg-sec h2, .sg-cta h2,
  .ct-hero h1, .ct-contact h2, .ct-map h2,
  .pf-hero h1, .pf-main h2, .pf-cta h2,
  .cl-hero h1, .cl-catalogs h2, .cl-cta h2,
  #jafet-hero-section h1,
  #jafet-manifesto-section h2,
  #jafet-why-section h2,
  #jafet-heritage-section h2,
  #jafet-method-section h2,
  #jafet-compare-section h2,
  #jafet-team-section h2 {
    font-size: clamp(2.65rem, 11.5vw, 3.55rem) !important;
    line-height: .98 !important;
  }

  .jh section h3,
  .sv-block h3, .sg-sec h3,
  .ct-contact h3, .pf-main h3,
  #jafet-manifesto-section h3,
  #jafet-why-section h3,
  #jafet-heritage-section h3,
  #jafet-method-section h3,
  #jafet-team-section h3 {
    font-size: clamp(1.65rem, 7vw, 2.15rem) !important;
    line-height: 1.08 !important;
  }

  .jh section p,
  .sv-hero p, .sv-block p, .sv-cta p,
  .sg-hero p, .sg-sec p, .sg-cta p,
  .ct-hero p, .ct-contact p, .ct-map p,
  .pf-hero p, .pf-main p, .pf-cta p,
  .cl-hero p, .cl-catalogs p, .cl-cta p,
  #jafet-hero-section p,
  #jafet-manifesto-section p,
  #jafet-why-section p,
  #jafet-heritage-section p,
  #jafet-method-section p,
  #jafet-compare-section p,
  #jafet-team-section p {
    font-size: 1.18rem !important;
    line-height: 1.65 !important;
  }
}

/* Contatti: i collegamenti mantengono il colore del testo circostante. */
#et-boc .jh-ci a,
#et-boc .sv-ci a,
#et-boc .sg-ci a,
#et-boc .cl-ci a,
#et-boc .jafet-srv-ci a,
#et-boc .ct-info a{color:inherit !important}


/* 13-11-2026 — Contatti e link legali: correzioni SOLO su mobile. */
@media (max-width: 767px) {
  /* Testi accanto alle icone, nelle sezioni contatti di tutte le pagine. */
  #et-boc .jh-ci,
  #et-boc .sv-ci,
  #et-boc .cl-ci,
  #et-boc .jafet-srv-ci,
  #et-boc .ct-info .icard {
    justify-content: flex-start !important;
    text-align: left !important;
  }
  #et-boc .jh-ci > div:last-child,
  #et-boc .jh-ci > div:last-child *,
  #et-boc .sv-ci > div:last-child,
  #et-boc .sv-ci > div:last-child *,
  #et-boc .cl-ci > div:last-child,
  #et-boc .cl-ci > div:last-child *,
  #et-boc .jafet-srv-ci > div:last-child,
  #et-boc .jafet-srv-ci > div:last-child *,
  #et-boc .ct-info .icard > div:last-child,
  #et-boc .ct-info .icard > div:last-child * {
    text-align: left !important;
  }

  /* Footer: tre link centrati, uno sotto l'altro. */
  .jafet-footer .jafet-foot-policies {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100%;
    gap: 6px !important;
    text-align: center !important;
  }
  .jafet-footer .jafet-foot-policies > span[aria-hidden="true"] {
    display: none !important;
  }
  .jafet-footer .jafet-foot-policies a {
    display: block;
    margin: 0;
    text-align: center !important;
  }
}

/* Prima/Dopo Grafica: freccia SVG, senza caratteri convertibili in entita HTML. */
#et-boc .sg-ba .handle::after {
  content: "" !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h16M8 8l-4 4 4 4M16 8l4 4-4 4' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: 25px 25px !important;
}
