/* =============================================================
   inclusiva — landing page
   Design system aderente alla brand guideline ufficiale.
   Palette: petrolio profondo, zafferano, salvia, ghiaccio.
   Forme: stadium/pill, blob arrotondati, punti Braille, numerali giganti.
   ============================================================= */

/* ---------- TOKEN ---------- */
:root {
  /* Colori brand */
  --petrol:        #103A44;
  --petrol-dark:   #0B2A31;
  --petrol-soft:   #1B4D58;
  --saffron:       #E6C35A;
  --saffron-deep:  #C9A53D;
  --sage:          #6E8B7F;
  --sage-soft:     #8AA89B;
  --sage-tint:     #B7C9C0;
  --ice:           #F4F5F3;
  --ice-warm:      #ECEEEA;
  --ink:           #0B2A31;

  /* Tipografia */
  --font-sans: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible",
               -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui,
               sans-serif;

  /* Misure */
  --radius-pill: 999px;
  --radius-blob: 48% 52% 60% 40% / 50% 45% 55% 50%;
  --radius-lg:   32px;
  --radius-md:   20px;
  --radius-sm:   12px;

  --container:   1240px;
  --gutter:      clamp(1.25rem, 4vw, 3rem);

  /* Tipografica scale (fluid) */
  --fs-display: clamp(3rem, 9vw, 7.5rem);
  --fs-h1:      clamp(2.4rem, 6.5vw, 5.25rem);
  --fs-h2:      clamp(2rem, 4.8vw, 3.75rem);
  --fs-h3:      clamp(1.25rem, 1.8vw, 1.625rem);
  --fs-lead:    clamp(1.0625rem, 1.4vw, 1.25rem);
  --fs-body:    1.0625rem;
  --fs-small:   0.9375rem;
  --fs-eyebrow: 0.8125rem;

  --lh-tight:   1.02;
  --lh-snug:    1.15;
  --lh-body:    1.6;

  /* Layout */
  --section-py: clamp(5rem, 10vw, 9rem);

  /* Easing */
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--ice);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }
ul, ol { list-style: none; padding: 0; margin: 0; }
a { color: inherit; text-decoration: none; }

p { margin: 0 0 1em; }
strong { font-weight: 700; }

/* ---------- A11Y ---------- */
.skip-link {
  position: absolute; top: -100px; left: 1rem;
  background: var(--petrol); color: var(--ice);
  padding: .85rem 1.25rem; border-radius: var(--radius-pill);
  font-weight: 700; z-index: 9999;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; outline: 3px solid var(--saffron); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--saffron); color: var(--petrol-dark); }

/* ---------- LAYOUT ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--section-py);
  overflow: hidden;
}
.section-light  { background: var(--ice); color: var(--ink); }
.section-petrol { background: var(--petrol); color: var(--ice); }
.section-saffron{ background: var(--saffron); color: var(--petrol-dark); }
.section-sage   { background: var(--sage); color: var(--ice); }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244,245,243,.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(16,58,68,.08);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 76px;
  gap: 1.5rem;
}

.brand {
  display: inline-flex; align-items: baseline; gap: 0;
  font-weight: 700; font-size: 1.5rem; letter-spacing: 0em;
  color: var(--petrol);
  position: relative;
  padding-left: .58em;
}
/* Punto decorativo Braille: si posiziona a sinistra della "i"
   all'altezza del corpo della lettera (mid x-height); insieme al
   tittle naturale della "i" forma la coppia diagonale di punti
   che identifica la lettera "i" nell'alfabeto Braille (punti 2 e 4). */
.brand-mark {
  position: absolute;
  left: 0.33em;
  bottom: .78em;          /* ≈ mid x-height per Atkinson Hyperlegible */
  display: block;
  width: .18em;
  height: .18em;
}
.braille-dot {
  display: block;
  width: 100%; height: 100%;
  background: currentColor;
  border-radius: 50%;
}
.brand-word { font-weight: 800; }

.site-nav { display: flex; align-items: center; }
.nav-list {
  display: flex; gap: 2rem; align-items: center;
  font-size: .98rem;
}
.nav-list a {
  position: relative;
  padding: .5rem 0;
  font-weight: 500;
  color: var(--petrol);
  transition: color .2s var(--ease);
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--saffron);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-list a:hover::after,
.nav-list a:focus-visible::after { transform: scaleX(1); }

.nav-cta {
  background: var(--petrol);
  color: var(--ice) !important;
  padding: .65rem 1.25rem !important;
  border-radius: var(--radius-pill);
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--petrol-dark); }

.nav-toggle {
  display: none;
  width: 48px; height: 48px;
  background: transparent; border: 0;
  border-radius: var(--radius-pill);
  position: relative;
  color: var(--petrol);
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  position: absolute; left: 50%; top: 50%;
  width: 22px; height: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.nav-toggle-bars::before { content: ""; top: -7px; }
.nav-toggle-bars::after  { content: ""; top:  7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: translate(-50%,-50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after  { top: 0; transform: translate(-50%,-50%) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  /* Drawer mobile a tutto schermo. Uso top/right/bottom/left espliciti
     invece dello shorthand `inset` per massima compatibilità.
     `100dvh` rispetta la chrome dinamica del browser su iOS. */
  .nav-list {
    position: fixed;
    top: 76px;
    right: 0;
    bottom: 0;
    left: 0;
    height: calc(100vh - 76px);
    height: calc(100dvh - 76px);
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    background: var(--ice);
    padding: 1.5rem var(--gutter) 3rem;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .35s var(--ease), visibility 0s linear .35s;
    overflow-y: auto;
    z-index: 99;
    -webkit-overflow-scrolling: touch;
  }
  .nav-list[data-open="true"] {
    transform: translateX(0);
    visibility: visible;
    transition: transform .35s var(--ease), visibility 0s linear 0s;
  }
  .nav-list li { width: 100%; }
  .nav-list a {
    display: block; width: 100%;
    padding: 1.1rem 0;
    font-size: 1.4rem; font-weight: 700;
    border-bottom: 1px solid rgba(16,58,68,.08);
    color: var(--petrol);
  }
  .nav-list a::after { display: none; } /* niente hover-underline su mobile */
  .nav-cta {
    margin-top: 1.75rem;
    display: inline-flex !important;
    align-items: center;
    width: auto !important;
    padding: .9rem 1.5rem !important;
    font-size: 1.05rem !important;
    border-bottom: 0 !important;
  }

  /* Blocca lo scroll del body quando il menu è aperto (gestito anche via JS) */
  body:has(.nav-list[data-open="true"]) { overflow: hidden; }
}

/* ============================================================= */
/* HERO                                                          */
/* ============================================================= */
.hero {
  position: relative;
  background: var(--petrol);
  color: var(--ice);
  padding-block: clamp(4rem, 8vw, 7rem) clamp(5rem, 10vw, 8rem);
  overflow: hidden;
  isolation: isolate;
}

/* Strato decorativo: forme sage che richiamano il company profile
   ("i" Braille, blob laterali). Sono in un layer separato a z-index 0
   con pointer-events: none. Il contenuto testuale ha z-index > 1 e i
   suoi container hanno bg petrol opaco esplicito, così che axe-core
   possa risolvere il contrasto in modo deterministico. */
.hero-decor {
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-blob {
  position: absolute;
  right: -25vw; top: -10%;
  width: 55vw; height: 130%;
  background: var(--sage);
  border-radius: 50% 0 0 50% / 60% 0 0 40%;
  opacity: .95;
}
.hero-circle {
  position: absolute;
  left: -22vw; bottom: -28vw;
  width: 22vw; height: 22vw;
  max-width: 280px; max-height: 280px;
  min-width: 140px; min-height: 140px;
  background: var(--sage);
  border-radius: 50%;
  opacity: .9;
}

.hero-grid {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero-copy { max-width: 36ch; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .65rem;
  font-size: var(--fs-eyebrow);
  font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  margin: 0 0 1.75rem;
  padding: .5rem 1rem .5rem .8rem;
  background: rgba(244,245,243,.08);
  border: 1px solid rgba(244,245,243,.18);
  border-radius: var(--radius-pill);
  color: var(--ice);
}
.eyebrow-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--saffron);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.6); opacity: .35; }
}

.hero-title {
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 1.5rem;
  color: var(--ice);
}
.hero-title em {
  font-style: normal;
  color: var(--saffron);
  font-weight: 800;
  position: relative;
}
.hero-title .period { color: var(--saffron); }

.hero-lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: rgba(244,245,243,.88);
  max-width: 48ch;
  margin: 0 0 2.25rem;
}

.hero-cta {
  display: flex; flex-wrap: wrap; gap: 1rem;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .65em;
  padding: 1rem 1.65rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .005em;
  border: 2px solid transparent;
  transition: transform .2s var(--ease), background .25s var(--ease),
              color .25s var(--ease), border-color .25s var(--ease);
  min-height: 48px;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--saffron);
  color: var(--petrol-dark);
}
.btn-primary:hover { background: #efd075; }
.btn-ghost {
  background: transparent;
  color: var(--ice);
  border-color: rgba(244,245,243,.45);
}
.btn-ghost:hover { background: rgba(244,245,243,.1); border-color: var(--ice); }
.btn-arrow { transition: transform .25s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ---------- HERO VISUAL — la "i" Braille gigante ---------- */
.hero-visual {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 360px;
}
.braille-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 1.8vw, 1.75rem);
  width: 100%;
  max-width: 460px;
}
.braille-cell {
  aspect-ratio: 2 / 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  /* Numerazione Braille standard: colonna sinistra dot 1→2→3 dall'alto,
     colonna destra dot 4→5→6 dall'alto. Riempi prima per colonna. */
  grid-auto-flow: column;
  gap: 8%;
  padding: 14% 22%;
  background: rgba(244,245,243,.06);
  border: 1.5px solid rgba(244,245,243,.18);
  border-radius: 22px;
  position: relative;
  transition: background .3s var(--ease), border-color .3s var(--ease), transform .4s var(--ease);
}
.braille-cell::after {
  content: attr(data-letter);
  position: absolute;
  bottom: 8%; right: 12%;
  font-size: .8rem;
  font-weight: 700;
  color: rgba(244,245,243,.4);
  letter-spacing: .05em;
}
.braille-cell:hover {
  background: rgba(230,195,90,.12);
  border-color: var(--saffron);
  transform: translateY(-4px);
}
.braille-cell .d {
  width: 100%; aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(244,245,243,.12);
  transition: background .3s var(--ease), transform .3s var(--ease);
  align-self: center; justify-self: center;
  max-width: 22px;
}
.braille-cell .d.on { background: var(--saffron); }
.braille-cell:hover .d.on { transform: scale(1.15); }

@media (max-width: 920px) {
  .hero-visual { min-height: 280px; }
  .braille-grid { max-width: 380px; }
}
@media (max-width: 720px) {
  /* Su mobile le forme decorative dell'hero tagliavano lo schermo a metà
     compromettendo la leggibilità: le rendiamo molto più contenute e
     spostate fuori dall'area di lettura. */
  .hero-blob {
    right: -55vw;
    top: auto; bottom: -10vw;
    width: 90vw; height: 50vw;
    opacity: .4;
    border-radius: 50% 50% 0 0 / 80% 80% 0 0;
  }
  .hero-circle {
    left: -28vw; bottom: -20vw;
    width: 38vw; height: 38vw;
    opacity: .35;
  }
}
@media (max-width: 540px) {
  .braille-grid { gap: .75rem; max-width: 320px; }
  .braille-cell { border-radius: 16px; }
  /* Su schermi piccoli rimuoviamo del tutto le forme decorative:
     sfondo petrolio pieno e leggibilità massima del testo. */
  .hero-decor { display: none; }
}

/* ---------- HERO MARQUEE ---------- */
.hero-marquee {
  position: relative;
  margin-top: clamp(3rem, 6vw, 5rem);
  z-index: 2;
  border-block: 1px solid rgba(244,245,243,.18);
  padding-block: 1.25rem;
  overflow: hidden;
  /* bg petrol opaco esplicito: garantisce contrasto deterministico
     anche se forme decorative passano sotto a livello di stacking */
  background: var(--petrol);
}
.marquee-track {
  display: flex; gap: 2.25rem;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: lowercase;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
  will-change: transform;
}
.marquee-track .sep { color: var(--saffron); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; }
}

/* ============================================================= */
/* SECTION HELPERS                                               */
/* ============================================================= */
.section-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 2fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
@media (max-width: 880px) { .section-grid { grid-template-columns: 1fr; } }

.section-tag {
  display: inline-flex; align-items: center; gap: .8rem;
  font-size: var(--fs-eyebrow);
  font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--petrol);
  margin: 0 0 1.75rem;
}
.section-tag.dark  { color: var(--petrol-dark); }
.section-tag.light { color: var(--ice); }
/* Su sfondo sage (verde medio) ice non raggiunge 4.5:1 — uso petrol-dark
   che con peso 700 e letter-spacing wide rimane leggibile e distintivo */
/* petrol-dark è 4.07:1 su sage — appena sotto AA. Uso una tonalità
   leggermente più scura (#022128) solo per i testi piccoli (≥ 4.5:1). */
.section-sage .section-tag.light { color: #022128; }
.section-sage .section-tag.light .braille-mark span { background: #022128; }
.braille-mark {
  display: inline-flex; flex-direction: column; gap: 4px;
}
.braille-mark span {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--saffron);
}
.section-petrol .braille-mark span,
.section-sage .braille-mark span { background: var(--saffron); }

.section-head { max-width: 880px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.section-title {
  font-size: var(--fs-h2);
  line-height: var(--lh-tight);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  color: var(--petrol);
}
.section-title.light { color: var(--ice); }

/* em sui titoli: il colore del testo resta sempre alto contrasto;
   l'accento saffron è reso con un evidenziatore (highlight) sotto al
   testo, preservando l'identità visiva senza penalizzare la leggibilità. */
.section-title em {
  font-style: normal;
  font-weight: 800;
  color: inherit;
  position: relative;
  display: inline-block;
  isolation: isolate;
}
.section-title em::after {
  content: "";
  position: absolute;
  left: -0.06em; right: -0.06em;
  bottom: 0.05em;
  height: 0.22em;
  background: var(--saffron);
  border-radius: 4px;
  z-index: -1;
}
.section-petrol .section-title em::after,
.section-sage   .section-title em::after { background: var(--saffron); }

.section-body p,
.section-lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  margin: 0 0 1.25em;
  max-width: 62ch;
}
.section-petrol .section-body p strong,
.section-sage .section-body p strong { color: var(--saffron); }

.section-lead.light { color: var(--ice); }
/* Su sfondo sage il testo body deve essere scuro (4.5:1) — ice trasparente
   non basta. #022128 dà 4.53:1 su sage #6E8B7F. */
.section-sage .section-lead.light { color: #022128; }
.section-sage .section-lead.light strong { color: #022128; }
.section-sage .section-title.light { color: var(--ice); } /* titolo: large text → 3:1 */

/* ============================================================= */
/* CHI SIAMO                                                     */
/* ============================================================= */
#chi-siamo { isolation: isolate; }
/* Numerale gigante watermark */
#chi-siamo::before {
  content: "01";
  position: absolute;
  right: -3vw; bottom: -8vw;
  font-size: clamp(20rem, 45vw, 44rem);
  font-weight: 800;
  line-height: .8;
  color: var(--petrol-soft);
  z-index: 0;
  pointer-events: none;
  letter-spacing: -0.05em;
  opacity: .55;
}
#chi-siamo .container { position: relative; z-index: 1; }

#chi-siamo .section-tag { color: var(--saffron); }
/* Su sfondo petrolio il titolo va in ice, non in petrol */
.section-petrol .section-title { color: var(--ice); }
.section-sage   .section-title { color: var(--ice); }

.kpi-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(244,245,243,.18);
}
.kpi-list li {
  display: flex; flex-direction: column; gap: .35rem;
}
.kpi-num {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--saffron);
  line-height: 1;
  letter-spacing: -0.02em;
}
.kpi-lbl {
  font-size: .95rem;
  color: rgba(244,245,243,.78);
  line-height: 1.4;
}

/* ============================================================= */
/* SERVIZI                                                       */
/* ============================================================= */
#servizi { isolation: isolate; }
#servizi::before {
  /* blob sage di sfondo */
  content: "";
  position: absolute;
  left: -25vw; top: 8%;
  width: 50vw; height: 50vw;
  max-width: 600px; max-height: 600px;
  background: var(--sage-tint);
  border-radius: 50%;
  opacity: .35;
  z-index: 0;
  pointer-events: none;
}
#servizi .container { position: relative; z-index: 1; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  position: relative;
  background: var(--ice);
  border: 1.5px solid rgba(16,58,68,.12);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem 1.75rem;
  display: flex; flex-direction: column; gap: 1rem;
  transition: transform .35s var(--ease), border-color .3s var(--ease), box-shadow .35s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--petrol);
  box-shadow: 0 14px 40px -22px rgba(16,58,68,.35);
}
.card-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: var(--petrol);
  color: var(--ice);
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: .03em;
}
.card-title {
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--petrol);
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.card-text {
  font-size: 1rem;
  color: rgba(11,42,49,.78);
  line-height: 1.55;
  margin: 0;
  flex: 1;
}
.card-link {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 700;
  color: var(--petrol);
  border-bottom: 2px solid var(--saffron);
  padding-bottom: 2px;
  align-self: flex-start;
  transition: gap .25s var(--ease), color .25s var(--ease);
}
.card-link:hover { gap: .9rem; color: var(--saffron-deep); }

.card-accent {
  background: var(--petrol);
  border-color: var(--petrol);
  color: var(--ice);
}
.card-accent .card-title { color: var(--ice); }
.card-accent .card-text  { color: rgba(244,245,243,.85); }
.card-accent .card-num   {
  background: var(--saffron); color: var(--petrol-dark);
  font-size: 1.5rem;
}
.card-accent .card-link  { color: var(--saffron); border-bottom-color: var(--saffron); }
.card-accent:hover { border-color: var(--saffron); }

/* ============================================================= */
/* MANIFESTO (saffron)                                           */
/* ============================================================= */
.section-saffron { isolation: isolate; }
.section-saffron::before {
  content: "";
  position: absolute;
  right: -10vw; top: -20%;
  width: 50vw; height: 50vw;
  max-width: 640px; max-height: 640px;
  background: var(--petrol);
  border-radius: 50%;
  opacity: .08;
  z-index: 0;
  pointer-events: none;
}
.section-saffron .container { position: relative; z-index: 1; }

.manifesto-title {
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 clamp(2.5rem, 5vw, 4rem);
  color: var(--petrol-dark);
  max-width: 18ch;
}
.manifesto-title em {
  font-style: normal;
  color: var(--petrol);
  font-weight: 800;
  position: relative;
  display: inline-block;
}
.manifesto-title em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .04em;
  height: .12em;
  background: var(--ice);
  z-index: -1;
  border-radius: 2px;
}
.manifesto-title .period { color: var(--petrol); }

.manifesto-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  max-width: 1100px;
}
@media (max-width: 760px) { .manifesto-grid { grid-template-columns: 1fr; } }
.manifesto-text {
  font-size: var(--fs-lead);
  line-height: 1.65;
  color: var(--petrol-dark);
  margin: 0;
}
.manifesto-text strong { color: var(--petrol); }

/* ============================================================= */
/* APPROCCIO                                                     */
/* ============================================================= */
#approccio { isolation: isolate; }
#approccio::before {
  content: "04";
  position: absolute;
  left: -2vw; top: 4vw;
  font-size: clamp(14rem, 28vw, 28rem);
  font-weight: 800;
  line-height: .8;
  color: var(--ice-warm);
  z-index: 0;
  pointer-events: none;
  letter-spacing: -0.05em;
}
#approccio .container { position: relative; z-index: 1; }

.principles {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
}
.principle {
  display: grid;
  grid-template-columns: minmax(120px, 200px) 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(2rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.5rem);
  background: var(--ice);
  border: 1.5px solid rgba(16,58,68,.1);
  border-radius: var(--radius-lg);
  align-items: start;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.principle:hover {
  background: #fff;
  border-color: var(--petrol);
}
.principle-marker {
  display: flex; flex-direction: column; gap: 1rem;
  color: var(--saffron-deep);
}
.principle-num {
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1;
  color: var(--petrol);
  letter-spacing: -0.02em;
}
.principle-bar {
  display: block;
  height: 6px;
  width: 64px;
  background: var(--saffron);
  border-radius: var(--radius-pill);
}
.principle-body h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.875rem);
  font-weight: 800;
  margin: 0 0 .65rem;
  color: var(--petrol);
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.principle-body p {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: rgba(11,42,49,.78);
  margin: 0;
  max-width: 60ch;
}
@media (max-width: 640px) {
  .principle { grid-template-columns: 1fr; }
  .principle-marker { flex-direction: row; align-items: center; }
}

/* ============================================================= */
/* METODO (sage)                                                 */
/* ============================================================= */
#metodo { isolation: isolate; }
#metodo::before {
  content: "05";
  position: absolute;
  right: -2vw; bottom: -10vw;
  font-size: clamp(18rem, 38vw, 36rem);
  font-weight: 800;
  line-height: .8;
  color: rgba(244,245,243,.1);
  z-index: 0;
  pointer-events: none;
  letter-spacing: -0.05em;
}
#metodo .container { position: relative; z-index: 1; }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(244,245,243,.25);
}
.step {
  display: flex; flex-direction: column; gap: .75rem;
  color: var(--ice);
}
.step-num {
  display: inline-block;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #022128;
  margin-bottom: .25rem;
}
.step h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0;
  color: var(--ice);
  letter-spacing: -0.01em;
}
.step p {
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(244,245,243,.85);
  margin: 0;
}

/* ============================================================= */
/* CONTATTI                                                      */
/* ============================================================= */
.contact-card {
  position: relative;
  background: var(--petrol);
  color: var(--ice);
  border-radius: clamp(28px, 5vw, 56px);
  padding: clamp(2.5rem, 6vw, 5rem);
  overflow: hidden;
  isolation: isolate;
}
.contact-card::before {
  content: "";
  position: absolute;
  right: -10vw; top: -20%;
  width: 38vw; height: 38vw;
  max-width: 460px; max-height: 460px;
  background: var(--saffron);
  border-radius: 50%;
  opacity: .14;
  z-index: 0;
}
.contact-card::after {
  content: "";
  position: absolute;
  left: -8vw; bottom: -18vw;
  width: 32vw; height: 32vw;
  max-width: 420px; max-height: 420px;
  background: var(--sage);
  border-radius: 50%;
  opacity: .25;
  z-index: 0;
}
.contact-card > * { position: relative; z-index: 1; }
.contact-card .section-tag { color: var(--saffron); }

.contact-title {
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 1.25rem;
  color: var(--ice);
}
.contact-title em { font-style: normal; color: var(--saffron); font-weight: 800; }
.contact-title .period { color: var(--saffron); }

.contact-lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: rgba(244,245,243,.85);
  max-width: 56ch;
  margin: 0 0 clamp(2.5rem, 5vw, 3.5rem);
}

.contact-list {
  display: grid;
  gap: 1rem;
}
.contact-item {
  display: grid;
  grid-template-columns: minmax(110px, 160px) 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem 1.75rem;
  background: rgba(244,245,243,.06);
  border: 1.5px solid rgba(244,245,243,.18);
  border-radius: var(--radius-pill);
  transition: background .25s var(--ease), border-color .25s var(--ease);
  min-height: 64px;
}
.contact-item:not(.static):hover {
  background: rgba(230,195,90,.12);
  border-color: var(--saffron);
}
.contact-label {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--saffron);
}
.contact-value {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 600;
  color: var(--ice);
  word-break: break-word;
}
.contact-arrow {
  font-size: 1.25rem;
  color: var(--saffron);
  transition: transform .25s var(--ease);
}
.contact-item:hover .contact-arrow { transform: translateX(6px); }
.contact-item.static .contact-arrow { display: none; }

@media (max-width: 600px) {
  .contact-item {
    grid-template-columns: 1fr auto;
    border-radius: var(--radius-lg);
    padding: 1.2rem 1.4rem;
  }
  .contact-label { grid-column: 1 / -1; }
}

/* ============================================================= */
/* FOOTER                                                        */
/* ============================================================= */
.site-footer {
  background: var(--petrol-dark);
  color: rgba(244,245,243,.78);
  padding-top: clamp(3.5rem, 6vw, 5rem);
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 3rem;
}
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } }

.footer-brand .brand { color: var(--ice); font-size: 1.65rem; }
.footer-tag {
  margin-top: 1rem;
  font-size: 1rem;
  color: rgba(244,245,243,.6);
  max-width: 28ch;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}
@media (max-width: 600px) { .footer-cols { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; } }
@media (max-width: 380px) { .footer-cols { grid-template-columns: 1fr; } }

.footer-h {
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--saffron);
  margin: 0 0 1rem;
}
.footer-col ul li {
  margin-bottom: .65rem;
  font-size: .98rem;
  line-height: 1.5;
}
.footer-col a {
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), color .2s var(--ease);
  color: rgba(244,245,243,.85);
}
.footer-col a:hover {
  color: var(--ice);
  border-color: var(--saffron);
}

.footer-bottom {
  border-top: 1px solid rgba(244,245,243,.1);
  padding-block: 1.5rem;
}
.footer-bottom-inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
  font-size: .85rem;
  color: rgba(244,245,243,.55);
}
.footer-bottom-inner p { margin: 0; }

/* ============================================================= */
/* INTRO ANIMATIONS                                              */
/* ============================================================= */
@media (prefers-reduced-motion: no-preference) {
  .hero-title,
  .hero-lead,
  .hero-cta,
  .eyebrow,
  .braille-cell {
    opacity: 0; transform: translateY(20px);
    animation: rise .9s var(--ease) forwards;
  }
  .eyebrow      { animation-delay: .05s; }
  .hero-title   { animation-delay: .15s; }
  .hero-lead    { animation-delay: .35s; }
  .hero-cta     { animation-delay: .5s; }
  .braille-cell { animation: rise .7s var(--ease) forwards; }
  .braille-cell:nth-child(1) { animation-delay: .55s; }
  .braille-cell:nth-child(2) { animation-delay: .62s; }
  .braille-cell:nth-child(3) { animation-delay: .69s; }
  .braille-cell:nth-child(4) { animation-delay: .76s; }
  .braille-cell:nth-child(5) { animation-delay: .83s; }
  .braille-cell:nth-child(6) { animation-delay: .90s; }
  .braille-cell:nth-child(7) { animation-delay: .97s; }
  .braille-cell:nth-child(8) { animation-delay: 1.04s; }
  .braille-cell:nth-child(9) { animation-delay: 1.11s; }

  .reveal {
    opacity: 0; transform: translateY(28px);
    transition: opacity .9s var(--ease), transform .9s var(--ease);
  }
  .reveal.is-in { opacity: 1; transform: none; }
}
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

/* High contrast / forced colors safety */
@media (forced-colors: active) {
  .btn, .card, .principle, .contact-item { border: 1px solid CanvasText; }
}
