/* ============================================================
   PERUSIA HOUSES — Design System
   Palette: terracotta etrusco + inchiostro + avorio + sabbia
   Type: Cormorant Garamond (display) + Inter (UI)
   ============================================================ */

:root {
  /* Brand palette (Perusia brand guide v1) */
  --terracotta: #B85740;       /* Rosa Etrusca — accento */
  --terracotta-dark: #9A4632;
  --ink: #1F1B16;              /* Pietra — primario testi */
  --graphite: #4a4845;
  --graphite-light: #7a7770;
  --ivory: #F4EDE0;            /* Travertino — sfondo principale */
  --sand: #E8DDD0;
  --sand-light: #F1EAE0;
  --gold: #B8915A;
  --sage: #7A8868;
  --line: #E0D9CC;
  --white: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 920px; margin: 0 auto; padding: 0 32px; }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: all 0.3s;
}
.nav.solid {
  background: rgba(250, 246, 240, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.nav.static {
  position: sticky;
  background: rgba(250, 246, 240, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.nav-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}
.nav-brand-mark {
  display: inline-block;
  width: 44px;
  height: 28px;
  flex-shrink: 0;
  fill: currentColor;
  stroke: currentColor;
}
.nav-brand-text {
  font-family: 'Cinzel', 'Cormorant Garamond', serif;
  font-size: 22px;
  letter-spacing: 5px;
  font-weight: 500;
  line-height: 1;
}
.nav.hero-light .nav-brand { color: var(--white); }
.nav.solid .nav-brand { color: var(--ink); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--ink);
  transition: opacity 0.2s;
}
.nav.hero-light .nav-links a:not(.btn) { color: var(--white); }
.nav.solid .nav-links a:not(.btn) { color: var(--ink); }
.nav-links a:hover { opacity: 0.7; }
.nav-links a.active { color: var(--terracotta); }
.lang-toggle {
  font-size: 11px; letter-spacing: 1.5px;
  border: 1px solid currentColor;
  padding: 6px 10px;
  opacity: 0.8;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 32px;
  padding: 0;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  position: relative;
  z-index: 110;
}
.nav-toggle-arch {
  width: 44px;
  height: 28px;
  fill: currentColor;
  transform-origin: center center;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nav-toggle .stone {
  transform-origin: 100px 110px;
  transform-box: fill-box;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.3s ease;
}
.nav.hero-light .nav-toggle { color: var(--white); }
.nav.solid .nav-toggle { color: var(--ink); }
/* When menu opens: each brick rotates slightly outward from arch center
   — l'arco "si apre" senza più rovesciarsi */
.nav-toggle .stone {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.4s ease;
}
.nav-toggle.is-open .stone { opacity: 0.55; }
.nav-toggle.is-open .stone-1 { transform: rotate(-12deg) translate(-1px, 1.5px); }
.nav-toggle.is-open .stone-2 { transform: rotate(-9deg)  translate(-1px, 0px); }
.nav-toggle.is-open .stone-3 { transform: rotate(-6deg); }
.nav-toggle.is-open .stone-4 { transform: rotate(-3deg) translate(0, -1px); }
.nav-toggle.is-open .stone-5 { transform: rotate(3deg)  translate(0, -1px); }
.nav-toggle.is-open .stone-6 { transform: rotate(6deg); }
.nav-toggle.is-open .stone-7 { transform: rotate(9deg)  translate(1px, 0); }
.nav-toggle.is-open .stone-8 { transform: rotate(12deg) translate(1px, 1.5px); }
/* Chiave d'autore: 6ª pietra resta in Rosa Etrusca a piena opacità */
.nav-toggle.is-open .stone-key { opacity: 1; }

/* ============ BUTTONS ============ */
.btn {
  background: var(--terracotta);
  color: var(--white) !important;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  display: inline-block;
}
.btn:hover { background: var(--terracotta-dark); }
.btn-outline {
  background: transparent;
  color: currentColor !important;
  border: 1px solid currentColor;
}
.btn-outline:hover { background: var(--white); color: var(--ink) !important; border-color: var(--white); }
.btn-ghost {
  background: transparent;
  color: var(--terracotta) !important;
  border: 1px solid var(--terracotta);
}
.btn-ghost:hover { background: var(--terracotta); color: var(--white) !important; }
.btn-large { padding: 16px 36px; font-size: 14px; }
.btn-block { width: 100%; padding: 16px; font-size: 14px; }

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  color: var(--white);
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding-top: 140px;   /* clearance for fixed nav so h1 never falls behind PERUSIA + menu */
  padding-bottom: 80px;
  position: relative;
  background-size: cover;
  background-position: center;
}
.hero.with-overlay::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.65) 100%);
}
.hero-content { padding-bottom: 40px; position: relative; z-index: 1; }
.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 24px;
  opacity: 0.9;
  font-weight: 500;
}
.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(42px, 7vw, 92px);
  line-height: 1.05;
  letter-spacing: -0.5px;
  max-width: 900px;
  margin-bottom: 32px;
}
.hero h1 em {
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
}
.hero-sub {
  font-size: 18px;
  max-width: 540px;
  margin-bottom: 40px;
  opacity: 0.95;
  font-weight: 300;
  line-height: 1.5;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Smaller page hero */
.page-hero {
  min-height: 56vh;
  color: var(--white);
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 160px 0 80px;
  position: relative;
  background-size: cover;
  background-position: center;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.4) 100%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.5px;
  max-width: 820px;
}
.page-hero h1 em { font-style: italic; }
.page-hero .eyebrow {
  font-size: 12px; letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 20px; opacity: 0.9;
}
.page-hero .sub {
  font-size: 17px; max-width: 600px;
  margin-top: 20px; opacity: 0.95; font-weight: 300;
}

/* ============ BOOKING WIDGET ============ */
.booking-widget {
  background: rgba(250, 246, 240, 0.97);
  backdrop-filter: blur(12px);
  color: var(--ink);
  padding: 24px 28px;
  margin-top: 40px;
  max-width: 760px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 16px;
  align-items: end;
}
.booking-widget label {
  display: block;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--graphite);
  margin-bottom: 6px;
  font-weight: 600;
}
.booking-widget input, .booking-widget select {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 6px 0;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  outline: none;
}
.booking-widget .btn { white-space: nowrap; }

/* ============ SECTIONS ============ */
section { padding: 120px 0; }
.section-eyebrow {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 600;
  margin-bottom: 16px;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
}
.section-title em {
  font-style: italic;
  color: var(--terracotta);
}
.section-lead {
  font-size: 18px;
  color: var(--graphite);
  max-width: 640px;
  margin-bottom: 64px;
}

.section-alt {
  background: var(--sand-light);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-dark {
  background: var(--ink);
  color: var(--ivory);
}
.section-dark .section-eyebrow { color: var(--gold); }
.section-dark .section-title em { color: var(--gold); }
.section-dark .section-lead { color: rgba(255, 255, 255, 0.75); }

/* ============ STATS / INTRO ============ */
.intro {
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
}
.intro-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat { padding: 16px 0; }
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 56px;
  font-weight: 400;
  color: var(--terracotta);
  line-height: 1;
}
.stat-label {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--graphite);
  margin-top: 12px;
}

/* ============ HOUSES GRID ============ */
.houses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.house {
  background: var(--white);
  overflow: hidden;
  transition: transform 0.3s;
  display: block;
  color: inherit;
}
.house:hover { transform: translateY(-4px); }
.house-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}
.house-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.house:hover .house-img img { transform: scale(1.04); }
.house-badge {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--white);
  padding: 6px 12px;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
}
.house-badge.signature {
  background: var(--terracotta);
  color: var(--white);
}
.house-info { padding: 24px 4px; }
.house-zone {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--graphite-light);
  margin-bottom: 8px;
}
.house-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 8px;
}
.house-meta {
  display: flex; gap: 20px; flex-wrap: wrap;
  font-size: 13px;
  color: var(--graphite);
  margin-bottom: 16px;
}
.house-rating {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px;
  color: var(--graphite);
}
.house-price {
  margin-top: 12px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  color: var(--ink);
}
.house-price small { font-size: 12px; color: var(--graphite); font-family: 'Inter', sans-serif; }
.star { color: var(--gold); }

/* ============ CLUSTERS ============ */
.clusters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.cluster-card {
  background: var(--ivory);
  padding: 48px 36px;
  border: 1px solid var(--line);
  transition: border-color 0.2s;
  display: block;
  color: inherit;
}
.cluster-card:hover { border-color: var(--terracotta); }
.cluster-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  color: var(--terracotta);
  line-height: 1;
  margin-bottom: 20px;
}
.cluster-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 12px;
  line-height: 1.2;
}
.cluster-desc {
  color: var(--graphite);
  font-size: 15px;
  margin-bottom: 20px;
}
.cluster-link {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 600;
  border-bottom: 1px solid var(--terracotta);
  padding-bottom: 2px;
}

/* ============ EDITORIAL ============ */
.editorial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.editorial.reverse { direction: rtl; }
.editorial.reverse > * { direction: ltr; }
.editorial-text h2 { margin-bottom: 24px; }
.editorial-text p {
  font-size: 17px;
  color: var(--graphite);
  margin-bottom: 16px;
}
.editorial-img {
  aspect-ratio: 3/4;
  overflow: hidden;
}
.editorial-img img { width: 100%; height: 100%; object-fit: cover; }

/* ============ EXPERIENCES (Perugia dark) ============ */
.experiences {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}
.exp-card {
  background: rgba(255, 255, 255, 0.04);
  padding: 36px 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.exp-card .icon {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  color: var(--gold);
  margin-bottom: 16px;
}
.exp-card h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 8px;
}
.exp-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

/* ============ REVIEWS ============ */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.review {
  background: var(--white);
  padding: 32px;
  border: 1px solid var(--line);
}
.review-rating, .review-stars {
  color: var(--gold);
  font-size: 18px;
  margin-bottom: 16px;
  letter-spacing: 4px;
}
.review-quote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 20px;
}
.review-meta {
  font-size: 12px;
  color: var(--graphite);
  letter-spacing: 1px;
}
.review-meta strong { color: var(--ink); }
.review-source {
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--graphite-light);
}

/* ============ CTA STRIP ============ */
.cta-strip {
  background: var(--terracotta);
  color: var(--white);
  padding: 100px 0;
  text-align: center;
}
.cta-strip h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  margin-bottom: 24px;
}
.cta-strip p {
  font-size: 18px;
  max-width: 540px;
  margin: 0 auto 32px;
  opacity: 0.9;
}
.cta-strip .btn {
  background: var(--white);
  color: var(--terracotta) !important;
}
.cta-strip .btn:hover { background: var(--ivory); }

/* ============ FOOTER ============ */
footer {
  background: var(--ink);
  color: var(--ivory);
  padding: 80px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}
.footer-brand {
  font-family: 'Cinzel', 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 26px;
  letter-spacing: 6px;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.footer-brand-mark {
  width: 36px;
  height: 24px;
  flex-shrink: 0;
  fill: currentColor;
  stroke: currentColor;
}
footer p { color: rgba(255, 255, 255, 0.6); font-size: 14px; }
footer h5 {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  font-weight: 600;
}
footer ul { list-style: none; }
footer ul li { margin-bottom: 8px; }
footer a { color: rgba(255, 255, 255, 0.7); font-size: 14px; transition: color 0.2s; }
footer a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

/* ============ PRODUCT PAGE ============ */
.product-header { padding: 60px 0 32px; }
.breadcrumb {
  font-size: 12px; letter-spacing: 1px;
  color: var(--graphite-light);
  margin-bottom: 16px;
}
.breadcrumb a:hover { color: var(--terracotta); }
.product-title-row {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 24px;
  margin-bottom: 24px;
}
.product-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(48px, 7vw, 80px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -1px;
}
.product-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-style: italic;
  color: var(--graphite);
  margin-top: 4px;
}
.product-rating {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; color: var(--graphite);
}
.rating-badge {
  background: var(--terracotta);
  color: var(--white);
  padding: 6px 12px;
  font-weight: 600;
  font-size: 14px;
}
.product-meta-row {
  display: flex; gap: 24px; flex-wrap: wrap;
  color: var(--graphite); font-size: 14px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.product-meta-row span { display: flex; align-items: center; gap: 6px; }

.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 240px 240px;
  gap: 8px;
  margin-bottom: 80px;
}
.gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: opacity 0.2s;
}
.gallery img:hover { opacity: 0.9; }
.gallery .main { grid-row: span 2; }
.gallery-cta {
  position: relative;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); cursor: pointer;
  font-family: 'Cormorant Garamond', serif; font-size: 18px;
}

.product-body {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 80px;
  margin-bottom: 100px;
}
.product-content h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px; font-weight: 500;
  margin: 48px 0 16px;
  line-height: 1.2;
}
.product-content h2:first-of-type { margin-top: 0; }
.product-content p {
  color: var(--graphite);
  font-size: 17px;
  margin-bottom: 16px;
}
.product-lead {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 24px !important;
  font-style: italic;
  color: var(--ink) !important;
  line-height: 1.4;
  padding: 32px 0;
  border-left: 2px solid var(--terracotta);
  padding-left: 28px;
  margin-bottom: 40px !important;
}

.specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: 32px 0 48px;
}
.spec {
  background: var(--ivory);
  padding: 20px 24px;
}
.spec-label {
  font-size: 11px; letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--graphite); margin-bottom: 4px;
}
.spec-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 500;
}

.amenities {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 32px;
  margin: 24px 0 48px;
}
.amenity {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px;
  color: var(--graphite);
  padding: 8px 0;
}
.amenity .check {
  color: var(--terracotta);
  font-weight: bold;
  width: 20px;
}

.location-card {
  background: var(--sand-light);
  padding: 32px;
  margin: 32px 0;
  border-left: 3px solid var(--gold);
}
.location-card h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 500; margin-bottom: 16px;
}
.location-card ul {
  list-style: none;
  color: var(--graphite);
  font-size: 14px;
}
.location-card li {
  padding: 6px 0;
  border-bottom: 1px solid rgba(160,140,110,0.2);
  display: flex; justify-content: space-between;
}
.location-card li:last-child { border-bottom: none; }
.location-card li strong {
  color: var(--ink);
  font-weight: 500;
}

.booking-sidebar {
  position: sticky;
  top: 90px;
  background: var(--white);
  padding: 32px;
  border: 1px solid var(--line);
  height: fit-content;
}
.booking-price {
  display: flex; align-items: baseline; gap: 8px;
  margin-bottom: 24px;
}
.price-from { font-size: 13px; color: var(--graphite); }
.price-amount {
  font-family: 'Cormorant Garamond', serif;
  font-size: 42px; font-weight: 500;
  color: var(--ink);
  line-height: 1;
}
.price-unit { font-size: 14px; color: var(--graphite); }
.booking-form {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}
.field {
  border: 1px solid var(--line);
  padding: 12px 16px;
}
.field label {
  display: block;
  font-size: 10px; letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--graphite); font-weight: 600;
  margin-bottom: 4px;
}
.field input, .field select {
  width: 100%; border: none; background: transparent;
  font-family: inherit; font-size: 14px;
  color: var(--ink); outline: none;
  padding: 0;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.booking-trust {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px; color: var(--graphite);
  text-align: center;
  line-height: 1.8;
}

.reviews-section {
  background: var(--sand-light);
  padding: 80px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.reviews-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 48px; flex-wrap: wrap; gap: 16px;
}
.reviews-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px; font-weight: 400;
  line-height: 1;
}
.reviews-summary {
  display: flex; align-items: center; gap: 16px;
  font-size: 14px;
}
.reviews-summary .score {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px; color: var(--terracotta);
  line-height: 1;
}
.reviews-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.other-houses { padding: 100px 0; }
.other-houses h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px; font-weight: 400;
  margin-bottom: 48px;
}
.other-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.other-card { cursor: pointer; display: block; color: inherit; }
.other-card .img-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
  margin-bottom: 16px;
}
.other-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.other-card:hover img { transform: scale(1.04); }
.other-card-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
}
.other-card-meta {
  font-size: 12px; color: var(--graphite);
  margin-top: 4px; letter-spacing: 1px; text-transform: uppercase;
}

/* ============ FILTERS (lista case) ============ */
.filters {
  display: flex; flex-wrap: wrap; gap: 12px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 48px;
}
.filter-pill {
  padding: 8px 18px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 13px;
  letter-spacing: 0.5px;
  color: var(--graphite);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.filter-pill:hover { border-color: var(--terracotta); color: var(--terracotta); }
.filter-pill.active {
  background: var(--terracotta);
  color: var(--white);
  border-color: var(--terracotta);
}

/* ============ TEXT PAGES (chi siamo, contatti) ============ */
.prose {
  max-width: 720px;
  font-size: 17px;
  color: var(--graphite);
}
.prose h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  color: var(--ink);
  margin: 48px 0 20px;
  letter-spacing: -0.3px;
  line-height: 1.15;
}
.prose h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 500;
  color: var(--ink);
  margin: 36px 0 12px;
}
.prose p { margin-bottom: 16px; }
.prose ul { margin: 16px 0 16px 24px; }
.prose ul li { margin-bottom: 8px; }
.prose blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 24px;
  color: var(--ink);
  border-left: 2px solid var(--terracotta);
  padding-left: 28px;
  margin: 32px 0;
  line-height: 1.4;
}
.prose a { color: var(--terracotta); border-bottom: 1px solid var(--terracotta); }

/* ============ CONTACT ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-card {
  background: var(--white);
  padding: 40px;
  border: 1px solid var(--line);
  margin-bottom: 24px;
}
.contact-card h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 8px;
}
.contact-card p { color: var(--graphite); font-size: 15px; }
.contact-card .contact-method {
  margin-top: 16px;
  font-size: 16px;
  color: var(--ink);
  font-weight: 500;
}
.contact-form .field { background: var(--white); margin-bottom: 12px; }
.contact-form textarea {
  width: 100%; border: none; background: transparent;
  font-family: inherit; font-size: 14px;
  color: var(--ink); outline: none;
  padding: 0; resize: vertical; min-height: 120px;
}

/* ============ PERUGIA GUIDE ============ */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.guide-card {
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
}
.guide-card-img { aspect-ratio: 16/10; overflow: hidden; }
.guide-card-img img { width: 100%; height: 100%; object-fit: cover; }
.guide-card-body { padding: 32px; }
.guide-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px; font-weight: 500; margin-bottom: 12px;
}
.guide-card p { color: var(--graphite); font-size: 15px; margin-bottom: 16px; }
.guide-tag {
  display: inline-block;
  font-size: 10px; letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--terracotta); font-weight: 600;
  margin-bottom: 12px;
}

/* ============ BOOKING PAGE (Krossbooking placeholder) ============ */
.booking-frame {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 64px 48px;
  text-align: center;
  margin: 64px auto;
  max-width: 880px;
}
.booking-frame .icon-large {
  font-family: 'Cormorant Garamond', serif;
  font-size: 64px;
  color: var(--terracotta);
  margin-bottom: 24px;
  line-height: 1;
}
.booking-frame h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 400;
  margin-bottom: 16px;
}
.booking-frame p { color: var(--graphite); margin-bottom: 32px; }

.placeholder-iframe {
  min-height: 480px;
  background: var(--sand-light);
  border: 1px dashed var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--graphite);
  font-size: 14px; letter-spacing: 1px;
  margin: 32px 0;
}

/* ============ MOBILE STICKY BOOKING ============ */
.mobile-book {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 12px 20px;
  z-index: 60;
  justify-content: space-between; align-items: center;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
.mobile-book .price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
}
.mobile-book small { font-size: 11px; color: var(--graphite); display: block; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .houses-grid { grid-template-columns: repeat(2, 1fr); }
  .clusters-grid { grid-template-columns: 1fr; }
  .experiences { grid-template-columns: 1fr; }
  .reviews-grid, .reviews-grid-2 { grid-template-columns: 1fr; }
  .editorial { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .intro-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .booking-widget { grid-template-columns: 1fr 1fr; }
  .product-body { grid-template-columns: 1fr; gap: 40px; }
  .booking-sidebar { position: static; }
  .gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 200px 200px;
  }
  .gallery .main { grid-row: span 2; }
  .other-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .guide-grid { grid-template-columns: 1fr; }
  .mobile-book { display: flex; }
  body.has-mobile-book { padding-bottom: 70px; }
}

@media (max-width: 640px) {
  section { padding: 80px 0; }
  .container, .container-narrow { padding: 0 20px; }

  /* MOBILE MENU — each brick slides into its menu tile, like an opening arch */
  .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 32px rgba(31, 27, 22, 0.10);
    flex-direction: column;
    gap: 8px;
    padding: 16px 16px 20px;
    pointer-events: none;
    /* Closed state: invisible, collapsed upward */
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .nav-links.open {
    pointer-events: auto;
    clip-path: inset(0 0 0 0);
  }
  /* === MOBILE MENU — each tile holds its own unique brick from the arch === */
  .nav-links a {
    position: relative;
    width: 100%;
    align-self: stretch;
    padding: 20px 24px 18px 76px;  /* left padding leaves room for brick glyph */
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px 14px 6px 6px;  /* rounded top, near-square bottom — brick wedge */
    color: var(--ink);
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.3px;
    text-align: left;
    display: block;
    box-shadow: 0 1px 0 rgba(31, 27, 22, 0.04);
    /* Closed: invisible (tiles haven't formed yet) */
    opacity: 0;
    transform: translateY(-30px);
    transition: opacity 0.45s ease,
                transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  /* Each tile has its own subtle resting tilt — like uneven masonry */
  .nav-links a:nth-child(odd)  { --rest-rot: -0.4deg; }
  .nav-links a:nth-child(even) { --rest-rot:  0.4deg; }

  /* === THE BRICK GLYPH — each row hosts ONE unique stone from the arch === */
  .nav-links a::before {
    content: "";
    position: absolute;
    left: 22px;
    top: 50%;
    width: 38px;
    height: 26px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transform-origin: center;
    /* Closed default: the glyph travels from this row to the button arch */
    transition: transform 0.85s cubic-bezier(0.6, -0.2, 0.4, 1.5),
                opacity 0.4s ease;
  }
  /* Per-stone background — the brick path, viewBox cropped tight on each */
  .nav-links a[data-stone="1"]::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='9 79 35 33'><path d='M 39 110 L 11 110 A 89 89 0 0 1 15.84 81.01 L 42.32 90.13 A 61 61 0 0 0 39 110 Z' fill='%231F1B16' stroke='%231F1B16' stroke-width='3.5' stroke-linejoin='round'/></svg>"); }
  .nav-links a[data-stone="2"]::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='16 48 40 40'><path d='M 43.84 86.17 L 18.07 75.22 A 89 89 0 0 1 33.86 50.45 L 54.67 69.18 A 61 61 0 0 0 43.84 86.17 Z' fill='%231F1B16' stroke='%231F1B16' stroke-width='3.5' stroke-linejoin='round'/></svg>"); }
  .nav-links a[data-stone="3"]::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='36 27 40 41'><path d='M 57.63 66.12 L 38.17 45.98 A 89 89 0 0 1 62.39 29.34 L 74.22 54.71 A 61 61 0 0 0 57.63 66.12 Z' fill='%231F1B16' stroke='%231F1B16' stroke-width='3.5' stroke-linejoin='round'/></svg>"); }
  .nav-links a[data-stone="4"]::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='66 19 33 36'><path d='M 78.14 53.05 L 68.10 26.91 A 89 89 0 0 1 96.89 21.05 L 97.88 49.04 A 61 61 0 0 0 78.14 53.05 Z' fill='%231F1B16' stroke='%231F1B16' stroke-width='3.5' stroke-linejoin='round'/></svg>"); }
  .nav-links a[data-stone="5"]::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='100 19 33 36'><path d='M 102.12 49.04 L 103.11 21.05 A 89 89 0 0 1 131.90 26.91 L 121.86 53.05 A 61 61 0 0 0 102.12 49.04 Z' fill='%231F1B16' stroke='%231F1B16' stroke-width='3.5' stroke-linejoin='round'/></svg>"); }
  .nav-links a[data-stone="6"]::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='123 27 40 41'><path d='M 125.78 54.71 L 137.61 29.34 A 89 89 0 0 1 147.82 34.94 L 147.01 41.60 L 152.94 38.45 A 89 89 0 0 1 161.83 45.98 L 142.37 66.12 A 61 61 0 0 0 125.78 54.71 Z' fill='%23ffffff' stroke='%23ffffff' stroke-width='3.5' stroke-linejoin='round'/></svg>"); }
  .nav-links a[data-stone="7"]::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='143 48 40 40'><path d='M 145.33 69.18 L 166.14 50.45 A 89 89 0 0 1 181.93 75.22 L 156.16 86.17 A 61 61 0 0 0 145.33 69.18 Z' fill='%231F1B16' stroke='%231F1B16' stroke-width='3.5' stroke-linejoin='round'/></svg>"); }

  /* === CLOSED STATE — each brick "lives" at its position in the arch on the button ===
     Brutally translated from each row's local origin all the way back to the top-right corner
     where the button sits. Different (x, y, rotation) per stone matches the arch geometry. */
  .nav-links:not(.open) a::before { opacity: 0; }
  .nav-links:not(.open) a[data-stone="1"]::before {
    transform: translateY(-50%) translate(calc(100vw - 100px), -76px)  rotate(-58deg) scale(0.30);
  }
  .nav-links:not(.open) a[data-stone="2"]::before {
    transform: translateY(-50%) translate(calc(100vw - 94px),  -158px) rotate(-42deg) scale(0.30);
  }
  .nav-links:not(.open) a[data-stone="3"]::before {
    transform: translateY(-50%) translate(calc(100vw - 88px),  -240px) rotate(-25deg) scale(0.30);
  }
  .nav-links:not(.open) a[data-stone="4"]::before {
    transform: translateY(-50%) translate(calc(100vw - 84px),  -322px) rotate(-10deg) scale(0.30);
  }
  .nav-links:not(.open) a[data-stone="5"]::before {
    transform: translateY(-50%) translate(calc(100vw - 78px),  -404px) rotate(10deg)  scale(0.30);
  }
  .nav-links:not(.open) a[data-stone="6"]::before {
    transform: translateY(-50%) translate(calc(100vw - 72px),  -560px) rotate(25deg)  scale(0.30);
  }
  .nav-links:not(.open) a[data-stone="7"]::before {
    transform: translateY(-50%) translate(calc(100vw - 60px),  -480px) rotate(45deg)  scale(0.30);
  }

  /* === OPEN STATE — every brick has flown back to its natural row position === */
  .nav-links.open a {
    opacity: 1;
    transform: translateY(0) rotate(var(--rest-rot));
  }
  .nav-links.open a::before {
    opacity: 1;
    transform: translateY(-50%) translate(0, 0) rotate(0) scale(1);
  }

  /* === UNROLLING STAGGER — the right end of the arch is pulled first ===
     Stone 6 (chiave d'autore at the right) reaches its tile FIRST.
     Then 5, 4, 3, 2, 1 — bricks unroll right→left into the menu. */
  .nav-links.open a[data-stone="7"] { transition-delay: 0.06s; }
  .nav-links.open a[data-stone="7"]::before { transition-delay: 0.04s; }
  .nav-links.open a[data-stone="6"] { transition-delay: 0.14s; }
  .nav-links.open a[data-stone="6"]::before { transition-delay: 0.12s; }
  .nav-links.open a[data-stone="5"] { transition-delay: 0.22s; }
  .nav-links.open a[data-stone="5"]::before { transition-delay: 0.20s; }
  .nav-links.open a[data-stone="4"] { transition-delay: 0.30s; }
  .nav-links.open a[data-stone="4"]::before { transition-delay: 0.28s; }
  .nav-links.open a[data-stone="3"] { transition-delay: 0.38s; }
  .nav-links.open a[data-stone="3"]::before { transition-delay: 0.36s; }
  .nav-links.open a[data-stone="2"] { transition-delay: 0.46s; }
  .nav-links.open a[data-stone="2"]::before { transition-delay: 0.44s; }
  .nav-links.open a[data-stone="1"] { transition-delay: 0.54s; }
  .nav-links.open a[data-stone="1"]::before { transition-delay: 0.52s; }

  /* Lang toggle (stone-5 on root pages): centered text, secondary feel */
  .nav .nav-links a.lang-toggle,
  .nav.hero-light .nav-links a.lang-toggle,
  .nav.solid .nav-links a.lang-toggle {
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--graphite) !important;
    padding: 18px 24px 18px 76px;
    border: 1px solid var(--line);
    opacity: 1;
  }
  /* Prenota tile (stone 6 — chiave d'autore): Rosa Etrusca, white brick */
  .nav-links a.btn {
    background: var(--terracotta);
    color: var(--white) !important;
    border-color: var(--terracotta-dark);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(184, 87, 64, 0.25);
  }
  .nav.hero-light .nav-links a:not(.btn):not(.lang-toggle) { color: var(--ink); }
  .nav-toggle { display: inline-flex; }
  /* Reduce brand mark on very narrow screens */
  .nav-brand-mark { width: 36px; height: 22px; }
  .nav-brand-text { font-size: 18px; letter-spacing: 4px; }
  .houses-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .booking-widget { grid-template-columns: 1fr; }
  .product-title { font-size: 42px; }
  .gallery { grid-template-columns: 1fr; grid-template-rows: repeat(5, 200px); }
  .gallery .main { grid-row: span 1; }
  .specs { grid-template-columns: 1fr; }
  .amenities { grid-template-columns: 1fr; }
  .other-grid { grid-template-columns: 1fr; }
  .reviews-header h2 { font-size: 32px; }
  .booking-frame { padding: 40px 24px; }
}

/* ============================================================
   Krossbooking widget v6 — palette Perusia
   Il widget arrivava con --kross_widget_primary = avorio (#f4ede0),
   identico allo sfondo del sito → bottoni e testi tono-su-tono,
   illeggibili. Lo forziamo sul terracotta del brand, lo stesso
   colore del pulsante "Prenota" (.btn).
   ============================================================ */
.kross-container,
#kb-widget-container {
  --kross_widget_primary: #B85740 !important;   /* --terracotta */
}

/* Pulsante di ricerca: terracotta + testo bianco come .btn.
   Hover scuro (il widget usava di default un blu #004fa6). */
.kross-container .kb-btn,
#kb-widget-container .kb-btn {
  background-color: #B85740 !important;
  color: #ffffff !important;
  border: 0 !important;
}
.kross-container .kb-btn:hover,
.kross-container .cnt-controls .kb-btn-p:hover,
#kb-widget-container .kb-btn:hover,
#kb-widget-container .cnt-controls .kb-btn-p:hover {
  background-color: #9A4632 !important;          /* --terracotta-dark */
  color: #ffffff !important;
}

/* Valore selezionato nei menu a tendina: inchiostro leggibile
   su sfondo chiaro (prima ereditava il colore primario avorio). */
.kross-container .select2-container--kross .select2-selection__rendered {
  color: #1F1B16 !important;                      /* --ink */
}

/* Calendario: date scelte in terracotta con testo bianco. */
.kross-container .KB-daterangepicker td.active,
.kross-container .KB-daterangepicker td.in-range {
  background-color: #B85740 !important;
  color: #ffffff !important;
}
.kross-container .KB-daterangepicker th.month {
  color: #B85740 !important;
}

/* Widget Krossbooking: ha il SUO layout flex responsive interno
   (.form-kross-booking diventa flex a >=1024px, con figli flex:1 1 150%/200%).
   NON va sovrascritto: forzarlo rompeva l'impaginazione e lo ingigantiva.
   Lo sbordamento del bottone era solo perché lo costringevamo in 860px.
   Qui gli diamo soltanto un fondo leggibile sulla hero scura; la larghezza
   piena (il box non lo strozza più) la imposta .hero-home .kross-container. */
.kross-container {
  box-sizing: border-box;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 16px;
}

/* ============================================================
   Homepage hero — logo + titolo + CTA centrati ("centro alto"),
   widget di prenotazione a seguire e testo descrittivo in fondo.
   Scoped a .hero-home: non tocca le hero delle altre pagine.
   ============================================================ */
.hero-home { justify-content: center; text-align: center; }
.hero-home .hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 56px;
}
.hero-home .hero-logo {
  width: clamp(120px, 12vw, 176px);
  height: auto;
  margin: 0 auto 30px;
}
.hero-home h1 {
  font-size: clamp(36px, 4.8vw, 64px);
  line-height: 1.18;
  letter-spacing: 0;
  margin: 0 auto 30px;
}
/* "Perugia" parte come il resto del titolo (travertino) e ~2,5s dopo
   il caricamento vira al terracotta del brand, restando poi colorata. */
.hero-home .title-accent {
  color: inherit;
  animation: titleAccentIn 1.1s ease 2.5s forwards;
}
@keyframes titleAccentIn {
  to { color: var(--terracotta); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-home .title-accent { animation: none; color: var(--terracotta); }
}
.hero-home .hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 auto 60px;
  padding: 20px 52px;
  font-size: 16px;
  letter-spacing: 1px;
  border-radius: 2px;
  box-shadow: 0 4px 14px rgba(31, 27, 22, 0.25);
  transition: transform .28s cubic-bezier(.2,.7,.3,1),
              box-shadow .28s ease,
              background-color .28s ease,
              letter-spacing .28s ease;
}
.hero-home .hero-cta:hover {
  background: var(--terracotta-dark);
  transform: translateY(-3px);
  letter-spacing: 1.6px;
  box-shadow: 0 12px 28px rgba(184, 87, 64, 0.42);
}
.hero-home .hero-cta:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(184, 87, 64, 0.35);
}
.hero-home .hero-cta-arrow {
  display: inline-block;
  transition: transform .28s cubic-bezier(.2,.7,.3,1);
}
.hero-home .hero-cta:hover .hero-cta-arrow {
  transform: translateX(5px);
}
@media (prefers-reduced-motion: reduce) {
  .hero-home .hero-cta,
  .hero-home .hero-cta-arrow { transition: none; }
  .hero-home .hero-cta:hover { transform: none; }
}
.hero-home .kross-container {
  width: 100%;
  margin: 0 auto;
}
.hero-home .hero-sub {
  font-size: 15px;
  max-width: 600px;
  margin: 44px auto 0;
  opacity: 0.78;
  letter-spacing: 0.2px;
}

/* ============================================================
   Lightbox galleria appartamenti — anteprima cliccabile +
   overlay a tutto schermo con frecce, contatore, ESC, swipe.
   ============================================================ */
.gallery img,
.gallery .gallery-cta { cursor: pointer; }
.gallery .gallery-cta {
  border: 0;
  width: 100%;
  height: 100%;
  letter-spacing: 0.5px;
  color: var(--ivory);          /* la palette non ha --gold: testo era invisibile */
  transition: color 0.2s ease, background-color 0.2s ease;
}
.gallery .gallery-cta:hover {
  background: var(--terracotta);
  color: #fff;
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 12, 10, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-img {
  max-width: 92vw;
  max-height: 86vh;
  object-fit: contain;
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.55);
  user-select: none;
}
.lb-btn {
  position: absolute;
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
  padding: 16px 20px;
  opacity: 0.8;
  transition: opacity 0.2s ease, transform 0.2s ease;
  font-family: 'Inter', sans-serif;
}
.lb-btn:hover { opacity: 1; }
.lb-close { top: 10px; right: 14px; font-size: 36px; }
.lb-prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 6px; top: 50%; transform: translateY(-50%); }
.lb-prev:hover { transform: translateY(-50%) scale(1.18); }
.lb-next:hover { transform: translateY(-50%) scale(1.18); }
.lb-counter {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 13px;
  letter-spacing: 2px;
  opacity: 0.75;
  font-family: 'Inter', sans-serif;
}
@media (max-width: 640px) {
  .lb-btn { font-size: 24px; padding: 12px 14px; }
  .lb-close { font-size: 30px; }
  .lightbox-img { max-width: 96vw; max-height: 80vh; }
}
@media (prefers-reduced-motion: reduce) {
  .lightbox, .lb-btn { transition: none; }
}
