* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================
   FONT
========================= */

@font-face {
  font-family: "Proxima Nova";
  src: url("assets/font/Proxima Nova Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Proxima Nova";
  src: url("assets/font/Proxima Nova Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Proxima Nova";
  src: url("assets/font/Proxima Nova Semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Proxima Nova";
  src: url("assets/font/Proxima Nova Extrabold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* =========================
   VARIABILI
========================= */

:root {
  --header-height: 82px;
  --bg: #f7f7f5;
  --paper: #ffffff;
  --ink: #062653;
  --muted: #4d6179;
  --line: #d9e0e8;
  --accent: #d52f2f;
  --accent-soft: #f8e4dc;
  --navy: #062653;
  --dark: #061d3f;
  --dark-2: #03152e;
  --grey-soft: #f0f1ee;
  --white: #fff;
  --cyan: #70e4f2;

  --container: 1180px;
  --space-x: clamp(1.25rem, 4vw, 4rem);
  --space-y: clamp(4rem, 8vw, 7rem);

  --font-title: "Proxima Nova", sans-serif;
  --font-text: "Proxima Nova", sans-serif;
}

body {
  padding-top: var(--header-height);
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-text);
  position: relative;
  isolation: isolate;
}

html {
  scroll-padding-top: var(--header-height);
}

/* Un solo sfondo condiviso: resta nella stessa posizione tra hero e sezione. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6, 38, 83, 0.38), rgba(6, 38, 83, 0.62)),
    url("assets/sfondo.png") center center / cover no-repeat;
}

/* Lo spazio necessario per animare durante lo scroll */
.scroll-track {
  height: 200svh;
  position: relative;
}

.about-track {
  height: 260svh;
  position: relative;
  background: transparent;
}

.about-section {
  position: sticky;
  top: var(--header-height);
  height: calc(100svh - var(--header-height));
  min-height: 478px;
  overflow: hidden;
  display: grid;
  place-items: center;
  isolation: isolate;
  background: transparent;
  color: #fff;
}

.about-background {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: transparent;
}

.about-content {
  position: relative;
  width: min(calc(100% - 2 * var(--space-x)), var(--container));
  margin: 0 auto;
  padding: 2rem 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  align-items: start;
  gap: clamp(3rem, 8vw, 8rem);
  transform: translateY(var(--about-y, 24vh));
  will-change: transform;
}

.about-heading h2 {
  max-width: 680px;
  color: #fff;
  font-family: var(--font-title);
  font-size: clamp(2.8rem, 5.6vw, 5.8rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.about-heading h2 span {
  display: inline-block;
  color: var(--accent);
}

.about-copy {
  display: grid;
  gap: 1.25rem;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 1.3vw, 1.16rem);
  line-height: 1.75;
}

.about-copy p:first-child {
  color: #fff;
  font-size: clamp(1.12rem, 1.55vw, 1.35rem);
  line-height: 1.6;
}

.services-section {
  position: relative;
  padding: clamp(5rem, 10vw, 9rem) var(--space-x) clamp(6rem, 12vw, 10rem);
  color: var(--white);
  background: transparent;
  overflow: hidden;
}
.services-inner {
  width: min(100%, var(--container));
  margin: 0 auto;
}
.services-header {
  margin: 0 0 clamp(3rem, 8vw, 7rem);
  max-width: 760px;
}
.services-kicker,
.service-index {
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.services-header h2 {
  margin-top: 1.2rem;
  font-size: clamp(2.8rem, 6.8vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-weight: 600;
  text-wrap: balance;
}
.services-header h2 span {
  color: var(--cyan);
}
.services-list {
  border-top: 1px solid rgba(112, 228, 242, 0.3);
}
.service-row {
  min-height: 300px;
  padding: clamp(2.7rem, 6vw, 5rem) 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.65fr);
  align-items: center;
  gap: clamp(2rem, 8vw, 8rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.19);
  opacity: 1;
}
.service-row-reverse {
  grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1.1fr);
}
.service-row-reverse .service-copy {
  order: 2;
}
.service-row-reverse .service-art {
  order: 1;
}
.service-copy,
.service-art {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition:
    opacity 0.65s ease,
    transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js-motion .service-row .service-copy {
  opacity: 0;
  transform: translate3d(72px, 0, 0);
}
.js-motion .service-row .service-art {
  opacity: 0;
  transform: translate3d(-72px, 0, 0);
}
.js-motion .service-row-reverse .service-copy {
  opacity: 0;
  transform: translate3d(-72px, 0, 0);
}
.js-motion .service-row-reverse .service-art {
  opacity: 0;
  transform: translate3d(72px, 0, 0);
}
.service-row.is-visible .service-copy,
.service-row.is-visible .service-art {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.service-row.is-visible .service-art {
  transition-delay: 0.12s;
}
.service-index {
  margin-bottom: 1.1rem;
}
.service-index span {
  color: rgba(255, 255, 255, 0.45);
}
.service-copy h3 {
  max-width: 650px;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 600;
}
.service-copy > p:last-child {
  max-width: 680px;
  margin-top: 1.25rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.25vw, 1.13rem);
  line-height: 1.72;
}
.service-art {
  display: grid;
  place-items: center;
  min-height: 190px;
}
.service-art svg {
  width: min(100%, 250px);
  height: auto;
  overflow: visible;
}
.service-art .draw {
  fill: none;
  stroke: rgba(112, 228, 242, 0.9);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-art .node {
  fill: var(--navy);
  stroke: var(--cyan);
  stroke-width: 2;
}
.service-art .orbit {
  fill: none;
  stroke: rgba(255, 255, 255, 0.28);
  stroke-width: 1;
  stroke-dasharray: 3 7;
  transform-origin: center;
  animation: orbit-turn 24s linear infinite;
}
.service-art .pulse {
  fill: var(--cyan);
  filter: drop-shadow(0 0 7px rgba(112, 228, 242, 0.8));
  transform-box: fill-box;
  transform-origin: center;
  animation: soft-pulse 2.8s ease-in-out infinite;
}
.js-motion .service-art .draw {
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
}
.service-row.is-visible .service-art .draw {
  animation: draw-art 1.25s ease-out forwards;
}
.service-row.is-visible .service-art .draw:nth-child(2) {
  animation-delay: 0.14s;
}
@keyframes draw-art {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes soft-pulse {
  50% {
    opacity: 0.55;
    transform: scale(0.72);
  }
}
@keyframes orbit-turn {
  to {
    transform: rotate(360deg);
  }
}

.hero {
  position: sticky;
  top: var(--header-height);
  height: calc(100svh - var(--header-height));
  min-height: 500px;
  overflow: hidden;
  display: grid;
  place-items: center;
  isolation: isolate;
  background: transparent;
}

/* La hero apre su blu pieno; durante lo scroll lascia apparire lo sfondo del sito. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--navy);
  opacity: var(--intro-blue-opacity, 1);
  pointer-events: none;
}

.symbol {
  width: clamp(360px, 54vw, 720px);
  margin: 0 auto clamp(1.25rem, 3vh, 2rem);
  overflow: visible;
}

.logo-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;

  opacity: var(--logo-opacity, 1);
  transform: translateX(var(--logo-x, 0px));

  will-change: transform, opacity;
}

/* Area del marchio */
.brand {
  width: min(94%, 1000px);
  text-align: center;
  position: relative;
  transform: translateY(0);
}

.symbol path {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 3;
  stroke-linecap: square;
  stroke-linejoin: bevel;
  vector-effect: non-scaling-stroke;
}

.tagline-dx {
  margin-top: 0;
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.8;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 14, 39, 0.55);
  opacity: var(--tag-opacitydx, 0);
  transform: translateX(var(--tag-x, 100px));
  will-change: transform, opacity;
}

.tagline {
  margin-top: 5px;
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.8;
  color: var(--cyan);
  text-shadow: 0 2px 18px rgba(0, 14, 39, 0.55);
  opacity: var(--tag-opacity, 0);
  transform: translateY(var(--tag-y, -100px));
  will-change: transform, opacity;
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 9px;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.82);
  opacity: var(--hint-opacity, 1);
}

.scroll-line {
  width: 1px;
  height: 30px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
}

@media (max-width: 600px) {
  body {
    overflow-x: clip;
  }

  .scroll-track {
    height: 180svh;
  }

  .hero {
    min-height: 420px;
  }
  .brand {
    width: min(96%, 640px);
    transform: translateY(0);
  }
  .symbol {
    width: clamp(280px, 84vw, 440px);
  }
  .tagline-dx,
  .tagline {
    font-size: clamp(1.3rem, 6vw, 1.8rem);
    letter-spacing: 0.1em;
    line-height: 1.45;
  }
  .tagline {
    max-width: 100%;
    margin-top: 5px;
  }

  .about-track {
    height: auto;
  }
  .about-section {
    position: relative;
    top: auto;
    height: auto;
    min-height: 0;
    padding: 5rem 0;
    overflow: visible;
  }
  .about-background {
    background: transparent;
  }
  .about-content {
    width: calc(100% - 2 * var(--space-x));
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1rem 0;
    transform: none;
    will-change: auto;
  }
  .about-heading h2 {
    font-size: clamp(2.65rem, 11vw, 4rem);
  }
  .about-copy {
    gap: 0.9rem;
    font-size: 0.98rem;
    line-height: 1.6;
  }
  .about-copy p:first-child {
    font-size: 1.08rem;
  }
  .services-section {
    padding: 5rem var(--space-x) 6rem;
  }
  .services-header {
    margin-bottom: 3rem;
  }
  .services-header h2 {
    font-size: clamp(2.55rem, 10vw, 3.8rem);
  }
  .service-row,
  .service-row-reverse {
    min-height: 0;
    padding: 2.6rem 0;
    grid-template-columns: 1fr;
    gap: 1.3rem;
  }
  .service-row-reverse .service-copy,
  .service-row-reverse .service-art {
    order: initial;
  }
  .service-art {
    min-height: 125px;
    justify-content: start;
  }
  .service-art svg {
    width: 170px;
  }
  .service-copy > p:last-child {
    margin-top: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-track {
    height: 100svh;
  }
  .about-track {
    height: 260svh;
  }
  .js-motion .service-copy,
  .js-motion .service-art {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .js-motion .service-art .draw {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
    animation: none;
  }
  .service-art .orbit,
  .service-art .pulse {
    animation: none;
  }
}

/* Projects panel: the whole scene enters on vertical scroll; cards move only via carousel controls. */
.projects-track {
  --projects-track-height: 245svh;
  position: relative;
  height: var(--projects-track-height);
  overflow: clip;
  background: transparent;
}
.projects-stage {
  position: sticky;
  top: var(--header-height);
  width: 100%;
  height: calc(100svh - var(--header-height));
  min-height: 538px;
  overflow: hidden;
  transform: translate3d(100vw, 0, 0);
  will-change: transform;
  isolation: isolate;
  color: #f7fbff;
  background:
    linear-gradient(90deg, rgba(3, 18, 39, 0.69), rgba(3, 18, 39, 0.38)),
    url("assets/sfondo.jpeg") center / cover no-repeat;
}
.projects-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    rgba(2, 20, 46, 0.3),
    transparent 62%,
    rgba(2, 20, 46, 0.24)
  );
}
.projects-inner {
  position: relative;
  width: min(100%, 1500px);
  height: 100%;
  margin: 0 auto;
  padding: clamp(2rem, 5vh, 4rem) var(--space-x);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.projects-header {
  width: 100%;
  margin: 0 auto;
}
.projects-kicker {
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.projects-header h2 {
  max-width: 1280px;
  margin-top: 0.75rem;
  font-size: clamp(2.3rem, 3.8vw, 4.3rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-weight: 600;
  text-wrap: balance;
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.22);
}
/* Carosello centrato: si avanza con le frecce, senza barra di scorrimento visibile. */
.projects-carousel {
  width: min(100%, 920px);
  margin: clamp(1.1rem, 2.5vh, 2rem) auto 0;
}
.projects-viewport {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  outline: none;
}
.projects-viewport::-webkit-scrollbar {
  display: none;
}
.projects-viewport:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 5px;
}
/* La fascia finale consente alle frecce di allineare anche l'ultima scheda. */
.projects-rail {
  display: flex;
  gap: clamp(1rem, 2vw, 1.75rem);
  width: 100%;
  padding: 0.25rem 0 0.65rem;
}
.projects-rail::after {
  content: "";
  flex: 0 0
    max(0px, calc(100% - clamp(250px, 21vw, 330px) - clamp(1rem, 2vw, 1.75rem)));
}
/* Schede verticali con foto a tutta altezza; il gradiente protegge la leggibilita' del testo. */
.project-card {
  /* Riferimento per la foto e per il gradiente sovrapposto a questa singola card. */
  position: relative;
  isolation: isolate;
  flex: 0 0 clamp(250px, 21vw, 330px);
  min-width: 0;
  height: min(46vh, 480px);
  max-height: 480px;
  min-height: 360px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: clamp(1.35rem, 2vw, 1.8rem);
  color: #f7fbff;
  text-decoration: none;
  scroll-snap-align: start;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 22px;
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.3);
  background: #08294d;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.35s ease;
}
.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(3, 20, 43, 0.06) 10%,
    rgba(3, 20, 43, 0.16) 38%,
    rgba(3, 14, 32, 0.96) 100%
  );
}
.project-card:hover,
.project-card:focus-visible {
  border-color: var(--cyan);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(112, 228, 242, 0.28);
  transform: translateY(-5px);
}
.project-card:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}
.project-content {
  position: relative;
  z-index: 2;
  width: 100%;
  margin-top: auto;
  text-align: left;
}
.project-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
  color: var(--cyan);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.project-category span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.65rem;
}
.project-content h3 {
  max-width: 12ch;
  font-size: clamp(2rem, 2.6vw, 3rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 600;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.3);
}
.project-open {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.2rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.project-open b {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--cyan);
  transition: transform 0.25s ease;
}
.project-card:hover .project-open b {
  transform: translate(3px, -3px);
}
.project-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.project-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.project-card:hover .project-photo {
  transform: scale(1.055);
}
.projects-controls {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-top: 1rem;
}
.projects-count {
  grid-column: 2;
  grid-row: 1;
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  font-weight: 600;
}
.projects-count i {
  color: rgba(255, 255, 255, 0.52);
  font-style: normal;
}
.projects-arrows {
  display: contents;
}
.project-arrow {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 50%;
  background: rgba(3, 20, 43, 0.38);
  color: #fff;
  font-size: 1.35rem;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s,
    opacity 0.2s;
}
.project-arrow-prev {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}
.project-arrow-next {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}
.project-arrow:hover:not(:disabled),
.project-arrow:focus-visible {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #062653;
}
.project-arrow:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.project-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}
.projects-motion-hint {
  display: none;
}
@media (max-width: 820px),
  (max-height: 640px),
  (prefers-reduced-motion: reduce) {
  /* Su schermi compatti il pannello torna nel flusso normale, mantenendo il carosello centrato. */
  .projects-track {
    height: auto;
    overflow: visible;
  }
  .projects-stage {
    position: relative;
    top: auto;
    height: auto;
    min-height: 0;
    padding: 0;
    transform: none !important;
    will-change: auto;
  }
  .projects-inner {
    height: auto;
    min-height: 100svh;
    padding: calc(5rem + var(--header-height)) var(--space-x) 3rem;
    justify-content: center;
  }
  .projects-header h2 {
    font-size: clamp(2.35rem, 8vw, 4rem);
  }
  .projects-carousel {
    width: min(100%, 920px);
    margin-top: 2rem;
  }
  .project-card {
    height: clamp(380px, 48vh, 460px);
    max-height: none;
    min-height: 360px;
  }
}
@media (max-width: 600px) {
  /* Mobile: una scheda quasi intera e un piccolo invito visivo alla successiva. */
  .projects-inner {
    min-height: 100svh;
    padding: max(5rem, calc(var(--header-height) + 1rem)) var(--space-x) 2.5rem;
  }
  .projects-header h2 {
    font-size: clamp(2.25rem, 10vw, 3.5rem);
  }
  .projects-carousel {
    width: 100%;
  }
  .projects-rail {
    gap: 0.85rem;
  }
  .projects-rail::after {
    flex-basis: max(0px, calc(100% - min(72vw, 300px) - 0.85rem));
  }
  .project-card {
    flex-basis: min(72vw, 300px);
    height: clamp(370px, 58vh, 450px);
    min-height: 370px;
    padding: 1.2rem;
    align-items: flex-end;
  }
  .project-content {
    width: 100%;
  }
  .project-content h3 {
    font-size: clamp(2.35rem, 10vw, 3.2rem);
  }
  .project-arrow {
    width: 42px;
    height: 42px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .project-card,
  .project-arrow,
  .project-photo,
  .project-open b {
    transition: none;
  }
}

/* Header principale: barra chiara e fissa, con navigazione sempre accessibile. */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-height);
  color: var(--navy);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(6, 38, 83, 0.08);
  box-shadow: 0 8px 28px rgba(3, 21, 46, 0.08);
  backdrop-filter: blur(16px);
}

.site-header-inner {
  width: min(calc(100% - 2 * var(--space-x)), 1500px);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-brand,
.footer-nav-block {
  min-width: 0;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--navy);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.035em;
}

.site-brand-mark {
  display: block;
  width: 150px;
  height: auto;
  object-fit: contain;
}

.site-brand > span > span {
  color: #bd2342;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.4rem, 3vw, 3.25rem);
}

.site-nav a {
  color: var(--navy);
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #bd2342;
}

.site-nav .site-nav-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.78rem 1.1rem;
  border-radius: 999px;
  color: #fff;
  background: var(--navy);
}

.site-nav .site-nav-contact:hover,
.site-nav .site-nav-contact:focus-visible {
  color: #fff;
  background: #bd2342;
}

.site-nav-contact span {
  font-size: 1.05rem;
}

.menu-toggle {
  display: none;
}

/* Footer: chiusura scura, con identità, collegamenti e richiamo ai servizi. */
.site-footer {
  position: relative;
  z-index: 1;
  padding: max(clamp(4rem, 8vw, 7rem), calc(var(--header-height) + 1.5rem))
    var(--space-x) 1.5rem;
  color: #fff;
  background: #061d3f;
}

.site-footer-inner {
  width: min(100%, 1500px);
  margin: 0 auto;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) minmax(150px, 0.65fr) minmax(
      280px,
      1fr
    );
  gap: clamp(2.5rem, 7vw, 8rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.footer-nav-block {
  min-width: 0;
}

.footer-brand {
  width: min(100%, 270px);
  gap: 0;
  color: #fff;
}

.footer-brand-full-logo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.footer-brand-block > p {
  max-width: 310px;
  margin-top: 1.25rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 1rem;
  line-height: 1.65;
}

.footer-label {
  margin-bottom: 1.2rem;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.footer-nav {
  display: grid;
  gap: 0.85rem;
}

.footer-nav a,
.footer-bottom a {
  width: fit-content;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav a:hover,
.footer-bottom a:hover {
  color: var(--cyan);
}

.footer-cta-block h2 {
  margin-bottom: 1.4rem;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(112, 228, 242, 0.7);
  color: var(--cyan);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.footer-cta span {
  transition: transform 0.2s ease;
}

.footer-cta:hover span {
  transform: translate(3px, -3px);
}

.footer-company {
  padding: 1.7rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-company .footer-label {
  margin-bottom: 1rem;
}

.company-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem 2rem;
}

.company-details dt {
  margin-bottom: 0.35rem;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.company-details dd {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.88rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.company-details a {
  color: inherit;
  text-decoration-color: rgba(112, 228, 242, 0.55);
  text-underline-offset: 0.18em;
}

.company-details a:hover {
  color: var(--cyan);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.68);
}

@media (max-width: 760px) {
  :root {
    --header-height: 72px;
  }

  .site-header {
    height: var(--header-height);
  }

  .site-header-inner {
    width: calc(100% - 2 * var(--space-x));
  }

  .site-brand {
    gap: 0.55rem;
    font-size: 1.05rem;
  }

  .site-brand-mark {
    width: 100px;
    height: auto;
  }

  .menu-toggle {
    position: relative;
    z-index: 2;
    display: grid;
    align-content: center;
    gap: 6px;
    width: 46px;
    height: 46px;
    padding: 0 11px;
    border: 1px solid rgba(6, 38, 83, 0.18);
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: var(--navy);
    transition: transform 0.2s ease;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: var(--space-x);
    left: var(--space-x);
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 0.55rem;
    border: 1px solid rgba(6, 38, 83, 0.1);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(3, 21, 46, 0.18);
  }

  .site-nav.is-open {
    display: flex;
    flex-direction: column;
  }

  .site-nav a {
    padding: 0.9rem 1rem;
  }

  .site-nav .site-nav-contact {
    justify-content: space-between;
    margin-top: 0.3rem;
  }

  .site-footer {
    padding-top: calc(var(--header-height) + 1.5rem);
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 2.8rem 2rem;
  }

  .footer-brand-block {
    grid-column: 1 / -1;
  }

  .footer-cta-block {
    grid-column: 1 / -1;
  }

  .company-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-brand-block,
  .footer-cta-block {
    grid-column: auto;
  }

  .company-details {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-nav a,
  .menu-toggle span,
  .footer-nav a,
  .footer-bottom a,
  .footer-cta span {
    transition: none;
  }
}

@media (max-width: 600px) {
  .about-track {
    height: auto;
  }
}
