/* ================================
   Design tokens
================================ */

:root {
  --container-width: 1440px;
  --container-padding: 64px;
  --hero-content-offset: 110px;

  /*
    Vertical rhythm:
    - after hero: ingresso pagina più arioso
    - section: spazio standard tra sezioni contenuto
  */
  --section-space-after-hero-desktop: 112px;
  --section-space-desktop: 88px;

  --section-space-after-hero-mobile: 56px;
  --section-space-mobile: 56px;
  --section-space-before-prefooter-mobile: 64px;

  --color-text-light: #ffffff;
  --color-text-dark: #111827;
  --color-text-muted: #cad5e2;
  --color-link-muted: #90a1b9;

  --color-brand-blue: #3967b2;
  --color-brand-cyan: #4bb2f0;

  --color-primary-start: #0084d1;
  --color-primary-end: #0069a8;

  --color-surface-dark: #091627;
  --color-surface-light: #ffffff;
  --color-surface-soft-blue: #edf2f7;

 --grid-line-color: rgba(144, 161, 185, 0.12);
 --grid-dot-color: rgba(75, 178, 240, 0.34);
 --grid-sub-line-color: rgba(144, 161, 185, 0.075);

  --grid-size-x: 256px;
  --grid-size-y: 148px;
  --grid-sub-size-x: 64px;
  --grid-sub-size-y: 37px;

  --font-main: Inter, system-ui, sans-serif;
}


/* ================================
   Base
================================ */

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

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--color-text-dark);
}

img {
  display: block;
  max-width: 100%;
}

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


/* ================================
   Utilities
================================ */

.desktop-only {
  display: inline;
}

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

.text-nowrap {
  white-space: nowrap;
}


/* ================================
   Theme helpers
================================ */

.section-dark {
  background: var(--color-surface-dark);
  color: var(--color-text-light);
}

.section-dark .section-eyebrow {
  color: var(--color-brand-cyan);
}

.section-dark strong {
  color: var(--color-brand-cyan);
  font-weight: 600;
}



/* ================================
   Page hero background
   Header + hero content included
================================ */

.page-hero {
  position: relative;
  overflow: hidden;
  height: 596px;

  display: flex;
  flex-direction: column;

  color: var(--color-text-light);

  background:
    radial-gradient(circle at 86% 76%, rgba(57, 103, 178, 0.18), transparent 46%), linear-gradient(180deg, #091627 0%, #121e2f 70%, #1d273d 100%)
}

.page-hero::before,
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.page-hero::before {
  background-image:
    linear-gradient(var(--grid-line-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line-color) 1px, transparent 1px),
    linear-gradient(var(--grid-sub-line-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-sub-line-color) 1px, transparent 1px);

  background-size:
    var(--grid-size-x) var(--grid-size-y),
    var(--grid-size-x) var(--grid-size-y),
    var(--grid-sub-size-x) var(--grid-sub-size-y),
    var(--grid-sub-size-x) var(--grid-sub-size-y);

  background-position:
    56px 0,
    56px 0,
    56px 0,
    56px 0;
}

.page-hero::after {
  background-image:
    radial-gradient(
      circle at 0 0,
      var(--grid-dot-color) 1.6px,
      transparent 1.7px
    );

  background-size: var(--grid-size-x) var(--grid-size-y);
  background-position: 56px 0;
}

.site-header,
.hero {
  position: relative;
  z-index: 1;
}


/* ================================
   Header desktop
================================ */

.site-header__inner {
  height: 86px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo img {
  width: 81px;
  height: 54px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  color: var(--color-text-light);
  text-decoration: none;

  font-size: 16px;
  font-weight: 600;
  line-height: 21px;

  transition: color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--color-brand-cyan);
}


/* ================================
   Buttons
================================ */

.button {
  position: relative;
  isolation: isolate;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 8px 20px;
  border-radius: 8px;
  overflow: hidden;

  color: var(--color-text-light);
  text-decoration: none;

  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
}

.button span[aria-hidden="true"] {
  font-size: 18px;
  line-height: 1;
}

.button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;

  background: var(--color-brand-blue);
  opacity: 0;

  transition: opacity 180ms ease;
}

.button--primary {
  background: linear-gradient(
    180deg,
    var(--color-primary-start),
    var(--color-primary-end)
  );
}

.button--primary:hover::before,
.button--primary:focus-visible::before {
  opacity: 1;
}


/* ================================
   Hero content desktop
================================ */

.hero {
  flex: 1;
  display: flex;
}

.hero__inner {
  width: 100%;
  padding-top: 90px;
}

.hero__content {
  width: 100%;
  max-width: 800px;
  margin-left: var(--hero-content-offset);

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;

  color: var(--color-text-light);

  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.breadcrumb a {
  color: var(--color-link-muted);
  text-decoration: none;
}

.hero h1 {
  max-width: 800px;
  margin: 0;

  color: var(--color-text-light);

  font-size: 60px;
  font-weight: 600;
  line-height: 75px;
}

.hero p {
  max-width: 800px;
  margin: 0;

  color: var(--color-text-muted);

  font-size: 20px;
  font-weight: 400;
  line-height: 32px;
}


/* ================================
   Main content area
   Spacing strategy:
   - the first content section creates the space after the hero
   - each section creates only the space below itself
   - this avoids doubled vertical gaps
================================ */

.page-main {
  background: var(--color-surface-light);
}

.content-section {
  background: var(--color-surface-light);
}

.content-section__inner {
  min-height: 0;
  padding-top: 0;
  padding-bottom: var(--section-space-desktop);
}

.page-main > .content-section:first-child .content-section__inner {
  padding-top: var(--section-space-after-hero-desktop);
}


/* ================================
   Shared text styles
================================ */

.section-eyebrow {
  margin: 0;

  color: var(--color-brand-blue);
  text-transform: uppercase;

  font-size: 20px;
  font-weight: 600;
  line-height: 26px;
}




/* ================================
   Home hero
================================ */

.home-hero {
  position: relative;
  overflow: hidden;

  /* Fallback per browser meno recenti */
  min-height: 100vh;

  /* Altezza effettivamente visibile, soprattutto su mobile */
  min-height: 100dvh;

  display: flex;
  flex-direction: column;

  color: var(--color-text-light);
  background: var(--color-surface-dark);
}

.home-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;

  display: block;
  width: 100%;
  height: 100%;
}

.home-hero__image {
  width: 100%;
  height: 100%;

  display: block;
  object-fit: cover;
  object-position: 56% 42%;
}

.home-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;

  background:
    linear-gradient(
      90deg,
      rgba(6, 17, 31, 0.9) 0%,
      rgba(6, 17, 31, 0.72) 34%,
      rgba(6, 17, 31, 0.54) 62%,
      rgba(6, 17, 31, 0.34) 100%
    ),
    linear-gradient(
      180deg,
      rgba(6, 17, 31, 0.74) 0%,
      rgba(6, 17, 31, 0.26) 42%,
      rgba(6, 17, 31, 0.22) 100%
    );
}

.home-hero .site-header {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
}

.home-hero__inner {
  position: relative;
  z-index: 2;

  flex: 1;

  display: flex;
  align-items: center;

  padding-top: 72px;
  padding-bottom: 112px;
}

.home-hero__content {
  max-width: 760px;
}

.home-hero__eyebrow {
  margin: 0 0 24px;

  color: var(--color-brand-cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;

  font-size: 18px;
  font-weight: 600;
  line-height: 26px;
}

.home-hero h1 {
  margin: 0;

  color: var(--color-text-light);

  font-size: 62px;
  font-weight: 600;
  line-height: 70px;
  letter-spacing: -0.02em;
}

.home-hero__content > p:not(.home-hero__eyebrow) {
  max-width: 650px;
  margin: 28px 0 0;

  color: rgba(239, 246, 255, 0.92);

  font-size: 20px;
  font-weight: 400;
  line-height: 32px;
}

.home-hero__actions {
  display: flex;
  align-items: center;
  gap: 20px;

  margin-top: 40px;
}


/* Local outline CTA: only for the home hero */

.home-hero__button-outline {
  border: 1px solid rgba(239, 246, 255, 0.42);

  background: rgba(6, 17, 31, 0.08);
  color: rgba(239, 246, 255, 0.88);

  font-weight: 500;
}

.home-hero__button-outline:hover,
.home-hero__button-outline:focus-visible {
  border-color: rgba(239, 246, 255, 0.72);
  background: rgba(239, 246, 255, 0.08);
  color: var(--color-text-light);
}






/* ================================
   Home partners carousel
================================ */

.home-partners {
  position: relative;
  overflow: hidden;

  background: var(--color-surface-light);
  padding:32px 0;
}

.home-partners__viewport {
  position: relative;
  overflow: hidden;

  height: 128px;

  display: flex;
  align-items: center;
}

.home-partners__viewport::before,
.home-partners__viewport::after {
  content: "";
  position: absolute;
  top: 0;
  z-index: 2;

  width: 120px;
  height: 100%;

  pointer-events: none;
}

.home-partners__viewport::before {
  left: 0;
  background: linear-gradient(
    90deg,
    var(--color-surface-light) 0%,
    rgba(255, 255, 255, 0) 100%
  );
}

.home-partners__viewport::after {
  right: 0;
  background: linear-gradient(
    270deg,
    var(--color-surface-light) 0%,
    rgba(255, 255, 255, 0) 100%
  );
}

.home-partners__track {
  display: flex;
  align-items: center;

  width: max-content;

  will-change: transform;
}

.home-partners__list {
  flex: 0 0 auto;

  display: flex;
  align-items: center;
  gap: 84px;

  margin: 0;
  padding: 0 84px 0 0;

  list-style: none;
}

.home-partners__item {
  flex: 0 0 auto;

  display: flex;
  align-items: center;
  justify-content: center;
}

.home-partners__item img {
  width: 116px;
  height: auto;

  display: block;
  object-fit: contain;
}



/* ================================
   Home about
================================ */

.home-about {
  background: var(--color-surface-light);
}

.home-about__inner {
  padding-top: 72px;
  padding-bottom: 96px;
}

.home-about__grid {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 640px);
  gap: 64px;
  align-items: start;
}

.home-about__label {
  padding-top: 8px;
}

.home-about__content h2 {
  margin: 0;

  color: var(--color-text-dark);

  font-size: 40px;
  font-weight: 600;
  line-height: 48px;
  letter-spacing: -0.01em;
}

.home-about__content h2 span {
  color: var(--color-brand-blue);
}

.home-about__content p {
  max-width: 560px;
  margin: 20px 0 0;

  color: var(--color-text-dark);

  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
}

.home-about__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;

  margin-top: 72px;
}

.home-stat-card {
  min-height: 128px;
  padding: 28px 32px 24px;

  border: 1px solid #d8e0ea;
  border-radius: 8px;

  background: #eef2f7;
}

.home-stat-card strong {
  display: block;
  margin-bottom: 10px;

  color: var(--color-text-dark);

  font-size: 40px;
  font-weight: 600;
  line-height: 46px;
}

.home-stat-card p {
  max-width: 260px;
  margin: 0;

  color: var(--color-text-dark);

  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
}


/* ================================
   Home services
================================ */

.home-services {
  background: var(--color-surface-light);
}

.home-services__inner {
  padding-top: 0;
  padding-bottom: 112px;
}

.home-services__header {
  max-width: 860px;
  margin-bottom: 40px;
}

.home-services__header h2 {
  max-width: 780px;
  margin: 16px 0 0;

  color: var(--color-text-dark);

  font-size: 40px;
  font-weight: 600;
  line-height: 48px;
  letter-spacing: -0.01em;
}

.home-services__viewport {
  overflow: visible;
}

.home-services__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.home-service-card {
  position: relative;
  overflow: hidden;

  min-height: 320px;
  padding: 72px 40px 40px;

  border-radius: 12px;

  background: var(--color-surface-dark);
}



.home-service-card__icon {
  position: absolute;
  top: 32px;
  right: 32px;

  width: 76px;
  height: 76px;

  display: block;
  object-fit: contain;

  opacity: 0.9;
}

.home-service-card__content {
  position: relative;
  z-index: 1;

  max-width: 440px;
}

.home-service-card__category {
  margin: 0 0 8px;

  color: var(--color-brand-cyan);

  font-size: 22px;
  font-weight: 600;
  line-height: 30px;
}

.home-service-card h3 {
  margin: 0;

  color: var(--color-text-light);

  font-size: 28px;
  font-weight: 600;
  line-height: 36px;
}

.home-service-card__content > p:not(.home-service-card__category) {
  max-width: 440px;
  margin: 28px 0 0;

  color: var(--color-text-muted);

  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
}





/* ================================
   Home quality
================================ */

.home-quality {
  background: var(--color-surface-light);
}

.home-quality__inner {
  padding-top: 0;
  padding-bottom: 88px;
}

.home-quality__header {
  max-width: 820px;
  margin-bottom: 56px;
}

.home-quality__header h2 {
  margin: 16px 0 0;

  color: var(--color-text-dark);

  font-size: 40px;
  font-weight: 600;
  line-height: 48px;
  letter-spacing: -0.01em;
}

.home-quality__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 80px;
}

.home-quality-card {
  min-width: 0;
}

.home-quality-card img {
  width: 190px;
  height: auto;

  display: block;
  margin-bottom: 28px;
}

.home-quality-card h3 {
  margin: 0 0 16px;

  color: var(--color-text-dark);

  font-size: 17px;
  font-weight: 600;
  line-height: 24px;
}

.home-quality-card p {
  max-width: 320px;
  margin: 0;

  color: var(--color-text-dark);

  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
}


/* ================================
   Home method
================================ */

.home-method {
  background: var(--color-surface-light);
}

.home-method__inner {
  display: grid;
  grid-template-columns: minmax(0, 390px) minmax(0, 1fr);
  gap: 24px;

  padding-top: 0;
  padding-bottom: 112px;
}

.home-method__media {
  min-height: 520px;
  margin: 0;

  overflow: hidden;
  border-radius: 12px;

  background: #d9e1ea;
}

.home-method__media img {
  width: 100%;
  height: 100%;

  display: block;
  object-fit: cover;
  object-position: center;
}

.home-method__card {
  min-height: 520px;
  padding: 72px 72px 64px;

  border-radius: 12px;

  background: var(--color-surface-dark);
}

.home-method__card h2 {
  max-width: 620px;
  margin: 18px 0 0;

  color: var(--color-text-light);

  font-size: 36px;
  font-weight: 600;
  line-height: 44px;
  letter-spacing: -0.01em;
}

.home-method__card p:not(.section-eyebrow) {
  max-width: 620px;
  margin: 32px 0 0;

  color: var(--color-text-muted);

  font-size: 16px;
  font-weight: 400;
  line-height: 27px;
}

.home-method__card p:not(.section-eyebrow) + p {
  margin-top: 24px;
}

.home-method__card strong {
  color: var(--color-brand-cyan);
  font-weight: 600;
}


/* ================================
   Home careers CTA
================================ */

.home-careers-cta {
  background: var(--color-surface-light);
}

.home-careers-cta__inner {
  max-width: 720px;
  margin: 0 auto;

  padding-top: 8px;
  padding-bottom: 88px;

  text-align: center;
}

.home-careers-cta__inner .section-eyebrow {
  margin-bottom: 16px;
}

.home-careers-cta h2 {
  margin: 0 auto;

  color: var(--color-text-dark);

  font-size: 36px;
  font-weight: 600;
  line-height: 44px;
  letter-spacing: -0.01em;
}

.home-careers-cta .button {
  margin-top: 28px;
}





/* ================================
   About intro section
   Used on "Chi siamo"
================================ */

.about-intro {
  background: var(--color-surface-light);
}

.about-intro__grid {
  display: grid;
  grid-template-columns: 424px 600px;
  gap: 24px;
  align-items: start;
}

.about-intro__content {
  width: 100%;
  max-width: 600px;
}

.about-intro__content h2 {
  margin: 0 0 32px;

  color: var(--color-text-dark);

  font-size: 40px;
  font-weight: 600;
  line-height: 48px;
}

.about-intro__content h2 span {
  display: block;
  color: var(--color-brand-blue);
}

.about-intro__content p {
  margin: 0;

  color: var(--color-text-dark);

  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
}

.about-intro__content strong {
  font-weight: 600;
}

.about-intro__content h3 {
  margin: 40px 0 16px;

  color: var(--color-text-dark);

  font-size: 20px;
  font-weight: 600;
  line-height: 26px;
}


/* ================================
   About values section
================================ */

.about-values {
  background: var(--color-surface-light);
}

.about-values__inner {
  display: grid;
  grid-template-columns: 424px 1fr;
  gap: 24px;

  padding-top: 0;
  padding-bottom: var(--section-space-desktop);
}

.about-values__media {
  min-height: 520px;
  border-radius: 8px;
  overflow: hidden;
}

.about-values__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-values__content {
  min-height: 520px;
  padding: 80px 96px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  border-radius: 8px;
}

.about-values__content h2 {
  max-width: 620px;
  margin: 0 0 40px;

  color: inherit;

  font-size: 40px;
  font-weight: 600;
  line-height: 48px;
}

.about-values__content p {
  max-width: 620px;
  margin: 0;

  color: inherit;

  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
}

.about-values__content p + p {
  margin-top: 32px;
}


/* ================================
   About vision section
================================ */

.about-vision {
  background: var(--color-surface-light);
}

.about-vision__grid {
  display: grid;
  grid-template-columns: 424px 600px;
  gap: 24px;
  align-items: start;
}

.about-vision__content {
  width: 100%;
  max-width: 600px;
}

.about-vision__content h2 {
  margin: 0 0 16px;

  color: var(--color-text-dark);

  font-size: 40px;
  font-weight: 600;
  line-height: 48px;
}

.about-vision__content p {
  margin: 0;

  color: var(--color-text-dark);

  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
}

.about-vision__content p + p {
  margin-top: 0;
}

.about-vision__content strong {
  font-weight: 600;
}

.about-vision__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  margin-top: 36px;

  color: var(--color-brand-blue);
  text-decoration: none;

  font-size: 20px;
  font-weight: 600;
  line-height: 24px;

  transition: color 180ms ease;
}

.about-vision__link:hover,
.about-vision__link:focus-visible {
  color: var(--color-brand-cyan);
}





/* ================================
   Wide intro sections
   Used on "Attività" and "Team"
================================ */

.activity-intro,
.team-intro {
  background: var(--color-surface-light);
}

.activity-intro__grid,
.team-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 642px) minmax(0, 642px);
  gap: 10px;
  align-items: start;
}

.activity-intro__heading,
.team-intro__heading {
  width: 100%;
  max-width: 642px;
}

.activity-intro__heading h2,
.team-intro__heading h2 {
  max-width: 600px;
  margin: 16px 0 0;

  color: var(--color-text-dark);

  font-size: 40px;
  font-weight: 600;
  line-height: 48px;
}

.activity-intro__content,
.team-intro__content {
  width: 100%;
  max-width: 642px;
  padding-top: 8px;
}

.activity-intro__content p,
.team-intro__content p {
  margin: 0;

  color: var(--color-text-dark);

  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
}

.activity-intro__content strong,
.team-intro__content strong {
  font-weight: 600;
}

.activity-intro__content h3 {
  margin: 40px 0 16px;

  color: var(--color-text-dark);

  font-size: 20px;
  font-weight: 600;
  line-height: 26px;
}


/* ================================
   Activity gallery carousel
   Full-width responsive image strip
   Desktop: multiple images + partial next
   Tablet: two images + partial next
   Mobile: one image + partial next
================================ */

.activity-gallery {
  background: var(--color-surface-light);
  overflow: hidden;
}

.activity-gallery__top {
  display: flex;
  justify-content: flex-end;
}

.activity-gallery__controls {
  display: flex;
  align-items: center;
  gap: 28px;

  margin-bottom: 40px;
}

.activity-gallery__button {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: transparent;
  color: var(--color-text-dark);

  font-size: 36px;
  font-weight: 400;
  line-height: 1;

  cursor: pointer;

  transition:
    color 180ms ease,
    opacity 180ms ease;
}

.activity-gallery__button:hover,
.activity-gallery__button:focus-visible {
  color: var(--color-brand-blue);
}

.activity-gallery__button:disabled {
  opacity: 0.35;
  cursor: default;
}

.activity-gallery__viewport {
  width: 100%;
  overflow: hidden;
}

.activity-gallery__track {
  display: flex;
  gap: 8px;

  transform: translateX(0);
  transition: transform 320ms ease;
  will-change: transform;
}

.activity-gallery__slide {
  flex: 0 0 30vw;
  width: 30vw;
  height: 355px;
  margin: 0;

  overflow: hidden;
  background: #e5e7eb;
}

.activity-gallery__slide img {
  width: 100%;
  height: 100%;

  display: block;
  object-fit: cover;
  object-position: center;
}




.activity-gallery__open {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;

  display: block;

  background: transparent;
  cursor: zoom-in;
}

.activity-gallery__open img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.activity-lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;

  background: rgba(4, 10, 20, 0.96);
  color: #fff;
}

.activity-lightbox[open] {
  display: block;
}

.activity-lightbox::backdrop {
  background: rgba(4, 10, 20, 0.96);
}

.activity-lightbox__inner {
  position: relative;

  width: 100%;
  height: 100%;

  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  align-items: center;
}

.activity-lightbox__figure {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 40px 0;

  display: flex;
  align-items: center;
  justify-content: center;
}

.activity-lightbox__image {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100dvh - 80px);

  object-fit: contain;
}

.activity-lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 2;

  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;

  background: transparent;
  color: #fff;

  font-size: 42px;
  line-height: 1;
  cursor: pointer;
}

.activity-lightbox__nav {
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  justify-self: center;

  background: transparent;
  color: #fff;

  font-size: 40px;
  cursor: pointer;
}

.activity-lightbox__nav:disabled {
  opacity: 0.25;
  cursor: default;
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .activity-lightbox__inner {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
  }

  .activity-lightbox__figure {
    padding: 72px 0 48px;
  }

  .activity-lightbox__image {
    max-height: calc(100dvh - 120px);
  }

  .activity-lightbox__nav {
    width: 44px;
    height: 44px;
    font-size: 30px;
  }
}




/* ================================
   Activity fields section
   Dark service list for "Attività"
================================ */

.activity-fields {
  background: var(--color-surface-dark);
  color: var(--color-text-light);
}

.activity-fields__inner {
  padding-top: 124px;
  padding-bottom: 124px;
}

.activity-fields__header {
  max-width: 760px;
  margin-bottom: 120px;
}

.activity-fields__eyebrow {
  margin: 0 0 20px;

  color: var(--color-text-muted);
  text-transform: uppercase;

  font-size: 20px;
  font-weight: 600;
  line-height: 26px;
}

.activity-fields h2 {
  margin: 0;

  color: var(--color-text-light);

  font-size: 40px;
  font-weight: 600;
  line-height: 48px;
}

.activity-fields__list {
  display: flex;
  flex-direction: column;
}

.activity-fields__item {
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(0, 600px);
  gap: 80px;

  padding-top: 36px;
  padding-bottom: 80px;
  border-top: 1px solid rgba(202, 213, 226, 0.22);
}

.activity-fields__item:last-child {
  padding-bottom: 0;
}

.activity-fields__item-heading p {
  margin: 0 0 12px;

  color: var(--color-brand-cyan);

  font-size: 32px;
  font-weight: 600;
  line-height: 40px;
}

.activity-fields__item-heading h3 {
  margin: 0;

  color: var(--color-text-light);

  font-size: 32px;
  font-weight: 600;
  line-height: 40px;
}

.activity-fields__item ul {
  margin: 0;
  padding: 0;
  list-style: none;

  color: var(--color-text-muted);

  font-size: 18px;
  font-weight: 400;
  line-height: 30px;
}

.activity-fields__item li {
  margin: 0;
}


/* ================================
   Activity certifications section
================================ */

.activity-certifications {
  background: var(--color-surface-light);
  color: var(--color-text-dark);
}

.activity-certifications__inner {
  padding-top: 124px;
  padding-bottom: 124px;
}

.activity-certifications__header {
  max-width: 860px;
  margin-inline: auto;
  text-align: center;
}

.activity-certifications__header .section-eyebrow {
  color: var(--color-brand-blue);
}

.activity-certifications__header h2 {
  margin: 20px 0 0;

  color: var(--color-text-dark);

  font-size: 40px;
  font-weight: 600;
  line-height: 48px;
}

.activity-certifications__list {
  margin-top: 148px;

  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: space-between;
  align-items: center;
  gap: 64px;
}

.activity-certifications__list img {
  width: 240px;
  height: auto;
}




/* ================================
   Team sections shared
================================ */

.team-section-header {
  max-width: 720px;
  margin-bottom: 64px;
}

.team-section-header h2 {
  margin: 16px 0 0;

  color: var(--color-text-dark);

  font-size: 40px;
  font-weight: 600;
  line-height: 48px;
}

.team-section-header p:not(.section-eyebrow) {
  max-width: 640px;
  margin: 20px 0 0;

  color: var(--color-text-dark);

  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
}


/* ================================
   Team governance section
================================ */

/*.team-governance {
  background: var(--color-surface-soft-blue);
}*/

.team-governance__inner {
  padding-top: 124px;
  padding-bottom: 124px;
}

.team-governance__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 460px));
  gap: 48px;
  justify-content: start;
}


/* ================================
   Team members section
================================ */

.team-members {
  background: var(--color-surface-light);
}

.team-members__inner {
  padding-top: 124px;
  padding-bottom: 124px;
}

.team-members__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
}


/* ================================
   Team cards
================================ */

.team-card {
  min-width: 0;
}

.team-card__media {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;

  background: #d9d9d9;
}

.team-card__media img {
  width: 100%;
  height: 100%;

  display: block;
  object-fit: cover;
  object-position: center top;

  border: 1px solid #b8c2cf;
  border-radius: 8px;
  box-sizing: border-box;
}

.team-card--large .team-card__media {
  overflow: hidden;
  border: 0;
}

.team-card--large .team-card__media img {
  border-radius: 16px;
  border: 1px solid #b8c2cf;
  transform: scale(1.005);
  box-sizing: border-box;
}

.team-card__body {
  padding-top: 24px;
}

.team-card__body h3 {
  margin: 0;

  color: var(--color-text-dark);

  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
}

.team-card__role {
  margin: 8px 0 0;

  color: var(--color-brand-blue);

  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.team-card__description {
  margin: 20px 0 0;

  color: var(--color-text-dark);

  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
}


/* Large governance cards */

.team-card--large .team-card__body {
  padding-top: 22px;
}

.team-card--large .team-card__body h3 {
  font-size: 26px;
  line-height: 34px;
}

.team-card--large .team-card__role {
  margin-top: 6px;

  font-size: 16px;
  line-height: 24px;
}

.team-card--large .team-card__description {
  max-width: 500px;
  margin-top: 16px;

  font-size: 17px;
  line-height: 27px;
}


/* ================================
   Team quote card
================================ */

.team-quote-card {
  aspect-ratio: 1 / 1;
  min-height: 0;

  padding: 40px;
  border-radius: 8px;

  display: flex;
  align-items: flex-end;

  background: var(--color-surface-dark);
}

.team-quote-card p {
  margin: 0;

  color: var(--color-text-light);

  font-size: 28px;
  font-weight: 600;
  line-height: 36px;
}

.team-quote-card strong {
  color: var(--color-brand-cyan);
  font-weight: 600;
}




/* ================================
   Contacts page
================================ */

.contacts-section {
  background: var(--color-surface-light);
}

.contacts-section__inner {
  padding-top: 112px;
  padding-bottom: 112px;
}

.contacts-section__grid {
  display: grid;
  grid-template-columns: minmax(0, 500px) minmax(0, 700px);
  gap: 76px;
  align-items: start;
}

.contacts-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}


/* Contact dark card */

.contacts-card {
  padding: 44px 40px;
  border-radius: 16px;

  background: var(--color-surface-dark);
  color: var(--color-text-light);
}

.contacts-card__heading {
  margin-bottom: 36px;
}

.contacts-card__heading h3 {
  margin: 0;

  color: var(--color-text-light);

  font-size: 28px;
  font-weight: 600;
  line-height: 36px;
}

.contacts-card__list {
  display: flex;
  flex-direction: column;
  gap: 20px;

  margin: 0;
  font-style: normal;
}

.contacts-card__item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 14px;
  align-items: start;

  color: var(--color-text-muted);

  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.contacts-card__item a {
  color: var(--color-brand-cyan);
  text-decoration: none;
}

.contacts-card__item a:hover,
.contacts-card__item a:focus-visible {
  text-decoration: underline;
}

.contacts-card__item--muted {
  opacity: 0.6;
}


/* Contact icons */

.contacts-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 auto;
}

.contacts-icon svg {
  width: 20px;
  height: 20px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contacts-icon--plain {
  width: 24px;
  height: 24px;

  color: var(--color-brand-cyan);
}


/* Google Maps link */

.contacts-map-card {
  padding: 26px 0;
  border-top: 1px solid #d8e0ea;
  border-bottom: 1px solid #d8e0ea;

  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 24px;
  gap: 18px;
  align-items: center;

  background: transparent;
  color: var(--color-text-dark);
  text-decoration: none;

  transition:
    border-color 180ms ease,
    color 180ms ease;
}

.contacts-map-card:hover,
.contacts-map-card:focus-visible {
  border-color: var(--color-brand-blue);
}

.contacts-map-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: rgba(47, 110, 196, 0.08);
  color: var(--color-brand-blue);
}

.contacts-map-card__icon svg,
.contacts-map-card__arrow svg {
  width: 22px;
  height: 22px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contacts-map-card__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contacts-map-card__text strong {
  color: var(--color-text-dark);

  font-size: 17px;
  font-weight: 600;
  line-height: 24px;
}

.contacts-map-card__text span {
  color: var(--color-text-muted-dark);

  font-size: 15px;
  font-weight: 400;
  line-height: 22px;
}

.contacts-map-card__arrow {
  color: var(--color-brand-blue);
  transition: transform 180ms ease;
}

.contacts-map-card:hover .contacts-map-card__arrow,
.contacts-map-card:focus-visible .contacts-map-card__arrow {
  transform: translate(2px, -2px);
}


/* Office hours */

.office-hours {
  padding: 24px 0 0;
  border-top: 1px solid #d8e0ea;
}

.office-hours h3 {
  margin: 0 0 18px;

  color: #5a5f69;
  text-transform: uppercase;
  letter-spacing: 0.08em;

  font-size: 14px;
  font-weight: 600;
  line-height: 21px;
}

.office-hours dl {
  display: flex;
  flex-direction: column;
  gap: 14px;

  margin: 0;
}

.office-hours div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.office-hours dt,
.office-hours dd {
  margin: 0;

  color: #5a5f69;

  font-size: 14px;
  line-height: 21px;
}

.office-hours dt {
  font-weight: 400;
}

.office-hours dd {
  font-weight: 500;
  text-align: right;
}


/* Form card */

.contact-form-card {
  padding: 44px 56px 52px;
  border: 1px solid #d8e0ea;
  border-radius: 24px;

  background: var(--color-surface-light);
}

.contact-form-card__eyebrow {
  margin: 0 0 12px;

  color: var(--color-brand-blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;

  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
}

.contact-form-card h2 {
  margin: 0 0 34px;

  color: var(--color-text-dark);

  font-size: 32px;
  font-weight: 600;
  line-height: 40px;
}

.contact-form {
  width: 100%;
}

.contact-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 24px;
}

.contact-form__field {
  min-width: 0;
}

.contact-form__field--full {
  grid-column: 1 / -1;
}

.contact-form__field label {
  display: block;
  margin-bottom: 8px;
  padding-left: 4px;

  color: #1e293b;

  font-size: 15px;
  font-weight: 500;
  line-height: 19.5px;
}

.contact-form__field label span {
  color: var(--color-brand-blue);
}

.contact-form__field input,
.contact-form__field textarea {
  width: 100%;
  border: 1px solid #c4ccd8;
  border-radius: 10px;
  padding: 0 16px;

  background: var(--color-surface-light);
  color: var(--color-text-dark);

  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  line-height: 22px;

  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.contact-form__field input {
  height: 52px;
}

.contact-form__field textarea {
  min-height: 140px;
  padding-top: 14px;
  padding-bottom: 14px;
  resize: vertical;
}

.contact-form__field input::placeholder,
.contact-form__field textarea::placeholder {
  color: #a6b2c0;
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
  outline: none;
  border-color: var(--color-brand-blue);
  box-shadow: 0 0 0 3px rgba(47, 110, 196, 0.14);
}



.contact-form__privacy {
  display: block;
  width: 100%;

  margin: 28px 0 24px;

  color: var(--color-text-muted-dark);

  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
}


.contact-form__privacy {
  display: block;
  width: 100%;

  margin: 24px 0 22px;

  color: var(--color-text-muted-dark);

  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
}

/* Native privacy checkbox */

.contact-form__privacy > input[type="checkbox"] {
  float: left;

  width: 20px;
  height: 20px;
  margin: 0 12px 0 0;

  appearance: none;
  border: 1px solid #aeb8c5;
  border-radius: 6px;

  background: var(--color-surface-light);
  cursor: pointer;

  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.contact-form__privacy > input[type="checkbox"]:checked {
  border-color: var(--color-brand-blue);
  background-color: var(--color-brand-blue);
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.5 8.2 6.6 11.2 12.5 4.8' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
}

.contact-form__privacy > input[type="checkbox"]:focus {
  outline: none;
}

.contact-form__privacy > input[type="checkbox"]:focus-visible {
  border-color: var(--color-brand-blue);
  box-shadow: 0 0 0 3px rgba(47, 110, 196, 0.14);
}

.contact-form__privacy > label {
  display: block;
  overflow: hidden;

  color: var(--color-text-muted-dark);
}

.contact-form__privacy a {
  color: var(--color-brand-blue);
  font-weight: 600;
  text-decoration: none;
}

.contact-form__privacy a:hover,
.contact-form__privacy a:focus-visible {
  text-decoration: underline;
}

.contact-form__privacy label span,
.contact-form__privacy .wpcf7-list-item-label span {
  color: var(--color-brand-blue);
}

/* Contact Form 7 privacy checkbox */

.contact-form__privacy p {
  margin: 0;
}

.contact-form__privacy br {
  display: none;
}

.contact-form__privacy .wpcf7-form-control-wrap,
.contact-form__privacy .wpcf7-acceptance,
.contact-form__privacy .wpcf7-list-item {
  display: block;
  width: 100%;
  margin: 0;
}

.contact-form__privacy .wpcf7-acceptance label {
  display: flex;
  align-items: flex-start;
  gap: 12px;

  width: 100%;
  max-width: none;
  margin: 0;

  cursor: pointer;
}

.contact-form__privacy .wpcf7-acceptance input[type="checkbox"] {
  flex: 0 0 20px;

  width: 20px;
  height: 20px;
  margin: 0;

  appearance: none;
  border: 1px solid #aeb8c5;
  border-radius: 6px;

  background: var(--color-surface-light);
  cursor: pointer;

  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.contact-form__privacy .wpcf7-acceptance input[type="checkbox"]:checked {
  border-color: var(--color-brand-blue);
  background-color: var(--color-brand-blue);
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.5 8.2 6.6 11.2 12.5 4.8' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
}

.contact-form__privacy .wpcf7-list-item-label {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  max-width: none;

  color: var(--color-text-muted-dark);

  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
}



.contact-form__submit {
  width: 100%;
  height: 56px;
  border: 0;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  cursor: pointer;
  appearance: none;
}

.contact-form__submit svg {
  width: 20px;
  height: 20px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-form__submit:focus {
  outline: none;
}

.contact-form__submit:focus-visible {
  outline: 2px solid rgba(75, 178, 240, 0.45);
  outline-offset: 3px;
}



/* ================================
   Contact Form 7 compatibility
================================ */

.contact-form .wpcf7 {
  width: 100%;
}

.contact-form .wpcf7-form {
  width: 100%;
  margin: 0;
}

.contact-form .wpcf7-form p {
  margin: 0;
}

.contact-form .wpcf7-form br {
  display: none;
}

.contact-form .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.contact-form .wpcf7-form-control-wrap input,
.contact-form .wpcf7-form-control-wrap textarea,
.contact-form .wpcf7-form-control-wrap select {
  width: 100%;
}

.contact-form .wpcf7-list-item {
  display: block;
  margin: 0;
}




.contact-form .wpcf7-not-valid {
  border-color: #c2410c !important;
}

.contact-form .wpcf7-not-valid-tip {
  display: block;
  margin-top: 8px;
  padding-left: 4px;

  color: #c2410c;

  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
}

.contact-form .wpcf7-response-output {
  margin: 24px 0 0 !important;
  border: 1px solid #d8e0ea !important;
  border-radius: 10px;
  padding: 14px 16px !important;

  color: var(--color-text-dark);

  font-size: 14px;
  line-height: 22px;
}

.contact-form .wpcf7 form.sent .wpcf7-response-output {
  border-color: rgba(47, 110, 196, 0.35) !important;
  background: rgba(47, 110, 196, 0.06);
}

.contact-form .wpcf7 form.invalid .wpcf7-response-output,
.contact-form .wpcf7 form.unaccepted .wpcf7-response-output {
  border-color: rgba(194, 65, 12, 0.35) !important;
  background: rgba(194, 65, 12, 0.06);
}

.contact-form .wpcf7-spinner {
  display: block;
  margin: 16px auto 0;
}

.contact-form .wpcf7-submit {
  width: 100%;
  height: 56px;
  border: 0;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  appearance: none;
}

.contact-form .wpcf7-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.contact-form .contact-form__field select {
  width: 100%;
  height: 52px;
  border: 1px solid #c4ccd8;
  border-radius: 10px;
  padding: 0 44px 0 16px;

  appearance: none;
  background-color: var(--color-surface-light);
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.5 7.5 10 12l4.5-4.5' fill='none' stroke='%235A5F69' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px 18px;

  color: var(--color-text-dark);

  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  line-height: 22px;

  cursor: pointer;

  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.contact-form .contact-form__field select:focus {
  outline: none;
  border-color: var(--color-brand-blue);
  box-shadow: 0 0 0 3px rgba(47, 110, 196, 0.14);
}

.contact-form .careers-form__file {
  padding-top: 13px;
  padding-bottom: 13px;

  color: #5a5f69;
}

.contact-form .careers-form__file::file-selector-button {
  margin-right: 16px;
  border: 0;
  border-radius: 8px;
  padding: 8px 14px;

  background: rgba(47, 110, 196, 0.1);
  color: var(--color-brand-blue);

  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;

  cursor: pointer;

  transition:
    background-color 180ms ease,
    color 180ms ease;
}

.contact-form .careers-form__file::file-selector-button:hover {
  background: var(--color-brand-blue);
  color: var(--color-text-light);
}








/* ================================
   Careers page
================================ */

.careers-section {
  background: var(--color-surface-light);
}

.careers-section__inner {
  padding-top: 112px;
  padding-bottom: 112px;
}

.careers-section__grid {
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(0, 640px);
  gap: 76px;
  align-items: start;
}


/* Open positions */

.careers-openings {
  max-width: 620px;
}

.careers-openings h2 {
  margin: 16px 0 64px;

  color: var(--color-text-dark);

  font-size: 40px;
  font-weight: 600;
  line-height: 48px;
}

.careers-openings__list {
  display: flex;
  flex-direction: column;
}

.career-opening {
  padding-bottom: 32px;
  border-bottom: 1px solid #d8e0ea;
}

.career-opening + .career-opening {
  padding-top: 32px;
}

.career-opening h3 {
  margin: 0 0 10px;

  color: var(--color-text-dark);

  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
}

.career-opening p {
  max-width: 560px;
  margin: 0;

  color: #5a5f69;

  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
}

.careers-openings__note {
  max-width: 560px;
  margin: 56px 0 0;

  color: #8a97a8;

  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
}


/* Careers form */

.careers-form-card {
  max-width: 640px;
  justify-self: end;
}

.contact-form__field select {
  width: 100%;
  height: 52px;
  border: 1px solid #c4ccd8;
  border-radius: 10px;
  padding: 0 44px 0 16px;

  appearance: none;
  background-color: var(--color-surface-light);
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.5 7.5 10 12l4.5-4.5' fill='none' stroke='%235A5F69' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px 18px;

  color: var(--color-text-dark);

  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  line-height: 22px;

  cursor: pointer;

  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.contact-form__field select:focus {
  outline: none;
  border-color: var(--color-brand-blue);
  box-shadow: 0 0 0 3px rgba(47, 110, 196, 0.14);
}

.contact-form__field select:invalid {
  color: #a6b2c0;
}

.careers-form .contact-form__field textarea {
  min-height: 112px;
}

.careers-form__file {
  padding-top: 13px;
  padding-bottom: 13px;

  color: #5a5f69;
}

.careers-form__file::file-selector-button {
  margin-right: 16px;
  border: 0;
  border-radius: 8px;
  padding: 8px 14px;

  background: rgba(47, 110, 196, 0.1);
  color: var(--color-brand-blue);

  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;

  cursor: pointer;

  transition:
    background-color 180ms ease,
    color 180ms ease;
}

.careers-form__file::file-selector-button:hover {
  background: var(--color-brand-blue);
  color: var(--color-text-light);
}




/* ================================
   References page
================================ */

.references-clients,
.references-main {
  background: var(--color-surface-light);
}

.references-clients__inner {
  padding-top: 112px;
  padding-bottom: 88px;
}

.references-clients__header {
  max-width: 100%;
  margin-bottom: 72px;
}

.references-clients__header p:not(.section-eyebrow) {
  max-width: 760px;
}

.references-clients__header h2,
.references-section-header h2 {
  margin: 16px 0 0;

  color: var(--color-text-dark);

  font-size: 40px;
  font-weight: 600;
  line-height: 48px;
}

.references-clients__header p:not(.section-eyebrow) {
  max-width: 700px;
  margin: 20px 0 0;

  color: var(--color-text-dark);

  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
}


/* Stats */

.references-stats {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.42fr);
  gap: 24px;
  align-items: stretch;
}

.references-stat-card {
  min-height: 220px;
  padding: 36px 32px 32px;
  border: 1px solid #c4ccd8;
  border-radius: 12px;

  background: #f3f6fa;
}

.references-stat-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;

  margin-bottom: 28px;
}

.references-stat-card__top strong {
  color: var(--color-brand-blue);

  font-size: 56px;
  font-weight: 600;
  line-height: 64px;
}

.references-stat-card__top img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.references-stat-card h3 {
  margin: 0 0 12px;

  color: var(--color-text-dark);

  font-size: 18px;
  font-weight: 600;
  line-height: 26px;
}

.references-stat-card p {
  margin: 0;

  color: #5a5f69;

  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.references-trust-card {
  min-height: 220px;
  padding: 40px;
  border-radius: 12px;

  background: var(--color-surface-dark);
}

.references-trust-card__heading {
  display: flex;
  align-items: center;
  gap: 16px;

  margin-bottom: 24px;
}

.references-trust-card__heading span {
  width: 36px;
  height: 36px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: var(--color-text-muted);
}

.references-trust-card__heading img {
  width: 32px;
  height: 32px;
  display: block;
}

.references-trust-card h3 {
  margin: 0;

  color: var(--color-text-light);

  font-size: 20px;
  font-weight: 600;
  line-height: 33px;
}

.references-trust-card p {
  margin: 0;

  color: var(--color-text-muted);

  font-size: 18px;
  font-weight: 400;
  line-height: 30px;
}


/* Main references */

.references-main__inner {
  padding-top: 0;
  padding-bottom: 112px;
}

.references-section-header {
  margin-bottom: 64px;
}

.references-logo-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.references-logo-card {
  min-height: 240px;
  padding: 32px 24px 28px;
  border: 1px solid #cfd6df;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  background: var(--color-surface-light);
  text-align: center;
}

.references-logo-card img {
  width: 150px;
  height: auto;
  object-fit: contain;
  margin-bottom: 28px;
}

.references-logo-card p {
  margin: 0;

  color: #5a5f69;

  font-size: 15px;
  font-weight: 400;
  line-height: 22px;
}


/* Other references */

.references-other {
  background: #edf2f7;
}

.references-other__inner {
  padding-top: 88px;
  padding-bottom: 88px;
}

.references-other__columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 80px;

  margin-top: 48px;
}

.references-other__columns ul {
  margin: 0;
  padding: 0;

  list-style: none;
}

.references-other__columns li {
  position: relative;

  padding-left: 18px;

  color: #5a5f69;

  font-size: 17px;
  font-weight: 400;
  line-height: 30px;
}

.references-other__columns li::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 0;

  width: 5px;
  height: 5px;
  border-radius: 50%;

  background: var(--color-brand-blue);
}




/* ================================
   Service pages
   Privacy / Cookies / Legal
================================ */

.service-page {
  background: var(--color-surface-light);
}

.service-page__inner {
  padding-top: 80px;
  padding-bottom: 112px;
}

.service-content {
  max-width: 700px;
}

.service-notice {
  margin-bottom: 48px;
  padding: 28px 32px;
  border-radius: 12px;

  background: #f1f4f8;
}

.service-notice p {
  margin: 0;

  color: #5a5f69;

  font-size: 15px;
  font-weight: 400;
  line-height: 25px;
}

.service-article {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.service-article section {
  margin: 0;
}

.service-article h3 {
  position: relative;

  margin: 0 0 20px;

  color: var(--color-text-dark);

  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
}

.service-article h3::after {
  content: "";
  display: block;

  width: 32px;
  height: 2px;
  margin-top: 10px;

  background: var(--color-brand-blue);
}

.service-article p {
  margin: 0;

  color: #5a5f69;

  font-size: 16px;
  font-weight: 400;
  line-height: 28px;
}

.service-article a,
.service-document-footer a {
  color: var(--color-brand-blue);
  font-weight: 500;
  text-decoration: none;
}

.service-article a:hover,
.service-article a:focus-visible,
.service-document-footer a:hover,
.service-document-footer a:focus-visible {
  text-decoration: underline;
}

.service-document-footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid #d8e0ea;
}

.service-document-footer p {
  margin: 0;

  color: #8a97a8;

  font-size: 13px;
  font-weight: 400;
  line-height: 21px;
}


/* Service page hero */

.page-hero--service {
  height: 460px;
}

.page-hero--service .hero__inner {
  padding-top: 90px;
  padding-bottom: 0;
}

.page-hero--service .hero__content {
  gap: 20px;
}

.page-hero--service .hero h1 {
  font-size: 56px;
  line-height: 64px;
}





/* ================================
   404 page
================================ */

.error-page {
  background: var(--color-surface-light);
}

.error-404 {
  background: var(--color-surface-light);
}

.error-404__inner {
  min-height: 620px;
  padding-top: 96px;
  padding-bottom: 112px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
}

.error-404__code {
  position: relative;

  margin: 0 0 32px;

  color: #edf2f7;

  font-size: 180px;
  font-weight: 600;
  line-height: 0.8;
  letter-spacing: -0.06em;
}

.error-404__code::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -18px;

  width: 48px;
  height: 3px;
  border-radius: 999px;

  background: var(--color-brand-blue);

  transform: translateX(-50%);
}

.error-404__eyebrow {
  margin: 0 0 18px;

  color: var(--color-brand-blue);
  text-transform: uppercase;
  letter-spacing: 0.12em;

  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
}

.error-404 h1 {
  max-width: 620px;
  margin: 0;

  color: var(--color-text-dark);

  font-size: 40px;
  font-weight: 600;
  line-height: 48px;
  letter-spacing: -0.01em;
}

.error-404__text {
  max-width: 520px;
  margin: 24px 0 0;

  color: #5a5f69;

  font-size: 18px;
  font-weight: 400;
  line-height: 30px;
}

.error-404__actions {
  width: 100%;
  max-width: 360px;
  margin-top: 44px;

  display: flex;
  flex-direction: column;
  gap: 14px;
}

.error-404__button {
  width: 100%;
  min-height: 52px;
}

.error-404__button--outline {
  border: 1px solid var(--color-brand-blue);

  background: transparent;
  color: var(--color-brand-blue);
}

.error-404__button--outline::before {
  background: rgba(57, 103, 178, 0.08);
}

.error-404__button--outline:hover::before,
.error-404__button--outline:focus-visible::before {
  opacity: 1;
}

.error-page + .site-footer {
  margin-top: 0;
}

body.error404 .site-header {
  background: var(--color-surface-dark);
}


/* ================================
   Prefooter
================================ */

.prefooter {
  background: var(--color-surface-dark);
  color: var(--color-text-light);
  border-bottom: 1px solid rgba(144, 161, 185, 0.16);
}

.prefooter__inner {
  min-height: 280px;
  padding-top: 72px;
  padding-bottom: 72px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.prefooter__eyebrow {
  margin: 0 0 16px;

  color: var(--color-brand-cyan);

  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.prefooter h2 {
  max-width: 640px;
  margin: 0;

  color: var(--color-text-light);
  text-align: center;

  font-size: 32px;
  font-weight: 600;
  line-height: 40px;
}

.prefooter__button {
  margin-top: 28px;
}


/* ================================
   Footer
================================ */

.site-footer {
  background: var(--color-surface-dark);
  color: var(--color-text-muted);
}

.site-footer__inner {
  padding-top: 64px;
  padding-bottom: 48px;
}

.site-footer__top {
  display: grid;
  grid-template-columns: 180px 1fr 1fr 1fr;
  column-gap: 80px;
  align-items: start;
}

.site-footer__logo img {
  width: 81px;
  height: 54px;
}

.site-footer__column {
  min-width: 0;
}

.site-footer__title {
  margin: 0 0 24px;

  color: rgba(202, 213, 226, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.14em;

  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.site-footer__nav,
.site-footer__contacts,
.site-footer__address {
  display: flex;
  flex-direction: column;
  gap: 8px;

  font-style: normal;
  color: var(--color-text-muted);

  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
  transition: color 180ms ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--color-brand-cyan);
}

.site-footer__bottom {
  margin-top: 64px;

  color: rgba(202, 213, 226, 0.45);
  text-align: center;

  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
}

.site-footer__bottom p {
  margin: 0;
}


/* ================================
   Mobile menu base
================================ */

.menu-toggle {
  display: none;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;

  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin-left: auto;
  margin-right: auto;

  background: var(--color-text-light);
  border-radius: 999px;
}

.menu-toggle span + span {
  margin-top: 5px;
}

.mobile-menu {
  display: none;
}

.mobile-menu__close {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: transparent;
  color: var(--color-text-light);

  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}


/* ================================
   Navigation breakpoint
   Only switches desktop navigation
   to hamburger/mobile menu
================================ */

@media (max-width: 1040px) {
  .site-nav,
  .site-header__cta {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 20;

  display: block;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  color: var(--color-text-light);

  background:
    radial-gradient(circle at 85% 90%, rgba(31, 69, 160, 0.55), transparent 38%),
    linear-gradient(180deg, #071123 0%, #0b1734 55%, #10235a 100%);

  transition:
    opacity 180ms ease,
    visibility 180ms ease;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

  .mobile-menu__inner {
    width: 100%;
    min-height: 100svh;
    padding-inline: var(--container-padding);
    padding-bottom: 32px;

    display: flex;
    flex-direction: column;
  }

  .mobile-menu__top {
    height: 86px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 48px;
  }

  .mobile-menu__top .site-logo img {
    width: 81px;
    height: 54px;
  }

  .mobile-menu__nav {
    display: flex;
    flex-direction: column;
  }

.mobile-menu__nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding-block: 18px;
  border-bottom: 1px solid rgba(144, 161, 185, 0.18);

  color: var(--color-text-light);
  text-decoration: none;

  font-size: 21px;
  font-weight: 600;
  line-height: 28px;
}

  .mobile-menu__nav a:hover,
  .mobile-menu__nav a:focus-visible,
  .mobile-menu__nav a[aria-current="page"] {
    color: var(--color-brand-cyan);
  }

  .mobile-menu__nav a span:last-child {
    color: currentColor;
    opacity: 0.75;
  }

  .mobile-menu__cta {
    width: 100%;
    min-height: 50px;
    margin-top: auto;
  }

  body.menu-open {
    overflow: hidden;
  }
}


/* ================================
   Tablet layout
   Reduced spacing while retaining
   desktop/tablet hero structure
================================ */

@media (max-width: 1040px) and (min-width: 769px) {
  :root {
    --container-padding: 40px;
    --hero-content-offset: 64px;
  }

  .home-hero__image {
    object-position: 62% center;
  }

  .home-hero__inner {
    padding-top: 56px;
    padding-bottom: 96px;
  }

  .home-hero__content {
    max-width: 640px;
  }

  .home-hero__eyebrow {
    font-size: 16px;
    line-height: 24px;
  }

  .home-hero h1 {
    max-width: 620px;

    font-size: 52px;
    line-height: 60px;
  }

  .home-hero__content > p:not(.home-hero__eyebrow) {
    max-width: 560px;

    font-size: 18px;
    line-height: 30px;
  }

  .hero h1 {
    max-width: 720px;
    font-size: 52px;
    line-height: 64px;
  }

  .hero p {
    max-width: 720px;
    font-size: 19px;
    line-height: 30px;
  }

  .hero__content {
    max-width: calc(100% - 48px);
    padding-right: 48px;
    box-sizing: border-box;
  }

  .hero h1,
  .hero p {
    max-width: 100%;
  }

  /* ================================
     Chi siamo — intro e visione
  ================================ */

  .about-intro__grid,
  .about-vision__grid {
    grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
    gap: 40px;
  }

  .about-intro__content,
  .about-vision__content {
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  .about-intro__content h2,
  .about-vision__content h2 {
    font-size: 34px;
    line-height: 42px;
  }


  /* ================================
     Chi siamo — valori
  ================================ */

  .about-values__inner {
    grid-template-columns:
      minmax(0, 0.85fr)
      minmax(0, 1.15fr);

    gap: 24px;
  }

  .about-values__media,
  .about-values__content {
    min-height: 480px;
  }

  .about-values__content {
    padding: 48px 40px;
  }

  .about-values__content h2 {
    margin-bottom: 28px;

    font-size: 32px;
    line-height: 40px;
  }

  .about-values__content p {
    font-size: 16px;
    line-height: 26px;
  }

  .about-values__content p + p {
    margin-top: 24px;
  }


  /* ================================
    Attività - Intro
  ================================ */

  .activity-intro__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .activity-intro__heading,
  .activity-intro__content {
    max-width: none;
  }

  .activity-intro__content {
    padding-top: 0;
  }

  .activity-intro__heading h2 {
    max-width: 760px;

    font-size: 48px;
    line-height: 56px;
  }

  .activity-intro__content p {
    max-width: 760px;
  }

  .activity-intro__content h3 {
    margin-top: 36px;
  }

  .activity-gallery__slide {
    flex-basis: 46vw;
    width: 46vw;
    height: 320px;
  }


  /* ================================
     Referenze — tablet
  ================================ */

  .references-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .references-trust-card {
    grid-column: 1 / -1;

    width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 36px 40px;
  }

  .references-trust-card__heading {
    margin-bottom: 16px;
  }

  .references-trust-card p {
    max-width: 720px;
    font-size: 16px;
    line-height: 28px;
  }

  .references-stat-card {
    min-height: 210px;
    padding: 32px 28px 28px;
  }

  .references-stat-card__top {
    margin-bottom: 22px;
  }

  .references-stat-card__top strong {
    font-size: 48px;
    line-height: 56px;
  }

  .references-stat-card__top img {
    width: 48px;
    height: 48px;
  }

  .references-logo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .references-logo-card {
    min-height: 210px;
    padding: 28px 20px 24px;
  }

  .references-logo-card img {
    width: 88px;
    height: 68px;
  }

  .references-logo-card p {
    font-size: 14px;
    line-height: 21px;
  }



  /* Team: quote card su una riga separata */
  .team-quote-card {
    grid-column: 1 / -1;
    aspect-ratio: auto;
    min-height: 240px;
    padding: 40px;
  }

  .team-quote-card p {
    max-width: 760px;
    font-size: 24px;
    line-height: 32px;
  }

  /* ================================
    Lavora con noi
  =============================== */

  .careers-section__grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .careers-content,
  .careers-form-card {
    max-width: none;
  }

  .careers-form-card {
    width: 100%;
    max-width: 720px;
  }


/* ================================
     Contatti — tablet
  ================================ */


  .contact-form-card {
    padding: 48px;
  }

  .contact-form__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contacts-section__grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .contacts-info {
    width: 100%;
    max-width: 720px;
  }

  .contact-form-card {
    width: 100%;
    max-width: none;
    padding: 48px;
  }

  .contact-form__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 24px;
  }





}


/* ================================
   Mobile layout
   Typography, spacing and stacked
   section layouts
================================ */

@media (max-width: 768px) {
  :root {
    --container-padding: 20px;
    --hero-content-offset: 0;
  }

  .desktop-only {
    display: none;
  }

  .page-hero {
    height: auto;
    min-height: 417px;
  }
  

  .site-header__inner {
    height: 104px;
  }

  .site-logo img {
    width: 65px;
    height: auto;
  }

  .mobile-menu__top {
    height: 104px;
  }

  .mobile-menu__top .site-logo img {
    width: 65px;
    height: auto;
  }


  .home-hero {
    min-height: 100vh;
    min-height: 100svh;
  }

  .home-hero__image {
    object-position: 58% center;
  }

  .home-hero__overlay {
    background:
      linear-gradient(
        180deg,
        rgba(6, 17, 31, 0.82) 0%,
        rgba(6, 17, 31, 0.64) 34%,
        rgba(6, 17, 31, 0.46) 68%,
        rgba(6, 17, 31, 0.58) 100%
      ),
      linear-gradient(
        90deg,
        rgba(6, 17, 31, 0.78) 0%,
        rgba(6, 17, 31, 0.52) 58%,
        rgba(6, 17, 31, 0.30) 100%
      );
  }

  .home-hero__inner {
    align-items: flex-start;

    padding-top: 48px;
    padding-bottom: 56px;
  }

  .home-hero__content {
    max-width: none;
  }

  .home-hero__eyebrow {
    margin-bottom: 18px;

    font-size: 12px;
    line-height: 18px;
    letter-spacing: 0.08em;
  }

  .home-hero h1 {
    max-width: 340px;

    font-size: 32px;
    line-height: 38px;
    letter-spacing: -0.01em;
  }

  .home-hero__content > p:not(.home-hero__eyebrow) {
    max-width: 350px;
    margin-top: 20px;

    color: rgba(239, 246, 255, 0.92);

    font-size: 14px;
    line-height: 24px;
  }

  .home-hero__actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;

    margin-top: 30px;
  }

  .home-hero__actions .button {
    width: 100%;
    min-height: 50px;
    justify-content: center;
  }

  .home-hero__button-outline {
    border-color: rgba(239, 246, 255, 0.34);
    color: rgba(239, 246, 255, 0.86);
  }




  .home-partners__viewport {
    height: 92px;
  }

  .home-partners__viewport::before,
  .home-partners__viewport::after {
    width: 56px;
  }

  .home-partners__list {
    gap: 40px;
    padding-right: 40px;
  }

  .home-partners__item img {
    width: 82px;
    height: 68px;
  }





  /* Home about */

  .home-about__inner {
    padding-top: 48px;
    padding-bottom: 64px;
  }

  .home-about__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .home-about__label {
    padding-top: 0;
  }

  .home-about__content h2 {
    font-size: 28px;
    line-height: 35px;
    letter-spacing: -0.01em;
  }

  .home-about__content p {
    max-width: none;
    margin-top: 18px;

    font-size: 15px;
    line-height: 25px;
  }

  .home-about__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;

    margin-top: 40px;
  }

  .home-stat-card {
    min-height: 118px;
    padding: 16px 12px 14px;

    border-radius: 8px;
  }

  .home-stat-card strong {
    margin-bottom: 6px;

    font-size: 26px;
    line-height: 32px;
  }

  .home-stat-card p {
    max-width: none;

    font-size: 10px;
    line-height: 14px;
  }


  /* Home services */

  .home-services__inner {
    padding-top: 0;
    padding-bottom: 64px;
  }

  .home-services__header {
    max-width: none;
    margin-bottom: 32px;
  }

  .home-services__header h2 {
    max-width: none;
    margin-top: 16px;

    font-size: 26px;
    line-height: 32px;
    letter-spacing: -0.01em;
  }

  .home-services__viewport {
    margin-right: calc(var(--container-padding) * -1);

    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;

    scrollbar-width: none;
  }

  .home-services__viewport::-webkit-scrollbar {
    display: none;
  }

  .home-services__grid {
    display: flex;
    gap: 14px;

    width: max-content;
    padding-right: var(--container-padding);
  }

  .home-service-card {
    flex: 0 0 82vw;
    min-height: 294px;

    scroll-snap-align: start;

    padding: 64px 24px 28px;
    border-radius: 10px;
  }

  .home-service-card__icon {
    top: 20px;
    right: 20px;

    width: 60px;
    height: 60px;

    opacity: 0.9;
  }

  .home-service-card__content {
    max-width: none;
  }

  .home-service-card__category {
    margin-bottom: 6px;

    font-size: 16px;
    line-height: 24px;
  }

  .home-service-card h3 {
    font-size: 20px;
    line-height: 26px;
  }

  .home-service-card__content > p:not(.home-service-card__category) {
    max-width: none;
    margin-top: 20px;

    font-size: 13px;
    line-height: 21px;
  }



  /* Home quality */

  .home-quality__inner {
    padding-top: 0;
    padding-bottom: 56px;
  }

  .home-quality__header {
    max-width: none;
    margin-bottom: 36px;
  }

  .home-quality__header h2 {
    margin-top: 16px;

    font-size: 28px;
    line-height: 35px;
  }

  .home-quality__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .home-quality-card img {
    width: 150px;
    margin-bottom: 18px;
  }

  .home-quality-card h3 {
    margin-bottom: 10px;

    font-size: 15px;
    line-height: 22px;
  }

  .home-quality-card p {
    max-width: none;

    font-size: 14px;
    line-height: 23px;
  }


  /* Home method */

  .home-method__inner {
    grid-template-columns: 1fr;
    gap: 12px;

    padding-top: 0;
    padding-bottom: 64px;
  }

  .home-method__media {
    height: 256px;
    min-height: 0;
    border-radius: 10px;
  }

  .home-method__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 44%;
  }

  .home-method__card {
    min-height: 0;
    padding: 32px 24px 36px;

    border-radius: 10px;
  }

  .home-method__card h2 {
    max-width: none;
    margin-top: 16px;

    font-size: 24px;
    line-height: 31px;
  }

  .home-method__card p:not(.section-eyebrow) {
    max-width: none;
    margin-top: 24px;

    font-size: 14px;
    line-height: 24px;
  }

  .home-method__card p:not(.section-eyebrow) + p {
    margin-top: 18px;
  }


  /* Home careers CTA */

  .home-careers-cta__inner {
    max-width: none;

    padding-top: 8px;
    padding-bottom: 72px;
  }

  .home-careers-cta__inner .section-eyebrow {
    margin-bottom: 14px;
  }

  .home-careers-cta h2 {
    max-width: 360px;

    font-size: 24px;
    line-height: 31px;
  }

  .home-careers-cta .button {
    margin-top: 24px;
  }




  .hero {
    flex: initial;
  }

  .hero__inner {
    padding-top: 34px;
    padding-bottom: 56px;
  }

  .hero__content {
    max-width: none;
    margin-left: 0;
    gap: 20px;
  }

  .breadcrumb {
    font-size: 14px;
    line-height: 20px;
  }

  .hero h1 {
    max-width: 350px;
    font-size: 32px;
    line-height: 38px;
  }

  .hero p {
    max-width: 350px;
    font-size: 16px;
    line-height: 26px;
  }

  .content-section__inner {
    min-height: 0;
    padding-top: 0;
    padding-bottom: var(--section-space-mobile);
  }

  .page-main > .content-section:first-child .content-section__inner {
    padding-top: var(--section-space-after-hero-mobile);
  }

  .about-intro__grid,
  .activity-intro__grid,
  .team-intro__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-eyebrow {
    font-size: 20px;
    line-height: 26px;
  }

  .about-intro__content,
  .activity-intro__heading,
  .activity-intro__content,
  .team-intro__heading,
  .team-intro__content {
    max-width: none;
  }

  .about-intro__content h2,
  .activity-intro__heading h2,
  .team-intro__heading h2 {
    font-size: 28px;
    line-height: 35px;
  }

  .about-intro__content h2 {
    margin-bottom: 24px;
  }

  .activity-intro__heading h2,
  .team-intro__heading h2 {
    max-width: none;
    margin-top: 16px;
  }

  .about-intro__content p,
  .activity-intro__content p,
  .team-intro__content p {
    font-size: 16px;
    line-height: 28px;
  }

  .about-intro__content h3,
  .activity-intro__content h3 {
    margin-top: 32px;
    margin-bottom: 12px;

    font-size: 18px;
    line-height: 28px;
  }

  .activity-intro__content,
  .team-intro__content {
    padding-top: 0;
  }

  .activity-gallery__top {
    justify-content: flex-end;
  }

  .activity-gallery__controls {
    gap: 24px;
    margin-bottom: 24px;
  }

  .activity-gallery__button {
    font-size: 32px;
  }

  .activity-gallery__slide {
    flex-basis: 84vw;
    width: 84vw;
    height: 240px;
  }

  .activity-fields__inner {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .activity-fields__header {
    max-width: none;
    margin-bottom: 64px;
  }

  .activity-fields__eyebrow {
    margin-bottom: 16px;

    font-size: 20px;
    line-height: 26px;
  }

  .activity-fields h2 {
    font-size: 28px;
    line-height: 35px;
  }

  .activity-fields__item {
    grid-template-columns: 1fr;
    gap: 28px;

    padding-top: 32px;
    padding-bottom: 56px;
  }

  .activity-fields__item-heading p {
    margin-bottom: 8px;

    font-size: 28px;
    line-height: 35px;
  }

  .activity-fields__item-heading h3 {
    font-size: 28px;
    line-height: 35px;
  }

  .activity-fields__item ul {
    font-size: 16px;
    line-height: 28px;
  }

  .activity-certifications__inner {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .activity-certifications__header {
    max-width: none;
    text-align: left;
  }

  .activity-certifications__header h2 {
    margin-top: 16px;

    font-size: 28px;
    line-height: 35px;
  }

  .activity-certifications__list {
    margin-top: 64px;

    grid-template-columns: 1fr;
    justify-content: start;
    gap: 40px;
  }

  .activity-certifications__list img {
    width: 180px;
  }

  .about-values__inner {
    grid-template-columns: 1fr;
    gap: 16px;

    padding-top: 0;
    padding-bottom: var(--section-space-mobile);
  }

  .about-values__media {
    height: 210px;
    min-height: 0;
    border-radius: 8px;
  }

  .about-values__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
  }

  .about-values__content {
    min-height: auto;
    padding: 40px 24px;
    border-radius: 8px;
  }

  .about-values__content h2 {
    margin-bottom: 28px;

    font-size: 28px;
    line-height: 35px;
  }

  .about-values__content p {
    font-size: 16px;
    line-height: 28px;
  }

  .about-values__content p + p {
    margin-top: 28px;
  }

  .about-vision .content-section__inner {
    padding-bottom: var(--section-space-before-prefooter-mobile);
  }

  .about-vision__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-vision__content {
    max-width: none;
  }

  .about-vision__content h2 {
    margin-bottom: 20px;

    font-size: 28px;
    line-height: 35px;
  }

  .about-vision__content p {
    font-size: 16px;
    line-height: 28px;
  }

  .about-vision__link {
    margin-top: 32px;

    font-size: 18px;
    line-height: 24px;
  }







.team-section-header {
  max-width: none;
  margin-bottom: 40px;
}

.team-section-header h2 {
  margin-top: 16px;

  font-size: 28px;
  line-height: 35px;
}

.team-section-header p:not(.section-eyebrow) {
  margin-top: 16px;

  font-size: 16px;
  line-height: 28px;
}

.team-governance__inner {
  padding-top: 64px;
  padding-bottom: 64px;
}

.team-governance__grid {
  grid-template-columns: 1fr;
  gap: 40px;
}

.team-members__inner {
  padding-top: 64px;
  padding-bottom: 64px;
}

.team-members__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 16px;
}

.team-card__media {
  border-radius: 8px;
}

.team-card__body {
  padding-top: 16px;
}

.team-card__body h3 {
  font-size: 18px;
  line-height: 23px;
}

.team-card__role {
  margin-top: 6px;

  font-size: 14px;
  line-height: 21px;
}

.team-card__description {
  margin-top: 16px;

  font-size: 15px;
  line-height: 24px;
}

.team-card--large .team-card__body {
  padding-top: 20px;
}

.team-card--large .team-card__body h3 {
  font-size: 24px;
  line-height: 32px;
}

.team-card--large .team-card__role {
  font-size: 16px;
  line-height: 24px;
}

.team-card--large .team-card__description {
  max-width: none;

  font-size: 16px;
  line-height: 28px;
}

.team-quote-card {
  aspect-ratio: auto;
  min-height: 0;
  padding: 28px 24px;

  grid-column: 1 / -1;
}

.team-quote-card p {
  font-size: 18px;
  line-height: 26px;
}






.contacts-section__inner {
  padding-top: 56px;
  padding-bottom: 64px;
}

.contacts-section__grid {
  grid-template-columns: 1fr;
  gap: 48px;
}

.contacts-info {
  gap: 20px;
}

.contacts-card {
  padding: 32px 24px;
  border-radius: 12px;
}

.contacts-card__heading {
  margin-bottom: 28px;
}

.contacts-card__heading h3 {
  font-size: 24px;
  line-height: 32px;
}

.contacts-card__list {
  gap: 18px;
}

.contacts-card__item {
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;

  font-size: 15px;
  line-height: 23px;
}

.contacts-icon--plain {
  width: 22px;
  height: 22px;
}

.contacts-icon svg {
  width: 19px;
  height: 19px;
}

.contacts-map-card {
  padding: 22px 0;

  grid-template-columns: 38px minmax(0, 1fr) 20px;
  gap: 14px;
}

.contacts-map-card__icon {
  width: 38px;
  height: 38px;
}

.contacts-map-card__text strong {
  font-size: 16px;
  line-height: 23px;
}

.contacts-map-card__text span {
  font-size: 14px;
  line-height: 21px;
}

.contacts-map-card__icon svg,
.contacts-map-card__arrow svg {
  width: 21px;
  height: 21px;
}

.office-hours {
  padding-top: 24px;
  border: none;
}

.office-hours h3 {
  margin-bottom: 16px;

  font-size: 14px;
  line-height: 21px;
}

.office-hours dl {
  gap: 12px;
}

.office-hours div {
  gap: 16px;
}

.office-hours dt,
.office-hours dd {
  font-size: 14px;
  line-height: 21px;
}

.contact-form-card {
  margin-right: calc(var(--container-padding) * -1);
  margin-left: calc(var(--container-padding) * -1);

  padding: 40px var(--container-padding);
  border: 0;
  border-radius: 0;

  background: var(--color-surface-light);
}

.contact-form-card__eyebrow {
  margin-bottom: 8px;

  font-size: 12px;
  line-height: 18px;
}

.contact-form-card h2 {
  margin-bottom: 28px;

  font-size: 26px;
  line-height: 34px;
}

.contact-form__grid {
  grid-template-columns: 1fr;
  gap: 20px;
}

.contact-form__field label {
  font-size: 15px;
  line-height: 19.5px;
}

.contact-form__field input {
  height: 50px;
}

.contact-form__field textarea {
  min-height: 132px;
}

.contact-form__privacy {
  margin: 22px 0 20px;

  font-size: 12px;
  line-height: 19px;
}

.contact-form__privacy .wpcf7-list-item-label {
  font-size: 12px;
  line-height: 19px;
}

.contact-form__submit,
.contact-form .wpcf7-submit {
  height: 54px;
}







  .careers-section__inner {
    padding-top: 56px;
    padding-bottom: 64px;
  }

  .careers-section__grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .careers-openings {
    max-width: none;
  }

  .careers-openings h2 {
    margin-top: 16px;
    margin-bottom: 40px;

    font-size: 28px;
    line-height: 35px;
  }

  .career-opening {
    padding-bottom: 28px;
  }

  .career-opening + .career-opening {
    padding-top: 28px;
  }

  .career-opening h3 {
    margin-bottom: 8px;

    font-size: 18px;
    line-height: 26px;
  }

  .career-opening p {
    max-width: none;

    font-size: 15px;
    line-height: 24px;
  }

  .careers-openings__note {
    max-width: none;
    margin-top: 40px;

    font-size: 15px;
    line-height: 24px;
  }

  .careers-form-card {
    max-width: none;
    justify-self: stretch;
  }

  .contact-form__field select {
    height: 50px;
    font-size: 15px;
    line-height: 22px;
  }

  .careers-form .contact-form__field textarea {
    min-height: 120px;
  }

  .careers-form__file {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .careers-form__file::file-selector-button {
    margin-right: 12px;
    padding: 7px 12px;

    font-size: 13px;
    line-height: 18px;
  }




  .references-clients__inner {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .references-clients__header {
    max-width: none;
    margin-bottom: 40px;
  }

  .references-clients__header h2,
  .references-section-header h2 {
    margin-top: 16px;

    font-size: 28px;
    line-height: 35px;
  }

  .references-clients__header p:not(.section-eyebrow) {
    margin-top: 16px;

    font-size: 16px;
    line-height: 28px;
  }

  .references-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .references-stat-card {
    min-height: 156px;
    padding: 22px 16px 18px;
    border-radius: 8px;
  }

  .references-stat-card__top {
    margin-bottom: 14px;
    gap: 12px;
  }

  .references-stat-card__top strong {
    font-size: 34px;
    line-height: 40px;
  }

  .references-stat-card__top img {
    width: 36px;
    height: 36px;
  }

  .references-stat-card h3 {
    margin-bottom: 6px;

    font-size: 13px;
    line-height: 18px;
  }

  .references-stat-card p {
    font-size: 12px;
    line-height: 18px;
  }

    .references-trust-card {
        grid-column: 1 / -1;

        width: 100%;
        min-width: 0;
        min-height: 0;
        padding: 28px 24px;
        border-radius: 8px;
    }

  .references-trust-card__heading {
    gap: 12px;
    margin-bottom: 16px;
  }

  .references-trust-card__heading span {
    width: 28px;
    height: 28px;
  }

    .references-trust-card__heading img {
    width: 26px;
    height: 26px;
    }

  .references-trust-card h3 {
    font-size: 16px;
    line-height: 24px;
  }

  .references-trust-card p {
    font-size: 14px;
    line-height: 24px;
  }

  .references-main__inner {
    padding-top: 0;
    padding-bottom: 56px;
  }

  .references-section-header {
    margin-bottom: 32px;
  }

  .references-logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
  }

  .references-logo-card {
    min-height: 162px;
    padding: 20px 12px 18px;
    border-color: #d8e0ea;
    margin-right: -1px;
    margin-bottom: -1px;
  }

  .references-logo-card img {
    width: 74px;
    height: 58px;
    margin-bottom: 16px;
  }

  .references-logo-card p {
    font-size: 11px;
    line-height: 16px;
  }

  .references-other__inner {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .references-other__columns {
    grid-template-columns: 1fr;
    gap: 0;

    margin-top: 32px;
  }

  .references-other__columns li {
    padding: 11px 0 11px 16px;
    border-bottom: 1px solid #d3dce7;

    font-size: 14px;
    line-height: 21px;
  }

  .references-other__columns li::before {
    top: 19px;

    width: 4px;
    height: 4px;
  }




    .service-page__inner {
    padding-top: 56px;
    padding-bottom: 72px;
  }

  .service-content {
    max-width: none;
  }

  .service-notice {
    margin-bottom: 40px;
    padding: 24px 20px;
    border-radius: 10px;
  }

  .service-notice p {
    font-size: 14px;
    line-height: 24px;
  }

  .service-article {
    gap: 36px;
  }



/* ================================
   Service/editorial content
================================ */


  .service-article h3 {
    margin-bottom: 18px;

    font-size: 18px;
    line-height: 26px;
  }

  .service-article h3::after {
    width: 28px;
    margin-top: 9px;
  }

.service-article h2 {
  position: relative;

  margin: 0 0 24px;

  color: var(--color-text-dark);

  font-size: 28px;
  font-weight: 600;
  line-height: 36px;
}

.service-article h2::after {
  content: "";
  display: block;

  width: 40px;
  height: 2px;
  margin-top: 12px;

  background: var(--color-brand-blue);
}

.service-article h4 {
  margin: 0 0 14px;

  color: var(--color-text-dark);

  font-size: 18px;
  font-weight: 600;
  line-height: 26px;
}

.service-article ul,
.service-article ol {
  margin: 0;
  padding-left: 22px;

  color: #5a5f69;

  font-size: 16px;
  font-weight: 400;
  line-height: 28px;
}

.service-article li + li {
  margin-top: 8px;
}

.service-article strong {
  color: var(--color-text-dark);
  font-weight: 600;
}

  .service-article p {
    font-size: 15px;
    line-height: 26px;
  }



  .service-document-footer {
    margin-top: 48px;
    padding-top: 20px;
  }

  .service-document-footer p {
    font-size: 12px;
    line-height: 20px;
  }




.page-hero--service {
  min-height: 300px;
}

.page-hero--service .hero__inner {
  padding-top: 28px;
  padding-bottom: 48px;
}

.page-hero--service .hero h1 {
  font-size: 32px;
  line-height: 38px;
}









/* 404 page mobile */

.error-404__inner {
  min-height: 648px;
  padding-top: 72px;
  padding-bottom: 78px;
}

.error-404__code {
  margin-bottom: 34px;

  font-size: 120px;
  line-height: 0.8;
}

.error-404__code::after {
  bottom: -16px;

  width: 48px;
  height: 3px;
}

.error-404__eyebrow {
  margin-bottom: 16px;

  font-size: 14px;
  line-height: 20px;
}

.error-404 h1 {
  max-width: 330px;

  font-size: 27px;
  line-height: 34px;
}

.error-404__text {
  max-width: 320px;
  margin-top: 20px;

  font-size: 16px;
  line-height: 25px;
}

.error-404__actions {
  max-width: 280px;
  margin-top: 42px;
  gap: 12px;
}

.error-404__button {
  min-height: 51px;
}










  .prefooter__inner {
    min-height: 260px;
    padding-top: 56px;
    padding-bottom: 56px;

    align-items: flex-start;
    text-align: left;
  }

  .prefooter h2 {
    max-width: 340px;
    text-align: left;

    font-size: 26px;
    line-height: 34px;
  }

  .prefooter__eyebrow {
    margin-bottom: 12px;
  }

  .prefooter__button {
    margin-top: 24px;
  }
}


/* ================================
   Footer responsive
   Tablet
================================ */

@media (max-width: 1040px) {
  .site-footer__top {
    grid-template-columns: 1fr 1fr;
    row-gap: 48px;
    column-gap: 64px;
  }

  .site-footer__logo {
    grid-column: 1 / -1;
  }
}


/* ================================
   Footer responsive
   Mobile
================================ */

@media (max-width: 768px) {
  .site-footer__inner {
    padding-top: 48px;
    padding-bottom: 40px;
  }

  .site-footer__top {
    grid-template-columns: 1fr;
    row-gap: 40px;
  }

  .site-footer__title {
    margin-bottom: 16px;
  }

  .site-footer__nav,
  .site-footer__contacts,
  .site-footer__address {
    font-size: 15px;
    line-height: 23px;
  }

  .site-footer__bottom {
    margin-top: 48px;
    text-align: left;
  }
}



/* ================================
   Fix
================================ */

/* Gli elementi decorativi non devono intercettare mouse o touch */
.home-hero__media,
.home-hero__overlay {
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}


/* Garantisce la selezionabilità dei normali contenuti testuali */
:where(
  .page-main,
  .page-hero,
  .home-hero,
  .prefooter,
  .site-footer
) :where(
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  p,
  li,
  dt,
  dd,
  blockquote,
  address
) {
  -webkit-user-select: text !important;
  user-select: text !important;
}


/* ================================
   Reduced motion
================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}