/* =========================================================
   SALUS NOLEGGIO — Direzione B «Metodo»
   Swiss / technical. Schibsted Grotesk + JetBrains Mono.
   ========================================================= */

:root {
  --paper: #F4F5F7;
  --white: #FFFFFF;
  --ink: #0D1117;
  --ink-2: #2A313B;
  --muted: #56606C;
  --line: #D3D8DF;
  --line-2: #B9C1CB;
  --blue: #0B2A4A;
  --blue-2: #163F69;
  --blue-3: #8EA3BA;
  --tint: #E6ECF3;
  --red: #E30613;
  --red-dk: #B80510;
  --col: rgba(11, 42, 74, .055);

  --f: 'Schibsted Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --m: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --max: 1520px;
  --pad: clamp(16px, 3.4vw, 48px);
  --gut: clamp(12px, 1.6vw, 24px);
  --hh: 72px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --sec: clamp(80px, 10vw, 152px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hh) + 16px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f); font-size: 17px; line-height: 1.55; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; font-size: 14px; }
.skip:focus { top: 12px; }

/* ---------- Grid ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); position: relative; }
.g { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gut); }

.cols, .lines { pointer-events: none; }
.cols { position: fixed; inset: 0; z-index: 0; }
.cols__in, .lines {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gut);
}
.cols__in { max-width: var(--max); height: 100%; margin: 0 auto; padding: 0 var(--pad); }
.lines { position: absolute; inset: 0 var(--pad); z-index: 0; }
.cols__in i, .lines i { border-left: 1px solid var(--col); border-right: 1px solid var(--col); }
html.show-grid { --col: rgba(227, 6, 19, .22); }
html.show-grid .sec--blue, html.show-grid .cta { --col: rgba(255, 120, 120, .35); }
main, .ft { position: relative; z-index: 1; }

/* ---------- Type ---------- */
.mono { font-family: var(--m); font-size: 12px; line-height: 1.5; letter-spacing: .01em; text-transform: uppercase; font-weight: 400; }
.display {
  font-size: clamp(44px, 9.4vw, 150px); font-weight: 600; letter-spacing: -.052em; line-height: .9;
  text-wrap: balance;
}
.h2 { font-size: clamp(30px, 4.2vw, 62px); font-weight: 600; letter-spacing: -.038em; line-height: 1.02; text-wrap: balance; }
.h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.lead { font-size: clamp(18px, 1.45vw, 21px); line-height: 1.5; color: var(--ink-2); letter-spacing: -.005em; text-wrap: pretty; }
.dot { color: var(--red); }
p { text-wrap: pretty; }

/* ---------- Buttons / links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px; height: 54px; padding: 0 22px;
  background: var(--ink); color: #fff; font-size: 15px; font-weight: 500; letter-spacing: -.005em;
  border: 1px solid var(--ink); white-space: nowrap; position: relative;
  transition: background .25s, color .25s, border-color .25s;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .35s var(--ease); }
.btn:hover { background: var(--red); border-color: var(--red); }
.btn:hover svg { transform: translateX(4px); }
.btn--sm { height: 42px; padding: 0 16px; font-size: 14px; gap: 10px; }
.btn--sm svg { width: 16px; height: 16px; }
.btn--red { background: var(--red); border-color: var(--red); }
.btn--red:hover { background: var(--ink); border-color: var(--ink); }
.btn--line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--light { background: #fff; color: var(--blue); border-color: #fff; }
.btn--light:hover { background: var(--red); color: #fff; border-color: var(--red); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn--ghost:hover { background: #fff; color: var(--blue); border-color: #fff; }
.btn--ghost:hover svg { transform: none; }

.lnk { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 3px; width: max-content; max-width: 100%; }
.lnk svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.lnk:hover { color: var(--red); }
.lnk:hover svg { transform: translateX(4px); }
.acts { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.hd { position: sticky; top: 0; z-index: 60; background: rgba(244, 245, 247, .94); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(1px)) { .hd { background: rgba(244, 245, 247, .82); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); } }
.hd__in { height: var(--hh); display: flex; align-items: center; gap: clamp(14px, 1.6vw, 26px); }
.hd__logo img { height: 28px; width: auto; }
.hd__sec { display: none; align-items: center; gap: 10px; color: var(--muted); padding-left: 22px; border-left: 1px solid var(--line); height: 28px; min-width: 190px; }
.hd__sec b { color: var(--red); font-weight: 500; }
.nav { display: flex; margin-left: auto; }
.nav a { position: relative; padding: 10px 12px; font-size: 15px; font-weight: 500; letter-spacing: -.01em; display: flex; align-items: flex-start; gap: 5px; }
.nav small { font-family: var(--m); font-size: 10px; color: var(--muted); line-height: 1; margin-top: 2px; }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.nav a[aria-current] small { color: var(--red); }
.hd__tel { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; white-space: nowrap; }
.hd__tel svg { width: 16px; height: 16px; }
.hd__tel:hover { color: var(--red); }
.hd__bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; overflow: hidden; }
.hd__bar i { display: block; height: 100%; background: var(--red); transform-origin: left; transform: scaleX(var(--p, 0)); }
.burger { display: none; width: 44px; height: 44px; position: relative; margin-right: -10px; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); transition: transform .35s var(--ease), top .35s var(--ease); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 25px; }
.is-menu .burger span:first-child { top: 21.5px; transform: rotate(45deg); }
.is-menu .burger span:last-child { top: 21.5px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: var(--hh) 0 0; z-index: 55; background: var(--paper);
  overflow-y: auto; padding: 8px 0 120px; visibility: hidden; opacity: 0; transform: translateY(-10px);
  transition: opacity .3s, transform .4s var(--ease), visibility 0s .4s;
}
.is-menu .menu { visibility: visible; opacity: 1; transform: none; transition: opacity .3s, transform .4s var(--ease); }
.menu__links li { border-bottom: 1px solid var(--line); }
.menu__links a { display: flex; align-items: baseline; gap: 16px; padding: 16px 0; font-size: clamp(30px, 8vw, 44px); font-weight: 600; letter-spacing: -.04em; line-height: 1.05; }
.menu__links small { font-family: var(--m); font-size: 12px; letter-spacing: 0; color: var(--red); font-weight: 400; width: 22px; }
.menu__links a[aria-current] { color: var(--red); }
.menu__foot { margin-top: 28px; display: grid; gap: 0; }
.menu__foot div { display: grid; grid-template-columns: 70px 1fr; padding: 9px 0; border-bottom: 1px solid var(--line); }
.menu__foot dt { color: var(--muted); }
.menu__foot dd { text-transform: none; }
.menu__cta { margin-top: 28px; width: 100%; justify-content: space-between; }

@media (min-width: 1360px) { .hd__sec { display: inline-flex; } }
@media (max-width: 1120px) {
  .nav, .hd__tel { display: none; }
  .hd__cta { margin-left: auto; }
  .burger { display: block; }
}
@media (max-width: 560px) {
  :root { --hh: 64px; }
  .hd__cta { display: none; }
  .burger { margin-left: auto; }
  .hd__logo img { height: 24px; }
}

/* ---------- Reveal ---------- */
.js .rv { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js .rv.is-in { opacity: 1; transform: none; }
.js .rvf .fig__img, .js .rvf > svg { clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--ease); transition-delay: calc(var(--d, 0) * 110ms); }
.js .rvf.is-in .fig__img, .js .rvf.is-in > svg { clip-path: inset(0 0 0 0); }
.js .rvf figcaption { opacity: 0; transition: opacity .8s .5s; }
.js .rvf.is-in figcaption { opacity: 1; }
.rule { display: block; height: 1px; background: var(--ink); transform-origin: left; }
.js .rule { transform: scaleX(0); transition: transform 1.4s var(--ease); }
.js .rule.is-in { transform: none; }

/* ---------- Figures (duotone, colour on hover) ---------- */
.fig { position: relative; display: block; }
.fig__img { position: relative; display: block; overflow: hidden; aspect-ratio: var(--ar, 4/3); background: var(--blue); }
.fig__img img, .fig__img video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.06) brightness(1.04); transition: filter .7s var(--ease), transform 1.4s var(--ease); }
.fig__img::after { content: ""; position: absolute; inset: 0; background: var(--blue); mix-blend-mode: screen; opacity: .9; transition: opacity .7s var(--ease); pointer-events: none; }
.fig figcaption { display: flex; gap: 14px; padding-top: 10px; font-family: var(--m); font-size: 11.5px; line-height: 1.45; color: var(--muted); text-transform: uppercase; }
.fig figcaption b { font-weight: 500; color: var(--ink); white-space: nowrap; }
.fig::before { /* registration mark */
  content: ""; position: absolute; z-index: 2; left: -6px; top: -6px; width: 13px; height: 13px; pointer-events: none;
  background: linear-gradient(var(--ink), var(--ink)) 6px 0 / 1px 13px no-repeat, linear-gradient(var(--ink), var(--ink)) 0 6px / 13px 1px no-repeat;
}
@media (hover: hover) {
  .fig:hover .fig__img img, .fig:hover .fig__img video, a:hover .fig__img img { filter: none; transform: scale(1.025); }
  .fig:hover .fig__img::after, a:hover .fig__img::after { opacity: 0; }
}
.fig--color .fig__img img, .fig--color .fig__img video { filter: none; }
.fig--color .fig__img::after { opacity: 0; }

/* ---------- Sections ---------- */
.sec { padding: var(--sec) 0; position: relative; }
.sec--t0 { padding-top: 0; }
.sec__head { row-gap: 0; margin-bottom: clamp(44px, 5vw, 80px); align-items: start; }
.sec__head .rule { grid-column: 1 / -1; margin-bottom: 16px; }
.sec__idx { grid-column: 1 / 4; display: flex; gap: 14px; align-items: baseline; color: var(--muted); }
.sec__idx b { color: var(--red); font-weight: 500; }
.sec__title { grid-column: 4 / 12; }
.sec__lead { grid-column: 4 / 10; margin-top: 24px; }
.sec__foot { margin-top: clamp(40px, 4vw, 64px); display: flex; justify-content: flex-start; }
.sec--blue { background: var(--blue); color: #fff; --col: rgba(255,255,255,.06); }
.sec--blue .rule { background: rgba(255,255,255,.7); }
.sec--blue .sec__idx { color: rgba(255,255,255,.66); }
.sec--blue .sec__idx b { color: #fff; }
.sec--blue .lead { color: rgba(255,255,255,.8); }
.sec--blue .wrap > *:not(.lines) { position: relative; z-index: 1; }
.sec--white { background: var(--white); }

/* ---------- Hero (home) ---------- */
.hero { padding: clamp(24px, 3vw, 44px) 0 clamp(72px, 8vw, 120px); }
.meta { border-top: 1px solid var(--ink); padding-top: 12px; row-gap: 12px; }
.meta > div { grid-column: span 3; }
.meta dt { color: var(--muted); }
.meta dd { color: var(--ink); }
.hero__title { margin-top: clamp(48px, 7.5vw, 120px); }
.display .ln { display: block; overflow: hidden; padding-bottom: .07em; margin-bottom: -.07em; }
.display .ln > span { display: block; }
.js .display .ln > span { transform: translateY(104%); transition: transform 1.2s var(--ease); }
.js .display .ln:nth-child(2) > span { transition-delay: .1s; }
.js .display .ln:nth-child(3) > span { transition-delay: .2s; }
.is-ready .display .ln > span { transform: none !important; }
.hero__sub { margin-top: clamp(36px, 4vw, 64px); align-items: end; row-gap: 32px; }
.hero__list { grid-column: 1 / 5; border-top: 1px solid var(--line); }
.hero__list li { display: flex; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.hero__list b { color: var(--red); font-weight: 500; width: 12px; }
.hero__copy { grid-column: 7 / 13; }
.hero__copy .lead { max-width: 34em; color: var(--ink); }
.hero__copy .acts { margin-top: 28px; }
.hero__fig { margin-top: clamp(56px, 6vw, 96px); row-gap: 40px; align-items: start; }
.fig--hero { grid-column: 1 / 9; }
.hero__video { opacity: 0; transition: opacity 1s, filter .7s var(--ease) !important; }
.hero__video.is-playing { opacity: 1; }
.sheet { grid-column: 9 / 13; }

/* spec sheet / tables of rows */
.sheet, .spec { border-top: 2px solid var(--ink); }
.sheet__h, .spec__h { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--ink); color: var(--muted); }
.row { display: grid; grid-template-columns: minmax(100px, 34%) 1fr; gap: 16px; padding: 13px 8px; margin: 0 -8px; border-bottom: 1px solid var(--line); transition: background .25s; position: relative; }
.row dt { font-family: var(--m); font-size: 12px; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.row dt small { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; opacity: .85; }
.row dd { font-size: 16px; line-height: 1.45; }
.row::before { content: ""; position: absolute; left: 0; top: -1px; bottom: -1px; width: 2px; background: var(--red); transform: scaleY(0); transition: transform .3s var(--ease); }
@media (hover: hover) { .row:hover { background: var(--tint); } .row:hover::before { transform: scaleY(1); } .row:hover dt { color: var(--ink); } }
.sec--blue .row { border-color: rgba(255,255,255,.18); }
.sec--blue .row dt { color: rgba(255,255,255,.62); }
@media (hover: hover) { .sec--blue .row:hover { background: rgba(255,255,255,.06); } .sec--blue .row:hover dt { color: #fff; } }

/* ---------- Statement / facts ---------- */
.statement { grid-column: 4 / 13; font-size: clamp(26px, 3.3vw, 50px); font-weight: 500; letter-spacing: -.032em; line-height: 1.1; text-wrap: balance; }
.statement span { color: var(--muted); }
.facts { margin-top: clamp(56px, 6vw, 96px); row-gap: 28px; }
.facts > div { grid-column: span 3; border-top: 1px solid var(--ink); padding-top: 14px; }
.facts dt { color: var(--red); margin-bottom: 10px; }
.facts dd { font-size: 17px; line-height: 1.4; max-width: 18em; }

/* ---------- Plant ---------- */
.plant { row-gap: 40px; align-items: start; }
.plant__main { grid-column: 1 / 8; }
.plant__spec { grid-column: 8 / 13; }
.strip { margin-top: clamp(40px, 4vw, 64px); row-gap: 32px; }
.strip > .fig { grid-column: span 4; }

/* ---------- Services list ---------- */
.svcs { border-top: 1px solid var(--ink); }
.svc {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gut);
  padding: 22px 0; border-bottom: 1px solid var(--line); align-items: start; position: relative;
  transition: background .3s;
}
.svc::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.svc__n { grid-column: 1 / 2; color: var(--red); padding-top: 8px; }
.svc__t { grid-column: 2 / 6; font-size: clamp(24px, 2.4vw, 36px); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; }
.svc__img { grid-column: 6 / 8; }
.svc__img::before { display: none; }
.svc__d { grid-column: 8 / 12; color: var(--ink-2); font-size: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tags i { font-style: normal; border: 1px solid var(--line-2); padding: 3px 8px; font-size: 11px; color: var(--ink-2); }
.svc__go { grid-column: 12 / 13; justify-self: end; width: 44px; height: 44px; border: 1px solid var(--ink); display: grid; place-items: center; transition: background .3s, color .3s, border-color .3s; }
.svc__go svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
@media (hover: hover) {
  .svc:hover::before { transform: scaleX(1); }
  .svc:hover .svc__go { background: var(--red); border-color: var(--red); color: #fff; }
  .svc:hover .svc__go svg { transform: translateX(3px); }
  .svc:hover .svc__t { color: var(--blue); }
}

/* ---------- Three lines ---------- */
.lines3 { row-gap: 48px; }
.line3 { grid-column: span 4; }
.line3 h3 { margin-top: 22px; font-size: clamp(24px, 2.2vw, 32px); font-weight: 600; letter-spacing: -.03em; }
.list { margin-top: 14px; border-top: 1px solid var(--ink); }
.list li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 16px; display: flex; gap: 12px; }
.list li::before { content: "—"; color: var(--red); font-family: var(--m); font-size: 13px; padding-top: 2px; }

/* ---------- Flow diagram ---------- */
.flow { --node: 14px; position: relative; }
.flow__top { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); color: var(--muted); }
.flow__top b { color: var(--red); font-weight: 500; }
.flow__legend { display: inline-flex; align-items: center; gap: 8px; }
.flow__legend i { width: 10px; height: 10px; background: var(--red); display: inline-block; }
.flow__zones { display: grid; grid-template-columns: repeat(6, 1fr); margin-top: 28px; color: var(--muted); }
.flow__zones span { position: relative; padding: 0 14px 10px 0; }
.flow__zones span::after { content: ""; position: absolute; left: 0; right: 14px; bottom: 0; height: 6px; border: 1px solid var(--line-2); border-bottom: 0; }
.flow__zones .z2 { grid-column: 2 / 6; color: var(--blue); }
.flow__zones .z2::after { border-color: var(--blue); }
.flow__steps { display: grid; grid-template-columns: repeat(6, 1fr); position: relative; margin-top: 18px; counter-reset: s; }
.flow__steps::before { /* main line */
  content: ""; position: absolute; left: calc(var(--node) / 2); right: 0; top: calc(var(--node) / 2); height: 1px; background: var(--ink);
  transform-origin: left; transform: scaleX(var(--fp, 1)); transition: transform 2.2s cubic-bezier(.5, 0, .2, 1);
}
.flow__steps::after { /* arrow head */
  content: ""; position: absolute; right: 0; top: calc(var(--node) / 2 - 4px); border: 4px solid transparent; border-left: 7px solid var(--ink); border-right: 0;
}
.fstep { position: relative; padding-right: 18px; }
.fstep__node { display: block; width: var(--node); height: var(--node); border: 1px solid var(--ink); background: var(--paper); position: relative; z-index: 1; transition: background .3s, border-color .3s, transform .3s; }
.fstep.is-on .fstep__node { background: var(--red); border-color: var(--red); }
.fstep__n { display: block; margin-top: 22px; color: var(--red); }
.fstep__n em { font-style: normal; color: var(--muted); display: none; }
.fstep h3 { margin-top: 8px; font-size: clamp(19px, 1.6vw, 24px); font-weight: 600; letter-spacing: -.025em; line-height: 1.1; }
.fstep p { margin-top: 10px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.flow__loop { margin: 28px 0 0 calc(var(--node) / 2); width: calc(100% * 5 / 6); height: 46px; border: 1px dashed var(--line-2); border-top: 0; position: relative; }
.flow__loop::before { content: ""; position: absolute; left: -5px; top: -2px; border: 4.5px solid transparent; border-bottom: 7px solid var(--line-2); border-top: 0; }
.flow__loop span { position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); background: var(--paper); padding: 0 12px; color: var(--muted); white-space: nowrap; font-size: 11px; }
.js .flow:not(.is-in) .flow__steps { --fp: 0; }

/* ---------- Certs ---------- */
.certs { row-gap: 40px; }
.cert { grid-column: span 4; border-top: 2px solid currentColor; padding-top: 16px; }
.cert__std { font-size: 13px; color: inherit; opacity: .78; }
.cert h3 { font-size: clamp(34px, 3.8vw, 56px); font-weight: 600; letter-spacing: -.045em; line-height: 1; margin: 18px 0 26px; }
.cert p.cert__txt { font-size: 16px; line-height: 1.5; margin-bottom: 22px; }
.sec--blue .cert p.cert__txt { color: rgba(255,255,255,.82); }

/* ---------- Territory / map ---------- */
.terr { row-gap: 40px; align-items: start; }
.terr__sites { grid-column: 1 / 6; }
.map { grid-column: 7 / 13; }
.map > svg { width: 100%; height: auto; overflow: visible; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { display: inline-block; }
.lg-hub { width: 10px; height: 10px; background: var(--red); }
.lg-city { width: 9px; height: 9px; border: 1.5px solid var(--blue); border-radius: 50%; }
.lg-route { width: 22px; height: 0; border-top: 1px solid var(--blue); }
#map .px { fill: var(--blue); opacity: .2; }
#map .px.is-near { opacity: .5; }
#map .grat { stroke: var(--line-2); stroke-width: .7; stroke-dasharray: 2 4; fill: none; }
#map .grat-t { font-family: var(--m); font-size: 10px; fill: var(--muted); }
#map .route { fill: none; stroke: var(--blue); stroke-width: 1; opacity: .55; }
#map .city circle { fill: var(--paper); stroke: var(--blue); stroke-width: 1.5; }
#map .city text { font-family: var(--f); font-size: 13px; font-weight: 500; fill: var(--ink-2); }
#map .hub rect.core { fill: var(--red); }
#map .hub line { stroke: var(--red); stroke-width: 1; }
#map .hub .ring { fill: none; stroke: var(--red); stroke-width: 1; transform-box: fill-box; transform-origin: center; }
#map .hub text { font-family: var(--f); font-size: 16px; font-weight: 600; fill: var(--ink); letter-spacing: -.02em; }
#map .hub text.sub { font-family: var(--m); font-size: 10px; font-weight: 400; fill: var(--red); letter-spacing: .04em; }
#map .city text, #map .hub text { paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round; }
#map .sea { font-family: var(--m); font-size: 10.5px; letter-spacing: .32em; fill: var(--muted); }
.js #map .route { stroke-dashoffset: 400; stroke-dasharray: 400; transition: stroke-dashoffset 2.4s var(--ease); }
.js .map.is-in #map .route { stroke-dashoffset: 0; }
@keyframes ring { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.8); opacity: 0; } }
.map.is-in #map .hub .ring { animation: ring 2.6s var(--ease) infinite; }

/* ---------- CTA band ---------- */
.cta { background: var(--blue); color: #fff; padding: clamp(80px, 9vw, 140px) 0; --col: rgba(255,255,255,.06); position: relative; z-index: 1; }
.cta__in { position: relative; z-index: 1; row-gap: 0; }
.cta .sec__idx { color: rgba(255,255,255,.66); grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.5); }
.cta .sec__idx b { color: #fff; }
.cta__t { grid-column: 1 / 10; margin-top: clamp(40px, 5vw, 72px); font-size: clamp(34px, 5.4vw, 84px); letter-spacing: -.045em; line-height: .98; }
.cta__p { grid-column: 1 / 7; margin-top: 26px; font-size: clamp(17px, 1.4vw, 20px); color: rgba(255,255,255,.8); }
.cta__acts { grid-column: 1 / -1; margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer ---------- */
.ft { background: var(--paper); border-top: 1px solid var(--line); padding: clamp(64px, 7vw, 104px) 0 0; }
.ft__top { align-items: end; row-gap: 28px; padding-bottom: clamp(48px, 5vw, 72px); }
.ft__big { grid-column: 1 / 9; font-size: clamp(32px, 4.6vw, 70px); font-weight: 600; letter-spacing: -.045em; line-height: 1; }
.ft__big a:hover { color: var(--blue); }
.ft__acts { grid-column: 9 / 13; display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.ft__grid { border-top: 2px solid var(--ink); padding-top: 22px; row-gap: 36px; padding-bottom: 56px; }
.ft__brand { grid-column: 1 / 4; }
.ft__brand img { width: 170px; height: auto; }
.ft__brand p { margin-top: 18px; color: var(--muted); font-size: 15px; max-width: 22em; }
.ft__col { grid-column: span 2; font-size: 15px; }
.ft__col:last-child { grid-column: span 3; }
.ft__col h2 { color: var(--muted); margin-bottom: 12px; }
.ft__col li { padding: 5px 0; line-height: 1.45; overflow-wrap: anywhere; }
.ft__col a:hover { color: var(--red); }
.ft__col a[aria-current] { color: var(--red); }
.ft__k { display: block; font-family: var(--m); font-size: 11px; text-transform: uppercase; color: var(--muted); }
.ft__bottom { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; border-top: 1px solid var(--line); padding: 18px 0 26px; color: var(--muted); font-size: 11.5px; }
.ft__bottom a:hover { color: var(--red); }
.ft__meta { display: inline-flex; gap: 18px; align-items: center; }
.ft__meta a { color: var(--ink); border-bottom: 1px solid currentColor; }
.ft__grid-btn { font-family: var(--m); font-size: 11.5px; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.ft__grid-btn::before { content: ""; width: 11px; height: 11px; border: 1px solid currentColor; background: linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat; }
.ft__grid-btn[aria-pressed="true"] { color: var(--red); }

/* ---------- Mobile call bar ---------- */
.callbar { display: none; }
@media (max-width: 760px) {
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 58;
    border-top: 1px solid var(--ink); background: var(--paper); padding-bottom: env(safe-area-inset-bottom);
    transform: translateY(110%); transition: transform .45s var(--ease);
  }
  .callbar.is-on { transform: none; }
  .callbar a { display: flex; align-items: center; justify-content: center; gap: 10px; height: 56px; font-weight: 500; font-size: 15px; }
  .callbar a + a { background: var(--red); color: #fff; }
  .callbar svg { width: 18px; height: 18px; }
  .is-menu .callbar { transform: translateY(110%); }
  .ft { padding-bottom: 56px; }
}

/* =========================================================
   INNER PAGES
   ========================================================= */
.phero { padding: clamp(24px, 3vw, 44px) 0 clamp(56px, 6vw, 96px); }
.crumbs { display: flex; gap: 8px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--red); }
.phero .display { font-size: clamp(42px, 8vw, 128px); margin-top: clamp(44px, 6vw, 100px); }
.phero__sub { margin-top: clamp(36px, 4vw, 64px); row-gap: 32px; align-items: start; }
.toc { grid-column: 1 / 5; border-top: 1px solid var(--ink); }
.toc__h { padding: 8px 0; color: var(--muted); border-bottom: 1px solid var(--line); }
.toc a { display: flex; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); transition: color .2s, padding .3s var(--ease); }
.toc a b { color: var(--red); font-weight: 500; }
.toc a:hover { color: var(--blue); padding-left: 6px; }
.phero__copy { grid-column: 7 / 13; }
.phero__copy .lead { color: var(--ink); }
.phero__copy .acts { margin-top: 28px; }
.banner { margin-top: clamp(56px, 6vw, 96px); }

/* Service blocks */
.sblock { row-gap: 32px; padding: clamp(40px, 4vw, 64px) 0; border-top: 1px solid var(--ink); align-items: start; }
.sblock:first-child { border-top: 0; padding-top: 0; }
.sblock__k { grid-column: 1 / 4; color: var(--muted); }
.sblock__k b { color: var(--red); font-weight: 500; margin-right: 10px; }
.sblock__fig { grid-column: 4 / 9; }
.sblock__copy { grid-column: 9 / 13; }
.sblock__copy h3 { font-size: clamp(26px, 2.6vw, 40px); font-weight: 600; letter-spacing: -.035em; line-height: 1.02; }
.sblock__copy > p { margin-top: 18px; color: var(--ink-2); font-size: 16.5px; }
.sblock__copy .spec { margin-top: 26px; }
.sblock__copy .lnk { margin-top: 24px; }
.sblock--rev .sblock__fig { grid-column: 9 / 13; grid-row: 1; }
.sblock--rev .sblock__copy { grid-column: 4 / 9; grid-row: 1; padding-right: clamp(0px, 3vw, 48px); }

/* Data table */
.tbl { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); font-size: 16px; }
.tbl th { text-align: left; font-family: var(--m); font-size: 12px; text-transform: uppercase; font-weight: 400; color: var(--muted); padding: 10px 16px 10px 0; border-bottom: 1px solid var(--ink); }
.tbl td { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.45; }
.tbl td:first-child, .tbl th:first-child { padding-left: 8px; }
.tbl .n { font-family: var(--m); font-size: 12px; color: var(--red); width: 56px; padding-top: 19px; }
.tbl .t { font-weight: 600; font-size: 18px; letter-spacing: -.015em; }
.tbl .k { font-family: var(--m); font-size: 12px; text-transform: uppercase; color: var(--muted); padding-top: 19px; }
.tbl tbody tr { transition: background .25s; }
.tbl a:hover { color: var(--red); }
@media (hover: hover) { .tbl tbody tr:hover { background: var(--tint); } .tbl tbody tr:hover .t { color: var(--blue); } }

/* steps 4 (avvio) */
.steps4 { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); }
.steps4 li { padding: 18px 24px 8px 0; position: relative; }
.steps4 li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.steps4 b { font-family: var(--m); font-weight: 500; font-size: 12px; color: var(--red); display: block; }
.steps4 h3 { margin-top: 36px; font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -.03em; }
.steps4 p { margin-top: 10px; color: var(--ink-2); font-size: 15.5px; }
.steps4 li:not(:last-child)::after { content: ""; position: absolute; right: -5px; top: 20px; width: 9px; height: 9px; border-top: 1px solid var(--ink); border-right: 1px solid var(--ink); transform: rotate(45deg); background: var(--paper); z-index: 1; }

/* FAQ */
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: grid; grid-template-columns: 56px 1fr 32px; gap: 12px; align-items: start; padding: 20px 0 20px 8px; cursor: pointer; font-size: clamp(18px, 1.5vw, 21px); font-weight: 500; letter-spacing: -.015em; line-height: 1.3; transition: background .25s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .mono { color: var(--red); padding-top: 4px; }
.faq summary i { width: 28px; height: 28px; border: 1px solid var(--ink); position: relative; justify-self: end; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1px; background: currentColor; transform: translate(-50%, -50%); transition: transform .3s var(--ease); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary i { background: var(--ink); color: #fff; }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
@media (hover: hover) { .faq summary:hover { background: var(--tint); } }
.faq__a { padding: 0 44px 26px calc(56px + 12px + 8px); color: var(--ink-2); max-width: 54em; }

/* Phases (processo) */
.phases { align-items: start; }
.phases__rail { grid-column: 1 / 4; position: sticky; top: calc(var(--hh) + 24px); }
.rail { border-top: 2px solid var(--ink); padding-top: 14px; }
.rail__n { font-size: clamp(64px, 7vw, 112px); font-weight: 600; letter-spacing: -.06em; line-height: .9; font-variant-numeric: tabular-nums; }
.rail__n small { font-size: .32em; color: var(--muted); letter-spacing: -.02em; margin-left: 6px; }
.rail__t { margin-top: 10px; color: var(--red); }
.rail__bar { margin-top: 22px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.rail__bar i { height: 4px; background: var(--line); transition: background .4s; }
.rail__bar i.is-on { background: var(--red); }
.rail ol { margin-top: 22px; border-top: 1px solid var(--line); }
.rail li a { display: flex; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); color: var(--muted); transition: color .25s; }
.rail li a b { font-weight: 500; }
.rail li.is-on a { color: var(--ink); }
.rail li.is-on a b { color: var(--red); }
.phases__list { grid-column: 4 / 13; }
.phase { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); column-gap: var(--gut); row-gap: 24px; padding: 0 0 clamp(56px, 6vw, 96px); }
.phase + .phase { border-top: 1px solid var(--ink); padding-top: 18px; }
.phase__k { grid-column: 1 / -1; display: flex; justify-content: space-between; color: var(--muted); }
.phase__k b { color: var(--red); font-weight: 500; }
.phase__copy { grid-column: 1 / 5; }
.phase__copy h3 { font-size: clamp(28px, 2.8vw, 42px); font-weight: 600; letter-spacing: -.04em; line-height: 1.02; }
.phase__copy h4 { margin-top: 12px; font-size: 18px; font-weight: 500; color: var(--blue); letter-spacing: -.01em; }
.phase__copy p { margin-top: 14px; color: var(--ink-2); font-size: 16.5px; }
.phase__copy .spec { margin-top: 24px; }
.phase__fig { grid-column: 5 / 10; }

/* Compare */
.cmp__seg { display: none; }
.cmp .tbl col.c1 { width: 22%; }
.cmp .tbl th.s, .cmp .tbl td.s { background: rgba(11, 42, 74, .04); padding-left: 16px; }
.cmp .tbl th.s { color: var(--blue); border-bottom-color: var(--blue); }
.cmp .tbl td.s { color: var(--ink); }
.cmp .tbl td.o { color: var(--muted); }
.cmp .tbl td.s::before, .cmp .tbl td.o::before { font-family: var(--m); display: inline-block; width: 20px; }
.cmp .tbl td.s::before { content: "+"; color: var(--red); }
.cmp .tbl td.o::before { content: "−"; color: var(--muted); }
.cmp .tbl td .lbl { display: none; }

/* Split (protocol/env) */
.split { row-gap: 32px; align-items: start; }
.split + .split { margin-top: clamp(64px, 7vw, 112px); }
.split__fig { grid-column: 1 / 7; }
.split__copy { grid-column: 8 / 13; }
.split__copy .sec__idx { margin-bottom: 18px; }
.split__copy p { margin-top: 18px; color: var(--ink-2); }
.split--rev .split__fig { grid-column: 7 / 13; grid-row: 1; }
.split--rev .split__copy { grid-column: 1 / 6; grid-row: 1; }

/* Box (LOTO) */
.box { border: 1px solid var(--ink); background: var(--white); row-gap: 24px; padding: clamp(24px, 3vw, 44px) 0; }
.box > * { padding: 0 clamp(20px, 2.4vw, 36px); }
.box__k { grid-column: 1 / 4; color: var(--muted); }
.box__k b { color: var(--red); font-weight: 500; display: block; margin-bottom: 6px; }
.box__t { grid-column: 4 / 8; }
.box__t h2 { font-size: clamp(30px, 3.4vw, 50px); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.box__t p { margin-top: 10px; color: var(--blue); font-weight: 500; }
.box__c { grid-column: 8 / 13; font-size: 16px; color: var(--ink-2); }
.box__c p + p { margin-top: 12px; }
.box__c i { color: var(--muted); }

/* Values (azienda) */
.vals { row-gap: 40px; }
.val { grid-column: span 4; border-top: 2px solid var(--ink); padding-top: 14px; }
.val b { font-family: var(--m); font-weight: 500; font-size: 12px; color: var(--red); }
.val h3 { font-size: clamp(34px, 3.8vw, 56px); font-weight: 600; letter-spacing: -.045em; line-height: 1; margin: 30px 0 18px; }
.val p { color: var(--ink-2); font-size: 16px; max-width: 26em; }

/* Gallery (contact sheet) */
.gal { row-gap: 36px; }
.gal .fig { grid-column: span 3; }

/* Places */
.places { row-gap: 40px; }
.place { grid-column: span 4; border-top: 2px solid var(--ink); padding-top: 14px; display: flex; flex-direction: column; gap: 0; }
.place .mono { color: var(--muted); display: flex; justify-content: space-between; }
.place .mono b { color: var(--red); font-weight: 500; }
.place h3 { font-size: clamp(30px, 3vw, 44px); font-weight: 600; letter-spacing: -.04em; line-height: 1; margin: 28px 0 14px; }
.place p { color: var(--ink-2); font-size: 16px; }
.place .lnk { margin-top: 22px; font-size: 15px; }

/* ---------- Quote wizard ---------- */
.quote { row-gap: 48px; align-items: start; }
.quote__side { grid-column: 1 / 5; }
.quote__side .lead { margin-top: 0; }
.quote__side .spec { margin-top: 32px; }
.quote__side .row dd a:hover { color: var(--red); }
.wiz { grid-column: 6 / 13; background: var(--white); border: 1px solid var(--ink); }
.wiz__tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--ink); }
.wiz__tabs li { padding: 12px 14px 12px; font-family: var(--m); font-size: 11.5px; text-transform: uppercase; color: var(--muted); position: relative; line-height: 1.35; }
.wiz__tabs li + li { border-left: 1px solid var(--line); }
.wiz__tabs li b { display: block; font-weight: 500; color: var(--ink-2); }
.wiz__tabs li::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.wiz__tabs li.is-on::after, .wiz__tabs li.is-done::after { transform: scaleX(1); }
.wiz__tabs li.is-done::after { background: var(--ink); }
.wiz__tabs li.is-on { color: var(--ink); }
.wiz__tabs li.is-on b { color: var(--red); }
.wiz form { padding: clamp(22px, 3vw, 40px); }
.wstep { border: 0; padding: 0; margin: 0; min-width: 0; display: none; }
.wstep.is-on { display: block; animation: wIn .5s var(--ease); }
@keyframes wIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.wstep legend { padding: 0; font-size: clamp(24px, 2.4vw, 34px); font-weight: 600; letter-spacing: -.035em; line-height: 1.1; }
.wstep .hint { margin-top: 8px; color: var(--muted); font-size: 15px; }
.opts { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); }
.opt { position: relative; border-bottom: 1px solid var(--line); }
.opt:nth-child(odd) { border-right: 1px solid var(--line); }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt label { display: flex; align-items: center; gap: 14px; padding: 16px 14px; cursor: pointer; font-weight: 500; font-size: 16px; transition: background .2s, color .2s; min-height: 58px; }
.opt label .mono { color: var(--muted); width: 14px; }
.opt label::after { content: ""; margin-left: auto; width: 18px; height: 18px; border: 1px solid var(--ink); flex: none; transition: background .2s, border-color .2s; }
.opt input[type="radio"] + label::after { border-radius: 50%; }
.opt label:hover { background: var(--tint); }
.opt input:checked + label { background: var(--blue); color: #fff; }
.opt input:checked + label .mono { color: rgba(255,255,255,.7); }
.opt input:checked + label::after { background: var(--red); border-color: #fff; box-shadow: inset 0 0 0 3px var(--blue); }
.opt input:focus-visible + label { outline: 2px solid var(--red); outline-offset: -2px; }
.range { margin-top: 24px; border-top: 1px solid var(--ink); padding-top: 18px; }
.range__val { display: flex; align-items: baseline; gap: 10px; }
.range__val b { font-size: clamp(48px, 5vw, 72px); font-weight: 600; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.range__val small { font-family: var(--m); font-size: 12px; text-transform: uppercase; color: var(--muted); }
.range input { width: 100%; margin: 22px 0 6px; -webkit-appearance: none; appearance: none; background: transparent; height: 28px; cursor: pointer; }
.range input::-webkit-slider-runnable-track { height: 1px; background: var(--ink); }
.range input::-moz-range-track { height: 1px; background: var(--ink); }
.range input::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; background: var(--red); border: 0; margin-top: -11px; }
.range input::-moz-range-thumb { width: 22px; height: 22px; background: var(--red); border: 0; border-radius: 0; }
.range__scale { display: flex; justify-content: space-between; font-family: var(--m); font-size: 11px; color: var(--muted); position: relative; padding-top: 8px; }
.range__scale::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px 10%); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin-top: 26px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--m); font-size: 11.5px; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--paper); border: 0; border-bottom: 1px solid var(--ink);
  padding: 12px 12px; border-radius: 0; width: 100%; min-width: 0; transition: background .2s, border-color .2s;
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: var(--tint); border-color: var(--red); }
.field [aria-invalid="true"] { border-color: var(--red); background: #FDF0F1; }
.consent { display: flex; gap: 12px; margin-top: 20px; font-size: 14.5px; color: var(--ink-2); align-items: flex-start; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--red); flex: none; }
.consent a { text-decoration: underline; }
.err { min-height: 22px; margin-top: 18px; color: var(--red-dk); font-size: 14.5px; font-weight: 500; }
.wiz__nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--line); }
.wiz__back { font-family: var(--m); font-size: 12px; text-transform: uppercase; color: var(--muted); padding: 12px 0; }
.wiz__back:hover { color: var(--ink); }
.wiz__next { margin-left: auto; }
.wiz__done { text-align: left; padding: 8px 0; }
.wiz__done .mono { color: var(--red); }
.wiz__done h3 { margin-top: 18px; font-size: clamp(28px, 3vw, 40px); font-weight: 600; letter-spacing: -.04em; line-height: 1.05; }
.wiz__done p { margin-top: 14px; color: var(--ink-2); max-width: 30em; }
.wiz__done p a { text-decoration: underline; }
.wiz__done .spec { margin-top: 24px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .sec__idx { grid-column: 1 / -1; margin-bottom: 18px; }
  .sec__title { grid-column: 1 / 12; }
  .sec__lead { grid-column: 1 / 10; }
  .statement { grid-column: 1 / -1; }
  .facts > div { grid-column: span 6; }
  .fig--hero { grid-column: 1 / -1; }
  .sheet { grid-column: 1 / 9; }
  .hero__list { grid-column: 1 / 6; }
  .plant__main { grid-column: 1 / -1; }
  .plant__spec { grid-column: 1 / 10; }
  .svc__n { grid-column: 1 / 2; }
  .svc__t { grid-column: 2 / 7; }
  .svc__img { display: none; }
  .svc__d { grid-column: 7 / 12; }
  .certs .cert { grid-column: span 6; }
  .terr__sites { grid-column: 1 / -1; }
  .map { grid-column: 1 / 11; }
  .cta__t { grid-column: 1 / -1; }
  .cta__p { grid-column: 1 / 10; }
  .ft__big { grid-column: 1 / -1; }
  .ft__acts { grid-column: 1 / -1; justify-content: flex-start; }
  .ft__brand { grid-column: 1 / -1; }
  .ft__col { grid-column: span 3; }
  .ft__col:last-child { grid-column: span 3; }
  .toc { grid-column: 1 / 6; }
  .sblock__k { grid-column: 1 / -1; }
  .sblock__fig, .sblock--rev .sblock__fig { grid-column: 1 / 7; grid-row: auto; }
  .sblock__copy, .sblock--rev .sblock__copy { grid-column: 7 / 13; grid-row: auto; padding-right: 0; }
  .sblock--rev .sblock__fig { grid-row: 2; grid-column: 7 / 13; }
  .sblock--rev .sblock__copy { grid-row: 2; grid-column: 1 / 7; }
  .phases__rail { grid-column: 1 / -1; position: relative; top: 0; margin-bottom: 48px; }
  .phases__list { grid-column: 1 / -1; }
  .phase { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .phase__copy { grid-column: 1 / 7; }
  .phase__fig { grid-column: 7 / 13; }
  .quote__side { grid-column: 1 / -1; }
  .quote__side .lead { max-width: 36em; }
  .wiz { grid-column: 1 / -1; }
  .box__k { grid-column: 1 / -1; }
  .box__t { grid-column: 1 / 6; }
  .box__c { grid-column: 6 / 13; }
  .gal .fig { grid-column: span 4; }
  .vals .val, .places .place { grid-column: span 6; }
}

@media (max-width: 860px) {
  .flow__zones, .flow__loop { display: none; }
  .flow__steps { grid-template-columns: 1fr; margin-top: 28px; }
  .flow__steps::before { left: calc(var(--node) / 2); right: auto; top: 0; bottom: 0; width: 1px; height: auto; transform-origin: top; transform: scaleY(var(--fp, 1)); }
  .flow__steps::after { display: none; }
  .fstep { padding: 0 0 28px 40px; }
  .fstep:last-child { padding-bottom: 0; }
  .fstep__node { position: absolute; left: 0; top: 2px; }
  .fstep__n { margin-top: 0; }
  .fstep__n em { display: inline; margin-left: 8px; }
  .fstep p { max-width: 30em; }
  .steps4 { grid-template-columns: 1fr 1fr; }
  .steps4 li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps4 li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps4 li:nth-child(2)::after { display: none; }
  .steps4 h3 { margin-top: 20px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .g { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cols__in, .lines { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cols__in i:nth-child(n+5), .lines i:nth-child(n+5) { display: none; }
  .g > * { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .meta > div { grid-column: span 2 !important; }
  .meta > div:nth-child(n+3) { display: none; }
  .facts > div { grid-column: span 2 !important; }
  .sec__idx { margin-bottom: 14px; }
  .hero__title { margin-top: 44px; }
  .hero__sub { margin-top: 28px; }
  .hero__list { order: 2; }
  .hero__copy .acts .btn { flex: 1 1 100%; justify-content: space-between; }
  .phero__copy .acts .btn { flex: 1 1 100%; justify-content: space-between; }
  .row { grid-template-columns: 1fr; gap: 4px; padding: 12px 8px; }
  .svc { grid-template-columns: 40px 1fr 44px; column-gap: 12px; row-gap: 10px; }
  .svc__n { grid-column: 1; }
  .svc__t { grid-column: 2; }
  .svc__go { grid-column: 3; grid-row: 1; width: 40px; height: 40px; }
  .svc__d { grid-column: 2 / 4; font-size: 15.5px; }
  .lines3 .line3 { grid-column: 1 / -1 !important; }
  .certs .cert, .vals .val, .places .place { grid-column: 1 / -1 !important; }
  .gal .fig { grid-column: span 2 !important; }
  .strip > .fig { grid-column: span 2 !important; }
  .strip > .fig:first-child { grid-column: 1 / -1 !important; }
  .phase { grid-template-columns: 1fr; }
  .phase > * { grid-column: 1 / -1 !important; }
  .phase__k { flex-wrap: wrap; gap: 6px 16px; }
  .rail__n { font-size: 64px; }
  .rail ol { display: none; }
  .phases__rail { margin-bottom: 36px; }
  .ft__col, .ft__col:last-child { grid-column: 1 / -1 !important; }
  .ft__bottom { flex-direction: column; }
  .ft__meta { justify-content: space-between; }
  .flow__top { flex-direction: column; gap: 4px; }
  .steps4 { grid-template-columns: 1fr; }
  .steps4 li, .steps4 li + li { padding: 16px 0 18px; border-left: 0; border-top: 1px solid var(--line); }
  .steps4 li:first-child { border-top: 0; }
  .steps4 li::after { display: none; }
  .steps4 h3 { margin-top: 10px; }
  .faq summary { grid-template-columns: 34px 1fr 28px; padding-left: 0; font-size: 17px; }
  .faq__a { padding: 0 0 22px 46px; font-size: 15.5px; }
  .opts { grid-template-columns: 1fr; }
  .opt:nth-child(odd) { border-right: 0; }
  .fields { grid-template-columns: 1fr; }
  .wiz__tabs li { padding: 10px 8px; font-size: 10px; }
  .wiz__tabs li span { display: none; }
  .wiz__nav .btn { flex: 1; justify-content: space-between; }
  #map .city text { font-size: 20px; }
  #map .city.minor text { display: none; }
  #map .hub text { font-size: 24px; }
  #map .hub text.sub { font-size: 15px; transform: translateY(-8px); }
  #map .grat-t { font-size: 15px; }
  #map .sea { font-size: 15px; }
  .box > * { padding: 0 18px; }
  .cta__acts .btn { flex: 1 1 100%; justify-content: space-between; }
  .ft__acts .btn { flex: 1 1 100%; justify-content: space-between; }

  /* tables -> stacked */
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl thead { display: none; }
  .tbl tr { border-bottom: 1px solid var(--line); padding: 14px 0; }
  .tbl td { border: 0; padding: 3px 0 !important; }
  .tbl td:first-child { padding-left: 0; }
  .tbl .n, .tbl .k { padding-top: 0; }
  .tbl td[data-l]::before { content: attr(data-l); display: block; font-family: var(--m); font-size: 11px; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
  .cmp__seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ink); margin-bottom: 20px; }
  .cmp__seg button { padding: 12px 8px; font-size: 14px; font-weight: 500; }
  .cmp__seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
  .cmp[data-mode="salus"] td.o, .cmp[data-mode="own"] td.s { display: none; }
  .cmp .tbl td.s, .cmp .tbl td.o { background: none; padding-left: 0 !important; }
  .cmp .tbl td.s::before, .cmp .tbl td.o::before { display: none; }
}

@media (max-width: 400px) {
  .display { letter-spacing: -.045em; }
  .meta > div { grid-column: 1 / -1 !important; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js .rv, .js .rvf .fig__img, .js .rvf > svg, .js .rvf figcaption { opacity: 1; transform: none; clip-path: none; }
  .js .rule { transform: none; }
  .js .display .ln > span { transform: none; }
  .js .flow:not(.is-in) .flow__steps { --fp: 1; }
}
