/* Qappuccino Architectural Premium — design tokens via CSS variables from BaseLayout */

:root {
  color-scheme: light;
  --color-primary: var(--primary, #151515);
  --color-accent: var(--accent, #c99b58);
  --color-accent-100: color-mix(in oklab, var(--color-accent) 18%, var(--color-bg));
  --color-accent-200: color-mix(in oklab, var(--color-accent) 28%, var(--color-bg));
  --color-accent-300: color-mix(in oklab, var(--color-accent) 38%, var(--color-bg));
  --color-accent-600: color-mix(in oklab, var(--color-accent) 88%, #000);
  --color-accent-700: color-mix(in oklab, var(--color-accent) 72%, #000);
  --color-bg: var(--bg, #ffffff);
  --color-bg-soft: var(--bg-soft, #f5f2ed);
  --color-dark: var(--dark, #151515);
  --color-dark-soft: color-mix(in oklab, var(--color-dark) 88%, #2a2a2a);
  --color-text: color-mix(in oklab, var(--color-primary) 92%, black);
  --color-muted: color-mix(in oklab, var(--color-text) 52%, var(--color-bg));
  --color-border: color-mix(in oklab, var(--color-text) 12%, var(--color-bg));

  --font-body: system-ui, -apple-system, sans-serif;
  --font-heading: var(--font-body);
  --font-subheading: var(--font-heading);

  --radius: 20px;
  --radius-button: var(--radius);
  --radius-card: var(--radius);
  --radius-image: var(--radius);

  --container-width: var(--container, 1320px);
  --site-gutter: clamp(20px, 4vw, 48px);
  --section-spacing: var(--section, clamp(64px, 8vw, 120px));

  --shadow-soft: 0 24px 60px rgba(21, 21, 21, 0.08);
  --shadow-strong: 0 30px 80px rgba(21, 21, 21, 0.14);
  --shadow-btn: 0 14px 34px color-mix(in oklab, var(--color-accent) 35%, transparent);
  --shadow-btn-sm: 0 10px 28px color-mix(in oklab, var(--color-accent) 32%, transparent);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-height: 96px;
}

/* Aspetto → Layout → Shadow = No */
body.no-shadows {
  --shadow-soft: none;
  --shadow-strong: none;
  --shadow-btn: none;
  --shadow-btn-sm: none;
}
body.no-shadows .btn-primary,
body.no-shadows .btn-primary:hover,
body.no-shadows .site-header__cta.btn-primary,
body.no-shadows .site-header__cta.btn-primary:hover {
  box-shadow: none !important;
  filter: none;
}

@media (prefers-reduced-motion: reduce) {
  :root { --ease: linear; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-body-size, 1rem);
  font-weight: var(--text-body-weight, 400);
  line-height: 1.15;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* Typography — dimensioni e pesi configurabili dal CMS (design.typography) */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  margin: 0;
}
.display-title {
  font-size: var(--text-h2-size, 2.25rem);
  font-weight: var(--text-h2-weight, 700);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.page-title {
  font-family: var(--font-body);
  font-weight: var(--text-h1-weight, 800);
  font-size: var(--text-h1-size, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0;
}
h1 {
  font-size: var(--text-h1-size, 2.75rem);
  font-weight: var(--text-h1-weight, 800);
  line-height: 1.15;
}
h2 {
  font-size: var(--text-h2-size, 2.25rem);
  font-weight: var(--text-h2-weight, 700);
  line-height: 1.15;
  font-family: var(--font-subheading);
}
h3 {
  font-size: var(--text-h3-size, 1.375rem);
  font-weight: var(--text-h3-weight, 700);
  line-height: 1.15;
  font-family: var(--font-subheading);
}
h4 {
  font-size: var(--text-h4-size, 1.125rem);
  font-weight: var(--text-h4-weight, 600);
  line-height: 1.15;
  font-family: var(--font-subheading);
}
h5 {
  font-size: var(--text-h5-size, 1rem);
  font-weight: var(--text-h5-weight, 600);
  line-height: 1.15;
  font-family: var(--font-subheading);
}
.section-title {
  font-family: var(--font-subheading);
  font-weight: var(--text-h2-weight, 700);
  font-size: var(--text-h2-size, 2.25rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 clamp(10px, 1.5vw, 16px);
}

h1 em, h1 mark, h2 em, h2 mark, .display-title em, .display-title mark {
  font-style: normal;
  color: var(--color-accent);
  background: none;
}

.lead {
  font-size: var(--text-lead-size, 1.125rem);
  font-weight: var(--text-lead-weight, 400);
  line-height: 1.3;
  color: var(--color-muted);
  max-width: 100%;
  letter-spacing: -0.01em;
  margin-top: clamp(8px, 1.2vw, 12px);
}
.meta { font-size: 0.9rem; color: var(--color-muted); letter-spacing: 0.02em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  justify-self: start;
  align-self: start;
  padding: 8px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: color-mix(in oklab, var(--color-bg) 80%, var(--color-accent));
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: clamp(8px, 1.3vw, 12px);
}
.section-dark .eyebrow,
.section--hero.section-dark .eyebrow {
  border-color: rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.72);
}

.lead a, .prose a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}
.lead a:hover, .prose a:hover { color: var(--color-accent-700); }

.prose p { margin: 0 0 1em; }
.prose p { line-height: 1.3; }
.prose blockquote {
  margin: 0;
  padding: clamp(20px, 3vw, 32px) clamp(24px, 4vw, 40px);
  border-left: 4px solid var(--color-accent);
  background: color-mix(in oklab, var(--color-bg-soft) 80%, white);
  border-radius: var(--radius);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.5;
}
.prose blockquote cite {
  display: block;
  margin-top: 12px;
  font-size: 0.9rem;
  font-style: normal;
  opacity: 0.7;
}

/* Layout — contenuto allineato al logo/header */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--site-gutter);
}
.page-main { min-height: 40vh; }
.page-home .page-main > .section--hero-overlay--home:first-child {
  padding-top: calc(var(--header-height, 88px) + clamp(64px, 8vh, 96px));
}

.section {
  padding-block: var(--section-spacing);
  position: relative;
}
.section--hero {
  padding-block: clamp(48px, 6vw, 88px);
  min-height: min(720px, 92vh);
  display: flex;
  align-items: center;
}
.section--hero.section-dark { background: var(--color-dark); color: #f5f2ed; }

/* Hero overlay — full-bleed background, testo a sinistra (stile editoriale) */
.section--hero-overlay {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.section--hero-overlay--home {
  min-height: min(92vh, 900px);
  padding-block: clamp(64px, 8vh, 96px) clamp(64px, 8vh, 100px);
}
.section--hero-overlay--sub {
  min-height: min(52vh, 520px);
  padding-block: clamp(48px, 6vh, 72px) clamp(40px, 5vh, 64px);
}
.hero-overlay__content.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--site-gutter);
}
.hero-overlay__text {
  max-width: 100%;
}
.hero-overlay__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-overlay__bg img,
.hero-overlay__bg .placeholder-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 100%;
  border-radius: 0;
  box-shadow: none;
}
.hero-overlay__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(21, 21, 21, 0.88) 0%,
    rgba(21, 21, 21, 0.72) 42%,
    rgba(21, 21, 21, 0.35) 100%
  );
  pointer-events: none;
}
.hero-overlay__content {
  position: relative;
  z-index: 2;
}
.hero-overlay__text .display-title {
  font-family: var(--font-body);
  font-weight: var(--text-h1-weight, 800);
  font-size: var(--text-h1-size, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: clamp(10px, 1.6vw, 16px);
  max-width: 18ch;
}
.hero-overlay__text .page-title {
  color: #fff;
  margin-bottom: 0.15em;
}
.hero-overlay__text .lead {
  color: rgba(255, 255, 255, 0.78);
  max-width: 100%;
  font-size: var(--text-lead-size, 1.125rem);
  font-weight: var(--text-lead-weight, 400);
  margin-top: clamp(6px, 1vw, 10px);
  letter-spacing: -0.01em;
}
.eyebrow--hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  justify-self: start;
  align-self: start;
  padding: 10px 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 4px;
}
.eyebrow--hero::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: var(--radius);
  background: var(--color-accent);
  flex-shrink: 0;
}
.hero-overlay__text--center {
  margin-inline: auto;
  text-align: center;
}
.hero-overlay__text--center .lead { margin-inline: auto; }
.section--hero-overlay .btn-outline {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}
.section--hero-overlay .btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
@media (max-width: 720px) {
  .section--hero-overlay--home {
    min-height: min(88vh, 760px);
  }
  .section--hero-overlay--sub {
    min-height: clamp(500px, 68svh, 640px);
    padding-block: calc(var(--header-height, 88px) + 68px) 56px;
  }
  .section--hero-overlay--sub .eyebrow--hero {
    display: none;
  }
}
.grid-3:has(> :nth-child(2):last-child) {
  grid-template-columns: 1fr;
}

/* Team */
.team-grid--stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 28px);
}
.team-card--row {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: clamp(24px, 4vw, 40px);
  align-items: center;
  text-align: left;
}
.team-card--row .team-card__media {
  margin: 0;
  max-height: 320px;
}
.team-card--row .team-card__media.media-frame--3x4 {
  aspect-ratio: 3/4;
  min-height: auto;
}
.team-card__body h3 { margin: 0; }
.team-card__role {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 12px;
  border-radius: var(--radius);
  border: 1px solid rgba(201, 155, 88, 0.35);
  background: rgba(201, 155, 88, 0.1);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
}
@media (max-width: 720px) {
  .team-card--row {
    grid-template-columns: 1fr;
  }
  .team-card--row .team-card__media {
    max-height: none;
  }
}
.team-grid:not(.team-grid--stack) .premium-card { text-align: center; }
.team-grid:not(.team-grid--stack) .media-frame { margin-bottom: 16px; }
.section-light { background: #ffffff; }
.section-soft { background: var(--color-bg-soft); }
.section-dark {
  background: var(--color-dark);
  color: #f0ebe3;
}
.section-dark .lead,
.section-dark .meta { color: rgba(255,255,255,0.68); }
.section-accent {
  background: linear-gradient(135deg, color-mix(in oklab, var(--color-accent) 18%, var(--color-bg-soft)), var(--color-bg-soft));
}
.section-editorial { background: var(--color-bg); }

.section-custom {
  position: relative;
}
.section-custom--dark {
  color: #f0ebe3;
}
.section-custom--dark .lead,
.section-custom--dark .meta,
.section-custom--dark .eyebrow {
  color: rgba(255, 255, 255, 0.68);
}
.section-custom--dark h2,
.section-custom--dark h3,
.section-custom--dark .section-title {
  color: #fff;
}
.section-custom--light {
  color: var(--color-text);
}

.architectural-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    radial-gradient(520px 520px at 22% 18%, color-mix(in oklab, var(--color-accent-200) 90%, transparent), transparent 70%),
    radial-gradient(620px 620px at 78% 8%, color-mix(in oklab, var(--color-accent-300) 85%, transparent), transparent 72%),
    linear-gradient(rgba(21,21,21,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21,21,21,0.04) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
  mask-image: linear-gradient(180deg, black 0%, transparent 100%);
}
.section-dark.architectural-bg::before {
  opacity: 0.2;
  background-image:
    radial-gradient(520px 520px at 22% 18%, color-mix(in oklab, var(--color-accent-600) 60%, transparent), transparent 70%),
    radial-gradient(620px 620px at 78% 8%, color-mix(in oklab, var(--color-accent-700) 55%, transparent), transparent 72%),
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
}

.stack { display: grid; gap: clamp(14px, 2vw, 22px); }
.grid-2 { display: grid; gap: clamp(18px, 2.5vw, 28px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { display: grid; gap: clamp(18px, 2.5vw, 28px); grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1024px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .section--hero { min-height: auto; }
}
.grid-dyn {
  display: grid;
  gap: clamp(18px, 2.5vw, 28px);
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
}
@media (max-width: 1024px) {
  .grid-dyn {
    grid-template-columns: repeat(min(2, var(--cols, 3)), minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .grid-dyn {
    grid-template-columns: 1fr;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: transform 200ms var(--ease), background 200ms var(--ease), border-color 200ms var(--ease), box-shadow 200ms var(--ease);
  cursor: pointer;
}
.btn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.btn-primary {
  background: var(--color-accent);
  color: #151515;
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  border-color: color-mix(in oklab, var(--color-text) 25%, transparent);
  color: inherit;
}
.section-dark .btn-outline {
  border-color: rgba(255,255,255,0.28);
  color: #fff;
}
.btn-outline:hover { border-color: var(--color-accent); color: var(--color-accent); }
.btn-soft {
  background: color-mix(in oklab, var(--color-accent) 12%, var(--color-bg));
  border-color: color-mix(in oklab, var(--color-accent) 30%, var(--color-border));
}

/* Media */
.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-strong);
  background: var(--color-bg-soft);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame--16x9 { aspect-ratio: 16/9; }
.media-frame--4x3 { aspect-ratio: 4/3; }
.media-frame--3x4 { aspect-ratio: 3/4; }
.media-frame--tall { aspect-ratio: 3/5; min-height: 420px; }

/* Cards — only where needed */
.premium-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: clamp(20px, 2.5vw, 32px);
  box-shadow: var(--shadow-soft);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
}
.premium-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}
.section-dark .premium-card {
  background: var(--color-dark-soft);
  border-color: rgba(255,255,255,0.1);
  color: #f0ebe3;
}

.numbered-card {
  position: relative;
  padding-top: clamp(22px, 3vw, 32px);
  overflow: hidden;
}
article.premium-card.numbered-card.stack {
  padding: 15px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.numbered-card__num {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: clamp(220px, 38vw, 450px);
  height: clamp(220px, 38vw, 450px);
  border-radius: var(--radius);
  font-size: clamp(10rem, 22vw, 28rem);
  color: #e6af2a;
  opacity: 0.15;
  pointer-events: none;
  background: color-mix(in oklab, var(--color-accent) 12%, var(--panel));
  border: 1px solid color-mix(in oklab, var(--color-accent) 24%, var(--border));
  filter: drop-shadow(0 18px 42px color-mix(in oklab, var(--color-accent) 18%, transparent));
  z-index: 0;
}
.numbered-card__num i { line-height: 1; }
.numbered-card h3,
.numbered-card p {
  position: relative;
  z-index: 1;
}
.numbered-card h3 {
  /* Mantiene l'inizio del testo sempre alla stessa altezza anche quando il titolo va a capo */
  min-height: calc(var(--text-h3-size, 1.375rem) * 2.3); /* ~2 righe */
}
.numbered-card p.lead {
  flex: 1;
  margin-top: 0; /* evita lo "scalino" dato da margin-top della lead */
}
.numbered-card .btn {
  position: relative;
  z-index: 1;
}
.numbered-card__media {
  position: relative;
  z-index: 1;
}
.numbered-card__media + h3 {
  margin-top: 12px;
}

/* Editorial service list */
.editorial-list { display: grid; gap: 0; }
.editorial-list__item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(16px, 2vw, 28px);
  align-items: center;
  padding: clamp(22px, 3vw, 32px) 0;
  border-bottom: 1px solid var(--color-border);
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
}
.editorial-list__item:first-child { border-top: 1px solid var(--color-border); }
.editorial-list__item:hover { color: var(--color-accent); border-color: color-mix(in oklab, var(--color-accent) 40%, var(--color-border)); }
.editorial-list__num { font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 800; color: var(--color-accent); min-width: 2.5ch; }
.editorial-list__title {
  font-size: var(--text-h3-size, 1.375rem);
  font-weight: var(--text-h3-weight, 700);
  font-family: var(--font-heading);
}
.editorial-list__arrow {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  display: grid; place-items: center;
  transition: background 200ms var(--ease), border-color 200ms var(--ease);
}
.editorial-list__item:hover .editorial-list__arrow {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #151515;
}

/* Portfolio tiles */
.portfolio-grid { display: grid; gap: clamp(16px, 2vw, 24px); grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1024px) { .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .portfolio-grid { grid-template-columns: 1fr; } }

.portfolio-tile {
  --accent-color: var(--color-accent);
  --border-size: 2px;
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: clamp(320px, 38vw, 480px);
  box-shadow: var(--shadow-soft);
  transition: transform 280ms var(--ease), box-shadow 280ms var(--ease);
  z-index: 0;
  isolation: isolate;
}
.portfolio-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-strong); }
.portfolio-tile::before {
  content: "";
  position: absolute;
  inset: calc(var(--border-size) * -1);
  z-index: -1;
  padding: var(--border-size);
  border-radius: inherit;
  background: conic-gradient(
    from var(--angle),
    transparent 0deg,
    transparent 220deg,
    color-mix(in srgb, var(--accent-color), transparent 70%) 260deg,
    var(--accent-color) 290deg,
    #ffffff 300deg,
    var(--accent-color) 310deg,
    color-mix(in srgb, var(--accent-color), transparent 70%) 330deg,
    transparent 360deg
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  animation: border-spin 3s linear infinite;
  transition: opacity 180ms var(--ease);
}
.portfolio-tile:hover::before { opacity: 1; }
.portfolio-tile > * { position: relative; z-index: 2; }
.portfolio-tile__media { position: absolute; inset: 0; }
.portfolio-tile__media img,
.portfolio-tile__media .media-frame,
.portfolio-tile__media .placeholder-media { width: 100%; height: 100%; min-height: 100%; }
.portfolio-tile__media img { width: 100%; height: 100%; object-fit: cover; }
.portfolio-tile__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(21, 21, 21, 0.22) 100%);
  transition: opacity 280ms var(--ease);
  z-index: 1;
}
.portfolio-tile:hover .portfolio-tile__overlay { opacity: 0.95; }
.portfolio-tile__body {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: clamp(20px, 3vw, 32px);
  padding-top: clamp(40px, 5.5vw, 60px);
  color: #fff;
  z-index: 4;
}
.portfolio-tile__body::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: -45%;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(21, 21, 21, 0) 0%,
    rgba(21, 21, 21, 0.28) 38%,
    rgba(21, 21, 21, 0.68) 72%,
    rgba(21, 21, 21, 0.84) 100%
  );
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  mask-image: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 0, 0, 0.4) 24%,
    rgba(0, 0, 0, 0.88) 48%,
    #000 64%,
    #000 100%
  );
  -webkit-mask-image: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 0, 0, 0.4) 24%,
    rgba(0, 0, 0, 0.88) 48%,
    #000 64%,
    #000 100%
  );
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .portfolio-tile__body::before {
    background: linear-gradient(
      180deg,
      transparent 0%,
      rgba(21, 21, 21, 0.55) 50%,
      rgba(21, 21, 21, 0.9) 100%
    );
    mask-image: none;
    -webkit-mask-image: none;
  }
}
.portfolio-tile__pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}
.portfolio-tile__title {
  font-size: var(--text-h3-size, 1.375rem);
  font-weight: var(--text-h3-weight, 700);
}

/* Blog editorial card */
.blog-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  padding: clamp(18px, 2vw, 24px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  box-shadow: var(--shadow-soft);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms var(--ease);
  position: relative;
  overflow: hidden;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
  border-color: color-mix(in oklab, var(--color-border) 60%, var(--color-accent-200));
}
.blog-card::after {
  content: "";
  position: absolute;
  inset: calc(2px * -1);
  border-radius: inherit;
  background: conic-gradient(
    from var(--angle),
    transparent 0deg,
    transparent 220deg,
    color-mix(in srgb, var(--color-accent), transparent 70%) 260deg,
    var(--color-accent) 290deg,
    #ffffff 300deg,
    var(--color-accent) 310deg,
    color-mix(in srgb, var(--color-accent), transparent 70%) 330deg,
    transparent 360deg
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  z-index: 3;
  animation: border-spin 3s linear infinite;
  transition: opacity 180ms var(--ease);
}
.blog-card:hover::after { opacity: 1; }
.blog-card > * { position: relative; z-index: 4; }
.blog-card__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); }
.blog-card__title {
  font-size: var(--text-h3-size, 1.375rem);
  font-weight: var(--text-h3-weight, 700);
  line-height: 1.2;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: clamp(12px, 2vw, 18px);
  max-width: 1200px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(18px, 3vw, 28px);
}
.faq-item {
  border: 1px solid color-mix(in oklab, var(--color-border) 80%, var(--color-accent-200));
  border-radius: var(--radius);
  padding: clamp(12px, 1.8vw, 18px) clamp(14px, 2vw, 20px);
  background: color-mix(in oklab, var(--color-bg) 90%, var(--color-accent-100));
  box-shadow: 0 18px 44px rgba(21, 21, 21, 0.08);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: clamp(10px, 1.4vw, 16px) 0;
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  font-weight: 700;
  font-family: var(--font-heading);
  display: flex;
  gap: 12px;
  align-items: center;
  position: relative;
}
.faq-item summary::after {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-left: auto;
  color: var(--color-accent);
  font-weight: 800;
  transition: transform 200ms var(--ease), color 200ms var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary::after {
  content: "−";
  transform: rotate(180deg);
  color: var(--color-accent);
}
.faq-item[open] summary { color: var(--color-accent); }
.faq-item__answer {
  padding: clamp(8px, 1.2vw, 12px) 0 clamp(16px, 2vw, 22px);
  color: var(--color-muted);
  max-width: 70ch;
}
.faq-item__answer p {
  margin: 0;
}
.faq-item__answer p + p {
  margin-top: 0.75em;
}
@media (max-width: 960px) {
  .faq-list { grid-template-columns: 1fr; }
}

@keyframes spin-gradient {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes border-spin {
  from { --angle: 0deg; }
  to { --angle: 360deg; }
}

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  padding-block: clamp(64px, 10vw, 120px);
  background: var(--color-dark);
  color: #f0ebe3;
}
.cta-band .display-title,
.cta-band h2 { color: #fff; }
.cta-band.section-light,
.cta-band.section-soft,
.cta-band.section-editorial,
.cta-band.section-accent,
.cta-band.section-custom--light {
  color: var(--color-text);
}
.cta-band.section-light .display-title,
.cta-band.section-light h2,
.cta-band.section-soft .display-title,
.cta-band.section-soft h2,
.cta-band.section-editorial .display-title,
.cta-band.section-editorial h2,
.cta-band.section-accent .display-title,
.cta-band.section-accent h2,
.cta-band.section-custom--light .display-title,
.cta-band.section-custom--light h2 {
  color: var(--color-text);
}

/* Page header */
.page-hero {
  padding-block: clamp(48px, 6vw, 72px) clamp(32px, 4vw, 48px);
  background: var(--color-dark);
  color: #f0ebe3;
}
.page-hero--sub {
  padding-block: clamp(48px, 6vw, 72px) clamp(32px, 4vw, 48px);
}
.page-hero .page-title {
  color: #fff;
}
.page-hero .lead { color: rgba(255,255,255,0.7); }
.meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 4px;
}
.project-detail-layout {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 5vw, 56px);
  margin-bottom: clamp(32px, 5vw, 56px);
}
.project-description {
  width: 100%;
  max-width: none;
  text-align: justify;
  text-wrap: pretty;
}
.project-details-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 40px);
  background: var(--color-dark);
  color: #f0ebe3;
  box-shadow: var(--shadow-soft);
}
.project-details-card h3 {
  color: #fff;
  margin: 0 0 24px;
  font-size: 1.25rem;
}
.project-details-card__body {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}
.project-details-item {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.project-details-item__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: grid;
  place-items: center;
  color: var(--color-accent);
  flex-shrink: 0;
  font-size: 1rem;
}
.project-details-item__label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 4px;
}
.project-details-item__value {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.35;
}
@media (max-width: 900px) {
  .project-details-card__body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .project-details-card__body {
    grid-template-columns: 1fr;
  }
}
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.5); margin-bottom: 12px; }
.breadcrumb a:hover { color: var(--color-accent); }

/* Header */
.site-header {
  --header-height: 88px;
  --header-frost-solid: rgba(21, 21, 21, 0.82);
  --header-frost-mid: rgba(21, 21, 21, 0.62);
  --header-frost-fade: rgba(21, 21, 21, 0.18);
  --header-frost-blur: blur(16px) saturate(1.15);
  --header-fade-extend: 36px;
  position: sticky;
  top: 0;
  z-index: 100;
  color: #f0ebe3;
  background: transparent;
  border-bottom: none;
  isolation: isolate;
  transition: box-shadow 280ms var(--ease);
}
.site-header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: calc(var(--header-fade-extend) * -1);
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    var(--header-frost-solid) 0%,
    var(--header-frost-mid) 68%,
    var(--header-frost-fade) 86%,
    rgba(21, 21, 21, 0) 100%
  );
  backdrop-filter: var(--header-frost-blur);
  -webkit-backdrop-filter: var(--header-frost-blur);
  mask-image: linear-gradient(
    180deg,
    #000 0%,
    #000 58%,
    rgba(0, 0, 0, 0.92) 74%,
    rgba(0, 0, 0, 0.55) 86%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    180deg,
    #000 0%,
    #000 58%,
    rgba(0, 0, 0, 0.92) 74%,
    rgba(0, 0, 0, 0.55) 86%,
    transparent 100%
  );
  transition: background 280ms var(--ease), backdrop-filter 280ms var(--ease);
}
.page-home .site-header--overlay {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  --header-frost-solid: rgba(21, 21, 21, 0.42);
  --header-frost-mid: rgba(21, 21, 21, 0.22);
  --header-frost-fade: rgba(21, 21, 21, 0.06);
  --header-frost-blur: blur(12px) saturate(1.05);
  --header-fade-extend: 44px;
  box-shadow: none;
}
.page-home .site-header--overlay.is-scrolled {
  --header-frost-solid: rgba(21, 21, 21, 0.9);
  --header-frost-mid: rgba(21, 21, 21, 0.72);
  --header-frost-fade: rgba(21, 21, 21, 0.22);
  --header-frost-blur: blur(16px) saturate(1.15);
  --header-fade-extend: 32px;
  box-shadow: 0 14px 40px -12px rgba(0, 0, 0, 0.28);
}
.site-header.is-scrolled {
  box-shadow: 0 14px 40px -12px rgba(0, 0, 0, 0.28);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header::before {
    background: linear-gradient(
      180deg,
      rgba(21, 21, 21, 0.92) 0%,
      rgba(21, 21, 21, 0.78) 72%,
      rgba(21, 21, 21, 0.35) 90%,
      transparent 100%
    );
    mask-image: none;
    -webkit-mask-image: none;
  }
}
.site-header--static { position: relative; }
.site-header__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  min-height: var(--header-height, 88px);
}
@media (min-width: 901px) {
  .site-header { --header-height: 96px; }
  .site-header__inner { min-height: var(--header-height); }
  .site-header__inner--no-cta {
    grid-template-columns: auto 1fr;
  }
  .site-header__inner--no-cta > .site-nav {
    justify-content: flex-end;
  }
}

.site-header .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  min-width: 0;
}
.brand-logo {
  display: block;
  width: auto;
  height: var(--brand-logo-height, 40px);
  max-width: min(calc(var(--brand-logo-height, 40px) * 4.5), 40vw);
  object-fit: contain;
  object-position: left center;
}
.brand-logo--header,
.brand-logo--footer {
  height: var(--brand-logo-height, 40px);
  max-width: min(calc(var(--brand-logo-height, 40px) * 4.5), 40vw);
}
.brand-logo--footer {
  margin-bottom: 12px;
}
.site-footer__brand-link {
  display: inline-flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
}
.brand-name--footer {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 700;
  color: #fff;
}
.brand-mark {
  width: 12px; height: 12px;
  border-radius: var(--radius);
  background: var(--color-accent);
  transform: rotate(45deg);
}

.site-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.site-nav__item {
  position: relative;
}
.site-nav__item.is-active > .site-nav__link,
.site-nav__item:focus-within > .site-nav__link {
  color: #fff;
}
.site-nav__link--has-sub {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.site-nav__chevron {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.65;
  transition: transform 200ms var(--ease);
}
.site-nav__item:hover .site-nav__chevron,
.site-nav__item:focus-within .site-nav__chevron {
  transform: rotate(225deg) translateY(1px);
}
.site-nav__submenu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 220px;
  padding: 8px;
  border-radius: var(--radius);
  background: rgba(21, 21, 21, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 200ms var(--ease), transform 200ms var(--ease), visibility 200ms var(--ease);
  z-index: 120;
}
.site-nav__submenu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}
.site-nav__item:hover .site-nav__submenu,
.site-nav__item:focus-within .site-nav__submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.site-nav__link {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  border-radius: var(--radius);
  transition: color 200ms var(--ease), background 200ms var(--ease), border-color 200ms var(--ease);
}
.site-nav__link:hover { color: #fff; background: rgba(255,255,255,0.06); }
.site-nav__link.is-active { color: var(--color-accent); }
.site-nav__link--outline {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
}
.site-nav__link--outline:hover {
  border-color: rgba(255, 255, 255, 0.38);
}
.site-nav__sublink {
  display: block;
  width: 100%;
  text-align: left;
  white-space: nowrap;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  justify-content: flex-end;
}
.site-header__phone {
  display: none;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  transition: opacity 200ms var(--ease);
}
.site-header__phone:hover { opacity: 0.85; }
.site-header__phone-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.site-header__phone-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}
.site-header__phone-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
}
.site-header__phone-number {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}
.site-header__cta {
  padding: 10px 18px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
  align-self: center;
}
.site-header__cta.btn-primary {
  box-shadow: var(--shadow-btn-sm);
}
.site-header__cta.btn-primary:hover {
  transform: translateY(-1px);
}
@media (min-width: 1000px) {
  .site-header__phone { display: flex; }
}
.site-header__contact {
  display: none;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  text-align: right;
  line-height: 1.4;
}
@media (min-width: 1100px) { .site-header__contact { display: block; } }

/* Mobile nav */
.nav-mobile { display: none; margin-left: auto; }
.nav-mobile summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  color: #fff;
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile summary::before {
  content: "";
  position: absolute;
  inset: -10px;
}
.nav-mobile__icon {
  display: block;
  font-size: 1.75rem;
  line-height: 1;
}
.q-icon {
  width: 1em;
  height: 1em;
  display: block;
  flex-shrink: 0;
}
.nav-mobile__icon.q-icon {
  width: 1.75rem;
  height: 1.75rem;
}
.project-details-item__icon .q-icon,
.contact-info-item__icon .q-icon {
  width: 1.1rem;
  height: 1.1rem;
}
.nav-mobile__panel {
  position: absolute;
  right: 0;
  left: auto;
  top: calc(100% + 10px);
  min-width: min(320px, calc(100vw - 32px));
  max-height: min(70vh, 520px);
  overflow: auto;
  background: var(--color-dark);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 14px;
  display: grid;
  gap: 4px;
  box-shadow: var(--shadow-strong);
  animation: navDrop 220ms var(--ease);
  z-index: 200;
}
.nav-mobile__menu { display: grid; gap: 4px; }
.nav-mobile__link { display: block; width: 100%; text-align: left; }
.nav-mobile__item { border-radius: var(--radius); overflow: hidden; }
.nav-mobile__row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: stretch;
  background: rgba(255,255,255,0.03);
}
.nav-mobile__row .nav-mobile__link { border-radius: 0; }
.nav-mobile__toggle {
  width: 48px;
  border: 0;
  border-left: 1px solid rgba(255,255,255,0.08);
  background: transparent;
  color: rgba(255,255,255,0.72);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.nav-mobile__toggle-icon {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 200ms var(--ease);
}
.nav-mobile__item.is-open .nav-mobile__toggle-icon { transform: rotate(225deg); }
.nav-mobile__sub {
  display: none;
  padding: 4px 0 6px 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.18);
}
.nav-mobile__item.is-open .nav-mobile__sub { display: grid; gap: 2px; }
.nav-mobile__sublink {
  padding-left: 20px;
}
.nav-mobile__cta {
  margin-top: 10px;
  width: 100%;
  justify-content: center;
}
@keyframes navDrop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 900px) {
  .site-nav, .site-header__actions { display: none; }
  .nav-mobile { display: block; position: static; }
  .site-header__inner { grid-template-columns: 1fr auto; }
  .nav-mobile__panel {
    left: var(--site-gutter);
    right: var(--site-gutter);
    width: auto;
    min-width: 0;
  }
  :root { --header-height: 88px; }
  .site-nav__submenu { display: none; }
}

.media-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
}
.media-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame.media-figure {
  height: auto;
}
.media-frame.media-figure img {
  flex: 1 1 auto;
  min-height: 0;
}
.media-figure__caption {
  margin: 0;
  padding: 10px 12px 12px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--color-muted);
  background: transparent;
}

/* Footer */
.site-footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.72);
  padding-block: clamp(56px, 8vw, 100px);
  margin-top: 0;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(var(--footer-columns, 3), minmax(0, 1fr));
  gap: clamp(28px, 4vw, 48px);
}
.site-footer__col--empty {
  min-height: 1px;
}
.site-footer__html,
.site-footer__bottom-html {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
}
.site-footer__html :where(p, ul, ol, div),
.site-footer__bottom-html :where(p, ul, ol, div) {
  margin: 0 0 10px;
}
.site-footer__html :where(p:last-child, ul:last-child, ol:last-child, div:last-child),
.site-footer__bottom-html :where(p:last-child, ul:last-child, ol:last-child, div:last-child) {
  margin-bottom: 0;
}
.site-footer__html :where(a),
.site-footer__bottom-html :where(a) {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-footer__html :where(a:hover),
.site-footer__bottom-html :where(a:hover) {
  color: var(--color-accent);
}
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer__brand {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: #fff;
  font-weight: 700;
  margin-bottom: 12px;
}
.site-footer__brand-link .brand-name--footer,
.site-footer__brand-link .brand-logo--footer {
  margin-bottom: 0;
}
.site-footer__heading {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 16px;
}
.site-footer__text {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}
.site-footer__links a.site-footer__text,
.site-footer__contact a.site-footer__text,
.site-footer__contact span.site-footer__text {
  font-size: 13px;
}
.site-footer__col .site-footer__text + .site-footer__text {
  margin-top: 10px;
}
.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.site-footer__links .site-footer__text + .site-footer__text {
  margin-top: 0;
}
.site-footer__links a.site-footer__text {
  color: rgba(255, 255, 255, 0.78);
  transition: color 200ms var(--ease);
}
.site-footer__links a.site-footer__text:hover { color: var(--color-accent); }
.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.site-footer__contact .site-footer__text + .site-footer__text {
  margin-top: 0;
}
.site-footer__contact a.site-footer__text {
  color: rgba(255, 255, 255, 0.78);
  transition: color 200ms var(--ease);
}
.site-footer__contact a.site-footer__text:hover { color: var(--color-accent); }
.site-footer__bottom {
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.45);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer__bottom-html {
  flex: 1 1 auto;
  min-width: min(100%, 260px);
  color: rgba(255,255,255,0.55);
  font-size: 12px;
}
.site-footer__credit {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  opacity: 0.72;
  transition: opacity 200ms var(--ease);
}
.site-footer__credit:hover {
  opacity: 1;
}
.site-footer__credit img {
  height: 25px;
  width: auto;
  display: block;
}
@media (max-width: 900px) {
  .site-footer__bottom {
    justify-content: center;
    text-align: center;
  }
  .site-footer__bottom-html {
    flex-basis: 100%;
  }
  .site-footer__credit {
    margin-inline: auto;
  }
}

/* Hero layout */
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.hero-grid--center { text-align: center; justify-items: center; }
.hero-grid--center .lead { margin-inline: auto; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-grid .media-frame--tall { min-height: 280px; }
}

.image-text-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.image-text-grid__media {
  align-self: center;
  width: 100%;
}
/* Logo / PNG trasparente: niente cornice, ombra o riempimento forzato */
.image-text-grid__media--logo {
  background: none;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.image-text-grid__media--logo img {
  width: auto;
  max-width: min(100%, 360px);
  height: auto;
  max-height: min(240px, 36vh);
  object-fit: contain;
  display: block;
  box-shadow: none;
  border-radius: 0;
}
/* Foto: contenitore fisso 4:3, immagine adattata con object-fit cover */
.image-text-grid__frame {
  aspect-ratio: 4 / 3;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-img, var(--radius));
  background: color-mix(in oklab, var(--text) 4%, transparent);
  box-shadow: var(--shadow-soft);
}
.image-text-grid__frame img,
.image-text-grid__frame .placeholder-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
  box-shadow: none;
}
.image-text-grid__media--logo .image-text-grid__frame {
  background: none;
  box-shadow: none;
}
.image-text-grid__media--logo .image-text-grid__frame img {
  object-fit: contain;
  padding: clamp(8px, 2vw, 16px);
}
.image-text-grid__media--photo {
  background: none;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
  min-height: 0;
}
.image-text-slider {
  position: relative;
}
.image-text-slider__viewport {
  overflow: hidden;
  width: 100%;
}
.image-text-slider__track {
  display: flex;
  height: 100%;
  transition: transform 0.35s ease;
  will-change: transform;
}
.image-text-slider__slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  height: 100%;
}
.image-text-slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: var(--radius-btn, var(--radius));
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 0;
}
.image-text-slider__btn svg {
  display: block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.image-text-slider__btn--prev { left: 10px; }
.image-text-slider__btn--next { right: 10px; }
.image-text-slider__btn:hover {
  background: #fff;
}
.image-text-slider__btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.image-text-grid--reverse .image-text-grid__media { order: 2; }
.image-text-grid--reverse .image-text-grid__content { order: 1; }
@media (max-width: 900px) {
  .image-text-grid, .image-text-grid--reverse { grid-template-columns: 1fr; }
  .image-text-grid--reverse .image-text-grid__media,
  .image-text-grid--reverse .image-text-grid__content { order: unset; }
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section-header__link {
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.82rem;
}


/* Portfolio filter */
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(28px, 4vw, 40px);
}
.portfolio-filter {
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
  cursor: pointer;
  transition: background 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease);
}
.portfolio-filter:hover {
  border-color: var(--color-accent);
  color: var(--color-text);
}
.portfolio-filter.is-active {
  background: var(--color-dark);
  border-color: var(--color-dark);
  color: #fff;
}
.portfolio-tile.is-hidden { display: none; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: stretch;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-grid--form-only {
  grid-template-columns: 1fr;
  max-width: 720px;
  margin-inline: auto;
}
.contact-info-card,
.contact-form {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  height: 100%;
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 40px);
}
.contact-info-card {
  background: var(--color-dark);
  color: #f0ebe3;
}
.contact-info-card h3,
.contact-form h3 {
  color: #fff;
  margin: 0 0 24px;
  font-size: 1.25rem;
}
.contact-form h3 { color: var(--color-text); }
.contact-info-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact-info-item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-item__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.15);
  display: grid;
  place-items: center;
  color: var(--color-accent);
  flex-shrink: 0;
  font-size: 1rem;
}
.contact-info-item__label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.55);
  margin-bottom: 4px;
}
.contact-info-item__value {
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5;
}
a.contact-info-item__value:hover { color: var(--color-accent); }
.contact-form {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}
.contact-form__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-form__footer {
  margin-top: auto;
  display: grid;
  gap: 12px;
}
.contact-map {
  margin-top: clamp(40px, 5vw, 64px);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
}
.contact-map iframe {
  display: block;
  width: 100%;
  height: clamp(320px, 40vw, 440px);
  border: 0;
}
.contact-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 640px) { .contact-form__grid { grid-template-columns: 1fr; } }
.contact-form label {
  display: grid;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
}
.contact-form label.full { grid-column: 1 / -1; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font: inherit;
  background: var(--color-bg-soft);
  transition: border-color 200ms var(--ease);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form__hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.contact-form__status.is-ok { color: #1f7a3f; }
.contact-form__status.is-error { color: #b42318; }

.brand-name { text-transform: lowercase; letter-spacing: -0.01em; }
.site-header .brand-name { font-family: var(--font-body); font-weight: 800; }

/* About stats strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 32px);
  padding: clamp(32px, 5vw, 48px) 0;
  border-top: 1px solid var(--color-border);
  margin-top: clamp(24px, 4vw, 40px);
}
@media (max-width: 640px) { .stats-strip { grid-template-columns: 1fr; } }
.stat-item__num {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat-item__label {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* Full-bleed image band (parallax) */
.section--image-band {
  position: relative;
  isolation: isolate;
  height: 450px;
  max-height: 450px;
  min-height: 0;
  padding-block: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  overflow: hidden;
}
.image-band__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}
.image-band__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.section--image-band--parallax .image-band__bg {
  /* Prefer transform-friendly cover over fixed attachment (costly on mobile) */
  background-attachment: scroll;
}
.image-band__bg .placeholder-media {
  width: 100%;
  height: 100%;
  min-height: 100%;
  border-radius: 0;
}
.image-band__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(21, 21, 21, 0.5) 0%,
    rgba(21, 21, 21, 0.7) 50%,
    rgba(21, 21, 21, 0.6) 100%
  );
  pointer-events: none;
}
.image-band__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
  padding-inline: var(--site-gutter);
  text-align: center;
  justify-items: center;
}
.image-band__content h2 {
  color: #fff;
  margin: 0;
}
.image-band__content .lead {
  color: rgba(255, 255, 255, 0.88);
  max-width: 56ch;
  margin-inline: auto;
}
@media (max-width: 900px), (hover: none) {
  .section--image-band--parallax .image-band__bg {
    background-attachment: scroll;
  }
}
@media (prefers-reduced-motion: reduce) {
  .section--image-band--parallax .image-band__bg {
    background-attachment: scroll;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
