/* ===== Tokens ===== */
:root {
  --bg: #efeae3;
  --paper: #f7f3ed;
  --ink: #242424;
  --muted: #5c5c5c;
  --gray: #8a8a8a;
  --line: #e2dccf;
  --orange: #ff4f00;
  --orange-dark: #d94400;
  --orange-soft: #fff1e8;
  --cream: #fbf8f3;
  --font-display: "Archivo", "Avenir Next", "Segoe UI", sans-serif;
  --font-serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  --font-hand: "Caveat", "Segoe Script", cursive;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --header-h: 76px;
  --shadow-sm: 0 1px 2px rgba(36, 36, 36, 0.04), 0 8px 24px rgba(36, 36, 36, 0.06);
  --shadow-md: 0 20px 48px rgba(36, 36, 36, 0.14);
}

/* ===== Reset ===== */
* {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  text-wrap: balance;
  letter-spacing: -0.02em;
}

.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;
}

p {
  margin: 0;
  text-wrap: pretty;
}

button {
  font: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

[id] {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== Icons (Lucide) ===== */
.icon {
  width: 20px;
  height: 20px;
  stroke-width: 1.75;
  flex-shrink: 0;
  vertical-align: -0.2em;
}

.icon-sm {
  width: 16px;
  height: 16px;
}

.icon-orange {
  color: var(--orange);
  margin-top: 0.15em;
}

.chev {
  width: 14px;
  height: 14px;
  stroke-width: 2;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

/* ===== Layout helpers ===== */
.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.wrap-narrow {
  max-width: 48rem;
}

.wrap-narrow-text {
  max-width: 38rem;
}

.section {
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
}

.section-paper {
  background: var(--paper);
}

.section-ink {
  background: var(--ink);
  color: var(--cream);
}

.section-border-top {
  border-top: 1px solid var(--line);
}

.section-border-y {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.text-center {
  text-align: center;
}

.mt-md {
  margin-top: 1.5rem;
}

.mt-lg {
  margin-top: 2.5rem;
}

.mt-xl {
  margin-top: 3rem;
}

.desktop-only {
  display: none;
}

@media (min-width: 640px) {
  .desktop-only {
    display: inline-flex;
  }
}

.grid {
  display: grid;
  gap: 1.25rem;
}

.grid-2 {
  grid-template-columns: 1fr;
}

.grid-3 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== Typography ===== */
.eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--orange);
  margin: 0 0 0.75rem;
}

.eyebrow-sm {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0;
}

.eyebrow-center {
  margin-top: 1rem;
}

.eyebrow-on-orange {
  color: rgba(251, 248, 243, 0.85);
}

.page-title {
  font-size: clamp(2.4rem, 5.5vw, 3.75rem);
  font-weight: 600;
  max-width: 48rem;
  margin: 0 0 1.25rem;
}

.page-title.on-dark {
  color: var(--cream);
  margin: 0;
}

.section-title {
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  font-weight: 600;
  margin-top: 0.5rem;
}

.section-title.on-dark {
  color: var(--cream);
}

.lede {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 42rem;
  margin: 0;
}

.muted {
  color: var(--muted);
  line-height: 1.65;
}

.on-dark-muted {
  color: rgba(251, 248, 243, 0.75);
  line-height: 1.65;
}

.strong {
  font-weight: 600;
}

.quote-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--ink);
  margin: 0 0 1.25rem;
}

.quote-serif.on-dark {
  color: rgba(251, 248, 243, 0.9);
  margin-top: 0.75rem;
}

.quote-serif-lg {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  color: var(--ink);
  margin: 0;
}

.prose p {
  line-height: 1.7;
  margin: 0 0 1.1rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 3rem;
  padding: 0 1.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
}

.btn-sm {
  height: 2.25rem;
  padding: 0 1rem;
  font-size: 0.825rem;
}

.btn-orange {
  background: var(--orange);
  color: var(--cream);
}

.btn-orange:hover {
  background: var(--orange-dark);
}

.btn-ink {
  background: var(--ink);
  color: var(--cream);
}

.btn-ink:hover {
  opacity: 0.9;
}

.btn-outline-cream {
  border: 1px solid rgba(251, 248, 243, 0.4);
  color: var(--cream);
}

.btn-outline-cream:hover {
  background: rgba(251, 248, 243, 0.1);
}

.btn-block {
  width: 100%;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--orange);
  white-space: nowrap;
}

.link-arrow:hover {
  color: var(--orange-dark);
}

/* ===== Breadcrumbs ===== */
.breadcrumbs {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.breadcrumbs .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.breadcrumbs a:hover {
  color: var(--orange);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 500;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(239, 234, 227, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(36, 36, 36, 0);
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(239, 234, 227, 0.95);
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  height: 30px;
  width: auto;
}

.main-nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

@media (min-width: 1024px) {
  .main-nav {
    display: flex;
  }
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(36, 36, 36, 0.8);
  padding: 0.4rem 0;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transition: transform 0.18s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--ink);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-link-trigger {
  font-family: inherit;
}

.nav-item-mega {
  position: relative;
}

.nav-item-mega .chev {
  transition: transform 0.18s ease;
}

.nav-item-mega:hover .chev,
.nav-item-mega:focus-within .chev {
  transform: rotate(180deg);
}

.mega-panel {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  width: 46rem;
  padding-top: 0.9rem;
  visibility: hidden;
  opacity: 0;
  translate: 0 4px;
  transition: opacity 0.18s ease, translate 0.18s ease, visibility 0.18s ease;
  z-index: 60;
}

.nav-item-mega:hover .mega-panel,
.nav-item-mega:focus-within .mega-panel {
  visibility: visible;
  opacity: 1;
  translate: 0 0;
}

.mega-panel-inner {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}

.mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.mega-block {
  padding: 1rem;
  border-radius: var(--radius-md);
  transition: background-color 0.15s ease;
}

.mega-block:hover {
  background: var(--orange-soft);
}

.mega-block-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.65rem;
}

.mega-block-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--orange-soft);
  color: var(--orange);
  flex-shrink: 0;
}

.mega-block:hover .mega-block-icon {
  background: var(--cream);
}

.mega-block-icon .icon {
  width: 16px;
  height: 16px;
}

.mega-block-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

.mega-block ul {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mega-block a {
  font-size: 0.85rem;
  color: rgba(36, 36, 36, 0.75);
}

.mega-block a:hover {
  color: var(--orange-dark);
}

.mega-panel-footer {
  margin-top: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.btn-nav-cta {
  display: none;
}

@media (min-width: 1024px) {
  .btn-nav-cta {
    display: inline-flex;
    height: 2.5rem;
    padding: 0 1.1rem;
  }
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }
}

.menu-toggle .icon {
  position: absolute;
  width: 24px;
  height: 24px;
}

.icon-menu-close {
  opacity: 0;
  transform: rotate(-90deg) scale(0.6);
}

.menu-toggle[aria-expanded="true"] .icon-menu-open {
  opacity: 0;
  transform: rotate(90deg) scale(0.6);
}

.menu-toggle[aria-expanded="true"] .icon-menu-close {
  opacity: 1;
  transform: rotate(0) scale(1);
}

.menu-toggle .icon {
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--cream);
}

.mobile-nav.is-open {
  display: block;
}

@media (min-width: 1024px) {
  .mobile-nav {
    display: none !important;
  }
}

.mobile-nav-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav-inner > a {
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 1rem;
  font-weight: 500;
}

.mobile-services-toggle {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1rem;
  font-weight: 500;
  width: 100%;
}

.mobile-services-toggle[aria-expanded="true"] .chev {
  transform: rotate(180deg);
}

.mobile-services-panel {
  display: none;
  flex-direction: column;
  gap: 0.15rem;
  margin: 0.25rem 0 0.5rem;
  padding-left: 1rem;
  border-left: 2px solid var(--orange);
}

.mobile-services-panel.is-open {
  display: flex;
}

.mobile-sub-link {
  min-height: 38px;
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: var(--muted);
}

.mobile-sub-link-all {
  font-weight: 600;
  color: var(--ink);
}

.mobile-nav-inner .btn {
  margin-top: 0.75rem;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 86vh;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(36, 36, 36, 0.35) 0%, rgba(36, 36, 36, 0.55) 100%);
}

.hero-content {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 6rem;
  padding-bottom: 4rem;
}

.hero-motto {
  margin: 0;
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1;
  color: #fff;
  text-shadow: 0 4px 24px rgba(36, 36, 36, 0.4);
}

.hero-motto-bracket {
  color: var(--orange);
}

.hero-actions {
  margin-top: 3.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* ===== Feature blocks ===== */
.features-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
}

.feature-index {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--orange);
  margin-bottom: 0.75rem;
}

.feature h2 {
  font-size: 1.3rem;
}

.feature p {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  max-width: 26rem;
}

/* ===== Section header row ===== */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.category-heading {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.category-heading-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--orange-soft);
  color: var(--orange);
  flex-shrink: 0;
}

.category-heading h2 {
  font-size: 1.4rem;
}

/* ===== Cards ===== */
.card {
  background: var(--cream);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.category-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--orange-soft);
  color: var(--orange);
  margin-bottom: 1rem;
}

.category-card h3 {
  font-size: 1.1rem;
}

.category-card-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.category-card-list a {
  font-size: 0.9rem;
}

.category-card-list a:hover {
  color: var(--orange);
}

.project-card,
.service-card {
  box-shadow: var(--shadow-sm);
}

.project-card:hover,
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.project-card img,
.service-card img {
  width: 100%;
  height: 13rem;
  object-fit: cover;
}

.project-card-body {
  padding: 1.25rem;
}

.project-card-body h2,
.project-card-body h3 {
  margin-top: 0.25rem;
  font-size: 1.15rem;
}

.project-card-body p.muted {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.service-card {
  display: block;
}

.service-card:hover {
  color: inherit;
}

.service-card:hover img {
  transform: scale(1.04);
}

.service-card img {
  height: 10rem;
  transition: transform 0.3s ease;
}

.service-card-body {
  padding: 1.25rem;
}

.service-card-body h3 {
  font-size: 1.05rem;
}

.service-card:hover .service-card-body h3 {
  color: var(--orange);
}

.service-card-body p.muted {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

/* ===== Chi siamo teaser ===== */
.chi-siamo-teaser {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .chi-siamo-teaser {
    grid-template-columns: 1fr 1fr;
  }
}

.chi-siamo-teaser-img {
  width: 100%;
  height: 20rem;
  object-fit: cover;
  border-radius: var(--radius-md);
}

@media (min-width: 1024px) {
  .chi-siamo-teaser-img {
    height: 28rem;
  }
}

/* ===== Method ===== */
.method-grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .method-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .method-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.method-item {
  border-top: 2px solid var(--orange);
  padding-top: 1rem;
}

.method-n {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--orange);
}

.method-item h3 {
  margin-top: 0.5rem;
  font-size: 1.05rem;
}

.method-item p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.method-list {
  display: flex;
  flex-direction: column;
}

.method-row {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1.25rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}

.method-row:last-child {
  border-bottom: none;
}

.method-n-lg {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--orange);
}

.method-row h2 {
  font-size: 1.4rem;
}

.method-row p {
  margin-top: 0.5rem;
}

/* ===== CTA band ===== */
.cta-band {
  background: var(--orange);
  border-top: 1px solid var(--line);
}

.cta-band-inner {
  padding: 3rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .cta-band-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cta-band-title {
  margin-top: 0.5rem;
  font-size: 1.75rem;
  color: var(--cream);
}

.cta-band-text {
  margin-top: 0.5rem;
  max-width: 34rem;
  color: rgba(251, 248, 243, 0.9);
}

/* ===== Two-column / prose sections ===== */
.two-col {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}

.two-col-img {
  width: 100%;
  height: 20rem;
  object-fit: cover;
  border-radius: var(--radius-md);
}

@media (min-width: 1024px) {
  .two-col-img {
    height: 100%;
  }
}

/* ===== Panels ===== */
.panel {
  border-radius: var(--radius-md);
  padding: 2rem;
}

.panel-ink {
  background: var(--ink);
  color: var(--cream);
}

.panel-ink h2 {
  font-size: 1.5rem;
}

.panel-cream {
  background: var(--cream);
  box-shadow: var(--shadow-sm);
}

.panel-cream h2 {
  font-size: 1.5rem;
}

.dot-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.dot-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.dot-list-2col {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .dot-list-2col {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== Service detail ===== */
.service-hero {
  position: relative;
  height: 46vh;
  min-height: 18rem;
  background-size: cover;
  background-position: center;
}

.service-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(36, 36, 36, 0.5);
}

.service-hero-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 2.5rem;
}

.service-layout {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .service-layout {
    grid-template-columns: 1.4fr 0.8fr;
  }
}

.service-layout h2 {
  font-size: 1.4rem;
}

.service-layout p {
  line-height: 1.7;
}

.service-layout > div > p:not(.quote-serif) {
  margin-top: 1.1rem;
}

.faq-list {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary .chev {
  color: var(--orange);
}

.faq-item[open] summary .chev {
  transform: rotate(180deg);
}

.faq-item p {
  padding-bottom: 1.25rem;
  font-size: 0.9rem;
}

.service-aside {
  height: fit-content;
  border-radius: var(--radius-md);
  background: var(--cream);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.service-aside-related {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.related-list {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
}

/* ===== Zones served ===== */
.zones-block {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .zones-block {
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
  }
}

.zones-block .section-title {
  max-width: 32rem;
}

.zones-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.zones-list li {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: var(--cream);
  box-shadow: var(--shadow-sm);
  font-size: 0.85rem;
  font-weight: 500;
}

.related-list a:hover {
  color: var(--orange);
}

/* ===== Contact page ===== */
.contact-layout {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .contact-layout {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-dl {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-dl dt {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange);
}

.contact-dl dt .icon {
  margin-top: 0;
}

.contact-dl dd {
  margin: 0.25rem 0 0;
}

.contact-dl a:hover {
  color: var(--orange);
}

.contact-form-panel {
  padding: 1.5rem;
}

@media (min-width: 640px) {
  .contact-form-panel {
    padding: 2rem;
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field span {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius-sm);
  padding: 0 0.75rem;
  font: inherit;
  font-size: 0.9rem;
  color: var(--ink);
}

.field input,
.field select {
  height: 2.75rem;
}

.field textarea {
  padding: 0.6rem 0.75rem;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--orange);
}

.form-fallback {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

.form-fallback a:hover {
  color: var(--orange);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding: 3.5rem 1.25rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-brand {
    grid-column: span 1;
  }

  .footer-services {
    grid-column: span 2;
  }
}

.footer-logo {
  height: 26px;
  width: auto;
}

.footer-motto {
  margin-top: 0.5rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(251, 248, 243, 0.7);
}

.footer-desc {
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(251, 248, 243, 0.7);
}

.footer-heading {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange);
  margin: 0;
}

.footer-links {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: rgba(251, 248, 243, 0.8);
}

.footer-links a:hover {
  color: var(--cream);
}

.footer-services-grid {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem 1rem;
  font-size: 0.9rem;
  color: rgba(251, 248, 243, 0.8);
}

.footer-services-grid a:hover {
  color: var(--cream);
}

.footer-bottom {
  border-top: 1px solid rgba(251, 248, 243, 0.1);
}

.footer-bottom-inner {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: rgba(251, 248, 243, 0.5);
}

@media (min-width: 640px) {
  .footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-contacts {
  display: flex;
  gap: 1.25rem;
}

.footer-contacts a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-contacts a:hover {
  color: var(--cream);
}

/* ===== Homepage: full-bleed editorial hero and fluid navigation ===== */
@media (min-width: 1024px) {
  .header-inner {
    max-width: 96rem;
    padding-inline: clamp(1.5rem, 4vw, 4rem);
    gap: clamp(1.5rem, 3.5vw, 4rem);
  }

  .main-nav {
    flex: 1;
    justify-content: space-between;
    gap: clamp(1rem, 2.8vw, 3.25rem);
  }

  .nav-link {
    white-space: nowrap;
    font-size: clamp(.82rem, .92vw, .95rem);
  }
}

.home-page .site-header {
  position: fixed;
  inset: 0 0 auto;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  color: #fff;
}

.home-page .site-header.is-scrolled {
  background: rgba(247, 243, 237, .96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(36, 36, 36, .08), 0 8px 26px rgba(36, 36, 36, .06);
  color: var(--ink);
}

.home-page .brand-logo {
  filter: brightness(0) invert(1);
  transition: filter .25s ease;
}

.home-page .site-header.is-scrolled .brand-logo {
  filter: none;
}

.home-page .site-header:not(.is-scrolled) .nav-link,
.home-page .site-header:not(.is-scrolled) .menu-toggle {
  color: rgba(255, 255, 255, .95);
}

.home-page .site-header:not(.is-scrolled) .nav-link:hover,
.home-page .site-header:not(.is-scrolled) .nav-link.is-active {
  color: #fff;
}

.home-page .site-header:not(.is-scrolled) .nav-link::after {
  background: #fff;
}

.home-page .site-header .mobile-nav {
  color: var(--ink);
}

.home-page .hero {
  min-height: 100vh;
  min-height: 100svh;
  height: 100vh;
  height: 100svh;
}

.home-page .hero-bg {
  object-position: center 54%;
  animation: hero-arrive 1.2s cubic-bezier(.2,.65,.3,1) both;
}

.home-page .hero-overlay {
  background: linear-gradient(90deg, rgba(19, 20, 19, .53) 0%, rgba(19, 20, 19, .18) 66%, rgba(19, 20, 19, .08) 100%),
              linear-gradient(0deg, rgba(19, 20, 19, .42) 0%, transparent 55%, rgba(19, 20, 19, .24) 100%);
}

.home-page .hero-content {
  max-width: 96rem;
  min-height: 100vh;
  min-height: 100svh;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  padding: calc(var(--header-h) + clamp(3rem, 7vh, 6rem)) clamp(1.5rem, 7vw, 7.5rem) 7rem;
}

.hero-copy {
  max-width: 60rem;
  animation: copy-arrive .8s .12s both;
}

.hero-kicker {
  margin-bottom: 1.15rem;
  color: rgba(255, 255, 255, .83);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.home-page .hero-motto {
  max-width: 13ch;
  font-family: var(--font-display);
  font-size: clamp(3rem, 8.2vw, 8.5rem);
  line-height: .91;
  font-weight: 600;
  letter-spacing: -.075em;
  text-transform: uppercase;
  text-shadow: 0 3px 30px rgba(0, 0, 0, .15);
}

.hero-subtitle {
  margin-top: 1.45rem;
  color: rgba(255, 255, 255, .9);
  font-size: clamp(1rem, 1.45vw, 1.28rem);
  font-weight: 400;
}

.home-page .hero-actions {
  justify-content: flex-start;
  margin-top: 2rem;
}

.home-page .btn-outline-cream {
  border-color: rgba(255, 255, 255, .72);
  border-radius: 2px;
  min-height: 3.3rem;
  padding-inline: 1.35rem;
  font-size: .85rem;
  letter-spacing: .035em;
}

.home-page .btn-outline-cream:hover {
  background: #fff;
  color: var(--ink);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: clamp(1.5rem, 7vw, 7.5rem);
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  color: rgba(255, 255, 255, .78);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero-scroll .icon {
  animation: scroll-nudge 1.7s ease-in-out infinite;
}

.home-page .features-grid {
  gap: clamp(2rem, 5vw, 5rem);
}

.home-page .feature {
  padding-top: .25rem;
}

.home-page .feature h2 {
  font-size: clamp(1.25rem, 1.7vw, 1.6rem);
  letter-spacing: -.04em;
}

.home-page .feature p {
  margin-top: .8rem;
}

.home-page .section:not(.section-ink) .wrap {
  max-width: 88rem;
}

.home-page .section-title {
  letter-spacing: -.055em;
  font-weight: 500;
}

.home-page .category-card {
  min-height: 19rem;
  padding: clamp(1.5rem, 2.2vw, 2.2rem);
  border-radius: 3px;
  box-shadow: 0 1px 0 rgba(36, 36, 36, .06);
}

.home-page .category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 35px rgba(36, 36, 36, .09);
}

.home-page .chi-siamo-teaser-img {
  border-radius: 3px;
}

.home-page .project-card {
  border-radius: 3px;
  box-shadow: none;
  background: transparent;
}

.home-page .project-card img {
  height: clamp(18rem, 31vw, 29rem);
  transition: transform .6s cubic-bezier(.2,.65,.3,1);
}

.home-page .project-card:hover {
  transform: none;
  box-shadow: none;
}

.home-page .project-card:hover img {
  transform: scale(1.025);
}

.home-page .project-card-body {
  padding: 1.25rem 0;
}

@keyframes hero-arrive {
  from { transform: scale(1.045); opacity: .7; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes copy-arrive {
  from { transform: translateY(18px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes scroll-nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

@media (max-width: 1023px) {
  .home-page .site-header:not(.is-scrolled) .mobile-nav {
    background: rgba(247, 243, 237, .98);
    backdrop-filter: blur(16px);
  }

  .home-page .hero-content {
    padding-inline: 1.5rem;
    padding-bottom: 7rem;
  }

  .hero-scroll {
    left: 1.5rem;
  }
}

@media (max-width: 640px) {
  .home-page .hero-bg {
    object-position: 58% center;
  }

  .home-page .hero-overlay {
    background: linear-gradient(90deg, rgba(19, 20, 19, .48), rgba(19, 20, 19, .12)),
                linear-gradient(0deg, rgba(19, 20, 19, .45), transparent 75%);
  }

  .home-page .hero-content {
    justify-content: flex-end;
    padding: 0 1.35rem 8rem;
  }

  .home-page .hero-motto {
    font-size: clamp(2.9rem, 13vw, 5.2rem);
  }

  .hero-kicker {
    font-size: .64rem;
    letter-spacing: .16em;
  }

  .hero-scroll {
    bottom: 1.4rem;
    left: 1.35rem;
  }

  .home-page .project-card img {
    height: 19rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .hero-bg,
  .hero-copy,
  .hero-scroll .icon {
    animation: none;
  }
}

/* Consistent keyboard focus and calmer page-wide interactions. */
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
  border-radius: 2px;
}

.btn,
.category-card-list a,
.footer-links a,
.footer-services-grid a {
  transition: color .18s ease, background-color .18s ease, opacity .18s ease, transform .18s ease;
}

.project-card img,
.service-card img,
.chi-siamo-teaser-img,
.two-col-img {
  background: #e2dccf;
}

/* ===== Photographic hero sections for the main pages ===== */
.photo-hero-page .site-header {
  position: fixed;
  inset: 0 0 auto;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  color: #fff;
}

.photo-hero-page .site-header.is-scrolled {
  background: rgba(247, 243, 237, .96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(36, 36, 36, .08), 0 8px 26px rgba(36, 36, 36, .06);
  color: var(--ink);
}

.photo-hero-page .brand-logo {
  filter: brightness(0) invert(1);
  transition: filter .25s ease;
}

.photo-hero-page .site-header.is-scrolled .brand-logo {
  filter: none;
}

.photo-hero-page .site-header:not(.is-scrolled) .nav-link,
.photo-hero-page .site-header:not(.is-scrolled) .menu-toggle {
  color: rgba(255, 255, 255, .95);
}

.photo-hero-page .site-header:not(.is-scrolled) .nav-link:hover,
.photo-hero-page .site-header:not(.is-scrolled) .nav-link.is-active {
  color: #fff;
}

.photo-hero-page .site-header:not(.is-scrolled) .nav-link::after {
  background: #fff;
}

.photo-hero-page .site-header .mobile-nav {
  color: var(--ink);
}

.page-hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: #282722;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
  animation: hero-arrive 1.2s cubic-bezier(.2,.65,.3,1) both;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(19, 20, 19, .57), rgba(19, 20, 19, .14) 78%),
              linear-gradient(0deg, rgba(19, 20, 19, .39), transparent 70%, rgba(19, 20, 19, .2));
}

.page-hero-content {
  position: relative;
  height: 100%;
  min-height: inherit;
  max-width: 96rem;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 3rem) clamp(1.5rem, 7vw, 7.5rem) 4rem;
}

.page-hero-copy {
  max-width: 68rem;
  animation: copy-arrive .8s .12s both;
}

.page-hero-title {
  max-width: 14ch;
  color: #fff;
  font-size: clamp(3rem, 6.8vw, 6.8rem);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.055em;
  text-transform: none;
  text-shadow: 0 3px 30px rgba(0, 0, 0, .18);
}

.page-hero-lede {
  max-width: 46rem;
  margin-top: 1.25rem;
  color: rgba(255, 255, 255, .9);
  font-size: clamp(1rem, 1.45vw, 1.3rem);
  line-height: 1.55;
}

.page-hero-copy .btn {
  margin-top: 1.8rem;
}

.photo-hero-page .btn-outline-cream {
  border-color: rgba(255, 255, 255, .72);
  border-radius: 2px;
  min-height: 3.3rem;
  padding-inline: 1.35rem;
  font-size: .85rem;
  letter-spacing: .035em;
}

.photo-hero-page .btn-outline-cream:hover {
  background: #fff;
  color: var(--ink);
}

.project-photo-section {
  margin-top: clamp(4rem, 8vw, 7rem);
}

.project-photo-section .section-header {
  margin-bottom: 2.5rem;
}

.project-photo-section .section-header .lede {
  max-width: 27rem;
  font-size: 1.05rem;
}

.photo-mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .8rem;
}

.photo-mosaic-item {
  position: relative;
  min-width: 0;
  aspect-ratio: 1.14;
  overflow: hidden;
  background: #242424;
}

.photo-mosaic-item::after {
  content: "";
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(transparent, rgba(20, 20, 20, .68));
  pointer-events: none;
}

.photo-mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.65,.3,1);
}

.photo-mosaic-item:hover img {
  transform: scale(1.045);
}

.photo-mosaic-item figcaption {
  position: absolute;
  z-index: 1;
  right: .9rem;
  bottom: .85rem;
  left: .9rem;
  color: #fff;
  font-size: .69rem;
  font-weight: 600;
  letter-spacing: .13em;
  line-height: 1.4;
  text-transform: uppercase;
}

@media (max-width: 1023px) {
  .photo-hero-page .site-header:not(.is-scrolled) .mobile-nav {
    background: rgba(247, 243, 237, .98);
    backdrop-filter: blur(16px);
  }

  .page-hero-content {
    padding-inline: 1.5rem;
  }
}

@media (max-width: 767px) {
  .page-hero-content {
    align-items: flex-end;
    padding: 0 1.35rem 4.5rem;
  }

  .page-hero-title {
    font-size: clamp(2.85rem, 12vw, 5.2rem);
  }

  .page-hero-lede {
    margin-top: 1rem;
    font-size: 1rem;
  }

  .photo-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem;
  }

  .photo-mosaic-item {
    aspect-ratio: .95;
  }

  .project-photo-section .section-header {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-hero-bg,
  .page-hero-copy,
  .photo-mosaic-item img {
    animation: none;
    transition: none;
  }
}
