/* GSVDESIGN — Proposta 2 «Dossier», grafica sobria sul linguaggio di beta.gsvdesign.com, crimson istituzionale #971B2F */
:root {
  --bg: #f5f3f0;
  --surface: #ece9e4;
  --white: #ffffff;
  --ink: #1a1a1a;
  --ink-2: #5c5c57;
  --line: rgba(26, 26, 26, .14);
  --accent: #971b2f;
  --accent-text: #971b2f;
  --accent-soft: #f6dde1;
  --rosa: #c9a0a8;
  --on-dark: rgba(245, 243, 240, .82);
  --on-dark-label: #c9a0a8;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: var(--sans);
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --serif: var(--display);
  --maxw: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 92px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; font-family: var(--sans); font-size: 17px; font-weight: 400; line-height: 1.6;
  color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: #fff; }
p { max-width: 66ch; }
dd { margin: 0; }
address { font-style: normal; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ink); color: #fff; padding: 12px 20px; }
.skip:focus { left: 16px; top: 10px; color: #fff; }

/* ---------- barra anteprima ---------- */
.preview-bar {
  background: var(--accent); color: #fff; font-size: 13px; line-height: 1.4;
  padding: 8px var(--gutter); display: flex; flex-wrap: wrap; gap: 4px 20px; justify-content: center; text-align: center;
}
.preview-bar a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.preview-bar a:hover { color: var(--accent-soft); }

/* ---------- testata ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line);
}
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { line-height: 0; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  font-size: 14px; font-weight: 500; color: var(--ink);
  box-shadow: inset 0 -2px 0 transparent; transition: color .2s ease, box-shadow .2s ease;
}
.nav a:hover { color: var(--accent-text); }
.nav a[aria-current="page"] { color: var(--accent-text); box-shadow: inset 0 -2px 0 var(--accent); }
.nav .nav-cta { margin-left: 14px; padding: 0 18px; background: var(--accent); color: #fff; }
.nav .nav-cta:hover { background: var(--ink); color: #fff; }
.nav-toggle { display: none; }

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0 11px; background: none; border: 1px solid var(--line); cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 4px var(--gutter) 20px;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav-open .nav { display: flex; }
  .nav a { padding: 0; min-height: 52px; border-bottom: 1px solid var(--line); font-size: 16px; box-shadow: none; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); padding-left: 14px; }
  .nav .nav-cta { margin: 16px 0 0; justify-content: center; border: 0; }
}

/* ---------- tipografia ---------- */
.eyebrow {
  font-family: var(--mono); font-size: 12px; font-weight: 500; text-transform: uppercase;
  letter-spacing: .08em; color: var(--accent-text); margin: 0 0 16px;
}
.eyebrow--light { color: var(--on-dark-label); }
.eyebrow--muted { color: var(--ink-2); }
.display {
  font-weight: 600; font-size: clamp(36px, 5.2vw, 66px); line-height: 1.04;
  letter-spacing: -.03em; margin: 0; max-width: 20ch; text-wrap: balance;
}
.display--home { max-width: none; }
.display em, .title em { font-style: normal; color: var(--accent-text); }
.title {
  font-weight: 600; font-size: clamp(26px, 3vw, 40px); line-height: 1.1;
  letter-spacing: -.022em; margin: 0 0 24px; max-width: 24ch; text-wrap: balance;
}
.title--light { color: #fff; }
.title--sm { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.16; }
h3 { font-weight: 600; line-height: 1.22; letter-spacing: -.01em; margin: 0 0 10px; }
.h-md { font-size: 22px; } .h-sm { font-size: 20px; } .h-xs { font-size: 18px; }
.lead { font-size: clamp(18px, 1.6vw, 21px); font-weight: 300; line-height: 1.55; margin: 0 0 24px; max-width: 60ch; }
.meta, .note { font-size: 14px; color: var(--ink-2); }

/* ---------- sezioni e griglie ---------- */
.sec { padding: clamp(64px, 9vw, 120px) 0; }
.sec--tight { padding: clamp(56px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); }
.sec--stone { background: var(--surface); }
.sec--white { background: var(--bg); }
.sec--graphite { background: var(--ink); color: var(--on-dark); }
.sec--graphite p, .sec--graphite li, .sec--graphite dd { color: var(--on-dark); }
.sec--graphite dt { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--on-dark-label); margin-bottom: 8px; }
.grid { display: grid; gap: 32px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px 64px; }
.grid--cards { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 48px 32px; }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px 48px; }

/* ---------- pulsanti e link ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px;
  font-size: 15px; font-weight: 500; background: var(--accent); color: #fff; border: 1px solid var(--accent);
  cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--accent-text); border-color: #fff; }
.btn--light:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--off { background: transparent; color: var(--ink-2); border-color: var(--line); cursor: default; }
.link-more {
  display: inline-block; padding: 10px 0; font-size: 15px; font-weight: 500; color: var(--accent-text);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px;
}
.link-more::after { content: " →"; }
.link-more:hover { color: var(--ink); }
.link-plain { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }

/* ---------- citazioni ---------- */
.pull { margin: 32px 0 0; border-left: 2px solid var(--accent); padding-left: 24px; max-width: 56ch; }
.pull blockquote { margin: 0; font-size: 20px; font-weight: 300; font-style: italic; line-height: 1.5; }
.pull figcaption { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-top: 12px; }
.quote-inline { font-size: 19px; font-style: italic; font-weight: 300; line-height: 1.5; margin: 0; max-width: 46ch; border-left: 2px solid var(--accent); padding-left: 20px; }

/* ---------- immagini ---------- */
.band { margin: 0; }
.band img { width: 100%; height: clamp(280px, 42vw, 560px); object-fit: cover; }
.band figcaption { max-width: var(--maxw); margin: 0 auto; padding: 14px var(--gutter) 0; font-size: 14px; color: var(--ink-2); }
.figure { margin: 0; }
.figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.figure figcaption { margin-top: 14px; font-size: 15px; color: var(--ink-2); }
.img-wide { width: 100%; height: clamp(240px, 30vw, 400px); object-fit: cover; margin-top: 48px; }

/* ---------- filetti ---------- */
.rule-top { border-top: 2px solid var(--ink); padding-top: 28px; }
.hair-top { border-top: 1px solid var(--line); padding-top: 24px; }
.hair-top--light { border-top: 1px solid rgba(255, 255, 255, .22); padding-top: 16px; }

/* ---------- indice servizi (pagine interne) ---------- */
.index { border-top: 2px solid var(--ink); }
.index-item { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.index-item:hover { background: var(--surface); color: var(--ink); }
.index-num { font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.index-num--key { color: var(--accent-text); }
.index-name { display: block; font-weight: 600; font-size: 22px; line-height: 1.15; }
.index-tag { display: block; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-text); margin-top: 6px; }
.index-desc { display: block; font-size: 15px; margin: 8px 0 0; max-width: 56ch; color: var(--ink-2); }

/* ---------- schede ---------- */
.card { background: var(--bg); border: 1px solid var(--line); display: flex; flex-direction: column; transition: border-color .2s ease; }
.card:hover { border-color: var(--ink); }
.card > img { width: 100%; aspect-ratio: 16 / 10; height: auto; object-fit: cover; }
.card-body { padding: 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.card-role { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-text); }
.card h3 { font-size: 20px; margin: 0; }
.card p { font-size: 15px; margin: 0; color: var(--ink-2); }
.card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 14px; }
.card dd { color: var(--ink); }
.card dd.code { font-family: var(--mono); font-size: 13px; }
.badge { margin-top: auto; align-self: flex-start; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; padding: 3px 8px; color: var(--accent-text); border: 1px solid var(--accent); }
.badge--done { color: var(--ink-2); border-color: var(--line); }
.tile { background: var(--bg); border: 1px solid var(--line); padding: 28px; }
.tile p { font-size: 15px; }

/* ---------- liste ---------- */
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.list li { font-size: 16px; padding-left: 22px; position: relative; max-width: 62ch; }
.list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 2px; background: var(--accent); }
.list--light li { color: var(--on-dark); }
.list--light li::before { background: var(--on-dark-label); }
.list--plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px 32px; }
.list--plain li { padding: 0; }

/* ---------- pannelli scuri ---------- */
.panel-dark { background: var(--ink); padding: 48px 40px; margin-top: 64px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px 48px; }
.panel-dark p, .panel-dark li { color: var(--on-dark); }
.panel-dark h3 { font-size: 26px; color: #fff; margin: 0; }
.stat { font-weight: 600; font-size: clamp(28px, 3vw, 36px); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 8px; }
.sec--graphite .stat { color: #fff; }
.stat + p { font-size: 14px; margin: 0; }

/* ---------- chiusura pagina ---------- */
.closing { background: var(--accent) !important; color: #fff; }
.closing .wrap { padding-top: clamp(64px, 8vw, 96px); padding-bottom: clamp(64px, 8vw, 96px); display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.closing .title { margin: 0; color: #fff; }
.closing .btn { background: #fff; color: var(--accent-text); border-color: #fff; }
.closing .btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.closing .btn--ghost { background: transparent; color: #fff; border-color: #fff; }

/* ---------- processo informativo ---------- */
.proc { background: var(--ink); color: var(--on-dark); }
.proc-eyebrow { color: var(--on-dark-label); }
.proc-h2 { color: #fff; max-width: 22ch; margin-bottom: 56px; }
.proc-grid { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(300px, 1.05fr); gap: 64px 72px; align-items: start; }
.proc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; border-left: 1px solid rgba(255, 255, 255, .22); }
.proc-step { position: relative; padding-left: 32px; }
.proc-step::before { content: ""; position: absolute; left: -4px; top: 7px; width: 7px; height: 7px; background: var(--accent); }
.proc-num { display: block; font-family: var(--mono); font-size: 12px; color: var(--on-dark-label); margin-bottom: 10px; }
.proc-title { font-size: 21px; color: #fff; margin: 0 0 10px; }
.proc-body { font-size: 16px; color: var(--on-dark); margin: 0; max-width: 46ch; }
.proc-fig { margin: 0; position: sticky; top: 96px; }
.proc-fig img { width: 100%; height: auto; background: #fff; }
.proc-fig figcaption { margin-top: 16px; font-size: 14px; color: #b5b5b1; }
@media (max-width: 860px) { .proc-grid { grid-template-columns: 1fr; } .proc-fig { position: static; } }

/* ---------- contatti / mappa ---------- */
.addr { font-size: 19px; margin: 0 0 16px; }
.map-frame { border: 1px solid var(--line); }
#map.map { width: 100%; height: clamp(320px, 42vw, 460px); background: var(--surface); }
.pin-wrap { background: none; border: 0; }
.pin { display: block; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(151, 27, 47, .22), 0 0 0 1px rgba(255, 255, 255, .9) inset; }
.leaflet-container { font-family: var(--sans); }

/* ---------- piè di pagina ---------- */
.site-footer { background: var(--ink); color: #c8c8c4; }
.site-footer .wrap { padding-top: 64px; padding-bottom: 32px; }
.footer-mark { margin: 0 0 40px; line-height: 0; }
.footer-mark img { height: 64px; width: auto; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px 48px; padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.footer-label { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--on-dark-label); margin: 0 0 12px; }
.footer-cols p { font-size: 15px; margin: 0; color: #c8c8c4; }
.footer-nav { display: flex; flex-direction: column; }
.footer-nav a { font-size: 15px; color: #c8c8c4; padding: 6px 0; }
.footer-nav a:hover { color: #fff; }
.footer-legal { font-size: 13px; margin: 24px 0 0; color: #a9a9a5; max-width: none; }

/* ---------- comparsa progressiva ---------- */
.js-reveal main > section:not(:first-child), .js-reveal [data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity .35s ease-out, transform .35s ease-out; }
.js-reveal main > section.in, .js-reveal [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }


/* ---------- tipografia editoriale (serif per i titoli) ---------- */
.display, .title, h3, .stat, .index-name, .proc-title, .panel-dark h3 { font-family: var(--display); }
.display { font-weight: 400; letter-spacing: -.025em; line-height: 1.02; }
.title { font-weight: 500; letter-spacing: -.02em; }
h3 { font-weight: 500; letter-spacing: -.01em; }
.display em, .title em { font-style: italic; color: var(--accent-text); }
.sec--white { background: #fbfaf8; }
.sec--stone { background: var(--bg); }
.card, .tile { background: #fbfaf8; }

/* ---------- pagina di ingresso (selezione lingua) ---------- */
.entry { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-rows: 1fr auto; }
.entry-main { display: flex; flex-direction: column; justify-content: center; padding: 64px var(--gutter); max-width: var(--maxw); width: 100%; margin: 0 auto; }
.entry-mark { margin: 0 0 40px; line-height: 0; }
.entry-mark img { height: clamp(64px, 9vw, 104px); width: auto; }
.entry-title { font-size: clamp(36px, 6vw, 80px); font-weight: 600; letter-spacing: -.04em; line-height: 1; margin: 0 0 16px; max-width: 16ch; }
.entry-title span { color: var(--accent-text); }
.entry-alt { margin: 0 0 48px; color: var(--ink-2); font-size: 17px; }
.entry-alt span { display: block; }
.langgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.langgrid li + li { border-left: 1px solid var(--line); }
.lang { display: flex; flex-direction: column; gap: 6px; padding: 24px; min-height: 120px; color: var(--ink); border-bottom: 1px solid var(--line); transition: background .2s ease, color .2s ease; }
a.lang:hover { background: var(--accent); color: #fff; }
a.lang:hover .lang-cta { color: #fff; }
.lang-name { font-size: 28px; font-weight: 600; letter-spacing: -.02em; }
.lang-cta { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-text); }
.lang--off { color: var(--ink-2); cursor: default; }
.lang--off .lang-cta { color: var(--ink-2); }
.entry-foot { background: var(--ink); color: #c8c8c4; font-size: 13px; }
.entry-foot .wrap { padding-top: 18px; padding-bottom: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
@media (max-width: 700px) { .langgrid { grid-template-columns: 1fr; } .langgrid li + li { border-left: 0; } .lang { min-height: 0; } }


/* =========================================================
   HOME — Proposta 2 «Dossier»
   ========================================================= */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; background: var(--accent); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.motion [data-split] { visibility: hidden; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.w > span { display: inline-block; }
.clip { overflow: hidden; }
.clip img { width: 100%; height: 100%; object-fit: cover; }
.site-header { transition: box-shadow .3s ease; }
.site-header.is-compact { box-shadow: 0 8px 24px rgba(22, 22, 22, .06); }
.site-header .brand img { transition: height .3s ease; }
.site-header.is-compact .brand img { height: 36px; }

/* apertura */
.d-hero { padding: clamp(40px, 6vw, 80px) 0 0; }
.d-hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 40px 72px; align-items: center; }
.d-h1 { font-family: var(--display); font-weight: 400; font-size: clamp(48px, 7.2vw, 108px); line-height: .98; letter-spacing: -.03em; margin: 0 0 28px; }
.d-h1 em { font-style: italic; color: var(--accent-text); }
.d-hero-media { aspect-ratio: 4 / 5; max-height: 74vh; width: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .d-hero-media img { animation: d-settle 9s cubic-bezier(.22, 1, .36, 1) both; }
}
@keyframes d-settle { from { transform: scale(1.1); } to { transform: scale(1); } }
.d-hero-quote { margin: 32px 0 0; padding-left: 20px; border-left: 2px solid var(--accent); max-width: 52ch; }
.d-hero-quote p { margin: 0; font-family: var(--display); font-style: italic; font-size: 19px; line-height: 1.5; }
.d-hero-quote cite { display: block; margin-top: 8px; font-style: normal; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }

/* le cinque fasi, in apertura */
.d-phases { position: relative; margin: clamp(48px, 6vw, 80px) 0 0; border-top: 1px solid var(--line); }
.d-phases ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.d-phases-line { position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--accent); transform-origin: left; }
.d-phases li { position: relative; padding: 24px 16px 0 0; }
.d-phases li::before { content: ""; position: absolute; left: 0; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); transition: background .4s ease, transform .4s ease; }
.motion .d-phases li::before { background: var(--line); }
.motion .d-phases li.is-on::before { background: var(--accent); transform: scale(1.3); }
.d-phases b { display: block; font-family: var(--mono); font-weight: 500; font-size: 12px; color: var(--accent-text); margin-bottom: 4px; }
.d-phases span { font-family: var(--display); font-size: clamp(18px, 1.8vw, 24px); line-height: 1.15; }

/* corpo: indice fisso + sezioni */
.d-body { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 72px; padding-top: clamp(80px, 10vw, 136px); padding-bottom: clamp(72px, 9vw, 120px); }
.d-toc { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; display: grid; grid-template-columns: 2px 1fr; gap: 0 20px; }
.d-toc-track { background: var(--line); position: relative; }
.d-toc-track i { position: absolute; inset: 0; background: var(--accent); transform-origin: top; transform: scaleY(0); }
.d-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.d-toc a { display: grid; grid-template-columns: 28px 1fr; align-items: center; min-height: 40px; font-size: 14px; color: var(--ink-2); transition: color .25s ease; }
.d-toc a b { font-family: var(--mono); font-weight: 500; font-size: 12px; }
.d-toc a:hover, .d-toc a.is-active { color: var(--ink); }
.d-toc a.is-active b { color: var(--accent-text); }
.d-toc-label { grid-column: 2; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); margin: 0 0 12px; }

.d-sec { border-top: 1px solid var(--ink); padding-top: 24px; scroll-margin-top: calc(var(--header-h) + 24px); }
.d-sec + .d-sec { margin-top: clamp(80px, 10vw, 136px); }
.d-sec-head { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px 24px; margin-bottom: 40px; }
.d-sec-num { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--accent-text); padding-top: 10px; margin: 0; }
.d-sec-head .title { margin: 0; font-size: clamp(32px, 4vw, 54px); max-width: 20ch; }
.d-sec-head .lead { grid-column: 2; margin: 16px 0 0; }

.d-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 56px; align-items: start; }
.d-split .clip { aspect-ratio: 4 / 5; }
.d-facts { margin: 28px 0 0; display: grid; border-top: 1px solid var(--line); }
.d-facts > div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.d-facts dt { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); padding-top: 2px; }

.d-phase-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.d-phase { display: grid; grid-template-columns: 88px minmax(0, 1fr) 220px; gap: 24px 32px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); }
.d-phase-n { font-family: var(--display); font-size: 48px; line-height: 1; color: var(--accent-text); }
.d-phase h3 { font-size: 28px; margin: 0 0 8px; }
.d-phase p { margin: 0; color: var(--ink-2); font-size: 16px; }
.d-phase .clip { aspect-ratio: 3 / 2; }

.d-svc { border-top: 1px solid var(--line); }
.d-svc a { display: grid; grid-template-columns: 88px minmax(0, 1fr) minmax(0, 1.3fr) 24px; gap: 8px 24px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); color: var(--ink); transition: background .2s ease, padding .25s ease; }
.d-svc a:hover { background: var(--surface); padding-left: 12px; color: var(--ink); }
.d-svc b { font-family: var(--mono); font-weight: 500; font-size: 13px; color: var(--ink-2); }
.d-svc .key b { color: var(--accent-text); }
.d-svc h3 { font-size: 24px; margin: 0; }
.d-svc h3 small { display: block; font-family: var(--mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-text); margin-top: 4px; }
.d-svc p { margin: 0; font-size: 15px; color: var(--ink-2); }
.d-svc i { font-style: normal; color: var(--accent-text); }
.d-note { margin-top: 32px; background: var(--ink); color: #e9e6e1; padding: 32px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 40px; }
.d-note h3 { font-size: 26px; color: #fff; margin: 0; }
.d-note .eyebrow { color: #f2b8c0; }
.d-note p, .d-note li { color: #e9e6e1; }
.d-note ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }

.d-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.d-stats > div { padding: 24px 20px 24px 0; }
.d-stats > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.d-stats .stat { font-weight: 400; font-size: clamp(40px, 4.6vw, 64px); letter-spacing: -.03em; line-height: 1; margin: 0 0 10px; }
.d-stats p { margin: 0; font-size: 14px; color: var(--ink-2); }

.d-cta { background: var(--accent); color: #fff; padding: clamp(32px, 4vw, 56px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: end; }
.d-cta .title { color: #fff; margin: 0 0 12px; }
.d-cta p { margin: 0; color: var(--accent-soft); }
.d-addr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 40px; margin-top: 40px; }
.d-addr > * { border-top: 1px solid var(--line); padding-top: 16px; }
.d-addr p { margin: 0; }

@media (max-width: 1100px) {
  .d-body { grid-template-columns: 1fr; gap: 0; }
  .d-toc { display: none; }
}
@media (max-width: 900px) {
  .d-hero-grid, .d-split, .d-note, .d-cta { grid-template-columns: 1fr; }
  .d-hero-media { aspect-ratio: 4 / 3; max-height: none; }
  .d-phase { grid-template-columns: 64px minmax(0, 1fr); }
  .d-phase .clip { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .d-svc a { grid-template-columns: 56px minmax(0, 1fr); }
  .d-svc p { grid-column: 2; }
  .d-svc i { display: none; }
  .d-stats { grid-template-columns: 1fr 1fr; }
  .d-stats > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .d-addr { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .d-phases { border-top: 0; border-left: 1px solid var(--line); margin-left: 5px; }
  .d-phases ol { grid-template-columns: 1fr; }
  .d-phases-line { top: 0; bottom: 0; left: -1px; right: auto; width: 2px; height: auto; transform-origin: top; }
  .d-phases li { padding: 0 0 18px 24px; }
  .d-phases li::before { left: -6px; top: 4px; }
  .d-sec-head { grid-template-columns: 1fr; }
  .d-sec-head .lead { grid-column: 1; }
  .d-sec-num { padding-top: 0; }
  .d-addr { grid-template-columns: 1fr; }
  .d-facts > div { grid-template-columns: 96px 1fr; }
}

/* =========================================================
   GRAFICA SOBRIA — linguaggio di beta.gsvdesign.com
   (Cormorant Garamond + DM Sans leggero, crimson istituzionale #971B2F,
   filetti sottili, etichette in maiuscoletto spaziato)
   ========================================================= */
body { font-size: 16px; font-weight: 300; line-height: 1.65; }
strong, b { font-weight: 500; }

/* testata come beta: bianca, filo carminio, marchio pieno */
.site-header, .site-header.is-compact { background: var(--white); border-bottom: .5px solid var(--accent); box-shadow: none; }
.brand img { height: 58px; }
.site-header.is-compact .brand img { height: 44px; }
.nav a { font-weight: 400; font-size: 14px; }
.nav a[aria-current="page"] { box-shadow: inset 0 -1px 0 var(--accent); }
.nav .nav-cta { font-weight: 400; letter-spacing: .04em; }
.preview-bar { background: var(--ink); font-size: 12px; letter-spacing: .04em; }
.preview-bar a:hover { color: var(--rosa); }
.progress { height: 2px; }

/* tipografia */
.eyebrow, .d-toc-label, .card-role, .badge, .index-tag, .footer-label, .proc-num,
.d-facts dt, .d-hero-quote cite, .d-svc h3 small, .pull figcaption {
  font-family: var(--sans); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .22em;
}
.display, .title, .d-h1, h3, .stat, .d-phase-n, .d-phases span, .index-name, .proc-title, .panel-dark h3 {
  font-family: var(--display); font-weight: 600; letter-spacing: -.01em;
}
.display em, .title em, .d-h1 em { font-style: italic; font-weight: 400; }
.d-h1 { font-size: clamp(44px, 6vw, 78px); line-height: 1.06; letter-spacing: -.01em; }
.d-sec-head .title { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.12; }
.lead { font-size: 19px; font-weight: 300; }
.d-hero-quote p { font-weight: 400; font-size: 22px; }
.d-hero-quote cite, .d-facts dt { color: var(--ink-2); }

/* pulsanti e collegamenti come beta */
.btn { min-height: 0; padding: 14px 28px; font-size: 14px; font-weight: 400; letter-spacing: .04em; text-transform: none; }
.link-more { text-decoration: none; border-bottom: .5px solid currentColor; padding: 0 0 4px; font-size: 14px; font-weight: 400; letter-spacing: .04em; margin-top: 8px; }
.link-more::after { content: ""; }
.link-plain { text-decoration: none; border-bottom: .5px solid var(--accent); }

/* filetti sottili */
.d-sec { border-top: .5px solid var(--accent); padding-top: 28px; }
.d-phases, .d-facts, .d-phase-list, .d-svc, .d-stats, .d-addr > * { border-color: var(--line); }
.d-phases { border-top-width: .5px; }
.d-phases-line { height: 1px; }
.d-phases li::before { width: 7px; height: 7px; top: -4px; }
.d-phases b { font-family: var(--sans); font-size: 11px; letter-spacing: .16em; color: var(--ink-2); }
.d-phases li.is-on b { color: var(--accent-text); }
.d-phases span { font-size: clamp(20px, 2vw, 26px); font-weight: 600; }

/* indice: più discreto */
.d-toc a { font-size: 14px; font-weight: 300; }
.d-toc a b { font-family: var(--sans); font-weight: 500; font-size: 11px; letter-spacing: .12em; color: var(--ink-2); }
.d-toc-track { width: 1px; }
.d-toc { grid-template-columns: 1px 1fr; }
.d-sec-num { font-family: var(--sans); font-size: 11px; letter-spacing: .22em; padding-top: 14px; }

/* contenuti */
.d-phase { padding: 32px 0; }
.d-phase-n { font-size: 40px; font-weight: 300; }
.d-phase h3 { font-size: 26px; }
.d-phase p, .d-svc p, .d-stats p { font-weight: 300; }
.d-svc b { font-family: var(--sans); font-weight: 500; font-size: 11px; letter-spacing: .16em; }
.d-svc h3 { font-size: 24px; }
.d-svc a:hover { background: var(--white); padding-left: 0; }
.d-svc a:hover h3 { color: var(--accent-text); }
.d-note { background: var(--ink); }
.d-note h3 { font-size: 26px; }
.d-note .eyebrow { color: var(--rosa); }
.d-stats .stat { font-size: clamp(30px, 3vw, 40px); font-weight: 600; letter-spacing: -.01em; }
.d-cta { background: var(--white); color: var(--ink); border: .5px solid var(--line); border-top: 2px solid var(--accent); }
.d-cta p { color: var(--ink); font-size: 17px; }
.d-cta .btn--light { background: var(--accent); color: #fff; border-color: var(--accent); }
.d-cta .btn--light:hover { background: var(--ink); border-color: var(--ink); }

/* schede, badge e codici come beta */
.card { background: var(--white); border: 1px solid var(--line); border-top: 2px solid var(--accent); }
.card:hover { border-color: var(--line); border-top-color: var(--accent); }
.card h3 { font-size: 22px; }
.card dd.code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; }
.card dl { border-top: 0; padding-top: 0; font-size: 13px; }
.badge { letter-spacing: .1em; border-width: .5px; }

/* pagine interne: chiusure e pannelli sobri */
.closing { background: var(--bg) !important; color: var(--ink); border-top: .5px solid var(--line); }
.closing .title { color: var(--ink); }
.closing .btn { background: var(--accent); color: #fff; border-color: var(--accent); }
.closing .btn:hover { background: var(--ink); border-color: var(--ink); }
.closing .btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.rule-top { border-top: 2px solid var(--accent); }
.hair-top { border-top-width: .5px; }
.list li::before { content: "—"; background: none; width: auto; height: auto; top: 0; color: var(--accent); }
.list--light li::before { color: var(--rosa); }
.sec--graphite dt, .proc-num, .proc-eyebrow, .eyebrow--light { color: var(--rosa); }
.footer-label { color: var(--rosa); }
.site-footer { color: rgba(245, 243, 240, .75); }
.footer-mark img { height: 86px; }
.pin { background: var(--accent); box-shadow: 0 0 0 4px rgba(151, 27, 47, .22), 0 0 0 1px rgba(255, 255, 255, .9) inset; }

/* pagina di ingresso */
.entry-title { font-family: var(--display); font-weight: 600; letter-spacing: -.01em; }
.entry-title span { font-style: italic; font-weight: 400; }
.lang-name { font-family: var(--display); font-weight: 600; }
.lang-cta { font-family: var(--sans); font-size: 11px; letter-spacing: .22em; }
.langgrid { border-top: .5px solid var(--accent); }

@media (max-width: 600px) {
  .brand img, .site-header.is-compact .brand img { height: 44px; }
}

/* ---------- ancora più sobrio: il crimson solo su etichette, filetti e link ---------- */
.nav .nav-cta { margin-left: 0; padding: 0 12px; background: none; color: var(--ink); }
.nav .nav-cta:hover { background: none; color: var(--accent-text); }
.nav .nav-cta[aria-current="page"] { color: var(--accent-text); box-shadow: inset 0 -1px 0 var(--accent); }
.progress { height: 1px; }
.d-h1 { font-size: clamp(42px, 5.4vw, 70px); }
.d-hero-media { max-height: 64vh; }
.d-sec-num, .d-toc a.is-active b, .d-phases li.is-on b, .d-svc .key b, .d-svc h3 small { color: var(--ink-2); }
.d-toc a.is-active { color: var(--accent-text); }
.motion .d-phases li.is-on::before { transform: none; }
.d-phase-n { font-size: 32px; color: var(--ink-2); }
.d-svc i { color: var(--ink-2); }
.d-stats .stat { color: var(--ink); }
.d-note { background: var(--white); color: var(--ink); border: .5px solid var(--line); border-left: 2px solid var(--accent); }
.d-note h3 { color: var(--ink); }
.d-note .eyebrow { color: var(--accent-text); }
.d-note p, .d-note li { color: var(--ink); }
.d-cta { border-top-width: .5px; border-top-color: var(--accent); }
@media (max-width: 960px) {
  .nav .nav-cta { margin: 0; padding: 0; justify-content: flex-start; border-bottom: 1px solid var(--line); }
  .nav .nav-cta[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); padding-left: 14px; }
}


/* ===== beta3 · immagini e sezioni aggiunte (20/10/2026) ===== */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 32px 24px; }
.gallery--2 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.gal-item { margin: 0; }
.gal-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--surface); }
.gal-item figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.grid--cards > .gal-item img { aspect-ratio: 16 / 10; }
.tile { overflow: hidden; }
.tile > .tile-img { display: block; width: calc(100% + 56px); max-width: none; margin: -28px -28px 22px; aspect-ratio: 16 / 10; object-fit: cover; }
.svc-img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin: 0 0 18px; }
@media (prefers-reduced-motion: reduce) { .res-video video { animation: none; } }
.gal-item--draw img, img[data-draw] { object-fit: contain; background: var(--white); border: 1px solid var(--line); }

/* beta3.1 · 22/10/2026 */
.d-phase .clip { aspect-ratio: 1 / 1; }
@media (max-width: 760px) { .d-phase .clip { aspect-ratio: 4 / 3; } }
a.card { color: inherit; text-decoration: none; }
a.card:hover h3 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.card-more { margin-top: auto; font-size: 14px; color: var(--accent-text); }
.prog-sheet { display: grid; grid-template-columns: max-content 1fr; gap: 10px 32px; margin: 40px 0 0; max-width: 820px; font-size: 15px; border-top: 1px solid var(--line); padding-top: 24px; }
.prog-sheet dt { color: var(--ink-2); font-size: 13px; text-transform: uppercase; letter-spacing: .12em; padding-top: 2px; }
.prog-sheet dd { margin: 0; }
.prog-hero { margin: 0; }
.prog-hero img { display: block; width: 100%; height: auto; }
.prog-gal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
.prog-gal figure { margin: 0; }
.prog-gal img { display: block; width: 100%; height: auto; background: var(--surface); }
.prog-gal figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.prog-gal .span-2 { grid-column: 1 / -1; }
.prog-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 48px; align-items: center; }
.prog-pair img { display: block; width: 100%; height: auto; }
.prog-group + .prog-group { margin-top: 72px; }
.prog-back { display: inline-block; margin-top: 32px; font-size: 15px; color: var(--ink); }
@media (max-width: 760px) { .prog-gal, .prog-pair { grid-template-columns: 1fr; } .prog-sheet { grid-template-columns: 1fr; gap: 4px; } .prog-sheet dd { margin-bottom: 12px; } }
.prog-vid { margin: 0; }
.prog-vid video { display: block; width: 100%; height: auto; background: var(--surface); }
.prog-vid figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.prog-concept { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 40px; align-items: center; }
.prog-concept--3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr); }
.prog-concept img { display: block; width: 100%; height: auto; }
.prog-concept figure { margin: 0; }
.prog-concept figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-2); }
@media (max-width: 900px) { .prog-concept--3 { grid-template-columns: 1fr 1fr; } .prog-concept--3 > div { grid-column: 1 / -1; } }
@media (max-width: 760px) { .prog-concept { grid-template-columns: 1fr; } .prog-concept--3 { grid-template-columns: 1fr 1fr; } }
.prog-hero img { aspect-ratio: 16 / 9; object-fit: cover; }
.link-more--strong { font-size: 17px; font-weight: 600; letter-spacing: .02em; border-bottom-width: 1.5px; color: var(--ink); }
.link-more--strong::after { content: " →"; }
.prog-gal a { display: block; cursor: zoom-in; }
.card--link .badge { margin-top: 0; }

.ct-img { display:block; width:100%; aspect-ratio:4/3; object-fit:cover; margin:0 0 20px; }
.map-static { position:relative; display:block; }
.map-static img { display:block; width:100%; aspect-ratio:4/3; object-fit:cover; }
.map-static span { position:absolute; left:16px; bottom:16px; background:var(--white); color:var(--ink); font-size:13px; padding:6px 10px; letter-spacing:.02em; }
.map-static + .map { display:none; }
.map-frame.has-tiles .map-static { display:none; } .map-frame.has-tiles .map { display:block; }

.pg[hidden]{display:none!important}

/* --- revisione 28/10/2026 --- */
/* home: numero e titolo di sezione in carminio, testo «Chi siamo» a piena larghezza */
.d-sec-head .d-sec-num, .d-sec-head .title { color: var(--accent-text); }
#chi-siamo .d-split p, #chi-siamo .d-split .lead { max-width: none; }
/* foto del gruppo: inquadratura che non taglia i volti */
.img-team { height: auto; aspect-ratio: 16 / 9; object-position: 50% 0; }
/* portfolio: immagini affiancate collegate alla scheda di progetto */
.gal-item > a { display: block; }
.gal-item > a img { transition: opacity .25s ease; }
.gal-item > a:hover img { opacity: .82; }
.gal-item > a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
/* modulo «Richiedi un incontro» */
#richiedi { scroll-margin-top: var(--header-h); }
.cform { display: grid; gap: 22px; }
.cform-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.cform-f { display: grid; gap: 6px; }
.cform-f > span, .cform-req { font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.cform i { font-style: normal; color: var(--accent-text); }
.cform input[type=text], .cform input[type=email], .cform input[type=tel], .cform select, .cform textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--white);
  border: 1px solid var(--line); border-radius: 0; padding: 12px 14px; }
.cform textarea { resize: vertical; min-height: 140px; }
.cform input:focus, .cform select:focus, .cform textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.cform input.is-invalid[name], .cform textarea.is-invalid { border-color: var(--accent); background: var(--accent-soft); }
.cform-check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: 15px; }
.cform-check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--accent); }
.cform-check.is-invalid span { color: var(--accent-text); }
.cform-info { font-size: 13px; line-height: 1.55; color: var(--ink-2); margin: 0; max-width: none; }
.cform-req { margin: 0; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 13px; }
.cform-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.cform-actions .btn { cursor: pointer; }
.cform-actions .btn[disabled] { opacity: .6; cursor: wait; }
.cform-msg { margin: 0; font-size: 15px; max-width: 48ch; }
.cform-msg.is-ok { color: var(--ink); }
.cform-msg.is-err { color: var(--accent-text); }
.cform-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* note Mat 29/10/2026 */
.d-phase { grid-template-columns: minmax(0, 1fr) 220px; }
.d-svc a { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) 24px; }
.band--tre { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.band--tre img { width: 100%; height: clamp(220px, 27vw, 440px); object-fit: cover; }
.card--wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.card--wide > img { height: 100%; aspect-ratio: auto; min-height: 340px; }
.card--wide .card-body { padding: 32px; justify-content: center; }
#t-chi { font-size: clamp(24px, 2.5vw, 37px); }
@media (min-width: 1100px) {
  .t-una-riga, .d-sec-head .title.t-una-riga { max-width: none; white-space: nowrap; }
}
@media (max-width: 1099px) {
  .t-una-riga, .d-sec-head .title.t-una-riga { max-width: none; }
}
@media (max-width: 900px) {
  .d-phase { grid-template-columns: minmax(0, 1fr); }
  .d-svc a { grid-template-columns: minmax(0, 1fr); }
  .d-svc p { grid-column: 1; }
  .band--tre { grid-template-columns: 1fr; }
  .band--tre img { height: auto; aspect-ratio: 4 / 3; }
  .card--wide { display: flex; }
  .card--wide > img { min-height: 0; aspect-ratio: 16 / 10; }
}

/* Tabella delle prestazioni (ponti e viadotti) */
.tab-wrap { overflow-x: auto; }
.tab { width: 100%; border-collapse: collapse; font-size: 15px; }
.tab th { font-family: var(--sans); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .22em; color: var(--ink-2); text-align: left; padding: 0 20px 12px 0; border-bottom: .5px solid var(--accent); }
.tab td { padding: 14px 20px 14px 0; border-bottom: .5px solid var(--line); vertical-align: top; }
.tab td:first-child { white-space: nowrap; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .22em; color: var(--accent-text); padding-top: 18px; }
@media (max-width: 600px) { .tab td:first-child { white-space: normal; } }

/* Galleria di elaborati di calcolo (ponti e viadotti): proporzioni originali */
.gallery--tec { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
.gallery--tec .gal-item img { aspect-ratio: auto; height: auto; }
.gallery--tec .gal-item--wide { grid-column: 1 / -1; }
@media (max-width: 700px) { .gallery--tec { grid-template-columns: 1fr; } }

/* note Mat 2-3 29/10/2026 */
.nw { white-space: nowrap; }
@media (min-width: 1000px) { .nw-d { white-space: nowrap; } }
.cat-una-riga { max-width: none; }

/* navigazione 30/10/2026 */
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 18px; font-size: 13px; color: var(--ink-2); }
.crumbs a { color: inherit; text-decoration: none; border-bottom: .5px solid transparent; }
.crumbs a:hover, .crumbs a:focus-visible { color: var(--ink); border-bottom-color: var(--accent); }
.crumbs [aria-current] { color: var(--ink); }
.prog-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: end; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.prog-nav .prog-back { margin-top: 0; text-align: center; }
.prog-prev, .prog-next { display: block; color: var(--ink); text-decoration: none; font-size: 15px; line-height: 1.35; }
.prog-next { text-align: right; }
.prog-prev small, .prog-next small { display: block; margin-bottom: 4px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); }
.prog-prev:hover, .prog-next:hover { color: var(--accent-text); }
@media (max-width: 760px) {
  .prog-nav { grid-template-columns: 1fr; gap: 18px; }
  .prog-nav .prog-back { order: 3; text-align: left; }
  .prog-next { text-align: left; }
}
.see-works { margin-top: 18px; font-size: 14px; line-height: 1.6; color: var(--ink-2); max-width: 60ch; }
.see-works span { display: block; margin-bottom: 2px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.see-works a { color: var(--ink); text-decoration: none; border-bottom: .5px solid var(--accent); }
.see-works a:hover { color: var(--accent-text); }

/* video home 30/10/2026 */
.clip video { display: block; width: 100%; height: 100%; object-fit: cover; }
/* video home 30/10/2026 (v5): sfondo già nel colore della pagina, video orizzontale intero nel riquadro */
.d-hero-media video { object-fit: contain; }

/* sottomenu Servizi 30/10/2026 */
.header-in { position: relative; }
.nav { align-self: stretch; }
.nav-item { align-self: stretch; display: flex; align-items: center; }
.nav-drop {
  position: absolute; top: 100%; right: 0; z-index: 60;
  width: min(940px, calc(100vw - 32px)); padding: 28px 32px 22px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 28px;
  background: var(--white); border-top: 1px solid var(--accent); box-shadow: 0 18px 40px rgba(22, 22, 22, .10);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
.nav-item:hover .nav-drop, .nav-item:focus-within .nav-drop {
  opacity: 1; visibility: visible; transform: none; transition: opacity .18s ease, transform .18s ease;
}
.nav-item:hover > a, .nav-item:focus-within > a { color: var(--accent-text); }
.nav-drop-col p { margin: 0 0 10px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.nav .nav-drop a {
  display: block; min-height: 0; padding: 5px 0; font-size: 14px; font-weight: 400; line-height: 1.35;
  color: var(--ink); box-shadow: none;
}
.nav .nav-drop a:hover, .nav .nav-drop a:focus-visible { color: var(--accent-text); }
.nav .nav-drop .nav-drop-all { grid-column: 1 / -1; margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 500; }
@media (prefers-reduced-motion: reduce) { .nav-drop { transition: none; transform: none; } }
@media (max-width: 960px) {
  .nav-item { display: block; }
  .nav-item > a { display: flex; width: 100%; }
  .nav-drop { display: none; }
}

/* indirizzi email nel piè di pagina 30/10/2026 */
.footer-legal a { color: inherit; text-decoration: underline; text-decoration-thickness: .5px; text-underline-offset: 3px; }
.footer-legal a:hover { color: #fff; }

/* sottomenu Servizi: sottogruppi */
.nav-drop-col .nav-drop-sub { margin: 12px 0 4px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 10.5px; letter-spacing: .08em; color: var(--ink-2); }
