:root {
  --crema: #f7f5f0;
  --travertine: #e6dcc8;
  --terracotta: #c4705a;
  --olive: #4a4a3a;
  --blu-notte: #1c2541;
  --bianco: #ffffff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--crema);
  color: var(--blu-notte);
  font-family: "Montserrat", sans-serif;
  overflow-x: hidden;
}

img {
  display: block;
}

a {
  color: inherit;
}

nav[aria-label="Primary"] {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 18px 6vw;
  background: rgba(247, 245, 240, 0.96);
  border-bottom: 1px solid var(--travertine);
  backdrop-filter: blur(8px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  font-weight: 500;
  text-decoration: none;
}

.nav-logo img {
  height: 34px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--terracotta);
}

.page-shell {
  padding-top: 92px;
}

.page-header {
  padding: 48px 6vw 36px;
}

.page-header-compact {
  padding-bottom: 18px;
}

.label-sm {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--terracotta);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.page-header h1 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(46px, 7vw, 88px);
  font-weight: 300;
  line-height: 0.98;
}

.page-header p {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--olive);
  font-size: 15px;
  line-height: 1.9;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 22px;
  color: var(--olive);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-shell {
  padding: 0 6vw 72px;
}

.feature-grid,
.story-grid,
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.feature-card,
.story-card,
.aside-card,
.guide-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--travertine);
}

.feature-card,
.guide-card {
  padding: 26px;
}

.story-card {
  overflow: hidden;
  text-decoration: none;
}

.story-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.story-copy {
  padding: 22px;
}

.story-copy h2,
.story-copy h3,
.aside-card h3,
.guide-card h2,
.feature-card h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 34px;
  font-weight: 400;
  line-height: 1.08;
}

.story-copy p,
.aside-card p,
.guide-card p,
.feature-card p {
  margin: 14px 0 0;
  color: var(--olive);
  font-size: 14px;
  line-height: 1.8;
}

.story-meta {
  margin-top: 16px;
  color: var(--terracotta);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-chip {
  padding: 11px 16px;
  border: 1px solid var(--travertine);
  background: transparent;
  color: var(--olive);
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-chip.active,
.filter-chip:hover {
  background: var(--blu-notte);
  border-color: var(--blu-notte);
  color: var(--bianco);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.gallery-card {
  grid-column: span 4;
  position: relative;
  min-height: 280px;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--travertine);
  background: #ddd;
  appearance: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.gallery-card.wide {
  grid-column: span 8;
}

.gallery-card.tall {
  min-height: 420px;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28, 37, 65, 0.72), rgba(28, 37, 65, 0.08));
}

.gallery-copy {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 1;
  color: var(--bianco);
}

.gallery-copy strong {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.05;
}

.gallery-copy span {
  display: inline-block;
  margin-top: 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
  padding: 24px;
  background: rgba(10, 16, 30, 0.9);
}

.lightbox.open {
  display: grid;
  place-items: center;
}

.lightbox-inner {
  width: min(100%, 1100px);
  background: #0f1729;
  color: var(--bianco);
}

.lightbox-inner img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  background: #111;
}

.lightbox-copy {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px 22px;
}

.lightbox-copy strong {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 28px;
  font-weight: 400;
}

.lightbox-copy span {
  display: block;
  margin-top: 8px;
  color: rgba(230, 220, 200, 0.78);
  font-size: 13px;
  line-height: 1.7;
}

.lightbox-close {
  border: 0;
  background: transparent;
  color: var(--bianco);
  font: inherit;
  font-size: 28px;
  cursor: pointer;
}

.article-wrap {
  padding: 10px 6vw 72px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 320px;
  gap: 40px;
}

.article-prose {
  min-width: 0;
}

.article-prose > * + * {
  margin-top: 22px;
}

.article-prose p,
.article-prose li {
  color: var(--olive);
  font-size: 15px;
  line-height: 1.9;
}

.article-prose h2,
.article-prose h3 {
  margin: 34px 0 14px;
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  line-height: 1.08;
}

.article-prose h2 {
  font-size: 40px;
}

.article-prose h3 {
  font-size: 30px;
}

.article-prose ul,
.article-prose ol {
  padding-left: 20px;
}

.article-prose blockquote {
  margin: 30px 0;
  padding: 24px 26px;
  border-left: 3px solid var(--terracotta);
  background: rgba(255, 255, 255, 0.72);
  font-family: "Cormorant Garamond", serif;
  font-size: 30px;
  line-height: 1.2;
}

.article-prose a {
  color: var(--terracotta);
}

.article-aside {
  display: grid;
  gap: 18px;
  align-content: start;
}

.aside-card {
  padding: 22px;
}

.aside-card ul {
  margin: 16px 0 0;
  padding-left: 18px;
}

.aside-card li {
  color: var(--olive);
  font-size: 14px;
  line-height: 1.8;
}

.cta-band {
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 24px;
  align-items: center;
  padding: 30px;
  background: var(--blu-notte);
  color: var(--bianco);
}

.cta-band h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 400;
  line-height: 1.1;
}

.cta-band p {
  margin: 10px 0 0;
  color: rgba(230, 220, 200, 0.78);
  font-size: 14px;
  line-height: 1.8;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 14px 28px;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--terracotta);
  color: var(--bianco);
}

.btn-primary:hover {
  background: #a85a47;
}

.btn-secondary {
  border: 1px solid var(--blu-notte);
  color: var(--blu-notte);
}

.btn-secondary:hover {
  background: var(--blu-notte);
  color: var(--bianco);
}

footer {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 34px;
  padding: 52px 6vw;
  background: var(--olive);
}

footer h4 {
  margin: 0 0 16px;
  color: var(--travertine);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

footer p,
footer a {
  color: rgba(230, 220, 200, 0.78);
  font-size: 13px;
  line-height: 1.85;
  text-decoration: none;
}

.f-bottom,
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 6vw;
  background: var(--blu-notte);
}

.f-bottom p,
.footer-bottom p {
  margin: 0;
  color: rgba(230, 220, 200, 0.46);
  font-size: 11px;
}

.wa-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 300;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.wa-float svg {
  width: 24px;
  height: 24px;
  fill: var(--bianco);
}

.mobile-nav,
.mob-nav {
  display: none;
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 210;
  background: var(--bianco);
  border-top: 1px solid var(--travertine);
}

.mobile-nav-inner,
.mob-nav-inner {
  display: flex;
  min-height: 58px;
}

.mobile-nav-item,
.mob-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: var(--olive);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.mobile-nav-item.active,
.mobile-nav-item:hover,
.mob-item.active,
.mob-item:hover {
  color: var(--terracotta);
}

.mobile-nav-item svg,
.mob-item svg {
  width: 19px;
  height: 19px;
}

.fade-up {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.pre-reveal {
  opacity: 0;
  transform: translateY(18px);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery-empty {
  padding: 20px;
  border: 1px solid var(--travertine);
  background: rgba(255, 255, 255, 0.75);
  color: var(--olive);
  font-size: 14px;
  line-height: 1.8;
}

@media (max-width: 1100px) {
  .gallery-card,
  .gallery-card.wide {
    grid-column: span 6;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .story-grid,
  .related-grid,
  footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  nav[aria-label="Primary"] {
    padding: 15px 4vw;
  }

  .nav-links {
    display: none;
  }

  .page-shell {
    padding-top: 82px;
  }

  .page-header,
  .section-shell,
  .article-wrap {
    padding-right: 4vw;
    padding-left: 4vw;
  }

  .page-header h1 {
    font-size: clamp(40px, 14vw, 58px);
  }

  .feature-grid,
  .story-grid,
  .related-grid,
  footer {
    grid-template-columns: 1fr;
  }

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

  .gallery-card,
  .gallery-card.wide {
    grid-column: auto;
    min-height: 280px;
  }

  .lightbox {
    padding: 12px;
  }

  .lightbox-copy {
    flex-direction: column;
  }

  .f-bottom,
  .footer-bottom {
    flex-direction: column;
    gap: 6px;
    text-align: center;
    padding-right: 4vw;
    padding-left: 4vw;
  }

  .mobile-nav,
  .mob-nav {
    display: block;
  }
}
