/* =====================================================================
   NTSISTEMI SRL — Foglio di stile condiviso
   Stile: Trust & Authority  |  Palette dal logo (navy + arco gradiente)
   Font: Poppins (titoli) + Open Sans (testo)
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Brand — navy dal monogramma "NT" e dal payoff del logo */
  --navy-900: #0f1b45;
  --navy:     #16255c;
  --navy-700: #1e326e;
  --navy-600: #2a4288;

  /* CTA / accento funzionale */
  --blue:      #1d6fb8;
  --blue-600:  #175a97;
  --blue-050:  #eaf3fb;

  /* Arco multicolore del logo — tratto distintivo del brand */
  --arc-teal:  #17a398;
  --arc-amber: #f2a93b;
  --arc-coral: #e8524a;
  --brand-gradient: linear-gradient(90deg, var(--arc-teal) 0%, var(--arc-amber) 52%, var(--arc-coral) 100%);

  /* Neutri */
  --bg:        #f7f9fc;
  --surface:   #ffffff;
  --fg:        #0f1b34;
  --muted:     #55647f;
  --muted-2:   #7c89a1;
  --border:    #e4e9f2;
  --border-strong: #d3dbe9;

  /* Feedback */
  --success: #17a398;
  --danger:  #dc2626;

  /* Tipografia */
  --font-head: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Spaziatura (ritmo 4/8) */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;

  /* Raggi & ombre */
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 27, 52, .06), 0 1px 3px rgba(15, 27, 52, .08);
  --shadow-md: 0 6px 18px rgba(15, 27, 52, .08);
  --shadow-lg: 0 18px 40px rgba(15, 27, 52, .14);

  --container: 1180px;
  --nav-h: 76px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset di base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.15; margin: 0 0 var(--sp-4); font-weight: 600; }
p { margin: 0 0 var(--sp-4); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-5); }
.section { padding-block: var(--sp-9); }
.section--tight { padding-block: var(--sp-8); }
.section--alt { background: var(--surface); }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-head); font-weight: 600; font-size: .8rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--blue);
  margin-bottom: var(--sp-3);
}
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 2px; background: var(--brand-gradient); }

.section-head { max-width: 720px; margin-bottom: var(--sp-7); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.section-head p { color: var(--muted); font-size: 1.075rem; margin-bottom: 0; }

.lead { font-size: 1.15rem; color: var(--muted); }

/* ---------- Filo gradiente decorativo ---------- */
.brand-thread { height: 4px; background: var(--brand-gradient); border: 0; margin: 0; }

/* ---------- Header / Navigazione ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  height: var(--nav-h); display: flex; align-items: center; justify-content: space-between;
}
/* Lockup del marchio: monogramma (immagine) + payoff ricostruito come testo.
   Il payoff nel file originale è alto 11px: a queste dimensioni risulterebbe
   illeggibile, quindi viene reso con testo vero, nitido a ogni risoluzione. */
.nav__brand { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.nav__brand-mark { height: 52px; width: auto; display: block; }
.nav__brand-payoff {
  font-family: var(--font-head); font-weight: 600; font-size: 8px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--navy);
  line-height: 1; white-space: nowrap;
}
.nav__list { display: flex; align-items: center; gap: var(--sp-6); list-style: none; margin: 0; padding: 0; }
.nav__link {
  position: relative; font-family: var(--font-head); font-weight: 500; font-size: .97rem;
  color: var(--navy); padding: var(--sp-2) 0;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%;
  background: var(--brand-gradient); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .28s var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--blue); }

.nav__toggle {
  display: none; background: none; border: 1px solid var(--border-strong); border-radius: 10px;
  width: 46px; height: 42px; cursor: pointer; align-items: center; justify-content: center; color: var(--navy);
}

/* ---------- Bottoni ---------- */
.btn {
  --btn-bg: var(--blue); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 14px 26px; min-height: 48px; border-radius: 12px; cursor: pointer;
  border: 1.5px solid transparent; background: var(--btn-bg); color: var(--btn-fg);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(29, 111, 184, .32); background: var(--blue-600); }
.btn:active { transform: translateY(0); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--navy); border-color: var(--border-strong); }
.btn--ghost:hover { background: var(--surface); border-color: var(--blue); color: var(--blue); box-shadow: var(--shadow-md); }

.btn--light { --btn-bg: #fff; --btn-fg: var(--navy); }
.btn--light:hover { background: #f0f5fb; color: var(--navy); }

.btn--outline-light { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255,255,255,.5); }
.btn--outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; box-shadow: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-4); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #eaf1fb;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(29,111,184,.55), transparent 60%),
    radial-gradient(700px 500px at 10% 120%, rgba(23,163,152,.28), transparent 55%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy) 55%, var(--navy-700) 100%);
}
.hero__grid {
  display: grid; grid-template-columns: 1.08fr .92fr; gap: var(--sp-7); align-items: center;
  padding-block: clamp(var(--sp-8), 9vw, 118px);
}
.hero h1 {
  color: #fff; font-size: clamp(2.1rem, 4.8vw, 3.5rem); font-weight: 700; letter-spacing: -.01em;
  margin-bottom: var(--sp-5);
}
.hero h1 .accent {
  background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { color: #c4d4ec; font-size: 1.16rem; max-width: 46ch; margin-bottom: var(--sp-6); }
.hero__badge {
  display: inline-flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-5);
  padding: 7px 14px; border-radius: 999px; font-size: .85rem; font-family: var(--font-head); font-weight: 500;
  color: #d7e4f6; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
}
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--arc-teal); box-shadow: 0 0 0 4px rgba(23,163,152,.25); }

/* Pannello "visuale" del hero */
.hero__panel {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg); padding: var(--sp-6); backdrop-filter: blur(6px);
  box-shadow: var(--shadow-lg);
}
.hero__panel h3 { color: #fff; font-size: 1.05rem; margin-bottom: var(--sp-5); display: flex; align-items: center; gap: var(--sp-2); }
.hero__panel h3 svg { width: 20px; height: 20px; color: var(--arc-amber); }
.mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); }
.mini-list li { display: flex; gap: var(--sp-3); align-items: flex-start; color: #d7e2f2; font-size: .96rem; }
.mini-list svg { width: 20px; height: 20px; color: var(--arc-teal); flex: none; margin-top: 1px; }

/* ---------- Striscia Partnership sotto i pulsanti dell'hero ----------
   I marchi appartengono ai rispettivi produttori e sono usati
   per indicare i rapporti di partnership e distribuzione. */
.hero-partnership { margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: 1px solid rgba(255, 255, 255, .15); }
.hero-partnership__label {
  display: block; margin-bottom: var(--sp-4);
  font-family: var(--font-head); font-weight: 600; font-size: .74rem;
  letter-spacing: .16em; text-transform: uppercase; color: #9db4d6;
}
.hero-partnership__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }

.hero-partner { display: block; text-decoration: none; }
.hero-partner__plate {
  display: grid; place-items: center; height: 62px; padding: 8px 12px;
  background: #fff; border-radius: 10px; overflow: hidden;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
/* Acronis è fornito in negativo (marchio bianco su fondo scuro):
   la piastrella riprende il suo stesso fondo, senza alterare il logo. */
.hero-partner__plate--dark { background: #011f50; }
.hero-partner:hover .hero-partner__plate { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, .3); }
.hero-partner__plate img { max-height: 36px; max-width: 100%; width: auto; }
/* Segnaposto testuale finché non è disponibile il file del logo ufficiale */
.hero-partner__wordmark { font-family: var(--font-head); font-weight: 700; font-size: .98rem; color: var(--navy); }
.hero-partner__role {
  display: block; margin-top: 7px; font-size: .78rem; line-height: 1.35; color: #bcd0e9;
  transition: color .22s var(--ease);
}
.hero-partner:hover .hero-partner__role { color: #fff; }

/* ---------- Striscia statistiche ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
.stat { text-align: center; padding: var(--sp-5) var(--sp-3); }
.stat__num { font-family: var(--font-head); font-weight: 700; font-size: clamp(2rem, 4vw, 2.8rem); color: var(--navy); line-height: 1; }
.stat__num .plus { color: var(--blue); }
.stat__label { color: var(--muted); font-size: .96rem; margin-top: var(--sp-2); }

/* ---------- Griglia servizi ---------- */
.grid { display: grid; gap: var(--sp-5); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
/* Se l'ultima riga resta con una sola card, la centra invece di lasciarla spaiata.
   Si adatta da sola al numero di card presenti. */
@media (min-width: 941px) {
  .grid--3 > :last-child:nth-child(3n + 1) { grid-column: 2; }
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative; display: block; color: inherit; text-decoration: none;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--sp-6); overflow: hidden;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
/* Card cliccabile: porta alla sezione corrispondente della pagina Servizi */
a.card { cursor: pointer; }
a.card .card__tag::after {
  content: "→"; display: inline-block; margin-left: 6px;
  transform: translateX(-4px); opacity: 0;
  transition: transform .28s var(--ease), opacity .28s var(--ease);
}
a.card:hover .card__tag::after { transform: translateX(0); opacity: 1; }
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--brand-gradient);
  transform: scaleX(0); transform-origin: left; transition: transform .32s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }

.card__icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--blue-050); color: var(--blue); margin-bottom: var(--sp-4);
  transition: background .28s var(--ease), color .28s var(--ease), transform .28s var(--ease);
}
.card__icon svg { width: 27px; height: 27px; }
.card:hover .card__icon { background: var(--navy); color: #fff; transform: rotate(-4deg) scale(1.05); }
.card h3 { font-size: 1.22rem; margin-bottom: var(--sp-3); }
.card p { color: var(--muted); margin-bottom: 0; font-size: .98rem; }
.card__tag {
  display: inline-block; margin-top: var(--sp-4); font-family: var(--font-head); font-weight: 600;
  font-size: .82rem; letter-spacing: .04em; color: var(--blue); text-transform: uppercase;
}

/* ---------- Sezione servizio dettagliato (alternata) ---------- */
/* Offset di ancoraggio: evita che la barra fissa copra il titolo di sezione */
.feature[id], section[id] { scroll-margin-top: calc(var(--nav-h) + 24px); }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8); align-items: center; }
.feature + .feature { margin-top: var(--sp-8); padding-top: var(--sp-8); border-top: 1px solid var(--border); }
.feature__media {
  border-radius: var(--radius-lg); min-height: 300px; position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-700) 100%);
  display: grid; place-items: center; box-shadow: var(--shadow-md);
}
.feature__media::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(340px 240px at 78% 18%, rgba(29,111,184,.5), transparent 60%),
              radial-gradient(300px 220px at 12% 90%, rgba(23,163,152,.35), transparent 60%);
}
.feature__media .glyph { position: relative; width: 96px; height: 96px; color: #fff; opacity: .96; }

/* Variante con i mockup di dashboard al posto della sola icona */
.feature__media--dash { min-height: 360px; padding: var(--sp-5); }
.dash-mockup { position: relative; z-index: 1; width: 100%; max-width: 430px; height: auto; display: block; }
.dash-mockup text { font-family: var(--font-head); }
.dash-caption {
  position: relative; z-index: 1; margin: var(--sp-4) 0 0; text-align: center;
  font-size: .78rem; line-height: 1.4; color: #a9c0dd;
}
.feature:nth-child(even) .feature__media { order: 2; }
.feature__num { font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: var(--blue); letter-spacing: .1em; }
.feature h3 { font-size: 1.7rem; margin-block: var(--sp-2) var(--sp-4); }

.check-list { list-style: none; margin: var(--sp-4) 0 0; padding: 0; display: grid; gap: var(--sp-3); }
.check-list li { display: flex; gap: var(--sp-3); align-items: flex-start; color: var(--fg); }
.check-list svg { width: 22px; height: 22px; color: var(--success); flex: none; margin-top: 2px; }

/* ---------- Card partner / distributore ----------
   Il marchio ARXIVAR appartiene al produttore ed è usato
   come riferimento al rapporto di distribuzione. */
.partner-card {
  display: flex; align-items: center; gap: var(--sp-5); flex-wrap: wrap;
  margin-top: var(--sp-5); padding: var(--sp-5);
  background: var(--surface); border: 1px solid var(--border);
  border-left: 4px solid var(--arc-amber); border-radius: var(--radius);
  transition: box-shadow .26s var(--ease), transform .26s var(--ease);
}
.partner-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
/* Filo colorato ripreso dal marchio del produttore */
.partner-card--green { border-left-color: #00a88e; }

/* Piastrella del logo partner: fondo bianco di default.
   Il modificatore --dark serve ai marchi forniti in negativo
   (es. Acronis), che restano così integri senza essere ricolorati. */
.partner-card__logo {
  flex: none; display: grid; place-items: center; min-width: 150px;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 18px; transition: border-color .22s var(--ease), box-shadow .22s var(--ease), transform .22s var(--ease);
}
.partner-card__logo--dark { background: #011f50; border-color: #011f50; }
.partner-card__logo img { height: 30px; max-width: 100%; width: auto; }
.partner-card__logo:hover { border-color: var(--arc-amber); box-shadow: 0 6px 18px rgba(242, 169, 59, .35); transform: translateY(-2px); }
/* Segnaposto testuale finché non è disponibile il file del logo ufficiale */
.partner-card__wordmark { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--navy); }

.partner-card__body { flex: 1 1 260px; }
.partner-card__claim { font-family: var(--font-head); font-size: 1.06rem; color: var(--navy); margin: 0 0 2px; }
.partner-card__sub { color: var(--muted); font-size: .97rem; margin: 0 0 var(--sp-3); }
.partner-card__link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-head); font-weight: 600; font-size: .93rem; color: var(--blue);
  transition: gap .22s var(--ease), color .22s var(--ease);
}
.partner-card__link svg { width: 15px; height: 15px; }
.partner-card__link:hover { color: var(--navy); gap: 11px; }

/* ---------- Elenco moduli di una suite ---------- */
.suite-intro { margin: var(--sp-5) 0 var(--sp-3); font-family: var(--font-head); font-weight: 600; font-size: .88rem; letter-spacing: .04em; text-transform: uppercase; color: var(--navy); }
.suite-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.suite-chips li {
  font-family: var(--font-head); font-weight: 500; font-size: .83rem; color: var(--navy);
  background: var(--blue-050); border: 1px solid #d6e6f5; border-radius: 999px; padding: 7px 14px;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.suite-chips li:hover { border-color: var(--blue); transform: translateY(-2px); }

/* ---------- Perché noi (feature compatte) ---------- */
.why-item { display: flex; gap: var(--sp-4); }
.why-item__icon { width: 46px; height: 46px; border-radius: 12px; background: var(--navy); color: #fff; display: grid; place-items: center; flex: none; }
.why-item__icon svg { width: 23px; height: 23px; }
.why-item h3 { font-size: 1.12rem; margin-bottom: var(--sp-2); }
.why-item p { color: var(--muted); font-size: .96rem; margin: 0; }

/* ---------- Loghi tecnologie ---------- */
.tech-strip { display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: center; }
.tech-chip {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-head); font-weight: 600; color: var(--navy);
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: 12px 22px; font-size: .98rem;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.tech-chip:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--blue); }
.tech-chip .dot { width: 10px; height: 10px; border-radius: 50%; }

/* ---------- CTA a tutta larghezza ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); text-align: center;
  padding: clamp(var(--sp-7), 6vw, var(--sp-9)) var(--sp-5); color: #fff;
  background: linear-gradient(140deg, var(--navy-900), var(--navy) 60%, var(--navy-700));
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(500px 300px at 80% 0%, rgba(29,111,184,.55), transparent 60%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.cta-band p { color: #c6d5ec; max-width: 60ch; margin-inline: auto; margin-bottom: var(--sp-6); font-size: 1.08rem; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Pagina interna: intestazione ---------- */
.page-hero {
  color: #eef4fc; text-align: center;
  background:
    radial-gradient(700px 380px at 80% -20%, rgba(29,111,184,.5), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy) 70%);
  padding-block: clamp(var(--sp-8), 8vw, 110px);
}
.page-hero .eyebrow { color: #9dc2ea; justify-content: center; }
.page-hero .eyebrow::before { background: var(--brand-gradient); }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3rem); }
.page-hero p { color: #c4d4ec; max-width: 60ch; margin-inline: auto; font-size: 1.12rem; margin-bottom: 0; }
.breadcrumb { display: flex; gap: var(--sp-2); justify-content: center; margin-bottom: var(--sp-4); font-size: .88rem; color: #9db4d6; }
.breadcrumb a:hover { color: #fff; }

/* ---------- Contatti ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.contact-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--sp-6); transition: transform .26s var(--ease), box-shadow .26s var(--ease);
}
.contact-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.contact-card__icon { width: 50px; height: 50px; border-radius: 13px; background: var(--blue-050); color: var(--blue); display: grid; place-items: center; margin-bottom: var(--sp-4); }
.contact-card__icon svg { width: 25px; height: 25px; }
.contact-card h3 { font-size: 1.1rem; margin-bottom: var(--sp-2); }
.contact-card p, .contact-card a { color: var(--muted); margin: 0; font-size: 1rem; word-break: break-word; }
.contact-card a:hover { color: var(--blue); }

.info-band { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--sp-6); display: flex; flex-wrap: wrap; gap: var(--sp-6); justify-content: space-between; align-items: center; }
.info-band dl { margin: 0; display: flex; flex-wrap: wrap; gap: var(--sp-6) var(--sp-8); }
.info-band dt { font-family: var(--font-head); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 2px; }
.info-band dd { margin: 0; font-family: var(--font-head); font-weight: 600; color: var(--navy); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #b9c6dd; padding-block: var(--sp-8) var(--sp-6); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--sp-7); }
.footer__brand img { height: 88px; width: auto; background: #fff; padding: 14px 20px; border-radius: 14px; }
.footer__brand p { margin-top: var(--sp-4); font-size: .95rem; color: #96a6c2; max-width: 34ch; }
.footer h4 { color: #fff; font-family: var(--font-head); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: var(--sp-4); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); }
.footer a { color: #b9c6dd; font-size: .96rem; transition: color .2s var(--ease); }
.footer a:hover { color: #fff; }
.footer__row { display: flex; gap: var(--sp-3); align-items: flex-start; font-size: .95rem; }
.footer__row svg { width: 18px; height: 18px; color: var(--arc-teal); flex: none; margin-top: 3px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: var(--sp-7); padding-top: var(--sp-5); display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5); justify-content: space-between; font-size: .88rem; color: #8194b2; }
.footer__bottom a { color: #a9bad6; text-decoration: underline; transition: color .2s var(--ease); }
.footer__bottom a:hover { color: #fff; }

/* ---------- Banner cookie ----------
   Mostrato solo con JS attivo: senza JS i pulsanti non potrebbero
   registrare la scelta e il banner resterebbe inutilizzabile. */
.cookie-banner { display: none; }
.js .cookie-banner {
  display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  background: var(--navy-900); color: #d3deef;
  padding: var(--sp-5) 0; box-shadow: 0 -12px 34px rgba(15, 27, 52, .3);
  transform: translateY(110%); transition: transform .38s var(--ease);
}
.js .cookie-banner.is-open { transform: none; }
.cookie-banner::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--brand-gradient); }
.cookie-banner__inner { display: flex; flex-wrap: wrap; gap: var(--sp-5); align-items: center; justify-content: space-between; }
.cookie-banner__text { flex: 1 1 400px; margin: 0; font-size: .93rem; line-height: 1.55; }
.cookie-banner__text strong { display: block; margin-bottom: 3px; font-family: var(--font-head); font-size: 1rem; color: #fff; }
.cookie-banner__text a { color: #9dc2ea; text-decoration: underline; }
.cookie-banner__text a:hover { color: #fff; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.cookie-banner .btn { min-height: 44px; padding: 11px 22px; font-size: .93rem; }

/* ---------- Pagina legale (Privacy) ---------- */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.35rem; margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: 1px solid var(--border); }
.legal > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal h3 { font-size: 1.05rem; margin-top: var(--sp-5); }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: var(--sp-5); display: grid; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.legal strong { color: var(--fg); }
.legal a { color: var(--blue); text-decoration: underline; }
.legal a:hover { color: var(--navy); }
.legal__meta {
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--blue);
  border-radius: var(--radius); padding: var(--sp-5); margin-bottom: var(--sp-6);
}
.legal__meta p:last-child { margin-bottom: 0; }
.legal__scroll { overflow-x: auto; }
.legal table { width: 100%; border-collapse: collapse; margin-bottom: var(--sp-5); font-size: .95rem; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.legal th { font-family: var(--font-head); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); white-space: nowrap; }
.legal td { color: var(--muted); }

/* ---------- Animazione reveal allo scroll ----------
   Progressive enhancement: il contenuto è visibile di default.
   Le animazioni si attivano solo quando il JS aggiunge la classe .js
   all'elemento <html> (così senza JS nulla resta nascosto). */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }

/* ---------- Responsive ---------- */
/* L'hero passa a colonna unica prima degli altri blocchi: affiancare
   testo + due pannelli sotto i 1100px lascerebbe i pannelli troppo stretti. */
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .hero__panel { order: 2; }
  .feature { grid-template-columns: 1fr; gap: var(--sp-5); }
  .feature:nth-child(even) .feature__media { order: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid--3, .grid--2, .contact-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: var(--sp-6); }

  .nav__brand-mark { height: 46px; }
  .nav__brand-payoff { font-size: 7.5px; }
  .nav__toggle { display: inline-flex; }
  .nav__list {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: var(--sp-3) var(--sp-5) var(--sp-5); box-shadow: var(--shadow-md);
    display: none;
  }
  .nav__list.open { display: flex; }
  .nav__link { padding: var(--sp-3) 0; border-bottom: 1px solid var(--border); }
  .nav__link::after { display: none; }
  .nav__list .btn { margin-top: var(--sp-4); }
}
@media (max-width: 560px) {
  /* Sotto i 560px tre loghi affiancati diventerebbero illeggibili */
  .hero-partnership__list { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}

@media (max-width: 480px) {
  .nav__brand-mark { height: 40px; }
  .nav__brand-payoff { font-size: 7px; letter-spacing: .08em; }
  .partner-card { gap: var(--sp-4); }
  .stats { grid-template-columns: 1fr; }
  .btn-row { flex-direction: column; }
  .btn { width: 100%; }
}

/* ---------- Preferenze di movimento ridotto ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .card:hover, .btn:hover, .contact-card:hover, .tech-chip:hover { transform: none; }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-6 { margin-top: var(--sp-6); }
