/* ==========================================================================
   Sis-tech Consulting — style.css
   Variabili e componenti ricavati dal design (artboard a 1440px).
   Indice: 1 Variabili · 2 Base · 3 Header · 4 Componenti comuni · 5 Home
           6 Footer · 7 Movimento · 8 Responsive
   ========================================================================== */


/* 1. VARIABILI
   -------------------------------------------------------------------------- */
:root {
  /* Colori */
  --navy: #001544;
  --navy-deep: #04205C;          /* fondo delle tavole tecniche */
  --accent: #007DD1;
  --accent-dark: #0062A8;
  --accent-text: #0070BA;        /* blu per testi piccoli su fondo chiaro (contrasto ≥ 4,5:1) */
  --accent-btn: #0072BE;         /* fondo dei pulsanti con testo bianco */
  --sky: #A5E0FF;
  --sky-text: #D4EEFF;           /* testo chiaro su fondo blu */
  --sky-pale: #E6F4FF;
  --white: #FFFFFF;

  --bg: #F6F9FC;
  --bg-alt: #EDF4FA;
  --bg-soft: #F2F7FC;

  --line: #D3E0EC;
  --line-soft: #DDE8F2;
  --line-strong: #C9D9E8;

  --ink: #0B1A33;
  --ink-strong: #1F2B3D;
  --text: #3D4B60;
  --muted: #4A5B73;

  /* Trasparenze su fondo scuro */
  --dark-line: rgba(165, 224, 255, 0.25);
  --dark-line-soft: rgba(165, 224, 255, 0.18);
  --dark-fill: rgba(165, 224, 255, 0.08);
  --dark-text-soft: rgba(212, 238, 255, 0.8);
  --blueprint-grid: rgba(165, 224, 255, 0.07);

  /* Font */
  --font-sans: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* Raggi */
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 24px;
  --r-xxl: 28px;
  --r-pill: 999px;

  /* Spazi (a 1440px: 96px laterali, 112px tra le sezioni) */
  --gutter: clamp(1.25rem, 6.667vw, 6rem);
  --section-y: clamp(4rem, 7.78vw, 7rem);
  --col-gap: 32px;
  --header-h: 96px;
  --page-max: 1440px;

  /* Movimento */
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}


/* 2. BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.85; }

button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--sky); }

.wrap {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 200;
  padding: 12px 20px; border-radius: var(--r-sm);
  background: var(--navy); color: var(--white); font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.on-dark { background: var(--navy); color: var(--white); }
.hl { color: var(--accent); }
.on-dark .hl { color: var(--sky); }

/* Tipografia ricorrente */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
}
.on-dark .eyebrow { color: var(--dark-text-soft); }
.on-dark .eyebrow::before { background: var(--sky); }

.section-title {
  margin-top: 20px;
  font-weight: 700;
  font-size: clamp(2.25rem, 4.167vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--navy);
}

/* Fondo "tavola tecnica": griglia a quadretti da 20px */
.blueprint {
  background-color: var(--navy);
  background-image:
    linear-gradient(var(--blueprint-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint-grid) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* Pulsanti */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  height: 56px; padding: 0 30px;
  border-radius: var(--r-pill);
  font-weight: 600; font-size: 1rem;
  transition: background-color 0.25s, transform 0.25s;
}
.btn--accent { background: var(--accent-btn); color: var(--white); }
.btn--accent:hover { opacity: 1; background: var(--accent-dark); }
.btn [aria-hidden] { transition: transform 0.25s var(--ease-out); }
.btn:hover [aria-hidden] { transform: translateX(4px); }


/* 3. HEADER E NAVIGAZIONE
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: var(--white);
  color: var(--navy);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s;
}
.site-header.is-scrolled { box-shadow: 0 10px 28px -12px rgba(0, 21, 68, 0.22); }

.site-header__inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { width: 180px; height: 55px; object-fit: contain; }

.nav__list {
  display: flex; align-items: center; gap: 40px;
  font-size: 1rem; font-weight: 500;
}
.nav__link[aria-current='page'] {
  color: var(--accent-text);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 10px;
}

/* Voce con tendina */
.nav__item--sub { position: relative; display: flex; align-items: center; gap: 2px; }
.nav__sub-toggle {
  display: grid; place-items: center;
  width: 28px; height: 28px; padding: 0;
  background: none; border: 0; border-radius: 50%; cursor: pointer;
}
.nav__sub-toggle svg { transition: transform 0.25s var(--ease-out); }
.nav__item--sub.is-open .nav__sub-toggle svg,
.nav__item--sub:hover .nav__sub-toggle svg { transform: rotate(180deg); }

.nav__sub {
  position: absolute; top: 100%; left: -20px;
  min-width: 270px; margin-top: 18px; padding: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: 0 24px 48px -20px rgba(0, 21, 68, 0.35);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.2s, transform 0.25s var(--ease-out), visibility 0.2s;
}
/* ponte invisibile: evita che la tendina si chiuda passando col mouse */
.nav__sub::before {
  content: ''; position: absolute; left: 0; right: 0; top: -20px; height: 20px;
}
.nav__item--sub:hover .nav__sub,
.nav__item--sub.is-open .nav__sub { opacity: 1; visibility: visible; transform: none; }

.nav__sub a {
  display: block; padding: 12px 16px;
  border-radius: var(--r-sm);
  font-size: 15.5px; font-weight: 500; line-height: 1.3;
}
.nav__sub a:hover { opacity: 1; background: var(--bg-alt); color: var(--accent-text); }
.nav__sub-all { font-weight: 600 !important; border-bottom: 1px solid var(--line); border-radius: var(--r-sm) var(--r-sm) 0 0 !important; margin-bottom: 4px; }

.btn-client {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 24px;
  background: var(--navy); color: var(--white);
  border-radius: var(--r-pill);
  font-weight: 600;
  transition: background-color 0.25s;
}
.btn-client:hover { opacity: 1; background: var(--accent-dark); }

/* Pulsante menu (solo mobile) */
.nav-toggle {
  display: none;
  width: 48px; height: 48px; padding: 0;
  background: none; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  cursor: pointer;
}
.nav-toggle__bars { position: relative; display: block; width: 20px; height: 2px; margin: auto; background: var(--navy); transition: background-color 0.2s; }
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: ''; position: absolute; left: 0; width: 20px; height: 2px; background: var(--navy);
  transition: transform 0.25s var(--ease-out);
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }


/* 4. COMPONENTI COMUNI A PIÙ PAGINE
   -------------------------------------------------------------------------- */

/* Tavola tecnica con cartiglio (hero delle pagine) */
.tech-figure {
  border: 1px solid var(--dark-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background-color: var(--navy-deep);
  background-image:
    linear-gradient(var(--blueprint-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint-grid) 1px, transparent 1px);
  background-size: 20px 20px;
}
.tech-figure figcaption {
  height: 42px;
  display: grid; grid-template-columns: 96px 1fr 128px;
  border-top: 1px solid var(--dark-line);
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--dark-text-soft);
}
.tech-figure figcaption span { display: flex; align-items: center; padding-left: 16px; }
.tech-figure figcaption span:not(:last-child) { border-right: 1px solid var(--dark-line); }

/* Card servizio */
.card {
  position: relative;
  min-height: 560px;
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.card__art { position: relative; height: 260px; flex-shrink: 0; }
.card__art svg { width: 100%; height: 100%; }
.card__fig {
  position: absolute; top: 18px; left: 20px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  color: rgba(212, 238, 255, 0.7);
}
.card__body { flex: 1; display: flex; flex-direction: column; padding: 36px 40px 40px; }
.card__num { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--accent-text); }
.card__title {
  margin-top: 12px;
  font-weight: 700; font-size: clamp(1.5rem, 2.083vw, 1.875rem);
  line-height: 1.12; letter-spacing: -0.02em; color: var(--navy);
}
.card__text { margin-top: 16px; font-size: 17px; line-height: 1.6; color: var(--text); }

.btn-outline {
  align-self: flex-start; margin-top: auto;
  display: flex; align-items: center; gap: 12px;
  height: 48px; padding: 0 22px;
  font-weight: 600; font-size: 15px; color: var(--navy);
  border: 1.5px solid var(--navy); border-radius: var(--r-pill);
  transition: background-color 0.25s, color 0.25s;
}
/* l'intera card diventa cliccabile */
.card .btn-outline::after { content: ''; position: absolute; inset: 0; }
.btn-outline [aria-hidden] { transition: transform 0.25s var(--ease-out); }

.card:hover { translate: 0 -4px; border-color: var(--line-strong); box-shadow: 0 28px 48px -28px rgba(0, 21, 68, 0.4); }
.card:hover .btn-outline { opacity: 1; background: var(--navy); color: var(--white); }
.card:hover .btn-outline [aria-hidden] { transform: translateX(4px); }


/* 5. HOME
   -------------------------------------------------------------------------- */

/* Hero */
.hero { padding-top: 80px; padding-bottom: 80px; min-height: 800px; display: flex; }
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 608fr) minmax(0, 560fr);
  column-gap: 80px;
}
.hero__copy { display: flex; flex-direction: column; }

.pill {
  align-self: flex-start; max-width: 560px;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 18px;
  border: 1px solid rgba(165, 224, 255, 0.35); border-radius: var(--r-pill);
  font-size: 15px; line-height: 1.4; color: var(--sky-text);
}
.pill::before { content: ''; width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%; background: var(--sky); }

.hero__title {
  margin-top: 48px;
  font-weight: 700; font-size: clamp(2.75rem, 6.111vw, 5.5rem);
  line-height: 0.98; letter-spacing: -0.04em;
}
.hero__lead { margin-top: 36px; max-width: 480px; font-size: clamp(1.1875rem, 1.53vw, 1.375rem); line-height: 1.45; color: var(--sky-text); }

.hero__links {
  margin-top: auto; padding-top: 48px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
}
.hero__links a {
  display: flex; justify-content: space-between; align-items: center;
  height: 60px; padding: 0 20px;
  background: var(--dark-fill);
  border: 1px solid var(--dark-line-soft); border-radius: var(--r-sm);
  font-size: 1rem; font-weight: 500;
  transition: background-color 0.25s, border-color 0.25s;
}
.hero__links a:hover { opacity: 1; background: rgba(165, 224, 255, 0.16); border-color: rgba(165, 224, 255, 0.4); }
.hero__links .num { margin-right: 12px; font-family: var(--font-mono); font-size: 12px; color: var(--sky); }
.hero__links [aria-hidden] { color: var(--sky); transition: transform 0.25s var(--ease-out); }
.hero__links a:hover [aria-hidden] { transform: translateX(4px); }

.hero__figure { align-self: start; }
.hero__svg { width: 100%; height: auto; aspect-ratio: 558 / 560; }

/* Chi siamo */
.about { background: var(--white); padding-top: var(--section-y); padding-bottom: calc(var(--section-y) * 1.3); }
.about__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }
.about__main { grid-column: span 6; }
.about__main .section-title { margin-top: 24px; font-size: clamp(2.25rem, 4.444vw, 4rem); }
.stat { margin-top: 48px; display: flex; align-items: flex-end; gap: 20px; }
.stat__num { font-weight: 700; font-size: clamp(6rem, 10.417vw, 9.375rem); line-height: 0.8; letter-spacing: -0.06em; color: var(--navy); }
.stat__num .plus { color: var(--accent); }
.stat__label {
  padding-bottom: 6px;
  font-family: var(--font-mono); font-size: 12px; line-height: 1.6;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.about__side { grid-column: 8 / span 5; display: flex; flex-direction: column; align-items: flex-start; padding-top: 44px; }
.about__side p { font-size: clamp(1.125rem, 1.389vw, 1.25rem); line-height: 1.65; color: var(--ink-strong); }
.about__side .btn { margin-top: 40px; }

/* Servizi */
.services { background: var(--bg-alt); padding-block: var(--section-y); }
.services__head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 24px; }
.services__head .section-title { max-width: 860px; }
.chip {
  display: inline-flex; align-items: center;
  height: 40px; padding: 0 18px;
  border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  background: var(--white);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.cards { margin-top: 64px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }

/* Affiancamento */
.support { min-height: 560px; display: flex; align-items: center; padding-block: 72px; }
.support__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: center; }
.support__copy { grid-column: span 7; }
.support__title {
  margin-top: 24px;
  font-weight: 700; font-size: clamp(2.125rem, 4.028vw, 3.625rem);
  line-height: 1.04; letter-spacing: -0.035em;
}
.support__text { margin-top: 32px; max-width: 620px; font-size: clamp(1.0625rem, 1.32vw, 1.1875rem); line-height: 1.65; color: var(--sky-text); }
.support__art { grid-column: 9 / span 4; display: flex; justify-content: flex-end; }
.support__art svg { width: 340px; height: auto; }

/* Metodo */
.method { background: var(--white); padding-top: var(--section-y); padding-bottom: calc(var(--section-y) * 1.35); }
.features { margin-top: 56px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.feature {
  min-height: 220px; padding: 40px;
  display: flex; gap: 28px;
  background: var(--bg-soft); border: 1px solid var(--line-soft); border-radius: var(--r-lg);
}
.feature__icon {
  width: 64px; height: 64px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: var(--r-md); background: var(--navy);
}
.feature__title { font-weight: 700; font-size: clamp(1.375rem, 1.944vw, 1.75rem); line-height: 1.15; letter-spacing: -0.02em; color: var(--navy); }
.feature__text { margin-top: 14px; font-size: 17px; line-height: 1.6; color: var(--text); }

/* Chiusura */
.closing { background: var(--white); padding-block: 60px; }
.closing__box {
  min-height: 400px; padding: 56px clamp(1.75rem, 5.556vw, 5rem);
  display: flex; flex-direction: column; justify-content: center;
  border-radius: var(--r-xxl);
  background: var(--accent); color: var(--white);
}
.closing__text {
  margin-top: 36px; max-width: 1040px;
  font-weight: 600; font-size: clamp(1.75rem, 3.472vw, 3.125rem);
  line-height: 1.14; letter-spacing: -0.03em;
}
.closing__em {
  white-space: nowrap;
  text-decoration: underline; text-decoration-color: var(--sky);
  text-decoration-thickness: 4px; text-underline-offset: 8px;
}


/* 5b. PAGINE INTERNE
   -------------------------------------------------------------------------- */

/* Testata blu con percorso, titolo e tavola tecnica (comune a tutte le pagine interne) */
.page-hero { padding-block: 72px 88px; }
.page-hero__inner { display: flex; align-items: center; gap: 80px; }
.page-hero__copy { flex: 1 1 auto; min-width: 0; }
.breadcrumb {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sky);
}
.breadcrumb [aria-current='page'] { color: var(--white); }
.page-hero__title {
  margin-top: 36px;
  font-weight: 700; font-size: clamp(2.75rem, 6.667vw, 6rem);
  line-height: 0.96; letter-spacing: -0.045em;
}
.page-hero__title--sm { font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1; letter-spacing: -0.04em; }
.page-hero__figure { width: 520px; flex-shrink: 0; }
.page-hero__figure svg { width: 100%; height: auto; aspect-ratio: 518 / 310; }

/* Pagina Sicurezza 360°: elenco dei servizi (riusa .card, con etichette e pulsante pieno) */
.services--page { padding-block: 96px 112px; }
.cards--page { margin-top: 0; }
.cards--page .card { min-height: 660px; }
.tags { margin-top: 20px; margin-bottom: 28px; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.tag {
  display: flex; align-items: center; height: 32px; padding: 0 14px;
  border-radius: var(--r-pill); background: var(--bg-alt);
  font-size: 13.5px; font-weight: 500; color: var(--navy);
}
.btn-outline--solid { background: var(--navy); color: var(--white); border-color: var(--navy); }
.card:hover .btn-outline--solid { background: var(--accent-btn); border-color: var(--accent-btn); }

/* Elenco dei servizi di una pagina: icona e titolo a sinistra, testo a destra */
.offer { background: var(--white); padding-block: var(--section-y); }
.offer .section-title { margin-bottom: 56px; }
.rows { border-bottom: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap);
  padding-block: 48px; border-top: 1px solid var(--line);
}
.row__head { grid-column: span 5; display: flex; align-items: flex-start; gap: 24px; }
.row__icon { width: 72px; height: 72px; flex-shrink: 0; display: grid; place-items: center; border-radius: 18px; background: var(--navy); }
.row__num { display: block; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--accent-text); }
.row__title { margin-top: 10px; font-weight: 700; font-size: clamp(1.5rem, 2.083vw, 1.875rem); line-height: 1.12; letter-spacing: -0.02em; color: var(--navy); }
.row__text { grid-column: 7 / span 6; font-size: 18px; line-height: 1.7; color: var(--text); }
.row__text p + p { margin-top: 16px; }
.row__text a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }

/* Formazione: sottotitolo della testata, approccio, fasi e griglia dei corsi */
.page-hero__lead { margin-top: 32px; max-width: 600px; font-size: clamp(1.375rem, 1.944vw, 1.75rem); line-height: 1.3; letter-spacing: -0.01em; color: var(--sky-text); }
.approach { background: var(--white); padding-block: var(--section-y); }
.approach__intro { grid-column: span 5; }
.approach__lead { margin-top: 24px; font-weight: 700; font-size: clamp(1.75rem, 2.778vw, 2.5rem); line-height: 1.12; letter-spacing: -0.03em; color: var(--navy); }
.approach__body { grid-column: 7 / span 6; display: flex; flex-direction: column; gap: 32px; padding-top: 44px; }
.approach__body p { font-size: 19px; line-height: 1.7; color: var(--text); }
.steps { margin-top: 8px; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.steps li { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.steps li::before { content: ''; display: block; height: 6px; margin-bottom: 8px; border-radius: 3px; background: var(--navy); }
.steps li:nth-child(2)::before { background: var(--accent-dark); }
.steps li:nth-child(3)::before { background: var(--accent); }
.steps li:nth-child(4)::before { background: var(--sky); }
.approach__body .pull { margin-top: 16px; padding-left: 20px; border-left: 3px solid var(--sky); font-weight: 600; font-size: 22px; line-height: 1.45; letter-spacing: -0.01em; color: var(--navy); }
.courses { background: var(--bg-alt); padding-block: var(--section-y); }
.courses .section-title { margin-bottom: 56px; }
.course-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.course { padding: 32px; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); }
.course__top { display: flex; justify-content: space-between; align-items: center; }
.course__num { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--accent-text); }
.course__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sky); }
.course__title { margin-top: 28px; font-weight: 700; font-size: 23px; line-height: 1.18; letter-spacing: -0.015em; color: var(--navy); }
.course__text { margin-top: 14px; font-size: 15.5px; line-height: 1.6; color: var(--text); }

/* Pagine di servizio: privacy, cookie, 404 */
.legal { background: var(--white); padding-block: var(--section-y); }
.legal__body { max-width: 760px; font-size: 18px; line-height: 1.7; color: var(--text); }
.legal__body p + p { margin-top: 20px; }
.legal__body .btn { margin-top: 36px; }

/* Foto con bordi arrotondati */
.photo { overflow: hidden; border-radius: var(--r-xl); }
.photo img { width: 100%; height: 456px; object-fit: cover; object-position: center 45%; }
.photo-caption {
  margin-top: 16px; display: flex; justify-content: space-between; gap: 16px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.photo-caption span:last-child { color: var(--accent-text); }

/* Chi siamo — lo studio */
.studio { background: var(--white); padding-block: var(--section-y); }
.studio__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: center; }
.studio__copy { grid-column: span 6; }
.studio__figure { grid-column: 7 / span 6; }
.studio__lead {
  margin-top: 28px;
  font-weight: 600; font-size: clamp(1.5rem, 2.083vw, 1.875rem);
  line-height: 1.3; letter-spacing: -0.02em; color: var(--navy);
}
.studio__text { margin-top: 32px; font-size: clamp(1.0625rem, 1.32vw, 1.1875rem); line-height: 1.7; color: var(--text); }
.tiles { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tile { padding: 20px; border-radius: var(--r-md); background: var(--bg-soft); border: 1px solid var(--line-soft); }
.tile__value { font-weight: 700; font-size: 36px; letter-spacing: -0.04em; color: var(--navy); }
.tile__value--accent { color: var(--accent); }
.tile__label {
  margin-top: 4px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
}

/* Chi siamo — network: schema con Sis-tech al centro (proporzioni di 616×520) */
.network { background: var(--bg-alt); padding-block: var(--section-y); }
.network__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: center; }
.network__copy { grid-column: span 5; display: flex; flex-direction: column; gap: 22px; }
.network__lead {
  margin-top: 6px;
  font-weight: 700; font-size: clamp(1.5rem, 2.361vw, 2.125rem);
  line-height: 1.18; letter-spacing: -0.025em; color: var(--navy);
}
.network__copy p:not(.eyebrow):not(.network__lead) { font-size: 18px; line-height: 1.7; color: var(--text); }
.network__diagram { grid-column: 7 / span 6; position: relative; aspect-ratio: 616 / 520; }
.network__lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.network__hub {
  position: absolute; left: 38.6%; top: 36.5%; width: 22.7%; aspect-ratio: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  border-radius: 50%; background: var(--navy); color: var(--white);
  box-shadow: 0 0 0 10px var(--bg-alt), 0 0 0 11px var(--sky);
}
.network__hub strong { font-weight: 700; font-size: clamp(1rem, 1.53vw, 1.375rem); letter-spacing: -0.01em; }
.network__hub span {
  margin-top: 4px; padding-inline: 8px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sky);
}
.node {
  position: absolute; width: 32.5%; height: 10.8%; padding-inline: 18px;
  display: flex; align-items: center;
  border-radius: 14px; background: var(--white); border: 1px solid var(--line-strong);
  font-weight: 600; font-size: 15px; line-height: 1.2; color: var(--navy);
}
.node--1, .node--2, .node--3 { left: 0; }
.node--4, .node--5, .node--6 { left: 67.5%; }
.node--1, .node--4 { top: 10%; }
.node--2, .node--5 { top: 44.6%; }
.node--3, .node--6 { top: 79.2%; }

/* Chi siamo — realtà dinamica */
.dynamic { background: var(--white); padding-block: var(--section-y); }
.dynamic__head { margin-top: 20px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: end; }
.dynamic__title {
  grid-column: span 6;
  font-weight: 700; font-size: clamp(2.25rem, 4.444vw, 4rem);
  line-height: 1; letter-spacing: -0.04em; color: var(--navy);
}
.dynamic__lead { grid-column: 7 / span 6; font-size: clamp(1.1875rem, 1.53vw, 1.375rem); line-height: 1.5; color: var(--ink-strong); }
.dynamic__figure { position: relative; margin-top: 56px; }
.photo--wide { height: 560px; }
.photo--wide img { height: calc(100% + 80px); margin-top: -40px; object-position: center 40%; will-change: transform; }
.photo-tag {
  position: absolute; left: 24px; bottom: 24px;
  height: 40px; padding: 0 18px;
  display: flex; align-items: center; gap: 10px;
  border-radius: var(--r-pill); background: rgba(0, 21, 68, 0.82); color: var(--white);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
}
.photo-tag::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--sky); }
.notes { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.note { padding: 36px; border-radius: var(--r-lg); background: var(--bg-soft); border: 1px solid var(--line-soft); }
.note__icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 14px; background: var(--navy); }
.note__text { margin-top: 24px; font-size: 18px; line-height: 1.65; color: var(--ink-strong); }
.quote {
  margin-top: 24px; padding: 56px 64px;
  display: flex; align-items: center; gap: 40px;
  border-radius: var(--r-xl); background: var(--accent); color: var(--white);
}
.quote svg { flex-shrink: 0; }
.quote p { font-weight: 600; font-size: clamp(1.5rem, 2.639vw, 2.375rem); line-height: 1.2; letter-spacing: -0.025em; }


/* 6. FOOTER
   -------------------------------------------------------------------------- */
.site-footer { padding-top: 80px; padding-bottom: 40px; }
.site-footer__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 40px; }
.site-footer__brand { grid-column: span 4; align-self: flex-start; }
.site-footer__logo { display: inline-flex; padding: 12px 16px; background: var(--white); border-radius: var(--r-sm); }
.site-footer__logo img { width: 160px; height: 49px; object-fit: contain; }
.site-footer__col--mail { grid-column: span 3; }
.site-footer__col--tel { grid-column: span 2; }
.site-footer__col--sede { grid-column: span 3; }
.site-footer__label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sky);
}
.site-footer__value { display: block; margin-top: 12px; font-size: 18px; line-height: 1.5; font-style: normal; }
.site-footer__bottom {
  margin-top: 96px; padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px;
  border-top: 1px solid rgba(165, 224, 255, 0.2);
  font-size: 13px; color: var(--dark-text-soft);
}
.site-footer__credit { text-decoration: underline; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.site-footer__links a:hover { color: var(--white); opacity: 1; }


/* 7. MOVIMENTO
   Gli elementi vengono nascosti solo se JavaScript è attivo (classe .js
   sull'<html>), così senza script il contenuto resta sempre visibile.
   -------------------------------------------------------------------------- */

/* Comparsa al scroll */
.js [data-reveal] { opacity: 0; transform: translateY(28px); }
.js [data-reveal].is-visible {
  opacity: 1; transform: none;
  transition:
    opacity 0.8s ease var(--d, 0s),
    transform 0.9s var(--ease-out) var(--d, 0s),
    translate 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Disegno tecnico dell'hero: tratti che si disegnano, elementi che compaiono */
.js .fx-draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .fx-fade, .js .fx-route, .js .fx-pop { opacity: 0; }
.js .fx-pop { transform: scale(0.5); transform-box: fill-box; transform-origin: center; }

.js .is-visible .fx-draw {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset var(--dur, 1.4s) cubic-bezier(0.6, 0, 0.2, 1) var(--delay, 0s);
}
.js .is-visible .fx-fade,
.js .is-visible .fx-route { opacity: 1; transition: opacity 0.8s ease var(--delay, 0s); }
.js .is-visible .fx-pop {
  opacity: 1; transform: none;
  transition: opacity 0.5s ease var(--delay, 0s), transform 0.6s var(--ease-out) var(--delay, 0s);
}
/* il percorso di fuga scorre lentamente */
@keyframes route-flow { to { stroke-dashoffset: -28; } }
.is-visible .fx-route { animation: route-flow 2.4s linear infinite; }

/* Sottolineatura finale: si "inchiostra" quando il blocco entra */
.js .closing__em { text-decoration-color: transparent; text-decoration-thickness: 0; }
.js .is-visible .closing__em {
  text-decoration-color: var(--sky); text-decoration-thickness: 4px;
  transition: text-decoration-color 0.6s ease 0.5s, text-decoration-thickness 0.6s ease 0.5s;
}

/* Foto: si scoprono dall'alto e si assestano da un leggero ingrandimento
   (data-photo sta sulla figura, che l'osservatore vede sempre; il ritaglio è sul riquadro .photo) */
.js [data-photo] .photo { clip-path: inset(0 0 100% 0 round var(--r-xl)); }
.js [data-photo] .photo img { scale: 1.12; }
.js [data-photo].is-visible .photo { clip-path: inset(0 0 0 0 round var(--r-xl)); transition: clip-path 1.1s var(--ease-out); }
.js [data-photo].is-visible .photo img { scale: 1; transition: scale 1.6s var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-photo] .photo { clip-path: none; }
  .js [data-photo] .photo img { scale: 1; }
  .js [data-reveal], .js .fx-fade, .js .fx-route, .js .fx-pop { opacity: 1; transform: none; }
  .js .fx-draw { stroke-dashoffset: 0; }
  .js .closing__em { text-decoration-color: var(--sky); text-decoration-thickness: 4px; }
}


/* 8. RESPONSIVE
   Il design esiste solo a 1440px: tablet e mobile sono derivati.
   -------------------------------------------------------------------------- */

/* Tablet e inferiori: menu a pulsante, colonne che si impilano */
@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    padding: 8px var(--gutter) 28px;
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(0, 21, 68, 0.3);
  }
  .site-nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list > li { border-bottom: 1px solid var(--line); }
  .nav__list > li:last-child { border-bottom: 0; padding-top: 20px; }
  .nav__list > li > a, .nav__item--sub > a { padding: 16px 0; }
  .nav__item--sub { flex-wrap: wrap; justify-content: space-between; }
  .nav__item--sub > a { flex: 1; }
  .nav__sub-toggle { width: 44px; height: 44px; }
  .nav__sub-toggle svg { width: 14px; height: 14px; }
  .nav__item--sub:hover .nav__sub-toggle svg { transform: none; }
  .nav__item--sub.is-open .nav__sub-toggle svg { transform: rotate(180deg); }
  .nav__sub {
    position: static; display: none; width: 100%; min-width: 0;
    margin: 0 0 12px; padding: 0 0 4px 16px;
    border: 0; border-left: 2px solid var(--line); border-radius: 0;
    box-shadow: none; opacity: 1; visibility: visible; transform: none;
  }
  .nav__sub::before { display: none; }
  .nav__item--sub:hover .nav__sub { display: none; }
  .nav__item--sub.is-open .nav__sub { display: block; }
  .nav__sub a { padding: 12px 8px; }
  .nav__sub-all { border-bottom: 0 !important; margin-bottom: 0 !important; }
  .btn-client { width: 100%; justify-content: center; }

  .hero { min-height: 0; padding-top: 56px; padding-bottom: 64px; }
  .hero__inner { grid-template-columns: minmax(0, 1fr); row-gap: 56px; }
  .hero__title { margin-top: 36px; }
  .hero__links { padding-top: 40px; }
  .hero__figure { max-width: 640px; }

  .about__main, .about__side { grid-column: 1 / -1; }
  .approach__intro, .approach__body { grid-column: 1 / -1; }
  .approach__body { padding-top: 40px; }
  .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about__side { padding-top: 40px; }
  .support__copy, .support__art { grid-column: 1 / -1; }
  .support__art { justify-content: flex-start; margin-top: 48px; }

  .site-footer__brand { grid-column: 1 / -1; }
  .site-footer__col--mail, .site-footer__col--tel, .site-footer__col--sede { grid-column: span 4; }

  .page-hero { padding-block: 56px 64px; }
  .page-hero__inner { flex-direction: column; align-items: flex-start; gap: 48px; }
  .page-hero__title { margin-top: 28px; }
  .page-hero__figure { width: min(520px, 100%); }

  .studio__copy, .studio__figure,
  .network__copy, .network__diagram,
  .dynamic__title, .dynamic__lead { grid-column: 1 / -1; }
  .studio__figure { margin-top: 48px; }
  .network__diagram { width: 100%; max-width: 616px; margin-top: 56px; }
  .dynamic__head { row-gap: 20px; }
  .notes { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  :root { --col-gap: 0px; }
  .course-grid { grid-template-columns: minmax(0, 1fr); }
  .row__head, .row__text { grid-column: 1 / -1; }
  .row__text { margin-top: 24px; }
  .cards, .features { grid-template-columns: minmax(0, 1fr); }
  .card, .cards--page .card { min-height: 0; }
  .site-footer__col--mail, .site-footer__col--tel, .site-footer__col--sede { grid-column: 1 / -1; }
  .site-footer__bottom { margin-top: 56px; }
}

/* Mobile */
@media (max-width: 600px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
  .course-grid { grid-template-columns: minmax(0, 1fr); }
  :root { --header-h: 76px; }
  .brand img { width: 144px; height: 44px; }
  .hero__links { grid-template-columns: minmax(0, 1fr); }
  .pill { font-size: 14px; }
  .hero__lead { margin-top: 28px; }
  .tech-figure figcaption { grid-template-columns: 72px 1fr 112px; font-size: 10px; letter-spacing: 0.08em; }
  .stat { gap: 14px; }
  .card__body { padding: 28px 24px 32px; }
  .feature { padding: 28px 24px; gap: 20px; flex-direction: column; }
  .support { padding-block: 64px; }
  .support__art svg { width: 240px; }
  .closing { padding-block: 32px; }
  .closing__box { min-height: 0; padding-block: 48px; }
  .closing__text { margin-top: 28px; }
  .closing__em { white-space: normal; }

  .page-hero__figure figcaption { grid-template-columns: 72px 1fr 112px; }
  .photo:not(.photo--wide) img { height: 300px; }
  .photo--wide { height: 340px; }
  .photo-tag { left: 16px; bottom: 16px; }
  .tile { padding: 16px; }
  .tile__value { font-size: 28px; }
  .note { padding: 28px 24px; }
  .quote { padding: 36px 28px; flex-direction: column; align-items: flex-start; gap: 24px; }
}

/* Schema network: sotto i 760px diventa un elenco ordinato */
@media (max-width: 760px) {
  .network__diagram {
    aspect-ratio: auto; margin-top: 40px;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
  }
  .network__lines { display: none; }
  .network__hub, .node { position: static; width: auto; height: auto; }
  .network__hub {
    grid-column: 1 / -1; justify-self: center; width: 160px; margin-bottom: 20px;
    box-shadow: 0 0 0 8px var(--bg-alt), 0 0 0 9px var(--sky);
  }
  .node { min-height: 56px; padding: 12px 16px; font-size: 14px; }
}
