/* =============================================================================
   VerdeLab — foglio di stile unico del sito
   -----------------------------------------------------------------------------
   Indice
     1. Font (self-hosted, solo sottoinsieme latino)
     2. Variabili: colori, tipografia, animazioni
     3. Reset e base
     4. Utilita' (contenitori, testo, icone, reveal allo scroll)
     5. Componenti condivisi (bottoni, etichette, tag, card)
     6. Loader, cursore, overlay di transizione
     7. Navbar
     8. Home: Hero, Chi siamo, Servizi, Prodotti (+ modali), Blog, Timeline,
        Team, Partner, Numeri, FAQ, Contatti
     9. Footer
    10. Pagine servizio
    11. Pagina 404
    12. Accessibilita': riduzione movimento
   Breakpoint (come il sito precedente): sm 640px · md 768px · lg 1024px
   ========================================================================== */

/* ── 1. Font ─────────────────────────────────────────────────────────────── */
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/instrument-serif.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/instrument-serif-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/fonts/space-grotesk.woff2") format("woff2");
}

/* ── 2. Variabili ────────────────────────────────────────────────────────── */
:root {
  --base: #F5F4F0;
  --surface: #EDECEA;
  --surface-2: #E5E4DF;
  --ink: #0C0C0C;
  --ink-2: #6B6B6B;
  --ink-3: #9A9A9A;
  --border: #D8D7D3;
  --teal: #00B4A6;
  --teal-light: #E0F7F5;
  --teal-dark: #007A70;
  --dark: #080808;

  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Space Grotesk", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --fs-display-xl: clamp(4rem, 10vw, 10rem);
  --fs-display-lg: clamp(3.25rem, 7vw, 7rem);
  --fs-display-md: clamp(2rem, 4vw, 4.5rem);
  --fs-display-sm: clamp(1.5rem, 3vw, 3rem);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.2, 0.8, 0.2, 1);
  --gradient-teal: linear-gradient(90deg, #00B4A6 0%, #009E91 50%, #007A70 100%);
}

/* ── 3. Reset e base ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid; }
html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body {
  background: var(--base);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
  overflow-x: hidden;
}
h1, h2, h3, h4, p, dl, dd { font-size: inherit; font-weight: inherit; }
a { color: inherit; text-decoration: none; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; background: none; cursor: pointer; text-align: inherit; }
ul, ol { list-style: none; }
::selection { background-color: rgba(0, 180, 166, 0.2); color: var(--ink); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
[hidden] { display: none !important; }

/* Scroll bloccato durante loader e modali */
html.no-scroll, html.no-scroll body { overflow: hidden; }

/* Cursore personalizzato attivo (solo mouse): nasconde quello di sistema */
html.has-cursor, html.has-cursor * { cursor: none !important; }

/* ── 4. Utilita' ─────────────────────────────────────────────────────────── */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; opacity: 0; pointer-events: none;
}

/* Contenitori: .wrap ha il padding dentro (max 1200px di contenuto),
   .pad mette il padding sulla sezione e .inner limita a 1280px */
.wrap { width: 100%; max-width: 80rem; margin-inline: auto; padding-inline: 1.5rem; }
.pad { padding-inline: 1.5rem; }
.inner { width: 100%; max-width: 80rem; margin-inline: auto; }
@media (min-width: 768px) {
  .wrap { padding-inline: 2.5rem; }
  .pad { padding-inline: 2.5rem; }
}

.serif { font-family: var(--serif); font-weight: 400; }
.italic { font-style: italic; }
.gradient-text {
  background-image: var(--gradient-teal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* il corsivo "sporge" a destra: allarga l'area dipinta senza spostare il testo */
  padding-right: .08em;
  margin-right: -.08em;
}
.text-teal { color: var(--teal); }

.ico { width: 1em; height: 1em; flex-shrink: 0; fill: currentColor; }

/* Reveal allo scroll: l'elemento parte nascosto e site.js aggiunge .is-in
   quando entra nella finestra. Varianti: blur (default), up, left, right, fade, scale.
   Ritardo e durata per elemento con style="--d:.12s; --t:.7s" */
.js [data-reveal] {
  opacity: 0;
  filter: blur(var(--blur, 8px));
  transform: translate3d(var(--rx, 0), var(--ry, 0), 0) scale(var(--rs, 1));
  transition:
    opacity var(--t, .9s) var(--ease) var(--d, 0s),
    filter var(--t, .9s) var(--ease) var(--d, 0s),
    transform var(--t, .9s) var(--ease) var(--d, 0s);
}
.js [data-reveal="up"]    { --ry: 28px; --blur: 5px; --t: .75s; }
.js [data-reveal="left"]  { --rx: -16px; --blur: 0px; --t: .6s; }
.js [data-reveal="right"] { --rx: 16px; --blur: 0px; --t: .6s; }
.js [data-reveal="fade"]  { --blur: 0px; --t: .6s; }
.js [data-reveal="scale"] { --rs: .9; --blur: 0px; --t: .4s; }
.js [data-reveal].is-in { opacity: 1; filter: none; transform: none; }

/* ── 5. Componenti condivisi ─────────────────────────────────────────────── */

/* Etichetta di sezione: trattino + testo maiuscolo */
.section-label { display: flex; align-items: center; gap: .75rem; }
.section-label::before { content: ""; display: block; width: 1.25rem; height: 1px; background: var(--teal); }
.section-label span, .label-text {
  font-size: .75rem; line-height: 1; letter-spacing: .15em;
  text-transform: uppercase; font-weight: 500; color: var(--teal);
}

/* Titoli di sezione */
.h-display-lg {
  font-family: var(--serif); font-weight: 400;
  font-size: var(--fs-display-lg); letter-spacing: -0.03em; line-height: .9; color: var(--ink);
}
.h-display-md {
  font-family: var(--serif); font-weight: 400;
  font-size: 3.25rem; line-height: .9; color: var(--ink);
}
@media (min-width: 768px) {
  .h-display-lg { line-height: .85; }
  .h-display-md { font-size: var(--fs-display-md); letter-spacing: -0.025em; line-height: .85; }
}

/* Intestazione standard: titolo a sinistra, testo breve a destra */
.section-head {
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 1.5rem; margin-bottom: 2.5rem;
}
.section-head h2 { margin-top: 1rem; }
.section-head__text { font-size: .875rem; line-height: 1.625; color: var(--ink-2); max-width: 20rem; }
@media (min-width: 768px) {
  .section-head { flex-direction: row; align-items: flex-end; gap: 2rem; margin-bottom: 3.5rem; }
}

/* Bottoni a pillola */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .625rem;
  height: 2.75rem; padding: 0 2rem; border-radius: 9999px;
  font-size: .875rem; font-weight: 500; letter-spacing: -0.025em; line-height: 1; white-space: nowrap;
  user-select: none; -webkit-user-select: none;
  transition: background-color .3s var(--btn-delay, 0s), border-color .3s var(--btn-delay, 0s),
              color .3s var(--btn-delay, 0s), box-shadow .3s;
}
.btn .ico { font-size: 1rem; transition: color .3s var(--btn-delay, 0s); }
.btn--primary {
  color: #fff;
  background-color: #070707;
  background-image: radial-gradient(47.21% 81.69% at 50% 100%, rgba(255, 255, 255, .2) 0%, rgba(255, 255, 255, 0) 100%);
  box-shadow: 0 4px 8px 0 rgba(255, 255, 255, .18) inset, 0 6px 18px 0 rgba(7, 7, 7, .22);
}
.btn--primary:hover { background-color: #004D46; box-shadow: 0 4px 12px rgba(0, 0, 0, .4); }
.btn--secondary {
  color: var(--ink); background-color: var(--surface);
  border: 1px solid var(--border);
}
.btn--secondary .ico { color: rgba(11, 11, 11, .8); }
.btn--secondary:hover .ico { color: var(--teal); }
.btn--block { width: 100%; }
@media (max-width: 639px) { .btn--block-mobile { width: 100%; } }

/* Tag a pillola */
.tags { display: flex; flex-wrap: wrap; gap: .375rem; }
.tag {
  font-size: .625rem; line-height: 1rem; text-transform: uppercase; letter-spacing: .1em;
  padding: .25rem .625rem; border-radius: 9999px; background: var(--surface-2); color: var(--ink-3);
}
.tag--teal { background: rgba(0, 180, 166, .1); color: var(--teal); }

/* Card con inclinazione 3D al passaggio del mouse (servizi e prodotti) */
.tilt-card { position: relative; width: 100%; height: 100%; perspective: 900px; }
.tilt-card__link {
  position: absolute; inset: 0; z-index: 30; border-radius: 1rem; width: 100%; height: 100%;
}
.tilt-card__body {
  position: relative; z-index: 10; height: 100%;
  border-radius: 1rem; padding: 1.75rem; border: 1px solid var(--border); background: var(--surface);
  transform-style: preserve-3d;
  transition: border-color .3s, background-color .3s;
}
.tilt-card:hover .tilt-card__body { border-color: rgba(0, 180, 166, .25); background-color: rgba(255, 255, 255, .8); }
.tilt-card--highlight .tilt-card__body {
  border-color: rgba(0, 180, 166, .3);
  background: linear-gradient(to bottom right, #EAF7F5, #F5F4F0);
}
.tilt-card--highlight:hover .tilt-card__body { border-color: rgba(0, 180, 166, .3); }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1.75rem; }
.card-index {
  font-family: var(--serif); font-style: italic; font-size: 2.5rem; line-height: 1;
  color: var(--ink); opacity: .22; transition: opacity .3s;
}
.tilt-card:hover .card-index { opacity: .12; }
.card-icon {
  width: 2.5rem; height: 2.5rem; border-radius: .75rem; display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; background: var(--surface-2); color: var(--ink-2);
  transition: background-color .2s, color .2s;
}
.tilt-card:hover .card-icon { background: rgba(0, 180, 166, .12); color: var(--teal); }
.tilt-card--highlight .card-icon,
.tilt-card--highlight:hover .card-icon { background: rgba(0, 180, 166, .1); color: var(--teal); }
.card-title { font-weight: 600; font-size: 1rem; line-height: 1.375; margin-bottom: .75rem; color: var(--ink); }
.card-text { font-size: .875rem; line-height: 1.625; color: var(--ink-2); margin-bottom: 1.5rem; }
.card-arrow {
  position: absolute; bottom: 1.5rem; right: 1.5rem; z-index: 20; pointer-events: none;
  color: var(--teal); font-size: .875rem; opacity: 0; transform: translateX(6px);
  transition: opacity .18s, transform .18s;
}
.tilt-card:hover .card-arrow { opacity: 1; transform: none; }

/* ── 6. Loader, cursore, overlay ─────────────────────────────────────────── */

/* Loader: mostrato solo alla prima pagina della sessione (vedi script in <head>) */
.loader { display: none; }
.js.vl-loading .loader {
  position: fixed; inset: 0; z-index: 10000; background: var(--base);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem;
  transition: opacity .65s cubic-bezier(.76, 0, .24, 1), transform .65s cubic-bezier(.76, 0, .24, 1);
}
.loader.is-done { opacity: 0; transform: translateY(-24px); pointer-events: none; }
.loader__ring { position: relative; width: 110px; height: 110px; }
.loader__ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.loader__progress {
  stroke-dasharray: 289.03; stroke-dashoffset: 289.03;
  animation: loader-ring var(--loader-ms, 1200ms) cubic-bezier(.33, 1, .68, 1) forwards;
}
@keyframes loader-ring { to { stroke-dashoffset: 0; } }
.loader__logo {
  position: absolute; inset: 14px; border-radius: 50%; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.loader__logo img { width: 100%; height: 100%; object-fit: contain; }
.loader__words { display: flex; flex-direction: column; align-items: center; gap: .25rem; transition: opacity .3s; }
.loader.is-done .loader__words { opacity: 0; }
.loader__words span {
  font-size: .75rem; line-height: 1; letter-spacing: .15em; text-transform: uppercase;
}
.loader__words span:first-child { font-weight: 600; color: var(--ink); }
.loader__words span:last-child { font-weight: 500; color: var(--ink-3); }

/* Rete di sicurezza: se site.js non parte, dopo 4 s il contenuto compare comunque */
@keyframes vl-failsafe { to { opacity: 1; filter: none; transform: none; clip-path: none; visibility: visible; } }
@keyframes vl-failsafe-hide { to { opacity: 0; visibility: hidden; } }
html.js:not(.js-ok) [data-reveal],
html.js:not(.js-ok) [data-hero] { animation: vl-failsafe 0s 4s forwards; }
html.js:not(.js-ok) .loader { animation: vl-failsafe-hide 0s 4s forwards; }

/* Cursore personalizzato (creato da site.js solo con mouse) */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; opacity: 0;
  transition: opacity .2s; will-change: transform;
}
.cursor-dot { z-index: 9999; }
.cursor-ring { z-index: 9998; }
.cursor-visible .cursor-dot, .cursor-visible .cursor-ring { opacity: 1; }
.cursor-dot i {
  display: block; width: 6px; height: 6px; border-radius: 50%;
  transform: translate(-50%, -50%); background: var(--cursor-color, #0C0C0C);
  transition: width .1s, height .1s, background-color .3s ease-in-out;
}
.cursor-ring__shape {
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  width: 28px; height: 28px; border-radius: 9999px;
  border: 1.5px solid var(--cursor-color, #0C0C0C); background: transparent;
  transform: translate(-50%, -50%);
  transition: width .35s cubic-bezier(.34, 1.4, .64, 1), height .35s cubic-bezier(.34, 1.4, .64, 1),
              background-color .3s, border-color .3s ease-in-out, box-shadow .3s;
}
.cursor-ring__label {
  display: none; align-items: center; gap: .5rem; padding: 0 1rem; color: #fff; white-space: nowrap;
  font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
}
.cursor-ring__label .ico { font-size: 1rem; }
.cursor-dark { --cursor-color: #FFFFFF; }
.cursor-hover .cursor-dot i { width: 0; height: 0; background: var(--teal); }
.cursor-click .cursor-dot i { width: 4px; height: 4px; }
.cursor-hover .cursor-ring__shape { width: 44px; height: 44px; background: rgba(0, 180, 166, .15); border-color: var(--teal); }
.cursor-label .cursor-ring__shape {
  width: 120px; height: 36px; background: var(--teal); border-color: transparent;
  box-shadow: 0 4px 20px rgba(0, 180, 166, .3);
}
.cursor-label .cursor-ring__label { display: flex; }

/* Overlay di transizione per i link interni (#servizi, #team...) */
.page-fade {
  position: fixed; inset: 0; z-index: 9990; pointer-events: none; opacity: 0;
  background: var(--base); transition: opacity .4s var(--ease);
}
.page-fade.is-dark { background: var(--dark); }
.page-fade.is-on { opacity: 1; pointer-events: auto; }

/* ── 7. Navbar ───────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 1rem 1.5rem; display: flex; justify-content: center; pointer-events: none;
  --nav-delay: 0s;
  animation: nav-in .6s var(--ease) .1s both;
}
@keyframes nav-in { from { opacity: 0; transform: translateY(-20px); } }
.nav.is-scrolled { --nav-delay: .3s; }
.nav__bar {
  position: relative; width: 100%; max-width: 80rem; pointer-events: auto;
  display: flex; align-items: center; justify-content: space-between;
}
.nav__pill {
  position: absolute; left: 0; right: 0; top: 50%; height: 64px; transform: translateY(-50%);
  border-radius: 9999px; border: 1px solid rgba(0, 0, 0, .08);
  background: rgba(255, 255, 255, .72); box-shadow: 0 8px 30px rgba(0, 0, 0, .04);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  opacity: 0; transition: opacity .2s linear, background-color .3s linear .3s, border-color .3s linear .3s, box-shadow .3s linear .3s;
}
.nav.is-scrolled .nav__pill { opacity: 1; transition: opacity .3s linear .3s, background-color .3s linear .3s, border-color .3s linear .3s, box-shadow .3s linear .3s; }
.nav.is-dark .nav__pill {
  background: rgba(12, 12, 12, .8); border-color: rgba(255, 255, 255, .12); box-shadow: 0 20px 40px rgba(0, 0, 0, .5);
}
.nav__inner { position: relative; z-index: 10; display: flex; align-items: center; justify-content: space-between; width: 100%; height: 64px; }

.nav__brand {
  display: flex; align-items: center; gap: .75rem; outline: none;
  transition: padding-left .3s var(--ease) .3s;
}
.nav.is-scrolled .nav__brand { padding-left: 1rem; transition-delay: 0s; }
.nav__brand img { width: 32px; height: 32px; min-width: 32px; object-fit: contain; }
.nav__brand span {
  font-weight: 700; font-size: .875rem; letter-spacing: -0.025em; color: #1A1A1A;
  transition: color .3s var(--nav-delay);
}
.nav.is-dark .nav__brand span { color: #fff; }

.nav__links { display: none; align-items: center; gap: 1.25rem; }
@media (min-width: 768px) { .nav__links { display: flex; } }
@media (min-width: 1024px) { .nav__links { gap: 2.5rem; } }
.nav__link {
  position: relative; display: flex; align-items: center; gap: .375rem;
  font-size: 13px; font-weight: 500; line-height: 1.5; color: rgba(26, 26, 26, .6);
  transition: color .3s var(--nav-delay);
}
.nav__link:hover { color: #1A1A1A; transition-delay: 0s; }
.nav.is-dark .nav__link { color: rgba(255, 255, 255, .7); }
.nav.is-dark .nav__link:hover { color: #fff; }
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0;
  border-radius: 9999px; background: var(--teal); transition: width .3s ease-out;
}
.nav__link:hover::after, .nav__drop.is-open > .nav__link::after { width: 100%; }
.nav__caret { font-size: 10px; color: rgba(107, 107, 107, .6); transition: transform .2s; }
.nav.is-dark .nav__caret { color: rgba(255, 255, 255, .6); }
.nav__drop { position: relative; display: flex; align-items: center; padding: .5rem 0; }
.nav__drop > .nav__link::after { bottom: 4px; }
.nav__drop.is-open .nav__caret { transform: rotate(180deg); }

.nav__menu {
  position: absolute; top: 100%; left: 50%; margin-top: .5rem; width: 18rem; z-index: 50;
  display: flex; flex-direction: column; gap: .25rem; padding: .625rem; border-radius: 1rem;
  background: rgba(255, 255, 255, .95); border: 1px solid rgba(216, 215, 211, .8); color: var(--ink);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .1), 0 8px 10px -6px rgba(0, 0, 0, .1);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transform-origin: top center;
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px) scale(.95);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s, background-color .3s, border-color .3s;
}
.nav__drop.is-open .nav__menu {
  opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s, background-color .3s, border-color .3s;
}
.nav.is-dark .nav__menu { background: rgba(20, 20, 20, .95); border-color: rgba(255, 255, 255, .1); color: #fff; }
.nav__item {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: .625rem; border-radius: .75rem; outline: none; transition: background-color .2s;
}
.nav__item:hover, .nav__item:focus-visible { background: var(--surface-2); }
.nav.is-dark .nav__item:hover, .nav.is-dark .nav__item:focus-visible { background: rgba(255, 255, 255, .05); }
.nav__item-left { display: flex; align-items: center; gap: .75rem; }
.nav__item-icon {
  width: 2rem; height: 2rem; border-radius: .5rem; display: flex; align-items: center; justify-content: center;
  font-size: 1.125rem; color: var(--c); background: color-mix(in srgb, var(--c) 8%, transparent);
  transition: transform .3s;
}
.nav__item:hover .nav__item-icon { transform: scale(1.05); }
.nav__item-name { font-weight: 700; font-size: 13px; letter-spacing: -0.025em; color: #000; }
.nav.is-dark .nav__item-name { color: #fff; }
.nav__item-arrow { font-size: 13px; color: rgba(107, 107, 107, .4); transition: color .2s, transform .2s; }
.nav__item:hover .nav__item-arrow { color: var(--teal); transform: translate(2px, -2px); }
/* Prodotto di punta in cima al menu */
.nav__item--top { background: rgba(107, 138, 255, .07); }
.nav__item-badge {
  font-size: 9px; line-height: 1; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: .25rem .5rem; border-radius: 9999px; color: var(--teal); background: rgba(0, 180, 166, .12);
}
/* Puntino "novità" sul link al blog */
.nav__new {
  position: absolute; top: -3px; right: -9px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 0 0 rgba(0, 180, 166, .5); animation: nav-new 2.4s ease-out infinite;
}
@keyframes nav-new { 0% { box-shadow: 0 0 0 0 rgba(0, 180, 166, .5); } 70%, 100% { box-shadow: 0 0 0 7px rgba(0, 180, 166, 0); } }

.nav__cta { display: flex; align-items: center; transition: padding-right .3s var(--ease) .3s; }
.nav.is-scrolled .nav__cta { padding-right: 10px; transition-delay: 0s; }
.nav__cta .btn { --btn-delay: var(--nav-delay); }
.nav.is-dark .nav__cta .btn { background-color: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .1); color: #fff; }
.nav.is-dark .nav__cta .btn .ico { color: #fff; }
.nav.is-dark .nav__cta .btn:hover .ico { color: var(--teal); }

/* ── 8a. Hero ────────────────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; justify-content: center;
  overflow-x: clip; padding: 6rem 1.5rem 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(0, 180, 166, .10) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 85%, rgba(0, 180, 166, .055) 0%, transparent 55%),
    var(--base);
}
@media (min-width: 768px) { .hero { padding: 4rem 2.5rem 0; } }
.dot-grid { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; pointer-events: none; will-change: transform; }
.orb--1 {
  top: 33.333%; right: 5rem; width: 20rem; height: 20rem;
  background: radial-gradient(circle, rgba(0, 180, 166, .07) 0%, transparent 70%);
  animation: orb-1 9s ease-in-out infinite;
}
.orb--2 {
  bottom: 33.333%; left: 2rem; width: 13rem; height: 13rem;
  background: radial-gradient(circle, rgba(0, 180, 166, .05) 0%, transparent 70%);
  animation: orb-2 7s ease-in-out 1.5s infinite;
}
@keyframes orb-1 { 50% { transform: translateY(-18px) scale(1.04); } }
@keyframes orb-2 { 50% { transform: translateY(14px) scale(.96); } }

.hero__content {
  position: relative; z-index: 10; width: 100%; max-width: 80rem; margin-inline: auto;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  will-change: transform, opacity;
}
.hero__left { display: flex; flex-direction: column; justify-content: center; }
.hero__label { display: flex; align-items: center; justify-content: center; gap: .75rem; margin-bottom: 2.5rem; }
.hero__label::before { content: ""; width: 1.25rem; height: 1px; background: var(--teal); }
.hero__title { margin-bottom: 2.5rem; }
.hero__line { position: relative; display: block; width: 100%; }
.hero__line > span {
  display: block; font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 5rem; line-height: .82; color: var(--ink);
  padding-bottom: .04em;
}
@media (min-width: 640px) { .hero__line > span { font-size: var(--fs-display-xl); letter-spacing: -0.03em; } }
.hero__sub {
  font-size: 1.125rem; line-height: 1.625; color: var(--ink-2);
  max-width: 36rem; margin: 0 auto 2.5rem;
}
.hero__ctas {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; width: 100%;
}
@media (min-width: 640px) { .hero__ctas { flex-direction: row; width: auto; } }
.hero__stats {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2rem;
  margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border);
}
.hero__stat { display: flex; flex-direction: column; gap: .25rem; }
.hero__stat b {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: var(--fs-display-sm); line-height: 1.1; letter-spacing: -0.02em; color: var(--ink);
}
.hero__stat span { font-size: .75rem; line-height: 1; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
@media (min-width: 768px) { .hero__stats { gap: 2.5rem; margin-top: 4rem; } }
.hero__visual { display: none; }
@media (min-width: 1024px) {
  .hero__content {
    display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; text-align: left; gap: 3rem;
  }
  .hero__left { transform: translateY(-3rem); }
  .hero__label, .hero__ctas, .hero__stats { justify-content: flex-start; }
  .hero__sub { margin-inline: 0; }
  .hero__visual {
    display: block; position: relative; height: 900px; width: 140%; margin-left: -20%; overflow: visible;
  }
  .hero__visual spline-viewer { display: block; width: 100%; height: 100%; }
}

/* Sequenza d'ingresso dell'hero, avviata da html.is-loaded */
.js [data-hero] {
  opacity: 0;
  transition: opacity .7s var(--ease) var(--d, 0s), transform .7s var(--ease) var(--d, 0s), filter .7s var(--ease) var(--d, 0s);
}
.js [data-hero="slide"] { transform: translateX(-16px); }
.js [data-hero="blur"] { filter: blur(6px); }
.js [data-hero="fade"] { transition-duration: .8s; }
.js [data-hero="visual"] { transform: scale(.95); transition-duration: 1.2s; }
.js [data-hero="line"] {
  clip-path: inset(0 -10% 100% -10%); transform: translateY(40%);
  transition: opacity 1.1s var(--ease) var(--d), transform 1.1s var(--ease) var(--d), clip-path 1.1s var(--ease) var(--d);
}
.is-loaded [data-hero] { opacity: 1; transform: none; filter: none; }
.is-loaded [data-hero="line"] { clip-path: inset(0 -10% -30% -10%); }

/* ── 8b. Chi siamo (Manifesto) ───────────────────────────────────────────── */
.manifesto {
  position: relative; padding-block: 4rem; overflow: hidden;
  background: linear-gradient(180deg, #F5F4F0 0%, #EDECEA 100%);
}
.manifesto__grid { display: grid; gap: 3rem; align-items: center; }
.manifesto__grid h2 { margin-top: 1.25rem; }
.pillars { display: flex; flex-direction: column; gap: 1px; }
@media (min-width: 768px) {
  .manifesto { padding-block: 7rem; }
  .manifesto__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4rem; }
  .manifesto__grid > :first-child { grid-column: span 4; }
  .manifesto__grid > :last-child { grid-column: span 8; }
}
.pillar { position: relative; overflow: hidden; border-radius: 1rem; }
.pillar__inner {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 1rem;
  padding: 1.5rem; border-radius: 1rem; border: 1px solid transparent; width: 100%; height: 100%;
  transition: border-color .3s, background-color .3s;
}
.pillar:hover .pillar__inner { border-color: var(--border); background: rgba(255, 255, 255, .7); }
.pillar__inner::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 100% 0%, rgba(20, 184, 166, .1) 0%, transparent 70%);
  clip-path: circle(0% at 100% 0%); opacity: 0;
  transition: clip-path .8s var(--ease), opacity .8s var(--ease);
}
.pillar:hover .pillar__inner::before { clip-path: circle(150% at 100% 0%); opacity: 1; }
.pillar__num {
  font-family: var(--serif); font-style: italic; font-size: 3rem; line-height: 1;
  color: var(--ink); opacity: .18; flex-shrink: 0; margin-top: .25rem; transition: color .3s;
}
.pillar:hover .pillar__num { color: var(--teal); }
.pillar__content { position: relative; z-index: 10; width: 100%; display: flex; flex-direction: column; }
.pillar__title {
  display: flex; align-items: center; gap: .75rem; margin-bottom: .5rem;
  font-weight: 600; font-size: 1.25rem; line-height: 1.375; color: var(--ink);
}
.pillar__badge {
  font-size: .75rem; line-height: 1rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  background: rgba(0, 180, 166, .1); color: var(--teal); padding: .125rem .5rem; border-radius: 9999px;
  opacity: 0; transform: scale(.8); transition: opacity .3s, transform .3s;
}
.pillar:hover .pillar__badge { opacity: 1; transform: none; }
.pillar__stack { display: grid; align-items: start; }
.pillar__stack > * {
  grid-area: 1 / 1; transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.pillar__body { font-size: .875rem; line-height: 1.625; color: var(--ink-2); max-width: 36rem; }
.pillar__details { opacity: 0; transform: translateY(10px); pointer-events: none; }
.pillar:hover .pillar__body { opacity: 0; transform: translateY(-10px); pointer-events: none; }
.pillar:hover .pillar__details { opacity: 1; transform: none; pointer-events: auto; }
@media (min-width: 768px) {
  .pillar__inner { flex-direction: row; gap: 2rem; padding: 2rem; }
}
.chain { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.chain li { display: flex; align-items: center; gap: .625rem; }
.chain span { font-size: 10px; line-height: 1rem; color: var(--teal); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; opacity: .6; }
.chain li:not(:last-child)::after { content: ""; width: .75rem; height: 1px; background: var(--border); }
.blueprint { display: grid; gap: .5rem 2rem; }
@media (min-width: 640px) { .blueprint { grid-template-columns: 1fr 1fr; } }
.blueprint li { display: flex; align-items: center; gap: .5rem; font-size: 11px; color: var(--ink-2); text-transform: uppercase; letter-spacing: -0.025em; }
.blueprint li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: rgba(0, 180, 166, .4); }
.impact { display: flex; flex-direction: column; gap: .75rem; }
@media (min-width: 640px) { .impact { flex-direction: row; align-items: flex-end; gap: 1.25rem; } }
.impact b { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.875rem; color: var(--teal); line-height: 1; margin-bottom: .25rem; }
.impact small { display: block; font-size: 9px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.impact p { font-size: 11px; color: rgba(107, 107, 107, .7); font-style: italic; max-width: 180px; line-height: 1.375; padding-bottom: 2px; }

/* ── 8c. Servizi ─────────────────────────────────────────────────────────── */
.services { position: relative; padding-block: 4rem; background: var(--base); }
.anchor { position: absolute; top: 0; left: 0; }
.services__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.services__cell { width: 100%; display: flex; }
@media (min-width: 640px) { .services__cell { width: calc(50% - 8px); } }
@media (min-width: 768px) { .services { padding-block: 7rem; } }
@media (min-width: 1024px) { .services__cell { width: calc(33.333% - 11px); } }

/* ── 8d. Prodotti (bento + modali) ───────────────────────────────────────── */
.projects {
  position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  padding-block: 4rem; background: #fff;
}
@media (min-width: 768px) { .projects { padding-block: 6rem; } }
.bento { display: grid; gap: 1rem; }
@media (min-width: 640px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 768px) { .bento__wide { grid-column: span 2; } }
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bento__full { grid-column: 1 / -1; }   /* card da sola sull'ultima riga */
}
.bento .tilt-card__link { background: transparent; }
.bento__layout { display: flex; flex-direction: column; justify-content: space-between; height: 100%; }
.bento__layout--wide { gap: 1.5rem; }
@media (min-width: 1024px) { .bento__layout--wide { flex-direction: row; } }
.bento__text { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.bento__ill {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center;
  border-radius: .75rem; background: rgba(255, 255, 255, .4); border: 1px solid var(--border);
  width: 100%; min-height: 110px; padding: .75rem; margin-bottom: 1.5rem;
}
.bento__layout--wide .bento__ill {
  flex: 1; min-height: 140px; padding: 1rem; margin-bottom: 0; border-color: rgba(0, 180, 166, .1);
}
@media (min-width: 1024px) { .bento__layout--wide .bento__ill { min-height: 180px; } }

/* Illustrazioni SVG animate dei prodotti */
.ill { width: 100%; height: 100%; max-height: 110px; }
.ill--lg { max-height: 140px; }
@media (min-width: 768px) { .ill--lg { max-height: 160px; } }
.ill .flow-line { stroke-dasharray: 6 4; animation: ill-dash 5s linear infinite; }
.ill .pulse-node { transform-box: fill-box; transform-origin: center; animation: ill-pulse 3s ease-in-out infinite; }
.ill .spin-ring { transform-origin: 100px 50px; animation: ill-spin 15s linear infinite; }
.ill .blink { animation: ill-blink 3s ease-in-out infinite; }
@keyframes ill-dash { to { stroke-dashoffset: -20; } }
@keyframes ill-pulse { 0%, 100% { transform: scale(.95); opacity: .5; } 50% { transform: scale(1.05); opacity: .9; } }
@keyframes ill-spin { to { transform: rotate(360deg); } }
@keyframes ill-blink { 0%, 100% { opacity: .4; } 50% { opacity: 1; } }

.ill--xl { max-height: 230px; }

/* Card in evidenza (Clavis, prodotto di punta): scura, a tutta larghezza */
.tilt-card--featured .tilt-card__body,
.tilt-card--featured:hover .tilt-card__body {
  color: #fff; padding: 1.75rem;
  border-color: rgba(0, 180, 166, .35);
  background-color: #0B0E14;
  background-image:
    radial-gradient(ellipse 55% 80% at 85% 45%, rgba(0, 180, 166, .16) 0%, transparent 65%),
    radial-gradient(ellipse 45% 60% at 0% 100%, rgba(107, 138, 255, .10) 0%, transparent 60%);
}
.tilt-card--featured:hover .tilt-card__body { border-color: rgba(0, 180, 166, .65); }
@media (min-width: 768px) { .tilt-card--featured .tilt-card__body, .tilt-card--featured:hover .tilt-card__body { padding: 2.5rem; } }
.featured { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 1024px) { .featured { grid-template-columns: 1.05fr 1fr; gap: 3rem; } }
.featured .card-top { margin-bottom: 1.25rem; }
.featured .card-index { color: #fff; opacity: .3; }
.tilt-card--featured:hover .card-index { opacity: .45; }
.featured .card-icon, .tilt-card--featured:hover .card-icon { background: rgba(0, 180, 166, .15); color: var(--teal); }
.featured__badge {
  display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1rem;
  font-size: 10px; line-height: 1; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--teal);
  padding: .4rem .8rem; border-radius: 9999px; border: 1px solid rgba(0, 180, 166, .4); background: rgba(0, 180, 166, .08);
}
.featured__badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); animation: pulse 2s cubic-bezier(.4, 0, .6, 1) infinite; }
.featured__title {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(3.25rem, 7vw, 5.5rem); line-height: .9; letter-spacing: -0.03em; margin-bottom: .75rem;
}
.featured__lead { font-family: var(--serif); font-style: italic; font-size: 1.5rem; line-height: 1.2; color: rgba(255, 255, 255, .85); margin-bottom: 1rem; }
.featured .card-text { color: rgba(255, 255, 255, .55); max-width: 34rem; }
.featured__stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, .08); border-radius: .75rem; overflow: hidden;
}
.featured__stats > div { background: #0F131B; padding: .875rem 1rem; }
.featured__stats b { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.75rem; line-height: 1; color: var(--teal); }
.featured__stats span { display: block; margin-top: .375rem; font-size: 11px; line-height: 1.35; color: rgba(255, 255, 255, .5); }
@media (min-width: 768px) { .featured__stats b { font-size: 2.25rem; } }
.tag--dark { background: rgba(255, 255, 255, .07); color: rgba(255, 255, 255, .6); }
.featured__ill {
  position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden;
  min-height: 200px; padding: 1.5rem; border-radius: .75rem;
  border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .02);
}
@media (min-width: 1024px) { .featured__ill { min-height: 300px; } }
.tilt-card--featured .card-arrow { color: var(--teal); }
.overview__ill--dark { background: #0B0E14; border-color: rgba(255, 255, 255, .08); }

/* Modale prodotto (elemento <dialog> nativo) */
.modal {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 1rem; background: transparent; border: 0; color: var(--ink);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  opacity: 0; transition: opacity .3s;
}
.modal:not([open]) { display: none; }
.modal::backdrop { background: transparent; }
.modal.is-open { opacity: 1; }
.modal__backdrop {
  position: absolute; inset: 0; background: rgba(0, 0, 0, .45);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.modal__box {
  position: relative; width: 100%; max-width: 64rem; max-height: 92vh; overflow-y: auto;
  display: flex; flex-direction: column; padding: 1.5rem;
  background: #fff; border: 1px solid var(--border); border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25);
  opacity: 0; transform: translateY(16px) scale(.95);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
  overscroll-behavior: contain;
}
.modal.is-open .modal__box { opacity: 1; transform: none; }
@media (min-width: 768px) { .modal { padding: 1.5rem; } .modal__box { padding: 2.5rem; max-height: 90vh; } }
.modal__head {
  display: flex; flex-direction: column; justify-content: space-between; gap: 1rem;
  border-bottom: 1px solid var(--border); padding-bottom: 1rem; margin-bottom: 1.5rem;
}
@media (min-width: 640px) { .modal__head { flex-direction: row; align-items: center; } }
@media (min-width: 768px) { .modal__head { margin-bottom: 2rem; } }
.modal__title { display: flex; align-items: center; gap: .75rem; }
.modal__title .card-icon { background: var(--surface-2); color: var(--teal); }
.modal__title h3 { font-family: var(--serif); font-size: 1.25rem; line-height: 1.75rem; font-weight: 700; }
@media (min-width: 768px) { .modal__title h3 { font-size: 1.5rem; line-height: 2rem; } }
.modal__actions { display: flex; align-items: center; justify-content: space-between; gap: .75rem; width: 100%; flex-shrink: 0; }
@media (min-width: 640px) { .modal__actions { width: auto; justify-content: flex-start; } }
.tabs { position: relative; display: flex; gap: .25rem; padding: .25rem; background: var(--surface-2); border-radius: .75rem; flex-shrink: 0; }
.tabs button {
  padding: .5rem 1rem; border-radius: .5rem; border: 1px solid transparent;
  font-size: .75rem; line-height: 1rem; font-weight: 500; color: var(--ink-2);
  transition: all .2s;
}
@media (min-width: 768px) { .tabs button { font-size: .875rem; line-height: 1.25rem; } }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] {
  background: #fff; color: var(--ink); border-color: rgba(216, 215, 211, .5);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05);
}
.modal__close {
  width: 2.5rem; height: 2.5rem; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); color: var(--ink-2); font-size: .875rem; transition: color .2s;
}
.modal__close:hover { color: var(--ink); }
.tab-panel { animation: tab-in .2s ease-out; }
@keyframes tab-in { from { opacity: 0; transform: translateY(10px); } }
.overview { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 768px) { .overview { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.overview__text { display: flex; flex-direction: column; gap: 1rem; }
.overview__text h4 { font-family: var(--serif); font-size: 1.25rem; line-height: 1.25; color: var(--ink); }
@media (min-width: 768px) { .overview__text h4 { font-size: 1.5rem; } }
@media (min-width: 1024px) { .overview__text h4 { font-size: 1.875rem; } }
.overview__intro { font-size: 14px; line-height: 1.625; color: var(--ink-2); }
.overview__quote { border-left: 2px solid var(--teal); padding: .25rem 0 .25rem .75rem; margin-block: .25rem; }
.overview__quote p { font-size: 14px; line-height: 1.625; font-weight: 600; font-style: italic; color: var(--teal); }
.overview__body { font-size: 13px; line-height: 1.625; color: var(--ink-2); }
@media (min-width: 768px) {
  .overview__intro, .overview__quote p { font-size: 15px; }
  .overview__body { font-size: 14px; }
}
.overview__side {
  display: flex; flex-direction: column; gap: 1.25rem; padding: 1.25rem;
  background: var(--surface-2); border: 1px solid rgba(216, 215, 211, .5); border-radius: 1rem;
}
.overview__ill {
  display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0;
  height: 8rem; padding: 1rem; background: #fff; border: 1px solid rgba(216, 215, 211, .3); border-radius: .75rem;
}
.overview__ill .ill { transform: scale(.9); }
@media (min-width: 768px) { .overview__ill { height: 10rem; } .overview__ill .ill { transform: none; } }
.overview__target { font-size: .75rem; line-height: 1.625; color: var(--ink-2); }
.overview__target strong { font-weight: 600; color: var(--ink); }
@media (min-width: 768px) { .overview__target { font-size: .875rem; } }
.features { display: grid; gap: 1rem; }
@media (min-width: 768px) {
  .features { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .features--3 { grid-template-columns: repeat(3, 1fr); }
}
.feature { display: flex; flex-direction: column; gap: .75rem; padding: 1.25rem; border-radius: 1rem; background: var(--surface); border: 1px solid var(--border); }
.feature__head { display: flex; align-items: center; gap: .75rem; }
.feature__icon {
  width: 2.25rem; height: 2.25rem; border-radius: .75rem; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.125rem;
  background: var(--surface-2); color: var(--ink);
}
.feature h4 { font-weight: 700; font-size: 15px; color: var(--ink); }
.feature p { font-size: 13px; line-height: 1.625; color: var(--ink-2); }
@media (min-width: 768px) { .feature h4 { font-size: 16px; } .feature p { font-size: 14px; } }

/* ── 8d-bis. Blog (ultimi articoli dal feed di Blogger) ──────────────────── */
.blog { position: relative; padding-block: 4rem; background: var(--base); border-top: 1px solid var(--border); }
@media (min-width: 768px) { .blog { padding-block: 6rem; } }
.blog__intro { display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; }
.posts { display: grid; gap: 1rem; }
@media (min-width: 768px) { .posts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } }
.posts:empty { display: none; }
.post {
  position: relative; display: flex; flex-direction: column; gap: .75rem; overflow: hidden;
  padding: 1.75rem; border-radius: 1rem; border: 1px solid var(--border); background: var(--surface);
  transition: border-color .4s, background-color .4s, transform .4s var(--ease);
}
a.post { animation: post-in .6s var(--ease) backwards; }
@keyframes post-in { from { opacity: 0; transform: translateY(16px); } }
a.post:hover { border-color: rgba(0, 180, 166, .3); background: rgba(255, 255, 255, .85); transform: translateY(-3px); }
.post__date { font-size: 10px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--teal); }
.post h3 { font-weight: 600; font-size: 1.0625rem; line-height: 1.35; color: var(--ink); transition: color .3s; }
a.post:hover h3 { color: var(--teal); }
.post p { font-size: .875rem; line-height: 1.6; color: var(--ink-2); }
.post__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: .5rem; }
.post__foot .ico {
  flex-shrink: 0; width: 2rem; height: 2rem; padding: .55rem; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--border); transition: all .3s;
}
a.post:hover .post__foot .ico { background: var(--teal); border-color: var(--teal); color: #fff; }
.post--loading { min-height: 13rem; }
.post--loading i { display: block; height: .75rem; border-radius: 9999px; background: linear-gradient(90deg, var(--surface-2), #F1F0EC, var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.post--loading i:nth-child(1) { width: 35%; }
.post--loading i:nth-child(2) { width: 90%; height: 1.1rem; }
.post--loading i:nth-child(3) { width: 75%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── 8e. Timeline (sezione scura con scorrimento "a passi") ──────────────── */
.timeline { position: relative; height: 700vh; }
.timeline__sticky { position: sticky; top: 0; height: 100vh; width: 100%; overflow: hidden; background: var(--dark); color: #fff; }
.timeline__glow { position: absolute; border-radius: 50%; pointer-events: none; }
.timeline__glow--1 {
  top: calc(25% - 120px); left: calc(25% - 120px); width: calc(50vw + 240px); height: calc(50vh + 240px);
  background: radial-gradient(closest-side, rgba(0, 180, 166, .05), transparent);
}
.timeline__glow--2 {
  bottom: calc(25% - 100px); right: calc(25% - 100px); width: calc(40vw + 200px); height: calc(40vh + 200px);
  background: radial-gradient(closest-side, rgba(255, 255, 255, .02), transparent);
}
.timeline__years { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.timeline__year {
  position: absolute; bottom: 3rem; right: 3rem;
  font-family: var(--serif); font-style: italic; font-size: 12vw; line-height: 1; white-space: nowrap; user-select: none;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .35);
  opacity: 0; will-change: opacity, transform;
}
.timeline__lines {
  position: absolute; inset: 0; pointer-events: none; opacity: .2;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 60px 60px;
}
.step {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding-inline: 1.5rem;
  opacity: 0; will-change: opacity, transform;
}
.step--intro { opacity: 1; }
.step__intro { text-align: center; max-width: 48rem; }
.step__kicker {
  display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 2rem;
  font-size: 10px; color: var(--teal); text-transform: uppercase; letter-spacing: .25em;
}
.step__kicker::before, .step__kicker::after { content: ""; width: 2rem; height: 1px; background: rgba(0, 180, 166, .4); }
.step__intro h2 {
  font-family: var(--serif); font-style: italic; font-size: clamp(3.5rem, 8vw, 8rem);
  line-height: .82; letter-spacing: -0.025em; margin-bottom: 2rem;
}
.step__intro p { font-size: 1.125rem; line-height: 1.625; color: rgba(255, 255, 255, .4); max-width: 32rem; margin-inline: auto; }
.step__hint { margin-top: 4rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.step__hint::before { content: ""; width: 1px; height: 4rem; background: linear-gradient(to bottom, var(--teal), transparent); }
.step__hint span { font-size: 9px; text-transform: uppercase; letter-spacing: .2em; color: rgba(255, 255, 255, .3); animation: pulse 2s cubic-bezier(.4, 0, .6, 1) infinite; }
@keyframes pulse { 50% { opacity: .5; } }

.event { position: relative; width: 100%; max-width: 42rem; padding-inline: 1rem; }
@media (min-width: 1024px) { .event { padding-inline: 0; } }
.event__head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 1rem; padding-inline: .5rem; }
.event__node { display: block; font-size: 10px; color: var(--teal); text-transform: uppercase; letter-spacing: .2em; margin-bottom: .25rem; }
.event__year { display: block; font-weight: 700; font-size: 2.25rem; line-height: 1; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
@media (min-width: 768px) { .event__year { font-size: 3rem; } }
.event__meta { text-align: right; }
.event__stp { display: block; font-size: 10px; color: rgba(255, 255, 255, .2); margin-bottom: .25rem; }
.event__tag {
  padding: .25rem .75rem; border-radius: 2px; border: 1px solid rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .4); font-size: 9px; text-transform: uppercase; letter-spacing: .05em;
}
.event--accent .event__tag { border-color: rgba(0, 180, 166, .4); color: var(--teal); background: rgba(0, 180, 166, .05); }
.event__frame { position: relative; }
.event__frame::before, .event__frame::after { content: ""; position: absolute; width: 8px; height: 8px; }
.event__frame::before { top: -4px; left: -4px; border-top: 1px solid rgba(0, 180, 166, .4); border-left: 1px solid rgba(0, 180, 166, .4); }
.event__frame::after { bottom: -4px; right: -4px; border-bottom: 1px solid rgba(0, 180, 166, .4); border-right: 1px solid rgba(0, 180, 166, .4); }
.event__card {
  position: relative; border-radius: 2px; padding: 1.5rem;
  background: rgba(255, 255, 255, .02); border: 1px solid rgba(255, 255, 255, .1); transition: border-color .5s;
}
.event__card:hover { border-color: rgba(255, 255, 255, .2); }
.event--accent .event__card {
  background: rgba(255, 255, 255, .03); border-color: rgba(0, 180, 166, .3);
  box-shadow: inset 0 0 20px rgba(0, 180, 166, .05);
}
@media (min-width: 640px) { .event__card { padding: 2.5rem; } }
@media (min-width: 1024px) { .event__card { padding: 3rem; } }
.event__deco { position: absolute; inset: 0; pointer-events: none; overflow: hidden; opacity: .1; }
.event__deco::before, .event__deco::after { content: ""; position: absolute; width: 8rem; height: 8rem; }
.event__deco::before { top: 0; right: 0; border-left: 1px solid rgba(255, 255, 255, .1); border-bottom: 1px solid rgba(255, 255, 255, .1); }
.event__deco::after { bottom: 0; left: 0; border-right: 1px solid rgba(255, 255, 255, .1); border-top: 1px solid rgba(255, 255, 255, .1); }
.event__title {
  font-family: var(--serif); font-style: italic; text-transform: uppercase;
  font-size: 1.875rem; line-height: 1.25; margin-bottom: 1rem; color: #fff;
}
.event--accent .event__title { color: var(--teal); }
@media (min-width: 768px) { .event__title { font-size: var(--fs-display-md); letter-spacing: -0.025em; margin-bottom: 1.5rem; } }
.event__body { font-size: .875rem; line-height: 1.625; color: rgba(255, 255, 255, .5); max-width: 36rem; }
@media (min-width: 768px) { .event__body { font-size: 1rem; } }
.event__foot {
  margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, .05);
  display: flex; flex-direction: column; justify-content: space-between; gap: 1rem;
}
@media (min-width: 640px) { .event__foot { flex-direction: row; align-items: center; } .event__foot > :last-child { text-align: right; } }
.event__foot small { display: block; font-size: 8px; color: rgba(255, 255, 255, .2); text-transform: uppercase; letter-spacing: .2em; margin-bottom: .25rem; }
.event__foot code { font-family: var(--mono); font-size: 10px; color: rgba(255, 255, 255, .4); }
.event--accent .event__foot code.event__tech { color: var(--teal); }
.event__status { display: flex; align-items: center; gap: .5rem; color: rgba(255, 255, 255, .6) !important; }
@media (min-width: 640px) { .event__status { justify-content: flex-end; } }
.event__status::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, .3); }
.event--accent .event__status::before { background: var(--teal); animation: pulse 2s cubic-bezier(.4, 0, .6, 1) infinite; }
.event__marker { display: none; }
@media (min-width: 1024px) {
  .event__marker { position: absolute; left: -3rem; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 1rem; }
  .event__marker::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); }
  .event__marker::after { content: ""; width: 3rem; height: 1px; background: rgba(255, 255, 255, .1); }
  .event--accent .event__marker::before { border-color: var(--teal); background: rgba(0, 180, 166, .2); }
}
.timeline__dots { position: absolute; bottom: 3rem; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: .75rem; z-index: 30; }
.timeline__dots i { display: block; height: 6px; width: 6px; border-radius: 9999px; background: rgba(255, 255, 255, .4); opacity: .35; }

/* ── 8f. Team ────────────────────────────────────────────────────────────── */
.team { background: var(--surface); padding-block: 4rem; border-top: 1px solid var(--border); overflow: hidden; }
@media (min-width: 768px) { .team { padding-block: 8rem; } }
.team__head { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 1.5rem; margin-bottom: 2.5rem; }
.team__head h2 { margin-top: 1rem; }
.team__head p { display: none; font-size: .875rem; line-height: 1.43; color: var(--ink-2); max-width: 20rem; text-align: right; margin-top: auto; }
@media (min-width: 768px) {
  .team__head { flex-direction: row; gap: 2rem; margin-bottom: 3.5rem; }
  .team__head p { display: block; }
}
.member {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem;
  padding-block: 2.5rem; border-bottom: 1px solid var(--border);
}
.member:last-child { border-bottom: 0; }
.member__photo-m { position: relative; width: 100%; margin-bottom: .75rem; }
.member__photo-m picture, .member__photo-d picture { display: block; width: 100%; height: 100%; }
.member__photo-m .frame { width: 100%; aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); }
.member img { width: 100%; height: 100%; object-fit: cover; }
.member__idx-m {
  position: absolute; top: 1rem; left: 1rem; z-index: 20; pointer-events: none; user-select: none;
  font-family: var(--serif); font-style: italic; font-size: 3.75rem; line-height: 1;
  color: rgba(12, 12, 12, .15); font-variant-numeric: tabular-nums;
}
.member:nth-child(even) .member__idx-m { left: auto; right: 1rem; }
.member__idx-d, .member__photo-d { display: none; }
.member__name { display: flex; flex-direction: column; width: 100%; min-width: 0; margin-bottom: .75rem; }
.member__name-d { display: none; }
.member__name-m { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.member__name h3 { font-size: 2.5rem; line-height: 1.1; letter-spacing: -0.025em; }
.member__first { display: inline-block; margin-right: .75rem; font-family: var(--serif); font-style: italic; font-weight: 600; text-transform: uppercase; color: var(--ink); transition: color .3s; }
.member__last { display: inline-block; font-weight: 500; color: var(--ink); }
.member__in {
  width: 3rem; height: 3rem; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(0, 180, 166, .2); background: rgba(0, 180, 166, .05); color: var(--teal); font-size: 1.5rem;
}
.member__info { display: flex; flex-direction: column; gap: .5rem; }
.member__role { color: var(--teal); font-weight: 600; font-size: 1rem; line-height: 1.25; white-space: pre-line; }
.member__desc { font-size: .875rem; line-height: 1.625; color: var(--ink-2); max-width: 36rem; }
.member__tags { display: flex; flex-wrap: wrap; gap: .375rem; margin-top: .25rem; }
.member__tags span {
  font-size: 10px; line-height: 1rem; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em;
  padding: .25rem .5rem; border-radius: 9999px; border: 1px solid var(--border);
}
@media (min-width: 768px) {
  .member {
    display: grid; align-items: center; gap: 0 2.5rem;
    grid-template-columns: 48px 180px minmax(0, 1fr);
    grid-template-areas: "idx photo name" "idx photo info";
  }
  .member__photo-m { display: none; }
  .member__idx-d {
    display: block; grid-area: idx; font-family: var(--serif); font-style: italic; font-size: 1.875rem; line-height: 1;
    color: var(--ink-3); font-variant-numeric: tabular-nums; user-select: none;
  }
  .member__photo-d { display: block; grid-area: photo; width: 180px; aspect-ratio: 1; overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); }
  .member__name { grid-area: name; margin-bottom: 0; padding-bottom: 1rem; align-self: end; }
  .member__info { grid-area: info; gap: .75rem; align-self: start; }
  .member__name-m { display: none; }
  .member__name-d { display: flex; align-items: center; justify-content: space-between; width: 100%; }
  .member__name-d h3 { font-size: clamp(2.75rem, 4.6vw, 3.75rem); line-height: 1.3; transition: transform .3s; }
  .member__name-d:hover h3 { transform: translateX(4px); }
  .member__name-d:hover .member__first { color: var(--teal); }
  .member__first { margin-right: 1rem; }
  .member__desc { font-size: .75rem; }
}
@media (min-width: 1024px) {
  .member { grid-template-columns: 48px 180px minmax(0, 1fr) 320px; grid-template-areas: "idx photo name info"; }
  .member__name, .member__info { align-self: center; }
}
/* Animazioni della riga quando entra in vista */
.js .member { opacity: 0; transition: opacity .5s var(--d, 0s); }
.js .member.is-in { opacity: 1; }
.js .member__idx-d { opacity: 0; transform: translateX(-10px); transition: opacity .5s, transform .5s; transition-delay: calc(var(--d, 0s) + .1s); }
.js .member__photo-d { opacity: 0; transform: scale(.95); transition: opacity .6s var(--ease-soft), transform .6s var(--ease-soft); transition-delay: calc(var(--d, 0s) + .05s); }
.js .member__photo-m { opacity: 0; transition: opacity .6s; }
.js .member__idx-m { opacity: 0; transform: translateX(-10px); transition: opacity .6s .1s, transform .6s .1s; }
.js .member__name { clip-path: inset(-10% 100% -10% 0); transition: clip-path .7s var(--ease-soft) .05s; }
.js .member__info { opacity: 0; transform: translateX(10px); transition: opacity .5s .2s, transform .5s .2s; }
.js .member.is-in :is(.member__idx-d, .member__photo-d, .member__photo-m, .member__idx-m, .member__info) { opacity: 1; transform: none; }
.js .member.is-in .member__name { clip-path: inset(-10% 0 -10% 0); }

/* ── 8g. Partner (Polaris + Promete) ─────────────────────────────────────── */
.partners {
  position: relative; padding-block: 4rem; overflow: hidden;
  background: linear-gradient(135deg, #EAF7F5 0%, #F5F4F0 50%, #EEF0EA 100%);
}
@media (min-width: 768px) { .partners { padding-block: 8rem; } }
.partners__deco {
  position: absolute; right: -8rem; top: 50%; transform: translateY(-50%); width: 24rem; height: 24rem; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(0, 180, 166, .06) 0%, transparent 70%);
}
.partners__grid { display: grid; gap: 3rem; align-items: center; margin-top: 2rem; }
@media (min-width: 768px) { .partners__grid { grid-template-columns: 1fr 1fr; gap: 4rem; margin-top: 3rem; } }
.partners__us { display: flex; flex-direction: column; gap: 1.5rem; }
.js .partners__us[data-reveal] { --rx: -32px; --blur: 0px; --t: .8s; }
.js .partners__them[data-reveal] { --rx: 32px; --blur: 0px; --t: .8s; }
.chip {
  display: inline-flex; align-items: center; gap: .5rem; width: fit-content;
  border-radius: 9999px; border: 1px solid var(--border); background: rgba(255, 255, 255, .6); padding: .5rem 1rem;
}
.chip img { width: 1.25rem; height: 1.25rem; object-fit: contain; }
.chip strong { font-size: .875rem; font-weight: 600; color: var(--ink); }
.chip i { width: 4px; height: 4px; border-radius: 50%; background: rgba(0, 180, 166, .4); }
.chip span { font-size: .75rem; line-height: 1; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.partners__p { font-size: 1rem; line-height: 1.625; color: var(--ink-2); max-width: 24rem; }
.partners__them { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2rem; }
.polaris-logo { position: relative; display: block; pointer-events: none; transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.polaris-logo:hover { transform: scale(1.05); }
.polaris-logo__glow {
  position: absolute; inset: -40px; border-radius: 50%; opacity: 0; transition: opacity .5s;
  background: radial-gradient(closest-side, rgba(0, 180, 166, .2), transparent);
}
.polaris-logo img { position: relative; width: 6rem; height: 6rem; object-fit: contain; transition: filter .5s; }
@media (min-width: 768px) {
  .polaris-logo img { width: 8rem; height: 8rem; filter: brightness(0); }
  .polaris-logo:hover img { filter: none; }
}
.polaris-logo__visit { display: none; }
.partners__studio { display: flex; flex-direction: column; gap: 1rem; }
.partners__studio-head { display: flex; flex-direction: column; gap: .75rem; }
.kicker-sm { font-size: 11px; color: var(--teal); text-transform: uppercase; letter-spacing: .3em; font-weight: 700; }
.partner-link { display: flex; align-items: center; justify-content: center; gap: .75rem; }
.partner-link h3 {
  font-family: var(--serif); font-style: italic; font-size: 2.25rem; line-height: .85; color: var(--ink);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 8px;
}
.partner-link .ico { font-size: 1.25rem; color: #000; }
.partners__them .partners__p { margin-inline: auto; }
.tags--soft span {
  font-size: 10px; line-height: 1rem; text-transform: uppercase; letter-spacing: .15em; padding: .375rem .75rem; border-radius: 9999px;
  border: 1px solid rgba(0, 180, 166, .1); background: rgba(0, 180, 166, .03); color: rgba(0, 180, 166, .7);
}
.tags--soft { justify-content: center; gap: .5rem; margin-top: .5rem; }
@media (min-width: 768px) {
  .partners__studio-head { gap: .25rem; }
  .partner-link h3 { font-size: var(--fs-display-sm); text-decoration: none; }
  .partner-link .ico { display: none; }
}
@media (min-width: 1024px) {
  .partners__them { align-items: flex-start; text-align: left; }
  .polaris-logo { pointer-events: auto; }
  .polaris-logo:hover .polaris-logo__glow { opacity: 1; }
  .polaris-logo__visit {
    display: flex; position: absolute; top: -1rem; right: -1rem; width: 5rem; height: 5rem; border-radius: 50%;
    align-items: center; justify-content: center; background: var(--teal); color: #fff;
    font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
    opacity: 0; transform: translateY(1rem) rotate(12deg); transition: opacity .3s, transform .3s;
  }
  .polaris-logo:hover .polaris-logo__visit { opacity: 1; transform: rotate(12deg); }
  .partner-link { justify-content: flex-start; }
  .partners__them .partners__p { margin-inline: 0; }
  .tags--soft { justify-content: flex-start; }
}
.science { margin-top: 5rem; padding-top: 2.5rem; border-top: 1px solid rgba(12, 12, 12, .06); }
.science > span { font-size: 10px; text-transform: uppercase; letter-spacing: .3em; color: var(--ink-3); font-weight: 600; }
.science__row {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 1.5rem; margin-top: 1.5rem; padding-block: 1.5rem;
}
@media (min-width: 768px) { .science__row { grid-template-columns: auto 180px 1fr auto; gap: 2.5rem; margin-top: 2rem; padding-block: 2rem; } }
.planet { position: relative; width: 4rem; height: 4rem; flex-shrink: 0; }
.planet__orbit { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(0, 180, 166, .3); animation: ill-spin 24s linear infinite; }
.planet__orbit::before {
  content: ""; position: absolute; top: -4px; left: 50%; transform: translateX(-50%);
  width: 6px; height: 6px; border-radius: 50%; background: rgba(0, 180, 166, .5);
}
.planet .ico { position: absolute; inset: 0; margin: auto; font-size: 2rem; color: rgba(12, 12, 12, .4); }
.science__name { display: flex; flex-direction: column; gap: .375rem; }
.science__name small { font-size: 9px; text-transform: uppercase; letter-spacing: .3em; color: rgba(0, 180, 166, .6); font-weight: 700; }
.science__name a { display: flex; align-items: center; gap: .5rem; }
.science__name h3 {
  font-family: var(--serif); font-style: italic; font-size: 2.25rem; line-height: .85; color: #000;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 8px;
}
.science__name .ico { font-size: 1.25rem; color: #000; }
.science__desc, .science__more { display: none; }
@media (min-width: 768px) {
  .science__name h3 { text-decoration: none; }
  .science__name .ico { display: none; }
  .science__desc { display: block; font-size: .875rem; line-height: 1.625; color: var(--ink-2); }
  .science__more { display: flex; flex-direction: column; align-items: flex-end; gap: .75rem; }
}
.science__more .tags span {
  font-size: 9px; line-height: 1rem; text-transform: uppercase; letter-spacing: .15em; padding: .25rem .625rem;
  border: 1px solid rgba(12, 12, 12, .08); color: var(--ink-3);
}
.science__more .tags { justify-content: flex-end; gap: .5rem; }
.underline-link {
  position: relative; display: inline-block; font-size: 10px; text-transform: uppercase; letter-spacing: .2em; color: var(--teal); font-weight: 600;
}
.underline-link::after { content: ""; position: absolute; bottom: 0; left: 0; height: 1px; width: 0; background: var(--teal); transition: width .3s ease-out; }
.underline-link:hover::after { width: 100%; }

/* ── 8h. Numeri ──────────────────────────────────────────────────────────── */
.stats { padding-block: 4rem; background: var(--surface); }
@media (min-width: 768px) { .stats { padding-block: 6rem; } }
.stats .section-label { margin-bottom: 8rem; }
.stats__grid { display: grid; gap: 1px; background: var(--border); overflow: hidden; border-radius: 1rem; }
@media (min-width: 640px) { .stats__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .stats__grid { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--surface); padding: 2rem; display: flex; flex-direction: column; gap: .75rem; }
.stat b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: var(--fs-display-lg); letter-spacing: -0.03em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat strong { display: block; font-weight: 500; font-size: .875rem; color: var(--ink); margin-bottom: .25rem; }
.stat p { font-size: .75rem; line-height: 1.375; color: var(--ink-3); }

/* ── 8i. FAQ ─────────────────────────────────────────────────────────────── */
.faq { padding-block: 4rem; background: var(--base); }
.faq__grid { display: grid; gap: 2.5rem; }
.faq__grid h2 { margin-top: 1rem; }
.faq__intro { font-size: 1rem; line-height: 1.625; color: var(--ink-2); margin-top: 1.5rem; }
@media (min-width: 768px) {
  .faq { padding-block: 8rem; }
  .faq__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4rem; }
  .faq__side { grid-column: span 4; position: sticky; top: 10rem; align-self: start; }
  .faq__list { grid-column: span 8; }
}
.faq__item { padding-block: 1.25rem; border-bottom: 1px solid var(--border); }
.faq__item:first-child { padding-top: 0; }
.faq__item:last-child { border-bottom: 0; }
.faq__q { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; width: 100%; text-align: left; }
.faq__q span { font-size: 1rem; font-weight: 500; line-height: 1.375; color: var(--ink); transition: color .2s; }
.faq__q:hover span { color: var(--teal); }
.faq__q i {
  flex-shrink: 0; font-style: normal; color: var(--teal); font-weight: 300; font-size: 1.25rem; line-height: 1; margin-top: 2px;
  transition: transform .2s ease-in-out;
}
.faq__q[aria-expanded="true"] i { transform: rotate(45deg); }
.faq__a { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .3s var(--ease), opacity .3s; }
.faq__a > div { overflow: hidden; }
.faq__q[aria-expanded="true"] + .faq__a { grid-template-rows: 1fr; opacity: 1; }
.faq__a p { padding: 1rem 2.5rem .5rem 0; font-size: .875rem; line-height: 1.625; color: var(--ink-2); }
.faq__a .w { display: inline-block; opacity: 0; filter: blur(5px); transform: translateY(2px); }
.faq__q[aria-expanded="true"] + .faq__a .w { animation: word-in .4s var(--ease) forwards; animation-delay: calc(.05s + var(--i) * .015s); }
@keyframes word-in { to { opacity: 1; filter: none; transform: none; } }

/* ── 8l. Contatti ────────────────────────────────────────────────────────── */
.contact {
  position: relative; padding-block: 4rem; overflow: hidden;
  background: radial-gradient(ellipse 70% 60% at 50% 100%, rgba(0, 180, 166, .09) 0%, transparent 60%), var(--base);
}
.contact__head { display: grid; gap: 2rem; align-items: end; margin-bottom: 3.5rem; }
.contact__head h2 { margin-top: 1rem; }
.contact__head p { font-size: 1rem; line-height: 1.625; color: var(--ink-2); max-width: 28rem; }
.contact__cards { display: grid; gap: 1.25rem; }
.contact__note { font-size: .875rem; color: var(--ink-3); text-align: center; margin-top: 2.5rem; }
@media (min-width: 768px) {
  .contact { padding-block: 8rem; }
  .contact__head { grid-template-columns: 1fr 1fr; gap: 4rem; margin-bottom: 5rem; }
  .contact__head p { padding-bottom: .5rem; }
  .contact__cards { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}
.cta-card {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; height: 100%;
  border-radius: 1rem; border: 1px solid var(--border); background: rgba(255, 255, 255, .6);
  padding: 2rem; overflow: hidden; transition: border-color .3s, box-shadow .3s;
}
@media (min-width: 768px) { .cta-card { padding: 2.5rem; } }
.cta-card:hover { border-color: rgba(0, 180, 166, .4); box-shadow: 0 8px 32px rgba(0, 180, 166, .08); }
.cta-card::before {
  content: ""; position: absolute; inset: 0; border-radius: 1rem; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(ellipse 60% 50% at 50% 110%, rgba(0, 180, 166, .07) 0%, transparent 70%);
}
.cta-card:hover::before { opacity: 1; }
.cta-card > div { position: relative; z-index: 10; }
.cta-card__icon {
  width: 3rem; height: 3rem; border-radius: .75rem; border: 1px solid var(--border); background: var(--surface);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem;
  font-size: 1.5rem; color: var(--ink-2); transition: all .3s;
}
.cta-card:hover .cta-card__icon { border-color: rgba(0, 180, 166, .4); background: var(--teal-light); color: var(--teal); }
.cta-card .label-text { display: block; margin-bottom: .5rem; }
.cta-card h3 { font-family: var(--serif); font-size: var(--fs-display-sm); letter-spacing: -0.02em; line-height: 1.1; color: var(--ink); margin-bottom: .75rem; }
.cta-card p { font-size: .875rem; line-height: 1.625; color: var(--ink-2); max-width: 20rem; }
.cta-card__foot { display: flex; align-items: center; justify-content: space-between; }
.cta-card__foot span { font-size: .875rem; font-weight: 500; color: var(--ink); transition: color .2s; }
.cta-card:hover .cta-card__foot span { color: var(--teal); }
.cta-card__foot i {
  width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: .875rem; color: var(--ink-2); transition: all .2s;
}
.cta-card:hover .cta-card__foot i { border-color: var(--teal); background: var(--teal-light); color: var(--teal); }

/* ── 9. Footer ───────────────────────────────────────────────────────────── */
.footer { position: relative; overflow: hidden; background: var(--dark); color: #fff; }
.marquee { border-bottom: 1px solid rgba(255, 255, 255, .05); padding-block: 1rem; overflow: hidden; white-space: nowrap; }
.marquee__track {
  display: inline-flex; padding-block: .5rem; animation: marquee 50s linear infinite;
  font-size: .75rem; line-height: 1; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .15);
}
.marquee__track span { display: inline-flex; align-items: center; gap: 4rem; padding-right: 4rem; }
.marquee__track span::after { content: "\2726"; color: var(--teal); font-size: 1.25rem; }
@keyframes marquee { to { transform: translateX(-50%); } }
.footer__main { padding-block: 2.5rem; }
@media (min-width: 768px) { .footer__main { padding-block: 4rem; } }
.footer__cols { display: grid; gap: 3rem; margin-bottom: 4rem; }
@media (min-width: 768px) { .footer__cols { grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; } }
.footer__brand { display: flex; align-items: center; gap: .625rem; margin-bottom: 1.25rem; }
.footer__brand img { width: 1.75rem; height: 1.75rem; object-fit: contain; }
.footer__brand span { font-weight: 600; font-size: .875rem; letter-spacing: -0.025em; }
.footer__about { font-size: .875rem; line-height: 1.625; color: rgba(255, 255, 255, .35); margin-bottom: 1.5rem; max-width: 20rem; }
.footer__social { display: flex; gap: .75rem; }
.footer__social a {
  width: 2.25rem; height: 2.25rem; border-radius: .75rem; border: 1px solid rgba(255, 255, 255, .1);
  display: flex; align-items: center; justify-content: center; font-size: 1.125rem; color: rgba(255, 255, 255, .3);
  transition: color .2s, border-color .2s;
}
.footer__social a:hover { color: var(--teal); border-color: rgba(0, 180, 166, .4); }
.footer__title { font-size: 10px; font-weight: 600; color: var(--teal); text-transform: uppercase; letter-spacing: .15em; margin-bottom: 1.25rem; }
.footer__nav { display: flex; flex-direction: column; gap: .75rem; }
.footer__nav a { display: inline-flex; align-items: center; width: fit-content; font-size: .875rem; color: rgba(255, 255, 255, .4); transition: color .2s; }
.footer__nav a::before { content: ""; width: 0; height: 1px; background: var(--teal); transition: width .3s ease-out, margin .3s ease-out; }
.footer__nav a:hover { color: #fff; }
.footer__nav a:hover::before { width: .75rem; margin-right: .5rem; }
.footer__legal { display: flex; flex-direction: column; gap: 1rem; }
.footer__legal dt { font-size: 10px; color: rgba(255, 255, 255, .25); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .25rem; }
.footer__legal dd { font-size: .875rem; color: rgba(255, 255, 255, .45); white-space: pre-line; line-height: 1.375; }
.footer__bottom {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 1rem;
  padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, .05);
}
@media (min-width: 640px) { .footer__bottom { flex-direction: row; align-items: center; } }
.footer__copy { display: flex; flex-direction: column; gap: .25rem; font-size: .75rem; color: rgba(255, 255, 255, .2); }
.footer__copy span:last-child { color: rgba(255, 255, 255, .15); }
.footer__copy a { transition: color .2s; }
.footer__copy a:hover { color: var(--teal); }
.footer__privacy { display: flex; align-items: center; gap: .375rem; font-size: .75rem; color: rgba(255, 255, 255, .2); transition: color .2s; }
.footer__privacy .ico { font-size: .875rem; transition: color .2s; }
.footer__privacy:hover { color: rgba(255, 255, 255, .5); }
.footer__privacy:hover .ico { color: var(--teal); }

/* ── 10. Pagine servizio ─────────────────────────────────────────────────── */
.svc-hero {
  position: relative; overflow-x: clip; padding: 8rem 1.5rem 5rem;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(0, 180, 166, .10) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 85%, rgba(0, 180, 166, .055) 0%, transparent 55%),
    var(--base);
}
@media (min-width: 768px) { .svc-hero { padding: 11rem 2.5rem 7rem; } }
.svc-hero .inner { position: relative; z-index: 10; }
.back-link {
  display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 3rem;
  font-size: .75rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .15em; transition: color .2s;
}
.back-link:hover { color: var(--teal); }
.svc-hero__grid { display: grid; gap: 2.5rem; align-items: end; }
@media (min-width: 768px) { .svc-hero__grid { grid-template-columns: 3fr 2fr; gap: 4rem; } }
.svc-hero__title {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 3.2rem; line-height: .95; letter-spacing: -0.03em;
  margin-bottom: 1.5rem; padding-bottom: 1.5rem; overflow-wrap: break-word;
}
@media (min-width: 400px) { .svc-hero__title { font-size: 3.8rem; line-height: .82; } }
@media (min-width: 640px) { .svc-hero__title { font-size: var(--fs-display-lg); } }
@media (min-width: 768px) { .svc-hero__title { line-height: .85; } }
.svc-hero__tagline { font-size: 1.125rem; line-height: 1.625; color: var(--ink-2); max-width: 32rem; margin-bottom: 2rem; }
.tags--outline { gap: .5rem; }
.tags--outline span {
  font-size: 10px; line-height: 1rem; text-transform: uppercase; letter-spacing: .12em; padding: .25rem .75rem;
  border-radius: 9999px; border: 1px solid var(--border); color: var(--ink-3);
}
.highlights { width: 100%; border: 1px solid var(--border); border-radius: 1rem; overflow: hidden; background: rgba(255, 255, 255, .5); }
.highlight { display: flex; gap: 1rem; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); }
.highlight:last-child { border-bottom: 0; }
.highlight > .ico { font-size: 1.25rem; color: var(--teal); margin-top: 2px; }
.highlight h3 { font-weight: 600; font-size: .875rem; line-height: 1.375; color: var(--ink); margin-bottom: .25rem; }
.highlight p { font-size: .75rem; line-height: 1.625; color: var(--ink-2); }
.js .highlight[data-reveal] { --rx: 12px; --blur: 0px; --t: .55s; }

.svc-problem { padding-block: 4rem; background: var(--base); }
@media (min-width: 768px) { .svc-problem { padding-block: 6rem; } }
.svc-problem__grid { display: grid; gap: 3rem; }
@media (min-width: 768px) {
  .svc-problem__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4rem; }
  .svc-problem__grid > :first-child { grid-column: span 5; }
  .svc-problem__grid > :last-child { grid-column: span 7; }
}
.svc-problem .section-label { margin-bottom: 1.25rem; }
.svc-problem h2 { margin-bottom: 1.5rem; }
.svc-h2 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: var(--fs-display-lg); letter-spacing: -0.03em; line-height: .9; color: var(--ink); }
@media (min-width: 768px) { .svc-h2 { font-size: var(--fs-display-md); letter-spacing: -0.025em; line-height: .85; } }
.svc-problem__text { font-size: .875rem; line-height: 1.625; color: var(--ink-2); }
.svc-quote { border-left: 2px solid var(--teal); padding-left: 1.25rem; margin-top: 2rem; }
.svc-quote p { font-family: var(--serif); font-style: italic; font-size: 1rem; line-height: 1.625; color: rgba(12, 12, 12, .6); }
.approach .section-label { margin-bottom: 2rem; }
.approach__list { display: flex; flex-direction: column; gap: 1px; }
.approach__item { display: flex; gap: 1.25rem; padding-block: 1.25rem; border-top: 1px solid var(--border); }
.approach__item:first-child { border-top: 0; }
.approach__item > span { font-family: var(--serif); font-style: italic; font-size: 1.5rem; line-height: 1; color: var(--ink); opacity: .2; flex-shrink: 0; margin-top: 2px; transition: color .3s; }
.approach__item h3 { font-weight: 600; font-size: .875rem; color: var(--ink); margin-bottom: .375rem; transition: color .2s; }
.approach__item p { font-size: .875rem; line-height: 1.625; color: var(--ink-2); }
.approach__item:hover > span, .approach__item:hover h3 { color: var(--teal); }

.svc-gallery { padding-bottom: 4rem; background: var(--base); }
@media (min-width: 768px) { .svc-gallery { padding-bottom: 6rem; } }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
@media (min-width: 768px) { .gallery { gap: 1rem; } }
.gallery > div { height: 14rem; }
@media (min-width: 768px) { .gallery > div { height: 20rem; } }
.gallery__wide { grid-column: span 2; }
.slot {
  position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 1rem;
  background: var(--surface-2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot span { font-family: var(--serif); font-style: italic; font-size: 3rem; color: rgba(12, 12, 12, .1); user-select: none; }
.js .slot[data-reveal] { --rs: .97; --blur: 6px; --t: .7s; }

.svc-why { padding-block: 4rem; background: linear-gradient(180deg, #F5F4F0 0%, #EDECEA 100%); }
@media (min-width: 768px) { .svc-why { padding-block: 6rem; } }
.svc-why__head { display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; margin-bottom: 3rem; }
.svc-why__head .section-label { margin-bottom: 1rem; }
@media (min-width: 768px) { .svc-why__head { flex-direction: row; align-items: flex-end; margin-bottom: 4rem; } }
.why { display: grid; gap: 1px; background: var(--border); border-radius: 1rem; overflow: hidden; }
@media (min-width: 768px) { .why { grid-template-columns: repeat(3, 1fr); } }
.why > div { background: var(--base); padding: 2rem; }
.why b { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: var(--fs-display-md); letter-spacing: -0.025em; line-height: 1; margin-bottom: 1rem; width: fit-content; }
.why strong { display: block; font-weight: 600; font-size: .875rem; color: var(--ink); margin-bottom: .5rem; }
.why p { font-size: .875rem; line-height: 1.625; color: var(--ink-2); }

.svc-more {
  position: relative; padding-block: 4rem; overflow: hidden;
  background: linear-gradient(135deg, #EAF7F5 0%, #F5F4F0 50%, #EEF0EA 100%);
}
@media (min-width: 768px) { .svc-more { padding-block: 7rem; } }
.svc-more::before, .svc-more::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.svc-more::before { right: -6rem; top: -6rem; width: 20rem; height: 20rem; background: radial-gradient(circle, rgba(0, 180, 166, .07) 0%, transparent 70%); }
.svc-more::after { left: -4rem; bottom: 0; width: 16rem; height: 16rem; background: radial-gradient(circle, rgba(0, 180, 166, .05) 0%, transparent 70%); }
.svc-more .inner { position: relative; z-index: 10; }
.svc-more__head { margin-bottom: 2.5rem; }
.svc-more__head .section-label { margin-bottom: 1rem; }
@media (min-width: 768px) { .svc-more__head { margin-bottom: 3.5rem; } }
.suggest { display: grid; gap: 1rem; }
@media (min-width: 768px) { .suggest { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.suggest__card {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
  padding: 1.75rem; border-radius: 1rem; border: 1px solid var(--border); background: var(--surface);
  transition: border-color .5s, background-color .5s;
}
@media (min-width: 768px) { .suggest__card { height: 320px; } }
.suggest__card:hover { border-color: rgba(0, 180, 166, .25); background: rgba(255, 255, 255, .8); }
.suggest__card::before {
  content: ""; position: absolute; bottom: -5rem; right: -5rem; width: 12rem; height: 12rem; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(0, 180, 166, .15) 0%, transparent 70%); opacity: 0; transition: opacity .7s;
}
.suggest__card:hover::before { opacity: 1; }
.suggest__top { position: relative; z-index: 10; display: flex; align-items: flex-start; justify-content: space-between; }
.suggest__icon {
  width: 2.5rem; height: 2.5rem; border-radius: .75rem; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; color: var(--teal); background: rgba(0, 180, 166, .1); border: 1px solid rgba(0, 180, 166, .05); transition: background-color .5s;
}
.suggest__card:hover .suggest__icon { background: rgba(0, 180, 166, .2); }
.suggest__idx { font-family: var(--serif); font-style: italic; font-size: 2.25rem; line-height: 2.5rem; color: rgba(12, 12, 12, .05); transition: color .5s; user-select: none; }
.suggest__card:hover .suggest__idx { color: rgba(12, 12, 12, .1); }
.suggest__body { position: relative; z-index: 10; margin-top: 2rem; }
.suggest__body h3 { font-weight: 600; font-size: 1rem; color: var(--ink); margin-bottom: .5rem; transition: color .3s; }
.suggest__card:hover .suggest__body h3 { color: var(--teal); }
.suggest__body p { font-size: .875rem; line-height: 1.625; color: var(--ink-2); }
.suggest__foot { position: relative; z-index: 10; display: flex; align-items: center; justify-content: space-between; margin-top: 1.5rem; padding-top: 1rem; }
@media (min-width: 768px) { .suggest__foot { margin-top: auto; } }
.suggest__foot .tags span { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; padding: .125rem .5rem; border-radius: 9999px; background: rgba(216, 215, 211, .3); color: var(--ink-3); }
.suggest__go {
  width: 2rem; height: 2rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .875rem;
  background: var(--surface-2); border: 1px solid var(--border); transition: all .3s;
}
.suggest__card:hover .suggest__go { background: var(--teal); color: #fff; border-color: var(--teal); }
.suggest__card > a { position: absolute; inset: 0; z-index: 20; }
.svc-more__back { margin-top: 3rem; display: flex; justify-content: center; }
@media (min-width: 768px) { .svc-more__back { margin-top: 4rem; } }
.svc-more__back a {
  display: inline-flex; align-items: center; gap: .5rem; font-size: 11px; text-transform: uppercase; letter-spacing: .18em; color: var(--ink-3); transition: color .2s;
}
.svc-more__back a:hover { color: var(--teal); }

/* ── 11. Pagina 404 ──────────────────────────────────────────────────────── */
.notfound {
  position: relative; min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center;
  padding: 8rem 1.5rem 4rem; overflow: hidden; text-align: center;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(0, 180, 166, .10) 0%, transparent 60%),
    var(--base);
}
.notfound__box { position: relative; z-index: 10; display: flex; flex-direction: column; align-items: center; }
.notfound__code { font-family: var(--serif); font-style: italic; font-size: clamp(7rem, 22vw, 16rem); line-height: .8; letter-spacing: -0.03em; }
.notfound h1 { font-family: var(--serif); font-style: italic; font-size: var(--fs-display-sm); margin: 1.5rem 0 1rem; }
.notfound p { font-size: 1rem; line-height: 1.625; color: var(--ink-2); max-width: 28rem; margin-bottom: 2.5rem; }
.notfound .section-label { justify-content: center; margin-bottom: 2rem; }

/* ── 12. Riduzione del movimento ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; transition-delay: 0s !important;
  }
  .marquee__track { animation: none; }
  .faq__a .w { opacity: 1; filter: none; transform: none; }
}
