/* barlow-semi-condensed-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Barlow Semi Condensed';
  font-style: normal;
  font-weight: 300;
  src: url('fonts/barlow-semi-condensed-v16-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* barlow-semi-condensed-300italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Barlow Semi Condensed';
  font-style: italic;
  font-weight: 300;
  src: url('fonts/barlow-semi-condensed-v16-latin-300italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* barlow-semi-condensed-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Barlow Semi Condensed';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/barlow-semi-condensed-v16-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* barlow-semi-condensed-italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Barlow Semi Condensed';
  font-style: italic;
  font-weight: 400;
  src: url('fonts/barlow-semi-condensed-v16-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* barlow-semi-condensed-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Barlow Semi Condensed';
  font-style: normal;
  font-weight: 500;
  src: url('fonts/barlow-semi-condensed-v16-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* barlow-semi-condensed-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Barlow Semi Condensed';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/barlow-semi-condensed-v16-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}


/* ============================================================
   NODE S.T.P. A R.L. — SITO PROVVISORIO
   style.css — Versione 2.0, Aprile 2026
   ============================================================ */


/* ============================================================
   VARIABILI DI BRAND
   Fonte: Brand Guidelines NODE
   ============================================================ */
:root {
  /* Colori */
  --color-dark:       #3c3c3b;   /* Grigio scuro primario */
  --color-mid:        #6b777a;   /* Grigio-blu secondario */
  --color-bg:         #f2f1ed;   /* Sfondo caldo (off-white) */
  --color-white:      #ffffff;
  --color-rule:       rgba(60, 60, 59, 0.12);
  --color-rule-mid:   rgba(60, 60, 59, 0.25);
  --color-dark-bg-rule: rgba(255, 255, 255, 0.12);
  --color-dark-bg-rule-mid: rgba(255, 255, 255, 0.25);

  /* Tipografia */
  --font:             'Barlow Semi Condensed', sans-serif;

  /* Spaziature */
  --space-xs:         0.375rem;
  --space-sm:         0.75rem;
  --space-md:         1.5rem;
  --space-lg:         3rem;
  --space-xl:         4rem;
  --space-xxl:        7rem;

  /* Layout */
  --max-width:        1160px;
  --gutter:           clamp(1.25rem, 4vw, 3rem);
  --section-pad:      clamp(2.5rem, 5.5vw, 5rem);

  /* Transizioni */
  --ease:             cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition:       0.28s var(--ease);
  --transition-slow:  0.55s var(--ease);

  /* Raggi */
  --radius-sm:        3px;
  --radius:           5px;

  /* Ombra */
  --shadow-form:      0 2px 20px rgba(0,0,0,0.08);
}


/* ============================================================
   RESET E BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 64px; /* Compensazione nav sticky (altezza: 64px) */
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(1rem, 1.1vw + 0.4rem, 1.125rem);
  line-height: 1.65;
  color: var(--color-dark);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity var(--transition);
}
a:hover { opacity: 0.65; }
a:focus-visible {
  outline: 2px solid var(--color-dark);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

ul, ol { list-style: none; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

textarea {
  resize: vertical;
  min-height: 110px;
}

/* Honeypot */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}


/* ============================================================
   COMPONENTI TIPOGRAFICI
   ============================================================ */

/* Titoli di sezione */
.section-title {
  font-size: clamp(2rem, 3.5vw + 0.8rem, 3.25rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
}

.section-text p {
  max-width: 68ch;
  margin-bottom: var(--space-md);
  color: inherit;
}
.section-text p:last-child { margin-bottom: 0; }

.subsection-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-mid);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-rule);
}

/* Sezione --dark: colori invertiti */
.section--dark .subsection-label {
  color: rgba(255,255,255,0.5);
  border-bottom-color: var(--color-dark-bg-rule);
}


/* ============================================================
   NAVIGAZIONE STICKY
   ============================================================ */
#site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(242, 241, 237, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-rule);
  transform: translateY(-100%);
  transition: transform var(--transition-slow);
  height: 64px;
}

#site-nav.nav-visible {
  transform: translateY(0);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 64px;
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-logo {
  text-decoration: none;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.nav-logo img {
  height: 28px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-left: auto;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--color-mid);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--color-dark); }

.nav-links .nav-cta {
  font-weight: 600;
  color: var(--color-dark);
  border: 1.5px solid var(--color-dark);
  padding: 0.4rem 1rem;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}
.nav-links .nav-cta:hover {
  background: var(--color-dark);
  color: var(--color-bg);
  opacity: 1;
}

/* Toggle mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--color-dark);
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Menu mobile */
.nav-mobile {
  border-top: 1px solid var(--color-rule);
  background: rgba(242, 241, 237, 0.98);
  padding: var(--space-md) var(--gutter);
}
.nav-mobile ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  list-style: none;
}
.nav-mobile a {
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--color-dark);
  display: block;
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--color-rule);
}


/* ============================================================
   PULSANTI
   ============================================================ */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  padding: 0.8rem 1.75rem;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  line-height: 1;
}

.btn-primary {
  background: var(--color-dark);
  color: var(--color-bg);
  border: 1.5px solid var(--color-dark);
}
.btn-primary:hover {
  background: var(--color-mid);
  border-color: var(--color-mid);
  color: var(--color-white);
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(60,60,59,0.18);
}

.btn-secondary {
  background: transparent;
  color: var(--color-dark);
  border: 1.5px solid var(--color-rule-mid);
}
.btn-secondary:hover {
  border-color: var(--color-dark);
  opacity: 1;
  transform: translateY(-1px);
}

/* Versione su sfondo scuro */
.section--dark .btn-primary {
  background: var(--color-bg);
  color: var(--color-dark);
  border-color: var(--color-bg);
}
.section--dark .btn-primary:hover {
  background: var(--color-white);
  border-color: var(--color-white);
}


/* ============================================================
   SEZIONI — STRUTTURA BASE
   ============================================================ */
.section {
  padding: var(--section-pad) var(--gutter);
  background: var(--color-bg);
  color: var(--color-dark);
}

.section--dark {
  background: var(--color-dark);
  color: var(--color-bg);
}

.section--mid {
  background: var(--color-mid);
  color: var(--color-white);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0 var(--space-xl);
  align-items: start;
}

/* Numero di sezione */
.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--color-mid);
  padding-top: 0.6rem;
  text-transform: uppercase;
  opacity: 0.55;
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  height: fit-content;
}
.section--dark .section-label {
  color: rgba(255,255,255,0.4);
}
.section--mid .section-label {
  color: rgba(255,255,255,0.5);
}

.section-body {
  min-width: 0;
}

/* Sottosezioni */
.subsection {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-dark-bg-rule);
}
.subsection:first-child {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}

/* Sezione light: regola di separazione */
.section:not(.section--dark):not(.section--mid) .subsection {
  border-top-color: var(--color-rule);
}


/* ============================================================
   S1 — HERO
   ============================================================ */
#hero {
  min-height: 100vh;      /* fallback Safari < 15.4 */
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3.5rem, 7vw, 6rem) var(--gutter) clamp(2rem, 4vw, 3.5rem);
  position: relative;
  border-bottom: 1px solid var(--color-rule);
}

.hero-logo-wrap {
  /* Anima l'entrata del logo */
  animation: fadeUp 0.8s var(--ease) both;
}

.hero-logo {
  width: clamp(200px, 28vw, 340px);
  height: auto;
}

.hero-content {
  animation: fadeUp 0.8s 0.15s var(--ease) both;
  max-width: 760px;
}

.hero-intro {
  font-size: clamp(1.15rem, 1.5vw + 0.5rem, 1.45rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--color-dark);
  margin-bottom: var(--space-md);
  max-width: 65ch;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-mid);
  margin-bottom: var(--space-lg);
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
}

/* Freccia scroll */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-mid);
  text-decoration: none;
  opacity: 0.5;
  transition: opacity var(--transition);
  animation: bounce 2.5s ease-in-out 1.5s infinite;
}
.scroll-hint:hover { opacity: 0.9; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ============================================================
   S2 — IL PROBLEMA
   ============================================================ */
/* Usa struttura .section standard */


/* ============================================================
   S3 — CHI SIAMO E METODO
   ============================================================ */
.method-intro {
  font-size: 1rem;
  color: rgba(242, 241, 237, 0.75);
  margin-bottom: var(--space-lg);
  max-width: none;
}


/* ============================================================
   S4 — I RISULTATI
   ============================================================ */

/* Griglia KPI */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-bottom: var(--space-xxl);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius);
  overflow: hidden;
}

.kpi-item {
  padding: var(--space-lg) var(--space-md);
  border-right: 1px solid var(--color-rule);
  position: relative;
}
.kpi-item:last-child { border-right: none; }

.kpi-value {
  font-size: clamp(2.8rem, 4.5vw, 4.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--color-dark);
  margin-bottom: var(--space-sm);
}

.kpi-plus,
.kpi-unit {
  font-size: 0.55em;
  font-weight: 400;
  vertical-align: super;
  letter-spacing: 0;
}

.kpi-label {
  font-size: 0.825rem;
  line-height: 1.45;
  color: var(--color-mid);
  max-width: 22ch;
}

/* Referenze */
.referenze {
  border-top: 1px solid var(--color-rule);
  padding-top: var(--space-lg);
}

.referenze-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-top: var(--space-md);
}

.referenze-table th {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-mid);
  text-align: left;
  padding: var(--space-sm) var(--space-md) var(--space-sm) 0;
  border-bottom: 1px solid var(--color-rule-mid);
}
.referenze-table th.col-importo,
.referenze-table td.col-importo {
  text-align: right;
  white-space: nowrap;
}

.referenze-table td {
  padding: var(--space-md) var(--space-md) var(--space-md) 0;
  vertical-align: top;
  border-bottom: 1px solid var(--color-rule);
  line-height: 1.45;
}
.referenze-table tr:last-child td { border-bottom: none; }

.referenze-table td:first-child {
  font-weight: 500;
  max-width: 38ch;
}


/* ============================================================
   S5 — LA NOSTRA STORIA
   ============================================================ */
.section--mid .section-text p {
  color: rgba(255,255,255,0.85);
}

/* Link LinkedIn */
.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-white);
  margin-top: var(--space-lg);
  padding-bottom: 2px;
  border-bottom: 1.5px solid rgba(255,255,255,0.35);
  transition: border-color var(--transition), opacity var(--transition);
}
.linkedin-link:hover {
  border-bottom-color: rgba(255,255,255,0.85);
  opacity: 1;
}


/* ============================================================
   S6 — COLLABORA
   ============================================================ */
/* Usa struttura .section standard */


/* ============================================================
   S7 — CONTATTI
   ============================================================ */
.section-body--contact {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-xxl);
  align-items: start;
}

/* Info contatti */
.contact-info .section-title {
  margin-bottom: var(--space-md);
}

.contact-sub {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: rgba(242, 241, 237, 0.72);
  max-width: 40ch;
  margin-bottom: var(--space-xl);
}

.contact-details {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.detail-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(242, 241, 237, 0.45);
}

.contact-detail a,
.contact-detail span:not(.detail-label) {
  font-size: 0.9375rem;
  color: rgba(242, 241, 237, 0.85);
  text-decoration: none;
  line-height: 1.5;
}
.contact-detail a:hover {
  opacity: 0.7;
  color: var(--color-white);
}


/* ============================================================
   FORM DI CONTATTO
   ============================================================ */
.contact-form-wrap {
  background: var(--color-bg);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-form);
  color: var(--color-dark);
  position: relative;
}

/* Fieldset selettore tipo contatto */
.form-fieldset {
  border: none;
  margin-bottom: var(--space-lg);
}

.form-legend {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-mid);
  margin-bottom: var(--space-sm);
  display: block;
}

.contact-type-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.type-btn {
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-mid);
  background: transparent;
  border: 1.5px solid var(--color-rule-mid);
  border-radius: var(--radius);
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  line-height: 1;
}
.type-btn:hover {
  border-color: var(--color-dark);
  color: var(--color-dark);
}
.type-btn.active,
.type-btn[aria-pressed="true"] {
  background: var(--color-dark);
  border-color: var(--color-dark);
  color: var(--color-bg);
}

/* Gruppi di campi */
.form-fields-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.form-fields-group[hidden] { display: none !important; }

.form-row {
  display: flex;
  gap: var(--space-md);
}
.form-row--half > * { flex: 1; min-width: 0; }

/* Singolo campo */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-mid);
}

.field-optional {
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0.7;
}

.required {
  color: var(--color-mid);
  margin-left: 2px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-dark);
  background: var(--color-white);
  border: 1.5px solid var(--color-rule-mid);
  border-radius: var(--radius);
  padding: 0.65rem 0.875rem;
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-dark);
  box-shadow: 0 0 0 3px rgba(60, 60, 59, 0.1);
}

input[type="text"].has-error,
input[type="email"].has-error,
input[type="tel"].has-error,
textarea.has-error {
  border-color: #b34040;
}

/* File upload */
.file-upload-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

.file-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-dark);
  border: 1.5px solid var(--color-rule-mid);
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  white-space: nowrap;
}
.file-label:hover {
  border-color: var(--color-dark);
  background: rgba(60,60,59,0.04);
}

input[type="file"]:focus + .file-label {
  outline: 2px solid var(--color-dark);
  outline-offset: 2px;
}

.file-name {
  font-size: 0.825rem;
  color: var(--color-mid);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-name.has-file { color: var(--color-dark); }

.field-hint {
  font-size: 0.78rem;
  color: var(--color-mid);
  line-height: 1.4;
  margin-top: var(--space-xs);
}

.field-error {
  font-size: 0.78rem;
  color: #b34040;
  min-height: 1em;
  display: block;
}

/* Checkbox privacy */
.form-group--checkbox {
  margin-top: var(--space-sm);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--color-mid);
  cursor: pointer;
}

input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--color-dark);
  cursor: pointer;
}

.checkbox-label a { color: var(--color-dark); }

/* Footer del form */
.form-footer {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-rule);
}

/* Pulsante submit */
.btn-submit {
  align-self: flex-start;
}
.btn-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-loading svg {
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Errore generale del form */
.form-error-general {
  font-size: 0.85rem;
  color: #b34040;
  padding: var(--space-sm) var(--space-md);
  border: 1.5px solid rgba(179, 64, 64, 0.25);
  border-radius: var(--radius);
  background: rgba(179, 64, 64, 0.05);
}

/* Messaggio di successo */
.form-success[hidden] { display: none !important; }
.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--space-md);
  min-height: 280px;
  color: var(--color-dark);
}
.form-success svg { color: var(--color-mid); }
.form-success p {
  font-size: 1rem;
  line-height: 1.55;
  max-width: 36ch;
}


/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-dark);
  color: rgba(242, 241, 237, 0.5);
  padding: var(--space-lg) var(--gutter);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.footer-logo {
  filter: brightness(0) invert(1);
  opacity: 0.55;
  height: 20px;
  width: auto;
}

.footer-info {
  flex: 1;
  min-width: 0;
}
.footer-info p {
  font-size: 0.78rem;
  line-height: 1.6;
}
.footer-info a {
  color: rgba(242, 241, 237, 0.65);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-info a:hover {
  color: var(--color-bg);
  opacity: 1;
}

.footer-copy {
  flex-shrink: 0;
}
.footer-copy p {
  font-size: 0.75rem;
}


/* ============================================================
   ANIMAZIONI DI SCROLL (JavaScript-driven)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }


/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet (< 1024px) */
@media (max-width: 1023px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .kpi-item:nth-child(2) { border-right: none; }
  .kpi-item:nth-child(3) { border-top: 1px solid var(--color-rule); }

  .section-body--contact {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .contact-sub { max-width: none; }
}

/* Mobile grande (< 768px) */
@media (max-width: 767px) {
  .section-inner {
    grid-template-columns: 1fr;
  }

  .section-label {
    writing-mode: horizontal-tb;
    transform: none;
    margin-bottom: var(--space-md);
    padding-top: 0;
  }

  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .hero-inner { gap: var(--space-lg); }

  .hero-logo { width: clamp(160px, 55vw, 260px); }

  .form-row--half {
    flex-direction: column;
    gap: var(--space-md);
  }

  .kpi-grid {
    grid-template-columns: 1fr 1fr;
  }

  .referenze-table {
    font-size: 0.8125rem;
  }
  .referenze-table td:first-child { max-width: none; }

  /* Nascondi colonne Committente e Città su mobile: mantieni Commessa e Importo */
  .referenze-table th:nth-child(3),
  .referenze-table td:nth-child(3),
  .referenze-table th:nth-child(4),
  .referenze-table td:nth-child(4) {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }
}

/* Mobile piccolo (< 480px) */
@media (max-width: 479px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }
  .kpi-item {
    border-right: none;
    border-bottom: 1px solid var(--color-rule);
  }
  .kpi-item:last-child { border-bottom: none; }

  .contact-type-buttons {
    flex-direction: column;
  }
  .type-btn { width: 100%; justify-content: center; }

  .hero-cta-group {
    flex-direction: column;
    align-items: flex-start;
  }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
}


/* ============================================================
   ACCESSIBILITY — RIDUZIONE MOVIMENTO
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}




/* ============================================================
   HERO — VERSIONE V3
   Due colonne, pattern di sfondo, H1 display, immagine placeholder
   ============================================================ */

/* Pattern puntinato in CSS puro — pseudo-elemento sul section */
#hero {
  position: relative;
  overflow: hidden;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--color-mid) 1.2px, transparent 1.2px);
  background-size: 30px 30px;
  opacity: 0.065;
  pointer-events: none;
  z-index: 0;
  /* Sfuma verso il basso per non interferire con il testo */
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
}

/* Hero inner: griglia a due colonne */
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

/* Override della precedente flex-direction: column */
.hero-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* H1 display: elemento principale della gerarchia visiva */
.hero-headline {
  font-size: clamp(2.4rem, 4vw + 0.8rem, 4.25rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--color-dark);
  margin-bottom: var(--space-md);
  margin-top: var(--space-sm);
}

/* Ridefinisco .hero-logo-wrap e .hero-content per il nuovo layout */
.hero-logo-wrap {
  margin-bottom: 0; /* gestito dal gap del flex */
}

.hero-intro {
  margin-top: 0;
}

/* Colonna visuale destra */
.hero-visual {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: stretch;
}

/* ============================================================
   PLACEHOLDER IMMAGINI
   Elementi stilizzati che indicano dove inserire fotografie
   ============================================================ */
.img-placeholder {
  background: rgba(60, 60, 59, 0.06);
  border: 1.5px dashed rgba(60, 60, 59, 0.2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  transition: border-color var(--transition), background var(--transition);
  overflow: hidden;
  position: relative;
}

.img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 8px,
    rgba(60, 60, 59, 0.025) 8px,
    rgba(60, 60, 59, 0.025) 9px
  );
  pointer-events: none;
}

/* Versione hero: proporzione 4:5 verticale */
.img-placeholder--hero {
  min-height: clamp(360px, 50vw, 560px);
  aspect-ratio: 4 / 5;
}

/* Versione team: proporzione 3:2 orizzontale */
.img-placeholder--team {
  height: 100%; /* si estende fino al fondo del contenuto testuale */
  min-height: 220px;
  aspect-ratio: unset;
}

.img-placeholder-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg);
  color: var(--color-mid);
}

.img-placeholder-content svg {
  opacity: 0.45;
  flex-shrink: 0;
}

.img-ph-title {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-mid);
  margin: 0;
}

.img-ph-spec {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--color-mid);
  opacity: 0.75;
  line-height: 1.6;
  max-width: 28ch;
  margin: 0;
}

.img-ph-spec strong {
  font-weight: 600;
  opacity: 1;
  color: var(--color-dark);
}

/* Placeholder su sfondo scuro (sezione --dark) */
.section--dark .img-placeholder {
  background: rgba(242, 241, 237, 0.06);
  border-color: rgba(242, 241, 237, 0.18);
}
.section--dark .img-placeholder::before {
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 8px,
    rgba(242, 241, 237, 0.03) 8px,
    rgba(242, 241, 237, 0.03) 9px
  );
}
.section--dark .img-placeholder-content,
.section--dark .img-ph-title,
.section--dark .img-ph-spec {
  color: rgba(242, 241, 237, 0.5);
}
.section--dark .img-ph-spec strong {
  color: rgba(242, 241, 237, 0.8);
}


/* hero-rule rimosso v4 */


/* ============================================================
   S3 — CHI SIAMO: griglia testo + immagine
   ============================================================ */
.chi-siamo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: stretch; /* allinea il fondo immagine al fondo del testo */
}


/* ============================================================
   S3 — METODO: timeline verticale e hover step
   ============================================================ */
.method-steps {
  position: relative;
  list-style: none;
}

/* Linea verticale che attraversa tutti gli step */
.method-steps::before {
  content: '';
  position: absolute;
  left: 25px; /* centro della colonna step-number (52px / 2 = 26px) */
  top: var(--space-lg);
  bottom: var(--space-lg);
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(242, 241, 237, 0.12) 10%,
    rgba(242, 241, 237, 0.12) 90%,
    transparent 100%
  );
  pointer-events: none;
}

/* Step: effetto hover con accento sinistro */
.method-step {
  position: relative;
  cursor: default;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  padding-left: var(--space-sm);
  padding-right: var(--space-sm);
  margin-left: calc(-1 * var(--space-sm));
  margin-right: calc(-1 * var(--space-sm));
}

.method-step::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(242, 241, 237, 0.0);
  border-radius: 2px 0 0 2px;
  transition: background var(--transition);
}

.method-step:hover {
  background: rgba(242, 241, 237, 0.04);
}

.method-step:hover::before {
  background: rgba(242, 241, 237, 0.45);
}

/* Il numero dello step diventa più visibile sull'hover */

/* Dot sulla timeline */


/* ============================================================
   SCROLLSPY — Voce di nav attiva
   ============================================================ */
.nav-links a.nav-active {
  color: var(--color-dark);
}

.nav-links a.nav-active:not(.nav-cta) {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
}


/* ============================================================
   RESPONSIVE — AGGIORNAMENTI V3
   ============================================================ */

/* Tablet (< 1024px) */
@media (max-width: 1023px) {
  .chi-siamo-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .hero-visual {
    display: none; /* nasconde il placeholder su tablet e mobile */
  }
}

/* Mobile grande (< 768px) */
@media (max-width: 767px) {
  .hero-headline {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .wrb-header {
    flex-direction: column;
    gap: var(--space-xs);
  }

  .method-steps::before {
    display: none; /* nasconde la linea verticale su mobile */
  }
}


/* ============================================================
   PRINT
   ============================================================ */

/* ============================================================
   S2 — DONUT CHART
   ============================================================ */
.donut-block {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: var(--space-lg);
  align-items: center;
  margin-bottom: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius);
}
.donut-chart-wrap { display: flex; align-items: center; justify-content: center; }
.donut-svg { width: 155px; height: 155px; }
.donut-track { stroke: var(--color-rule); }
.donut-arc--tec {
  stroke: var(--color-dark);
  stroke-linecap: round;
  transition: stroke-dasharray 1.8s cubic-bezier(0.25,0.46,0.45,0.94);
}
.donut-arc--eco { stroke: var(--color-mid); opacity: 0.3; }
.donut-pct { font-family: var(--font); font-size: 22px; font-weight: 600; fill: var(--color-dark); letter-spacing: -0.03em; }
.donut-sub { font-family: var(--font); font-size: 9px; font-weight: 500; fill: var(--color-mid); letter-spacing: 0.08em; text-transform: uppercase; }
.donut-headline { font-size: 0.9375rem; line-height: 1.65; color: var(--color-dark); margin-bottom: var(--space-md); max-width: none; }
.donut-key { display: flex; flex-direction: column; gap: var(--space-xs); }
.donut-key-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; font-weight: 500; color: var(--color-mid); }
.donut-key-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.donut-key-item--tec .donut-key-dot { background: var(--color-dark); }
.donut-key-item--eco .donut-key-dot { background: var(--color-mid); opacity: 0.45; }

/* ============================================================
   S2 — GRIGLIA PERCHE + CALLOUT
   ============================================================ */
.perche-grid-intro { font-size: 0.9375rem; line-height: 1.65; color: var(--color-dark); max-width: none; margin-bottom: var(--space-md); }
.perche-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; background: var(--color-rule);
  border: 1px solid var(--color-rule); border-radius: var(--radius);
  overflow: hidden; margin-bottom: var(--space-lg);
}
.perche-card { background: var(--color-bg); padding: var(--space-md); transition: background var(--transition); }
.perche-card:hover { background: rgba(60,60,59,0.03); }
.perche-icon { color: var(--color-mid); opacity: 0.65; margin-bottom: var(--space-sm); }
.perche-card-title { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; color: var(--color-dark); margin-bottom: var(--space-xs); }
.perche-card-text { font-size: 0.85rem; line-height: 1.65; color: var(--color-mid); }
.perche-callout {
  padding: var(--space-md) var(--space-lg);
  border-left: 3px solid var(--color-dark);
  background: rgba(60,60,59,0.04);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.perche-callout p { font-size: 1rem; line-height: 1.65; color: var(--color-dark); max-width: none; }

/* ============================================================
   S3 — CHI SIAMO
   ============================================================ */
.chi-siamo-text { min-width: 0; }
.chi-intro { font-size: 0.9375rem; line-height: 1.65; color: rgba(242,241,237,0.8); margin-bottom: var(--space-md); max-width: none; }
.chi-tags { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-bottom: var(--space-md); }
.chi-tag {
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.04em;
  color: rgba(242,241,237,0.75); border: 1px solid rgba(242,241,237,0.2);
  border-radius: 99px; padding: 0.25rem 0.75rem;
  background: rgba(242,241,237,0.05); transition: background var(--transition), border-color var(--transition);
}
.chi-tag:hover { background: rgba(242,241,237,0.1); border-color: rgba(242,241,237,0.35); }
.stp-badge {
  display: flex; align-items: flex-start; gap: 0.65rem;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid rgba(242,241,237,0.15);
  border-radius: var(--radius); background: rgba(242,241,237,0.05);
  margin-bottom: var(--space-md); font-size: 0.85rem; line-height: 1.55; color: rgba(242,241,237,0.7);
}
.stp-badge svg { flex-shrink: 0; margin-top: 0.15rem; color: rgba(242,241,237,0.45); }
.stp-badge strong { color: rgba(242,241,237,0.9); }
.apporto-table {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: rgba(242,241,237,0.12);
  border: 1px solid rgba(242,241,237,0.12); border-radius: var(--radius);
  overflow: hidden; margin-top: var(--space-md); margin-bottom: var(--space-md);
}
.apporto-col { background: var(--color-dark); padding: var(--space-md); }
.apporto-head { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(242,241,237,0.45); margin-bottom: var(--space-sm); padding-bottom: var(--space-xs); border-bottom: 1px solid rgba(242,241,237,0.1); }
.apporto-list { list-style: none; display: flex; flex-direction: column; gap: var(--space-xs); }
.apporto-list li { font-size: 0.8125rem; line-height: 1.5; color: rgba(242,241,237,0.7); padding-left: 1rem; position: relative; }
.apporto-list li::before { content: '–'; position: absolute; left: 0; color: rgba(242,241,237,0.3); }
.apporto-conclusione { font-size: 0.875rem; line-height: 1.6; color: rgba(242,241,237,0.65); }
.apporto-conclusione strong { color: rgba(242,241,237,0.9); }

/* ============================================================
   S3 — TIMELINE ORIZZONTALE
   ============================================================ */
.method-timeline { width: 100%; }
.timeline-track { display: grid; grid-template-columns: repeat(4,1fr); position: relative; }
.timeline-track::before {
  content: ''; position: absolute; top: 1.375rem;
  left: 4.5rem; right: 4.5rem; height: 1px;
  background: linear-gradient(to right, transparent 0%, rgba(242,241,237,0.12) 8%, rgba(242,241,237,0.12) 92%, transparent 100%);
  pointer-events: none;
}
.timeline-step { padding: 0 1rem 0 0; position: relative; cursor: default; display: grid; grid-template-columns: 2.75rem 1fr; gap: 0 0.875rem; align-items: start; }
.timeline-step:last-child { padding-right: 0; }
.timeline-step:not(:last-child)::after {
  content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(to bottom, transparent 0%, rgba(242,241,237,0.1) 15%, rgba(242,241,237,0.1) 85%, transparent 100%);
}
.tl-number-wrap { padding-top: 0.15rem; }
.tl-number {
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  border: 1px solid rgba(242,241,237,0.15); display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 600; color: rgba(242,241,237,0.35);
  background: var(--color-dark); position: relative; z-index: 1;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.timeline-step:hover .tl-number { border-color: rgba(242,241,237,0.4); color: rgba(242,241,237,0.85); background: rgba(242,241,237,0.06); }
.tl-content { min-width: 0; padding-right: 0.5rem; }
.tl-title { font-size: 0.9rem; font-weight: 600; letter-spacing: -0.01em; color: var(--color-bg); margin-bottom: 0.4rem; line-height: 1.25; }
.tl-text { font-size: 0.78rem; line-height: 1.65; color: rgba(242,241,237,0.6); }

/* ============================================================
   S4 — RING CHART
   ============================================================ */
.kpi-ring-row {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; background: var(--color-rule);
  border: 1px solid var(--color-rule); border-radius: var(--radius);
  overflow: hidden; margin-bottom: var(--space-md);
}
.kpi-ring-item { background: var(--color-bg); padding: var(--space-md); display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-sm); }
.ring-wrap { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.ring-svg { width: 100px; height: 100px; }
.ring-track { fill: none; stroke: var(--color-rule); stroke-width: 8; }
.ring-fill { fill: none; stroke: var(--color-dark); stroke-width: 8; stroke-linecap: round; transition: stroke-dasharray 1.8s cubic-bezier(0.25,0.46,0.45,0.94); }
.ring-center { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.ring-pct { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.03em; color: var(--color-dark); line-height: 1; }
.ring-label { font-size: 0.8rem; font-weight: 500; color: var(--color-dark); line-height: 1.4; }
.ring-note { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-mid); }
.kpi-grid--bottom { grid-template-columns: repeat(3,1fr); margin-bottom: var(--space-xl); }
.kpi-grid--bottom .kpi-item { text-align: center; }
.kpi-grid--bottom .kpi-label { max-width: none; }

/* S4 referenze con immagine */
.col-img { width: 88px; padding-right: var(--space-sm) !important; }
.ref-img-ph {
  width: 76px; height: 52px;
  background: rgba(60,60,59,0.06); border: 1px dashed rgba(60,60,59,0.18);
  border-radius: var(--radius-sm); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  color: var(--color-mid); overflow: hidden;
}
.ref-img-ph svg { opacity: 0.3; flex-shrink: 0; }
.ref-img-ph span { font-size: 0.52rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-mid); opacity: 0.55; text-align: center; line-height: 1.3; padding: 0 3px; }
.ref-placeholder-row td { opacity: 0.5; font-style: italic; }

/* ============================================================
   S5 — STORIA
   ============================================================ */
.storia-timeline { display: flex; align-items: center; gap: var(--space-lg); margin-bottom: var(--space-sm); }
.storia-year { font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 600; letter-spacing: -0.04em; color: var(--color-white); line-height: 1; margin-bottom: 0.2rem; }
.storia-step-label { font-size: 0.78rem; color: rgba(255,255,255,0.55); line-height: 1.4; max-width: 16ch; }
.storia-step-label strong { color: rgba(255,255,255,0.85); }
.storia-line { flex: 1; display: flex; align-items: center; gap: var(--space-sm); min-width: 0; }
.storia-line-track { flex: 1; height: 1px; background: rgba(255,255,255,0.2); }
.storia-line-arrow { font-size: 1.2rem; color: rgba(255,255,255,0.35); flex-shrink: 0; }
.storia-bridge { font-size: 0.875rem; color: rgba(255,255,255,0.5); margin-bottom: var(--space-lg); font-style: italic; }
.storia-callout { border-left: 3px solid rgba(255,255,255,0.3); padding: var(--space-md) var(--space-lg); margin-bottom: var(--space-lg); background: rgba(255,255,255,0.04); border-radius: 0 var(--radius) var(--radius) 0; }
.storia-callout p { font-size: 1rem; line-height: 1.65; color: rgba(255,255,255,0.8); font-style: italic; max-width: none; }
.storia-chiusura { font-size: 0.9375rem; color: rgba(255,255,255,0.6); margin-bottom: var(--space-lg); line-height: 1.55; }

/* ============================================================
   S6 — COLLABORA
   ============================================================ */
.collabora-intro {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-dark);
  max-width: none; /* larghezza piena, coerente con la griglia sotto */
  margin-bottom: var(--space-md);
}
.collabora-intro:last-of-type { margin-bottom: var(--space-xl); }
.collabora-intro strong { font-weight: 600; color: var(--color-dark); }

/* Differenziatori: etichetta */
.diff-header {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-mid);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-rule);
}

/* Griglia differenziatori */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-rule);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: var(--space-xl);
}

/* Card: icona a sinistra del testo */
.diff-card {
  background: var(--color-bg);
  padding: var(--space-md);
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 0 var(--space-sm);
  align-items: start;
  transition: background var(--transition);
}
.diff-card:hover { background: rgba(60,60,59,0.03); }

.diff-icon {
  color: var(--color-mid);
  opacity: 0.55;
  padding-top: 0.15rem;
  flex-shrink: 0;
}
.diff-text-wrap { min-width: 0; }
.diff-title {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-dark);
  line-height: 1.25;
  margin-bottom: 0.3rem;
}
.diff-desc {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--color-mid);
}


/* Etichetta sopra le card collaboratori */
.collab-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-mid);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-rule);
}

/* CTA testo strutturato */
.collabora-cta-text { font-size: 0.9375rem; color: var(--color-dark); flex: 1; line-height: 1.6; }
.cta-headline { font-size: 1rem; font-weight: 600; color: var(--color-dark); display: block; margin-bottom: 0.3rem; }
.cta-sub { font-size: 0.875rem; color: var(--color-mid); display: block; }
.collabora-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; background: var(--color-rule);
  border: 1px solid var(--color-rule); border-radius: var(--radius);
  overflow: hidden; margin-bottom: var(--space-lg);
}
.collabora-card { background: var(--color-bg); padding: var(--space-md); transition: background var(--transition); }
.collabora-card:hover { background: rgba(60,60,59,0.03); }
.collabora-icon { color: var(--color-mid); opacity: 0.6; margin-bottom: var(--space-sm); }
.collabora-card-title { font-size: 0.9375rem; font-weight: 600; color: var(--color-dark); margin-bottom: var(--space-xs); letter-spacing: -0.01em; }
.collabora-card-text { font-size: 0.82rem; line-height: 1.55; color: var(--color-mid); }
.collabora-cta-block { display: flex; align-items: center; gap: var(--space-lg); padding: var(--space-md) var(--space-lg); border: 1px solid var(--color-rule-mid); border-radius: var(--radius); background: rgba(60,60,59,0.03); }
.collabora-cta-block p { font-size: 0.9375rem; color: var(--color-dark); flex: 1; }

/* ============================================================
   CONTATTI — LinkedIn icon
   ============================================================ */
.contact-linkedin-icon { display: inline-flex; align-items: center; color: rgba(242,241,237,0.75); text-decoration: none; transition: color var(--transition); }
.contact-linkedin-icon:hover { color: var(--color-white); opacity: 1; }

/* ============================================================
   RESPONSIVE v4
   ============================================================ */
@media (max-width: 1023px) {
  .donut-block { grid-template-columns: 1fr; }
  .perche-grid { grid-template-columns: 1fr 1fr; }
  .kpi-ring-row { grid-template-columns: 1fr 1fr 1fr; }
  .kpi-grid--bottom { grid-template-columns: 1fr 1fr 1fr; }
  .collabora-grid { grid-template-columns: 1fr 1fr; }
  .diff-grid { grid-template-columns: 1fr 1fr; }
  .apporto-table { grid-template-columns: 1fr; }
  .chi-siamo-grid { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}
@media (max-width: 767px) {
  .perche-grid { grid-template-columns: 1fr; }
  .kpi-ring-row { grid-template-columns: 1fr; }
  .diff-grid { grid-template-columns: 1fr; }
  .kpi-grid.kpi-grid--bottom { grid-template-columns: 1fr; } /* specificità (0,0,2,0) */
  .collabora-grid { grid-template-columns: 1fr; }
  .timeline-track { grid-template-columns: 1fr; }
  .timeline-track::before, .timeline-step::after { display: none; }
  .timeline-step { padding: var(--space-sm) 0; border-bottom: 1px solid rgba(242,241,237,0.1); }
  .timeline-step:last-child { border-bottom: none; }
  .storia-timeline { flex-direction: column; align-items: flex-start; gap: var(--space-md); }
  .storia-line { width: 100%; }
  .collabora-cta-block { flex-direction: column; align-items: flex-start; }
  .col-img, .referenze-table th:nth-child(1), .referenze-table td:nth-child(1) { display: none; }
}
@media (max-width: 479px) {
  .kpi-grid.kpi-grid--bottom { grid-template-columns: 1fr; } /* specificità (0,0,2,0) */
  /* Con colonna singola il border-right va azzerato su tutti gli item */
  .kpi-grid--bottom .kpi-item { border-right: none; border-bottom: 1px solid var(--color-rule); }
  .kpi-grid--bottom .kpi-item:last-child { border-bottom: none; }
}



/* ============================================================
   S6 — COLLABORA v4.1: 3 card tipologie, icon a sinistra
   ============================================================ */
.collabora-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

/* Card con layout orizzontale: icona a sinistra del testo */
.collabora-card--inline {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0 var(--space-sm);
  align-items: start;
  padding: var(--space-md);
}

.collabora-card--inline .collabora-icon {
  margin-bottom: 0;
  padding-top: 0.1rem;
}

.collabora-card-text-wrap {
  min-width: 0;
}

.collabora-card--inline .collabora-card-title {
  margin-bottom: var(--space-xs);
}

@media (max-width: 767px) {
  .collabora-grid--3 { grid-template-columns: 1fr; }
}

@media print {
  #site-nav,
  .scroll-hint,
  .hero-cta-group,
  .btn-primary,
  .btn-secondary,
  .contact-form-wrap,
  .site-footer { display: none; }

  body { font-size: 11pt; background: white; color: black; }
  .section { padding: 2cm 0; break-inside: avoid; }
  .section--dark, .section--mid { background: white; color: black; }
}


/* ============================================================
   LOGO — background sempre trasparente
   mix-blend-mode: multiply applicato solo a hero e nav
   (non al footer-logo che è già invertito su sfondo scuro)
   ============================================================ */
.hero-logo,
.nav-logo img {
  background: transparent !important;
  background-color: transparent !important;
  mix-blend-mode: multiply;
}
.footer-logo {
  background: transparent !important;
  background-color: transparent !important;
}

/* ============================================================
   SPACING — riduzione globale ~25%
   ============================================================ */



/* ── Hero: data aggiornamento (segnale freschezza AEO) ─────── */
.hero-update {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-mid);
  opacity: 0.6;
  margin-top: calc(-1 * var(--space-md));
  margin-bottom: var(--space-lg);
}

/* ============================================================
   S6 — FAQ ACCORDION
   Usa inherit/currentColor: funziona su qualsiasi sfondo
   senza override per sezione. Solo i bordi hanno un override
   per section--mid (dove --color-rule è invisibile).
   ============================================================ */

.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--color-rule);
}

.faq-item {
  border-bottom: 1px solid var(--color-rule);
}

/* Heading semantico che contiene il button */
.faq-heading {
  margin: 0;
}

/* Il trigger è un <button> full-width.
   color: inherit → prende il colore di testo della sezione padre
   (scuro su sfondo chiaro, bianco su sfondo scuro/mid). */
.faq-trigger {
  -webkit-appearance: none;
  appearance: none;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: inherit;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: opacity var(--transition);
}

.faq-trigger:hover {
  opacity: 0.65;
}

.faq-trigger:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Chevron animato: stesso colore del testo, leggermente attenuato */
.faq-chevron {
  flex-shrink: 0;
  color: currentColor;
  opacity: 0.5;
  transition: transform var(--transition), opacity var(--transition);
}

.faq-trigger[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
  opacity: 0.75;
}

.faq-trigger[aria-expanded="true"] {
  opacity: 0.72;
}

/* Pannello collassabile */
.faq-panel {
  overflow: hidden;
}

.faq-panel[hidden] {
  display: none !important;
}

.faq-panel:not([hidden]) {
  animation: faqOpen 0.28s var(--ease) both;
}

@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.faq-panel-inner {
  padding: 0 0 var(--space-lg);
  max-width: none;
}

/* opacity: 0.78 → leggermente più tenue del titolo,
   ma stesso colore ereditato dalla sezione padre */
.faq-panel-inner p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: inherit;
  opacity: 0.78;
  margin-bottom: var(--space-sm);
}

.faq-panel-inner p:last-child {
  margin-bottom: 0;
}

.faq-panel-inner strong {
  color: inherit;
  opacity: 1;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 767px) {
  .faq-trigger {
    font-size: 0.9375rem;
  }
}

/* ── Unico override necessario: bordi su sfondo --mid ────────
   var(--color-rule) = rgba(60,60,59,0.12): invisibile su grigio-blu.
   Su --dark la sezione ha già --color-dark-bg-rule per i bordi. */
.section--mid .faq-list,
.section--mid .faq-item {
  border-color: rgba(255, 255, 255, 0.18);
}

.section--dark .faq-list,
.section--dark .faq-item {
  border-color: var(--color-dark-bg-rule);
}


/* ── Hero: nota OEPV ───────────────────────────────────────── */
.oepv-sup {
  font-size: 0.6em;
  vertical-align: super;
  line-height: 0;
  color: var(--color-mid);
}
.hero-oepv-note {
  font-size: 0.72rem;
  font-style: italic;
  color: var(--color-mid);
  opacity: 0.72;
  line-height: 1.5;
  max-width: none;
  margin-top: 0.2rem;           /* incollata all'intro sopra */
  margin-bottom: var(--space-lg); /* distanza dagli stat sotto */
}
.hero-oepv-note em { font-style: italic; }

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--color-dark);
  color: rgba(242, 241, 237, 0.85);
  padding: var(--space-md) var(--gutter);
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  animation: slideUp 0.35s var(--ease) both;
}

.cookie-banner.cookie-hidden { display: none !important; }

@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.cookie-text {
  font-size: 0.875rem;
  line-height: 1.55;
  flex: 1;
  min-width: 0;
  color: rgba(242, 241, 237, 0.8);
}
.cookie-text a {
  color: rgba(242, 241, 237, 0.6);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-text a:hover { color: var(--color-bg); opacity: 1; }

.cookie-actions {
  display: flex;
  gap: var(--space-sm);
  flex-shrink: 0;
  align-items: center;
}

.cookie-btn {
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.55rem 1.4rem;
  background: var(--color-bg);
  color: var(--color-dark);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--transition), opacity var(--transition);
}
.cookie-btn:hover { background: var(--color-white); opacity: 1; }

.cookie-btn--secondary {
  background: transparent;
  color: rgba(242, 241, 237, 0.55);
  border: 1px solid rgba(242, 241, 237, 0.2);
}
.cookie-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(242, 241, 237, 0.8);
  opacity: 1;
}

@media (max-width: 479px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: var(--space-sm); }
  .cookie-actions { width: 100%; }
  .cookie-btn { align-self: flex-start; }
}


/* ── Thumbnail referenze ────────────────────────────────────── */
.ref-img {
  width: 48px;
  height: 36px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  display: block;
  cursor: pointer;
  transition: opacity var(--transition), transform var(--transition);
}
.ref-img:hover {
  opacity: 0.8;
  transform: scale(1.05);
}

/* ── Modal referenze ─────────────────────────────────────────── */
.ref-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: heroFadeIn 0.25s var(--ease) both;
}

.ref-modal[hidden] {
  display: none !important;
}

.ref-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.82);
  cursor: pointer;
}

.ref-modal-content {
  position: relative;
  z-index: 1;
  max-width: min(900px, 92vw);
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalSlideIn 0.3s var(--ease) both;
}

@keyframes modalSlideIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.ref-modal-img {
  display: block;
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.ref-modal-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 0.75rem 1.1rem;
  border-radius: 0 0 var(--radius) var(--radius);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.ref-modal-caption[hidden] {
  display: none !important;
}

.ref-modal-desc {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.4;
}

.ref-modal-meta {
  font-size: 0.72rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.03em;
}

.ref-modal-close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
  border: none;
}
.ref-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--color-white);
}
.ref-modal-close:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 3px;
}

/* ── Team slideshow ──────────────────────────────────────────── */
.team-slideshow {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 220px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #1a1a1a;
}

/* I due layer sovrapposti — nessuno dei due cambia mai transform durante la transizione */
.ts-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: opacity;
}

/* Il layer visibile ha opacity 1, quello nascosto 0 */
.ts-layer--visible {
  opacity: 1;
  z-index: 1;
}
.ts-layer--hidden {
  opacity: 0;
  z-index: 0;
  transition: opacity 0.9s ease;
}

/* Quando un layer sta entrando */
.ts-layer--fade-in {
  opacity: 1;
  z-index: 1;
  transition: opacity 0.9s ease;
}

/* Quando un layer sta uscendo */
.ts-layer--fade-out {
  opacity: 0;
  z-index: 2;
  transition: opacity 0.9s ease;
}

/* Il logo ha la sua transizione più lenta, gestita via JS con classe dedicata */
.team-slide--logo-transition {
  transition: opacity 2s var(--ease);
}

/* ── Hero slideshow ──────────────────────────────────────────── */
.hero-slideshow {
  position: relative;
  overflow: hidden;
}

.hs-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: opacity;
  border-radius: inherit;
}

.hs-layer--visible  { opacity: 1; z-index: 1; }
.hs-layer--hidden   { opacity: 0; z-index: 0; transition: opacity 0.9s ease; }
.hs-layer--fade-in  { opacity: 1; z-index: 1; transition: opacity 0.9s ease; }
.hs-layer--fade-out { opacity: 0; z-index: 2; transition: opacity 0.9s ease; }

/* Gradiente scuro dal basso */
.hs-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(20, 20, 20, 0.72) 0%,
    rgba(20, 20, 20, 0.18) 50%,
    rgba(20, 20, 20, 0) 100%
  );
  border-radius: inherit;
  z-index: 3;
  pointer-events: none;
}

/* Contenitore titoli — sopra il gradiente */
.hs-titles {
  position: absolute;
  bottom: 1.4rem;
  right: 1.4rem;
  left: 1.4rem;
  z-index: 4;
  pointer-events: none;
}

.hs-title {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  margin: 0;
  text-align: right;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.hs-title--active {
  opacity: 1;
}

.hs-title-main {
  margin: 0 0 0.25rem;
  font-size: clamp(0.75rem, 1.6vw, 0.95rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.hs-title-sub {
  margin: 0;
  font-size: clamp(0.65rem, 1.3vw, 0.78rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.3;
  letter-spacing: 0.02em;
}

/* ── Hero image ─────────────────────────────────────────────── */
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  animation: heroFadeIn 1.4s var(--ease) both;
}

@keyframes heroFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}