/* ==========================================================================
   Celori Costruzioni — Design system 2026
   ========================================================================== */

@font-face {
  font-family: 'Manrope';
  src: url('/assets/fonts/manrope-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope Fallback';
  src: local('Arial'), local('ArialMT');
  ascent-override: 103.3095%;
  descent-override: 29.074%;
  line-gap-override: 0%;
  size-adjust: 103.1851%;
}
@font-face {
  font-family: 'Instrument Serif Fallback';
  src: local('Georgia');
  ascent-override: 129.426%;
  descent-override: 40.5273%;
  line-gap-override: 0%;
  size-adjust: 76.4916%;
  font-style: normal;
}
@font-face {
  font-family: 'Instrument Serif Fallback';
  src: local('Georgia-Italic'), local('Georgia Italic');
  ascent-override: 129.426%;
  descent-override: 40.5273%;
  line-gap-override: 0%;
  size-adjust: 76.4916%;
  font-style: italic;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('/assets/fonts/instrument-serif-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('/assets/fonts/instrument-serif-italic-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #0b1d33;
  --ink-2: #102741;
  --navy: #16395a;
  --paper: #f7f9fc;
  --paper-2: #edf2f8;
  --card: #ffffff;
  --accent: #16588f;
  --accent-2: #7fb9ec;
  --accent-soft: #d9e8f7;
  --accent-ink: #104877;
  --accent-deep: #0c3c66;
  --muted: #556575;
  --muted-dark: #b2c1d0;
  --line: rgba(11, 29, 51, 0.13);
  --line-strong: rgba(11, 29, 51, 0.28);
  --line-dark: rgba(255, 255, 255, 0.16);
  --radius: 6px;
  --radius-sm: 3px;
  --shadow: 0 24px 60px -30px rgba(11, 29, 51, 0.4);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-sans: 'Manrope', 'Manrope Fallback', ui-sans-serif, system-ui,
    -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-serif: 'Instrument Serif', 'Instrument Serif Fallback', Georgia,
    'Times New Roman', serif;
  --container: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --header-h: 84px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.menu-open {
  overflow: hidden;
}
img,
svg,
video {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
p {
  text-wrap: pretty;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
figure {
  margin: 0;
}
::selection {
  background: var(--accent-soft);
  color: var(--ink);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
.hero :focus-visible,
.page-hero :focus-visible,
.section--ink :focus-visible,
.site-footer :focus-visible,
.focus-card :focus-visible,
.mobile-menu :focus-visible,
.cta :focus-visible,
.quote :focus-visible {
  outline-color: var(--accent-2);
}
[hidden] {
  display: none !important;
}

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: clamp(72px, 9vw, 132px);
}
.section--tight {
  padding-block: clamp(56px, 6vw, 88px);
}
.section--paper2 {
  background: var(--paper-2);
}
.section--ink {
  background: var(--ink);
  color: var(--paper);
}
.section + .section {
  border-top: 1px solid var(--line);
}
.section--ink + .section {
  border-top: 0;
}
.service-card,
.panel,
.tech-card,
.norm-col,
.svc-card,
.form-card {
  box-shadow: 0 1px 2px rgba(11, 29, 51, 0.035),
    0 18px 40px -34px rgba(11, 29, 51, 0.35);
}
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

/* ---------- type ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.8;
}
.eyebrow--light {
  color: var(--accent-2);
}
.eyebrow--plain::before {
  display: none;
}
.display {
  font-size: clamp(2.7rem, 7vw, 6.6rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
  font-weight: 750;
}
.display em,
.h2 em,
.hero-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.h2 {
  font-size: clamp(2rem, 4.1vw, 3.7rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.h3 {
  font-size: clamp(1.25rem, 1.7vw, 1.55rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.lead {
  margin: 0;
  font-size: clamp(1.05rem, 1.35vw, 1.22rem);
  line-height: 1.65;
  color: var(--muted);
  max-width: 62ch;
}
.lead--light {
  color: var(--muted-dark);
}
.small {
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--muted);
}
.mono {
  font-variant-numeric: tabular-nums;
}

/* ---------- section head ---------- */
.section-head {
  display: grid;
  grid-template-columns: minmax(160px, 250px) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 72px);
  align-items: start;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-label span {
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
}
.section-label::after {
  content: '';
  flex: 1;
  max-width: 64px;
  height: 1px;
  background: var(--line);
}
.section-head-body .h2 {
  max-width: 19ch;
}
.section-head-body .lead {
  margin-top: 22px;
}
.section--ink .section-label {
  color: var(--muted-dark);
}
.section--ink .section-label span {
  color: var(--accent-2);
}
.section--ink .section-label::after {
  background: var(--line-dark);
}
.section--ink .lead {
  color: var(--muted-dark);
}

/* ---------- buttons / links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}
.btn--accent {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 10px 24px -18px rgba(11, 29, 51, 0.7);
}
.btn--accent:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
  box-shadow: 0 16px 30px -18px rgba(11, 29, 51, 0.8);
}
.btn--ink {
  background: var(--ink);
  color: var(--paper);
}
.btn--ink:hover {
  background: var(--navy);
  transform: translateY(-1px);
}
.btn--ghost {
  border-color: currentColor;
  color: inherit;
  background: transparent;
}
.btn--ghost:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.btn--ghost-dark {
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn--ghost-dark:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn--sm {
  min-height: 44px;
  padding: 0 20px;
  font-size: 0.76rem;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: gap 0.25s var(--ease), color 0.25s var(--ease);
}
.arrow-link svg {
  width: 15px;
  height: 15px;
  transition: transform 0.25s var(--ease);
}
.arrow-link:hover {
  gap: 15px;
  color: var(--accent-ink);
}
.section--ink .arrow-link:hover,
.focus-card .arrow-link:hover {
  color: var(--accent-2);
}

/* ---------- skip ---------- */
.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-sm);
  transform: translateY(-160%);
  transition: transform 0.2s;
}
.skip:focus {
  transform: none;
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  color: var(--paper);
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
    border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11, 29, 51, 0.55),
    rgba(11, 29, 51, 0)
  );
  opacity: 1;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}
.site-header.is-solid,
body.no-hero .site-header {
  background: rgba(248, 250, 252, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--ink);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 40px -30px rgba(11, 29, 51, 0.5);
}
.site-header.is-solid::after,
body.no-hero .site-header::after {
  opacity: 0;
}
.header-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}
.brand {
  flex: none;
  display: inline-flex;
  align-items: center;
}
.brand img {
  width: auto;
  height: 34px;
  transition: opacity 0.2s;
}
.brand-logo--dark {
  display: none;
}
.site-header.is-solid .brand-logo--dark,
body.no-hero .brand-logo--dark {
  display: block;
}
.site-header.is-solid .brand-logo--light,
body.no-hero .brand-logo--light {
  display: none;
}
.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
}
.nav a {
  position: relative;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 8px 0;
  opacity: 0.9;
  transition: opacity 0.2s;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav a:hover {
  opacity: 1;
}
.nav a:hover::after,
.nav a[aria-current='page']::after {
  transform: scaleX(1);
}
.nav a[aria-current='page'] {
  color: var(--accent-2);
  opacity: 1;
}
.site-header.is-solid .nav a[aria-current='page'],
body.no-hero .nav a[aria-current='page'] {
  color: var(--accent-ink);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.header-phone svg {
  width: 16px;
  height: 16px;
}
.header-phone:hover {
  color: var(--accent-2);
}
.site-header.is-solid .header-phone:hover,
body.no-hero .header-phone:hover {
  color: var(--accent-ink);
}
.burger {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  position: relative;
}
.burger span {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transform: translateX(-50%);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.burger span:nth-child(1) {
  top: 19px;
}
.burger span:nth-child(2) {
  top: 26px;
}
.burger[aria-expanded='true'] span:nth-child(1) {
  top: 22px;
  transform: translateX(-50%) rotate(45deg);
}
.burger[aria-expanded='true'] span:nth-child(2) {
  top: 22px;
  transform: translateX(-50%) rotate(-45deg);
}

/* ---------- mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  flex-direction: column;
  padding: calc(18px + env(safe-area-inset-top)) var(--gutter)
    calc(32px + env(safe-area-inset-bottom));
  background: var(--ink);
  color: var(--paper);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
    visibility 0.3s;
  overflow-y: auto;
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.mobile-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(32px, 7vh, 64px);
}
.mobile-menu-top img {
  height: 30px;
  width: auto;
}
.menu-close {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  background: transparent;
  color: var(--paper);
  display: grid;
  place-items: center;
}
.menu-close svg {
  width: 18px;
  height: 18px;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-dark);
  font-size: clamp(1.7rem, 8vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.mobile-nav a span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.mobile-nav a[aria-current='page'] {
  color: var(--accent-2);
}
.mobile-menu-foot {
  margin-top: auto;
  padding-top: 36px;
  display: grid;
  gap: 18px;
  font-size: 0.95rem;
  color: var(--muted-dark);
}
.mobile-menu-foot strong {
  display: block;
  color: var(--paper);
  font-size: 1.05rem;
  margin-bottom: 2px;
}
.mobile-menu-foot a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: var(--paper);
}
.mobile-menu-foot a svg {
  width: 17px;
  height: 17px;
  flex: none;
}
.mobile-menu-foot .btn {
  justify-self: start;
  margin-top: 8px;
}
.mobile-menu-foot .btn--accent {
  color: #ffffff;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: var(--header-h);
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  isolation: isolate;
}
.hero-media,
.page-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img,
.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-scrim,
.page-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
      90deg,
      rgba(11, 29, 51, 0.94) 0%,
      rgba(11, 29, 51, 0.78) 38%,
      rgba(11, 29, 51, 0.28) 72%,
      rgba(11, 29, 51, 0.12) 100%
    ),
    linear-gradient(0deg, rgba(11, 29, 51, 0.9) 0%, rgba(11, 29, 51, 0) 55%);
}
.hero-inner {
  padding-top: clamp(64px, 10vh, 150px);
  padding-bottom: clamp(36px, 6vh, 64px);
}
.hero-title {
  max-width: 14ch;
  font-size: clamp(2.75rem, 7.4vw, 6.9rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
  font-weight: 760;
}
.hero-title em {
  color: var(--accent-2);
}
.hero-lead {
  margin: 26px 0 0;
  max-width: 52ch;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  color: #d7e2ee;
}
.hero-actions {
  margin-top: 34px;
}
.hero-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 22px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.hero-facts div {
  display: grid;
  gap: 3px;
}
.hero-facts dt {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.hero-facts dd {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--paper);
}
.hero-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}
.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.scroll-cue svg {
  width: 16px;
  height: 16px;
  animation: bob 2.4s var(--ease) infinite;
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}

/* ---------- page hero ---------- */
.page-hero {
  position: relative;
  min-height: 74svh;
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--header-h) + 60px);
  padding-bottom: clamp(44px, 7vh, 80px);
  color: var(--paper);
  background: var(--ink);
  overflow: hidden;
  isolation: isolate;
}
.page-hero-inner {
  position: relative;
  z-index: 1;
}
.page-hero .h1,
.page-hero h1 {
  max-width: 17ch;
  font-size: clamp(2.4rem, 5.6vw, 5.1rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 760;
}
.page-hero .lead {
  margin-top: 22px;
  max-width: 56ch;
  color: #d7e2ee;
}
.page-hero .actions {
  margin-top: 30px;
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.breadcrumbs a:hover {
  color: var(--accent-2);
}
.breadcrumbs span {
  opacity: 0.5;
}
.breadcrumbs [aria-current='page'] {
  color: var(--paper);
  opacity: 1;
}

/* ---------- page head (no image) ---------- */
.page-head {
  padding-top: calc(var(--header-h) + clamp(64px, 9vw, 120px));
  padding-bottom: clamp(48px, 6vw, 80px);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.page-head h1 {
  max-width: 20ch;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  letter-spacing: -0.045em;
}
.page-head .lead {
  margin-top: 20px;
}
.page-head .breadcrumbs {
  color: var(--muted);
}
.page-head .breadcrumbs [aria-current='page'] {
  color: var(--ink);
  opacity: 1;
}

/* ---------- ticker ---------- */
.ticker {
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  border-block: 1px solid var(--line-dark);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 48s linear infinite;
}
.ticker:hover .ticker-track,
.ticker:focus-within .ticker-track {
  animation-play-state: paused;
}
.ticker-group {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 18px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker-group span::after {
  content: '◆';
  margin-left: 28px;
  color: var(--accent-2);
  font-size: 0.6rem;
  vertical-align: 2px;
}
@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ---------- split / media ---------- */
.split {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(32px, 6vw, 84px);
  align-items: center;
}
.split--reverse .split-media {
  order: 2;
}
.split-body .h2 {
  max-width: 17ch;
}
.split-body .lead {
  margin-top: 20px;
}
.split-body .actions {
  margin-top: 28px;
}
.split-media {
  position: relative;
}
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-2);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.media:hover img {
  transform: scale(1.03);
}
.media--portrait {
  aspect-ratio: 4 / 5;
}
.media--wide {
  aspect-ratio: 16 / 9;
}
.media--square {
  aspect-ratio: 1;
}
.media-caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.split-media .stat-card {
  position: absolute;
  left: clamp(-16px, -2vw, -28px);
  bottom: -28px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 20px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.stat-card strong {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  font-weight: 400;
  color: var(--accent-ink);
  line-height: 1;
}
.stat-card span {
  font-size: 0.76rem;
  line-height: 1.35;
  color: var(--muted);
  max-width: 12ch;
}
.checklist {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}
.checklist li {
  position: relative;
  padding-left: 26px;
  font-size: 0.96rem;
  line-height: 1.5;
}
.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border: 1px solid var(--accent);
  transform: rotate(45deg);
}
.section--ink .checklist li::before,
.focus-card .checklist li::before {
  border-color: var(--accent-2);
}

/* ---------- focus cards ---------- */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.focus-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(440px, 52vw, 600px);
  padding: clamp(24px, 3.4vw, 44px);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--paper);
  isolation: isolate;
}
.focus-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.focus-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(11, 29, 51, 0.3) 0%,
    rgba(11, 29, 51, 0.62) 42%,
    rgba(11, 29, 51, 0.93) 78%,
    rgba(11, 29, 51, 0.98) 100%
  );
}
.focus-card:hover img {
  transform: scale(1.045);
}
.focus-body {
  max-width: 46ch;
}
.focus-kicker {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(11, 29, 51, 0.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #bcdcf7;
}
.focus-body h3 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.04em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.focus-body p {
  margin: 12px 0 0;
  color: #d2deeb;
  font-size: 0.97rem;
}
.focus-body .checklist {
  margin-top: 20px;
}
.focus-body .checklist li {
  font-size: 0.88rem;
}
.focus-body .arrow-link {
  margin-top: 26px;
}

/* ---------- service cards ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 18px);
}
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 300px;
  padding: clamp(24px, 2.6vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
    border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.service-card:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  transform: translateY(-3px);
}
.service-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.service-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent-ink);
  transition: color 0.35s, border-color 0.35s;
}
.service-icon svg {
  width: 22px;
  height: 22px;
}
.service-card:hover .service-icon {
  color: var(--accent-2);
  border-color: var(--line-dark);
}
.service-num {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.service-card:hover .service-num {
  color: var(--muted-dark);
}
.service-card h3 {
  font-size: 1.28rem;
  letter-spacing: -0.025em;
}
.service-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
}
.service-card:hover p {
  color: #c2d2e2;
}
.service-card .arrow-link {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 6px;
  font-size: 0.7rem;
}
.service-card:hover .arrow-link {
  color: var(--accent-2);
}

/* ---------- media pictures ---------- */
.hero-media picture,
.page-hero-media picture,
.cta-media picture,
.focus-card picture,
.media picture,
.gallery-btn picture {
  display: block;
  height: 100%;
}

/* ---------- chips ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.chips span {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.section--ink .chips span,
.focus-card .chips span {
  border-color: var(--line-dark);
  color: var(--muted-dark);
}

/* ---------- tables ---------- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
}
.cal-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.94rem;
}
.cal-table th,
.cal-table td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.cal-table thead th {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
  border-bottom: 1px solid var(--line-strong);
}
.cal-table tbody th {
  width: 130px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.cal-table td {
  color: var(--muted);
}
.cal-table tr:last-child th,
.cal-table tr:last-child td {
  border-bottom: 0;
}
.section--paper2 .cal-table {
  background: var(--card);
  border: 1px solid var(--line);
}
.section--paper2 .cal-table th,
.section--paper2 .cal-table td {
  border-bottom-color: var(--line);
}

/* ---------- map locator ---------- */
.map {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #e6edf5;
}
.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.map-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: clamp(16px, 3vw, 28px);
  background: linear-gradient(135deg, #eef3f9 0%, #e2eaf3 55%, #d4e0ec 100%);
}
.map-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.map-pin {
  position: absolute;
  top: 33%;
  left: 58%;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--paper);
}
.map-pin::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 12px 30px -10px rgba(11, 29, 51, 0.55);
}
.map-pin::after {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px solid rgba(22, 88, 143, 0.45);
  animation: ping 2.8s var(--ease) infinite;
}
.map-pin svg {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
}
@keyframes ping {
  0% {
    transform: scale(0.85);
    opacity: 0.9;
  }
  70%,
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}
.map-panel {
  position: relative;
  z-index: 2;
  width: min(360px, 100%);
  padding: 20px;
  background: rgba(248, 250, 252, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 50px -34px rgba(11, 29, 51, 0.6);
}
.map-panel strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.map-panel p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
}
.map-panel .actions {
  margin-top: 14px;
  gap: 10px;
}
.map-panel .btn {
  min-height: 42px;
  padding: 0 16px;
  font-size: 0.7rem;
}
@media (prefers-reduced-motion: reduce) {
  .map-pin::after {
    animation: none;
  }
}

/* ---------- panels / values ---------- */
.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}
.panel {
  padding: clamp(24px, 3.2vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.panel h3 {
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  letter-spacing: -0.03em;
}
.panel p {
  margin: 12px 0 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
}
.panel .checklist {
  margin-top: 20px;
}
.panel .checklist li {
  font-size: 0.9rem;
}
.panel-kicker {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
}
.value-card {
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
}
.value-card .value-num {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-serif);
  font-size: 1.9rem;
  line-height: 1;
  color: var(--accent-ink);
}
.value-card h3 {
  font-size: 1.08rem;
}
.value-card p {
  margin: 8px 0 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}
.section--ink .panel {
  background: transparent;
  border-color: var(--line-dark);
  box-shadow: none;
}
.section--ink .panel p {
  color: var(--muted-dark);
}
.section--ink .value-card {
  border-top-color: var(--line-dark);
}
.section--ink .value-card .value-num {
  color: var(--accent-2);
}
.section--ink .value-card p {
  color: var(--muted-dark);
}

/* ---------- technical services (condomini) ---------- */
.section--geo {
  position: relative;
  overflow: hidden;
}
.geo-mark {
  position: absolute;
  top: -70px;
  right: -90px;
  width: min(460px, 46vw);
  color: var(--accent);
  opacity: 0.07;
  pointer-events: none;
}
.geo-mark-svg {
  display: block;
  width: 100%;
  height: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}
.tech-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}
.tech-card {
  padding: clamp(22px, 2.6vw, 34px);
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius);
  background: var(--card);
  transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease),
    background 0.35s var(--ease);
}
.tech-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
  border-top-color: var(--accent-ink);
}
.tech-kicker {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.tech-card h3 {
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  letter-spacing: -0.03em;
}
.tech-card p {
  margin: 10px 0 0;
  font-size: 0.93rem;
  line-height: 1.62;
  color: var(--muted);
}
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.tech-tags li {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.diag-table {
  min-width: 880px;
}
.diag-table tbody th {
  width: 220px;
  white-space: normal;
}
.diag-table td {
  width: auto;
}
.norm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
}
.norm-col {
  padding: clamp(22px, 2.8vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.norm-title {
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}
.norm-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.norm-list li {
  position: relative;
  padding: 11px 0 11px 26px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}
.norm-list li:first-child {
  border-top: 0;
  padding-top: 2px;
}
.norm-list li:first-child::before {
  top: 9px;
}
.norm-list li::before {
  content: '';
  position: absolute;
  top: 17px;
  left: 2px;
  width: 7px;
  height: 7px;
  background: var(--accent);
  transform: rotate(45deg);
}
.norm-list--check li::before {
  top: 17px;
  width: 9px;
  height: 5px;
  background: none;
  border-left: 1.5px solid var(--accent-ink);
  border-bottom: 1.5px solid var(--accent-ink);
  transform: rotate(-45deg);
}
.norm-note {
  margin-top: 22px;
  max-width: 92ch;
  color: var(--muted);
}
.glossary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(24px, 3.4vw, 48px);
  margin: 0;
}
.glossary-item {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.glossary-item dt {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.glossary-item dd {
  margin: 6px 0 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- services catalog (servizi) ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.stats-band--slim {
  padding-block: clamp(22px, 3vw, 34px);
  border-top: 0;
}
.stats-band--slim .stat strong {
  font-size: clamp(1.9rem, 3.2vw, 2.9rem);
}
.stats-band--slim .stat span {
  font-size: 0.68rem;
}
.catalog-toolbar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.catalog-search {
  position: relative;
  width: min(560px, 100%);
}
.catalog-search-icon {
  position: absolute;
  top: 50%;
  left: 20px;
  width: 18px;
  height: 18px;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}
.catalog-search input {
  width: 100%;
  min-height: 56px;
  padding: 0 22px 0 52px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.catalog-search input::placeholder {
  color: var(--muted);
  opacity: 0.85;
}
.catalog-search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(22, 88, 143, 0.18);
}
.catalog-toolbar .filter {
  min-height: 38px;
  padding: 0 13px;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
}
.catalog-toolbar .filter span {
  margin-left: 6px;
  font-size: 0.62rem;
  font-variant-numeric: tabular-nums;
  opacity: 0.65;
}
.catalog-status {
  margin: 18px 0 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 16px);
  margin-top: 18px;
}
.svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.svc-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s var(--ease);
}
.svc-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}
.svc-card:hover::before {
  transform: scaleY(1);
}
.svc-cat {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.svc-card h3 {
  margin-top: 8px;
  font-size: 1.02rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.svc-card p {
  margin: 8px 0 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--muted);
}
.svc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.svc-tags li {
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.svc-hidden {
  display: none;
}
.catalog-empty {
  margin-top: 18px;
  padding: 34px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}
.catalog-empty button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent-ink);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.catalog-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  margin-top: clamp(24px, 3vw, 36px);
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
}
.catalog-cta p {
  max-width: 62ch;
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}
.catalog-cta strong {
  color: var(--ink);
}
html:not(.js) .catalog-toolbar {
  display: none;
}

/* ---------- condominium types ---------- */
.tipo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 18px);
}
.tipo-card {
  position: relative;
  padding: clamp(24px, 2.8vw, 34px);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}
.tipo-card::after {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--accent-2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.tipo-card:hover::after {
  transform: scaleX(1);
}
.tipo-num {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  line-height: 1;
  color: var(--accent-2);
}
.tipo-card h3 {
  margin-top: 14px;
  font-size: 1.16rem;
  letter-spacing: -0.02em;
}
.tipo-card p {
  margin: 8px 0 0;
  font-size: 0.86rem;
  line-height: 1.58;
  color: var(--muted-dark);
}

/* ---------- steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 26px);
  counter-reset: step;
}
.steps li {
  position: relative;
  padding-top: 22px;
  border-top: 1px solid var(--line-strong);
}
.steps li::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 34px;
  height: 2px;
  background: var(--accent);
}
.step-num {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-serif);
  font-size: 2.2rem;
  line-height: 1;
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
}
.steps h3 {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.steps p {
  margin: 8px 0 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
}
.section--ink .steps li {
  border-top-color: var(--line-dark);
}
.section--ink .step-num {
  color: var(--accent-2);
}
.section--ink .steps p {
  color: var(--muted-dark);
}

/* ---------- stats band ---------- */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 40px);
  padding-block: clamp(32px, 4vw, 48px);
  border-block: 1px solid var(--line);
}
.stat {
  display: grid;
  gap: 4px;
}
.stat strong {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4.4vw, 4.2rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--accent-ink);
}
.stat span {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.section--ink .stats-band {
  border-color: var(--line-dark);
}
.section--ink .stat strong {
  color: var(--accent-2);
}
.section--ink .stat span {
  color: var(--muted-dark);
}

/* ---------- gallery ---------- */
.gallery-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.filter:hover {
  border-color: var(--ink);
}
.filter[aria-pressed='true'] {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}
.filter[aria-pressed='true'] span {
  opacity: 1;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 16px);
}
.gallery-item {
  grid-column: span 4;
  min-width: 0;
}
.gallery-item--wide {
  grid-column: span 4;
}
/* home: two large images per row */
.gallery--duo .gallery-item {
  grid-column: span 6;
}
.gallery--duo .gallery-btn {
  aspect-ratio: 16 / 10;
}
/* progetti: masonry via CSS columns, no empty cells */
.gallery--masonry {
  display: block;
  columns: 3;
  column-gap: clamp(10px, 1.4vw, 16px);
}
.gallery--masonry .gallery-item {
  display: block;
  break-inside: avoid;
  page-break-inside: avoid;
  margin-bottom: clamp(10px, 1.4vw, 16px);
}
.gallery--masonry .gallery-btn {
  aspect-ratio: 4 / 3;
}
.gallery--masonry .gallery-item--wide .gallery-btn {
  aspect-ratio: 16 / 10;
}
.gallery--masonry .gallery-item--tall .gallery-btn {
  aspect-ratio: 3 / 4;
}
.gallery-item--tall .gallery-btn {
  aspect-ratio: 3 / 4;
}
.gallery-btn {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-2);
  color: var(--paper);
  text-align: left;
}
.gallery-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.gallery-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 45%,
    rgba(11, 29, 51, 0.86) 100%
  );
  opacity: 0;
  transition: opacity 0.35s;
}
.gallery-btn:hover img,
.gallery-btn:focus-visible img {
  transform: scale(1.04);
}
.gallery-btn:hover::after,
.gallery-btn:focus-visible::after {
  opacity: 1;
}
.gallery-cap {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s, transform 0.35s var(--ease);
}
.gallery-cap svg {
  width: 16px;
  height: 16px;
  flex: none;
}
.gallery-btn:hover .gallery-cap,
.gallery-btn:focus-visible .gallery-cap {
  opacity: 1;
  transform: none;
}
.gallery-item--hidden {
  display: none;
}

/* condomini: gallery compatta a due colonne anche su mobile */
@media (max-width: 600px) {
  .gallery--condo.gallery--masonry {
    columns: 2;
  }
  .gallery--condo .gallery-btn {
    border-radius: 10px;
  }
  .gallery--condo .gallery-cap {
    left: 10px;
    right: 10px;
    bottom: 9px;
    gap: 6px;
    font-size: 0.58rem;
    line-height: 1.3;
    letter-spacing: 0.04em;
  }
  .gallery--condo .gallery-cap span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .gallery--condo .gallery-cap svg {
    width: 13px;
    height: 13px;
  }
}

/* ---------- quote ---------- */
.quote {
  position: relative;
  padding-block: clamp(72px, 10vw, 140px);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}
.quote::before {
  content: '“';
  position: absolute;
  top: -0.12em;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-serif);
  font-size: clamp(14rem, 30vw, 30rem);
  line-height: 1;
  color: rgba(127, 185, 236, 0.12);
  pointer-events: none;
}
.quote-inner {
  position: relative;
  max-width: 1000px;
  text-align: center;
}
.quote blockquote {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.7rem, 3.6vw, 3.2rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.quote blockquote em {
  color: var(--accent-2);
  font-style: italic;
}
.quote footer {
  margin-top: 28px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.quote footer::before {
  content: '';
  display: block;
  width: 36px;
  height: 1px;
  margin: 0 auto 18px;
  background: var(--accent);
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 940px;
  border-bottom: 1px solid var(--line);
}
.faq-item {
  border-top: 1px solid var(--line);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  font-weight: 650;
  letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-icon {
  position: relative;
  flex: none;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: transform 0.3s var(--ease), background 0.3s;
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 1.4px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease);
}
.faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  background: var(--accent);
  border-color: var(--accent);
}
.faq-item[open] .faq-icon::before,
.faq-item[open] .faq-icon::after {
  background: var(--paper);
}
.faq-body {
  padding: 0 0 24px;
  max-width: 72ch;
  color: var(--muted);
  font-size: 0.98rem;
}
.faq-body p {
  margin: 0 0 10px;
}
.faq-body p:last-child {
  margin-bottom: 0;
}
.faq-body a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.section--ink .faq,
.section--ink .faq-item {
  border-color: var(--line-dark);
}
.section--ink .faq-item summary {
  color: var(--paper);
}
.section--ink .faq-icon {
  border-color: var(--line-dark);
}
.section--ink .faq-icon::before,
.section--ink .faq-icon::after {
  background: var(--paper);
}
.section--ink .faq-body {
  color: var(--muted-dark);
}

/* ---------- CTA band ---------- */
.cta {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(420px, 52vw, 600px);
  padding-block: clamp(64px, 8vw, 100px);
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
}
.cta-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.cta-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(11, 29, 51, 0.94) 0%,
    rgba(11, 29, 51, 0.72) 55%,
    rgba(11, 29, 51, 0.35) 100%
  );
}
.cta h2 {
  max-width: 17ch;
  font-size: clamp(2.2rem, 4.8vw, 4.4rem);
  letter-spacing: -0.045em;
}
.cta .lead {
  margin-top: 18px;
  max-width: 52ch;
  color: #d7e2ee;
}
.cta .actions {
  margin-top: 30px;
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding-top: clamp(64px, 8vw, 100px);
}
.footer-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: clamp(44px, 6vw, 72px);
  border-bottom: 1px solid var(--line-dark);
}
.footer-cta .h2 {
  max-width: 18ch;
  font-size: clamp(2rem, 4vw, 3.4rem);
}
.footer-mail {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  border-bottom: 1px solid var(--line-dark);
  padding-bottom: 6px;
  transition: color 0.2s, border-color 0.2s;
}
.footer-mail:hover {
  color: var(--accent-2);
  border-color: var(--accent-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1.2fr;
  gap: clamp(28px, 4vw, 56px);
  padding-block: clamp(44px, 6vw, 72px);
}
.footer-brand img {
  height: 34px;
  width: auto;
  margin-bottom: 20px;
}
.footer-brand p {
  margin: 0;
  max-width: 34ch;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--muted-dark);
}
.socials {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}
.socials a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  color: var(--paper);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.socials a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}
.socials svg {
  width: 17px;
  height: 17px;
}
.footer-col h3 {
  margin-bottom: 16px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.footer-col ul {
  display: grid;
  gap: 10px;
}
.footer-col a,
.footer-col address {
  font-style: normal;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted-dark);
  transition: color 0.2s;
}
.footer-col a:hover {
  color: var(--paper);
}
.footer-col address {
  display: grid;
  gap: 10px;
}
.footer-col address strong {
  color: var(--paper);
  font-weight: 600;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 calc(22px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-dark);
  font-size: 0.74rem;
  color: var(--muted-dark);
}
.footer-bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-bottom a:hover {
  color: var(--paper);
}

/* ---------- forms ---------- */
.form-card {
  padding: clamp(24px, 3.4vw, 44px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.form-intro {
  margin: 0 0 26px;
  font-size: 0.95rem;
  color: var(--muted);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 24px;
}
.field {
  display: grid;
  gap: 8px;
}
.field--full {
  grid-column: 1 / -1;
}
.field label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.field label .req {
  color: var(--accent-ink);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 2px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.2s;
}
.field textarea {
  resize: vertical;
  min-height: 120px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-bottom-color: var(--accent);
}
.field input::placeholder,
.field textarea::placeholder {
  color: #98a1ac;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2356606d' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  padding-right: 24px;
}
.check {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
}
.check input {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
}
.check a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 6px;
}
.form-status {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}
.form-status.is-ok {
  color: #1f6b43;
}
.form-status.is-error {
  color: #a3372b;
}
.form-note {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- contact ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.contact-info {
  display: grid;
  gap: 34px;
}
.info-block h2,
.info-block h3 {
  margin-bottom: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.info-block p,
.info-block address {
  margin: 0;
  font-style: normal;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--ink);
}
.info-block a:hover {
  color: var(--accent-ink);
}
.info-block .big-link {
  display: inline-block;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.info-list {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}
.map {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-2);
}
.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) contrast(1.03);
}
.map-link {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 10px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.map-link:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ---------- prose ---------- */
.prose {
  max-width: 78ch;
  padding-block: clamp(48px, 6vw, 80px);
}
.prose h2 {
  margin: 2.2em 0 0.6em;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  letter-spacing: -0.03em;
}
.prose h3 {
  margin: 1.8em 0 0.4em;
  font-size: 1.15rem;
}
.prose p,
.prose li {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--muted);
}
.prose p {
  margin: 0 0 1em;
}
.prose ul,
.prose ol {
  margin: 0 0 1.2em;
  padding-left: 1.2em;
  list-style: disc;
}
.prose ol {
  list-style: decimal;
}
.prose li {
  margin-bottom: 0.4em;
}
.prose a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2em 0;
  font-size: 0.9rem;
}
.prose th,
.prose td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.prose th {
  color: var(--ink);
  font-weight: 700;
}
.notice {
  padding: 18px 20px;
  border-left: 2px solid var(--accent);
  background: var(--paper-2);
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- mobile bar ---------- */
.mobile-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  grid-template-columns: 1fr 1.2fr;
  gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(248, 250, 252, 0.96);
  border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.mobile-bar .btn {
  min-height: 48px;
  padding: 0 14px;
  font-size: 0.72rem;
}

/* ---------- cookie note ---------- */
.cookie-note {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(520px, calc(100vw - 40px));
  padding: 10px 10px 10px 18px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.65);
}
.cookie-note p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #c9d6e4;
}
.cookie-note a {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-note .cookie-actions {
  display: flex;
  align-items: center;
  margin-left: auto;
  flex: none;
}
.cookie-note button {
  min-height: 34px;
  padding: 0 18px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- lightbox ---------- */
.lightbox {
  width: min(1100px, 94vw);
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}
.lightbox::backdrop {
  background: rgba(6, 12, 22, 0.86);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.lightbox-inner {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  max-height: 92vh;
}
.lightbox img {
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  background: #08101c;
}
.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 20px;
  border-top: 1px solid var(--line-dark);
}
.lightbox-cap {
  font-size: 0.82rem;
  color: var(--muted-dark);
}
.lightbox-close,
.lightbox-nav {
  display: grid;
  place-items: center;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  background: transparent;
  color: var(--paper);
}
.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 44px;
  height: 44px;
  background: rgba(11, 29, 51, 0.7);
}
.lightbox-close svg {
  width: 18px;
  height: 18px;
}
.lightbox-nav {
  width: 42px;
  height: 42px;
}
.lightbox-nav svg {
  width: 18px;
  height: 18px;
}
.lightbox-nav:hover,
.lightbox-close:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

/* ---------- reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .scroll-cue svg,
  .ticker-track {
    animation: none;
  }
  .ticker {
    overflow-x: auto;
  }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  :root {
    --header-h: 76px;
  }
  .nav {
    display: none;
  }
  .burger {
    display: block;
  }
  .header-phone {
    display: none;
  }
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 30px;
  }
  .section-head {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .section-head-body .h2 {
    max-width: 22ch;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .gallery-item {
    grid-column: span 6;
  }
  .gallery-item--wide {
    grid-column: span 6;
  }
  .gallery--masonry {
    columns: 2;
  }
  .catalog-toolbar .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .catalog-toolbar .filters::-webkit-scrollbar {
    display: none;
  }
  .catalog-toolbar .filter {
    flex: none;
  }
}
@media (max-width: 860px) {
  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }
  .mobile-bar {
    display: grid;
  }
  .hero {
    min-height: 94svh;
  }
  .hero-title {
    font-size: clamp(2.6rem, 12vw, 4.1rem);
  }
  .hero-facts {
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
  }
  .hero-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .page-hero {
    min-height: 68svh;
  }
  .split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .split--reverse .split-media {
    order: 0;
  }
  .split-media .stat-card {
    left: 16px;
    bottom: 16px;
    padding: 14px 18px;
  }
  .stat-card strong {
    font-size: 1.8rem;
  }
  .focus-grid {
    grid-template-columns: 1fr;
  }
  .focus-card {
    min-height: 460px;
  }
  .focus-card::before {
    background: linear-gradient(
      180deg,
      rgba(11, 29, 51, 0.5) 0%,
      rgba(11, 29, 51, 0.82) 30%,
      rgba(11, 29, 51, 0.95) 70%,
      rgba(11, 29, 51, 0.98) 100%
    );
  }
  .value-grid {
    grid-template-columns: 1fr;
  }
  .bento {
    grid-template-columns: 1fr;
  }
  .service-card {
    min-height: 0;
  }
  .steps {
    grid-template-columns: 1fr;
    row-gap: 0;
  }
  .steps li {
    padding: 18px 0 18px 0;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 54px 1fr;
    column-gap: 12px;
  }
  .steps li::before {
    display: none;
  }
  .step-num {
    grid-row: span 2;
    margin: 0;
    font-size: 1.9rem;
  }
  .steps h3 {
    align-self: end;
  }
  .steps p {
    margin-top: 2px;
  }
  .stats-band {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-item,
  .gallery-item--wide {
    grid-column: span 6;
  }
  .gallery-cap {
    opacity: 1;
    transform: none;
  }
  .gallery-btn::after {
    opacity: 1;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .panel-grid {
    grid-template-columns: 1fr;
  }
  .tech-grid {
    grid-template-columns: 1fr;
  }
  .norm-grid {
    grid-template-columns: 1fr;
  }
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tipo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-cta {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .cookie-note {
    left: 12px;
    right: 12px;
    bottom: calc(78px + env(safe-area-inset-bottom));
    width: auto;
    padding: 9px 9px 9px 15px;
    gap: 10px;
  }
  .cookie-note p {
    font-size: 0.72rem;
  }
  .cookie-note button {
    min-height: 32px;
    padding: 0 14px;
  }
  .cta {
    min-height: 460px;
  }
}
@media (max-width: 760px) {
  .diag-table {
    display: block;
    min-width: 0;
  }
  .diag-table thead {
    display: none;
  }
  .diag-table tbody {
    display: grid;
    gap: 10px;
  }
  .diag-table tr {
    display: block;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
  }
  .diag-table tbody th,
  .diag-table td {
    display: block;
    width: auto;
    padding: 0;
    border: 0;
    white-space: normal;
  }
  .diag-table tbody th {
    margin-bottom: 10px;
    font-size: 0.98rem;
    letter-spacing: -0.01em;
  }
  .diag-table td {
    margin-top: 9px;
    padding-top: 9px;
    border-top: 1px dashed var(--line);
  }
  .diag-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-ink);
  }
  .section--paper2 .diag-table {
    border: 0;
    background: transparent;
  }
}
@media (max-width: 600px) {
  .brand img {
    height: 30px;
  }
  .header-actions .btn {
    display: none;
  }
  .hero {
    min-height: 92svh;
  }
  .hero-actions .btn,
  .actions .btn {
    width: 100%;
  }
  .hero-actions,
  .actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-facts {
    grid-template-columns: 1fr 1fr;
    padding-bottom: 20px;
  }
  .stats-band {
    grid-template-columns: 1fr 1fr;
    gap: 22px 16px;
  }
  .gallery-item,
  .gallery-item--wide,
  .gallery--duo .gallery-item {
    grid-column: span 12;
  }
  .gallery--masonry {
    columns: 1;
  }
  .glossary {
    grid-template-columns: 1fr;
  }
  .catalog-grid,
  .tipo-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .page-head,
  .page-hero {
    padding-top: calc(var(--header-h) + 56px);
  }
  .page-hero {
    min-height: 0;
    padding-bottom: 56px;
  }
  .page-hero .actions .btn {
    width: 100%;
  }
  .map {
    aspect-ratio: 1;
  }
}
@media (hover: none) {
  .media:hover img,
  .focus-card:hover img,
  .gallery-btn:hover img {
    transform: none;
  }
}

/* ==========================================================================
   Editorial layer — blueprint, index, national coverage
   ========================================================================== */
::selection {
  background: var(--accent);
  color: #ffffff;
}
.hero-inner {
  position: relative;
  z-index: 1;
}
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(
      to right,
      rgba(255, 255, 255, 0.07) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: clamp(56px, 7vw, 104px) clamp(56px, 7vw, 104px);
  -webkit-mask-image: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.85),
    transparent 74%
  );
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.85), transparent 74%);
}
.hero-rail {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: clamp(14px, 2.4vw, 34px);
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  pointer-events: none;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.hero-rail span {
  writing-mode: vertical-rl;
}
.hero-rail i {
  width: 1px;
  height: clamp(34px, 5vh, 58px);
  background: linear-gradient(
    180deg,
    transparent,
    rgba(255, 255, 255, 0.55),
    transparent
  );
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(
      to right,
      rgba(255, 255, 255, 0.055) 1px,
      transparent 1px
    ),
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.055) 1px,
      transparent 1px
    );
  background-size: clamp(56px, 7vw, 104px) clamp(56px, 7vw, 104px);
  -webkit-mask-image: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.75),
    transparent 78%
  );
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.75), transparent 78%);
}

/* numbered section index: serif numeral, small caps label */
.section-label span {
  min-width: 2ch;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 0.85;
  letter-spacing: 0;
  color: var(--accent);
}
.section--ink .section-label span {
  color: var(--accent-2);
}

/* blueprint paper */
.section--paper2 {
  background-color: var(--paper-2);
  background-image: linear-gradient(
      to right,
      rgba(11, 29, 51, 0.035) 1px,
      transparent 1px
    ),
    linear-gradient(
      to bottom,
      rgba(11, 29, 51, 0.035) 1px,
      transparent 1px
    );
  background-size: clamp(64px, 7vw, 96px) clamp(64px, 7vw, 96px);
}

/* service cards: accent rule, serif index, rotating icon */
.service-card {
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: -1px -1px auto -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.service-card:hover::before {
  transform: scaleX(1);
}
.service-num {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  color: var(--line-strong);
  transition: color 0.35s var(--ease);
}
.service-card:hover .service-num {
  color: var(--accent-2);
}
.service-card .service-icon {
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease),
    background 0.35s var(--ease), transform 0.55s var(--ease);
}
.service-card:hover .service-icon {
  background: rgba(127, 185, 236, 0.12);
  transform: rotate(-7deg);
}
.arrow-link:hover svg,
.btn:hover svg {
  transform: translateX(3px);
}

/* panels: bottom accent reveal */
.panel {
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.3s,
    box-shadow 0.4s var(--ease);
}
.panel::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.panel:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 26px 50px -40px rgba(11, 29, 51, 0.55);
}
.panel:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* offset architectural frame around editorial media */
.split-media {
  position: relative;
}
.split-media .media {
  position: relative;
  z-index: 1;
}
@media (min-width: 861px) {
  .split-media::after {
    content: '';
    position: absolute;
    inset: 18px -18px -18px 18px;
    z-index: 0;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    pointer-events: none;
    transition: transform 0.6s var(--ease);
  }
  .split:hover .split-media::after {
    transform: translate(-6px, -6px);
  }
}

/* oversized footer wordmark */
.footer-mark {
  margin-top: clamp(8px, 2vw, 28px);
  overflow: hidden;
  font-weight: 800;
  font-size: clamp(5rem, 17.5vw, 16rem);
  line-height: 0.72;
  letter-spacing: -0.07em;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}
.footer-mark::after {
  content: 'CELORI';
  display: block;
  color: rgba(255, 255, 255, 0.045);
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.14);
}

@media (max-width: 1100px) {
  .hero-rail {
    display: none;
  }
}
@media (max-width: 860px) {
  .hero-grid,
  .page-hero::before {
    opacity: 0.7;
  }
  .section-label span {
    font-size: 1.2rem;
  }
  .footer-mark {
    font-size: clamp(4.4rem, 24vw, 7rem);
  }
}

/* ---------- print ---------- */
@media print {
  .site-header,
  .mobile-menu,
  .mobile-bar,
  .cookie-note,
  .ticker,
  .cta,
  .site-footer .footer-cta,
  .scroll-cue {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
    padding: 0;
  }
  a {
    color: #000;
    text-decoration: underline;
  }
  .hero,
  .page-hero {
    min-height: 0;
    color: #000;
    background: #fff;
    padding: 20px 0;
  }
  .hero-media,
  .page-hero-media,
  .hero-scrim,
  .page-hero-scrim {
    display: none;
  }
  .section {
    padding-block: 24px;
  }
  .js .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
