/* ==========================================================================
   Template B — Corporate moderno
   ========================================================================== */

:root {
  --navy: #0a3d62;
  --navy-deep: #061b2c;
  --navy-soft: #082b45;
  --blue: #0b5fa5;
  --brand: #0071bc;
  --brand-dark: #005a96;
  --sky: #e6f1f9;
  --ice: #8fc4e8;
  --paper: #f4f7fa;
  --white: #ffffff;
  --ink: #0e2433;
  --muted: #5a7183;
  --line: rgba(10, 61, 98, 0.12);
  --line-light: rgba(255, 255, 255, 0.12);
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --max: 1220px;
  --radius: 20px;
  --shadow: 0 30px 70px -35px rgba(6, 27, 44, 0.45);
  --focus: #7fc4ec;
  --cc-font: var(--sans);
  --cc-title-font: var(--sans);
  --cc-accent: var(--brand);
  --cc-accent-hover: var(--brand-dark);
  --cc-radius: 16px;
  --cc-btn-radius: 10px;
  --map-bg: #e8eef3;
}

html {
  scroll-padding-top: 96px;
}

body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: var(--sans);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--navy-deep);
}

h1 span,
h2 span {
  color: var(--brand);
}

.container {
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
}

/* ---------- Utility ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 8px 16px;
  border: 1px solid rgba(127, 196, 236, 0.35);
  border-radius: 999px;
  background: rgba(127, 196, 236, 0.08);
  color: #bfe3f7;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2c92d5;
  box-shadow: 0 0 0 4px rgba(44, 146, 213, 0.18);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
}

.kicker span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 24px;
  border: 1px solid rgba(0, 113, 188, 0.3);
  border-radius: 6px;
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  color: var(--brand);
  background: rgba(0, 113, 188, 0.05);
}

.kicker--light {
  color: var(--ice);
}

.kicker--light span {
  border-color: rgba(143, 196, 232, 0.35);
  color: #bfe3f7;
  background: rgba(127, 196, 236, 0.08);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease,
    transform 0.2s ease;
}

.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 14px 30px -18px rgba(0, 113, 188, 0.9);
}

.btn--primary:hover {
  background: #0083d6;
  transform: translateY(-2px);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
}

.btn--outline {
  border-color: rgba(10, 61, 98, 0.25);
  color: var(--navy);
}

.btn--outline:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn--light {
  background: #fff;
  color: var(--navy-deep);
}

.btn--light:hover {
  background: var(--sky);
  transform: translateY(-2px);
}

.btn--ghost-light {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.btn--ghost-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.btn--lg {
  min-height: 52px;
  padding: 15px 28px;
}

.btn--block {
  width: 100%;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(6, 27, 44, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(6, 27, 44, 0.96);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 82px;
}

.brand img {
  width: 174px;
  height: auto;
}

.site-nav {
  margin-left: auto;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav__list a {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-nav__list a:hover {
  color: #fff;
}

.site-nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.site-nav__list a:hover::after {
  transform: scaleX(1);
}

.site-nav__mobile {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-cta {
  min-height: 42px;
  padding: 10px 20px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: #fff;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  margin-top: -82px;
  padding: 172px 0 150px;
  background:
    radial-gradient(800px 500px at 78% 28%, rgba(0, 113, 188, 0.32), transparent 70%),
    radial-gradient(600px 400px at 15% 90%, rgba(11, 95, 165, 0.22), transparent 70%),
    linear-gradient(150deg, #04131f 0%, #061f33 45%, #082c47 100%);
  color: #fff;
}

.hero__grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: radial-gradient(ellipse at 55% 40%, #000 20%, transparent 75%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 56px;
}

.hero__content h1 {
  max-width: 23ch;
  font-size: clamp(2.5rem, 3.9vw, 3.55rem);
  color: #fff;
  line-height: 1.04;
}

.hero__specialty {
  position: relative;
  display: block;
  max-width: 46ch;
  margin-top: 30px;
  padding-top: 22px;
  font-size: clamp(1rem, 1.32vw, 1.16rem);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.78);
}

.hero__specialty::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 58px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #8fc4e8, rgba(143, 196, 232, 0));
}

.hero__specialty strong {
  color: #fff;
  font-weight: 700;
}

.hero__specialty b {
  color: #bfe3f7;
  font-weight: 700;
}

.hero__lead {
  max-width: 53ch;
  margin-top: 18px;
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.68);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero__meta li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero__meta strong {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.hero__meta span {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.5);
}

.hero__visual {
  position: relative;
  min-width: 0;
}

.hero__visual::before {
  content: "";
  position: absolute;
  inset: 2% 6% 18%;
  border-radius: 50%;
  background: rgba(0, 113, 188, 0.28);
  filter: blur(70px);
  pointer-events: none;
}

.hero__stage {
  position: relative;
  height: auto;
  aspect-ratio: 760 / 800;
  overflow: hidden;
}

.hero__stage img {
  position: relative;
  width: 108%;
  max-width: none;
  height: auto;
  margin-left: -4%;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.35));
}

.hero__brands {
  margin-top: 16px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hero__brands-label {
  margin-bottom: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8fc4e8;
}

.hero__brands-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 8px 14px;
}

.hero__brands-list li {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
}

.hero__brands-list a,
.hero__brand-pending {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 34px;
  padding: 4px 2px;
  border-radius: 4px;
  opacity: 0.8;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.hero__brands-list a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: #8fc4e8;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.hero__brands-list a:hover::after,
.hero__brands-list a:focus-visible::after {
  transform: scaleX(1);
}

.hero__brands-list a:hover,
.hero__brands-list a:focus-visible {
  opacity: 1;
  transform: translateY(-2px);
}

.hero__brands-list img {
  width: auto;
  height: clamp(24px, 1.95vw, 28px);
  max-width: 100%;
  object-fit: contain;
}

.hero__brands-list img.is-inverted {
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.hero__brand-pending {
  cursor: default;
  opacity: 0.68;
}

.hero__brand-pending::after {
  content: "";
  position: absolute;
  top: 1px;
  right: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8fc4e8;
  box-shadow: 0 0 0 3px rgba(143, 196, 232, 0.12);
}

/* ---------- Stats ---------- */
.stats {
  position: relative;
  z-index: 5;
  margin-top: -78px;
  padding-bottom: 20px;
}

.stats__panel {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 28px 30px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 30px 70px -35px rgba(6, 27, 44, 0.4);
  border: 1px solid rgba(10, 61, 98, 0.06);
}

.stats__item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 20px;
  border-right: 1px solid var(--line);
}

.stats__item:first-child {
  padding-left: 0;
}

.stats__value {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--brand);
}

.stats__text {
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--muted);
}

.stats__cta {
  padding-left: 16px;
}

/* ---------- Sezioni ---------- */
.section {
  padding: 104px 0;
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 56px;
  margin-bottom: 52px;
}

.section__head h2 {
  max-width: 17ch;
  font-size: clamp(2.05rem, 3.4vw, 3.1rem);
}

.section__head-text {
  max-width: 38ch;
  padding-bottom: 8px;
  font-size: 0.93rem;
  color: var(--muted);
}

.section__head--light h2 {
  color: #fff;
}

.section__head--light h2 span {
  color: var(--ice);
}

.section__head--light .section__head-text {
  color: rgba(255, 255, 255, 0.6);
}

.section--azienda {
  background: #fff;
}

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about__lead {
  font-size: 1.18rem;
  line-height: 1.6;
  font-weight: 500;
  color: var(--navy);
}

.about__story p + p {
  margin-top: 16px;
}

.about__story p {
  font-size: 0.94rem;
  color: var(--muted);
}

.about__facts {
  display: grid;
  gap: 12px;
}

.fact {
  display: grid;
  grid-template-columns: 66px 1fr;
  grid-template-rows: auto auto;
  column-gap: 18px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfdff, #f4f8fb);
}

.fact__year {
  grid-row: 1 / 3;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.02em;
}

.fact h3 {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.fact p {
  margin-top: 2px;
  font-size: 0.82rem;
  color: var(--muted);
}

.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.values li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #3f5668;
}

.values svg {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--brand);
}

/* ---------- Attività ---------- */
.section--attivita {
  background: var(--paper);
  border-block: 1px solid rgba(10, 61, 98, 0.07);
}

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 30px 28px;
  background: #fff;
  border: 1px solid rgba(10, 61, 98, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), #7fc4ec);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 113, 188, 0.25);
  box-shadow: 0 30px 60px -40px rgba(6, 27, 44, 0.55);
}

.service:hover::before {
  opacity: 1;
}

.service__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  border-radius: 14px;
  background: linear-gradient(145deg, #0071bc, #0a3d62);
  color: #fff;
  box-shadow: 0 14px 24px -16px rgba(0, 113, 188, 0.9);
}

.service__tag {
  display: block;
  margin-bottom: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
}

.service h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.service p {
  font-size: 0.88rem;
  color: var(--muted);
}

.service__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
}

.service__link svg {
  transition: transform 0.2s ease;
}

.service__link:hover svg {
  transform: translateX(4px);
}

/* ---------- Brand ---------- */
.section--brand {
  background: #fff;
}

.brand-panel {
  position: relative;
  overflow: hidden;
  padding: 56px;
  border-radius: 30px;
  background:
    radial-gradient(700px 320px at 85% 0%, rgba(0, 113, 188, 0.4), transparent 65%),
    linear-gradient(150deg, #062a44 0%, #0a3d62 100%);
}

.brand-panel::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -140px;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.brand-panel__head {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 40px;
}

.brand-panel__head h2 {
  max-width: 16ch;
  color: #fff;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
}

.brand-panel__head h2 span {
  color: var(--ice);
}

.brand-panel__head > p {
  max-width: 36ch;
  padding-bottom: 6px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
}

.brand-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.brand-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 168px;
  padding: 26px 28px 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  text-decoration: none;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.brand-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(143, 196, 232, 0.55);
}

.brand-card > img {
  max-width: 240px;
  max-height: 66px;
  width: auto;
  object-fit: contain;
}

.brand-card--pending {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.035);
  cursor: default;
}

.brand-card--pending:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.035);
}

.brand-card--pending > img {
  opacity: 0.72;
}

.brand-card__badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid rgba(143, 196, 232, 0.4);
  border-radius: 999px;
  background: rgba(143, 196, 232, 0.08);
  color: #bfe3f7;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-card > img.is-inverted {
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.brand-card__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
}

.brand-card__footer strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
}

.brand-card__footer small {
  display: block;
  margin-top: 1px;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.65);
}

.brand-card__footer svg {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.2s ease, transform 0.2s ease;
}

.brand-card:hover .brand-card__footer svg {
  color: #fff;
  transform: translate(2px, -2px);
}

/* ---------- Dove siamo ---------- */
.section--location {
  position: relative;
  overflow: hidden;
  padding: 100px 0;
  background:
    radial-gradient(700px 380px at 10% 0%, rgba(0, 113, 188, 0.22), transparent 65%),
    linear-gradient(160deg, #061b2c 0%, #082b45 100%);
}

.location {
  display: grid;
  grid-template-columns: 0.68fr 1.32fr;
  gap: 20px;
  align-items: stretch;
}

.location__card {
  display: flex;
  flex-direction: column;
  padding: 34px 30px;
  border-radius: var(--radius);
  background: #fff;
}

.location__card h3 {
  margin-bottom: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
}

.location__card address {
  font-style: normal;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--navy);
}

.location__contacts {
  display: grid;
  gap: 10px;
  margin: 24px 0;
  padding: 20px 0;
  border-block: 1px solid var(--line);
}

.location__contacts a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: #3f5668;
  text-decoration: none;
}

.location__contacts a:hover {
  color: var(--brand);
}

.location__contacts svg {
  color: var(--brand);
}

.location__card .btn {
  margin-top: auto;
}

.location__note {
  margin-top: 14px;
  font-size: 0.72rem;
  color: var(--muted);
}

.location__map {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 540px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.location__map .map-frame {
  height: 100%;
  min-height: 540px;
}

/* ---------- Contatti ---------- */
.contact {
  padding: 96px 0 100px;
  background: #fff;
}

.contact__panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  padding: 60px;
  border-radius: 28px;
  background:
    radial-gradient(600px 300px at 90% 10%, rgba(127, 196, 236, 0.3), transparent 70%),
    linear-gradient(135deg, #0a3d62 0%, #0b5fa5 55%, #0071bc 100%);
  color: #fff;
}

.contact__panel::before {
  content: "";
  position: absolute;
  left: -100px;
  bottom: -160px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.contact__copy h2 {
  max-width: 14ch;
  color: #fff;
  font-size: clamp(2rem, 3.4vw, 3rem);
}

.contact__copy h2 span {
  color: #bfe3f7;
}

.contact__copy > p:not(.kicker) {
  max-width: 44ch;
  margin-top: 16px;
  font-size: 0.93rem;
  color: rgba(255, 255, 255, 0.72);
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.contact__info {
  display: grid;
  align-content: center;
  gap: 0;
}

.contact__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.contact__row:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.contact__row > span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #bfe3f7;
}

.contact__row a,
.contact__row p {
  font-size: 0.9rem;
  text-align: right;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
}

.contact__row a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 72px 0 0;
  background: #04141f;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.84rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 52px;
}

.footer__brand img {
  width: 178px;
  height: auto;
  margin-bottom: 20px;
}

.footer__brand p {
  max-width: 33ch;
  font-size: 0.82rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
}

.footer__since {
  margin-top: 14px;
  color: var(--ice) !important;
  font-size: 0.74rem !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer__col h2 {
  margin-bottom: 18px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ice);
}

.footer__col ul {
  display: grid;
  gap: 10px;
}

.footer__col a,
.footer__link-btn {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  text-align: left;
}

.footer__col a:hover,
.footer__link-btn:hover {
  color: #fff;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .stats__panel {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .stats__item {
    padding: 0 16px;
  }

  .stats__item:nth-child(2) {
    border-right: 0;
  }

  .stats__cta {
    padding-left: 16px;
  }

  .values {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .footer__grid {
    grid-template-columns: 1.4fr 0.8fr 1fr;
  }

  .footer__col:last-child {
    grid-column: 2 / -1;
  }
}

@media (max-width: 1180px) {
  .hero__brands-list {
    gap: 3px 14px;
  }

  .hero__brands-list img {
    height: 24px;
  }

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

@media (max-width: 960px) {
  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 150;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 110px 24px 32px;
    background: #061b2c;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    overflow-y: auto;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav__list a {
    display: block;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.2rem;
    color: #fff;
  }

  .site-nav__list a::after {
    display: none;
  }

  .site-nav__mobile {
    display: grid;
    gap: 14px;
    margin-top: 28px;
  }

  .site-nav__mobile-link {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    text-decoration: none;
  }

  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 160;
  }

  .header-cta {
    display: none;
  }

  body.nav-open {
    overflow: hidden;
  }

  /* Il blur sull'header crea un containing block: senza, il menu resta
     ancorato al viewport e copre tutta l'altezza dello schermo. */
  body.nav-open .site-header {
    backdrop-filter: none;
  }

  .hero {
    padding: 150px 0 120px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero__content h1 {
    max-width: 20ch;
  }

  .hero__visual {
    max-width: 540px;
    margin-inline: auto;
    width: 100%;
  }

  .contact {
    padding: 80px 0;
  }

  .stats {
    margin-top: -60px;
  }

  .stats__panel {
    padding: 24px;
  }

  .section {
    padding: 80px 0;
  }

  .section__head,
  .brand-panel__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .services {
    grid-template-columns: 1fr;
  }

  .brand-panel {
    padding: 38px 28px;
    border-radius: 22px;
  }

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

  .location {
    grid-template-columns: 1fr;
  }

  .location__map,
  .location__map .map-frame {
    min-height: 460px;
  }

  .contact__panel {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 40px 32px;
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 34px;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .footer__col:last-child {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .brand-grid {
    grid-template-columns: 1fr;
  }

  .brand-card {
    min-height: 176px;
  }
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 36px);
  }

  html {
    scroll-padding-top: 84px;
  }

  .header-inner {
    min-height: 70px;
  }

  .brand img {
    width: 142px;
  }

  .site-nav {
    padding-top: 96px;
  }

  .hero {
    padding: 132px 0 112px;
  }

  .hero__content h1 {
    font-size: clamp(2.2rem, 9.4vw, 2.9rem);
  }

  .hero__lead {
    font-size: 0.95rem;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__brands {
    margin-top: 2px;
    padding-top: 14px;
  }

  .hero__brands-label {
    font-size: 0.76rem;
    letter-spacing: 0.12em;
  }

  .hero__brands-list {
    width: 100%;
    gap: 6px 8px;
  }

  .hero__brands-list a,
  .hero__brand-pending {
    min-height: 32px;
  }

  .hero__brands-list img {
    height: 21px;
    max-width: 100%;
  }

  .hero__meta {
    gap: 22px;
  }

  .stats {
    margin-top: -46px;
  }

  .stats__panel {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 8px 20px;
  }

  .stats__item {
    padding: 16px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stats__item:nth-child(2) {
    border-right: 0;
  }

  .stats__cta {
    padding: 16px 0;
  }

  .stats__cta .btn {
    width: 100%;
  }

  .section,
  .section--location {
    padding: 60px 0;
  }

  .section__head h2,
  .brand-panel__head h2,
  .contact__copy h2 {
    font-size: clamp(1.8rem, 7.6vw, 2.35rem);
  }

  .values {
    grid-template-columns: 1fr;
  }

  .brand-panel {
    padding: 30px 20px;
  }

  .brand-grid {
    grid-template-columns: 1fr;
  }

  .brand-card {
    min-height: 176px;
    padding: 22px;
  }

  .brand-card > img {
    max-width: 220px;
    max-height: 60px;
  }

  .brand-card__badge {
    padding: 4px 7px;
    font-size: 0.53rem;
    letter-spacing: 0.07em;
  }

  .location__card {
    padding: 28px 22px;
  }

  .location__map,
  .location__map .map-frame {
    min-height: 440px;
  }

  .contact {
    padding: 56px 0 64px;
  }

  .contact__panel {
    padding: 34px 22px;
  }

  .contact__row {
    flex-direction: column;
    gap: 3px;
  }

  .contact__row a,
  .contact__row p {
    text-align: left;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* ---------- Pagine legali ---------- */
.legal-header {
  background: var(--navy-deep);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}

.legal-header img {
  width: 164px;
  height: auto;
}

.legal-header a.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.legal-header a.back:hover {
  color: #fff;
}

.legal-hero {
  position: relative;
  padding: 72px 0 48px;
  background:
    radial-gradient(600px 280px at 85% 0%, rgba(0, 113, 188, 0.25), transparent 70%),
    linear-gradient(150deg, #061b2c 0%, #082b45 100%);
  color: #fff;
}

.legal-hero h1 {
  max-width: 20ch;
  color: #fff;
  font-size: clamp(2.2rem, 4vw, 3.3rem);
}

.legal-hero > .legal {
  padding: 0;
}

.legal-hero p:not(.kicker) {
  margin-top: 12px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

.legal {
  width: min(100% - 48px, 860px);
  margin: 0 auto;
  padding: 58px 0 90px;
}

.legal h2 {
  margin: 42px 0 14px;
  font-size: 1.14rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--navy);
}

.legal h2:first-of-type {
  margin-top: 0;
}

.legal h3 {
  margin: 26px 0 8px;
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--navy);
}

.legal p,
.legal li {
  font-size: 0.91rem;
  line-height: 1.75;
  color: #3b5468;
}

.legal p + p {
  margin-top: 12px;
}

.legal ul {
  margin-top: 10px;
  padding-left: 20px;
  list-style: disc;
}

.legal li + li {
  margin-top: 6px;
}

.legal a,
.legal-inline-link {
  color: var(--blue);
  text-underline-offset: 3px;
}

.legal-inline-link {
  display: inline;
  padding: 0;
  font: inherit;
  text-decoration: underline;
}

.legal code {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--sky);
  font-size: 0.85em;
}

.legal-box {
  margin: 20px 0;
  padding: 20px 24px;
  border-left: 3px solid var(--brand);
  background: var(--paper);
  border-radius: 0 10px 10px 0;
}

.legal-table {
  width: 100%;
  margin: 16px 0 8px;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.legal-table th,
.legal-table td {
  padding: 12px 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: var(--paper);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
}

.legal-footer {
  padding: 26px 0;
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.76rem;
}

.legal-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.legal-footer a {
  margin-left: 18px;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
}

.legal-footer a:hover {
  color: #fff;
}

@media (max-width: 640px) {
  .legal-header .container {
    min-height: 72px;
  }

  .legal-header img {
    width: 132px;
  }

  .legal-header a.back span {
    display: none;
  }

  .legal-hero {
    padding: 48px 0 32px;
  }

  .legal {
    width: calc(100% - 36px);
    padding: 40px 0 60px;
  }

  .legal-table {
    font-size: 0.76rem;
    border: 0;
  }

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

  .legal-table,
  .legal-table tbody,
  .legal-table tr,
  .legal-table td {
    display: block;
    width: 100%;
  }

  .legal-table tr {
    margin-bottom: 12px;
    padding: 4px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fbfdff;
  }

  .legal-table td {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 10px;
    padding: 10px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    overflow-wrap: anywhere;
  }

  .legal-table td:last-child {
    border-bottom: 0;
  }

  .legal-table td::before {
    content: attr(data-label);
    padding-top: 2px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--navy);
  }

  .legal-table code {
    overflow-wrap: anywhere;
  }

  .legal-footer .container {
    flex-direction: column;
  }

  .legal-footer a {
    margin: 0 14px 0 0;
  }
}
