/* NEXUM | landing di attesa
   Font: Ubuntu Sans (licenza Ubuntu Font Licence), ospitato sul sito.
   Colori dal manuale di marca NEXUM. */

@font-face {
  font-family: "Ubuntu Sans";
  src: url("../fonts/ubuntu-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0B1423;
  --navy-2: #111D31;
  --navy-line: rgba(255, 255, 255, 0.12);
  --ink: #0B1423;
  --text: #232D3B;
  --muted: #4A5462;
  --line: #D9DDE3;
  --line-strong: #C5CBD3;
  --light: #ECEEF1;
  --mist: #F5F6F8;
  --navy-hover: #1E2C44;
  --on-dark-soft: rgba(255, 255, 255, 0.62);
  --rule: var(--navy);
  --dot: var(--navy);
  --white: #FFFFFF;
  --error: #A8322A;

  --font: "Ubuntu Sans", "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  --wrap: 1240px;
  --gutter: 24px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 127px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.72;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; color: var(--ink); letter-spacing: -0.015em; }
h2 { text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.hero :focus-visible, .on-dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--white); }
.hero, .on-dark { --rule: rgba(255, 255, 255, 0.5); --dot: var(--white); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--white); color: var(--ink); padding: 10px 16px; text-decoration: none; transition: top 0.2s; }
.skip-link:focus { top: 12px; }

/* Etichette e titoli di sezione */
.label { display: block; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--navy); }
.on-dark .label { color: var(--on-dark-soft); }
.section { padding-block: clamp(84px, 10vw, 140px); }
.section--light { background: var(--light); }
.section--mist { background: var(--mist); }
.on-dark { background: var(--navy); color: rgba(255, 255, 255, 0.8); }
.on-dark h2, .on-dark h3 { color: var(--white); }

.section-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 28px 80px; align-items: end; margin-bottom: clamp(52px, 6vw, 84px); }
.section-head h2 { margin-top: 20px; font-size: clamp(2rem, 3.3vw, 2.9rem); line-height: 1.14; max-width: 20ch; }
.section-head > p { color: var(--muted); font-size: 1.09rem; max-width: 520px; }
.on-dark .section-head > p { color: rgba(255, 255, 255, 0.76); }

/* Pulsanti: etichetta e cella della freccia separate da un filetto.
   Al passaggio il colore si inverte con una passata da sinistra e la freccia attraversa la cella. */
.cta { position: relative; isolation: isolate; display: inline-flex; align-items: stretch; padding: 0; overflow: hidden; background: var(--cta-bg, transparent); border: 1px solid var(--cta-line); border-radius: 0; color: var(--cta-fg); font-size: 0.97rem; font-weight: 500; letter-spacing: 0.01em; line-height: 1.2; text-decoration: none; cursor: pointer; transition: color 0.5s var(--ease), border-color 0.5s var(--ease); }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--cta-fill); transform: scaleX(0); transform-origin: left; transition: transform 0.55s var(--ease); }
.cta__label { display: flex; align-items: center; padding: 18px 28px; }
.cta__icon { display: grid; place-items: center; width: 58px; border-left: 1px solid var(--cta-line); overflow: hidden; transition: border-color 0.5s var(--ease); }
.cta__icon svg, .link-arrow__icon svg { width: 16px; height: 16px; }
.cta:hover, .cta:focus-visible { color: var(--cta-fg-hover); border-color: var(--cta-line-hover); }
.cta:hover::before, .cta:focus-visible::before { transform: scaleX(1); }
.cta:hover .cta__icon, .cta:focus-visible .cta__icon { border-left-color: var(--cta-divider-hover); }
.cta:hover .cta__icon svg, .link-arrow:hover .link-arrow__icon svg { animation: arrow-pass 0.6s var(--ease); }
@keyframes arrow-pass { 0% { transform: none; opacity: 1; } 40% { transform: translateX(160%); opacity: 0; } 41% { transform: translateX(-160%); opacity: 0; } 100% { transform: none; opacity: 1; } }
.cta[disabled] { opacity: 0.6; cursor: progress; }

.cta--solid-light { --cta-bg: var(--white); --cta-fg: var(--navy); --cta-line: var(--white); --cta-fill: var(--navy); --cta-fg-hover: var(--white); --cta-line-hover: var(--white); --cta-divider-hover: rgba(255, 255, 255, 0.4); }
.cta--solid-light .cta__icon { border-left-color: rgba(11, 20, 35, 0.18); }
.cta--line-light { --cta-fg: var(--white); --cta-line: rgba(255, 255, 255, 0.45); --cta-fill: var(--white); --cta-fg-hover: var(--navy); --cta-line-hover: var(--white); --cta-divider-hover: rgba(11, 20, 35, 0.18); }
.cta--solid-dark { --cta-bg: var(--navy); --cta-fg: var(--white); --cta-line: var(--navy); --cta-fill: var(--white); --cta-fg-hover: var(--navy); --cta-line-hover: var(--navy); --cta-divider-hover: rgba(11, 20, 35, 0.25); }
.cta--solid-dark .cta__icon { border-left-color: rgba(255, 255, 255, 0.25); }
.cta--compact .cta__label { padding: 11px 18px; }
.cta--compact .cta__icon { width: 42px; }
.cta--compact .cta__icon svg { width: 14px; height: 14px; }

/* Link secondari: testo e freccia in un piccolo quadrato che si riempie */
.link-arrow { display: inline-flex; align-items: center; gap: 14px; font-weight: 500; color: inherit; text-decoration: none; }
.link-arrow__icon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; overflow: hidden; border: 1px solid currentColor; transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease); }
.link-arrow__icon svg { width: 14px; height: 14px; }
.link-arrow:hover .link-arrow__icon, .link-arrow:focus-visible .link-arrow__icon { background: var(--navy); border-color: var(--navy); color: var(--white); }
.on-dark .link-arrow:hover .link-arrow__icon, .on-dark .link-arrow:focus-visible .link-arrow__icon { background: var(--white); border-color: var(--white); color: var(--navy); }

/* Header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 60; color: var(--white); transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.site-header.is-scrolled, .nav-open .site-header, .page-legal .site-header { background: rgba(11, 20, 35, 0.97); box-shadow: 0 1px 0 var(--navy-line); }
.notice { font-size: 0.82rem; color: rgba(255, 255, 255, 0.66); border-bottom: 1px solid var(--navy-line); overflow: hidden; max-height: 40px; transition: max-height 0.35s var(--ease), opacity 0.35s var(--ease); }
.notice .wrap { display: flex; justify-content: space-between; gap: 24px; padding-block: 9px; }
.notice a { color: var(--white); text-decoration: none; }
.notice a:hover { color: var(--white); }
.is-scrolled .notice { max-height: 0; opacity: 0; border-bottom-color: transparent; }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; height: 84px; transition: height 0.35s var(--ease); }
.is-scrolled .nav-row { height: 70px; }
.brand { display: block; flex: none; }
.brand img { width: 152px; height: auto; }
.main-nav { display: flex; align-items: center; gap: 44px; }
.main-nav ul { display: flex; gap: 34px; }
.main-nav ul a { position: relative; display: block; padding-block: 6px; font-size: 0.95rem; color: rgba(255, 255, 255, 0.8); text-decoration: none; transition: color 0.25s; }
.main-nav ul a::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 5px; height: 5px; border-radius: 50%; background: var(--white); transform: translateX(-50%) scale(0); transition: transform 0.35s var(--ease); }
.main-nav ul a:hover, .main-nav ul a.is-active { color: var(--white); }
.main-nav ul a:hover::after, .main-nav ul a.is-active::after { transform: translateX(-50%) scale(1); }
.nav-toggle { display: none; width: 46px; height: 46px; align-items: center; justify-content: center; background: none; border: 1px solid var(--navy-line); border-radius: 2px; color: var(--white); cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close, .nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

/* Hero */
.hero { position: relative; display: grid; grid-template-rows: 1fr auto; min-height: max(700px, 100vh); background: var(--navy); color: var(--white); overflow: hidden; }
.hero-media { position: absolute; inset: 0 0 0 auto; width: 44%; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 14% center; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy) 0%, rgba(11, 20, 35, 0.55) 24%, rgba(11, 20, 35, 0.15) 62%, rgba(11, 20, 35, 0.35) 100%); }
.hero-inner { position: relative; z-index: 2; align-self: center; padding-top: calc(var(--header-h) + 56px); padding-bottom: 36px; }
.hero h1 { max-width: 16ch; text-wrap: balance; color: var(--white); font-size: clamp(2.8rem, 5.5vw, 4.9rem); font-weight: 450; line-height: 1.05; letter-spacing: -0.022em; }
.hero-lead { max-width: 540px; margin-top: 28px; font-size: 1.15rem; font-weight: 300; line-height: 1.65; color: rgba(255, 255, 255, 0.86); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 32px; margin-top: 40px; }

/* Asse delle quattro aree: il simbolo NEXUM diventa struttura */
.axis { position: relative; z-index: 2; padding-bottom: 52px; }
.axis-track { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.axis-track::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 1px; background: var(--rule); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease) 0.2s; }
.axis-node { position: relative; display: block; padding-top: 30px; text-decoration: none; opacity: 0; transform: translateY(8px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.axis-node::before { content: ""; position: absolute; left: 0; top: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--dot); transition: transform 0.3s var(--ease), background-color 0.3s; }
.axis-node strong { display: block; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--white); }
.axis-node span { display: block; margin-top: 6px; max-width: 26ch; font-size: 0.92rem; font-weight: 300; line-height: 1.5; color: rgba(255, 255, 255, 0.72); }
.axis-node:hover::before { transform: scale(1.35); }
.is-ready .axis-track::before { transform: scaleX(1); }
.is-ready .axis-node { opacity: 1; transform: none; }
.is-ready .axis-node:nth-child(1) { transition-delay: 0.3s; }
.is-ready .axis-node:nth-child(2) { transition-delay: 0.65s; }
.is-ready .axis-node:nth-child(3) { transition-delay: 1s; }
.is-ready .axis-node:nth-child(4) { transition-delay: 1.35s; }

/* Chi siamo */
.about { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.about h2 { margin-top: 20px; font-size: clamp(2rem, 3.3vw, 2.9rem); line-height: 1.14; max-width: 20ch; }
.about-text p { margin-top: 22px; }
.about-text p:first-of-type { margin-top: 30px; }
.about-media { position: relative; }
.about-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.motto { margin: clamp(72px, 9vw, 120px) 0 0; padding: clamp(40px, 5vw, 64px) 0; border-block: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: 24px 80px; align-items: baseline; }
.motto blockquote { margin: 0; font-size: clamp(1.6rem, 2.8vw, 2.4rem); font-weight: 300; line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); }
.values { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: clamp(56px, 6vw, 80px); }
.value { padding: 4px 28px 0; border-left: 1px solid var(--line); }
.value:first-child { padding-left: 0; border-left: 0; }
.value h3 { font-size: 1.15rem; }
.value p { margin-top: 10px; font-size: 0.95rem; color: var(--muted); line-height: 1.65; }

/* Aree */
.area { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 32px clamp(40px, 6vw, 96px); padding-block: clamp(44px, 5vw, 64px); border-top: 1px solid var(--line); }
.area:last-child { border-bottom: 1px solid var(--line); }
.area-head h3 { display: flex; align-items: center; gap: 16px; font-size: clamp(1.7rem, 2.5vw, 2.2rem); line-height: 1.1; }
.area-head h3::before { content: ""; flex: none; width: 10px; height: 10px; border: 1.5px solid var(--navy); border-radius: 50%; transition: background-color 0.3s; }
.area:hover .area-head h3::before { background: var(--navy); }
.area-media { margin-top: 28px; overflow: hidden; }
.area-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 1.2s var(--ease); }
.area:hover .area-media img { transform: scale(1.04); }
.area-claim { font-size: 1.25rem; font-weight: 400; line-height: 1.45; color: var(--ink); }
.area-body > p:not(.area-claim) { margin-top: 16px; color: var(--muted); }
.area-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin-top: 30px; font-size: 0.95rem; }
.area-list li { padding: 12px 0; border-top: 1px solid var(--line); color: var(--text); }

/* Metodo */
.process { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.process::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 1px; background: var(--rule); transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease); }
.process.is-in::before { transform: scaleX(1); }
.phase { position: relative; padding-top: 34px; }
.phase::before { content: ""; position: absolute; left: 0; top: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--dot); }
.phase h3 { font-size: 1.22rem; }
.phase p { margin-top: 12px; font-size: 0.97rem; color: var(--muted); }
.method-photo { margin: clamp(64px, 8vw, 104px) 0 0; max-width: 900px; }
.method-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.method-photo figcaption { margin-top: 14px; font-size: 0.92rem; color: var(--muted); }
.formats-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 20px 80px; align-items: end; margin-top: clamp(80px, 9vw, 120px); margin-bottom: 44px; }
.formats-head h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1.2; }
.formats-head p { color: var(--muted); }
.formats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.format { padding: 30px 28px 6px; border-left: 1px solid var(--line); }
.format:first-child { padding-left: 0; border-left: 0; }
.format-time { display: block; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--navy); }
.format h4 { margin-top: 14px; font-size: 1.12rem; }
.format p { margin-top: 10px; font-size: 0.95rem; color: var(--muted); }

/* Fascia radici */
.roots { position: relative; padding-block: clamp(110px, 14vw, 190px); color: var(--white); overflow: hidden; }
.roots-media { position: absolute; inset: 0; }
.roots-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.roots-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 20, 35, 0.94) 0%, rgba(11, 20, 35, 0.8) 45%, rgba(11, 20, 35, 0.45) 100%); }
.roots .wrap { position: relative; }
.roots h2 { margin-top: 20px; color: var(--white); font-size: clamp(2.4rem, 4.6vw, 4rem); font-weight: 400; line-height: 1.08; letter-spacing: -0.02em; }
.roots p { max-width: 560px; margin-top: 24px; font-size: 1.12rem; font-weight: 300; color: rgba(255, 255, 255, 0.82); }

/* Per chi */
.audience { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.audience-item { padding: 32px 28px 4px; border-left: 1px solid var(--line-strong); }
.audience-item:first-child { padding-left: 0; border-left: 0; }
.audience-item h3 { font-size: 1.2rem; }
.audience-item p { margin-top: 12px; font-size: 0.97rem; color: var(--muted); }

/* Il gruppo */
.org-root { display: flex; flex-direction: column; align-items: center; text-align: center; }
.org-root img { width: 210px; }
.org-root small { margin-top: 16px; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.org-stem { width: 1px; height: 60px; margin: 26px auto 0; background: var(--rule); transform: scaleY(0); transform-origin: top; transition: transform 0.6s var(--ease); }
.org-branches { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
.org-branches::before { content: ""; position: absolute; top: 0; left: calc((100% - 80px) / 6); right: calc((100% - 80px) / 6); height: 1px; background: var(--rule); transform: scaleX(0); transition: transform 0.9s var(--ease) 0.5s; }
.org-unit { position: relative; display: flex; flex-direction: column; padding-top: 56px; opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.org-unit::before { content: ""; position: absolute; top: 0; left: 50%; width: 1px; height: 34px; background: var(--rule); }
.org-unit::after { content: ""; position: absolute; top: 33px; left: calc(50% - 5px); width: 11px; height: 11px; border-radius: 50%; background: var(--dot); }
.unit-body { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 32px; border-top: 1px solid var(--navy-line); }
.unit-logo { display: flex; align-items: center; justify-content: center; height: 56px; margin-bottom: 26px; }
.unit-logo img { width: auto; max-height: 56px; }
.lockup { display: flex; align-items: center; gap: 14px; }
.lockup img { height: 21px; width: auto; }
.lockup span { padding-left: 4px; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.3em; color: var(--on-dark-soft); }
.unit-tag { display: block; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--on-dark-soft); }
.org-unit h3 { margin-top: 12px; font-size: 1.6rem; }
.org-unit p { max-width: 34ch; margin-top: 12px; font-size: 0.98rem; color: rgba(255, 255, 255, 0.76); }
.org-unit .link-arrow { margin-top: auto; padding-top: 26px; color: var(--white); font-size: 0.95rem; }
.is-in .org-stem { transform: scaleY(1); }
.is-in .org-branches::before { transform: scaleX(1); }
.is-in .org-unit { opacity: 1; transform: none; }
.is-in .org-unit:nth-child(1) { transition-delay: 1s; }
.is-in .org-unit:nth-child(2) { transition-delay: 1.15s; }
.is-in .org-unit:nth-child(3) { transition-delay: 1.3s; }
.partner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 32px 48px; align-items: center; margin-top: clamp(72px, 8vw, 104px); padding: 36px 40px; border: 1px solid var(--navy-line); }
.partner-logo { width: 96px; height: 96px; }
.partner .unit-tag { margin-bottom: 10px; }
.partner p { color: rgba(255, 255, 255, 0.72); max-width: 64ch; }
.partner .link-arrow { color: var(--white); white-space: nowrap; }

/* Persone */
.people { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.people-photo img { width: 100%; max-width: 400px; aspect-ratio: 4 / 5; object-fit: cover; }
.people h2 { margin-top: 20px; font-size: clamp(2rem, 3.3vw, 2.9rem); line-height: 1.14; max-width: 20ch; }
.person { display: flex; align-items: baseline; gap: 16px; margin-top: 30px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.person strong { font-size: 1.3rem; font-weight: 500; color: var(--ink); }
.person span { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.people-text p { margin-top: 20px; }
.people-text .link-arrow { margin-top: 30px; color: var(--navy); }

/* Contatti */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact h2 { margin-top: 20px; font-size: clamp(2rem, 3.3vw, 2.9rem); line-height: 1.14; }
.contact-info > p { margin-top: 24px; color: var(--muted); }
.contact-list { margin-top: 40px; border-top: 1px solid var(--line-strong); }
.contact-list li { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-strong); }
.contact-list span { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.contact-list a, .contact-list strong { font-weight: 500; color: var(--ink); text-decoration: none; }
.contact-list a:hover { color: var(--navy-hover); }
.form-panel { background: var(--white); padding: clamp(28px, 4vw, 48px); border: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; }
.field { display: grid; gap: 8px; min-width: 0; align-content: start; }
.field--full, .consent, .form-status, .form-actions { grid-column: 1 / -1; }
.field label { font-size: 0.9rem; font-weight: 500; color: var(--ink); }
.req { color: var(--navy); }
.field input, .field select, .field textarea { width: 100%; padding: 13px 14px; background: var(--white); border: 1px solid #BFC6CF; border-radius: 2px; font-size: 1rem; font-weight: 400; color: var(--ink); transition: border-color 0.25s, box-shadow 0.25s; }
.field textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 42px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%230B1423' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 14px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #8C95A1; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(11, 20, 35, 0.12); }
.field ::placeholder { color: #8A939E; }
.field-error { min-height: 0; font-size: 0.85rem; color: var(--error); }
.field.has-error input, .field.has-error textarea { border-color: var(--error); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-items: start; margin-top: 4px; font-size: 0.9rem; color: var(--muted); line-height: 1.55; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--navy); }
.consent a { color: var(--navy); }
.consent .field-error { grid-column: 2; }
.consent.has-error label { color: var(--error); }
.form-status { padding: 14px 16px; border-left: 3px solid var(--navy); background: #F1F3F6; font-size: 0.95rem; color: var(--ink); }
.form-status.is-error { border-left-color: var(--error); background: #FBEFEE; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 4px; }
.form-actions small { font-size: 0.85rem; color: var(--muted); }


/* Domande frequenti */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 40px clamp(40px, 7vw, 110px); align-items: start; }
.faq h2 { margin-top: 20px; font-size: clamp(2rem, 3.3vw, 2.9rem); line-height: 1.14; }
.faq-intro p { margin-top: 22px; color: var(--muted); }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-item summary { position: relative; display: block; padding: 24px 48px 24px 0; font-size: 1.12rem; font-weight: 500; line-height: 1.45; color: var(--ink); cursor: pointer; list-style: none; transition: color 0.25s; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before, .faq-item summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 16px; height: 1.5px; background: var(--navy); transition: transform 0.35s var(--ease); }
.faq-item summary::after { transform: rotate(90deg); }
.faq-item[open] summary::after { transform: rotate(0deg); }
.faq-item summary:hover { color: var(--navy-hover); }
.faq-answer { padding: 0 48px 26px 0; color: var(--muted); }
.faq-item[open] .faq-answer { animation: faq-in 0.45s var(--ease); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.section--white-panel .form-panel { background: var(--mist); border-color: var(--line); }

/* Pagina non trovata */
.not-found { max-width: 640px; }
.not-found h1 { margin-top: 18px; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1.1; }
.not-found p { margin-top: 18px; color: var(--muted); }
.not-found .cta { margin-top: 36px; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.62); font-size: 0.95rem; }
.footer-main { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 3fr); gap: 48px; padding-block: clamp(64px, 7vw, 96px); }
.footer-brand img { width: 160px; }
.footer-payoff { margin-top: 24px; font-size: 1.2rem; font-weight: 400; color: var(--white); }
.footer-brand p:last-child { margin-top: 10px; max-width: 36ch; }
.footer-title { margin-bottom: 16px; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--on-dark-soft); }
.site-footer address { line-height: 1.85; }
.site-footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; transition: color 0.25s; }
.site-footer a:hover { color: var(--white); }
.footer-links li + li { margin-top: 8px; }
.footer-bottom { border-top: 1px solid var(--navy-line); font-size: 0.85rem; }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-block: 22px; }
.footer-bottom a { color: var(--white); font-weight: 500; }

/* Torna su */
.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 50; display: grid; place-items: center; width: 46px; height: 46px; background: var(--navy); color: var(--white); border: 1px solid var(--navy-line); border-radius: 2px; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0.3s, background-color 0.3s; }
.to-top svg { width: 20px; height: 20px; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--navy-hover); }

/* Comparsa al passaggio, come nei temi WordPress */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal, .no-js .axis-node, .no-js .org-unit { opacity: 1; transform: none; }

/* Pagine legali */
.page-legal main { padding: calc(var(--header-h) + 72px) 0 clamp(84px, 10vw, 130px); }
.legal { max-width: 820px; }
.legal h1 { margin-top: 18px; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1.1; }
.legal .updated { margin-top: 14px; color: var(--muted); font-size: 0.95rem; }
.legal h2 { margin-top: 52px; font-size: 1.45rem; line-height: 1.3; }
.legal p, .legal ul { margin-top: 16px; }
.legal ul { padding-left: 0; }
.legal li { position: relative; padding-left: 22px; margin-top: 8px; }
.legal li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: var(--navy); }
.legal a { color: var(--navy); }
.legal strong { font-weight: 500; color: var(--ink); }

/* Responsive */
@media (max-width: 1100px) {
  .main-nav { gap: 28px; }
  .main-nav ul { gap: 24px; }
  .values { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; }
  .value:nth-child(4) { padding-left: 0; border-left: 0; }
  .formats, .audience { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .format:nth-child(3), .audience-item:nth-child(3) { padding-left: 0; border-left: 0; }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .process::before { display: none; }
}

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { position: fixed; inset: var(--header-h) 0 0; overflow-y: auto; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 28px; background: var(--navy); border-top: 1px solid var(--navy-line); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s; }
  .is-scrolled .main-nav { top: 70px; }
  .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a { padding: 15px 0; border-bottom: 1px solid var(--navy-line); font-size: 1.05rem; }
  .main-nav ul a::after { display: none; }
  .main-nav .cta { margin-top: 22px; align-self: stretch; justify-content: space-between; }
  .section-head, .about, .people, .contact, .formats-head, .motto, .faq { grid-template-columns: minmax(0, 1fr); }
  .about-media img { aspect-ratio: 16 / 10; }
  .area { grid-template-columns: minmax(0, 1fr); }
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }

  .hero { display: flex; flex-direction: column; min-height: 0; }
  .hero-media { position: relative; inset: auto; order: 3; width: 100%; height: 300px; }
  .hero-media::after { background: linear-gradient(180deg, var(--navy) 0%, rgba(11, 20, 35, 0.1) 45%); }
  .axis { padding-top: 44px; padding-bottom: 44px; }
  .axis-track { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .axis-track::before { left: 5px; right: auto; top: 5px; bottom: 5px; width: 1px; height: auto; transform: scaleY(0); transform-origin: top; }
  .is-ready .axis-track::before { transform: scaleY(1); }
  .axis-node { padding: 0 0 0 32px; }

  .org-root { align-items: flex-start; text-align: left; }
  .org-stem { margin: 24px 0 0 5px; height: 36px; }
  .org-branches { grid-template-columns: minmax(0, 1fr); margin-left: 5px; padding-left: 28px; border-left: 1px solid var(--rule); }
  .org-branches::before { display: none; }
  .org-unit { padding-top: 36px; }
  .unit-body { align-items: flex-start; text-align: left; padding-top: 0; border-top: 0; }
  .org-unit + .org-unit { margin-top: 20px; }
  .unit-logo { justify-content: flex-start; }
  .org-unit::before { left: -28px; top: 66px; width: 22px; height: 1px; }
  .org-unit::after { left: -33px; top: 61px; }
  .partner { grid-template-columns: minmax(0, 1fr); justify-items: start; padding: 28px 24px; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; --header-h: 72px; }
  body { font-size: 1rem; }
  .notice { display: none; }
  .nav-row, .is-scrolled .nav-row { height: 72px; }
  .is-scrolled .main-nav { top: 72px; }
  .brand img { width: 132px; }
  .hero-lead { font-size: 1.06rem; }
  .values, .formats, .audience, .process, .area-list, .form-grid, .footer-main { grid-template-columns: minmax(0, 1fr); }
  .value, .format, .audience-item { padding: 22px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .value:first-child { padding-top: 0; border-top: 0; }
  .formats, .audience { border-top: 0; }
  .format { padding-bottom: 18px; }
  .audience-item { border-top-color: var(--line-strong); padding-bottom: 18px; }
  .process { gap: 32px; }
  .contact-list li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .to-top { right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; transition-delay: 0s !important; animation: none !important; }
  .reveal, .axis-node, .org-unit { opacity: 1; transform: none; }
  .axis-track::before, .org-stem, .org-branches::before, .process::before { transform: none; }
}
.roots .label { color: var(--on-dark-soft); }

@media (max-width: 920px) {
  .no-scroll, .no-scroll body { overflow: hidden; }
}

/* Stampa: solo contenuti, testo scuro su bianco */
@media print {
  @page { margin: 18mm 16mm; }
  body { font-size: 11pt; color: #000; background: #fff; }
  .site-header, .skip-link, .to-top, .hero-media, .roots-media, .form-panel, .nav-toggle, .axis, .about-media, .area-media, .method-photo { display: none !important; }
  .hero, .on-dark, .roots, .site-footer { background: #fff !important; color: #000 !important; }
  .hero h1, .on-dark h2, .on-dark h3, .roots h2, .footer-payoff { color: #000 !important; }
  .hero-inner { padding-top: 0; }
  .hero-lead, .roots p, .on-dark p, .org-unit p, .partner p, .site-footer, .site-footer a { color: #222 !important; }
  .section, .roots { padding-block: 24pt; }
  .reveal, .org-unit { opacity: 1 !important; transform: none !important; }
  .faq-answer { display: block !important; }
  img[src*="chiaro"] { filter: invert(1); }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
  .cta, .link-arrow__icon { display: none !important; }
}
