/* =========================================================
   TALENTO COMPANY — "Il Riflettore"
   Sistema di design: palco scuro, luce verde brillante,
   motivo "occhiali" ereditato dal logo come firma visiva.
   ========================================================= */

/* ---------- Font faces (self-hosted, nessuna chiamata esterna) ---------- */
@font-face {
  font-family: 'Unbounded';
  src: url('../fonts/unbounded-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Unbounded';
  src: url('../fonts/unbounded-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Unbounded';
  src: url('../fonts/unbounded-latin-900-normal.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('../fonts/figtree-latin-300-normal.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('../fonts/figtree-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('../fonts/figtree-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('../fonts/figtree-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Token ---------- */
:root {
  --bosco: #004123;        /* verde bosco ufficiale — testo, punti di massimo contrasto */
  --bosco-2: #1a4f37;      /* tinta più chiara: sfondo principale di hero e sezioni scure */
  --bosco-3: #2c6249;      /* ancora più chiara: footer, card, bande alternate */
  --bosco-4: #004123;      /* stesso verde ufficiale, riservato a pochi momenti di forte contrasto */
  --brillante: #00c161;
  --sfumature: #e1f3df;
  --white: #ffffff;

  --font-display: 'Unbounded', sans-serif;
  --font-body: 'Figtree', sans-serif;

  --container: 1200px;
  --pad: clamp(1.25rem, 4vw, 3rem);

  --radius-s: 10px;
  --radius-m: 18px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset di base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bosco-2);
  color: var(--sfumature);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; color: var(--white); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -3rem;
  background: var(--brillante);
  color: var(--bosco);
  padding: .6rem 1rem;
  border-radius: var(--radius-s);
  font-weight: 600;
  z-index: 2000;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 2px solid var(--brillante);
  outline-offset: 3px;
}
.on-light :focus-visible { outline-color: var(--bosco); }

/* ---------- Eyebrow / etichette ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brillante);
  margin: 0 0 1rem;
}
.eyebrow::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--brillante);
  flex: none;
}
.on-light .eyebrow { color: var(--bosco); }
.on-light .eyebrow::before { background: var(--bosco); }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .98rem;
  border: 1.5px solid transparent;
  transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-accent {
  background: var(--brillante);
  color: var(--bosco);
}
.btn-accent:hover { background: var(--white); }
.btn-outline {
  background: transparent;
  border-color: rgba(225,243,223,.4);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--brillante); color: var(--brillante); }
.btn-outline.on-light { border-color: rgba(0,65,35,.35); color: var(--bosco); }
.btn-outline.on-light:hover { border-color: var(--bosco); background: var(--bosco); color: var(--white); }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  background: var(--bosco-2);
  border-bottom: 1px solid rgba(225,243,223,.1);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 84px;
}
.brand img { height: 30px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 2.1rem; }
.main-nav > ul { display: flex; align-items: center; gap: 2.1rem; }
.main-nav a.nav-link {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .98rem;
  color: var(--sfumature);
  padding: .4rem 0;
  border-bottom: 2px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.main-nav a.nav-link:hover,
.main-nav a.nav-link:focus-visible { color: var(--white); border-color: var(--brillante); }

.nav-item-dropdown { position: relative; }
.nav-item-dropdown > button.nav-link {
  display: inline-flex; align-items: center; gap: .4rem;
  background: none; border: none; border-bottom: 2px solid transparent;
  color: var(--sfumature);
}
.nav-item-dropdown > button.nav-link .chev { transition: transform .2s var(--ease); }
.nav-item-dropdown > button.nav-link[aria-expanded="true"] .chev,
.nav-item-dropdown:hover > button.nav-link .chev { transform: rotate(180deg); }

.dropdown-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translate(-50%, -8px);
  width: 420px;
  background: var(--bosco-3);
  border: 1px solid rgba(225,243,223,.14);
  border-radius: var(--radius-m);
  padding: .6rem;
  box-shadow: 0 24px 48px rgba(0,0,0,.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.nav-item-dropdown:hover .dropdown-panel,
.nav-item-dropdown:focus-within .dropdown-panel,
.dropdown-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.dropdown-panel a {
  display: block;
  padding: .85rem 1rem;
  border-radius: var(--radius-s);
  transition: background .2s var(--ease);
}
.dropdown-panel a:hover, .dropdown-panel a:focus-visible { background: rgba(0,193,97,.1); }
.dropdown-panel a strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  color: var(--white);
  margin-bottom: .2rem;
}
.dropdown-panel a span { font-size: .87rem; color: rgba(225,243,223,.75); }

.header-cta { display: flex; align-items: center; gap: .8rem; }
.header-cta .btn { padding: .75rem 1.3rem; font-size: .92rem; }

.nav-toggle {
  display: none;
  background: none; border: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  color: var(--white);
}
.nav-toggle svg { width: 24px; height: 24px; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(3rem, 7vw, 5rem);
  background: var(--bosco-2);
  isolation: isolate;
}
.hero > .container { position: relative; z-index: 1; }

/* Firma visiva: il motivo "occhiali" della T diventa un fascio di luce ambientale.
   Le due "lenti" si accendono alle spalle del marchio TC, riprendendo la forma
   della barra superiore del logo (due blocchi arrotondati separati da uno scarto). */
.hero-glow { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero-glow span {
  position: absolute;
  top: -30px;
  border-radius: 46% 46% 60% 60% / 60% 60% 40% 40%;
  background: radial-gradient(ellipse at 50% 40%, rgba(0,193,97,.5) 0%, rgba(0,193,97,.22) 45%, rgba(0,193,97,0) 78%);
  filter: blur(22px);
}
.hero-glow span.lens-a { width: 220px; height: 190px; left: 1%; }
.hero-glow span.lens-b { width: 160px; height: 160px; left: 17%; top: -12px; }
@media (prefers-reduced-motion: no-preference) {
  .hero-glow span.lens-b { animation-delay: -4.5s; }
}
.hero-icon { width: auto; height: 44px; opacity: .9; margin-bottom: 1.6rem; }

/* Titolo e sottotitolo dell'hero: valido su tutte le pagine (home compresa,
   che poi viene rifinita dal blocco "HOME HERO — HEADLINE A IMPATTO" più sotto) */
.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.01em;
  max-width: 20ch;
}
.hero .lede {
  margin: 1.4rem 0 2.1rem;
  font-size: 1.1rem;
  color: rgba(225,243,223,.85);
  max-width: 56ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* =========================================================
   HOME HERO — HEADLINE A IMPATTO
   Solo la home usa .hero-headline al posto di h1.kinetic: righe fisse,
   ognuna mascherata da un overflow-hidden e "sollevata" in sequenza,
   più grande e con l'ultima riga in accento brillante. Le altre pagine
   restano sul trattamento .kinetic standard (parola per parola), così
   l'home si distingue senza disallinearsi dal sistema.
   ========================================================= */
.hero-headline {
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -.015em;
  max-width: 16ch;
}
.hero-headline .hl-line-mask { display: block; overflow: hidden; }
.hero-headline .hl-line {
  display: block;
  transform: translateY(115%);
  opacity: 0;
}
.hero-headline.is-revealed .hl-line-mask:nth-child(1) .hl-line { animation: hl-rise .9s cubic-bezier(.16,1,.3,1) forwards .05s; }
.hero-headline.is-revealed .hl-line-mask:nth-child(2) .hl-line { animation: hl-rise .9s cubic-bezier(.16,1,.3,1) forwards .22s; }
.hero-headline.is-revealed .hl-line-mask:nth-child(3) .hl-line { animation: hl-rise .9s cubic-bezier(.16,1,.3,1) forwards .39s; }
@keyframes hl-rise { to { transform: translateY(0); opacity: 1; } }
.hero-headline .hl-accent { color: var(--brillante); }
@media (prefers-reduced-motion: reduce) {
  .hero-headline .hl-line { opacity: 1; transform: none; animation: none; }
}
/* =========================================================
   BLOG "IN EVIDENZA" — breadcrumb, meta, corpo articolo,
   card/lista per l'indice
   ========================================================= */
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem;
  font-size: .85rem; color: rgba(225,243,223,.6);
  margin-bottom: 1.3rem;
}
.breadcrumb a { color: rgba(225,243,223,.85); }
.breadcrumb a:hover { color: var(--brillante); }
.breadcrumb .sep { opacity: .5; }
.on-light .breadcrumb, .section-light .breadcrumb { color: rgba(0,65,35,.55); }
.on-light .breadcrumb a, .section-light .breadcrumb a { color: var(--bosco); }

.article-meta {
  display: flex; flex-wrap: wrap; gap: .9rem; align-items: center;
  font-size: .88rem; color: rgba(225,243,223,.75);
  margin-top: 1.1rem;
}
.article-meta .tag {
  display: inline-flex; align-items: center;
  background: rgba(0,193,97,.14); color: var(--brillante);
  border-radius: 999px; padding: .3rem .8rem; font-weight: 700; font-size: .78rem;
  letter-spacing: .02em; text-transform: uppercase;
}

.article-body { max-width: 720px; margin: 0 auto; }
.article-body p { font-size: 1.08rem; line-height: 1.68; color: rgba(0,65,35,.8); margin: 0 0 1.4rem; }
.article-body h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); font-weight: 700; color: var(--bosco); margin: 2.6rem 0 1.1rem; line-height: 1.25; }
.article-body h2:first-child { margin-top: 0; }
.article-body ul.check-list { margin: 1.4rem 0; display: flex; flex-direction: column; gap: .7rem; }
.article-body ul.check-list li { display: flex; gap: .7rem; align-items: flex-start; font-size: 1.02rem; color: rgba(0,65,35,.8); line-height: 1.5; }
.article-body ul.check-list svg { flex: none; width: 20px; height: 20px; margin-top: .3rem; color: var(--brillante); }
.article-body .pull-note {
  background: var(--sfumature); border-left: 3px solid var(--brillante);
  border-radius: var(--radius-s); padding: 1.2rem 1.4rem; margin: 2rem 0;
  font-size: .98rem; color: rgba(0,65,35,.82);
}
.article-back { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--bosco); margin-bottom: 1.8rem; }
.article-back svg { width: 15px; height: 15px; transform: rotate(180deg); }

/* =========================================================
   BLOG "IN EVIDENZA" v3 — multi-categoria (un articolo può
   avere più tag), copertina per-articolo opzionale (fornita
   esternamente: Canva/AI), nessuna icona per-categoria
   ========================================================= */
.category-filter {
  display: flex; flex-wrap: wrap; gap: .7rem;
  margin: 0 0 2.8rem;
}
.category-filter button {
  font-family: var(--font-body); font-weight: 700; font-size: .88rem;
  color: var(--bosco); background: var(--white);
  border: 1.5px solid rgba(0,65,35,.15);
  border-radius: 999px; padding: .55rem 1.15rem;
  cursor: pointer; transition: all .2s var(--ease);
}
.category-filter button:hover { border-color: var(--bosco); }
.category-filter button.is-active { background: var(--bosco); border-color: var(--bosco); color: var(--white); }

.articles-index { display: flex; flex-direction: column; gap: 1.3rem; }

.entry-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.entry-tags .tag {
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
  color: var(--bosco); background: rgba(0,65,35,.08); border-radius: 999px; padding: .25rem .65rem;
  white-space: nowrap;
}

.article-entry {
  display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center;
  background: var(--white); border: 1px solid rgba(0,65,35,.08); border-radius: var(--radius-m);
  padding: 1.5rem 1.7rem;
  box-shadow: 0 16px 36px -28px rgba(0,65,35,.24);
  transition: transform .16s ease-out, box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.article-entry:hover { transform: translateY(-3px); box-shadow: 0 22px 42px -22px rgba(0,65,35,.3); border-color: rgba(0,193,97,.35); }
.article-entry .entry-body h3 { font-size: 1.12rem; font-weight: 700; color: var(--bosco); margin: 0 0 .35rem; line-height: 1.3; }
.article-entry .entry-body p { font-size: .92rem; color: rgba(0,65,35,.68); margin: 0 0 .7rem; max-width: 60ch; }
.article-entry .entry-meta {
  display: flex; flex-direction: column; align-items: flex-end; gap: .5rem;
  text-align: right; flex: none; max-width: 220px;
}
.article-entry .entry-meta .entry-tags { justify-content: flex-end; }
.article-entry .entry-meta .entry-date { font-size: .78rem; color: rgba(0,65,35,.5); }

/* ---- Articolo in evidenza: card grande in cima ----
   Sfondo pronto per una copertina per-articolo: aggiungere
   style="background-image:url('...')" sul tag <article>, oppure
   una classe dedicata, quando il file sarà disponibile. */
.article-featured {
  display: grid; grid-template-columns: 1fr; gap: 1.8rem; align-items: start;
  background: var(--bosco); background-size: cover; background-position: center;
  color: var(--white);
  border-radius: var(--radius-l); padding: 2.6rem 2.4rem;
  margin-bottom: 2.2rem; position: relative; overflow: hidden;
}
.article-featured::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 88% -10%, rgba(0,193,97,.22), transparent 55%);
  pointer-events: none;
}
.article-featured .featured-eyebrow {
  font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--brillante); margin-bottom: .9rem; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
}
.article-featured .featured-eyebrow .entry-tags .tag {
  background: rgba(0,193,97,.18); color: var(--brillante);
}
.article-featured h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 900; line-height: 1.18; margin: 0 0 .9rem; max-width: 26ch; }
.section-light .article-featured h2, .section-deep .article-featured h2, .section-dark .article-featured h2 { color: var(--white); }
.article-featured p.featured-excerpt { font-size: 1.02rem; color: rgba(225,243,223,.82); max-width: 58ch; margin: 0 0 1.5rem; }
.article-featured .entry-date { font-size: .82rem; color: rgba(225,243,223,.55); margin-right: 1.2rem; }
.article-featured .featured-foot { display: flex; align-items: center; gap: 1.2rem; position: relative; }
.article-featured[hidden], .article-entry[hidden] { display: none; }
@media (max-width: 640px) {
  .article-entry { grid-template-columns: 1fr; }
  .article-entry .entry-meta { flex-direction: column; align-items: flex-start; text-align: left; max-width: none; }
  .article-featured { grid-template-columns: 1fr; padding: 2rem 1.6rem; }
}

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee {
  background: var(--bosco-3);
  border-top: 1px solid rgba(225,243,223,.08);
  border-bottom: 1px solid rgba(225,243,223,.08);
  overflow: hidden;
  padding: .95rem 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee 32s linear infinite; }
  .marquee:hover .marquee-track,
  .marquee:focus-within .marquee-track { animation-play-state: paused; }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-item {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: rgba(225,243,223,.55);
  white-space: nowrap;
  padding: 0 1.1rem;
}
.marquee-item .dot { color: var(--brillante); padding: 0 .4rem; }

/* =========================================================
   SEZIONI GENERICHE — palette chiara "stile Contatti" ovunque.
   Lo scuro resta riservato a header, hero, citazione, CTA e footer.
   ========================================================= */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-dark { background: var(--white); color: var(--bosco); }
.section-deep { background: var(--sfumature); color: var(--bosco); }
.section-darkest { background: var(--bosco); color: var(--white); }
.section-light { background: var(--sfumature); color: var(--bosco); }

.section-dark h2, .section-dark h3,
.section-deep h2, .section-deep h3,
.section-light h2, .section-light h3 { color: var(--bosco); }

.section-dark .eyebrow, .section-deep .eyebrow, .section-light .eyebrow { color: var(--bosco); }
.section-dark .eyebrow::before, .section-deep .eyebrow::before, .section-light .eyebrow::before { background: var(--bosco); }

.section-head { max-width: 660px; margin-bottom: 3rem; }
.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  font-weight: 700;
  line-height: 1.18;
}
.section-head p {
  margin-top: 1.1rem;
  font-size: 1.05rem;
  color: rgba(225,243,223,.8);
}
.section-dark .section-head p,
.section-deep .section-head p,
.section-light .section-head p { color: rgba(0,65,35,.75); }

/* ---------- Aree di intervento: card (bianche, in linea con Contatti) ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.card {
  background: var(--white);
  border: 1px solid rgba(0,65,35,.08);
  border-radius: var(--radius-m);
  padding: 2.1rem 1.8rem;
  box-shadow: 0 20px 44px -28px rgba(0,65,35,.28);
  transition: border-color .5s var(--ease), box-shadow .5s var(--ease), transform .12s ease-out;
}
.card.is-lit {
  border-color: rgba(0,193,97,.4);
  box-shadow: 0 24px 48px -20px rgba(0,65,35,.32);
}
.card-icon {
  width: 46px; height: 46px;
  border-radius: var(--radius-s);
  background: rgba(0,65,35,.07);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.3rem;
}
.card-icon svg { width: 22px; height: 22px; color: var(--bosco); }
.card h3 { color: var(--bosco); font-size: 1.2rem; font-weight: 700; margin-bottom: .7rem; }
.card p { margin: 0 0 1.2rem; color: rgba(0,65,35,.72); font-size: .98rem; }
.card .card-link {
  font-weight: 700; font-size: .92rem; color: var(--bosco);
  display: inline-flex; align-items: center; gap: .35rem;
}
.card .card-link svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.card .card-link:hover svg { transform: translateX(3px); }

/* ---------- Odio Social: percorsi (bianche) ---------- */
.paths-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}
.path-card {
  background: var(--white);
  border: 1px solid rgba(0,65,35,.08);
  box-shadow: 0 20px 44px -28px rgba(0,65,35,.28);
  border-radius: var(--radius-m);
  padding: 2.3rem 2rem;
  display: flex; flex-direction: column;
}
.path-card .eyebrow { color: var(--bosco); }
.path-card .eyebrow::before { background: var(--bosco); }
.path-card h3 { color: var(--bosco); }
.path-card h3 {
  font-size: 1.35rem;
  min-height: 3.4rem;
  display: flex; align-items: center;
  margin-bottom: .9rem;
}
.path-card p { color: rgba(0,65,35,.72); margin: 0 0 1.5rem; flex: 1; }

/* ---------- Odio Social: percorso singolo (banner) ---------- */
.single-path-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: var(--white);
  border: 1px solid rgba(0,65,35,.08);
  box-shadow: 0 20px 44px -28px rgba(0,65,35,.28);
  border-radius: var(--radius-m);
  padding: 2.3rem 2.5rem;
}
.single-path-text .eyebrow { color: var(--bosco); }
.single-path-text .eyebrow::before { background: var(--bosco); }
.single-path-text h3 { color: var(--bosco); font-size: 1.4rem; font-weight: 700; margin-bottom: .6rem; }
.single-path-text p { color: rgba(0,65,35,.72); margin: 0; max-width: 56ch; }
.single-path-banner .btn { flex: none; }
@media (max-width: 760px) {
  .single-path-banner { flex-direction: column; align-items: stretch; text-align: left; padding: 2rem; }
  .single-path-banner .btn { width: 100%; }
}

/* =========================================================
   SERVIZI — blocchi di approfondimento (non più semplici card)
   ========================================================= */
.services-list { display: flex; flex-direction: column; gap: 1.4rem; margin-top: 2.5rem; }
.service-block {
  background: var(--white);
  border: 1px solid rgba(0,65,35,.08);
  box-shadow: 0 20px 44px -30px rgba(0,65,35,.28);
  border-radius: var(--radius-m);
  padding: clamp(1.8rem, 3vw, 2.6rem);
  scroll-margin-top: 100px;
}
.service-block-head {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  margin-bottom: 1.2rem;
}
.service-block-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.6rem;
  color: rgba(0,65,35,.18);
  flex: none;
  min-width: 2.2ch;
}
.service-block-icon {
  width: 46px; height: 46px; flex: none;
  border-radius: var(--radius-s);
  background: rgba(0,65,35,.07);
  display: flex; align-items: center; justify-content: center;
}
.service-block-icon svg { width: 22px; height: 22px; color: var(--bosco); }
.service-block-head h3 { color: var(--bosco); font-size: 1.4rem; font-weight: 700; margin: 0; }
.service-block-intro { color: rgba(0,65,35,.78); font-size: 1.02rem; margin: 0 0 1.3rem; max-width: 68ch; }
.service-block-list { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.service-block-list li {
  display: flex; align-items: flex-start; gap: .6rem;
  font-size: .95rem; color: rgba(0,65,35,.85);
}
.service-block-list li svg { width: 16px; height: 16px; flex: none; margin-top: .2rem; color: var(--brillante); }
@media (max-width: 700px) {
  .service-block-head { align-items: flex-start; }
  .service-block-list { grid-template-columns: 1fr; }
}

/* ---------- Citazione ---------- */
.quote-band { text-align: center; }
.quote-band .container { max-width: 780px; }
.quote-icon { width: auto; height: 40px; margin: 0 auto 1.6rem; opacity: .85; }
.quote-band blockquote {
  margin: 0 0 1.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  color: var(--white);
  line-height: 1.28;
}
.quote-band p.support { color: rgba(225,243,223,.75); font-size: 1.05rem; max-width: 56ch; margin: 0 auto; }

/* ---------- Pilastri (banda chiara) ---------- */
.pilastri-teaser .container {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 3rem;
  align-items: start;
}
.pilastri-teaser h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.pilastri-copy p { margin: 0 0 1.1rem; font-size: 1.02rem; color: rgba(0,65,35,.82); }
.pilastri-copy .card-link { color: var(--bosco); font-weight: 700; display: inline-flex; align-items: center; gap: .4rem; margin-top: .4rem; }
.pilastri-copy .card-link svg { width: 15px; height: 15px; }

/* ---------- CTA finale ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: var(--bosco-4);
}
.cta-band > .container { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); max-width: 18ch; margin: 0 auto 2.1rem; }
.cta-band .hero-actions { justify-content: center; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--bosco-3); padding: 4.5rem 0 0; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(225,243,223,.1);
}
.footer-brand img { height: 26px; margin-bottom: 1.1rem; }
.footer-brand p { color: rgba(225,243,223,.7); font-size: .95rem; max-width: 34ch; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(225,243,223,.5);
  margin: 0 0 1.1rem;
}
.footer-col ul li { margin-bottom: .7rem; }
.footer-col a { color: rgba(225,243,223,.85); font-size: .95rem; transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--brillante); }
.footer-col p { color: rgba(225,243,223,.85); font-size: .95rem; margin: 0 0 .7rem; }

.footer-legal { padding: 2rem 0; }
.footer-legal p {
  font-size: .82rem;
  color: rgba(225,243,223,.55);
  line-height: 1.6;
  max-width: 90ch;
  margin: 0 0 1.4rem;
}
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .8rem;
  border-top: 1px solid rgba(225,243,223,.1);
  padding: 1.4rem 0 2rem;
  font-size: .85rem;
  color: rgba(225,243,223,.55);
}
.footer-bottom .legal-links { display: flex; gap: 1.3rem; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--brillante); }
.link-button {
  background: none; border: none; padding: 0;
  color: rgba(225,243,223,.55);
  font-family: var(--font-body); font-size: .85rem;
  text-decoration: underline; text-underline-offset: 2px;
}
.link-button:hover { color: var(--brillante); }

/* =========================================================
   COOKIE BANNER
   ========================================================= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1250;
  background: var(--bosco-3);
  border-top: 1px solid rgba(225,243,223,.16);
  box-shadow: 0 -20px 40px rgba(0,0,0,.35);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.6rem var(--pad) 1.8rem;
}
.cookie-main {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.cookie-main p {
  flex: 1 1 380px;
  margin: 0;
  font-size: .92rem;
  color: rgba(225,243,223,.85);
}
.cookie-main p a { color: var(--brillante); text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions {
  display: flex;
  gap: .7rem;
  flex-wrap: wrap;
}
.cookie-actions .btn { padding: .7rem 1.2rem; font-size: .88rem; }

.cookie-prefs {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(225,243,223,.12);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cookie-prefs[hidden] { display: none; }
.cookie-pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(225,243,223,.08);
}
.cookie-pref-row:last-of-type { border-bottom: none; padding-bottom: 0; }
.cookie-pref-row strong { display: block; font-size: .95rem; color: var(--white); margin-bottom: .25rem; }
.cookie-pref-row span { font-size: .85rem; color: rgba(225,243,223,.65); }

.switch { position: relative; display: inline-block; width: 44px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span {
  position: absolute; inset: 0; cursor: pointer;
  background: rgba(225,243,223,.2);
  border-radius: 999px;
  transition: background .2s var(--ease);
}
.switch span::before {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  left: 3px; top: 3px;
  background: var(--white);
  border-radius: 50%;
  transition: transform .2s var(--ease);
}
.switch input:checked + span { background: var(--brillante); }
.switch input:checked + span::before { transform: translateX(18px); }
.switch input:disabled + span { opacity: .6; cursor: not-allowed; }
.switch.is-locked { opacity: .85; }

@media (max-width: 640px) {
  .cookie-main { flex-direction: column; align-items: stretch; }
  .cookie-actions { justify-content: stretch; }
  .cookie-actions .btn { flex: 1; }
}

/* =========================================================
   NAV — stato attivo
   ========================================================= */
.main-nav a.nav-link[aria-current="page"],
.nav-mobile-body a.nav-link[aria-current="page"] {
  color: var(--white);
  border-color: var(--brillante);
}

/* =========================================================
   GRID A 4 COLONNE (competenze, altre aree)
   ========================================================= */
.cards-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1080px) { .cards-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards-grid.cols-4 { grid-template-columns: 1fr; } }

.card.card-compact { padding: 1.7rem 1.5rem; }
.card.card-compact h3 { font-size: 1.05rem; }
.card.card-compact p { font-size: .92rem; margin-bottom: 0; }
.card.card-compact:has(.card-link) p { margin-bottom: .9rem; }

/* =========================================================
   PILASTRI — versione completa (banda chiara)
   ========================================================= */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 2.5rem;
}
.pillar-card {
  background: var(--white);
  border: 1px solid rgba(0,65,35,.1);
  border-radius: var(--radius-m);
  padding: 2rem 1.7rem;
}
.pillar-card .card-icon { background: rgba(0,65,35,.08); }
.pillar-card .card-icon svg { color: var(--bosco); }
.pillar-card h3 { color: var(--bosco); font-size: 1.15rem; margin-bottom: .6rem; }
.pillar-card p { color: rgba(0,65,35,.75); margin: 0; font-size: .96rem; }
@media (max-width: 900px) { .pillars-grid { grid-template-columns: 1fr; } }

/* =========================================================
   PROCESS STEPS — timeline verticale
   ========================================================= */
.steps-list { display: flex; flex-direction: column; margin-top: 2.5rem; }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 1.6rem; position: relative; }
.step-marker { display: flex; flex-direction: column; align-items: center; }
.step-num {
  width: 52px; height: 52px; flex: none;
  border-radius: 50%;
  border: 1.5px solid rgba(0,193,97,.5);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  color: var(--brillante);
  background: var(--bosco);
}
.step-line { width: 1.5px; flex: 1; background: rgba(0,65,35,.16); margin: .4rem 0; min-height: 24px; }
.step:last-child .step-line { display: none; }
.step-content { padding-bottom: 2.6rem; }
.step:last-child .step-content { padding-bottom: 0; }
.step-content h3 { color: var(--bosco); font-size: 1.2rem; font-weight: 700; margin-bottom: .55rem; }
.step-content p { color: rgba(0,65,35,.72); margin: 0; max-width: 62ch; }
.step-content p strong { color: var(--bosco); }

/* =========================================================
   CALLOUT (avviso importante)
   ========================================================= */
.callout {
  border-left: 3px solid var(--brillante);
  background: rgba(0,193,97,.08);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  padding: 1.3rem 1.5rem;
  margin-top: 2rem;
  font-size: .98rem;
  color: rgba(225,243,223,.92);
}
.callout strong { color: var(--white); }

/* =========================================================
   FAQ (accordion)
   ========================================================= */
.faq-list { display: flex; flex-direction: column; gap: .8rem; margin-top: 2.5rem; }
.faq-item {
  background: var(--white);
  border: 1px solid rgba(0,65,35,.1);
  box-shadow: 0 16px 34px -26px rgba(0,65,35,.3);
  border-radius: var(--radius-m);
  padding: .2rem 1.6rem;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.3rem 2rem 1.3rem 0;
  position: relative;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--bosco);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  position: absolute;
  right: 0; top: 50%;
  width: 12px; height: 12px;
  margin-top: -6px;
  border-right: 1.6px solid var(--bosco);
  border-bottom: 1.6px solid var(--bosco);
  transform: rotate(45deg);
  transition: transform .25s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-body { padding: 0 0 1.5rem; color: rgba(0,65,35,.72); }
.faq-body p { margin: 0; }
.faq-body strong { color: var(--bosco); }

/* =========================================================
   CONTATTI — banda chiara, form + sidebar
   ========================================================= */
.contact-hero .eyebrow { justify-content: flex-start; }
.contact-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); max-width: 20ch; }
.contact-hero p.lede { margin-top: 1.1rem; color: rgba(225,243,223,.82); max-width: 56ch; }

.contact-section { background: var(--sfumature); color: var(--bosco); padding: clamp(3rem, 7vw, 5rem) 0 clamp(4rem, 8vw, 6rem); }
.contact-grid { display: grid; grid-template-columns: 1.3fr .8fr; gap: 2.5rem; align-items: start; }

.contact-form {
  background: var(--white);
  border-radius: var(--radius-m);
  padding: clamp(1.8rem, 4vw, 2.6rem);
  display: grid;
  gap: 1.3rem;
  box-shadow: 0 30px 60px -30px rgba(0,65,35,.25);
}
.form-row { display: grid; gap: .5rem; }
.form-row.two-col { grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.form-row label {
  font-family: var(--font-body); font-weight: 700; font-size: .88rem; color: var(--bosco);
}
.form-row input, .form-row select, .form-row textarea {
  font-family: var(--font-body); font-size: .98rem;
  padding: .85rem 1rem;
  border-radius: var(--radius-s);
  border: 1.5px solid rgba(0,65,35,.18);
  background: var(--white);
  color: var(--bosco);
  transition: border-color .2s var(--ease);
  width: 100%;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--brillante);
}
.form-row textarea { resize: vertical; min-height: 130px; font-family: var(--font-body); }
.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-consent { display: flex; align-items: flex-start; gap: .7rem; font-size: .88rem; color: rgba(0,65,35,.75); }
.form-consent input { margin-top: .25rem; flex: none; }
.form-consent a { color: var(--bosco); text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.form-msg { font-size: .92rem; padding: .9rem 1.1rem; border-radius: var(--radius-s); display: none; }
.form-msg.is-visible { display: block; }
.form-msg.success { background: rgba(0,193,97,.12); color: #013820; }
.form-msg.error { background: rgba(200,40,40,.1); color: #7a1f1f; }

.contact-sidebar { display: flex; flex-direction: column; gap: 1.3rem; }
.sidebar-card {
  background: var(--white);
  border-radius: var(--radius-m);
  padding: 1.6rem 1.7rem;
  border: 1px solid rgba(0,65,35,.08);
}
.sidebar-card h4 {
  font-family: var(--font-body); font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: rgba(0,65,35,.55); margin: 0 0 .5rem;
}
.sidebar-card p, .sidebar-card a { font-size: .98rem; color: var(--bosco); margin: 0; }
.sidebar-card a:hover { color: var(--brillante); }
.sidebar-note {
  background: var(--bosco);
  color: rgba(225,243,223,.9);
  border-radius: var(--radius-m);
  padding: 1.5rem 1.6rem;
  font-size: .92rem;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row.two-col { grid-template-columns: 1fr; }
}

/* =========================================================
   PAGINE LEGALI
   ========================================================= */
.legal-hero {
  background: var(--bosco-2);
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 5vw, 3rem);
}
.legal-hero h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); max-width: 26ch; }
.legal-hero .updated { margin-top: 1rem; color: rgba(225,243,223,.6); font-size: .92rem; }

.legal-section { background: var(--white); color: var(--bosco); padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(4rem, 8vw, 6rem); }
.legal-content { max-width: 74ch; }
.legal-content h2 {
  color: var(--bosco);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 2.4rem 0 1rem;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { color: var(--bosco); font-size: 1.05rem; font-weight: 700; margin: 1.6rem 0 .6rem; }
.legal-content p { margin: 0 0 1.1rem; color: rgba(0,65,35,.85); font-size: 1rem; }
.legal-content a { color: var(--bosco); text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.legal-content a:hover { color: var(--brillante); }

/* =========================================================
   LAVORA CON NOI — annunci (accordion in stile FAQ)
   ========================================================= */
.job-list { display: flex; flex-direction: column; gap: .8rem; margin-top: 2.5rem; }
.job-item {
  background: var(--white);
  border: 1px solid rgba(0,65,35,.1);
  box-shadow: 0 16px 34px -26px rgba(0,65,35,.3);
  border-radius: var(--radius-m);
  padding: .3rem 1.6rem;
}
.job-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.4rem 2.2rem 1.4rem 0;
  position: relative;
}
.job-item summary::-webkit-details-marker { display: none; }
.job-item summary::after {
  content: '';
  position: absolute;
  right: 0; top: 1.6rem;
  width: 12px; height: 12px;
  border-right: 1.6px solid var(--bosco);
  border-bottom: 1.6px solid var(--bosco);
  transform: rotate(45deg);
  transition: transform .25s var(--ease);
}
.job-item[open] summary::after { transform: rotate(-135deg); margin-top: -8px; }
.job-title { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--bosco); margin: 0 0 .5rem; }
.job-meta { display: flex; flex-wrap: wrap; gap: .6rem; }
.job-tag {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .82rem; font-weight: 700;
  color: var(--bosco);
  background: rgba(0,65,35,.07);
  padding: .3rem .7rem;
  border-radius: 999px;
}
.job-body { padding: 0 0 1.7rem; color: rgba(0,65,35,.78); }
.job-body p { margin: 0 0 1.1rem; }
.job-body h4 { font-size: .92rem; font-weight: 700; color: var(--bosco); margin: 0 0 .7rem; }
.job-body ul { margin: 0 0 1.4rem; padding-left: 0; list-style: none; }
.job-body li { margin-bottom: .5rem; padding-left: 1.3rem; position: relative; }
.job-body li::before {
  content: '';
  position: absolute; left: 0; top: .55em;
  width: 6px; height: 6px; border-radius: 2px;
  background: var(--brillante);
}
.job-apply { margin-top: .4rem; }

/* =========================================================
   ENERGIA + CHICCHE — direzione con più movimento e impatto
   ========================================================= */

/* ---- Cuneo diagonale: ora un accento sottile, non un blocco dominante ---- */
.hero-wedge {
  position: absolute;
  top: -10%;
  right: -10%;
  width: 26%;
  height: 130%;
  background: var(--brillante);
  opacity: .55;
  clip-path: polygon(52% 0, 100% 0, 100% 100%, 30% 100%);
  z-index: 0;
}
.hero-wedge::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.18), rgba(255,255,255,0) 55%);
}
@media (max-width: 900px) {
  .hero-wedge { width: 22%; right: -14%; opacity: .4; }
}
@media (max-width: 640px) {
  .hero-wedge { display: none; }
}

/* ---- Bagliori: pulsazione continua invece del semplice drift ---- */
@keyframes lens-pulse {
  0%, 100% { transform: scale(1); opacity: .8; }
  50%      { transform: scale(1.15); opacity: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-glow span { animation-name: lens-pulse; animation-duration: 4.4s; animation-timing-function: ease-in-out; animation-iteration-count: infinite; }
  .hero-glow span.lens-b { animation-delay: -2.2s; }
}

/* ---- Marquee: rimosso da sotto l'hero. Stile mantenuto discreto per eventuali usi futuri ---- */
.marquee { background: var(--bosco-3); border-top: 1px solid rgba(225,243,223,.08); border-bottom: 1px solid rgba(225,243,223,.08); padding: .95rem 0; }
.marquee-item {
  font-weight: 700;
  font-size: 1rem;
  color: rgba(225,243,223,.55);
  text-transform: none;
  letter-spacing: normal;
}
.marquee-item .dot { color: var(--brillante); opacity: 1; padding: 0 .4rem; }
@media (prefers-reduced-motion: no-preference) { .marquee-track { animation-duration: 32s; } }

/* ---- Titoli cinetici: le parole entrano a scatti ---- */
.kinetic .kw {
  display: inline-block;
  opacity: 0;
  transform: translateY(24px);
}
.kinetic.is-revealed .kw {
  animation: word-in .65s cubic-bezier(.22,.61,.36,1) forwards;
}
@keyframes word-in { to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .kinetic .kw { opacity: 1; transform: none; animation: none; }
}

/* ---- Bottoni magnetici: solo micro-spostamento via JS, qui il transition ---- */
.btn[data-magnetic] { transition: transform .15s ease-out, background .2s ease, border-color .2s ease, color .2s ease; }

/* ---- Card con tilt 3D (via JS transform inline) ---- */
.card, .path-card, .pillar-card {
  transition: transform .12s ease-out, border-color .5s var(--ease), box-shadow .5s var(--ease), background .5s var(--ease);
  will-change: transform;
}

/* ---- Particelle di sfondo nell'hero: canvas a tutta larghezza dietro il contenuto ---- */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-particles canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* ---- Cursore-riflettore nelle sezioni scure ---- */
#cursor-spotlight {
  position: fixed;
  top: 0; left: 0;
  width: 460px; height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,193,97,.15), rgba(0,193,97,0) 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  transition: opacity .35s ease;
  mix-blend-mode: screen;
}
#cursor-spotlight.is-active { opacity: 1; }
@media (hover: none), (pointer: coarse) { #cursor-spotlight { display: none; } }

/* ---- Timeline che si disegna allo scroll ---- */
.step-line { transform: scaleY(0); transform-origin: top; transition: transform .7s var(--ease); }
.step.is-drawn .step-line { transform: scaleY(1); }
.step-num { transform: scale(.72); opacity: .35; transition: transform .45s var(--ease), opacity .45s var(--ease); }
.step.is-drawn .step-num { transform: scale(1); opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .step-line { transform: scaleY(1); }
  .step-num { transform: scale(1); opacity: 1; }
}

/* ---- CTA di chiusura: resta scura, con un accento verde concentrato invece del pieno ---- */
.cta-band.cta-band--bold {
  background: var(--bosco-4);
  position: relative;
  overflow: hidden;
}
.cta-band--bold::before {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 480px; height: 480px;
  transform: translate(-50%, -55%);
  background: radial-gradient(circle, rgba(0,193,97,.28), rgba(0,193,97,0) 68%);
  pointer-events: none;
}

/* =========================================================
   COMPONENTI AGGIUNTIVI
   ========================================================= */
.lead-copy { max-width: 800px; }
.lead-copy p { font-size: 1.12rem; line-height: 1.6; color: rgba(0,65,35,.78); margin: 0 0 1.3rem; }
.lead-copy p:last-child { margin-bottom: 0; }

.small-note { max-width: 800px; margin-top: 1.6rem; font-size: .9rem; color: rgba(0,65,35,.55); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
/* Interruzione di riga attiva solo da desktop, per bilanciare i titoli in coppia */
.pair-break { display: none; }
@media (min-width: 901px) {
  .pair-break { display: inline; }
}

@media (max-width: 1080px) {
  .footer-top { grid-template-columns: 1fr 1fr; row-gap: 2.4rem; }
  .pilastri-teaser .container { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .main-nav, .header-cta .btn-outline { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-cta .btn-accent { padding: .65rem 1.1rem; font-size: .88rem; }

  .cards-grid, .paths-grid { grid-template-columns: 1fr; }
  .path-card h3 { min-height: 0; }

  .footer-top { grid-template-columns: 1fr; }
}

/* ---------- Menu mobile a schermo intero ---------- */
.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 1300;
  background: var(--bosco-2);
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .32s var(--ease);
  overflow-y: auto;
}
.nav-mobile.is-open { transform: translateX(0); }
.nav-mobile-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 var(--pad); height: 84px; flex: none;
  border-bottom: 1px solid rgba(225,243,223,.1);
}
.nav-mobile-head img { height: 26px; }
.nav-mobile-close { background: none; border: none; color: var(--white); width: 44px; height: 44px; }
.nav-mobile-body { padding: 2rem var(--pad) 3rem; flex: 1; }
.nav-mobile-body > ul > li { border-bottom: 1px solid rgba(225,243,223,.1); }
.nav-mobile-body a.nav-link,
.nav-mobile-body button.nav-link {
  display: flex; width: 100%; justify-content: space-between; align-items: center;
  background: none; border: none; text-align: left;
  padding: 1.15rem 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--white);
}
.nav-mobile-sub {
  max-height: 0; overflow: hidden;
  transition: max-height .3s var(--ease);
}
.nav-mobile-sub.is-open { max-height: 240px; }
.nav-mobile-sub a { display: block; padding: 1rem 0 1rem 1rem; border-top: 1px solid rgba(225,243,223,.08); }
.nav-mobile-sub a strong { display: block; font-family: var(--font-display); font-size: 1rem; margin-bottom: .2rem; }
.nav-mobile-sub a span { font-size: .85rem; color: rgba(225,243,223,.65); }
.nav-mobile-cta { margin-top: 2rem; display: flex; flex-direction: column; gap: .9rem; }
.nav-mobile-cta .btn { width: 100%; }
