/* =========================================================
   Associazione CCICDAI · style.css
   "Bianco diplomatico · istituzionale con accenti geometrici africani"
   ========================================================= */

/* ---------- Fonts self-hosted (privacy: nessuna chiamata a Google Fonts) ----------
   File in /fonts, scaricati con _tools/web-test/fetch-fonts-ccicdai.mjs (subset latin + latin-ext). */

/* Libre Caslon Text 400 · latin-ext */
@font-face {
  font-family: "Libre Caslon Text";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/libre-caslon-text-400-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Libre Caslon Text 400 · latin */
@font-face {
  font-family: "Libre Caslon Text";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/libre-caslon-text-400-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
/* Libre Caslon Text 700 · latin-ext */
@font-face {
  font-family: "Libre Caslon Text";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/libre-caslon-text-700-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Libre Caslon Text 700 · latin */
@font-face {
  font-family: "Libre Caslon Text";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/libre-caslon-text-700-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
/* Libre Caslon Text 400 italic · latin-ext */
@font-face {
  font-family: "Libre Caslon Text";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/libre-caslon-text-400-italic-latin-ext.woff2")
    format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Libre Caslon Text 400 italic · latin */
@font-face {
  font-family: "Libre Caslon Text";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/libre-caslon-text-400-italic-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
/* Source Sans 3 variabile 400-700 · latin-ext */
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/source-sans-3-var-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Source Sans 3 variabile 400-700 · latin */
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/source-sans-3-var-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
/* Source Sans 3 400 italic · latin-ext */
@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-sans-3-400-italic-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Source Sans 3 400 italic · latin */
@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-sans-3-400-italic-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

/* ---------- Variables ---------- */
:root {
  /* Colori · palette "Bianco diplomatico" */
  --green-900: #143c2b; /* fasce forti: hero, footer, header su scroll, stats, .section--dark */
  --green-700: #1d5038; /* decorativi: thumb news, foto leader, bottoni outline */
  --green-500: #2c6b4b;
  --green-300: #5a8c6e;
  --orange: #b8480e; /* accento · arancione Côte d'Ivoire, contrasto AA su fondi chiari */
  --orange-300: #e89a5c; /* accento su fondo scuro */
  --orange-vivid: #d85b14; /* arancione pieno, solo uso decorativo (grafici, swatch): niente testo */
  --orange-chart: #c1804d; /* arancione chiaro, contrasto 3:1 su ivory · solo grafico settori */
  --gray-400: #89918b; /* grigio neutro, contrasto 3:1 su ivory · solo grafico settori (macro-servizi) */
  --ivory: #fcfcfa; /* fondo pagina · bianco quasi puro */
  --ivory-200: #f2f4f1; /* sezioni alternate · grigio-verde freddissimo */
  --ivory-300: #e2e7e2; /* bordi sottili / hairline */
  --ink: #1a1e1b; /* testo principale */
  --ink-muted: #586059; /* testo secondario */
  --white: #ffffff; /* schede / form */

  /* Tipografia */
  --font-display: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --font-body:
    "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;

  /* Misure */
  --maxw: 1200px;
  --maxw-narrow: 820px;
  --radius: 4px;
  --radius-lg: 10px;
  --header-h: 76px;
  --logo-zoom: 1.26; /* ritaglio circolare dei loghi: 1 = nessuno zoom, >1 taglia i margini bianchi fino all'anello esterno */

  /* Ombre */
  --shadow-sm:
    0 1px 2px rgba(20, 60, 43, 0.06), 0 2px 8px rgba(20, 60, 43, 0.05);
  --shadow-md:
    0 6px 20px rgba(20, 60, 43, 0.1), 0 2px 6px rgba(20, 60, 43, 0.06);
  --shadow-lg:
    0 24px 60px rgba(20, 60, 43, 0.18), 0 8px 24px rgba(20, 60, 43, 0.1);

  /* Easing */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}
/* Grana sottile su tutto il body */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}
input,
textarea {
  font-family: inherit;
  font-size: inherit;
}
::selection {
  background: var(--orange);
  color: var(--white);
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: 0;
}
h1 {
  font-size: clamp(2.3rem, 5vw, 4rem);
  font-weight: 400;
}
h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
}
h3 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}
p {
  margin-bottom: 1rem;
}
p:last-child {
  margin-bottom: 0;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
}
.lead {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  line-height: 1.5;
  font-weight: 400;
  color: var(--ink);
}
.lead--narrow {
  max-width: 760px;
}
.section-gap-bottom {
  margin-bottom: clamp(36px, 5vw, 52px);
}
.section--tight-top {
  padding-top: clamp(20px, 3vw, 40px);
}
.section--no-top {
  padding-top: 0;
}
.page-hero--center {
  min-height: 70vh;
  display: flex;
  align-items: center;
}
.nf-cta {
  margin-top: 24px;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}
.section {
  padding: clamp(64px, 9vw, 120px) 0;
  position: relative;
}
.section--alt {
  background: var(--ivory-200);
}
.section--dark {
  background: var(--green-900);
  color: var(--ivory);
}
.section--dark .eyebrow {
  color: var(--orange-300);
}
.section-head {
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.section-head h2 {
  margin-top: 14px;
}
.section-head p {
  margin-top: 14px;
  color: var(--ink-muted);
}
.section--dark .section-head p {
  color: rgba(252, 252, 250, 0.78);
}
.section--tight {
  padding: clamp(40px, 5vw, 64px) 0;
}
.section--tight .section-head {
  margin-bottom: clamp(24px, 3vw, 36px);
}
.section--tight .pillars {
  margin-top: clamp(28px, 4vw, 40px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.95rem 1.7rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  transition:
    transform 0.25s var(--ease-out),
    background-color 0.25s var(--ease),
    color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
  border: 1.5px solid transparent;
  will-change: transform;
}
.btn:active {
  transform: translateY(1px);
}
.btn--primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--orange-300);
  color: var(--green-900);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.btn--ghost {
  border-color: rgba(252, 252, 250, 0.5);
  color: var(--ivory);
}
.btn--ghost:hover {
  border-color: var(--ivory);
  background: rgba(252, 252, 250, 0.08);
  transform: translateY(-2px);
}
.btn--outline {
  border-color: var(--green-700);
  color: var(--green-700);
}
.btn--outline:hover {
  background: var(--green-700);
  color: var(--ivory);
  transform: translateY(-2px);
}
.btn .arrow {
  transition: transform 0.25s var(--ease-out);
}
.btn:hover .arrow {
  transform: translateX(3px);
}
.btn[disabled] {
  opacity: 0.45;
  pointer-events: none;
}

/* link con underline animato */
.link-underline {
  position: relative;
  font-weight: 600;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.link-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.link-underline:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition:
    background-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: var(--green-900);
  box-shadow: 0 2px 24px rgba(20, 60, 43, 0.28);
  border-bottom-color: rgba(252, 252, 250, 0.08);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

/* logo circolare riutilizzabile · ritaglia i margini bianchi fino all'anello esterno */
.logo-circle {
  display: block;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--white);
}
.logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(var(--logo-zoom));
  display: block;
}
.brand .logo-circle {
  width: 96px;
  height: 96px;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}
.brand-text .brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ivory);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-text .brand-sub {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange-300);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ivory);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--orange-300);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease-out);
}
.nav-links a:hover {
  color: var(--orange-300);
}
.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* language switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(252, 252, 250, 0.22);
  border-radius: 999px;
}
.lang-switch button {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(252, 252, 250, 0.65);
  padding: 5px 11px;
  border-radius: 999px;
  transition:
    background-color 0.25s var(--ease),
    color 0.25s var(--ease);
}
.lang-switch button:hover {
  color: var(--ivory);
}
.lang-switch button.active {
  background: var(--orange);
  color: var(--white);
}

/* hamburger */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ivory);
  transition:
    transform 0.3s var(--ease),
    opacity 0.3s var(--ease);
}
.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   HERO · foto a tutto schermo + contenuto sovrapposto
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--green-900);
  color: var(--ivory);
  overflow: visible; /* il logo "sfora" nella sezione sotto */
  margin-bottom: 0;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  display: block;
  animation: kenburns 26s ease-out infinite alternate;
  will-change: transform;
}
@keyframes kenburns {
  from {
    transform: scale(1.03);
  }
  to {
    transform: scale(1.13) translate(-1.2%, -1.2%);
  }
}
/* fallback finché non c'è images/abidjan-skyline.jpg */
.hero-bg.no-img {
  background:
    radial-gradient(circle at 72% 20%, rgba(216, 91, 20, 0.3), transparent 55%),
    linear-gradient(
      135deg,
      transparent 49.5%,
      rgba(90, 140, 110, 0.22) 49.5%,
      rgba(90, 140, 110, 0.22) 50.5%,
      transparent 50.5%
    ),
    linear-gradient(160deg, var(--green-700) 0%, var(--green-900) 100%);
  background-size:
    100% 100%,
    52px 52px,
    100% 100%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      102deg,
      rgba(13, 32, 21, 0.93) 0%,
      rgba(13, 32, 21, 0.66) 36%,
      rgba(13, 32, 21, 0.25) 68%,
      rgba(13, 32, 21, 0.06) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(13, 32, 21, 0.62) 0%,
      rgba(13, 32, 21, 0) 15%,
      rgba(13, 32, 21, 0) 58%,
      rgba(13, 32, 21, 0.55) 82%,
      rgba(13, 32, 21, 0.82) 100%
    );
}

.hero .container {
  position: relative;
  z-index: 2;
}
.hero-content {
  max-width: 640px;
  padding: clamp(48px, 9vh, 96px) 0;
}
.hero-content .eyebrow {
  color: var(--orange-300);
}
.hero-content h1 {
  margin: 20px 0 22px;
  color: var(--ivory);
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: 1.1;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
}
.hero-content h1 .accent {
  color: var(--orange-300);
  font-style: italic;
  display: block;
}
.hero-sub {
  font-size: 1.16rem;
  line-height: 1.6;
  color: rgba(252, 252, 250, 0.92);
  max-width: 540px;
  margin-bottom: 32px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* --- logo a disco che sfora nella sezione successiva --- */
.hero-badge {
  position: absolute;
  right: clamp(20px, 7vw, 92px);
  bottom: 0;
  transform: translateY(30%);
  z-index: 3;
  display: flex;
  flex-direction: row-reverse; /* DOM: [logo, testo] -> visivo: testo | logo */
  align-items: center;
  gap: clamp(16px, 2vw, 24px);
}
.hero-badge-text {
  text-align: right;
  max-width: 230px;
}
.hero-badge .hl-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  color: var(--ivory);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}
.hero-badge .hl-full {
  display: block;
  margin-top: 7px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(252, 252, 250, 0.72);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}
.hero-logo {
  width: clamp(220px, 23vw, 310px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--white);
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.48));
  animation: floaty 6s ease-in-out infinite;
  will-change: transform;
}
.hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(var(--logo-zoom));
  display: block;
}
@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* didascalia foto, in basso a sinistra */
.hero-photo-caption {
  position: absolute;
  left: clamp(20px, 5vw, 50px);
  bottom: 24px;
  z-index: 3;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(252, 252, 250, 0.88);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 11px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
}
.hero-photo-caption::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: var(--orange-300);
  flex-shrink: 0;
}

/* scroll cue, in basso al centro */
.scroll-cue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(252, 252, 250, 0.6);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}
.scroll-cue .line {
  width: 1px;
  height: 34px;
  background: linear-gradient(to bottom, rgba(252, 252, 250, 0.6), transparent);
  animation: scrollLine 2s var(--ease-out) infinite;
}
@keyframes scrollLine {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
  }
  51% {
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* fade-in d'ingresso (solo opacità · non tocca i transform di posizionamento) */
.hero-fade {
  opacity: 0;
  animation: heroFade 0.9s var(--ease-out) forwards;
}
.hero-fade-d {
  animation-delay: 0.65s;
}
@keyframes heroFade {
  to {
    opacity: 1;
  }
}

/* spazio extra in cima alla prima sezione, per il logo che sfora */
#chi-siamo {
  padding-top: clamp(100px, 14vw, 156px);
}

/* =========================================================
   CHI SIAMO
   ========================================================= */
.about-quote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2.05rem);
  line-height: 1.42;
  font-weight: 400;
  color: var(--ink);
  max-width: 900px;
  position: relative;
  padding-left: 30px;
}
.about-quote::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: linear-gradient(to bottom, var(--orange), var(--orange-300));
}
.about-quote em {
  color: var(--green-700);
  font-style: italic;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: clamp(44px, 6vw, 72px);
}
.pillar {
  padding-top: 24px;
  border-top: 1px solid var(--ivory-300);
}
.pillar .pillar-icon {
  width: 40px;
  height: 40px;
  color: var(--orange);
  margin-bottom: 18px;
}
.pillar .pillar-icon svg {
  width: 100%;
  height: 100%;
}
.pillar h3 {
  margin-bottom: 10px;
}
.pillar p {
  color: var(--ink-muted);
  font-size: 0.97rem;
}

/* contatori */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: clamp(48px, 7vw, 80px);
  padding: clamp(32px, 4vw, 48px);
  background: var(--green-900);
  color: var(--ivory);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    45deg,
    transparent 49.5%,
    rgba(90, 140, 110, 0.12) 49.5%,
    rgba(90, 140, 110, 0.12) 50.5%,
    transparent 50.5%
  );
  background-size: 80px 80px;
}
.stat {
  text-align: center;
  position: relative;
  z-index: 1;
}
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 600;
  color: var(--orange-300);
  line-height: 1;
}
.stat .label {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(252, 252, 250, 0.7);
  margin-top: 10px;
}

/* =========================================================
   SERVIZI
   ========================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--ivory-300);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition:
    transform 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--orange);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease-out);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::after {
  transform: scaleY(1);
}
.service-num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--orange);
  font-weight: 600;
}
.service-icon {
  width: 38px;
  height: 38px;
  color: var(--green-700);
  margin: 14px 0 18px;
}
.service-icon svg {
  width: 100%;
  height: 100%;
}
.service-card h3 {
  margin-bottom: 10px;
}
.service-card p {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* =========================================================
   SETTORI
   ========================================================= */
.sectors-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 56px;
  align-items: center;
}
.sector-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.sector-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  background: var(--white);
  border: 1px solid var(--ivory-300);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  transition:
    transform 0.25s var(--ease-out),
    background-color 0.25s var(--ease),
    color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}
.sector-tag svg {
  width: 17px;
  height: 17px;
  color: var(--orange);
  transition: color 0.25s var(--ease);
}
.sector-tag:hover {
  transform: translateY(-3px);
  background: var(--green-700);
  color: var(--ivory);
  border-color: var(--green-700);
}
.sector-tag:hover svg {
  color: var(--orange-300);
}

.donut-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.donut-wrap svg {
  width: 100%;
  max-width: 240px;
  height: auto;
}
.donut-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 18px;
  font-size: 0.82rem;
  width: 100%;
}
.donut-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-muted);
}
.donut-legend .swatch {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  flex-shrink: 0;
}
.donut-legend li:nth-child(1) .swatch {
  background: var(--green-500);
}
.donut-legend li:nth-child(2) .swatch {
  background: var(--orange-vivid);
}
.donut-legend li:nth-child(3) .swatch {
  background: var(--green-300);
}
.donut-legend li:nth-child(4) .swatch {
  background: var(--orange-chart);
}
.donut-legend li:nth-child(5) .swatch {
  background: var(--green-900);
}
.donut-legend li:nth-child(6) .swatch {
  background: var(--gray-400);
}

/* =========================================================
   GOVERNANCE
   ========================================================= */
/* --- Le persone dietro la Camera: 3 card con foto + nome in overlay --- */
.gov-leaders {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
  margin-bottom: clamp(56px, 7vw, 88px);
}
.leader-card {
  text-align: left;
}
.leader-photo {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  border-radius: 0;
  margin: 0 0 18px;
  background: var(--green-700);
  border: none;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition:
    transform 0.5s var(--ease-out),
    box-shadow 0.5s var(--ease-out);
}
.leader-card:hover .leader-photo {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.leader-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 16%;
  display: block;
  transition: transform 0.7s var(--ease-out);
}
.leader-card:hover .leader-photo img {
  transform: scale(1.05);
}
.leader-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(20, 60, 43, 0.88) 0%,
    rgba(20, 60, 43, 0.38) 30%,
    rgba(20, 60, 43, 0) 58%
  );
  pointer-events: none;
}
.leader-name {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 16px;
  z-index: 2;
  margin: 0;
  color: var(--ivory);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.6vw, 1.45rem);
  font-weight: 600;
  line-height: 1.15;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.4);
}
.leader-meta {
  padding: 0 2px;
}
.leader-meta .role {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 8px;
}
.leader-bio {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--ink-muted);
  margin: 0;
}

/* --- Consiglio e funzioni: due colonne, barretta accento --- */
.gov-board {
  border-top: 1px solid var(--ivory-300);
  padding-top: clamp(36px, 4.5vw, 56px);
}
.gov-board-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  margin-bottom: clamp(22px, 3vw, 34px);
}
.gov-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 clamp(36px, 6vw, 80px);
}
.gov-list li {
  display: block;
  position: relative;
  padding: 16px 4px 16px 18px;
  border-bottom: 1px solid var(--ivory-300);
  transition:
    background-color 0.3s var(--ease),
    padding-left 0.3s var(--ease-out);
}
.gov-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 24px;
  background: var(--orange);
  border-radius: 2px;
}
.gov-list li:hover {
  background: rgba(216, 91, 20, 0.05);
  padding-left: 24px;
}
.gov-list .gov-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 500;
  color: var(--ink);
}
.gov-list .gov-role {
  display: block;
  text-align: left;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 3px;
}
.gov-composition {
  margin-top: clamp(20px, 2.5vw, 30px);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
}

/* =========================================================
   DIVENTA SOCIO
   ========================================================= */
.member-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.member-card {
  background: var(--white);
  border: 1px solid var(--ivory-300);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  transition:
    transform 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease);
  display: flex;
  flex-direction: column;
}
.member-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.member-card--featured {
  background: var(--green-900);
  color: var(--ivory);
  border-color: var(--green-900);
  position: relative;
  overflow: hidden;
}
.member-card--featured::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    45deg,
    transparent 49.5%,
    rgba(90, 140, 110, 0.14) 49.5%,
    rgba(90, 140, 110, 0.14) 50.5%,
    transparent 50.5%
  );
  background-size: 70px 70px;
}
.member-card > * {
  position: relative;
  z-index: 1;
}
.member-badge {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 14px;
}
.member-card--featured .member-badge {
  color: var(--orange-300);
}
.member-card h3 {
  font-size: 1.7rem;
  margin-bottom: 8px;
}
.member-card .member-tagline {
  color: var(--ink-muted);
  margin-bottom: 24px;
  font-size: 0.97rem;
}
.member-card--featured .member-tagline {
  color: rgba(252, 252, 250, 0.78);
}
.member-features {
  margin-bottom: 28px;
  flex-grow: 1;
}
.member-features li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 8px 0;
  font-size: 0.95rem;
}
.member-features li svg {
  width: 18px;
  height: 18px;
  color: var(--orange);
  flex-shrink: 0;
  margin-top: 4px;
}
.member-card--featured .member-features li svg {
  color: var(--orange-300);
}
.member-card .btn {
  align-self: flex-start;
}

/* =========================================================
   CONTATTI
   ========================================================= */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

/* trappola anti-spam invisibile: fuori schermo, non display:none (bot-check) */
.form-honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* banner esito invio form: nascosto finché JS non lo attiva dopo il redirect */
.form-feedback {
  display: none;
  margin-bottom: 24px;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 0.92rem;
  line-height: 1.5;
}
.form-feedback.is-visible {
  display: block;
}
.form-feedback--ok {
  background: rgba(90, 140, 110, 0.18);
  border: 1px solid var(--green-300);
  color: var(--ivory);
}
.form-feedback--error {
  background: rgba(184, 72, 14, 0.18);
  border: 1px solid var(--orange);
  color: var(--ivory);
}

/* form minimal: campi a sola sottolineatura, su fondo verde scuro */
.contact-form--minimal {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}
.contact-form--minimal .form-row {
  margin-bottom: 26px;
}
.contact-form--minimal .form-label {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(252, 252, 250, 0.72);
  margin-bottom: 2px;
}
.contact-form--minimal input,
.contact-form--minimal textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(252, 252, 250, 0.22);
  border-radius: 0;
  padding: 11px 2px;
  color: var(--ivory);
  font-size: 1rem;
}
.contact-form--minimal input::placeholder,
.contact-form--minimal textarea::placeholder {
  color: rgba(252, 252, 250, 0.55);
}
.contact-form--minimal input:focus,
.contact-form--minimal textarea:focus {
  outline: none;
  border-bottom-color: var(--orange);
  box-shadow: none;
}
.contact-form--minimal input:focus-visible,
.contact-form--minimal textarea:focus-visible {
  outline: 2px solid var(--orange-300);
  outline-offset: 3px;
}
.contact-form--minimal textarea {
  min-height: 92px;
  resize: vertical;
}
.contact-form--minimal .btn {
  width: auto;
  justify-content: flex-start;
  margin-top: 12px;
}

/* colonna info a destra */
.contact-aside .contact-block {
  margin-bottom: 30px;
}
.contact-aside .ci-label {
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange-300);
  font-weight: 700;
  margin-bottom: 14px;
}
.contact-aside .ci-line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(252, 252, 250, 0.9);
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 12px;
  text-decoration: none;
}
.contact-aside a.ci-line:hover {
  color: var(--orange-300);
}
.contact-aside a.ci-line:hover svg {
  color: var(--orange);
}
.contact-aside .ci-line svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--orange-300);
}
.contact-quote {
  margin-top: 28px;
  padding: 6px 0 6px 20px;
  border-left: 3px solid var(--orange);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.08rem;
  line-height: 1.5;
  color: rgba(252, 252, 250, 0.85);
}

/* =========================================================
   PROGETTI
   ========================================================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.project-card {
  background: var(--white);
  border: 1px solid var(--ivory-300);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.project-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--green-700);
  overflow: hidden;
}
.project-cover--desk {
  background-image: url("../images/projects/sportello-bilaterale-cover.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.project-cover--observatory {
  background-image: url("../images/projects/observatory-cover.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.project-cover--missions {
  background-image: url("../images/projects/missioni-b2b-cover.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.project-cover--showroom {
  background-image: url("../images/projects/showroom-cover.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.project-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(
      135deg,
      transparent 49.5%,
      rgba(90, 140, 110, 0.3) 49.5%,
      rgba(90, 140, 110, 0.3) 50.5%,
      transparent 50.5%
    ),
    radial-gradient(circle at 75% 25%, rgba(216, 91, 20, 0.3), transparent 62%);
  background-size:
    44px 44px,
    100% 100%;
}
.project-cover--desk::after {
  background-image: linear-gradient(
    180deg,
    rgba(10, 40, 28, 0.08),
    rgba(10, 40, 28, 0.58)
  );
  background-size: 100% 100%;
  background-repeat: no-repeat;
}
.project-cover--observatory::after,
.project-cover--missions::after,
.project-cover--showroom::after {
  background-image: linear-gradient(
    180deg,
    rgba(10, 40, 28, 0.08),
    rgba(10, 40, 28, 0.58)
  );
  background-size: 100% 100%;
  background-repeat: no-repeat;
}
.project-cover .project-tag {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 1;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ivory);
  background: rgba(20, 60, 43, 0.78);
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.project-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.project-body h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}
.project-body p {
  color: var(--ink-muted);
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 14px;
  flex-grow: 1;
}
.member-badge--active {
  color: var(--green-700);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--green-900);
  color: rgba(252, 252, 250, 0.75);
  padding: clamp(56px, 7vw, 80px) 0 28px;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    45deg,
    transparent 49.7%,
    rgba(90, 140, 110, 0.08) 49.7%,
    rgba(90, 140, 110, 0.08) 50.3%,
    transparent 50.3%
  );
  background-size: 90px 90px;
}
.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(252, 252, 250, 0.12);
}
.footer-brand .logo-circle {
  width: 132px;
  height: 132px;
  margin-bottom: 18px;
}
.footer-brand .fb-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ivory);
  margin-bottom: 10px;
  line-height: 1.25;
}
.footer-brand p {
  font-size: 0.92rem;
  max-width: 320px;
}
.footer-col h3 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange-300);
  margin-bottom: 18px;
  font-weight: 700;
}
.footer-col ul li {
  margin-bottom: 11px;
}
.footer-col ul li a {
  font-size: 0.94rem;
  transition: color 0.2s var(--ease);
}
.footer-col ul li a:hover {
  color: var(--orange-300);
}
/* social con mini-logo a colori */
.footer-social ul li a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.footer-social .soc-ic {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 4px;
  display: block;
}
.footer-bottom {
  position: relative;
  z-index: 1;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: rgba(252, 252, 250, 0.5);
}
.footer-legal {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-legal a {
  transition: color 0.2s var(--ease);
}
.footer-legal a:hover {
  color: var(--orange-300);
}

/* =========================================================
   PAGINE LEGALI · privacy, cookie policy
   ========================================================= */
.legal {
  max-width: var(--maxw-narrow);
  margin: 0 auto;
}
.legal-updated {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin-bottom: 40px;
}
.legal-section {
  margin-bottom: 36px;
}
.legal-section h2 {
  font-size: 1.3rem;
  margin-bottom: 14px;
  color: var(--green-900);
}
.legal-section p {
  margin-bottom: 14px;
}
.legal-section p:last-child {
  margin-bottom: 0;
}
.legal-list {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 14px;
}
.legal-list li {
  margin-bottom: 8px;
}
.legal a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal a:hover {
  color: var(--green-900);
}

/* consenso privacy nel form contatti */
.contact-form--minimal .form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 26px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(252, 252, 250, 0.75);
}
.contact-form--minimal .form-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--orange);
}
.contact-form--minimal .form-consent a {
  color: var(--orange-300);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* =========================================================
   ACCESSIBILITÀ · sr-only, skip link
   ========================================================= */
.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;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 10000;
  background: var(--green-900);
  color: var(--ivory);
  padding: 12px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 12px;
}

/* =========================================================
   ANIMAZIONI · reveal
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 {
  transition-delay: 0.08s;
}
.reveal-delay-2 {
  transition-delay: 0.16s;
}
.reveal-delay-3 {
  transition-delay: 0.24s;
}
.reveal-delay-4 {
  transition-delay: 0.32s;
}
.reveal-delay-5 {
  transition-delay: 0.4s;
}

/* hero load animation */
.hero-anim {
  opacity: 0;
  transform: translateY(24px);
  animation: heroIn 0.85s var(--ease-out) forwards;
}
.hero-anim-1 {
  animation-delay: 0.15s;
}
.hero-anim-2 {
  animation-delay: 0.3s;
}
.hero-anim-3 {
  animation-delay: 0.45s;
}
.hero-anim-4 {
  animation-delay: 0.6s;
}
@keyframes heroIn {
  to {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  /* tra 769px e 1024px il menu è ancora in linea (niente hamburger):
     lo switch lingua si nasconde qui per mancanza di spazio, torna
     visibile sotto i 768px (vedi blocco dedicato) dentro l'header compatto */
  .lang-switch {
    display: none;
  }
  /* hero: testo in alto, logo centrato in basso che sfora */
  .hero {
    align-items: flex-start;
  }
  .hero-content {
    max-width: 100%;
    padding-top: calc(var(--header-h) + clamp(36px, 7vh, 72px));
    padding-bottom: clamp(150px, 30vw, 220px);
  }
  .hero-overlay {
    background: linear-gradient(
      to bottom,
      rgba(13, 32, 21, 0.62) 0%,
      rgba(13, 32, 21, 0.18) 20%,
      rgba(13, 32, 21, 0.22) 52%,
      rgba(13, 32, 21, 0.78) 100%
    );
  }
  .hero-badge {
    right: 50%;
    bottom: 0;
    transform: translate(50%, 28%);
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
  }
  .hero-badge-text {
    text-align: center;
    max-width: 300px;
  }
  .hero-badge .hl-name {
    color: var(--green-900);
    text-shadow: none;
  }
  .hero-badge .hl-full {
    color: rgba(13, 32, 21, 0.75);
    text-shadow: none;
  }
  .hero-logo {
    width: clamp(180px, 44vw, 240px);
  }
  .hero-photo-caption,
  .scroll-cue {
    display: none;
  }
  #chi-siamo {
    padding-top: clamp(120px, 30vw, 170px);
  }

  .sectors-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .donut-wrap {
    max-width: 360px;
    margin: 0 auto;
  }
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 880px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
  .gov-leaders {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
  }
  .member-cards {
    grid-template-columns: 1fr;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 16px;
  }
  :root {
    --header-h: 64px;
  }
  .site-header .container {
    gap: 10px;
  }
  .brand .logo-circle {
    width: 64px;
    height: 64px;
  }
  .brand-text .brand-name {
    font-size: 0.92rem;
  }
  .lang-switch {
    display: flex;
    gap: 0;
    padding: 2px;
  }
  .lang-switch button {
    padding: 4px 7px;
    font-size: 0.68rem;
  }
  .nav-toggle {
    display: flex;
  }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--green-900);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 0 28px;
    transform: translateY(-130%);
    visibility: hidden;
    transition:
      transform 0.4s var(--ease-out),
      visibility 0s linear 0.4s;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(252, 252, 250, 0.1);
  }
  .nav.open {
    transform: translateY(0);
    visibility: visible;
    transition:
      transform 0.4s var(--ease-out),
      visibility 0s linear 0s;
  }
  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }
  .nav-links a {
    padding: 14px 28px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(252, 252, 250, 0.07);
  }
  .nav-links a::after {
    display: none;
  }
  .pillars {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .stats {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-cta .btn {
    flex: 1;
    justify-content: center;
  }
  .hero-content {
    padding-bottom: clamp(160px, 42vw, 210px);
  }
  .hero-logo {
    width: clamp(160px, 48vw, 210px);
  }
  .gov-list {
    grid-template-columns: 1fr;
  }
  .scroll-cue {
    display: none;
  }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@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 !important;
    transform: none !important;
  }
  .hero-anim {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-fade {
    opacity: 1 !important;
  }
  .hero-bg img,
  .hero-logo {
    animation: none !important;
  }
}

/* =========================================================
   MULTI-PAGINA · nav attivo, page-hero, hub, process, faq
   ========================================================= */

/* voce di menu della pagina corrente */
.nav-links a.is-active {
  color: var(--orange-300);
}
.nav-links a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* fascia d'apertura delle pagine interne (scura: tiene leggibile l'header) */
.page-hero {
  background: var(--green-900);
  color: var(--ivory);
  padding-top: calc(var(--header-h) + clamp(48px, 8vw, 104px));
  padding-bottom: clamp(48px, 8vw, 96px);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    45deg,
    transparent 49.5%,
    rgba(90, 140, 110, 0.1) 49.5%,
    rgba(90, 140, 110, 0.1) 50.5%,
    transparent 50.5%
  );
  background-size: 80px 80px;
  pointer-events: none;
}
.page-hero .container {
  position: relative;
  z-index: 1;
}
.page-hero .eyebrow {
  color: var(--orange-300);
}
.page-hero h1 {
  color: var(--ivory);
  margin: 16px 0 14px;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
}
.page-hero-sub {
  color: rgba(252, 252, 250, 0.82);
  font-size: 1.12rem;
  line-height: 1.6;
  max-width: 640px;
}

/* griglia anteprime nella home */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.hub-card {
  background: var(--white);
  border: 1px solid var(--ivory-300);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}
.hub-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--orange);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease-out);
}
.hub-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.hub-card:hover::after {
  transform: scaleY(1);
}
.hub-card .eyebrow {
  margin-bottom: 14px;
}
.hub-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.hub-card p {
  color: var(--ink-muted);
  font-size: 0.97rem;
  margin-bottom: 20px;
  flex-grow: 1;
}
.hub-card .link-underline {
  align-self: flex-start;
}

/* prima sezione della home, sotto l'hero col logo che sfora */
.section--after-hero {
  padding-top: clamp(100px, 14vw, 156px);
}
/* Pagina Partner: avvicina l'intro al titolo e alle schede (richiesta Luca 13/07).
   Selettori composti per vincere sulle classi condivise senza toccare index.html. */
.section--after-hero.partner-intro {
  padding-top: clamp(32px, 5vw, 56px);
  padding-bottom: clamp(20px, 3vw, 32px);
}
.section.partner-grid-section {
  padding-top: 0;
}

/* CTA finale (banda scura riusabile) */
.cta-band {
  text-align: center;
}
.cta-band h2 {
  color: var(--ivory);
  margin-bottom: 14px;
}
.cta-band p {
  color: rgba(252, 252, 250, 0.8);
  max-width: 560px;
  margin: 0 auto 28px;
}

/* "Come lavoriamo" · passi numerati */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: clamp(36px, 5vw, 52px);
}
.process-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.process-step {
  padding-top: 22px;
  border-top: 1px solid var(--ivory-300);
}
.process-step .pn {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--orange);
  line-height: 1;
}
.process-step h3 {
  font-size: 1.2rem;
  margin: 12px 0 8px;
}
.process-step p {
  color: var(--ink-muted);
  font-size: 0.94rem;
}

/* paragrafi macro-settore */
.macro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: clamp(40px, 6vw, 64px);
}
.macro-item {
  padding-top: 20px;
  border-top: 1px solid var(--ivory-300);
}
.macro-item h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.macro-item p {
  color: var(--ink-muted);
  font-size: 0.94rem;
}

/* mini-FAQ */
.faq-list {
  max-width: 760px;
}
.faq-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--ivory-300);
}
.faq-item h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.faq-item p {
  color: var(--ink-muted);
  font-size: 0.96rem;
}

/* =========================================================
   NEWS · ROADMAP / TIMELINE
   ========================================================= */
.roadmap {
  position: relative;
  max-width: 940px;
}
.roadmap::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--ivory-300);
}
.roadmap-item {
  position: relative;
  padding-left: 64px;
  padding-bottom: clamp(28px, 4vw, 44px);
}
.roadmap-item:last-child {
  padding-bottom: 0;
}
.roadmap-marker {
  position: absolute;
  left: 10px;
  top: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ivory);
  border: 3px solid var(--green-300);
  z-index: 1;
  transition: transform 0.35s var(--ease-out);
}
.roadmap-item.is-done .roadmap-marker {
  background: var(--orange);
  border-color: var(--orange);
}
.roadmap-item:hover .roadmap-marker {
  transform: scale(1.18);
}
.roadmap-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  background: var(--white);
  border: 1px solid var(--ivory-300);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    transform 0.4s var(--ease-out),
    box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease);
}
.roadmap-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.roadmap-thumb {
  position: relative;
  min-height: 160px;
  background: var(--green-700);
  overflow: hidden;
}
.roadmap-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out);
}
.roadmap-card:hover .roadmap-thumb img {
  transform: scale(1.05);
}
.roadmap-body {
  padding: 24px 28px;
}
.roadmap-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.roadmap-date {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 700;
}
.roadmap-status {
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 3px 11px;
  border-radius: 999px;
}
.roadmap-item.is-done .roadmap-status {
  background: rgba(44, 107, 75, 0.12);
  color: var(--green-500);
}
.roadmap-item.is-next .roadmap-status {
  background: var(--ivory-200);
  color: var(--ink-muted);
}
.roadmap-card h3 {
  font-size: 1.32rem;
  margin-bottom: 8px;
}
.roadmap-body p {
  color: var(--ink-muted);
  font-size: 0.95rem;
  margin: 0;
}
.roadmap-address {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-muted);
}
.roadmap-address svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--orange);
}
.roadmap-subtitle {
  margin-top: 6px;
  font-size: 0.86rem;
  font-style: italic;
  color: var(--ink-muted);
}
@media (max-width: 640px) {
  .roadmap-item {
    padding-left: 50px;
  }
  .roadmap::before {
    left: 15px;
  }
  .roadmap-marker {
    left: 6px;
  }
  .roadmap-card {
    grid-template-columns: 1fr;
  }
  .roadmap-thumb {
    height: 170px;
  }
}

/* =========================================================
   MICRO-INTERAZIONI · riquadri di dettaglio
   ========================================================= */
.pillar,
.macro-item,
.process-step {
  transition:
    transform 0.35s var(--ease-out),
    border-color 0.35s var(--ease);
}
.pillar:hover,
.macro-item:hover,
.process-step:hover {
  transform: translateY(-4px);
  border-top-color: var(--orange);
}
.pillar .pillar-icon {
  transition: transform 0.4s var(--ease-out);
}
.pillar:hover .pillar-icon {
  transform: scale(1.08) rotate(-3deg);
}
.process-step .pn {
  display: inline-block;
  transition: transform 0.4s var(--ease-out);
}
.process-step:hover .pn {
  transform: translateY(-2px) scale(1.06);
}
.faq-item {
  transition: padding-left 0.3s var(--ease-out);
}
.faq-item:hover {
  padding-left: 8px;
}
.faq-item h3 {
  transition: color 0.3s var(--ease);
}
.faq-item:hover h3 {
  color: var(--orange);
}

/* =========================================================
   FLUSSI COMMERCIALI BILATERALI · due colonne
   ========================================================= */
.flows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.flow {
  padding: clamp(28px, 3.5vw, 46px) clamp(24px, 3vw, 42px);
}
.flow--out {
  background: var(--green-900);
  color: var(--ivory);
}
.flow--in {
  background: var(--ivory-200);
  color: var(--ink);
}
.flow-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.flow-mono {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1;
}
.flow--out .flow-mono {
  color: var(--orange-300);
}
.flow--in .flow-mono {
  color: var(--orange);
}
.flow-label {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}
.flow--out .flow-label {
  color: rgba(252, 252, 250, 0.7);
}
.flow--in .flow-label {
  color: var(--ink-muted);
}
.flow-list li {
  position: relative;
  padding: 13px 0 13px 16px;
  font-size: 0.98rem;
  font-weight: 500;
  transition: padding-left 0.3s var(--ease-out);
}
.flow-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: var(--orange);
  border-radius: 2px;
}
.flow--out .flow-list li {
  border-bottom: 1px solid rgba(252, 252, 250, 0.1);
}
.flow--in .flow-list li {
  border-bottom: 1px solid var(--ivory-300);
}
.flow-list li:last-child {
  border-bottom: none;
}
.flow-list li:hover {
  padding-left: 22px;
}

/* ── Partner ─────────────────────────────────────────────── */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  margin-top: clamp(32px, 4vw, 48px);
}
.partner-card {
  background: var(--ivory);
  border: 1px solid var(--ivory-300);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    box-shadow 0.25s,
    transform 0.25s;
}
.partner-card:hover {
  box-shadow: 0 8px 28px rgba(28, 61, 46, 0.1);
  transform: translateY(-3px);
}
.partner-logo {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 32px;
  border-bottom: 1px solid var(--ivory-300);
  min-height: 120px;
}
.partner-logo img {
  max-height: 80px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}
.partner-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.partner-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-900);
}
.partner-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ink-muted);
  flex: 1;
}
.partner-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--orange);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: opacity 0.2s;
  align-self: flex-start;
}
.partner-link:hover {
  opacity: 0.75;
}

/* =========================================================
   RESPONSIVE · collasso griglie definite più sopra
   Questo blocco sta in fondo di proposito: le regole base di
   .hub-grid, .process-grid/.process-grid--3, .macro-grid, .flows
   sono dichiarate più avanti nel foglio rispetto ai media query
   principali (righe ~1830 e ~1930); a parità di specificità vince
   l'ultima dichiarazione nell'ordine del file, quindi queste
   versioni responsive devono restare qui, dopo tutte loro.
   ========================================================= */
@media (max-width: 1024px) {
  .process-grid,
  .process-grid--3,
  .macro-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 768px) {
  .hub-grid,
  .process-grid,
  .process-grid--3,
  .macro-grid,
  .flows {
    grid-template-columns: 1fr;
  }
}
