@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-wdth.woff2") format("woff2-variations"),
       url("/assets/fonts/archivo-wdth.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0f2433;
  --ink-2: #16384e;
  --blue: #236084;
  --blue-soft: #dfe9ef;
  --tufa: #c39a5e;
  --paper: #f2f4f5;
  --white: #ffffff;
  --slate: #536470;
  --rule: #d2d9de;
  --rule-dark: rgba(255, 255, 255, .16);

  --gutter: clamp(20px, 4vw, 56px);
  --maxw: 1360px;
  --header-h: 76px;

  --fs-body: 1.0625rem;
  --fs-small: .875rem;
  --fs-label: .8125rem;
  --fs-h4: 1.25rem;
  --fs-h3: clamp(1.375rem, 1.1rem + .8vw, 1.75rem);
  --fs-h2: clamp(1.875rem, 1.3rem + 2vw, 3rem);
  --fs-h1: clamp(2.375rem, 1.4rem + 3.6vw, 4.75rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  font-stretch: 100%;
  font-variation-settings: "wdth" 100;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 560; line-height: 1.08; letter-spacing: -.012em; font-stretch: 112%; font-variation-settings: "wdth" 112; }
h1 { font-size: var(--fs-h1); line-height: 1.02; letter-spacing: -.02em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.15; }
h4 { font-size: var(--fs-h4); line-height: 1.25; }
ul { margin: 0; padding: 0; }

:focus-visible { outline: 2px solid var(--tufa); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--white); color: var(--ink); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.label {
  font-size: var(--fs-label);
  font-stretch: 85%;
  font-variation-settings: "wdth" 85;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--slate);
}
.lead { font-size: clamp(1.1875rem, 1rem + .6vw, 1.4375rem); line-height: 1.5; max-width: 40em; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  transition: background-color .25s ease, border-color .25s ease;
}
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: block; flex: none; }
.brand img { height: 38px; width: auto; }
.brand .logo-white { display: none; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; font-size: .9375rem; font-weight: 500;
  padding: 8px 12px; position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px;
  background: var(--tufa); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.lang { display: flex; gap: 2px; margin-left: 12px; padding-left: 16px; border-left: 1px solid var(--rule); }
.lang a, .lang span { font-size: var(--fs-label); font-weight: 600; padding: 6px 6px; text-decoration: none; font-stretch: 85%; font-variation-settings: "wdth" 85; }
.lang span { color: var(--blue); }
.lang a { color: var(--slate); }
.lang a:hover { color: var(--ink); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; color: inherit; padding: 10px; cursor: pointer; }
.nav-toggle svg { display: block; }

.has-hero .site-header:not(.is-solid) { background: transparent; border-color: transparent; color: var(--white); }
.has-hero .site-header:not(.is-solid) .logo-white { display: block; }
.has-hero .site-header:not(.is-solid) .logo-blue { display: none; }
.has-hero .site-header:not(.is-solid) .lang { border-color: var(--rule-dark); }
.has-hero .site-header:not(.is-solid) .lang a { color: rgba(255,255,255,.75); }
.has-hero .site-header:not(.is-solid) .lang span { color: var(--white); }
.has-hero .site-header:not(.is-solid)::before {
  content: ""; position: absolute; inset: 0 0 -40px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(15,36,51,.55), rgba(15,36,51,0));
}
main { display: block; }
body:not(.has-hero) main { padding-top: var(--header-h); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; display: none; flex-direction: column; align-items: stretch;
    background: var(--ink); color: var(--white); padding: 12px var(--gutter) 28px; gap: 0;
    max-height: calc(100vh - var(--header-h)); overflow: auto;
  }
  .nav.is-open { display: flex; }
  .nav a { font-size: 1.375rem; padding: 14px 0; border-bottom: 1px solid var(--rule-dark); font-stretch: 112%; font-variation-settings: "wdth" 112; }
  .nav a::after { display: none; }
  .lang { margin: 18px 0 0; padding: 0; border: 0; }
  .lang a, .lang span { font-size: 1rem; padding: 6px 12px 6px 0; border: 0; }
  .lang a { color: rgba(255,255,255,.7); }
  .lang span { color: var(--white); }
  .menu-open .site-header { background: var(--ink) !important; color: var(--white); border-color: var(--ink) !important; }
  .menu-open .site-header .logo-white { display: block !important; }
  .menu-open .site-header .logo-blue { display: none !important; }
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; font: inherit; font-size: .9375rem; font-weight: 600;
  text-decoration: none; border: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-solid { background: var(--blue); border-color: var(--blue); color: var(--white); }
.btn-solid:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn-light { color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-light:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-line:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn svg { width: 16px; height: 16px; flex: none; }
.link-more { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--tufa); padding-bottom: 2px; }
.link-more:hover { color: var(--blue); }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; max-height: 1100px; color: var(--white); background: var(--ink); overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide.is-active img { animation: drift 9s ease-out both; }
@keyframes drift { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(15,36,51,.88) 0%, rgba(15,36,51,.55) 34%, rgba(15,36,51,.05) 70%);
}
.hero-body { position: absolute; inset: auto 0 0 0; z-index: 2; padding-bottom: clamp(32px, 6vh, 72px); }
.hero-body .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.hero h1 { max-width: 14.5em; font-size: clamp(2.25rem, 1.2rem + 3.6vw, 4.5rem); }
.hero-sub { margin: 22px 0 30px; max-width: 34em; font-size: clamp(1.0625rem, .95rem + .4vw, 1.25rem); color: rgba(255,255,255,.86); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-caption { width: 300px; border-top: 1px solid rgba(255,255,255,.4); padding-top: 14px; }
.hero-caption .cap { min-height: 4.6em; }
.hero-caption .cap-title { font-weight: 560; line-height: 1.3; display: block; text-decoration: none; }
.hero-caption .cap-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.hero-caption .cap-meta { display: block; margin-top: 6px; font-size: var(--fs-label); font-stretch: 85%; font-variation-settings: "wdth" 85; color: rgba(255,255,255,.75); }
.hero-dots { display: flex; gap: 6px; margin-top: 16px; }
.hero-dots button { flex: 1; height: 22px; padding: 0; background: none; border: 0; cursor: pointer; position: relative; }
.hero-dots button::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: rgba(255,255,255,.35); }
.hero-dots button[aria-current="true"]::before { background: var(--tufa); }
@media (max-width: 860px) {
  .hero-body .wrap { grid-template-columns: 1fr; gap: 28px; }
  .hero-caption { width: 100%; }
}

/* ---------------------------------------------------------------- sections */
.section { padding: clamp(72px, 9vw, 140px) 0; }
.section-paper { background: var(--paper); }
.section-ink { background: var(--ink); color: var(--white); }
.section-head { display: grid; grid-template-columns: 4fr 8fr; gap: 40px; margin-bottom: clamp(40px, 5vw, 72px); align-items: end; }
.section-head p { margin: 0; color: var(--slate); max-width: 38em; }
.section-ink .section-head p { color: rgba(255,255,255,.72); }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; gap: 16px; } }

/* intro + figures */
.intro { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.intro h2 { margin-bottom: 28px; max-width: 13em; }
.intro p { color: #2b3f4c; max-width: 36em; }
.intro .link-more { display: inline-block; margin-top: 10px; }
@media (max-width: 960px) { .intro { grid-template-columns: 1fr; } }

.figures { display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--ink); }
.figure { padding: 22px 18px 24px 0; border-bottom: 1px solid var(--rule); }
.figure:nth-child(odd) { border-right: 1px solid var(--rule); }
.figure:nth-child(even) { padding-left: 20px; }
.figure strong {
  display: block; font-weight: 520; font-size: clamp(2rem, 1.5rem + 1.6vw, 2.875rem); line-height: 1;
  font-stretch: 118%; font-variation-settings: "wdth" 118; letter-spacing: -.02em; color: var(--blue);
}
.figure span { display: block; margin-top: 10px; font-size: var(--fs-small); line-height: 1.4; color: var(--slate); max-width: 16em; }

.figures-ink { grid-template-columns: repeat(3, minmax(0, 1fr)); border-top-color: var(--white); }
.figures-ink .figure { border-color: var(--rule-dark) !important; border-right: 1px solid var(--rule-dark); padding: 28px 24px 30px !important; }
.figures-ink .figure:nth-child(3n) { border-right: 0; }
.figures-ink .figure strong { color: var(--white); }
.figures-ink .figure span { color: rgba(255,255,255,.7); }
@media (max-width: 760px) { .figures-ink { grid-template-columns: 1fr 1fr; } .figures-ink .figure:nth-child(3n) { border-right: 1px solid var(--rule-dark); } .figures-ink .figure:nth-child(2n) { border-right: 0; } }

/* sectors list */
.sector-list { border-top: 2px solid var(--ink); }
.sector-row {
  display: grid; grid-template-columns: 5fr 6fr 1fr; gap: 24px; align-items: baseline;
  padding: 22px 0; border-bottom: 1px solid var(--rule); text-decoration: none;
}
.sector-row h3 { font-size: clamp(1.25rem, 1.05rem + .7vw, 1.625rem); }
.sector-row p { margin: 0; color: var(--slate); }
.sector-row .count { justify-self: end; font-size: var(--fs-label); font-stretch: 85%; font-variation-settings: "wdth" 85; color: var(--slate); white-space: nowrap; }
a.sector-row:hover h3 { color: var(--blue); }
@media (max-width: 760px) { .sector-row { grid-template-columns: 1fr; gap: 6px; } .sector-row .count { justify-self: start; } }

/* ---------------------------------------------------------------- cartiglio (title block) */
.cartiglio { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 2px solid var(--ink); border-left: 1px solid var(--rule); }
.cartiglio > div { padding: 12px 14px 14px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); min-width: 0; }
.cartiglio .wide { grid-column: 1 / -1; }
.cartiglio dt { font-size: var(--fs-label); font-stretch: 85%; font-variation-settings: "wdth" 85; color: var(--slate); font-weight: 500; margin-bottom: 4px; }
.cartiglio dd { margin: 0; font-size: .9375rem; line-height: 1.4; font-weight: 500; overflow-wrap: anywhere; }
.cartiglio-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .cartiglio-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* featured projects */
.feature { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 4vw, 64px); align-items: end; }
.feature + .feature { margin-top: clamp(64px, 8vw, 120px); }
.feature:nth-child(even) { grid-template-columns: 5fr 7fr; }
.feature:nth-child(even) .feature-media { order: 2; }
.feature-media { display: block; overflow: hidden; background: var(--paper); aspect-ratio: 3 / 2; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.feature-media:hover img { transform: scale(1.025); }
.feature-text .label { display: block; margin-bottom: 12px; }
.feature-text h3 { margin-bottom: 24px; }
.feature-text h3 a { text-decoration: none; }
.feature-text h3 a:hover { color: var(--blue); }
.feature-text .cartiglio { margin-bottom: 22px; }
@media (max-width: 860px) {
  .feature, .feature:nth-child(even) { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature-media { order: 0; }
}

/* clients */
.clients { columns: 3 260px; column-gap: 40px; list-style: none; border-top: 1px solid var(--rule-dark); }
.clients li { break-inside: avoid; padding: 14px 0; border-bottom: 1px solid var(--rule-dark); font-size: 1.0625rem; }

/* partners */
.partners { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.partner { text-decoration: none; display: block; }
.partner-img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper); margin-bottom: 18px; }
.partner-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.02); transition: transform .5s ease; }
.partner:hover .partner-img img { transform: scale(1.03); }
.partner h3 { font-size: 1.5rem; }
.partner .role { display: block; margin-top: 6px; color: var(--blue); font-weight: 500; }
.partner p { margin: 10px 0 0; color: var(--slate); font-size: .9375rem; }
@media (max-width: 860px) { .partners { grid-template-columns: 1fr; max-width: 460px; } }

/* office band */
.band { position: relative; min-height: 78vh; display: flex; align-items: flex-end; color: var(--white); background: var(--ink); }
.band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(15,36,51,.86) 0%, rgba(15,36,51,.35) 55%, rgba(15,36,51,0) 80%); }
.band .wrap { position: relative; z-index: 2; padding-top: 80px; padding-bottom: clamp(48px, 7vw, 96px); }
.band h2 { max-width: 12em; margin-bottom: 20px; }
.band p { max-width: 30em; color: rgba(255,255,255,.85); }
.band address { font-style: normal; margin: 24px 0 28px; line-height: 1.5; }

/* ---------------------------------------------------------------- page head */
.page-head { padding: clamp(56px, 7vw, 112px) 0 clamp(40px, 5vw, 72px); background: var(--paper); }
.page-head h1 { max-width: 15em; }
.page-head .lead { margin-top: 26px; color: #2b3f4c; }
.crumbs { margin-bottom: 26px; font-size: var(--fs-label); font-stretch: 85%; font-variation-settings: "wdth" 85; color: var(--slate); }
.crumbs a { text-decoration: none; color: var(--slate); }
.crumbs a:hover { color: var(--blue); }
.crumbs span[aria-hidden] { margin: 0 8px; }

.img-wide { aspect-ratio: 21 / 9; overflow: hidden; background: var(--paper); }
.img-wide img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .img-wide { aspect-ratio: 4 / 3; } }

.prose { max-width: 40em; }
.prose p { color: #2b3f4c; }
.two-col { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(32px, 5vw, 80px); }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

/* principles */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.principle { border-top: 2px solid var(--ink); padding-top: 22px; }
.principle h3 { font-size: 1.375rem; margin-bottom: 14px; }
.principle p { color: var(--slate); margin: 0; }
@media (max-width: 860px) { .principles { grid-template-columns: 1fr; } }

/* org chart */
.org { --line: var(--rule); }
.org-top { display: flex; gap: 0; align-items: stretch; flex-wrap: wrap; }
.org-node { border: 1px solid var(--ink); padding: 16px 20px; background: var(--white); min-width: 240px; }
.org-node strong { display: block; font-size: 1.0625rem; font-weight: 600; }
.org-node span { display: block; font-size: var(--fs-small); color: var(--slate); margin-top: 2px; }
.org-node.lead-node { background: var(--ink); color: var(--white); border-color: var(--ink); }
.org-node.lead-node span { color: rgba(255,255,255,.75); }
.org-link { width: 40px; align-self: center; height: 1px; background: var(--ink); }
.org-stem { width: 1px; height: 36px; background: var(--ink); margin-left: 32px; }
.org-areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-left: 1px solid var(--rule); }
.org-area { padding: 18px 18px 20px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--white); }
.org-area strong { display: block; font-weight: 600; }
.org-area span { display: block; font-size: var(--fs-small); color: var(--slate); margin-top: 4px; }
@media (max-width: 760px) { .org-areas { grid-template-columns: 1fr 1fr; } .org-link { display: none; } .org-top { gap: 12px; } .org-node { min-width: 0; flex: 1 1 220px; } }
@media (max-width: 460px) { .org-areas { grid-template-columns: 1fr; } }

.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.tags li { border: 1px solid var(--rule); padding: 7px 12px; font-size: var(--fs-small); background: var(--white); }

.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
.gallery figure { margin: 0; overflow: hidden; background: var(--paper); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery .g-a { grid-column: span 7; aspect-ratio: 7 / 4.6; }
.gallery .g-b { grid-column: span 5; aspect-ratio: 5 / 4.6; }
.gallery .g-full { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
.gallery .g-half { grid-column: span 6; aspect-ratio: 4 / 3; }
@media (max-width: 700px) { .gallery .g-a, .gallery .g-b, .gallery .g-half { grid-column: 1 / -1; } .gallery .g-full { aspect-ratio: 4 / 3; } }

/* partner profile */
.profile { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(32px, 5vw, 88px); padding: clamp(64px, 8vw, 120px) 0; border-bottom: 1px solid var(--rule); }
.profile:last-child { border-bottom: 0; }
.profile-img { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.profile-img img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.profile h2 { margin-bottom: 10px; }
.profile .role { font-size: 1.1875rem; color: var(--blue); font-weight: 500; }
.profile .reg { margin: 8px 0 32px; color: var(--slate); font-size: var(--fs-small); }
.profile .prose { margin-bottom: 40px; }
.profile-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.profile-lists h3 { font-size: 1.125rem; padding-bottom: 12px; border-bottom: 2px solid var(--ink); margin-bottom: 4px; }
.rule-list { list-style: none; }
.rule-list li { padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: .9375rem; line-height: 1.45; }
@media (max-width: 960px) { .profile, .profile-lists { grid-template-columns: 1fr; } .profile-img { position: static; max-width: 380px; } }

/* services */
.phases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: ph; border-top: 2px solid var(--ink); }
.phase { padding: 24px 22px 28px 0; border-right: 1px solid var(--rule); counter-increment: ph; }
.phase + .phase { padding-left: 22px; }
.phase:last-child { border-right: 0; }
.phase::before { content: counter(ph); display: block; font-size: 2.75rem; line-height: 1; font-weight: 300; font-stretch: 118%; font-variation-settings: "wdth" 118; color: var(--blue); margin-bottom: 26px; }
.phase h3 { font-size: 1.375rem; margin-bottom: 12px; }
.phase p { color: var(--slate); margin: 0; font-size: .9375rem; }
@media (max-width: 960px) { .phases { grid-template-columns: 1fr 1fr; } .phase:nth-child(2) { border-right: 0; } .phase:nth-child(3) { padding-left: 0; } .phase { border-bottom: 1px solid var(--rule); } }
@media (max-width: 560px) { .phases { grid-template-columns: 1fr; } .phase, .phase + .phase { padding-left: 0; border-right: 0; } }

.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.svc { padding: 24px 0; border-top: 1px solid var(--rule); }
.svc h3 { font-size: 1.25rem; margin-bottom: 8px; }
.svc p { margin: 0; color: var(--slate); }
.section-ink .svc { border-color: var(--rule-dark); }
.section-ink .svc p { color: rgba(255,255,255,.72); }
@media (max-width: 760px) { .svc-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- projects index */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filters button {
  font: inherit; font-size: var(--fs-small); font-weight: 500; padding: 9px 14px; cursor: pointer;
  background: var(--white); color: var(--ink); border: 1px solid var(--rule);
}
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px) clamp(24px, 3vw, 40px); }
.card { text-decoration: none; display: block; }
.card[hidden] { display: none; }
.card-img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper); margin-bottom: 18px; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-img img { transform: scale(1.025); }
.card .label { display: block; margin-bottom: 8px; }
.card h3 { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); margin-bottom: 10px; max-width: 24em; }
.card:hover h3 { color: var(--blue); }
.card-meta { color: var(--slate); font-size: .9375rem; }
.card-meta span + span::before { content: ""; display: inline-block; width: 14px; height: 1px; background: var(--tufa); vertical-align: middle; margin: 0 10px; }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } }

.ref-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.ref-table caption { text-align: left; }
.ref-table th { text-align: left; font-weight: 500; font-size: var(--fs-label); font-stretch: 85%; font-variation-settings: "wdth" 85; color: var(--slate); padding: 0 16px 12px 0; border-bottom: 2px solid var(--ink); }
.ref-table td { padding: 15px 16px 15px 0; border-bottom: 1px solid var(--rule); vertical-align: top; line-height: 1.45; }
.ref-table td:first-child { white-space: nowrap; color: var(--slate); }
.ref-table td.num { white-space: nowrap; text-align: right; padding-right: 0; font-variant-numeric: tabular-nums; }
.ref-table th.num { text-align: right; padding-right: 0; }
.ref-table tr[hidden] { display: none; }
.ref-note { margin-top: 18px; font-size: var(--fs-small); color: var(--slate); }
@media (max-width: 860px) {
  .ref-table thead { display: none; }
  .ref-table tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .ref-table td { border: 0; padding: 0; }
  .ref-table td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; font-weight: 500; }
  .ref-table td:nth-child(3), .ref-table td:nth-child(4) { grid-column: 1 / -1; color: var(--slate); }
  .ref-table td.num { grid-row: 1; grid-column: 2; }
}

/* ---------------------------------------------------------------- project page */
.p-hero { height: 76vh; min-height: 460px; max-height: 900px; overflow: hidden; background: var(--ink); margin-top: 0; }
.p-hero img { width: 100%; height: 100%; object-fit: cover; }
.p-hero-cap { padding-top: 12px; font-size: var(--fs-label); font-stretch: 85%; font-variation-settings: "wdth" 85; color: var(--slate); }
.p-head { padding: clamp(40px, 5vw, 72px) 0 clamp(32px, 4vw, 56px); display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.p-head h1 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.5rem); }
.p-body { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 80px); padding-bottom: clamp(48px, 6vw, 88px); }
.p-body .prose p:first-child { font-size: 1.1875rem; line-height: 1.55; color: var(--ink); }
.p-aside h2 { font-size: 1.125rem; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.p-nav { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule); margin-top: clamp(56px, 7vw, 100px); }
.p-nav a { padding: 28px 0; text-decoration: none; }
.p-nav a + a { text-align: right; border-left: 1px solid var(--rule); padding-left: 24px; }
.p-nav strong { display: block; font-weight: 560; font-size: 1.125rem; line-height: 1.3; margin-top: 6px; }
.p-nav a:hover strong { color: var(--blue); }
@media (max-width: 860px) { .p-head, .p-body { grid-template-columns: 1fr; } .p-nav { grid-template-columns: 1fr; } .p-nav a + a { border-left: 0; border-top: 1px solid var(--rule); padding-left: 0; text-align: left; } }

/* ---------------------------------------------------------------- contact */
.contact { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); }
.contact-data .cartiglio { grid-template-columns: 1fr; margin-bottom: 28px; }
.contact-data .cartiglio dd a { text-decoration: none; }
.contact-data .cartiglio dd a:hover { color: var(--blue); }
.contact-data figure { margin: 0; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: var(--fs-small); font-weight: 600; }
.field .opt { font-weight: 400; color: var(--slate); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--white);
  border: 1px solid #aab5bd; border-radius: 0; padding: 13px 14px; width: 100%;
}
.field textarea { min-height: 180px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.check { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-small); color: var(--slate); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--blue); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.notice { grid-column: 1 / -1; padding: 16px 18px; border-left: 3px solid var(--blue); background: var(--blue-soft); }
.notice.err { border-color: #a3312a; background: #f6e3e1; }
.notice[hidden] { display: none; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.82); padding: clamp(64px, 7vw, 104px) 0 32px; font-size: .9375rem; }
.footer-top { display: grid; grid-template-columns: 4fr 3fr 3fr 2fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--rule-dark); }
.footer-top img { height: 40px; width: auto; margin-bottom: 22px; }
.footer-top p { max-width: 22em; }
.site-footer h2 { font-size: var(--fs-label); font-stretch: 85%; font-variation-settings: "wdth" 85; font-weight: 500; color: rgba(255,255,255,.55); letter-spacing: .01em; margin-bottom: 14px; }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.footer-nav { list-style: none; line-height: 2; }
.footer-legal { padding-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: var(--fs-label); color: rgba(255,255,255,.55); }
.footer-legal a { color: rgba(255,255,255,.7); }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- utilities */
.mt-0 { margin-top: 0; }
.mb-s { margin-bottom: 24px; }
.center-cta { margin-top: clamp(48px, 6vw, 80px); display: flex; gap: 12px; flex-wrap: wrap; }
.legal-text h2 { font-size: 1.5rem; margin: 48px 0 14px; }
.legal-text p, .legal-text li { color: #2b3f4c; }
.legal-text ul { padding-left: 1.2em; margin-bottom: 1em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .site-header, .site-footer, .hero-dots, .filters { display: none; }
  body:not(.has-hero) main { padding-top: 0; }
}
.cartiglio-3 .span2 { grid-column: span 2; }
@media (max-width: 640px) { .cartiglio-3 .span2 { grid-column: span 1; } }
@media (max-width: 860px) {
  .hero::after { background: linear-gradient(to top, rgba(15,36,51,.92) 0%, rgba(15,36,51,.72) 50%, rgba(15,36,51,.25) 85%); }
  .figure strong { font-size: 1.875rem; white-space: nowrap; }
}

/* ---------------------------------------------------------------- certificazione */
.cartiglio-3 .span3 { grid-column: 1 / -1; }
.cert { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 28%); gap: clamp(28px, 5vw, 72px); align-items: start; }
.cert-text .label { display: block; margin-bottom: 12px; }
.cert-text .lead { margin-bottom: 26px; }
.cert-text .cartiglio { margin-bottom: 26px; background: var(--white); }
.cert-img { display: block; background: var(--white); padding: 10px; box-shadow: 0 14px 40px rgba(15, 36, 51, .14); border: 1px solid var(--rule); transition: transform .4s ease; }
.cert-img img { display: block; width: 100%; height: auto; }
.cert-img:hover { transform: translateY(-3px); }
@media (max-width: 760px) { .cert { grid-template-columns: 1fr; } .cert-img { max-width: 320px; } }
