/* ============================================================
   LabVerde — Sistema di stile condiviso
   ============================================================ */

:root {
  /* Palette richiesta */
  --title: #3F7D54;       /* titoli */
  --subtitle: #5DA46B;    /* sottotitoli */
  --text: #222424;        /* testi */
  --btn: #5DA46B;         /* sfondo pulsanti */

  /* Derivati / superfici */
  --bg: #FFFFFF;          /* sfondo pagina */
  --header-bg: #F4F5F0;   /* sfondo header/menu */
  --surface: #FFFFFF;     /* card */
  --surface-soft: #E9F1E8;
  --deep: #1E4A2E;        /* banda verde scura */
  --deep-2: #163823;
  --line: #DEE2D8;        /* bordi sottili */
  --line-strong: #C9D0C2;
  --text-soft: #4A5450;   /* testo secondario leggibile */
  --on-deep: #F0F3ED;     /* testo su fondo scuro */
  --on-deep-soft: #B8C7B6;

  --maxw: 1660px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgba(34,36,36,.04), 0 12px 32px -16px rgba(34,36,36,.18);
  --shadow-soft: 0 1px 2px rgba(34,36,36,.04), 0 8px 24px -18px rgba(34,36,36,.22);

  --ff-head: "Space Grotesk", system-ui, sans-serif;
  --ff-body: "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--ff-body);
  color: var(--text);
  background: var(--bg);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--ff-head);
  color: var(--title);
  line-height: 1.05;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 56px);
}

/* Accessibilità */
:focus-visible {
  outline: 3px solid var(--title);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -120px;
  background: var(--deep);
  color: var(--on-deep);
  padding: 12px 18px;
  border-radius: 10px;
  z-index: 200;
  transition: top .2s ease;
  font-weight: 600;
}
.skip-link:focus { top: 16px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Eyebrow / kicker ---------- */
.kicker {
  font-family: var(--ff-head);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .8rem;
  font-weight: 600;
  color: var(--subtitle);
  margin: 0 0 18px;
}
.kicker--light { color: var(--on-deep-soft); }

/* ---------- Section title rhythm ---------- */
.eyebrow-rule {
  display: inline-block;
  width: 54px;
  height: 4px;
  border-radius: 4px;
  background: var(--btn);
  margin-top: 22px;
}

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245,246,242,.86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding-block: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
}
.brand img { width: 42px; height: 42px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--title);
  letter-spacing: -0.01em;
}
.brand__tag {
  font-size: .68rem;
  letter-spacing: .04em;
  color: var(--text-soft);
  text-transform: none;
  white-space: nowrap;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 38px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  text-decoration: none;
  font-weight: 600;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  white-space: nowrap;
  color: var(--text);
  padding: 6px 2px;
  position: relative;
}
.nav__links a[aria-current="page"] { color: var(--title); }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 2px;
  background: var(--btn);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }
/* Il CTA è un pulsante: niente sottolineatura, testo bianco, padding pieno */
.nav__links .nav__cta a::after { content: none; display: none; }
.nav__links .nav__cta a.btn {
  color: #fff;
  font-size: .72rem;
  letter-spacing: .08em;
  padding: 9px 18px;
}
.nav__links .nav__cta a.btn svg { width: 15px; height: 15px; }
.nav__links .nav__cta a.btn:hover { color: #fff; }

.nav__cta { margin-left: 8px; }

.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  width: 46px; height: 46px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav__toggle svg { width: 24px; height: 24px; stroke: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: .98rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }

.btn--primary { background: var(--btn); color: #ffffff; box-shadow: var(--shadow-soft); }
.btn--primary:hover { background: #4f9460; transform: translateY(-1px); }

.btn--dark { background: var(--deep); color: #fff; }
.btn--dark:hover { background: var(--deep-2); transform: translateY(-1px); }

.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--title); color: var(--title); }

.btn--light { background: var(--surface); color: var(--text); box-shadow: var(--shadow-soft); }
.btn--light:hover { transform: translateY(-1px); }

/* ---------- Thank you page ---------- */
.thanks-section {
  display: flex;
  align-items: center;
  min-height: calc(100vh - 232px);
  padding-block: clamp(56px, 9vw, 110px);
}
.thanks { max-width: 640px; margin-inline: auto; text-align: center; }
.thanks__mark {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin: 0 auto 28px;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--title);
  box-shadow: 0 0 0 8px rgba(63, 125, 84, .08);
}
.thanks__mark svg { width: 40px; height: 40px; }
.thanks .kicker { justify-content: center; }
.thanks h1 { font-size: clamp(2rem, 5vw, 3rem); }
.thanks .eyebrow-rule { margin-inline: auto; }
.thanks__lead { margin-top: 22px; color: var(--text-soft); }
.thanks__lead strong { color: var(--title); }
.thanks__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}
.thanks__note { margin-top: 28px; font-size: .95rem; color: var(--text-soft); }
.thanks__note a { color: var(--title); font-weight: 600; }

/* ============================================================
   Generic sections
   ============================================================ */
.section { padding-block: clamp(56px, 8vw, 110px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
/* Tinta soft per alternare sezioni adiacenti con sfondo bianco */
.section--soft { background: var(--header-bg); }
.section--soft + .section--soft { border-top: 1px solid var(--line); }

.section-head { max-width: 760px; }
.section-head h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  text-transform: uppercase;
  letter-spacing: .01em;
}

/* ---------- Image placeholder ---------- */
.ph {
  position: relative;
  background-color: var(--surface-soft);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(95,120,105,.10) 0 12px,
    rgba(95,120,105,.04) 12px 24px
  );
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--title);
}
.ph::after {
  content: attr(data-label);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .75rem;
  letter-spacing: .04em;
  color: var(--title);
  background: rgba(245,246,242,.82);
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  text-align: center;
  max-width: 80%;
}
/* Filled placeholder: real image dropped into a .ph slot */
.ph--filled { background-image: none; border-color: transparent; }
.ph--filled::after { content: none; }
.ph__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Metodo intro: full-bleed image anchored right, fading to white on the left */
#metodo{
  background-color: #F4F5F0;
}
.metodo-intro { position: relative; overflow: hidden; }
.metodo-intro__bg { position: absolute; inset: 0; z-index: 0; }
.metodo-intro__bg img {
  position: absolute; top: 0; right: 0; height: 100%; width: 66%;
  object-fit: cover; object-position: center;
}
.metodo-intro__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(95deg,
    var(--bg) 0%,
    var(--bg) 37%,
    rgba(255,255,255,.72) 52%,
    rgba(255,255,255,0) 66%);
}
.metodo-intro > .container { position: relative; z-index: 1; }
.metodo-intro__copy { max-width: 560px; }

/* Metodo layer diagram: show the whole image, no crop, on white */
.split__media--contain {
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  background: transparent;
}
.split__media--contain .layer-img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
}
@media (max-width: 860px) {
  .metodo-intro__bg img { width: 100%; object-position: 72% center; }
  .metodo-intro__bg::after {
    background: linear-gradient(180deg,
      var(--bg) 0%,
      var(--bg) 26%,
      rgba(255,255,255,.82) 50%,
      rgba(255,255,255,.55) 100%);
  }
  .metodo-intro__copy { max-width: none; }
}

/* ---------- Cards / features ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  height: 100%;
}

.icon-circle {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  color: var(--title);
  margin-bottom: 18px;
}
.icon-circle svg { width: 26px; height: 26px; }
.icon-circle--solid {
  background: var(--btn);
  border-color: var(--btn);
  color: #1A2A1F;
}

.feature-title {
  font-family: var(--ff-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .95rem;
  color: var(--title);
  margin-bottom: 8px;
}
.feature-text { color: var(--text-soft); font-size: .98rem; }

/* ---------- Dark band ---------- */
.band {
  background: var(--deep);
  color: var(--on-deep);
  position: relative;
  overflow: hidden;
}
.band h2, .band h3 { color: var(--on-deep); }
.band__topo {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(120% 80% at 90% 50%, rgba(140,170,137,.16), transparent 60%);
  pointer-events: none;
}

/* ============================================================
   Home — Hero
   ============================================================ */
@property --hero-zoom {
  syntax: "<number>";
  inherits: false;
  initial-value: 1.06;
}
.hero {
  position: relative;
  min-height: clamp(560px, 78vh, 760px);
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  border: none;
  border-radius: 0;
  z-index: 0;
}
.hero__img {
  position: absolute;
  top: -12%;
  left: 0;
  width: 100%;
  height: 124%;
  object-fit: cover;
  object-position: center 60%;
  will-change: transform;
  transform: translate3d(0, var(--parallax, 0px), 0) scale(var(--hero-zoom, 1.06));
  transition: transform .12s linear;
  animation: heroIntro 1.4s cubic-bezier(.22,.61,.36,1) both;
}
@keyframes heroIntro {
  from { opacity: 0; --hero-zoom: 1.14; }
  to   { opacity: 1; --hero-zoom: 1.06; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__img { animation: none; transform: none; top: 0; height: 100%; }
}
html.no-anim .hero__img { animation: none !important; opacity: 1 !important; }
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(20,30,22,.72) 0%, rgba(20,30,22,.5) 38%, rgba(20,30,22,.08) 70%, rgba(20,30,22,0) 100%),
    linear-gradient(0deg, rgba(20,30,22,.35), rgba(20,30,22,.05));
}
.hero__inner { position: relative; z-index: 2; padding-block: clamp(48px, 9vw, 96px); max-width: 760px; }
.hero__title {
  color: #fff;
  font-size: clamp(2.2rem, 5.6vw, 4rem);
  text-transform: uppercase;
  line-height: 1.02;
  letter-spacing: -0.01em;
  max-width: 16ch;
}
.hero__lead {
  margin-top: 28px;
  font-size: clamp(1.02rem, 1.8vw, 1.2rem);
  color: #e9efe6;
  max-width: 52ch;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.btn--ghost-light { color: #fff; border-color: rgba(255,255,255,.5); }
.btn--ghost-light:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }

/* ============================================================
   Home — Audience
   ============================================================ */
.audience__head { text-align: center; margin-inline: auto; max-width: 720px; display: flex; flex-direction: column; align-items: center; }
.audience__head h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); color: var(--title); }
.audience__head .eyebrow-rule { margin-inline: auto; }
.audience__grid {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.audience__item {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-direction: row;
  text-decoration: none;
  color: var(--text);
  padding: 12px clamp(20px, 3vw, 40px);
  border-left: 1px solid var(--line);
  transition: transform .2s ease;
}
.audience__item:first-child { border-left: none; }
.audience__item .icon-circle { margin-bottom: 0; width: 64px; height: 64px; flex: none; }
.audience__label { font-family: var(--ff-head); font-weight: 600; font-size: 1.12rem; color: var(--text); }
.audience__arrow { width: 22px; height: 22px; stroke: var(--title); margin-left: auto; transition: transform .2s ease; }
.audience__item:hover .audience__arrow { transform: translateX(5px); }
.audience__item:hover .icon-circle--solid { background: #4f9460; }

/* ============================================================
   Home — Pillars
   ============================================================ */
.pillars__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.pillars__copy h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.pillars__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pillars__list li {
  display: flex;
  gap: 22px;
  padding: 24px 4px;
  border-top: 1px solid var(--line);
  align-items: flex-start;
}
.pillars__list li:last-child { border-bottom: 1px solid var(--line); }
.pillars__num { font-family: var(--ff-head); font-weight: 700; color: var(--subtitle); font-size: 1.1rem; min-width: 32px; }
.pillars__list strong { font-family: var(--ff-head); display: block; color: var(--title); font-size: 1.12rem; margin-bottom: 4px; }

/* ============================================================
   CTA band
   ============================================================ */
.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-block: clamp(48px, 7vw, 80px);
  flex-wrap: wrap;
}
.cta__copy { max-width: 60ch; }
.cta__copy .icon-circle { margin-bottom: 18px; }
.cta__copy h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.cta__copy p { color: var(--on-deep-soft); margin-top: 12px; font-size: 1.08rem; }

@media (max-width: 860px) {
  .audience__grid { grid-template-columns: 1fr; gap: 4px; }
  .audience__item { border-left: none; border-top: 1px solid var(--line); padding: 20px 4px; }
  .audience__item:first-child { border-top: none; }
  .pillars__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Breadcrumbs + utility text
   ============================================================ */
.crumbs {
  font-size: .9rem;
  color: var(--text-soft);
  margin-bottom: 28px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.crumbs a { color: var(--text-soft); text-decoration: none; white-space: nowrap; }
.crumbs a:hover { color: var(--title); }
.crumbs [aria-current] { color: var(--title); font-weight: 600; white-space: nowrap; }

.subtitle {
  font-family: var(--ff-head);
  color: var(--subtitle);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 600;
  margin-top: 18px;
}
.body-lg { font-size: 1.08rem; color: var(--text); line-height: 1.7; max-width: 56ch; }
.accent { color: var(--subtitle); }

/* ============================================================
   Split layout
   ============================================================ */
.split-hero h1, .split-hero .display {
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  text-transform: uppercase;
  line-height: 1.03;
}
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.split--reverse .split__copy { order: 2; }
.split--reverse .split__media { order: 1; }
.split__media { border-radius: var(--radius-lg); }

/* ============================================================
   Card grids
   ============================================================ */
.grid-4 {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
}
.grid-5 .feature { padding-top: 8px; }
.feature .icon-circle { width: 52px; height: 52px; }

/* ============================================================
   Statement / dark band content
   ============================================================ */
.band--alt { background: linear-gradient(120deg, var(--deep-2), var(--deep)); }
.band--formula { background: var(--header-bg); border-top: 3px solid var(--subtitle); }
.band--formula .kicker--light { color: var(--subtitle); }
.band--formula .statement p,
.band--formula .flowline { color: var(--text) !important; }
.band--formula .flowline .accent,
.band--formula .flowline .arrow { color: var(--subtitle); }
.statement {
  display: flex;
  align-items: center;
  gap: 26px;
  padding-block: clamp(36px, 5vw, 56px);
}
.statement p {
  font-family: var(--ff-head);
  color: var(--on-deep);
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  line-height: 1.35;
  font-weight: 500;
  max-width: 60ch;
}
.statement strong { color: #fff; font-weight: 700; }

@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__copy { order: 1; }
  .split--reverse .split__media { order: 2; }
  .split__media { min-height: 280px !important; }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .grid-5 { grid-template-columns: 1fr 1fr; }
  .statement { flex-direction: column; align-items: flex-start; gap: 18px; }
}

/* ============================================================
   Piattaforma — grids & panels
   ============================================================ */
.grid-3 {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 44px;
}
.split--wide { grid-template-columns: 0.85fr 1.15fr; align-items: center; }

.panel {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px);
}
.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
}
.trio__col h3 { margin-bottom: 10px; }
.trio__col .feature-text { margin-bottom: 22px; }

.std-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.std-chips li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 15px 18px;
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 1rem;
  color: var(--title);
  box-shadow: var(--shadow-soft);
}
/* Chip che contiene un logo invece del testo */
.std-chips__img { display: flex; align-items: center; padding: 10px 18px; }
.std-chips__img img { height: 30px; width: auto; display: block; }
.tech-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tech-shots .ph { border-radius: var(--radius-sm); }

.trust-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.trust-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  font-size: .98rem;
  color: var(--text);
}
.trust-list .icon-circle { margin: 0; width: 46px; height: 46px; flex: none; }
.trust-list .icon-circle svg { width: 22px; height: 22px; }

/* ============================================================
   Dashboard mockup
   ============================================================ */
.dash {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  font-family: var(--ff-body);
}
.dash__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.dash__brand { display: flex; align-items: center; gap: 8px; font-family: var(--ff-head); font-weight: 700; color: var(--title); font-size: .95rem; }
.dash__brand img { width: 22px; height: 22px; }
.dash__title { font-size: .9rem; color: var(--text-soft); font-weight: 600; }
.dash__avatar { margin-left: auto; width: 30px; height: 30px; border-radius: 8px; background: var(--btn); color: #1A2A1F; display: grid; place-items: center; font-size: .72rem; font-weight: 700; font-family: var(--ff-head); }
.dash__body { display: grid; grid-template-columns: 132px 1fr; }
.dash__side {
  border-right: 1px solid var(--line);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dash__side span {
  font-size: .78rem;
  color: var(--text-soft);
  padding: 7px 10px;
  border-radius: 8px;
}
.dash__side .is-active { background: var(--surface-soft); color: var(--title); font-weight: 700; }
.dash__main {
  padding: 14px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-template-areas: "map kpis" "stats stats";
  gap: 12px;
}
.dash__map { grid-area: map; min-height: 168px; border-radius: 10px; position: relative; }
.dash__map::after { font-size: .68rem; }
.dash__pin { position: absolute; width: 14px; height: 14px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--title); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.dash__kpis { grid-area: kpis; border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.dash__kpis-head { display: flex; justify-content: space-between; font-size: .76rem; margin-bottom: 8px; }
.dash__kpis-head span:first-child { font-weight: 700; color: var(--title); font-family: var(--ff-head); }
.dash__link { color: var(--subtitle); font-weight: 600; }
.dash__kpis ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.dash__kpis li { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; font-size: .76rem; color: var(--text-soft); }
.dash__kpis li b { color: var(--text); font-family: var(--ff-head); }
.dash__kpis li em { font-style: normal; font-weight: 600; }
.dash__kpis li .up { color: #4a8f5b; }
.dash__kpis li .down { color: #c08a3e; }
.dash__stats { grid-area: stats; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.dash__stat { border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.dash__stat span { font-size: .68rem; color: var(--text-soft); display: block; }
.dash__stat b { font-family: var(--ff-head); color: var(--title); font-size: 1rem; }
.dash__spark { height: 30px; margin-top: 6px; border-radius: 6px; }
.dash__spark::after { display: none; }

@media (max-width: 1080px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .trio { grid-template-columns: 1fr; }
  .split--wide { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid-3 { grid-template-columns: 1fr; }
  .dash__body { grid-template-columns: 1fr; }
  .dash__side { flex-direction: row; flex-wrap: wrap; border-right: none; border-bottom: 1px solid var(--line); }
  .dash__main { grid-template-columns: 1fr; grid-template-areas: "map" "kpis" "stats"; }
  .dash__stats { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   Territori — coming soon
   ============================================================ */
.soon__inner { max-width: 720px; margin-inline: auto; text-align: center; }
.soon__inner h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); text-transform: uppercase; }
.soon__inner .eyebrow-rule { margin-inline: auto; }
.soon__inner .body-lg { max-width: 56ch; }
.soon__map { margin-top: 56px; min-height: clamp(260px, 38vw, 440px); border-radius: var(--radius-lg); }

/* ============================================================
   Contatti
   ============================================================ */
.contact-hero { padding-top: clamp(40px, 6vw, 64px); }
.contact-hero__inner { max-width: 760px; }
.contact-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); text-transform: uppercase; line-height: 1.04; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.5vw, 40px);
  box-shadow: var(--shadow-soft);
}
.contact-form h2 { font-size: 1.5rem; margin-bottom: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.field label { font-family: var(--ff-head); font-weight: 600; font-size: .92rem; color: var(--title); }
.field input,
.field select,
.field textarea {
  font-family: var(--ff-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--header-bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  width: 100%;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder,
.field textarea::placeholder { color: #97a09b; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--subtitle);
  box-shadow: 0 0 0 3px rgba(93,164,107,.30);
}
.field--check { flex-direction: row; align-items: flex-start; gap: 12px; }
.field--check input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--title); }
.field--check label { font-family: var(--ff-body); font-weight: 500; color: var(--text-soft); font-size: .92rem; }
.contact-form .btn { margin-top: 26px; }
.form-note { margin-top: 14px; font-size: .92rem; color: var(--subtitle); font-weight: 600; min-height: 1.2em; }

/* Validazione: messaggi d'errore e stati */
.field-error {
  display: block;
  font-family: var(--ff-body);
  font-size: .85rem;
  font-weight: 600;
  color: #b3261e;
  min-height: 0;
  margin-top: -2px;
}
.field-error:empty { display: none; }
#err-privacy { margin-top: 6px; }
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #d9534f;
  box-shadow: 0 0 0 3px rgba(217,83,79,.18);
}
.form-alert {
  margin: 4px 0 18px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: #fdecea;
  border: 1px solid #f3c2bd;
  color: #8f1d16;
  font-size: .92rem;
  font-weight: 600;
}
.form-alert[hidden] { display: none; }

/* Honeypot anti-spam: fuori dallo schermo, non visibile né focusabile */
.hp-field {
  position: absolute !important;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.info-card {
  background: var(--deep);
  color: var(--on-deep);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.5vw, 36px);
}
.info-card h2 { color: var(--on-deep); font-size: 1.4rem; margin-bottom: 22px; }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.info-list li { display: flex; align-items: center; gap: 16px; }
.info-list .icon-circle {
  margin: 0; width: 48px; height: 48px; flex: none;
  border-color: rgba(255,255,255,.28); color: var(--on-deep);
}
.info-list .icon-circle svg { width: 22px; height: 22px; }
.info-label { display: block; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-deep-soft); margin-bottom: 3px; }
.info-list a, .info-list div > span:not(.info-label) { color: var(--on-deep); text-decoration: none; font-weight: 600; }
.info-list a:hover { color: #fff; text-decoration: underline; }
.contact-map { margin-top: 18px; min-height: 220px; border-radius: var(--radius-lg); }

.feature-band { align-items: center; }
.steps-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.steps-list li {
  display: flex; align-items: baseline; gap: 14px;
  font-size: 1.02rem; color: var(--text);
}
.steps-list span {
  font-family: var(--ff-head); font-weight: 700; color: var(--subtitle);
  flex: none; font-size: .95rem;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

/* ============================================================
   Territori Attivi
   ============================================================ */
.hero__sub {
  font-family: var(--ff-head);
  font-weight: 600;
  color: #fff;
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  margin-top: 18px;
  max-width: 24ch;
  line-height: 1.2;
}
.section-head--center { max-width: 820px; margin-inline: auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.section-head--center h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); text-transform: uppercase; }
.section-head--center .subtitle { margin-top: 12px; }
.section-head--center .eyebrow-rule { margin-inline: auto; }

/* ---------- Processo ---------- */
.process {
  list-style: none;
  margin: 52px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  counter-reset: step;
}
.process__step { text-align: center; position: relative; }
/* freccia connettore tra step */
.process__step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 40px;
  right: -9px;
  width: 18px; height: 18px;
  background: no-repeat center/contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238CAA89' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  opacity: .8;
}
.process__step .icon-circle { width: 80px; height: 80px; margin: 0 auto 18px; border-color: var(--line-strong); }
.process__step .icon-circle svg { width: 34px; height: 34px; }
.process__step h3 {
  font-family: var(--ff-head);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .95rem;
  color: var(--title);
  margin-bottom: 10px;
}
.process__step p { font-size: .9rem; color: var(--text-soft); line-height: 1.5; }
.process__closing {
  max-width: 760px;
  margin: 48px auto 0;
  text-align: center;
  font-size: 1.05rem;
  color: var(--text-soft);
  line-height: 1.7;
}
/* ciclo a 7 step (Metodo NBS Lean) */
.process--7 { grid-template-columns: repeat(7, 1fr); }

/* ============================================================
   Metodo NBS Lean
   ============================================================ */
.nbs-lean__brand { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.nbs-tagline {
  font-family: var(--ff-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--subtitle);
  font-size: .95rem;
  margin-top: 10px;
}
.nbs-dims { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.nbs-dims li {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--ff-head); font-weight: 600; color: var(--title);
  font-size: 1rem;
}
.nbs-dims .icon-circle { width: 44px; height: 44px; margin: 0; flex: none; }
.nbs-dims .icon-circle svg { width: 22px; height: 22px; }
/* lettere E / L / N dei tre principi */
.nbs-letter {
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  display: grid; place-items: center;
  font-family: var(--ff-head); font-weight: 700; font-size: 1.6rem;
  color: #1A2A1F; background: var(--btn);
  margin-bottom: 18px;
}
.nbs-principle .feature-sub {
  font-family: var(--ff-head); font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; font-size: .82rem; color: var(--subtitle);
  margin-bottom: 12px;
}
.nbs-question {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
}
.nbs-question span {
  display: block; font-size: .82rem; text-transform: uppercase;
  letter-spacing: .04em; color: var(--text-soft); margin-bottom: 4px;
}
.nbs-question strong { font-family: var(--ff-head); color: var(--title); font-size: 1.02rem; }
/* benefici */
.nbs-benefits { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.nbs-benefit ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.nbs-benefit li { position: relative; padding-left: 20px; color: var(--text); font-size: .96rem; line-height: 1.45; }
.nbs-benefit li::before {
  content: ""; position: absolute; left: 2px; top: 8px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--subtitle);
}
@media (max-width: 900px) {
  .nbs-benefits { grid-template-columns: 1fr; }
}

/* ---------- Card progetti ---------- */
.projects {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.project {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}
.project__media {
  height: 200px;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: visible;
}
.project__badge {
  position: absolute;
  left: 22px;
  bottom: -26px;
  width: 56px; height: 56px;
  border-radius: 999px;
  background: var(--deep);
  color: var(--on-deep);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-soft);
  z-index: 2;
}
.project__badge svg { width: 26px; height: 26px; }
.project__body { padding: 40px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.project__title { font-family: var(--ff-head); font-size: 1.5rem; text-transform: uppercase; color: var(--title); }
.project__kicker { font-family: var(--ff-head); font-weight: 600; color: var(--text); margin-top: 4px; }
.project__place { color: var(--subtitle); font-weight: 600; font-size: .92rem; margin-top: 2px; }
.project__desc { color: var(--text-soft); font-size: .96rem; margin-top: 14px; }

.proj-tags {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.proj-tags li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  font-size: .72rem;
  line-height: 1.25;
  color: var(--text-soft);
}
.proj-tags .icon-circle { width: 44px; height: 44px; margin: 0; border-color: var(--line-strong); }
.proj-tags .icon-circle svg { width: 22px; height: 22px; }

.project__result { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.result-label {
  display: block;
  font-family: var(--ff-head);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--subtitle);
  margin-bottom: 8px;
}
.project__result p { color: var(--text); font-size: .96rem; }
.project__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: .95rem;
  color: var(--title);
  text-decoration: none;
}
.project__link svg { width: 18px; height: 18px; transition: transform .2s ease; }
.project__link:hover svg { transform: translateX(4px); }

/* ---------- Diagramma valore ---------- */
.value-layout {
  display: grid;
  grid-template-columns: 0.8fr 2fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.value-intro h2 { font-size: clamp(1.5rem, 3vw, 2rem); text-transform: uppercase; }
.value-diagram {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(16px, 3vw, 40px);
  align-items: center;
}
.vd-col { display: flex; flex-direction: column; gap: clamp(40px, 7vw, 72px); }
.vd-label h3 {
  font-family: var(--ff-head);
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--title);
  margin-bottom: 10px;
}
.vd-label ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.vd-label li { font-size: .92rem; color: var(--text-soft); position: relative; padding-left: 16px; }
.vd-label li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--subtitle); }
.vd-label--right { text-align: right; }
.vd-label--right li { padding-left: 0; padding-right: 16px; }
.vd-label--right li::before { left: auto; right: 2px; }

.vd-center { position: relative; width: clamp(220px, 26vw, 300px); aspect-ratio: 1; }
.vd-ring {
  position: absolute; inset: 12%;
  border: 1.5px dashed var(--line-strong);
  border-radius: 50%;
  background-color: #ffffff;
}
.vd-node, .vd-core { position: absolute; display: grid; place-items: center; border-radius: 50%; background: var(--surface); }
.vd-node {
  width: 23%; aspect-ratio: 1;
  border: 1.5px solid var(--line-strong);
  color: var(--title);
}
.vd-node svg { width: 52%; height: 52%; }
.vd-node--tl { left: 0; top: 8%; }
.vd-node--tr { right: 0; top: 8%; }
.vd-node--bl { left: 0; bottom: 8%; }
.vd-node--br { right: 0; bottom: 8%; }
.vd-core {
  width: 34%; aspect-ratio: 1;
  left: 33%; top: 33%;
  border: 0;
  background: #ffffff;
  flex-direction: column;
  gap: 4px;
  text-align: center;
  padding: 6px;
}
.vd-core img { width: 70%; }
.vd-core span { font-family: var(--ff-head); font-size: .6rem; font-weight: 700; color: var(--title); line-height: 1.15; letter-spacing: .02em; }

/* ---------- Rete di territori (dark) ---------- */
.network { position: relative; }
.network__bg { position: absolute; inset: 0; z-index: 0; }
.network__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .22; }
.network::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(120deg, rgba(27,49,34,.94), rgba(35,63,44,.86));
}
.network .band__topo, .network__inner, .network__cta { position: relative; z-index: 2; }
.network__inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(56px, 8vw, 90px);
}
.network__copy h2 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.4rem); text-transform: uppercase; line-height: 1.05; }
.network__copy .eyebrow-rule { margin-top: 20px; }
.network__copy p { color: var(--on-deep-soft); margin-top: 18px; max-width: 42ch; }

.netmap { position: relative; width: 100%; max-width: 520px; aspect-ratio: 1; margin-inline: auto; }
.netmap__lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.netmap__lines line { stroke: rgba(255,255,255,.35); stroke-width: .4; stroke-dasharray: 2 2; }
.netmap__node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 34%;
}
.netmap__dot {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.45);
  background: rgba(27,49,34,.55);
  display: grid; place-items: center;
  color: #fff;
  margin-bottom: 12px;
}
.netmap__dot svg { width: 28px; height: 28px; }
.netmap__node b { display: block; font-family: var(--ff-head); color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; line-height: 1.25; }
.netmap__node em { display: block; font-style: normal; color: var(--on-deep-soft); font-size: .74rem; margin-top: 4px; line-height: 1.2; }
.netmap__node--tl { left: -4%; top: 4%; }
.netmap__node--tr { right: -4%; top: 4%; }
.netmap__node--bl { left: -4%; bottom: 4%; }
.netmap__node--br { right: -4%; bottom: 4%; }
.netmap__core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 38%; aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.6);
  background: rgba(27,49,34,.8);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  text-align: center; padding: 8px;
}
.netmap__core img { width: 30%; filter: brightness(0) invert(1); opacity: .92; }
.netmap__core span { font-family: var(--ff-head); font-size: .64rem; font-weight: 700; color: #fff; line-height: 1.2; letter-spacing: .03em; }
.network__cta {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  flex-wrap: wrap;
  padding-top: clamp(32px, 5vw, 48px);
  padding-bottom: clamp(48px, 7vw, 72px);
  border-top: 1px solid rgba(255,255,255,.14);
}

@media (max-width: 1080px) {
  .process { grid-template-columns: repeat(3, 1fr); gap: 32px 18px; }
  .process__step:nth-child(3)::after { display: none; }
  .projects { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .value-layout { grid-template-columns: 1fr; }
  .network__inner { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .process { grid-template-columns: repeat(2, 1fr); }
  .process__step::after { display: none !important; }
  .value-diagram { grid-template-columns: 1fr; gap: 28px; }
  .vd-col { flex-direction: row; flex-wrap: wrap; gap: 24px; justify-content: space-between; }
  .vd-label, .vd-label--right { text-align: left; }
  .vd-label--right li { padding-left: 16px; padding-right: 0; }
  .vd-label--right li::before { left: 2px; right: auto; }
  .vd-center { margin-inline: auto; order: -1; }
  .netmap { max-width: 360px; }
  .netmap__node b { font-size: .72rem; }
  .netmap__dot { width: 52px; height: 52px; }
}
@media (max-width: 420px) {
  .proj-tags { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   Pagine progetto (Amenowood / Magnus Lucus / Prodebosco)
   ============================================================ */
.crumbs--light { color: rgba(255,255,255,.8); }
.crumbs--light a { color: rgba(255,255,255,.8); }
.crumbs--light a:hover { color: #fff; }
.crumbs--light [aria-current] { color: #fff; }

/* Hero variants */
.hero--project { min-height: clamp(480px, 64vh, 640px); }
.hero--project .hero__inner { padding-block: clamp(40px, 7vw, 80px); }
.hero--right .hero__inner--right { margin-left: auto; text-align: left; }
.hero__overlay--right {
  background:
    linear-gradient(270deg, rgba(20,30,22,.9) 0%, rgba(20,30,22,.62) 36%, rgba(20,30,22,.12) 72%, rgba(20,30,22,.04) 100%),
    linear-gradient(0deg, rgba(20,30,22,.5), rgba(20,30,22,.1));
}
/* Overlay solo a sinistra: scuro dietro al testo, sfuma a trasparente a destra */
.hero__overlay--left {
  background:
    linear-gradient(90deg, rgba(20,30,22,.78) 0%, rgba(20,30,22,.55) 32%, rgba(20,30,22,.18) 58%, rgba(20,30,22,0) 82%);
}

/* Light project hero (Amenowood) */
.phero { padding-top: clamp(28px, 4vw, 44px); }
.phero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.phero h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); text-transform: uppercase; line-height: 1.0; }
.phero .subtitle { margin-top: 14px; }
.phero__media { border-radius: var(--radius-lg); min-height: clamp(300px, 38vw, 440px); }
@media (max-width: 860px) {
  .phero__grid { grid-template-columns: 1fr; }
  .phero__media { min-height: 260px; order: -1; }
}

/* Feature row (centered icons) */
.frow { display: grid; gap: 22px; margin-top: clamp(40px, 5vw, 56px); }
.frow--5 { grid-template-columns: repeat(5, 1fr); }
.frow--4 { grid-template-columns: repeat(4, 1fr); }
.frow__item { text-align: center; display: flex; flex-direction: column; align-items: center; }
.frow__item .icon-circle { margin: 0 0 16px; width: 64px; height: 64px; }
.frow__item h3 {
  font-family: var(--ff-head);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .92rem;
  color: var(--title);
  margin-bottom: 8px;
}
.frow__item p { font-size: .88rem; color: var(--text-soft); line-height: 1.5; }
@media (max-width: 980px) {
  .frow--5 { grid-template-columns: repeat(3, 1fr); gap: 32px 22px; }
  .frow--4 { grid-template-columns: repeat(2, 1fr); gap: 32px 22px; }
}
@media (max-width: 560px) {
  .frow--5, .frow--4 { grid-template-columns: repeat(2, 1fr); }
}

/* Numbered steps with connecting line */
.numsteps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin: 44px 0 0;
  padding: 0;
}
.numsteps::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 9%;
  right: 9%;
  height: 2px;
  background: var(--line-strong);
}
.numstep { position: relative; }
.numstep__n {
  position: relative;
  z-index: 1;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--title);
  color: #fff;
  font-family: var(--ff-head);
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.numstep h3 { font-family: var(--ff-head); color: var(--title); font-size: 1.05rem; margin-bottom: 6px; }
.numstep p { font-size: .9rem; color: var(--text-soft); line-height: 1.5; }
@media (max-width: 780px) {
  .numsteps { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .numsteps::before { display: none; }
}
@media (max-width: 420px) { .numsteps { grid-template-columns: 1fr; } }

/* Value columns with bullet lists + image */
.vcols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 32px; }
.vcol { display: flex; flex-direction: column; }
.vcol .icon-circle { width: 48px; height: 48px; margin-bottom: 12px; }
.vcol h3 {
  font-family: var(--ff-head);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .86rem;
  color: var(--title);
  margin-bottom: 12px;
}
.vcol ul { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 7px; }
.vcol li { position: relative; padding-left: 16px; font-size: .9rem; color: var(--text-soft); }
.vcol li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--subtitle); }
.vcol .ph { border-radius: var(--radius-sm); aspect-ratio: 4 / 3; margin-top: auto; }
.vcol .vimg { border-radius: var(--radius-sm); aspect-ratio: 4 / 3; margin-top: auto; overflow: hidden; background: var(--surface-soft); }
.vcol .vimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 880px) { .vcols { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .vcols { grid-template-columns: 1fr; } }

/* Two-column: value grid + side note (Amenowood / Prodebosco ESG) */
.value-aside { display: grid; grid-template-columns: 2fr 1fr; gap: clamp(32px, 4vw, 56px); align-items: start; }
@media (max-width: 980px) { .value-aside { grid-template-columns: 1fr; } }
.sidenote h2 { font-size: clamp(1.3rem, 2.6vw, 1.8rem); text-transform: uppercase; }
.sidenote p { color: var(--text-soft); margin-top: 16px; }
.sidenote strong { color: var(--title); }

/* Two images side by side (Prodebosco trasformazione) */
.da-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.da-imgs .ph { aspect-ratio: 1; border-radius: var(--radius-sm); }

/* Before / after compare slider (Prodebosco trasformazione) */
.ba {
  position: relative;
  aspect-ratio: 1046 / 713;
  border-radius: var(--radius-lg);
  overflow: hidden;
  user-select: none;
  background: var(--surface-soft);
  touch-action: pan-y;
}
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ba__img--before { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.ba__tag {
  position: absolute; top: 14px; z-index: 3;
  font-family: var(--ff-head); font-size: .68rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: #fff;
  background: rgba(20, 32, 22, .52);
  padding: 6px 13px; border-radius: 999px; pointer-events: none;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.ba__tag--before { left: 14px; }
.ba__tag--after { right: 14px; }
.ba__divider {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 50%);
  width: 2px; background: #fff; transform: translateX(-50%);
  z-index: 4; pointer-events: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, .07);
}
.ba__handle {
  position: absolute; top: 50%; left: var(--pos, 50%);
  transform: translate(-50%, -50%); z-index: 5;
  width: 46px; height: 46px; border-radius: 50%;
  background: #fff; color: var(--deep);
  display: grid; place-items: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .28); pointer-events: none;
}
.ba__handle svg { width: 22px; height: 22px; }
.ba__range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  -webkit-appearance: none; appearance: none; background: transparent;
  cursor: ew-resize; z-index: 6;
}
.ba__range:focus-visible { outline: 3px solid var(--title); outline-offset: 3px; }
.ba__range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 46px; height: 100%; background: transparent; cursor: ew-resize; }
.ba__range::-moz-range-thumb { width: 46px; height: 100%; border: 0; background: transparent; cursor: ew-resize; }
.ba__range::-moz-range-track { background: transparent; }

/* Flow line */
.flowline {
  margin-top: 40px;
  text-align: center;
  font-family: var(--ff-head);
  font-weight: 600;
  color: var(--text);
  font-size: clamp(.95rem, 2vw, 1.15rem);
  line-height: 1.9;
}
.flowline .accent { color: var(--subtitle); }
.flowline .arrow { color: var(--subtitle); margin: 0 4px; }

/* ESG box */
.esg-box { background: #F3F3E6; color: var(--text); border-radius: var(--radius); padding: 28px; overflow: hidden; }
.esg-box h3 { color: var(--title); font-family: var(--ff-head); text-transform: uppercase; font-size: 1rem; letter-spacing: .04em; }
.esg-box p { color: var(--text-soft); margin: 10px 0 16px; font-size: .95rem; }
.esg-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.esg-box li { position: relative; padding-left: 18px; font-size: .92rem; color: var(--text); }
.esg-box li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--subtitle); }
.esg-box__img { display: block; width: calc(100% + 56px); max-width: none; margin: 24px -28px -28px; }

/* Role of LabVerde: intro + 4 features */
.role { display: grid; grid-template-columns: 1fr 1.7fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.role--top { align-items: start; }
.role__intro h2 { font-size: clamp(1.4rem, 2.8vw, 1.9rem); text-transform: uppercase; }
.role__intro p { color: var(--text-soft); }
.role__features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 24px; }
.role__features--divided .frow__item { border-left: 1px solid var(--line); padding-left: 20px; align-items: flex-start; text-align: left; }
.role__features--divided .frow__item:first-child { border-left: none; padding-left: 0; }
@media (max-width: 980px) {
  .role { grid-template-columns: 1fr; }
  .role__features { grid-template-columns: repeat(2, 1fr); }
  .role__features--divided .frow__item { border-left: none; padding-left: 0; }
}
@media (max-width: 480px) { .role__features { grid-template-columns: 1fr; } }

/* Partner logos */
.partners { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.partners__intro .section-head { margin-bottom: 0; }
.partners__intro p { color: var(--text-soft); }
.logos-group + .logos-group { margin-top: 26px; }
.logos-group h4 { font-family: var(--ff-head); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--subtitle); margin-bottom: 14px; }
.logos { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(22px, 2.4vw, 40px); }
.logo-img {
  display: inline-flex;
  align-items: center;
  margin: 0;
  border: none;
  background: none;
  border-radius: 0;
  padding: 0;
}
.logo-img img { width: auto; height: 56px; max-width: 180px; object-fit: contain; display: block; }
.logos--one .logo-img img { height: 108px; max-width: 240px; }
.logo-ph {
  aspect-ratio: 5 / 2.4;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 10px;
  font-size: .72rem;
  line-height: 1.3;
  color: var(--text-soft);
  font-weight: 600;
}
@media (max-width: 880px) { .partners { grid-template-columns: 1fr; } }

/* Vertical timeline (Magnus dark band) */
.vtl { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.vtl li { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
.vtl .icon-circle { width: 56px; height: 56px; border-color: rgba(255,255,255,.4); color: #fff; background: rgba(255,255,255,.04); margin: 0; }
.vtl h3 { font-family: var(--ff-head); color: #fff; text-transform: uppercase; letter-spacing: .04em; font-size: .98rem; margin-bottom: 6px; }
.vtl p { color: var(--on-deep-soft); font-size: .92rem; max-width: 42ch; }

/* Split band (Magnus): timeline over full-bleed image, gradient from left */
.band-split { position: relative; padding: 0; overflow: hidden; }
.band-split__bg { position: absolute; inset: 0; z-index: 0; }
.band-split__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.band-split__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg,
    var(--deep) 0%,
    var(--deep) 34%,
    rgba(35,63,44,.86) 50%,
    rgba(35,63,44,.40) 72%,
    rgba(35,63,44,.25) 100%);
}
.band-split__copy { padding: clamp(44px, 6vw, 80px) clamp(20px, 5vw, 56px); position: relative; z-index: 2; max-width: 620px; }
@media (max-width: 860px) {
  .band-split__bg::after { background: linear-gradient(180deg, var(--deep) 0%, var(--deep) 30%, rgba(35,63,44,.78) 60%, rgba(35,63,44,.55) 100%); }
  .band-split__copy { max-width: none; }
}

/* Alternating image+text rows (Magnus) */
.imgrow { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.imgrow__media { min-height: 400px; position: relative; overflow: hidden; }
.imgrow__media.ph { border-radius: 0; border: none; }
.imgrow__copy { padding: clamp(40px, 6vw, 84px) clamp(20px, 6vw, 88px); display: flex; flex-direction: column; justify-content: center; }
.imgrow__copy .icon-circle { width: 52px; height: 52px; margin-bottom: 18px; }
.imgrow h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.imgrow p { color: var(--text-soft); margin-top: 14px; max-width: 46ch; }
.imgrow--rev .imgrow__media { order: 2; }
@media (max-width: 860px) {
  .imgrow { grid-template-columns: 1fr; }
  .imgrow--rev .imgrow__media { order: 0; }
  .imgrow__media { min-height: 260px; }
}

/* External link + CTA stack */
.cta__stack { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.ext-link { display: inline-flex; align-items: center; gap: 8px; color: var(--on-deep); font-weight: 600; text-decoration: none; font-size: .95rem; }
.ext-link svg { width: 14px; height: 14px; }
.ext-link:hover { color: #fff; text-decoration: underline; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--deep-2);
  color: var(--on-deep-soft);
  padding-block: 64px 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.site-footer .brand__name,
.site-footer h4 { color: var(--on-deep); }
.site-footer .brand__tag { color: var(--on-deep-soft); }
.footer-blurb { color: var(--on-deep-soft); margin-top: 18px; max-width: 38ch; }
.footer-col h4 {
  font-family: var(--ff-head);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-col a { text-decoration: none; color: var(--on-deep-soft); font-size: .96rem; }
.footer-col a:hover { color: var(--on-deep); }
/* Dicitura di finanziamento PNRR (logo su fondo bianco: va tenuto su pannello chiaro) */
.footer-funding {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  gap: 20px 32px;
  flex-wrap: wrap;
}
.footer-funding__logo {
  width: min(100%, 420px);
  height: auto;
  background: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
}
.footer-funding__text {
  margin: 0;
  display: grid;
  gap: 4px;
  font-size: .85rem;
  line-height: 1.5;
  color: var(--on-deep-soft);
}
.footer-funding__text strong { color: var(--on-deep); font-weight: 600; }
.footer-bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .85rem;
  color: var(--on-deep-soft);
}

/* ============================================================
   Reveal on scroll
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.22,.61,.36,1), transform .8s cubic-bezier(.22,.61,.36,1);
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform;
}
/* Varianti direzionali (classe o attributo data-reveal) */
.reveal--left,  [data-reveal="left"]  { transform: translateX(-44px); }
.reveal--right, [data-reveal="right"] { transform: translateX(44px); }
.reveal--scale, [data-reveal="scale"] { transform: scale(.94); }
.reveal--up,    [data-reveal="up"]    { transform: translateY(46px); }

.reveal.is-visible { opacity: 1; transform: none; }
html.no-anim .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  body { font-size: 17px; }
  .nav__links {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--header-bg);
    border-bottom: 1px solid var(--line);
    padding: 16px clamp(20px,5vw,56px) 26px;
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .nav__links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links a { padding: 14px 4px; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .nav__links a::after { display: none; }
  .nav__links .nav__cta { margin: 14px 0 0; }
  .nav__links .nav__cta .btn { width: 100%; justify-content: center; }
  .nav__toggle { display: inline-flex; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .brand__tag { display: none; }
}

/* ===================== Legal / footer links ===================== */
.footer-legal { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer-legal a,
.footer-legal .footer-cookie-btn {
  color: var(--on-deep-soft);
  text-decoration: none;
  font-size: .85rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}
.footer-legal a:hover,
.footer-legal .footer-cookie-btn:hover { color: var(--on-deep); text-decoration: underline; }

/* ===================== Legal pages (privacy / cookie) ===================== */
.legal-section { padding: 64px 0 80px; }
.legal-doc { max-width: 820px; margin: 0 auto; }
.legal-doc h1 { font-size: clamp(2rem, 4.4vw, 2.8rem); color: var(--title); line-height: 1.15; }
.legal-doc h2 {
  font-family: var(--ff-head);
  font-size: 1.3rem;
  color: var(--title);
  margin: 40px 0 12px;
  padding-top: 8px;
}
.legal-doc h3 { font-family: var(--ff-head); font-size: 1.05rem; color: var(--subtitle); margin: 24px 0 8px; }
.legal-doc p, .legal-doc li { color: var(--text); line-height: 1.7; font-size: 1rem; }
.legal-doc p { margin: 0 0 14px; }
.legal-doc ul { margin: 0 0 18px; padding-left: 22px; }
.legal-doc li { margin-bottom: 8px; }
.legal-doc a { color: var(--title); font-weight: 600; }
.legal-updated { font-size: .9rem; color: var(--subtitle); font-weight: 600; margin-bottom: 8px; }
.legal-doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 22px;
  font-size: .92rem;
}
.legal-doc th, .legal-doc td {
  text-align: left;
  padding: 11px 12px;
  border: 1px solid var(--line);
  vertical-align: top;
}
.legal-doc th { background: var(--surface-soft); color: var(--title); font-family: var(--ff-head); }
.legal-callout {
  background: var(--surface-soft);
  border-left: 4px solid var(--subtitle);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin: 8px 0 22px;
}
.legal-callout p:last-child { margin-bottom: 0; }

/* ===================== Cookie banner / CMP ===================== */
#lv-cookie * { box-sizing: border-box; }
.lv-cookie__bar {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translate(-50%, 140%);
  width: min(960px, calc(100% - 32px));
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px -18px rgba(14,36,23,.45);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  z-index: 1000;
  opacity: 0;
  transition: transform .35s cubic-bezier(.2,.7,.3,1), opacity .35s ease;
}
.lv-cookie__bar.is-visible { transform: translate(-50%, 0); opacity: 1; }
.lv-cookie__text { flex: 1 1 360px; }
.lv-cookie__text strong { font-family: var(--ff-head); color: var(--title); font-size: 1.05rem; display: block; margin-bottom: 4px; }
.lv-cookie__text p { margin: 0; font-size: .92rem; line-height: 1.55; color: var(--text-soft); }
.lv-cookie__text a { color: var(--title); font-weight: 600; }
.lv-cookie__actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.lv-cookie__btn {
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: .9rem;
  border-radius: var(--radius-sm);
  padding: 11px 18px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.lv-cookie__btn--primary { background: var(--btn); color: #0E2417; }
.lv-cookie__btn--primary:hover { background: #4f9460; transform: translateY(-1px); }
.lv-cookie__btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--title); }
.lv-cookie__btn--ghost:hover { border-color: var(--title); }

.lv-cookie__overlay {
  position: fixed;
  inset: 0;
  background: rgba(14,36,23,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1001;
  opacity: 0;
  transition: opacity .25s ease;
}
.lv-cookie__overlay.is-open { opacity: 1; }
.lv-cookie__overlay[hidden] { display: none; }
.lv-cookie__panel {
  background: #fff;
  border-radius: var(--radius);
  max-width: 560px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 30px 30px 26px;
  position: relative;
  box-shadow: 0 24px 60px -20px rgba(14,36,23,.5);
}
.lv-cookie__close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--subtitle);
  cursor: pointer;
}
.lv-cookie__panel h2 { font-family: var(--ff-head); color: var(--title); font-size: 1.4rem; margin: 0 0 8px; }
.lv-cookie__lead { font-size: .92rem; color: var(--text-soft); line-height: 1.55; margin: 0 0 18px; }
.lv-cookie__cat { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 14px; }
.lv-cookie__cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.lv-cookie__cat-name { font-family: var(--ff-head); font-weight: 700; color: var(--title); font-size: 1rem; }
.lv-cookie__always { font-size: .82rem; font-weight: 600; color: var(--subtitle); }
.lv-cookie__cat-desc { margin: 0; font-size: .88rem; line-height: 1.5; color: var(--text-soft); }
.lv-cookie__switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: none; }
.lv-cookie__switch input { opacity: 0; width: 0; height: 0; }
.lv-cookie__slider {
  position: absolute; inset: 0; cursor: pointer;
  background: #c8d0c6; border-radius: 999px; transition: background .2s ease;
}
.lv-cookie__slider::before {
  content: ""; position: absolute; height: 20px; width: 20px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: transform .2s ease;
}
.lv-cookie__switch input:checked + .lv-cookie__slider { background: var(--btn); }
.lv-cookie__switch input:checked + .lv-cookie__slider::before { transform: translateX(20px); }
.lv-cookie__switch input:focus-visible + .lv-cookie__slider { box-shadow: 0 0 0 3px rgba(93,164,107,.4); }
.lv-cookie__panel-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 20px; }

@media (max-width: 600px) {
  .lv-cookie__bar { padding: 18px; gap: 16px; }
  .lv-cookie__actions { width: 100%; }
  .lv-cookie__actions .lv-cookie__btn { flex: 1 1 auto; }
}
