/* =========================================================
   RMP Caorle · Rossi Mario Pietro — versione Bootstrap 5
   Layout a tutta larghezza. Bootstrap fornisce griglia, navbar,
   collapse, modal e utility; qui c'è il tema e i componenti.
   ========================================================= */

:root {
  /* Colori del marchio */
  --navy-950: #0b1726;
  --navy-900: #112035;
  --navy: #1b3250;
  --orange: #e6612a;
  --orange-600: #c94d1b;
  --orange-700: #b44417;
  --orange-400: #f2804f;
  --orange-50: #fdf0ea;

  /* Neutri */
  --ink: #122033;
  --text: #3c4757;
  --muted: #6b7584;
  --line: #e2e6ec;
  --bg: #f3f5f8;
  --surface: #fff;

  /* Forme */
  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 12px;
  --r-xs: 8px;
  --shadow-md: 0 24px 48px -24px rgba(17, 32, 53, .28);

  /* Texture: grana leggera per le superfici scure e colorate */
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  /* Tipografia: scala fluida, testo più grande della versione base */
  --font-sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Barlow", "Geist", system-ui, sans-serif;
  --fs-body: clamp(1.0625rem, .95rem + .2vw, 1.1875rem);
  --fs-lead: clamp(1.125rem, .95rem + .45vw, 1.4375rem);
  --fs-sm: clamp(.9375rem, .88rem + .12vw, 1.0625rem);
  --fs-xs: clamp(.875rem, .83rem + .08vw, .9375rem);

  /* Layout a tutta larghezza */
  --page-pad: clamp(20px, 4vw, 80px);
  --frame-gap: clamp(8px, 1vw, 20px);
  --header-h: 88px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Tema Bootstrap */
  --bs-body-font-family: var(--font-sans);
  --bs-body-font-size: var(--fs-body);
  --bs-body-line-height: 1.65;
  --bs-body-color: #3c4757;
  --bs-body-color-rgb: 60, 71, 87;
  --bs-body-bg: #f3f5f8;
  --bs-body-bg-rgb: 243, 245, 248;
  --bs-heading-color: #122033;
  --bs-primary: #e6612a;
  --bs-primary-rgb: 230, 97, 42;
  --bs-border-color: #e2e6ec;
  --bs-border-radius: 12px;
  --bs-border-radius-lg: 16px;
  --bs-border-radius-xl: 24px;
  --bs-border-radius-xxl: 32px;
  --bs-focus-ring-color: rgba(230, 97, 42, .35);
}

/* ---------- Base ---------- */
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
p { text-wrap: pretty; }
ul { padding: 0; list-style: none; }
strong { font-weight: 600; }

.sprite { position: absolute; }

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.page-x { padding-inline: var(--page-pad); }

section[id],
article[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 1100;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--navy);
  color: #fff;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- Tipografia ---------- */
.display-title {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.015em;
  color: var(--ink);
  text-wrap: balance;
}

.h2-title { font-size: clamp(1.95rem, 1.3rem + 2.05vw, 3.4rem); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: -.005em;
  color: var(--orange-600);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.eyebrow--light { color: rgba(255, 255, 255, .92); }
.eyebrow--light::before { background: var(--orange); }

.section-lead { max-width: 44ch; font-size: var(--fs-lead); line-height: 1.55; color: var(--muted); }

/* ---------- Bottoni e link ---------- */
.btn {
  --bs-btn-padding-x: 1.6rem;
  --bs-btn-padding-y: .95rem;
  --bs-btn-font-family: var(--font-sans);
  --bs-btn-font-size: var(--fs-sm);
  --bs-btn-font-weight: 600;
  --bs-btn-line-height: 1.2;
  --bs-btn-border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
  transition: color .2s, background-color .2s, border-color .2s, transform .15s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; box-shadow: none; }
.btn .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover .icon--arrow { transform: translateX(4px); }

.btn-compact { --bs-btn-padding-x: 1.15rem; --bs-btn-padding-y: .75rem; --bs-btn-border-radius: var(--r-sm); }

.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--orange);
  --bs-btn-border-color: var(--orange);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--orange-600);
  --bs-btn-hover-border-color: var(--orange-600);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--orange-700);
  --bs-btn-active-border-color: var(--orange-700);
}
.btn-dark {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--navy);
  --bs-btn-border-color: var(--navy);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--navy-950);
  --bs-btn-hover-border-color: var(--navy-950);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--navy-950);
  --bs-btn-active-border-color: var(--navy-950);
}
.btn-light {
  --bs-btn-color: var(--navy-900);
  --bs-btn-bg: #fff;
  --bs-btn-border-color: #fff;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--navy-900);
  --bs-btn-hover-border-color: var(--navy-900);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--navy-950);
  --bs-btn-active-border-color: var(--navy-950);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: .95rem 6px;
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
  text-decoration: underline 1.5px transparent;
  text-underline-offset: 6px;
  transition: text-decoration-color .2s, transform .15s var(--ease);
}
.link-arrow:hover { text-decoration-color: currentColor; }
.link-arrow:active { transform: translateY(1px); }
.link-arrow .icon { width: 18px; height: 18px; color: var(--orange); }
.link-arrow--light { color: #fff; }
.link-arrow--light .icon { color: var(--orange-400); }

/* ---------- Header ---------- */
.site-header {
  background: rgba(243, 245, 248, .82);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  transition: background-color .25s, box-shadow .25s;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 1px 0 var(--line), 0 12px 32px -24px rgba(17, 32, 53, .35);
}

.site-header .navbar {
  --bs-navbar-padding-y: 0;
  --bs-navbar-color: var(--ink);
  --bs-navbar-hover-color: var(--navy);
  --bs-navbar-active-color: var(--navy);
  --bs-navbar-brand-padding-y: 0;
  --bs-navbar-brand-margin-end: 0;
  --bs-navbar-toggler-focus-width: 0;
  min-height: var(--header-h);
}

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

.site-header .nav-link {
  position: relative;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: background-color .2s, color .2s, transform .15s var(--ease);
}
.site-header .nav-link:hover { background: rgba(27, 50, 80, .07); }
.site-header .nav-link:active { transform: translateY(1px); }
.site-header .nav-link.active { background: rgba(27, 50, 80, .07); }
.site-header .nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--orange);
  transform: translateX(-50%);
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: var(--fs-sm);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--navy);
  transition: background-color .2s, transform .15s var(--ease);
}
.header-phone:hover { background: rgba(27, 50, 80, .07); }
.header-phone:active { transform: translateY(1px); }
.header-phone .icon { width: 18px; height: 18px; color: var(--orange); }

.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--ink);
  transition: transform .15s var(--ease);
}
.menu-toggle:active { transform: scale(.96); }
.menu-toggle:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.menu-toggle__bars { position: relative; width: 18px; height: 12px; }
.menu-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .25s var(--ease), opacity .2s;
}
.menu-toggle__bars span:nth-child(1) { top: 0; }
.menu-toggle__bars span:nth-child(2) { top: 5px; }
.menu-toggle__bars span:nth-child(3) { top: 10px; }
.is-open .menu-toggle__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.is-open .menu-toggle__bars span:nth-child(2) { opacity: 0; }
.is-open .menu-toggle__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding-inline: var(--frame-gap); }
.hero .page-x,
.site-footer .page-x { padding-inline: max(20px, calc(var(--page-pad) - var(--frame-gap))); }

/* Layout a larghezza massima ($containerClass = 'container' in _init.php): la larghezza la limita
   il container di Bootstrap, quindi margini laterali contenuti anche dentro hero e footer */
.container.page-x,
.hero .container.page-x,
.site-footer .container.page-x { padding-inline: 20px; }

.hero__frame {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: max(640px, calc(100svh - var(--header-h) - var(--frame-gap)));
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--navy-900);
  color: #fff;
}
.hero__frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(11, 23, 38, .92) 0%, rgba(11, 23, 38, .72) 38%, rgba(11, 23, 38, .18) 75%, rgba(11, 23, 38, .08) 100%),
    linear-gradient(0deg, rgba(11, 23, 38, .88) 0%, rgba(11, 23, 38, 0) 48%);
}
.hero__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--noise);
  opacity: .14;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
  animation: hero-zoom 16s var(--ease) both;
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: clamp(40px, 6vh, 88px);
  padding-block: clamp(56px, 8vh, 120px) clamp(20px, 2vw, 36px);
}

.hero__text { max-width: 1180px; }
/* Logo chiaro sopra il titolo: solo da tablet in su (su mobile è nascosto con d-none d-md-block) */
.hero__logo { width: 300px; max-width: 100%; height: auto; margin-bottom: clamp(16px, 2vw, 28px); }
.hero__text > * { animation: rise .9s var(--ease) both; }
.hero__text > :nth-child(2) { animation-delay: .08s; }
.hero__text > :nth-child(3) { animation-delay: .16s; }
.hero__text > :nth-child(4) { animation-delay: .24s; }

.hero__title {
  margin-top: 6px;
  font-size: clamp(2.1rem, 1.2rem + 3.85vw, 5.4rem);
  line-height: .95;
  color: #fff;
}
.hero__title span { display: block; color: var(--orange-400); }

.hero__lead {
  max-width: 40rem;
  margin-top: 28px;
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: rgba(255, 255, 255, .82);
}

.hero__actions { margin-top: 40px; }

.hero__stats {
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--r-lg);
  background: rgba(11, 23, 38, .38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  animation: rise .9s .32s var(--ease) both;
}
.stat { padding: clamp(18px, 1.8vw, 32px) clamp(20px, 2vw, 36px); }
.stat:nth-child(even) { border-left: 1px solid rgba(255, 255, 255, .12); }
.stat:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, .12); }
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.2rem + 1.6vw, 3.25rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: #fff;
}
.stat__label { margin-top: 10px; font-size: var(--fs-sm); line-height: 1.4; color: rgba(255, 255, 255, .72); }

/* ---------- Sezioni ---------- */
/* Padding inferiore leggermente più ampio per compensare otticamente */
.section { padding-block: clamp(88px, 9vw, 160px) clamp(104px, 10.5vw, 184px); }
.section--flush { padding-block: 0; }
.section--last { padding-block: 0 clamp(64px, 7vw, 120px); }

.section-head { margin-bottom: clamp(40px, 4.5vw, 80px); }

/* Fenice del marchio come decorazione di sfondo nelle sezioni chiare.
   Le sezioni sono posizionate: quelle successive coprono l'eventuale sconfinamento verticale. */
main > section,
.site-footer { position: relative; }

.section--mark { isolation: isolate; overflow-x: clip; }
.section--mark::before {
  --mark-w: clamp(360px, 50vw, 1100px);
  content: "";
  position: absolute;
  top: var(--mark-top, 0px);
  z-index: -1;
  width: var(--mark-w);
  aspect-ratio: 342 / 444;
  background-color: var(--orange);
  -webkit-mask: url("../img/icon.svg") center / contain no-repeat;
  mask: url("../img/icon.svg") center / contain no-repeat;
  opacity: .08;
  pointer-events: none;
}
.section--mark-left::before { left: calc(var(--mark-w) * -.42); }
.section--mark-right::before { right: calc(var(--mark-w) * -.42); transform: scaleX(-1); }
#servizi::before { --mark-top: clamp(40px, 6vw, 110px); }
#azienda::before { --mark-top: 16%; }

/* ---------- Servizi ---------- */
/* Card con foto a tutta superficie e testo in sovrimpressione in basso */
.tile {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  min-height: clamp(420px, 62vw, 560px);
  overflow: hidden;
  padding: clamp(20px, 2.4vw, 44px);
  border-radius: var(--r-xl);
  background: var(--navy-900);
  color: #fff;
}

.tile__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.tile:hover .tile__img { transform: scale(1.04); }

/* Sfumatura scura solo nella parte bassa, dove sta il testo */
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg,
    rgba(11, 23, 38, 0) 0%,
    rgba(11, 23, 38, 0) 38%,
    rgba(11, 23, 38, .7) 70%,
    rgba(11, 23, 38, .92) 100%);
}

.tile__body { max-width: 44rem; }

.tile__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1rem + 1.3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.015em;
  color: #fff;
  text-wrap: balance;
}

.tile__text {
  max-width: 48ch;
  margin-top: 12px;
  font-size: var(--fs-body);
  line-height: 1.5;
  color: rgba(255, 255, 255, .88);
}

.tile--feature .tile__title { font-size: clamp(1.65rem, 1rem + 1.95vw, 3rem); }

/* Colonna con le card 02 e 03: impilate su mobile, affiancate su tablet, una sopra l'altra da lg */
.tile-stack { display: grid; gap: var(--bs-gutter-y); height: 100%; }

@media (min-width: 768px) and (max-width: 991.98px) {
  .tile-stack { grid-template-columns: 1fr 1fr; gap: var(--bs-gutter-x); }
}

@media (min-width: 992px) {
  .tile--feature { min-height: clamp(640px, 46vw, 900px); }
  .tile-stack { grid-template-rows: 1fr 1fr; }
  .tile-stack .tile { min-height: 300px; }
  .tile--wide { min-height: clamp(460px, 32vw, 640px); }
  .tile--wide .tile__img { object-position: 50% 62%; }
}

/* ---------- Pronto intervento ---------- */
.emergency {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(32px, 4.5vw, 88px);
  border-radius: var(--r-xl);
  background:
    radial-gradient(circle at calc(100% - 160px) 60px, transparent 219px, rgba(255, 255, 255, .07) 220px 310px, transparent 311px),
    radial-gradient(circle at calc(100% - 470px) calc(100% + 30px), transparent 119px, rgba(255, 255, 255, .07) 120px 165px, transparent 166px),
    linear-gradient(120deg, var(--orange-600) 0%, #a93d14 100%);
  color: #fff;
}
.emergency::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--noise);
  opacity: .16;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.emergency .h2-title { color: #fff; }
.emergency .eyebrow { color: #fff; }
.emergency .eyebrow::before { background: #fff; }
.emergency__text { max-width: 60ch; margin-top: 18px; font-size: var(--fs-lead); line-height: 1.5; color: rgba(255, 255, 255, .92); }

.availability { display: flex; align-items: center; gap: 12px; font-size: var(--fs-sm); font-weight: 600; }
.availability__dot {
  position: relative;
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
}
.availability__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #fff;
  animation: ping 2s var(--ease) infinite;
}

/* ---------- Azienda ---------- */
/* Foto orizzontale: ritaglio quadrato spostato a destra per tenere pala, rami e cabina del camion */
.why__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 55% 50%;
  border-radius: var(--r-xl);
  background: var(--navy);
}

.feature { height: 100%; padding-top: 28px; border-top: 1px solid var(--line); }
.features > li:nth-child(2) .feature { --d: 1; }
.features > li:nth-child(3) .feature { --d: 2; }
.features > li:nth-child(4) .feature { --d: 3; }
.feature__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  border-radius: var(--r-sm);
  background: var(--orange-50);
  color: var(--orange-600);
}
.feature__icon .icon { width: 26px; height: 26px; }
.feature__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.1rem + .5vw, 1.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--ink);
}
.feature p { max-width: 48ch; margin-top: 10px; color: var(--muted); }

/* ---------- Contatti ---------- */
.contact { padding: clamp(28px, 4.5vw, 88px); border-radius: var(--r-xl); background: var(--surface); }
.contact__lead { max-width: 36em; margin: 20px 0 32px; font-size: var(--fs-lead); line-height: 1.55; color: var(--muted); }

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: var(--bg);
  transition: background-color .2s, transform .15s var(--ease);
}
a.contact-item:hover { background: var(--orange-50); }
a.contact-item:active { transform: translateY(1px); }
.contact-item__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 50px;
  height: 50px;
  border-radius: var(--r-sm);
  background: var(--navy);
  color: #fff;
}
.contact-item small { display: block; font-size: var(--fs-xs); color: var(--muted); }
.contact-item strong { font-size: var(--fs-lead); font-variant-numeric: tabular-nums; color: var(--ink); overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.site-footer {
  margin: 0 var(--frame-gap) var(--frame-gap);
  padding-top: clamp(56px, 6vw, 104px);
  border-radius: var(--r-xl);
  background: var(--navy-950);
  color: rgba(255, 255, 255, .68);
}

.logo-chip { display: inline-flex; padding: 12px 16px; border-radius: var(--r-md); background: #fff; }
.logo-chip img { width: auto; height: 52px; }
.footer-brand__text { max-width: 38ch; margin-top: 22px; font-size: var(--fs-sm); }

.footer-title { margin-bottom: 16px; font-family: var(--font-sans); font-size: var(--fs-sm); font-weight: 600; line-height: 1.3; color: #fff; }
.footer-links { display: grid; gap: 10px; font-size: var(--fs-sm); }
.footer-links a { transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-note { margin-top: 6px; font-size: var(--fs-xs); color: rgba(255, 255, 255, .5); }

.footer-bottom {
  margin-top: clamp(48px, 5vw, 88px);
  padding-block: 26px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: var(--fs-xs);
}
.footer-legal a,
.footer-legal__btn { padding: 0; border: 0; background: none; font: inherit; color: rgba(255, 255, 255, .6); transition: color .2s; }
.footer-legal a:hover,
.footer-legal__btn:hover { color: #fff; }

/* Dati societari: ragione sociale su una riga, le altre voci vanno a capo solo tra una voce e l'altra */
.footer-company { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-company strong { flex-basis: 100%; font-weight: 600; color: #fff; }
.footer-company span { white-space: nowrap; }

/* Certificazioni sotto il logo: badge con sigla (o logo caricato) e link ai PDF */
.certs { margin-top: 28px; }
.certs__title { margin-bottom: 12px; font-size: var(--fs-xs); font-weight: 600; color: rgba(255, 255, 255, .5); }
.certs__list { display: flex; flex-wrap: wrap; gap: 12px; }
.cert {
  flex: 1 1 230px;
  max-width: 300px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .03);
}
.cert__badge { display: flex; align-items: center; gap: 12px; }
a.cert__badge:hover .cert__code { color: var(--orange-400); }
.cert__seal {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border: 2px solid var(--orange);
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px var(--navy-950), inset 0 0 0 5px rgba(230, 97, 42, .35);
  color: var(--orange-400);
}
.cert__seal .icon { width: 20px; height: 20px; }
.cert__logo { display: inline-flex; flex: none; padding: 6px 8px; border-radius: var(--r-xs); background: #fff; }
.cert__logo img { width: auto; height: 36px; }
.cert__text { display: grid; line-height: 1.2; }
.cert__code { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; color: #fff; transition: color .2s; }
.cert__scope { margin-top: 3px; font-size: var(--fs-xs); color: rgba(255, 255, 255, .6); }
.cert__docs { display: grid; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: var(--fs-xs); }
.cert__docs a { display: inline-flex; align-items: flex-start; gap: 8px; color: rgba(255, 255, 255, .75); transition: color .2s; }
.cert__docs a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.cert__docs .icon { width: 16px; height: 16px; margin-top: 1px; color: var(--orange-400); }
@media (max-width: 575.98px) {
  .cert { max-width: none; }
}

/* ---------- Animazioni ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}
@keyframes hero-zoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}
@keyframes ping {
  0% { transform: scale(1); opacity: .8; }
  80%, 100% { transform: scale(2.6); opacity: 0; }
}

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .tile__img { transition: none; }
}

/* ---------- Responsive ---------- */
@media (min-width: 992px) {
  .stat + .stat { border-left: 1px solid rgba(255, 255, 255, .12); }
  .stat:nth-child(n + 3) { border-top: 0; }
}

@media (max-width: 991.98px) {
  :root { --header-h: 76px; }
  .brand img { height: 46px; }

  /* Menu a comparsa: pannello flottante sotto l'header */
  .site-header .navbar-collapse { position: absolute; top: calc(100% + 4px); right: var(--frame-gap); left: var(--frame-gap); }
  .nav-panel {
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow: var(--shadow-md);
  }
  .site-header .nav-link { padding: 14px 16px 14px 26px; font-size: var(--fs-body); }
  .site-header .nav-link.active::after { top: 50%; bottom: auto; left: 12px; transform: translateY(-50%); }

  .why__media img { aspect-ratio: 16 / 10; }
}

@media (max-width: 767.98px) {
  .hero__frame::before {
    background: linear-gradient(0deg, rgba(11, 23, 38, .94) 0%, rgba(11, 23, 38, .78) 55%, rgba(11, 23, 38, .45) 100%);
  }
  .hero__content { gap: 40px; }
  .hero__actions > * { flex: 1 1 100%; justify-content: center; }

  .section--mark::before { opacity: .06; }

  /* Card strette: il testo occupa metà altezza, la sfumatura parte più in alto */
  .tile::before {
    background: linear-gradient(180deg,
      rgba(11, 23, 38, 0) 0%,
      rgba(11, 23, 38, .15) 22%,
      rgba(11, 23, 38, .78) 52%,
      rgba(11, 23, 38, .94) 100%);
  }

  .why__media img { aspect-ratio: 4 / 3; }
}

/* =========================================================
   Aggiunte per ProcessWire: card come link, pagine interne,
   testo formattato, galleria foto
   ========================================================= */

/* ---------- Card servizi come link ---------- */
a.tile { text-decoration: none; }
a.tile:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }

.tile__body,
.tile__title,
.tile__text { display: block; }

.tile__arrow {
  position: absolute;
  top: clamp(16px, 2vw, 32px);
  right: clamp(16px, 2vw, 32px);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  background: rgba(11, 23, 38, .28);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  transition: background-color .25s, border-color .25s, transform .25s var(--ease);
}
.tile__arrow .icon { width: 20px; height: 20px; }
a.tile:hover .tile__arrow { border-color: var(--orange); background: var(--orange); transform: translateX(2px); }

.tile--small { min-height: clamp(360px, 30vw, 460px); }
.tile--small .tile__title { font-size: clamp(1.4rem, 1rem + .8vw, 1.8rem); }

@media (min-width: 992px) {
  .tile-stack--single { grid-template-rows: 1fr; }
}

/* ---------- Pagine interne ---------- */
.page-hero { padding-block: clamp(40px, 5vw, 96px) clamp(32px, 4vw, 72px); }
.page-title { font-size: clamp(2.15rem, 1.3rem + 3.25vw, 4.85rem); }
.page-body { padding-block: clamp(48px, 6vw, 112px); }

.breadcrumb-rmp {
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-bottom: clamp(24px, 3vw, 44px);
  font-size: var(--fs-xs);
  color: var(--muted);
}
.breadcrumb-rmp li { display: flex; align-items: center; gap: 10px; }
.breadcrumb-rmp li + li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
}
.breadcrumb-rmp a { color: var(--ink); transition: color .2s; }
.breadcrumb-rmp a:hover { color: var(--orange-600); }

.cover { padding-inline: var(--frame-gap); }
.cover__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: var(--r-xl);
  background: var(--navy-900);
}

/* ---------- Testo formattato (campo "Testo") ---------- */
.rich-text { max-width: 70ch; line-height: 1.7; color: var(--text); }
.rich-text > * + * { margin-top: 1.1em; }
.rich-text > :first-child { margin-top: 0; }
.rich-text h2 {
  margin-top: 2em;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.1rem + .95vw, 1.95rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--ink);
}
.rich-text h3 {
  margin-top: 1.6em;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1rem + .5vw, 1.45rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
}
.rich-text ul,
.rich-text ol { padding-left: 1.3em; }
.rich-text ul { list-style: disc; }
.rich-text ol { list-style: decimal; }
.rich-text li + li { margin-top: .4em; }
.rich-text a { color: var(--orange-600); text-decoration: underline; text-underline-offset: 3px; }
.rich-text img { max-width: 100%; height: auto; border-radius: var(--r-lg); }

/* ---------- Riquadro contatti nella pagina servizio ---------- */
.aside-card {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: clamp(24px, 2.6vw, 44px);
  border-radius: var(--r-xl);
  background: var(--navy-900);
  color: rgba(255, 255, 255, .78);
}
.aside-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.1rem + .8vw, 1.8rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.01em;
  color: #fff;
}
.aside-card > p:not(.eyebrow):not(.aside-card__note) { margin: 14px 0 24px; }
.aside-card__phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #fff;
  transition: background-color .2s;
}
.aside-card__phone:hover { background: rgba(255, 255, 255, .08); }
.aside-card__phone .icon { color: var(--orange-400); }
.aside-card__note { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: var(--fs-xs); color: rgba(255, 255, 255, .62); }
.aside-card__note .icon { width: 16px; height: 16px; color: var(--orange-400); }

/* ---------- Galleria foto ---------- */
.gallery-section { padding-bottom: clamp(56px, 7vw, 120px); }
.gallery__item { position: relative; display: block; overflow: hidden; border-radius: var(--r-lg); background: var(--navy-900); }
.gallery__item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.modal-backdrop { --bs-backdrop-bg: #0b1726; --bs-backdrop-opacity: .92; }
.gallery-modal .modal-content { position: relative; border: 0; background: transparent; }
.gallery-modal__img { display: block; width: 100%; max-height: 80vh; object-fit: contain; border-radius: var(--r-lg); }
.gallery-modal__caption { min-height: 1.5em; margin-top: 12px; text-align: center; font-size: var(--fs-sm); color: rgba(255, 255, 255, .85); }
.gallery-modal__close,
.gallery-modal__nav {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  transition: background-color .2s;
}
.gallery-modal__close:hover,
.gallery-modal__nav:hover { background: var(--orange); border-color: var(--orange); }
.gallery-modal__close { position: absolute; top: -60px; right: 0; }
.gallery-modal__nav { position: absolute; top: 50%; z-index: 2; transform: translateY(-50%); }
.gallery-modal__nav--prev { left: 12px; }
.gallery-modal__nav--next { right: 12px; }

/* ---------- Altri servizi, invito al contatto, modifica pagina ---------- */
.others { padding-bottom: clamp(64px, 7vw, 120px); }
.cta-section { padding-bottom: clamp(64px, 7vw, 120px); }

.edit-page { position: fixed; bottom: 16px; left: 16px; z-index: 1030; box-shadow: var(--shadow-md); }

@media (max-width: 991.98px) {
  .aside-card { position: static; }
}

@media (max-width: 767.98px) {
  .cover__img { aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery__item img { transition: none; }
}

/* =========================================================
   Pagina Contatti: recapiti, modulo di richiesta, mappa
   ========================================================= */

.contact-emergency {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  padding: 22px 24px;
  border-radius: var(--r-lg);
  background: var(--navy-900);
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, .78);
}
.contact-emergency > .icon { width: 24px; height: 24px; margin-top: 2px; color: var(--orange-400); }
.contact-emergency strong { display: block; margin-bottom: 4px; font-size: var(--fs-body); color: #fff; }
.contact-emergency a { font-weight: 600; color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* Recapiti su fondo pagina: card bianche per staccarle dallo sfondo */
.page-body .contact-item { background: var(--surface); }

.form-card {
  scroll-margin-top: calc(var(--header-h) + 16px);
  padding: clamp(24px, 3.4vw, 64px);
  border-radius: var(--r-xl);
  background: var(--surface);
}
.form-card__title { font-size: clamp(1.7rem, 1.1rem + 1.6vw, 2.6rem); }
.form-card__lead { max-width: 52ch; margin: 14px 0 28px; color: var(--muted); }

.form-alert {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
}
.form-alert > .icon { width: 22px; height: 22px; margin-top: 1px; }
.form-alert strong { display: block; margin-bottom: 2px; }
.form-alert a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.form-alert ul { margin-top: 6px; padding-left: 1.1em; list-style: disc; }
.form-alert:focus { outline: none; box-shadow: 0 0 0 3px rgba(161, 42, 28, .25); }
.form-alert--success { background: #e7f4ec; color: #145c35; }
.form-alert--error { background: #fdecea; color: #9f2a1c; }

.contact-form legend { float: none; width: auto; margin-bottom: 10px; }
.contact-form .form-label { margin-bottom: 8px; font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.contact-form .form-control,
.contact-form .form-select {
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background-color: var(--bg);
  font-size: var(--fs-body);
  color: var(--ink);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.contact-form .form-select { padding-right: 2.5rem; }
.contact-form .form-control::placeholder { color: #98a0ab; }
.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--orange);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(230, 97, 42, .15);
}
.contact-form textarea.form-control { min-height: 170px; resize: vertical; }
.contact-form .invalid-feedback { font-size: var(--fs-xs); }

.contact-form .form-check { display: flex; flex-wrap: wrap; gap: 4px 12px; padding-left: 0; }
.contact-form .form-check-input {
  float: none;
  flex: none;
  width: 1.3em;
  height: 1.3em;
  margin: .15em 0 0;
  border-color: #b9c0ca;
}
.contact-form .form-check-input:checked { border-color: var(--orange); background-color: var(--orange); }
.contact-form .form-check-input:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(230, 97, 42, .2); }
.contact-form .form-check-label { flex: 1 1 0; min-width: 0; font-size: var(--fs-sm); color: var(--text); }
.contact-form .form-check .invalid-feedback { flex-basis: 100%; padding-left: calc(1.3em + 12px); }

.request-type { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-choice {
  --bs-btn-padding-x: 1.1rem;
  --bs-btn-padding-y: .7rem;
  --bs-btn-border-radius: var(--r-sm);
  --bs-btn-color: var(--ink);
  --bs-btn-bg: var(--bg);
  --bs-btn-border-color: var(--line);
  --bs-btn-hover-color: var(--ink);
  --bs-btn-hover-bg: #fff;
  --bs-btn-hover-border-color: var(--navy);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--navy);
  --bs-btn-active-border-color: var(--navy);
}
.btn-check:checked + .btn-choice { border-color: var(--navy); background-color: var(--navy); color: #fff; }
.btn-check:focus-visible + .btn-choice { outline: 2px solid var(--orange); outline-offset: 3px; box-shadow: none; }

.form-hint {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: var(--orange-50);
  font-size: var(--fs-sm);
  color: #8f3712;
}
.form-hint .icon { width: 18px; height: 18px; margin-top: 2px; }
.form-hint a { font-weight: 600; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.form-note { font-size: var(--fs-xs); color: var(--muted); }

/* Campo trappola per i bot: fuori dallo schermo */
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Mappa ---------- */
.map-section { padding-bottom: clamp(64px, 7vw, 120px); }
.map {
  position: relative;
  height: clamp(380px, 42vw, 560px);
  overflow: hidden;
  border-radius: var(--r-xl);
  background-color: var(--navy-900);
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  color: rgba(255, 255, 255, .8);
}
.map iframe { display: block; width: 100%; height: 100%; border: 0; }
.map__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
}
.map__pin {
  flex: none;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  box-shadow: 0 0 0 12px rgba(230, 97, 42, .18);
}
.map__pin .icon { width: 28px; height: 28px; }
.map__title { font-family: var(--font-display); font-size: clamp(1.4rem, 1rem + .95vw, 1.95rem); font-weight: 800; line-height: 1.05; color: #fff; }
.map__address { margin-bottom: 16px; }
.map__note { max-width: 46ch; margin-top: 12px; font-size: var(--fs-xs); color: rgba(255, 255, 255, .55); }

@media (max-width: 767.98px) {
  .map { height: 480px; }
}

/* =========================================================
   Pagina Chi siamo: introduzione, numeri chiave, capitoli
   ========================================================= */

/* Citazioni e grassetti nel testo formattato (anche nelle pagine servizio) */
.rich-text strong { font-weight: 600; color: var(--ink); }
.rich-text blockquote {
  margin-block: clamp(28px, 3vw, 48px);
  padding: 2px 0 2px clamp(18px, 2vw, 32px);
  border-left: 4px solid var(--orange);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1rem + 1.05vw, 1.95rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.01em;
  color: var(--ink);
  text-wrap: balance;
}
.rich-text blockquote > * { margin: 0; }
.rich-text blockquote > * + * { margin-top: .5em; }

/* ---------- Introduzione ---------- */
.story-intro { padding-block: clamp(40px, 5vw, 96px) clamp(56px, 6vw, 120px); }
.story-intro::before { --mark-top: -12%; }

.story-since__year {
  font-family: var(--font-display);
  font-size: clamp(5rem, 2.6rem + 8vw, 11.5rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: .82;
  letter-spacing: -.035em;
  color: var(--navy);
}
.story-since__place { margin-top: 18px; font-size: var(--fs-sm); color: var(--muted); }

.story-intro__text { max-width: none; }
.story-intro__text > * { max-width: 70ch; }
.story-intro__text > p:first-child {
  max-width: 32ch;
  margin-bottom: .4em;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, .95rem + 1.3vw, 2.1rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--ink);
  text-wrap: pretty;
}

/* ---------- Numeri chiave ---------- */
.facts-section { padding-bottom: clamp(56px, 6vw, 112px); }
.facts {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0;
  border-radius: var(--r-xl);
  background:
    radial-gradient(circle at 100% 0%, rgba(230, 97, 42, .24) 0%, rgba(230, 97, 42, 0) 45%),
    var(--navy-900);
}
.facts::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--noise);
  opacity: .12;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.facts .stat { padding: clamp(28px, 3.2vw, 60px) clamp(20px, 2.6vw, 48px); }
.facts .stat__value { font-size: clamp(2.6rem, 1.5rem + 3.2vw, 5.25rem); }
.facts .stat__label { max-width: 28ch; margin-bottom: 0; }

/* ---------- Capitoli ---------- */
.story { padding-bottom: clamp(56px, 6vw, 112px); }
.story__panel { padding: clamp(24px, 4.5vw, 96px) clamp(20px, 4.5vw, 96px); border-radius: var(--r-xl); background: var(--surface); }

.chapter { scroll-margin-top: calc(var(--header-h) + 16px); }
.chapter + .chapter {
  margin-top: clamp(48px, 5vw, 104px);
  padding-top: clamp(48px, 5vw, 104px);
  border-top: 1px solid var(--line);
}
.chapter__num {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, .95rem + .4vw, 1.4rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--orange-600);
}
.chapter__num span { font-weight: 600; color: #98a0ab; }
.chapter__title { font-size: clamp(1.6rem, 1.1rem + 1.45vw, 2.6rem); line-height: 1.02; }
.chapter .rich-text { font-size: clamp(1.0625rem, .98rem + .3vw, 1.25rem); }

@media (min-width: 992px) {
  .chapter__head { position: sticky; top: calc(var(--header-h) + 32px); }
}

@media (max-width: 575.98px) {
  .facts .stat { padding: 24px 18px; }
  .facts .stat__label { font-size: var(--fs-xs); }
}

/* Link con freccia allineato al testo sopra (senza rientro laterale) */
.link-arrow--flush { padding-inline: 0; }

/* =========================================================
   Pagine legali e banner dei cookie
   ========================================================= */

.legal-card { padding: clamp(24px, 4vw, 64px); border-radius: var(--r-xl); background: var(--surface); }
.legal-text { max-width: 75ch; }
.legal-text > h2:first-of-type { margin-top: 1.6em; }

.rich-text table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-size: var(--fs-sm); }
.rich-text th,
.rich-text td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.rich-text thead th { background: var(--bg); font-weight: 600; color: var(--ink); white-space: nowrap; }
.rich-text tbody td:first-child { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; color: var(--ink); white-space: nowrap; }

.legal-nav { display: grid; gap: 6px; margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: var(--fs-xs); }
.legal-nav a { color: rgba(255, 255, 255, .7); transition: color .2s; }
.legal-nav a:hover,
.legal-nav a[aria-current] { color: #fff; }
.legal-nav a[aria-current] { font-weight: 600; }

.map__note a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Banner cookie ---------- */
.cookie-banner {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 1080;
  max-height: calc(100svh - 24px);
  overflow-y: auto;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--r-lg);
  background: var(--navy-950);
  box-shadow: 0 24px 64px -16px rgba(11, 23, 38, .55);
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, .78);
  animation: rise .5s var(--ease) both;
}
.cookie-banner:focus { outline: none; }
.cookie-banner__close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, .7);
  transition: background-color .2s, color .2s;
}
.cookie-banner__close:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.cookie-banner__title { margin: 0 40px 8px 0; font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; line-height: 1.1; color: #fff; }
.cookie-banner__text a { font-weight: 600; color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.cookie-banner__prefs { display: grid; gap: 8px; margin-top: 16px; }
.consent-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .05);
}
label.consent-option { cursor: pointer; }
.consent-option__text { display: grid; gap: 2px; font-size: var(--fs-xs); line-height: 1.4; }
.consent-option__text strong { font-size: var(--fs-sm); color: #fff; }
.consent-option__state { flex: none; font-size: var(--fs-xs); font-weight: 600; color: var(--orange-400); }
.consent-option .form-switch { flex: none; min-height: 0; margin: 0; padding: 0; }
.consent-option .form-switch .form-check-input {
  --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%28255, 255, 255, 0.85%29'/%3e%3c/svg%3e");
  float: none;
  width: 2.75em;
  height: 1.5em;
  margin: 0;
  border-color: rgba(255, 255, 255, .3);
  background-color: rgba(255, 255, 255, .12);
  cursor: pointer;
}
.consent-option .form-switch .form-check-input:checked { border-color: var(--orange); background-color: var(--orange); }
.consent-option .form-switch .form-check-input:focus { box-shadow: none; }
.consent-option .form-switch .form-check-input:focus-visible { outline: 2px solid var(--orange-400); outline-offset: 3px; }

.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.cookie-banner__actions .btn { flex: 1 1 auto; }

.btn-ghost-light {
  --bs-btn-color: #fff;
  --bs-btn-bg: transparent;
  --bs-btn-border-color: rgba(255, 255, 255, .3);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: rgba(255, 255, 255, .08);
  --bs-btn-hover-border-color: rgba(255, 255, 255, .5);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: rgba(255, 255, 255, .12);
  --bs-btn-active-border-color: rgba(255, 255, 255, .5);
}

@media (min-width: 576px) {
  .cookie-banner { right: auto; bottom: 24px; left: 24px; width: min(460px, calc(100vw - 48px)); padding: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner { animation: none; }
}
