/* ==========================================================================
   EoS Water Treatment — foglio di stile
   Design: istituzionale pulito, palette derivata dal logo (blu acqua)
   ========================================================================== */

/* ---------- 1. Token ---------- */
:root {
  --navy-900: #081f33;
  --navy-800: #0a2b45;
  --navy-700: #0e3a5c;
  --brand: #1072b8;
  --brand-700: #0c5d99;
  --sky: #7cc3e8;
  --ice: #eff6fb;
  --ice-2: #e2eef7;
  --line: #d7e5f0;
  --line-strong: #b7d4ea;
  --ink: #0c2438;
  --muted: #4a6479;
  --white: #ffffff;

  --font-display: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 16px;
  --radius-lg: 22px;
  --shadow-card: 0 18px 40px -24px rgba(8, 31, 51, 0.35);
  --shadow-pop: 0 24px 60px -28px rgba(8, 31, 51, 0.45);

  --header-h: 76px;
  --container: 1160px;
  --pad-x: clamp(1.25rem, 5vw, 4rem);
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }

::selection { background: var(--sky); color: var(--navy-900); }

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

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

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--navy-800); color: var(--white);
  padding: 0.7rem 1.1rem; border-radius: 10px;
  font-weight: 600; transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; text-decoration: none; }

/* ---------- 3. Layout ---------- */
figure { margin: 0; }
address { font-style: normal; }

.container {
  width: min(var(--container), 100% - (var(--pad-x) * 2));
  margin-inline: auto;
}

.section { padding-block: clamp(3.75rem, 8vw, 6.5rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--ice { background: var(--ice); }

.sec-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.35rem); font-weight: 800; }
.sec-head p { color: var(--muted); font-size: 1.06rem; margin-bottom: 0; }
.sec-head .kicker {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.85rem; font-weight: 600; color: var(--brand-700);
  margin-bottom: 0.9rem;
}
.kicker {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.85rem; font-weight: 600; color: var(--brand-700);
  margin-bottom: 0.9rem;
}
.kicker::before {
  content: ""; width: 26px; height: 2px; background: var(--sky); border-radius: 2px;
}

/* ---------- 4. Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--font-body); font-size: 0.97rem; font-weight: 600;
  padding: 0.85rem 1.4rem; border-radius: 12px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; line-height: 1.2;
  transition: background 0.18s ease, border-color 0.18s ease,
              color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--brand); color: var(--white); }
.btn--primary:hover { background: var(--brand-700); box-shadow: 0 12px 26px -14px rgba(16, 114, 184, 0.7); }

.btn--ghost { background: var(--white); border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-700); }

.btn--light { background: var(--white); color: var(--navy-800); }
.btn--light:hover { background: var(--ice); }

.btn--outline-light { border-color: rgba(255, 255, 255, 0.45); color: var(--white); }
.btn--outline-light:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }

.btn svg { flex: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- 5. Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -22px rgba(8, 31, 51, 0.4);
}

.header-inner {
  display: flex; align-items: center; gap: 1.5rem;
  height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand img { height: 46px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-name {
  font-family: var(--font-display); font-weight: 800; font-size: 1.18rem;
  color: var(--navy-800); letter-spacing: -0.01em;
}
.brand-sub { font-size: 0.72rem; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 0.4rem; }
.nav a.nav-link {
  font-size: 0.95rem; font-weight: 500; color: var(--ink);
  padding: 0.55rem 0.85rem; border-radius: 10px;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav a.nav-link:hover { background: var(--ice); color: var(--brand-700); text-decoration: none; }
.nav a.nav-link[aria-current="page"] { color: var(--brand-700); font-weight: 600; }
.nav .btn { margin-left: 0.6rem; }

.menu-toggle {
  display: none; margin-left: auto;
  width: 46px; height: 46px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: var(--white);
  cursor: pointer; place-items: center;
}
.menu-toggle span {
  display: block; width: 20px; height: 2px; background: var(--ink);
  border-radius: 2px; position: relative; transition: background 0.2s ease;
}
.menu-toggle span::before, .menu-toggle span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px;
  background: var(--ink); border-radius: 2px; transition: transform 0.25s ease, top 0.25s ease;
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.mobile-panel {
  display: none;
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: var(--white); padding: 1.5rem var(--pad-x) 2rem;
  overflow-y: auto;
}
.mobile-panel.is-open { display: block; }
.mobile-panel a.m-link {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: 1.35rem; color: var(--ink); padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}
.mobile-panel a.m-link:hover { color: var(--brand-700); text-decoration: none; }
.mobile-panel .m-contact { margin-top: 1.75rem; display: flex; flex-direction: column; gap: 0.75rem; }
.mobile-panel .m-meta { margin-top: 1.5rem; font-size: 0.9rem; color: var(--muted); }

/* ---------- 6. Hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  background: var(--navy-800); overflow: hidden;
}
.hero-copy {
  position: relative;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(3rem, 7vw, 5.75rem) clamp(1.5rem, 4vw, 4rem);
  padding-left: max(var(--pad-x), calc((100vw - var(--container)) / 2));
  background:
    radial-gradient(1100px 520px at -10% 115%, rgba(124, 195, 232, 0.16), transparent 60%),
    linear-gradient(158deg, var(--navy-900) 0%, var(--navy-800) 46%, var(--navy-700) 100%);
  color: var(--white);
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.88rem; font-weight: 600; color: var(--sky);
  margin-bottom: 1.1rem;
}
.hero-kicker::before { content: ""; width: 26px; height: 2px; background: var(--sky); border-radius: 2px; }
.hero h1 {
  font-size: clamp(2.05rem, 4.4vw, 3.3rem); font-weight: 800;
  color: var(--white); letter-spacing: -0.025em; max-width: 22ch;
  margin-bottom: 1.1rem;
}
.hero-lead {
  color: rgba(255, 255, 255, 0.84); font-size: 1.075rem;
  max-width: 46ch; margin-bottom: 1.9rem;
}
.hero-points {
  list-style: none; padding: 0; margin: 1.9rem 0 0;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem;
}
.hero-points li {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.88rem; color: rgba(255, 255, 255, 0.78);
}
.hero-points svg { color: var(--sky); flex: none; }

.hero-media { position: relative; min-height: 520px; }
.hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 26%;
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10, 43, 69, 0.42), rgba(10, 43, 69, 0.06) 42%);
}

/* ---------- 7. Fascia punti di forza ---------- */
.strip { border-block: 1px solid var(--line); background: var(--white); }
.strip-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem 2rem;
  padding-block: 1.7rem;
}
.strip-item { display: flex; align-items: flex-start; gap: 0.7rem; }
.strip-item svg { color: var(--brand); flex: none; margin-top: 0.15rem; }
.strip-item p { margin: 0; font-size: 0.93rem; color: var(--muted); line-height: 1.5; }
.strip-item strong { display: block; color: var(--ink); font-weight: 600; font-size: 0.95rem; }

/* ---------- 8. Card servizi ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.cards--2 { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.card {
  display: flex; flex-direction: column; gap: 0.65rem;
  padding: 1.7rem 1.55rem 1.5rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  color: inherit; text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.card:hover {
  text-decoration: none; border-color: var(--line-strong);
  box-shadow: var(--shadow-card); transform: translateY(-3px);
}
.card-icon {
  width: 46px; height: 46px; border-radius: 13px;
  background: var(--ice); color: var(--brand);
  display: grid; place-items: center; margin-bottom: 0.4rem;
}
.card h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 0; }
.card p { margin: 0; color: var(--muted); font-size: 0.94rem; line-height: 1.6; flex: 1; }
.card .card-more {
  font-weight: 600; font-size: 0.92rem; color: var(--brand-700);
  display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.35rem;
}
.card:hover .card-more { text-decoration: underline; }

/* ---------- 9. Split "chi siamo" ---------- */
.split {
  display: grid; grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.split-media { position: relative; }
.split-media img {
  width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: 50% 35%;
  border-radius: var(--radius-lg);
}
.float-badge {
  position: absolute; right: clamp(-0.5rem, -1vw, -1.25rem); bottom: 1.4rem;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow-pop);
  padding: 0.9rem 1.1rem; display: flex; gap: 0.7rem; align-items: flex-start;
  max-width: 19rem;
}
.float-badge svg { color: var(--brand); flex: none; margin-top: 0.1rem; }
.float-badge p { margin: 0; font-size: 0.87rem; color: var(--muted); line-height: 1.5; }
.float-badge strong { color: var(--ink); display: block; margin-bottom: 0.15rem; }

.split-copy h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); font-weight: 800; }
.split-copy p { color: var(--muted); }
.split-copy p.lead { color: var(--ink); font-size: 1.1rem; }

.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.6rem 0 0; }
.mini {
  border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.15rem;
  background: var(--white);
}
.mini h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.mini p { margin: 0; font-size: 0.9rem; color: var(--muted); line-height: 1.55; }

/* ---------- 10. Gallery ---------- */
.gal {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.gal button {
  all: unset; cursor: zoom-in; position: relative; display: block;
  border-radius: 14px; overflow: hidden; aspect-ratio: 1 / 1;
}
.gal button img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease, filter 0.3s ease;
}
.gal button:hover img { transform: scale(1.055); }
.gal button::after {
  content: ""; position: absolute; inset: 0; border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(8, 31, 51, 0.08);
}
.gal button:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

.lightbox {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(6, 21, 35, 0.93);
  display: grid; grid-template-rows: 1fr auto; place-items: center;
  padding: clamp(1rem, 4vw, 2.5rem);
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: min(96vw, 1100px); max-height: 78vh;
  border-radius: 14px; box-shadow: var(--shadow-pop);
}
.lightbox-cap { color: rgba(255, 255, 255, 0.8); font-size: 0.95rem; text-align: center; margin-top: 1rem; }
.lb-close, .lb-prev, .lb-next {
  position: absolute; border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08); color: var(--white);
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255, 255, 255, 0.18); border-color: var(--white); }
.lb-close { top: 1.2rem; right: 1.2rem; }
.lb-prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1.2rem; top: 50%; transform: translateY(-50%); }

/* ---------- 11. Fascia CTA ---------- */
.cta-band {
  background:
    radial-gradient(900px 420px at 85% 120%, rgba(124, 195, 232, 0.2), transparent 60%),
    linear-gradient(150deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 4.25rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
}
.cta-band h2 { color: var(--white); font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 800; }
.cta-band > p { color: rgba(255, 255, 255, 0.82); max-width: 52ch; margin: 0 auto 1.4rem; }
.cta-phone {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.45rem, 3.4vw, 2.1rem); color: var(--white);
  margin: 0.4rem 0 1.6rem; letter-spacing: -0.01em;
}
.cta-phone:hover { color: var(--sky); text-decoration: none; }
.cta-band .btn-row { justify-content: center; }
.cta-meta { margin-top: 1.5rem; font-size: 0.9rem; color: rgba(255, 255, 255, 0.65); }

/* ---------- 12. Page head (pagine interne) ---------- */
.page-head { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem); }
.page-head-grid {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.breadcrumb { font-size: 0.87rem; color: var(--muted); margin-bottom: 1.1rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.4rem; color: var(--line-strong); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand-700); }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 500; }

.page-head h1 { font-size: clamp(1.85rem, 3.8vw, 2.7rem); font-weight: 800; letter-spacing: -0.02em; }
.page-lead { color: var(--muted); font-size: 1.08rem; max-width: 52ch; margin-bottom: 1.6rem; }

.page-figure img {
  width: 100%; aspect-ratio: 4 / 4.7; object-fit: cover;
  border-radius: var(--radius-lg);
}

/* ---------- 13. Layout pagina servizio ---------- */
.svc {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(2rem, 5vw, 4rem); align-items: start;
}
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); font-weight: 800; margin-top: 2.2rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.18rem; font-weight: 700; margin-top: 1.8rem; }
.prose p, .prose li { color: #29455c; }
.prose strong { color: var(--ink); }

.check-list { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: 0.65rem; }
.check-list li {
  display: flex; gap: 0.7rem; align-items: flex-start;
  background: var(--ice); border: 1px solid var(--line);
  border-radius: 13px; padding: 0.85rem 1.05rem;
  font-size: 0.97rem; color: #29455c;
}
.check-list svg { color: var(--brand); flex: none; margin-top: 0.18rem; }

.chips { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 0 0 1.4rem; }
.chips span {
  background: var(--white); border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 0.45rem 0.95rem;
  font-size: 0.9rem; font-weight: 500; color: var(--navy-700);
}

/* callout, passi numerati, coppia di foto */
.callout {
  border-left: 3px solid var(--brand);
  background: var(--ice);
  border-radius: 0 14px 14px 0;
  padding: 1.1rem 1.3rem;
  margin: 1.5rem 0;
}
.callout p:last-child { margin-bottom: 0; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 1rem; }
.steps li { counter-increment: step; position: relative; padding-left: 3.1rem; color: #29455c; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0.05rem;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--brand); color: var(--white);
  font-family: var(--font-display); font-weight: 800; font-size: 1rem;
  display: grid; place-items: center;
}
.steps strong { display: block; color: var(--ink); font-family: var(--font-display); }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.duo picture, .duo img { display: block; }
.duo img {
  width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover;
  border-radius: var(--radius); height: 100%;
}

/* sidebar */
.side { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 1.2rem; }
.side-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.35rem 1.3rem; background: var(--white);
}
.side-card h2 { font-size: 1.02rem; font-weight: 700; margin-bottom: 0.9rem; }
.side-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
.side-nav a {
  display: block; padding: 0.5rem 0.7rem; border-radius: 9px;
  font-size: 0.93rem; color: var(--ink); border-left: 2px solid transparent;
}
.side-nav a:hover { background: var(--ice); color: var(--brand-700); text-decoration: none; }
.side-nav a[aria-current="page"] {
  background: var(--ice); color: var(--brand-700); font-weight: 600;
  border-left-color: var(--brand);
}
.side-contact p { font-size: 0.92rem; color: var(--muted); }
.side-contact .btn { width: 100%; margin-top: 0.5rem; }

/* ---------- 14. Contatti ---------- */
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.1rem;
}
.contact-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.55rem; background: var(--white);
  display: flex; flex-direction: column; gap: 0.5rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
a.contact-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-card); text-decoration: none; }
.contact-card .card-icon { margin-bottom: 0.5rem; }
.contact-card h2, .contact-card h3 { font-size: 1.1rem; margin-bottom: 0.1rem; }
.contact-card p { margin: 0; color: var(--muted); font-size: 0.94rem; }
.contact-card .big {
  font-family: var(--font-display); font-weight: 800; font-size: 1.32rem;
  color: var(--navy-800); letter-spacing: -0.01em;
}
.contact-card .big:hover { color: var(--brand-700); }

.data-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.55rem; }
.data-list li { font-size: 0.94rem; color: var(--muted); display: flex; gap: 0.6rem; }
.data-list strong { color: var(--ink); font-weight: 600; min-width: 6.2rem; }

/* ---------- 15. Prose lunga (legale / racconto) ---------- */
.longform { max-width: 74ch; }
.longform h2 { font-size: clamp(1.35rem, 2.5vw, 1.7rem); font-weight: 800; margin-top: 2.4rem; }
.longform h3 { font-size: 1.12rem; margin-top: 1.8rem; }
.longform li { margin-bottom: 0.4rem; }
.longform .updated { font-size: 0.9rem; color: var(--muted); }

/* ---------- 16. Footer ---------- */
.footer {
  background: var(--navy-900); color: rgba(255, 255, 255, 0.76);
  padding: clamp(3rem, 6vw, 4.5rem) 0 1.8rem;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.1fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
}
.footer h2 {
  font-size: 0.92rem; font-weight: 700; color: var(--white);
  margin-bottom: 1rem; letter-spacing: 0.01em;
}
.footer-brand .fb-name {
  font-family: var(--font-display); font-weight: 800; font-size: 1.3rem;
  color: var(--white); display: block; margin-bottom: 0.6rem;
}
.footer p { margin: 0 0 0.6rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.footer a { color: rgba(255, 255, 255, 0.76); }
.footer a:hover { color: var(--white); }
.footer .addr { font-style: normal; line-height: 1.7; }
.footer-bottom {
  margin-top: clamp(2rem, 5vw, 3rem);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 1.4rem;
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem;
  align-items: center; justify-content: space-between;
  font-size: 0.87rem; color: rgba(255, 255, 255, 0.6);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }
.footer-legal a { color: rgba(255, 255, 255, 0.6); }
.footer-legal a:hover { color: var(--white); }

/* ---------- 17. 404 ---------- */
.nf { text-align: center; padding-block: clamp(4rem, 12vw, 8rem); }
.nf .code {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(3.5rem, 10vw, 6rem); color: var(--ice-2); line-height: 1;
}
.nf h1 { margin-top: 0.5rem; }
.nf p { color: var(--muted); max-width: 44ch; margin-inline: auto; }
.nf .btn-row { justify-content: center; margin-top: 1.4rem; }

/* ---------- 18. Reveal ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.65s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1);
}
[data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn, .card, .gal button img { transition: none; }
}

/* ---------- 19. Responsive ---------- */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .nav { display: none; }
  .menu-toggle { display: grid; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding-left: var(--pad-x); padding-right: var(--pad-x); }
  .hero-media { min-height: 0; aspect-ratio: 16 / 10; order: 2; }
  .hero-media img { position: static; }
  .hero-media::after { display: none; }

  .split { grid-template-columns: 1fr; }
  .split-media img { aspect-ratio: 4 / 4; }
  .page-head-grid { grid-template-columns: 1fr; }
  .page-figure { order: -1; }
  .page-figure img { aspect-ratio: 16 / 11; }
  .svc { grid-template-columns: 1fr; }
  .side { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .gal { grid-template-columns: repeat(3, 1fr); }
  .float-badge { right: 0.9rem; }
}

@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
  .strip-grid { grid-template-columns: 1fr; }
  .gal { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .mini-grid { grid-template-columns: 1fr; }
  .brand img { height: 44px; }
  .lb-prev { left: 0.6rem; }
  .lb-next { right: 0.6rem; }
}
