/* =========================================================
   DIMAFIT® – sito istituzionale v1
   Palette: blu notte #102238, blu DIMAFIT #168FE5,
            azzurro chiaro #EDF5FC, bianco #FFFFFF
   Font: di sistema (nessuna risorsa esterna)
   ========================================================= */

:root {
  --navy: #102238;
  --navy-deep: #0A1626;
  --navy-card: #162D49;
  --navy-line: rgba(237, 245, 252, 0.12);
  --blue: #168FE5;
  --blue-soft: #4FB3F5;
  --cyan: #7FD3FF;
  --symbol: #2DA9E1;
  --ice: #EDF5FC;
  --white: #FFFFFF;
  --ink: #102238;
  --ink-muted: #44566E;
  --on-dark-muted: rgba(237, 245, 252, 0.74);
  --green: #2ECC80;
  --yellow: #FFC53D;
  --red: #FF5B60;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 22px;
  --radius-sm: 14px;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1200px;
  --header-h: 72px;
  --shadow: 0 24px 60px rgba(4, 12, 24, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ice);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, canvas, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--blue-soft); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.4rem, 6.4vw, 5rem); }
h2 { font-size: clamp(1.9rem, 4.4vw, 3.3rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--white); color: var(--navy); padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--blue-soft); outline-offset: 3px; border-radius: 6px; }

/* ---------- Segnaposto da completare (ben visibili) ---------- */
.segnaposto {
  display: inline-block;
  background: #FFE066;
  color: #102238;
  font-weight: 800;
  font-size: 0.82em;
  line-height: 1.35;
  padding: 0.1em 0.45em;
  border-radius: 6px;
  border: 2px dashed #C99A00;
}

/* ---------- Etichette ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--blue-soft); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(22, 143, 229, 0.16); color: var(--cyan); border: 1px solid rgba(127, 211, 255, 0.35);
}
.tag--warn { background: rgba(255, 197, 61, 0.14); color: #FFD978; border-color: rgba(255, 197, 61, 0.4); }
.tag--light { background: rgba(16, 34, 56, 0.06); color: var(--blue); border-color: rgba(22, 143, 229, 0.35); }

.illustrativa {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(237, 245, 252, 0.6);
}

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 800; font-size: 1rem; text-decoration: none !important;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn--primary { background: var(--blue); color: var(--white); box-shadow: 0 10px 30px rgba(22, 143, 229, 0.4); }
.btn--primary:hover { background: #2A9DF0; transform: translateY(-2px); }
.btn--ghost { color: var(--white); border: 2px solid rgba(237, 245, 252, 0.35); }
.btn--ghost:hover { border-color: var(--white); transform: translateY(-2px); }
.btn--dark { background: var(--navy); color: var(--white); }
.btn--dark:hover { background: #1A3352; transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
.site-header.is-solid,
.site-header--solid {
  background: rgba(10, 22, 38, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--navy-line);
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none !important; }
.brand__symbol { width: 38px; height: 38px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.wordmark { font-size: 1.45rem; font-weight: 900; letter-spacing: 0.02em; color: var(--white); }
.wordmark b { color: var(--blue); font-weight: 900; }
.wordmark sup { font-size: 0.45em; color: var(--blue); font-weight: 800; vertical-align: super; margin-left: 1px; }
.brand__claim { font-size: 0.58rem; font-weight: 800; letter-spacing: 0.26em; color: var(--on-dark-muted); margin-top: 5px; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  color: var(--ice); font-weight: 700; font-size: 0.95rem; padding: 10px 14px; border-radius: 999px;
  text-decoration: none;
}
.nav a:hover { background: rgba(237, 245, 252, 0.08); }
.nav a[aria-current="page"] { color: var(--white); background: rgba(22, 143, 229, 0.22); }
.nav .nav__cta { background: var(--blue); color: var(--white); margin-left: 6px; }
.nav .nav__cta:hover { background: #2A9DF0; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 0; border-radius: 12px; cursor: pointer;
  background: rgba(237, 245, 252, 0.08); color: var(--white);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; margin: 0 auto; position: relative;
  transition: transform 0.25s ease, background 0.25s ease;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px var(--gutter) 24px;
    background: rgba(10, 22, 38, 0.97);
    border-bottom: 1px solid var(--navy-line);
    transform: translateY(-120%); opacity: 0; pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .nav a { padding: 14px 16px; font-size: 1.05rem; }
  .nav .nav__cta { margin: 8px 0 0; text-align: center; }
  .nav-open .nav { transform: none; opacity: 1; pointer-events: auto; }
  .nav-open .site-header { background: rgba(10, 22, 38, 0.97); }
}

/* ---------- Sezioni generiche ---------- */
.section { padding: clamp(72px, 11vw, 140px) 0; position: relative; }
.section--light { background: var(--ice); color: var(--ink); }
.section--white { background: var(--white); color: var(--ink); }
.section--deep { background: var(--navy-deep); }
.section--light .eyebrow, .section--white .eyebrow { color: var(--blue); }
.section--light p, .section--white p { color: var(--ink-muted); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 6vw, 64px); }
.section-head p { font-size: 1.12rem; color: var(--on-dark-muted); }
.section--light .section-head p, .section--white .section-head p { color: var(--ink-muted); }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.3rem); color: var(--on-dark-muted); max-width: 640px; }

.grid-2 { display: grid; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (min-width: 900px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-2--wide-media { grid-template-columns: 5fr 7fr; }
  .grid-2--wide-text { grid-template-columns: 7fr 5fr; }
}

.media-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--navy-card); box-shadow: var(--shadow);
}
.media-card img { width: 100%; }
.media-card__label {
  position: absolute; left: 14px; top: 14px; z-index: 3;
}

/* ---------- Reveal allo scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }
.reveal[data-delay="4"] { transition-delay: 0.48s; }

/* =========================================================
   HOME – Scena 1: hero animato
   ========================================================= */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  background: radial-gradient(1200px 700px at 72% 45%, #173A63 0%, var(--navy) 55%, var(--navy-deep) 100%);
  overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* fascia di scansione: canvas creato da hero.js, mosso e fatto comparire con transform e opacity */
.hero__band { position: absolute; left: 0; top: 0; height: 100%; opacity: 0; pointer-events: none; will-change: transform, opacity; }
/* velatura a sinistra per la leggibilità del testo (schermi larghi) */
@media (min-width: 860px) {
  .hero::before {
    content: ""; position: absolute; inset: 0 45% 0 0; z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, rgba(10, 22, 38, 0.62), rgba(10, 22, 38, 0));
  }
}
.hero__content {
  position: relative; z-index: 2; width: 100%;
  padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(56px, 10vh, 120px);
}
.hero__lines { max-width: 620px; }
.hero__line1 {
  font-size: clamp(1.25rem, 2.6vw, 1.9rem); font-weight: 700; line-height: 1.3; color: var(--ice);
  margin-bottom: 18px;
}
.hero__line1 strong { color: var(--cyan); font-weight: 800; }
.hero h1 { margin-bottom: 26px; }
.hero h1 .accent { color: var(--blue); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__note { position: absolute; right: var(--gutter); bottom: 22px; z-index: 2; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 18px; z-index: 2; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(237, 245, 252, 0.4); border-radius: 14px;
}
.hero__scroll::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: var(--cyan); animation: scrollcue 1.8s ease-in-out infinite;
}
@keyframes scrollcue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

.hero .seq { opacity: 0; transform: translateY(18px); }
.hero.is-playing .seq { animation: seqIn 1.1s cubic-bezier(.2,.7,.2,1) forwards; }
.hero.is-playing .seq--1 { animation-delay: 0.6s; }
.hero.is-playing .seq--2 { animation-delay: 4.6s; }
.hero.is-playing .seq--3 { animation-delay: 5.4s; }
@keyframes seqIn { to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .hero { align-items: flex-end; }
  .hero__content { padding-bottom: 84px; }
  .hero__lines { max-width: none; background: linear-gradient(180deg, rgba(10,22,38,0) 0%, rgba(10,22,38,0.75) 30%); padding-top: 40px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); }
  .hero__note { right: auto; left: var(--gutter); bottom: 22px; }
  .hero__scroll { display: none; }
}

/* ---------- Componenti condivisi: finestra software, semafori, avvisi ---------- */
.app-window {
  border-radius: 18px; overflow: hidden; background: #0B0F14; box-shadow: var(--shadow);
  border: 1px solid rgba(237, 245, 252, 0.12);
}
.app-window__bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #121A24; }
.app-window__bar i { width: 10px; height: 10px; border-radius: 50%; background: #2B3A4D; }
.app-window__bar span { margin-left: 8px; font-size: 0.78rem; font-weight: 700; color: rgba(237, 245, 252, 0.6); }

.traffic { border-radius: var(--radius-sm); background: rgba(22, 143, 229, 0.08); border: 1px solid rgba(127, 211, 255, 0.2); padding: 18px 20px; }
.traffic__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.traffic__head strong { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan); }
.traffic ul { list-style: none; margin: 0; padding: 0; }
.traffic li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--navy-line); font-weight: 700; font-size: 0.96rem; }
.traffic li:first-child { border-top: 0; }
.dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; flex: none; background: #3A4B60; }
.dot--green { background: var(--green); box-shadow: 0 0 12px rgba(46, 204, 128, 0.6); }
.dot--yellow { background: var(--yellow); box-shadow: 0 0 12px rgba(255, 197, 61, 0.55); }
.dot--red { background: var(--red); box-shadow: 0 0 12px rgba(255, 91, 96, 0.55); }

.notice {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; padding: 14px 16px; border-radius: var(--radius-sm);
  background: rgba(237, 245, 252, 0.06); border-left: 4px solid var(--blue); font-weight: 700; color: var(--ice); font-size: 0.98rem;
}
.section--light .notice, .section--white .notice { background: rgba(22, 143, 229, 0.07); color: var(--ink); }

/* =========================================================
   HOME – Storia a scroll (4 fasi)
   Con JavaScript: palco fisso (sticky) e fasi che si alternano.
   Senza JavaScript: le fasi sono mostrate una sotto l'altra.
   ========================================================= */
.storia { position: relative; background: var(--navy); }
.storia__canvas, .storia__note, .storia__steps { display: none; }
.storia__panel { padding: 60px var(--gutter); display: grid; gap: 48px; max-width: var(--maxw); margin: 0 auto; }

.js .storia { height: 520vh; }
.js .storia__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.js .storia__canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.js .storia__note { display: block; position: absolute; left: var(--gutter); top: calc(var(--header-h) + 18px); z-index: 2; }
.js .storia__steps {
  display: flex; gap: 18px; position: absolute; left: var(--gutter); bottom: 22px; z-index: 2;
  list-style: none; margin: 0; padding: 0;
}
.storia__steps li { display: flex; align-items: center; gap: 8px; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(237, 245, 252, 0.55); }
.storia__steps li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid rgba(237, 245, 252, 0.5); transition: background 0.3s, border-color 0.3s; }
.storia__steps li.is-done::before { background: rgba(127, 211, 255, 0.5); border-color: transparent; }
.storia__steps li.is-current { color: var(--white); }
.storia__steps li.is-current::before { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 0 5px rgba(22, 143, 229, 0.25); }

.js .storia__panel {
  position: absolute; z-index: 2; padding: 0; margin: 0; display: block;
  top: calc(var(--header-h) + 20px); bottom: 24px; right: var(--gutter); width: min(42vw, 540px);
}
.phase { display: flex; flex-direction: column; gap: 14px; }
.js .phase {
  position: absolute; inset: 0; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease, visibility 0s linear 0.6s;
}
.js .phase.is-current { opacity: 1; visibility: visible; transform: none; transition: opacity 0.6s ease, transform 0.6s ease; }

.phase__card {
  background: rgba(10, 22, 38, 0.8); border: 1px solid rgba(127, 211, 255, 0.18); border-radius: var(--radius);
  padding: 22px 24px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.phase__card .scene__num { font-size: 0.76rem; font-weight: 900; letter-spacing: 0.18em; color: var(--blue-soft); margin-bottom: 10px; }
.phase__card h2 { font-size: clamp(1.5rem, 2.5vw, 2.3rem); margin-bottom: 10px; }
.phase__card p { color: var(--on-dark-muted); margin: 0 0 8px; font-size: 1rem; }
.phase__card .phase__small { font-size: 0.86rem; font-weight: 700; color: var(--ice); margin: 10px 0 0; }

.phase__media { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.phase__media--one { grid-template-columns: 1fr; }
.phase__media figure { margin: 0; position: relative; border-radius: 16px; overflow: hidden; background: #0B0F14; box-shadow: var(--shadow); border: 1px solid rgba(237, 245, 252, 0.1); }
.phase__media img { display: block; width: 100%; height: clamp(110px, 23vh, 230px); object-fit: cover; }
.phase__media figure.pos-low img { object-position: center 72%; }
.phase__media figure.is-light { background: #EEF1F4; }
.phase__media figure.is-light img { object-fit: contain; padding: 8px; }
.phase__media figcaption {
  position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 800; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}
.phase__media figure.is-light figcaption { top: 10px; bottom: auto; }
.phase__media .tag { text-shadow: none; background: rgba(10, 22, 38, 0.75); }
.phase__media .tag--light { background: #fff; }

.params { margin-top: 0; padding: 14px 18px; background: rgba(10, 22, 38, 0.8); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.params ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; }
.params li { padding: 7px 0; font-size: 0.9rem; }
.params li:nth-child(2) { border-top: 0; }
/* fase 4: gli stessi parametri passano a verde */
.params--after .dot { transition: background 0.7s ease, box-shadow 0.7s ease; }
.phase.is-current .params--after .dot { background: var(--green); box-shadow: 0 0 12px rgba(46, 204, 128, 0.6); }
.phase.is-current .params--after li:nth-child(1) .dot { transition-delay: 0.6s; }
.phase.is-current .params--after li:nth-child(2) .dot { transition-delay: 0.9s; }
.phase.is-current .params--after li:nth-child(3) .dot { transition-delay: 1.2s; }
.phase.is-current .params--after li:nth-child(4) .dot { transition-delay: 1.5s; }
html:not(.js) .params--after .dot { background: var(--green); }

/* Su telefoni e tablet niente sfocatura dello sfondo dietro ai riquadri: sopra un'animazione andrebbe
   ricalcolata a ogni fotogramma ed è una delle cose più pesanti per i dispositivi meno recenti. */
@media (max-width: 899px), (hover: none) {
  .phase__card, .params { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(10, 22, 38, 0.9); }
  .site-header.is-solid, .site-header--solid { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(10, 22, 38, 0.95); }
}

@media (max-width: 899px) {
  .js .storia { height: 560vh; }
  .js .storia__panel { left: var(--gutter); right: var(--gutter); width: auto; top: 49%; bottom: 10px; }
  .js .phase { justify-content: flex-start; gap: 7px; }
  .phase__card { padding: 12px 14px; }
  .phase__card .scene__num { font-size: 0.68rem; margin-bottom: 6px; }
  .phase__card h2 { font-size: 1.15rem; margin-bottom: 4px; }
  .phase__card p { font-size: 0.84rem; line-height: 1.4; margin-bottom: 4px; }
  .phase__card .phase__small { font-size: 0.74rem; margin-top: 4px; }
  .phase__media img { height: clamp(64px, 10vh, 96px); }
  .phase__media figcaption { font-size: 0.7rem; left: 6px; right: 6px; bottom: 6px; }
  .phase__media figure.is-light figcaption { top: 6px; }
  .phase__media .tag { font-size: 0.62rem; padding: 3px 7px; }
  .params { padding: 6px 12px; }
  .params .traffic__head { display: none; }
  .params li { padding: 2px 0; font-size: 0.74rem; gap: 7px; border-top: 0; }
  .params .dot { width: 10px; height: 10px; }
  .js .storia__steps { top: calc(var(--header-h) + 14px); bottom: auto; left: auto; right: var(--gutter); gap: 10px; }
  .storia__steps li span { display: none; }
  .js .storia__note { top: calc(var(--header-h) + 14px); }
}

/* ---------- Cinque innovazioni ---------- */
.innov-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .innov-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .innov-grid { grid-template-columns: repeat(6, 1fr); } .innov-card { grid-column: span 2; } .innov-card:nth-child(4) { grid-column: 2 / span 2; } }
.innov-card {
  background: var(--white); border-radius: var(--radius); padding: 28px 26px 30px;
  box-shadow: 0 14px 40px rgba(16, 34, 56, 0.08); border: 1px solid rgba(16, 34, 56, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.innov-card:hover { transform: translateY(-4px); box-shadow: 0 22px 50px rgba(16, 34, 56, 0.14); }
.innov-card__icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--navy); color: var(--cyan); margin-bottom: 20px; }
.innov-card__icon svg { width: 28px; height: 28px; }
.innov-card__num { font-size: 0.78rem; font-weight: 900; letter-spacing: 0.16em; color: var(--blue); margin-bottom: 6px; }
.innov-card h3 { color: var(--ink); }
.innov-card p { font-size: 0.98rem; margin: 0; }

/* ---------- Credibilità ---------- */
.proof-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .proof-grid { grid-template-columns: repeat(3, 1fr); } }
.proof { padding: 30px 28px; border-radius: var(--radius); background: var(--navy-card); border: 1px solid var(--navy-line); }
.proof strong { display: block; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 900; color: var(--white); letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 10px; }
.proof span { color: var(--on-dark-muted); }

/* ---------- Banda blu / inviti ---------- */
.band {
  background: linear-gradient(120deg, #0F6FB8 0%, var(--blue) 55%, #3FB0F7 100%);
  color: var(--white); padding: clamp(64px, 9vw, 110px) 0; position: relative; overflow: hidden;
}
.band::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
  border: 60px solid rgba(255, 255, 255, 0.07);
}
.band h2 { max-width: 820px; }
.band p { font-size: 1.15rem; max-width: 640px; color: rgba(255, 255, 255, 0.88); }

.cta-grid { display: grid; gap: 18px; grid-template-columns: 1fr; margin-top: 36px; position: relative; z-index: 1; }
@media (min-width: 800px) { .cta-grid { grid-template-columns: 1fr 1fr; } }
.cta-card { background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.25); border-radius: var(--radius); padding: 30px 28px; }
.cta-card h3 { font-size: 1.5rem; }
.cta-card p { font-size: 1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); padding: 56px 0 36px; font-size: 0.92rem; color: var(--on-dark-muted); border-top: 1px solid var(--navy-line); }
.footer-grid { display: grid; gap: 30px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h4 { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ice); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--on-dark-muted); }
.site-footer a:hover { color: var(--white); }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--navy-line); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 0.82rem; }

/* =========================================================
   Pagine interne
   ========================================================= */
.page-hero {
  position: relative; padding: calc(var(--header-h) + clamp(60px, 10vw, 120px)) 0 clamp(60px, 9vw, 110px);
  background: radial-gradient(900px 500px at 80% 20%, #18406B 0%, var(--navy) 60%);
  overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(127, 211, 255, 0.4), transparent);
}
.page-hero__grid { position: absolute; inset: 0; opacity: 0.35; pointer-events: none;
  background-image: linear-gradient(rgba(127,211,255,0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(127,211,255,0.08) 1px, transparent 1px);
  background-size: 48px 48px; -webkit-mask-image: radial-gradient(circle at 70% 30%, #000 0%, transparent 70%); mask-image: radial-gradient(circle at 70% 30%, #000 0%, transparent 70%);
}
.page-hero .container { position: relative; z-index: 1; }

.feature { display: grid; gap: clamp(28px, 5vw, 70px); align-items: center; }
@media (min-width: 900px) { .feature { grid-template-columns: 1fr 1fr; } .feature--flip .feature__media { order: 2; } }
.feature + .feature { margin-top: clamp(80px, 10vw, 130px); }
.feature__num { font-size: clamp(3rem, 7vw, 5rem); font-weight: 900; line-height: 1; color: rgba(22, 143, 229, 0.22); margin-bottom: 8px; letter-spacing: -0.04em; }
.section--light .feature__num, .section--white .feature__num { color: rgba(22, 143, 229, 0.25); }
.section-head .feature__num { font-size: clamp(3rem, 7vw, 5rem); color: rgba(22, 143, 229, 0.25); margin-bottom: 8px; }
.feature h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.feature ul { padding-left: 1.2em; margin: 0 0 1em; }
.feature li { margin-bottom: 6px; }
.section--light .feature h3, .section--white .feature h3 { color: var(--ink); }

.flow { display: grid; gap: 14px; grid-template-columns: 1fr; counter-reset: flow; }
@media (min-width: 700px) { .flow { grid-template-columns: repeat(4, 1fr); } }
.flow__step { position: relative; padding: 22px 20px; border-radius: var(--radius-sm); background: var(--white); border: 1px solid rgba(16, 34, 56, 0.08); box-shadow: 0 10px 26px rgba(16, 34, 56, 0.06); }
.flow__step strong { display: block; color: var(--ink); font-size: 1.02rem; margin-bottom: 4px; }
.flow__step span { color: var(--ink-muted); font-size: 0.92rem; }
.flow__step::before { counter-increment: flow; content: counter(flow, decimal-leading-zero); display: block; font-weight: 900; color: var(--blue); font-size: 0.8rem; letter-spacing: 0.14em; margin-bottom: 8px; }

.areas { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 24px; }
@media (min-width: 700px) { .areas { grid-template-columns: 1fr 1fr; } }
.area { padding: 20px 22px; border-radius: var(--radius-sm); background: var(--navy-card); border: 1px solid var(--navy-line); font-weight: 700; }

/* Pubblicazione scientifica (Tecnologia, sezione 04) */
.pub { margin-top: 26px; padding: 22px 24px; border-radius: var(--radius-sm); background: var(--navy-card); border: 1px solid var(--navy-line); max-width: 640px; }
.pub__label { font-size: 0.95rem; font-weight: 900; letter-spacing: 0.02em; color: var(--blue-soft); margin: 0 0 10px; }   /* niente maiuscolo: "MeMeA" va scritto così */
.pub p:not(.pub__label) { color: var(--on-dark-muted); margin: 0 0 14px; }
.pub__link { font-weight: 800; color: var(--white); text-decoration: none; border-bottom: 2px solid var(--blue); padding-bottom: 2px; }
.pub__link:hover { color: var(--blue-soft); }

.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid rgba(22, 143, 229, 0.4); }
.timeline li { position: relative; padding: 0 0 34px 30px; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 5px rgba(22, 143, 229, 0.2); }
.timeline strong { display: block; color: var(--white); font-size: 1.15rem; margin-bottom: 4px; }
.section--light .timeline strong { color: var(--ink); }
.timeline span { color: var(--on-dark-muted); }
.section--light .timeline span { color: var(--ink-muted); }

.contact-box {
  border-radius: var(--radius); padding: clamp(28px, 5vw, 48px); background: var(--navy-card); border: 1px solid var(--navy-line);
}
.contact-mail { font-size: clamp(1.4rem, 3.4vw, 2.2rem); font-weight: 900; word-break: break-word; color: var(--white); }

.prose { max-width: 780px; }
.prose h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-top: 1.8em; }
.prose p, .prose li { color: var(--ink-muted); }
.prose ul { padding-left: 1.2em; }

/* ---------- Movimento ridotto ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; }
  .hero .seq { opacity: 1; transform: none; }
}
