/* ==========================================================================
   SR-LEX – foglio di stile unico
   Ordine: token → base → layout → header → hero → sezioni pagina → footer
           → responsive (1000 / 900 / 560 px)
   ========================================================================== */

/* ---------- Font (ospitato in locale, licenza SIL OFL: fonts/OFL-Manrope.txt) ---------- */
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-latin-var.woff') format('woff');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Token ---------- */
:root {
  --navy: #111a2b;
  --ink: #1f2633;
  --text: #2a2f38;
  --teal: #00616d;          /* pulsanti "Candidati" */
  --teal-dark: #004e58;
  --teal-link: #0e6773;     /* link, timeline */
  --teal-home: #1f7887;     /* pulsante Candidati della home */
  --sky: #f0f8fa;           /* sfondo Professionisti / Sede / fascia missione */
  --sand: #f6f2ea;          /* sfondo "Il legato" */
  --sand-line: #d3cdbf;
  --muted-footer: #8a93a3;
  --linkedin: #3a8fc9;
  --focus: #3fa9b8;

  --font-head: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  --font-home: 'Manrope', 'Helvetica Neue', Arial, sans-serif;

  --container: 1064px;
  --gutter: 32px;
  --hero-h: 527px;
  --hdr-h: 150px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-link); }
a:hover { color: #0a4c55; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
h1, h2, h3 { margin: 0; }
address { font-style: normal; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: #fff; color: var(--navy); padding: 10px 16px; border-radius: 4px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap--wide { max-width: calc(1215px + 2 * var(--gutter)); }
main:focus { outline: none; }

/* ---------- Header ---------- */
.hdr { position: absolute; top: 0; left: 0; right: 0; z-index: 10; }
.hdr__in {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--hdr-h);
}
.hdr__logo { display: block; width: 80px; }
.hdr__logo img { width: 80px; }

.nav { display: flex; align-items: center; gap: 33px; }
.nav__link {
  color: #fff; text-decoration: none;
  font-weight: 600; font-size: 15.5px;
  padding: 10px 0;
  border-bottom: 2px solid transparent;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .5);
}
.nav__link:hover { color: #fff; border-bottom-color: currentColor; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 42px; padding: 0 26px; border-radius: 6px;
  background: var(--teal); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .12);
  border: 0; cursor: pointer;
}
.btn:hover { background: var(--teal-dark); color: #fff; }

.burger {
  display: none; width: 44px; height: 44px; padding: 0;
  align-items: center; justify-content: center;
  background: transparent; border: 0; color: #fff; cursor: pointer;
}
.burger .ico-close { display: none; }
.burger[aria-expanded="true"] .ico-open { display: none; }
.burger[aria-expanded="true"] .ico-close { display: block; }

.mnav {
  position: absolute; top: 100%; left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter));
  z-index: 20; background: var(--navy);
  padding: 8px var(--gutter) 24px;
  display: flex; flex-direction: column;
}
.mnav[hidden] { display: none; }
.mnav a {
  color: #fff; text-decoration: none; font-weight: 600; font-size: 18px;
  min-height: 48px; display: flex; align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.mnav a[aria-current="page"] { color: #8fd3dc; }
.mnav .mnav__cta {
  margin-top: 16px; justify-content: center; border: 0; border-radius: 5px;
  background: var(--teal); letter-spacing: .16em; font-size: 14px; text-transform: uppercase;
}

/* Variante chiara (Professionisti): fascia "smerigliata" e testi scuri */
.hdr--light { background: rgba(246, 247, 248, .55); border-bottom: 1px solid rgba(255, 255, 255, .5); }
.hdr--light .nav__link { color: #1d2433; font-weight: 500; text-shadow: none; padding: 8px 0; }
.hdr--light .nav__link:hover { color: #1d2433; }
.hdr--light .nav__link.is-active { font-weight: 700; border-bottom-color: var(--navy); }
.hdr--light .btn { box-shadow: none; }
.hdr--light .burger { color: var(--navy); }

/* Variante Home: barra scura statica, tipografia leggermente più compatta */
.hdr--home { position: static; background: var(--navy); }
.hdr--home .hdr__in { height: 178px; }
.hdr--home .hdr__logo, .hdr--home .hdr__logo img { width: 66px; }
.hdr--home .nav { gap: 30px; }
.hdr--home .nav__link {
  font-family: var(--font-home); font-weight: 500; font-size: 15.5px; text-shadow: none;
}
.hdr--home .btn {
  font-family: var(--font-home); font-weight: 600; font-size: 15px;
  letter-spacing: 0; text-transform: none; height: 41px; padding: 0 22px;
  border-radius: 5px; background: var(--teal-home); box-shadow: none;
}
.hdr--home .btn:hover { background: #17636f; }
.hdr--home .mnav { left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter)); border-top: 1px solid rgba(255,255,255,.12); }

/* Variante a fondo pieno (pagine legali, senza foto di testata) */
.hdr--solid { position: relative; background: var(--navy); }
.hdr--solid .hdr__in { height: 120px; }
.hdr--solid .hdr__logo, .hdr--solid .hdr__logo img { width: 66px; }
.hdr--solid .nav__link { text-shadow: none; }
.hdr--solid .btn { box-shadow: none; }

/* ---------- Hero pagine interne ---------- */
.hero { position: relative; height: var(--hero-h); overflow: hidden; background: #3a3f46; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__title {
  position: absolute; left: 0; right: 0; top: var(--title-top, 226px);
  padding: 0 20px; text-align: center;
  font-family: var(--font-head); font-weight: 600;
  font-size: var(--title-size, 56px); line-height: 1.1;
  letter-spacing: var(--title-ls, .5px);
  color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
  z-index: 2;
}
.hero--professionisti { --title-top: 236px; --title-ls: 4px; background: #8a8f94; }
.hero--collaborazioni { --hero-h: 519px; --title-top: 228px; --title-size: 50px; background: #4f6a62; }
.hero--sede { --title-top: 230px; background: #6b5a4a; }
/* Foto chiara (cielo al tramonto): velatura blu notte come nel mockup, più forte in alto
   per tenere leggibili menu e titolo bianchi. */
.hero--sede::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(17, 26, 43, .50) 0%, rgba(17, 26, 43, .42) 62%, rgba(17, 26, 43, .14) 100%);
}
.hero--sede .hero__title { text-shadow: 0 2px 14px rgba(17, 26, 43, .55); }
.hero--lavora { --title-top: 230px; --title-ls: 1px; background: #4f6a62; }

/* ---------- Home ---------- */
.page-home { background: var(--navy); }
.home-hero {
  position: relative; height: 625px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.home-hero .hero__img { object-position: center; }
.home-hero__txt { position: relative; max-width: 920px; padding: 0 32px 90px; }
.home-hero h1 {
  font-family: var(--font-home); font-weight: 700; font-size: 56px; line-height: 1.14;
  letter-spacing: -.025em; color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .35);
}
.home-hero p {
  margin: 28px auto 0; max-width: 720px;
  font-family: var(--font-home); font-size: 18px; line-height: 1.6;
  color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .45);
}
.home-spacer { height: 110px; }

/* ---------- Titoli di sezione ---------- */
.h-sec { font-family: var(--font-head); font-weight: 700; letter-spacing: -.015em; color: var(--navy); }

/* ---------- Chi siamo ---------- */
.intro { display: grid; grid-template-columns: 490px minmax(0, 1fr); padding: 112px 0 104px; }
.intro__title { font-size: 42px; line-height: 1.2; padding-right: 40px; }
.prose p { margin: 0 0 20px; font-size: 16px; line-height: 1.78; color: var(--text); }
.prose p:last-child { margin-bottom: 0; }

.band { background: var(--sky); }
.band__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 70px; padding: 96px 0 100px; }
.band h2 { font-size: 27px; margin-bottom: 22px; }
.band p { margin: 0; font-size: 15.5px; line-height: 1.75; color: var(--text); }

.legacy { background: var(--sand); padding: 92px 0 110px; }
.legacy__title { font-weight: 600; font-size: 36px; line-height: 1.25; }

.legacy__fig { margin: 38px 0 0; height: 620px; background: #2b5560; overflow: hidden; }
.legacy__fig img { width: 100%; height: 100%; object-fit: cover; }

.tl { position: relative; margin: 58px 0 0; padding: 0; list-style: none; }
.tl::before { content: ""; position: absolute; left: 10px; top: 4px; bottom: 0; width: 2px; background: var(--sand-line); }
.tl__item { position: relative; display: grid; grid-template-columns: 300px minmax(0, 1fr); padding: 0 0 46px 74px; }
.tl__item:last-child { padding-bottom: 30px; }
.tl__dot {
  position: absolute; left: 0; top: 6px; width: 22px; height: 22px;
  border: 3px solid var(--teal-link); border-radius: 50%; background: var(--sand);
}
.tl__num { display: block; font-family: var(--font-head); font-weight: 700; font-size: 12px; letter-spacing: .22em; color: var(--teal-link); }
.tl__item h3 { margin-top: 20px; font-size: 24px; line-height: 1.25; padding-right: 24px; }
.tl__item p { margin: 0; font-size: 16px; line-height: 1.78; color: var(--text); }

.closing { margin: 18px 0 0 74px; padding-top: 56px; border-top: 1px solid #d9d2c2; max-width: 900px; }
.closing p { margin: 0; font-family: var(--font-head); font-weight: 500; font-size: 28px; line-height: 1.42; letter-spacing: -.015em; color: #17323f; }

/* ---------- Professionisti ---------- */
.page-professionisti { background: var(--sky); }
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 44px; row-gap: 64px; padding: 92px 0 76px; }
.card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.card h2 { margin: 32px 0 14px; font-family: var(--font-head); font-weight: 700; font-size: 22px; line-height: 1.25; letter-spacing: -.015em; color: var(--navy); }
.card p { margin: 0; font-size: 14.5px; line-height: 1.75; color: #2f3540; }
.card a { overflow-wrap: anywhere; }

/* ---------- Collaborazioni ---------- */
.section-text { padding: 112px 0 150px; }
.lead { margin: 0; max-width: 910px; font-size: 19px; line-height: 1.68; color: var(--ink); }

/* ---------- Sede ---------- */
.page-sede { background: var(--sky); }
.contacts { padding: 90px 0 104px; }
.contacts h2 { font-size: 32px; margin-bottom: 34px; }
.contacts > .wrap > p { margin: 0 0 30px; font-size: 17px; line-height: 1.6; }
.contacts address { font-size: 16px; line-height: 1.75; }
.contacts address a { color: var(--ink); text-decoration: none; }
.contacts address a:hover { text-decoration: underline; }
.map { position: relative; margin-top: 52px; height: 372px; border: 1px solid #d3dde1; background: #e4ecef; overflow: hidden; }
.map__frame { display: block; width: 100%; height: 100%; border: 0; }
.map__gate {
  position: absolute; inset: 0; padding: 24px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  text-align: center; color: var(--ink);
}
.map__gate strong { font-size: 17px; }
.map__gate p { margin: 0; max-width: 46ch; font-size: 14px; line-height: 1.55; color: #4a525d; }
.map__load {
  height: 44px; padding: 0 22px; border: 0; border-radius: 4px; cursor: pointer;
  background: var(--teal); color: #fff; font: inherit; font-weight: 600; font-size: 14px;
}
.map__load:hover { background: var(--teal-dark); }
.map__cap { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: #5d6570; }

/* ---------- Lavora con noi ---------- */
.careers { padding: 104px 0 110px; }
.careers .prose p { max-width: 1000px; color: var(--ink); }
.form { max-width: 760px; margin-top: 38px; display: flex; flex-direction: column; gap: 22px; }
.field input, .field textarea {
  display: block; width: 100%;
  font: inherit; font-size: 16px; color: var(--ink);
  background: #f7f9f9; border: 1px solid #cfd6da; border-radius: 3px;
  height: 48px; padding: 0 15px;
}
.field textarea { height: 118px; padding: 13px 15px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #646c76; opacity: 1; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
.file { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.file__btn {
  display: inline-flex; align-items: center; height: 38px; padding: 0 15px;
  border: 1px solid #cfd6da; border-radius: 3px; background: #eceff0;
  font-size: 15px; color: var(--ink); cursor: pointer;
}
.file__btn:hover { background: #e2e6e8; }
.file input:focus-visible + .file__btn { outline: 2px solid var(--focus); outline-offset: 3px; }
.file__hint { font-size: 15px; color: #3d4550; }
.captcha { display: flex; flex-direction: column; gap: 8px; }
.captcha label { font-size: 15px; font-weight: 600; color: var(--ink); }
.captcha__row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.captcha input {
  width: 120px; height: 48px; padding: 0 15px; font: inherit; font-size: 16px; color: var(--ink);
  background: #f7f9f9; border: 1px solid #cfd6da; border-radius: 3px;
}
.captcha input:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
.captcha__new { min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--teal-link); font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.captcha__hint { font-size: 13.5px; color: #5d6570; }
.check { display: flex; align-items: center; gap: 10px; min-height: 32px; font-size: 15px; }
.check input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--teal); }
.check a { color: var(--ink); }
.form__send {
  align-self: flex-start; height: 48px; padding: 0 30px; margin-top: 10px;
  border: 0; border-radius: 3px; background: var(--teal-link); color: #fff; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 14px; letter-spacing: .2em;
}
.form__send:hover { background: #0a4c55; }
.form__send[disabled] { opacity: .6; cursor: progress; }
.notice { margin: 0; max-width: 760px; padding: 14px 16px; border: 1px solid #b8d6da; background: #eef7f8; font-size: 15px; line-height: 1.5; }
.notice--error { border-color: #e2b4b4; background: #fbf0f0; }
.notice[hidden] { display: none; }

/* ---------- Pagine legali ---------- */
.legal { background: #fff; padding: 72px 0 104px; }
.legal__in { max-width: 780px; }
.legal h1 { font-family: var(--font-head); font-weight: 700; font-size: 38px; line-height: 1.15; letter-spacing: -.02em; color: var(--navy); text-wrap: balance; }
.legal__meta { margin: 14px 0 40px; font-size: 14px; color: #5d6570; }
.legal h2 { margin: 44px 0 14px; font-family: var(--font-head); font-weight: 700; font-size: 21px; line-height: 1.3; letter-spacing: -.01em; color: var(--navy); }
.legal h3 { margin: 26px 0 8px; font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--navy); }
.legal p, .legal li { font-size: 16px; line-height: 1.78; color: var(--text); }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal .todo { background: #fff1c2; color: #4a3a00; padding: 1px 5px; border-radius: 2px; font-weight: 600; }
.legal__box { margin: 0 0 28px; padding: 18px 20px; background: var(--sky); border: 1px solid #d3e4e8; font-size: 15px; }
.legal__box p:last-child { margin: 0; }
.table-wrap { overflow-x: auto; margin: 6px 0 18px; }
.legal table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14.5px; line-height: 1.55; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid #e1e6e9; }
.legal th { font-weight: 700; color: var(--navy); border-bottom-color: #c9d2d7; }
.legal code { font-size: .92em; background: #f1f4f5; padding: 1px 5px; border-radius: 2px; }
.btn-outline {
  display: inline-flex; align-items: center; height: 44px; padding: 0 20px; margin-top: 4px;
  border: 1px solid var(--teal); border-radius: 4px; background: #fff; color: var(--teal);
  font: inherit; font-weight: 600; font-size: 15px; cursor: pointer;
}
.btn-outline:hover { background: var(--sky); }

/* ---------- Pannello preferenze cookie ---------- */
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.linklike:hover { text-decoration: underline; }
.cpref {
  width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0;
  border: 0; border-radius: 6px; color: var(--ink); background: #fff;
  box-shadow: 0 20px 60px rgba(17, 26, 43, .35);
}
.cpref::backdrop { background: rgba(17, 26, 43, .55); }
.cpref__in { padding: 26px 26px 22px; display: flex; flex-direction: column; gap: 16px; }
.cpref__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.cpref h2 { font-family: var(--font-head); font-weight: 700; font-size: 20px; line-height: 1.3; letter-spacing: -.01em; color: var(--navy); }
.cpref__x { flex: none; width: 44px; height: 44px; margin: -10px -10px 0 0; border: 0; background: none; color: var(--navy); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.cpref p { margin: 0; font-size: 15px; line-height: 1.6; }
.cpref__item { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-top: 1px solid #e1e6e9; }
.cpref__item input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--teal); }
.cpref__item label { display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.cpref__item label span { font-size: 14px; line-height: 1.55; color: #4a525d; }
.cpref__actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 6px; }
.cpref__btn {
  flex: 1 1 140px; height: 46px; padding: 0 14px; border-radius: 4px; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 14.5px;
  border: 1px solid var(--teal); background: var(--teal); color: #fff;
}
.cpref__btn:hover { background: var(--teal-dark); }

/* ---------- Footer ---------- */
.ftr { background: var(--navy); color: #fff; padding: 52px 0 26px; }
.ftr__top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 24px; }
.ftr__li {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  color: var(--linkedin); text-decoration: none; font-weight: 700; font-size: 19px;
}
.ftr__li:hover { color: #6bb0de; }
.ftr__logo { display: block; width: 72px; margin: 0 auto; }
.ftr__sede { justify-self: end; display: flex; gap: 12px; align-items: flex-start; }
.ftr__sede address { text-align: right; font-size: 14px; line-height: 1.8; }
.ftr__sede a { color: #fff; text-decoration: none; }
.ftr__sede a:hover { color: #fff; text-decoration: underline; }
.ftr__crest { width: 30px; margin-top: 4px; }
.ftr__bot { margin-top: 34px; text-align: center; font-size: 11px; line-height: 2.4; color: var(--muted-footer); }
.ftr__links { color: #fff; font-size: 12.5px; }
.ftr__links a { color: #fff; text-decoration: none; }
.ftr__links a:hover { color: #fff; text-decoration: underline; }

/* ---------- Testo giustificato (richiesta del cliente) ----------
   Vale per i paragrafi di testo corrente. La sillabazione automatica (lang="it")
   evita spazi troppo larghi tra le parole, soprattutto su telefono.
   Restano centrati i testi delle testate e del footer. */
.prose p, .band p, .tl__item p, .closing p, .card p, .lead,
.contacts > .wrap > p, .contacts address, .map__cap,
.legal p, .legal li, .legal td, .notice {
  text-align: justify;
  -webkit-hyphens: auto;
  hyphens: auto;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .nav { gap: 24px; }
}

@media (max-width: 1000px) {
  .intro { grid-template-columns: 1fr; gap: 32px; padding: 72px 0; }
  .band__grid { grid-template-columns: 1fr; gap: 44px; padding: 64px 0; }
  .tl__item { grid-template-columns: 1fr; padding-left: 56px; }
  .tl__item h3 { margin: 14px 0; }
  .closing { margin-left: 0; }
}

@media (max-width: 900px) {
  :root { --hero-h: 360px; --hdr-h: 100px; }
  .nav { display: none; }
  .burger { display: flex; }
  .hdr__logo, .hdr__logo img { width: 62px; }
  .hdr--home .hdr__in { height: 104px; }
  .hdr--home .hdr__logo, .hdr--home .hdr__logo img { width: 58px; }

  .hero { --title-top: 172px; --title-size: 40px; }
  .hero--collaborazioni { --hero-h: 360px; --title-size: 38px; }
  .hero--professionisti { --title-top: 180px; --title-ls: 3px; }
  .hero--sede .hero__img { object-position: 30% center; } /* tiene in vista la cupola */

  .home-wrap { padding: 0; }
  .home-hero { height: 520px; }
  .home-hero h1 { font-size: 40px; }
  .home-hero p { font-size: 17px; }

  .legacy__fig { height: auto; aspect-ratio: 16 / 10; }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; row-gap: 48px; padding: 64px 0; }
  .map { height: 300px; }

  .ftr__top { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .ftr__sede { justify-self: center; }
  .ftr__sede address { text-align: center; }
}

@media (max-width: 560px) {
  :root { --gutter: 20px; --hero-h: 300px; }
  .hero { --title-top: 152px; --title-size: 34px; }
  .hero--collaborazioni { --hero-h: 300px; --title-size: 30px; --title-ls: 0; }
  .hero--professionisti { --title-top: 160px; --title-size: 32px; --title-ls: 2px; }
  .hero--lavora { --title-size: 32px; --title-ls: .5px; }

  .home-hero { height: 460px; }
  .home-hero h1 { font-size: 32px; }
  .home-hero p { font-size: 16px; }
  .home-hero__txt { padding: 0 20px 40px; }
  .home-spacer { height: 64px; }

  .intro__title { font-size: 32px; padding-right: 0; }
  .legacy { padding: 64px 0 80px; }
  .legacy__title { font-size: 28px; }
  .closing p { font-size: 22px; }
  .legacy__fig { aspect-ratio: 4 / 5; }

  .team { grid-template-columns: 1fr; row-gap: 52px; }
  .card { max-width: 420px; }
  .card h2 { margin-top: 22px; }

  .section-text { padding: 64px 0 80px; }
  .lead { font-size: 18px; }
  .contacts, .careers { padding: 60px 0 80px; }
  .map { height: 240px; }
  .form__send { align-self: stretch; }
  .legal { padding: 48px 0 72px; }
  .legal h1 { font-size: 30px; }
  .cpref__in { padding: 22px 20px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
