/* ============================================================
   style.css — Villa Cardeto
   Design: Light Elegance — avorio / terracotta / serif Playfair
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;1,400;1,500&family=DM+Sans:wght@300;400;500&display=swap');

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

:root {
  --bg:          #FAF7F2;
  --bg2:         #F3EDE3;
  --bg3:         #EDE5D8;
  --bg4:         #E5DBCA;
  --gold:        #9B6A3A;
  --gold-light:  #C28A52;
  --gold-dim:    #C8A882;
  --terr:        #B5532A;
  --text:        #2C2418;
  --muted:       #7A6A54;
  --border:      rgba(155,106,58,0.18);
  --border-md:   rgba(155,106,58,0.32);

  --font-serif:  'Playfair Display', Georgia, serif;
  --font-sans:   'DM Sans', system-ui, sans-serif;

  --radius-sm:   3px;
  --radius-md:   6px;

  --nav-h:       72px;
  --topbar-h:    38px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  padding-top: calc(var(--nav-h) + var(--topbar-h));
}
body.menu-open { overflow: hidden; }

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

/* ── Topbar ─────────────────────────────────────────────────── */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  background: var(--bg2);
  border-bottom: 0.5px solid var(--border);
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.8rem;
  z-index: 200;
}
.topbar strong { color: var(--gold-light); }
.topbar-cta { color: var(--gold); transition: color 0.2s; }
.topbar-cta:hover { color: var(--gold-light); }

/* ── Nav ────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: var(--topbar-h);
  left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(250,247,242,0.97);
  border-bottom: 0.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.logo { display: flex; flex-direction: row; align-items: center; gap: 0.7rem; text-decoration: none; }
.logo-img {
  height: 2.6rem;
  width: auto;
  filter: brightness(0) saturate(100%) invert(44%) sepia(32%) saturate(600%) hue-rotate(358deg) brightness(90%);
}
.logo-text { display: flex; flex-direction: column; }
.logo-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.logo-sub {
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 300;
  margin-top: 2px;
}

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }

.btn-nav {
  background: transparent;
  border: 0.5px solid var(--gold);
  color: var(--gold);
  padding: 0.5rem 1.4rem;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn-nav:hover { background: var(--gold); color: var(--bg); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span { display: block; width: 24px; height: 1px; background: var(--gold); }

/* ── Language Switcher ───────────────────────────────────────── */
.lang-switcher { display: flex; gap: 0.2rem; align-items: center; }
.lang-btn {
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.3rem 0.5rem;
  border: 0.5px solid transparent;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}
.lang-btn:hover { color: var(--gold); }
.lang-btn.active { color: var(--gold); border-color: var(--gold-dim); }
.mobile-lang { display: flex; gap: 0.5rem; padding: 0.5rem 0; }

/* ── Mobile menu ────────────────────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99;
  padding: calc(var(--topbar-h) + var(--nav-h) + 3rem) 2.5rem 2rem;
  flex-direction: column;
  border-top: 0.5px solid var(--border);
}
.mobile-menu[aria-hidden="false"] { display: flex; }
.mobile-menu ul { list-style: none; }
.mobile-menu li + li { margin-top: 2rem; }
.mobile-menu a {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-style: italic;
  color: var(--text);
}
.mobile-cta {
  display: inline-block;
  background: transparent !important;
  border: 0.5px solid var(--gold) !important;
  color: var(--gold) !important;
  padding: 0.75rem 2rem;
  font-family: var(--font-sans) !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 1rem;
}

/* ── Bottoni ────────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--bg);
  padding: 0.85rem 2.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  border: none;
  font-family: var(--font-sans);
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--gold-light); }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--muted);
  padding: 0.85rem 2.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 0.5px solid var(--muted);
  cursor: pointer;
  font-family: var(--font-sans);
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* ── Sezioni ────────────────────────────────────────────────── */
.section { padding: 5rem 2.5rem; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2.5rem; }

.section-eyebrow {
  font-size: 0.62rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 400;
  line-height: 1.12;
  color: var(--text);
}
.section-title em { font-style: italic; color: var(--gold-light); }

.divider-v {
  width: 0.5px;
  background: var(--border-md);
  margin: 0 auto;
}

/* ── Placeholder immagini ───────────────────────────────────── */
.img-ph {
  width: 100%; height: 100%;
  background: var(--bg3);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.8rem;
  color: rgba(200,149,90,0.3);
}

/* ── Hero (Homepage) ────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 0.5px solid var(--border);
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 5rem 2.5rem;
  background: transparent;
}
.hero-line {
  width: 0.5px;
  height: 3rem;
  background: rgba(255,255,255,0.35);
  margin: 0 auto 2rem;
}
.hero-eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #E0B07A;
  margin-bottom: 1.5rem;
}
.hero-h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1.08;
  margin-bottom: 1.5rem;
  max-width: 720px;
  color: #FAF7F2;
  text-shadow: 0 2px 24px rgba(0,0,0,0.25);
}
.hero-h1 em { font-style: italic; color: #E0B07A; }
.hero-desc {
  font-size: 0.9rem;
  color: rgba(250,247,242,0.82);
  max-width: 440px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  font-weight: 300;
}
.hero-actions { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; justify-content: center; }

.btn-hero-primary {
  display: inline-block;
  background: #E0B07A;
  color: #16120C;
  padding: 0.9rem 2.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  font-family: var(--font-sans);
  transition: background 0.2s;
}
.btn-hero-primary:hover { background: #FAF7F2; }

.btn-hero-ghost {
  display: inline-block;
  background: transparent;
  color: rgba(250,247,242,0.85);
  padding: 0.9rem 2.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: var(--font-sans);
  border: 0.5px solid rgba(250,247,242,0.5);
  transition: border-color 0.2s, color 0.2s;
}
.btn-hero-ghost:hover { border-color: #E0B07A; color: #E0B07A; }

/* ── Features strip ─────────────────────────────────────────── */
.features {
  display: flex;
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
}
.feat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
  border-right: 0.5px solid var(--border);
  text-align: center;
}
.feat-item:last-child { border-right: none; }
.feat-num {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-style: italic;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.feat-icon {
  width: 2rem;
  height: 2rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
  flex-shrink: 0;
}
.feat-label {
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 0.2rem;
  letter-spacing: 0.03em;
}
.feat-sub {
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 300;
}

/* ── Gallery strip (Homepage) ───────────────────────────────── */
.gallery-strip {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2px;
  margin: 0;
}
.g-cell {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--bg3);
}
.g-cell.tall { grid-row: span 2; height: 404px; }
.g-cell img { position: absolute; top:0; left:0; width:100%; height:100%; object-fit:cover; }
.g-tag {
  position: absolute;
  bottom: 12px; left: 12px;
  background: rgba(44,36,24,0.88);
  padding: 4px 10px;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  z-index: 1;
}

/* ── Virtual Tour ───────────────────────────────────────────── */
.virtual-tour-bar {
  display: flex;
  justify-content: center;
  padding: 1.5rem 1.25rem;
  border-top: 0.5px solid var(--border);
  background: var(--bg2);
}
.btn-virtual-tour {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.75rem;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn-virtual-tour:hover {
  background: var(--gold);
  color: var(--bg);
}
.vt-modal {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  z-index: 1000;
}
.vt-modal::backdrop {
  background: rgba(0,0,0,0.88);
}
.vt-modal-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vt-modal iframe {
  width: 92vw;
  height: 86vh;
  border: none;
  display: block;
}
.vt-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  z-index: 10;
  opacity: 0.75;
  transition: opacity 0.15s;
}
.vt-close:hover { opacity: 1; }

/* ── Quote ──────────────────────────────────────────────────── */
.quote-section {
  text-align: center;
  padding: 4rem 2.5rem;
  border-top: 0.5px solid var(--border);
}
.q-line {
  width: 1px; height: 40px;
  background: var(--border);
  margin: 0 auto 1.5rem;
}
.q-text {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-style: italic;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.5;
  color: var(--gold-light);
}
.q-by {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1.2rem;
}

/* ── Booking Widget ─────────────────────────────────────────── */
/* Gli override del widget Octorate sono in booking-widget-styles.njk (inline)
   perché il widget carica il suo CSS dopo style.css e lo sovrascrive */
.booking-widget-section {
  background: #1E1810;
  border-top: 1px solid rgba(155,106,58,0.3);
  border-bottom: 1px solid rgba(155,106,58,0.3);
  overflow: hidden;
}
.booking-widget-inner {
  display: grid;
  grid-template-columns: 40% 60%;
  align-items: stretch;
}
.booking-widget-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.booking-widget-content {
  padding: 3rem 2.5rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.booking-eyebrow { color: rgba(200,168,130,0.8) !important; margin-bottom: 0.4rem !important; }
.booking-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  color: #FAF7F2;
  margin-bottom: 1.75rem;
  line-height: 1.25;
}
.booking-title em { font-style: italic; color: var(--gold-light); }

/* ── Chi siamo (homepage about) ─────────────────────────────── */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 0.5px solid var(--border);
}
.about-img { position: relative; min-height: 400px; overflow: hidden; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-body {
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about-body p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 1.2rem;
}
.about-body a { color: var(--gold); font-size: 0.8rem; margin-top: 1.5rem; display: inline-block; }

/* ── Camere grid (homepage) ─────────────────────────────────── */
.camere-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.c-card {
  background: var(--bg2);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: background 0.2s;
}
.c-card:hover { background: var(--bg3); }
.c-img {
  height: 240px;
  overflow: hidden;
  position: relative;
  background: var(--bg3);
}
.c-img img { width: 100%; height: 100%; object-fit: cover; }
.c-body { padding: 1.5rem; flex: 1; }
.c-num {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  color: var(--gold-dim);
  display: block;
  margin-bottom: 0.5rem;
}
.c-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}
.c-excerpt, .c-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.c-cta {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── Sec header ─────────────────────────────────────────────── */
.sec-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
}

/* ── Attivita section (homepage) ────────────────────────────── */
.att-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.att-card {
  background: var(--bg2);
  border: 0.5px solid var(--border);
  padding: 1.8rem 1.5rem;
}
.att-cat {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}
.att-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: 0.8rem;
}
.att-desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.7;
}
.att-img {
  height: 180px;
  overflow: hidden;
  position: relative;
  background: var(--bg3);
  margin-bottom: 1.2rem;
}
.att-img img { width: 100%; height: 100%; object-fit: cover; }

/* ── Page hero ──────────────────────────────────────────────── */
.page-hero {
  text-align: center;
  padding: 5rem 2.5rem 3rem;
  border-bottom: 0.5px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.page-hero .divider-v { height: 48px; margin-bottom: 2rem; }
.ph-desc {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.8;
  margin-top: 1.2rem;
}

/* ── Camere list page ───────────────────────────────────────── */
.camere-list { padding: 0; }
.camera-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 400px;
  border-bottom: 0.5px solid var(--border);
}
.camera-row.reverse { direction: rtl; }
.camera-row.reverse > * { direction: ltr; }
.cr-img { overflow: hidden; position: relative; background: var(--bg3); height: 520px; }
.cr-img img { width: 100%; height: 100%; object-fit: cover; }

/* Slider */
.cr-slider { position: relative; width: 100%; height: 100%; }
.cr-slides { position: relative; width: 100%; height: 100%; }
.cr-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s ease; }
.cr-slide.active { opacity: 1; }
.cr-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cr-prev,
.cr-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  color: #fff;
  border: none;
  width: 2.4rem;
  height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  z-index: 2;
  transition: background 0.2s;
}
.cr-prev:hover, .cr-next:hover { background: rgba(0,0,0,0.7); }
.cr-prev { left: 0.6rem; }
.cr-next { right: 0.6rem; }
.cr-dots {
  position: absolute;
  bottom: 0.7rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.35rem;
  z-index: 2;
}
.cr-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transition: background 0.2s;
}
.cr-dot.active { background: #fff; }
.cr-body {
  padding: 3.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cr-num {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  color: var(--gold-dim);
  display: block;
  margin-bottom: 0.5rem;
}
.cr-name {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}
.cr-badge {
  display: inline-block;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 0.5px solid var(--gold-dim);
  padding: 0.3rem 0.8rem;
  margin-bottom: 1rem;
}
.cr-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.8; margin-bottom: 1.2rem; }
.cr-specs {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.8rem;
}
.cr-specs li { display: flex; gap: 0.5rem; color: var(--muted); }
.cr-specs span { color: var(--text); font-weight: 400; }
.cr-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── CTA band ───────────────────────────────────────────────── */
.cta-band {
  text-align: center;
  padding: 5rem 2.5rem;
  border-top: 0.5px solid var(--border);
}
.cta-band .section-title { margin: 0.8rem 0 2rem; }

/* ── Villa page ─────────────────────────────────────────────── */
.villa-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 0.5px solid var(--border);
}
.vi-img { overflow: hidden; position: relative; min-height: 400px; background: var(--bg3); }
.vi-img img { width: 100%; height: 100%; object-fit: cover; }
.vi-body {
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.vi-body h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  margin: 0.8rem 0 1rem;
}
.vi-body h2 em { font-style: italic; color: var(--gold-light); }
.vi-body p { font-size: 0.88rem; color: var(--muted); line-height: 1.8; }

.spaces-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.space-card {
  background: var(--bg2);
  border: 0.5px solid var(--border);
}
.space-img { height: 400px; overflow: hidden; position: relative; background: var(--bg3); }
.space-img img { width: 100%; height: 100%; object-fit: cover; }
.space-body { padding: 1.5rem; }
.space-cat {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.space-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 0.6rem;
}
.space-desc { font-size: 0.8rem; color: var(--muted); line-height: 1.7; }

.map-section {
  border-top: 0.5px solid var(--border);
  padding: 4rem 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.map-body h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  margin: 0.8rem 0 1.5rem;
}
.map-body h2 em { font-style: italic; color: var(--gold-light); }
.map-body p { font-size: 0.85rem; color: var(--muted); line-height: 1.8; margin-bottom: 1rem; }
.map-body a.map-link {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-transform: uppercase;
}
.map-embed {
  background: var(--bg3);
  height: 300px;
  overflow: hidden;
  border: 0.5px solid var(--border);
}
.map-embed iframe { width: 100%; height: 100%; border: none; filter: grayscale(1) invert(0.85); }

/* ── Attivita page ──────────────────────────────────────────── */
.attivita-list { padding: 0; }
.att-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 360px;
  border-bottom: 0.5px solid var(--border);
}
.att-row.reverse { direction: rtl; }
.att-row.reverse > * { direction: ltr; }
.att-row-img { overflow: hidden; position: relative; background: var(--bg3); }
.att-row-img img { width: 100%; height: 100%; object-fit: cover; }
.att-row-body {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.att-row-cat {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}
.att-row-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 1rem;
}
.att-row-desc { font-size: 0.86rem; color: var(--muted); line-height: 1.8; }

/* ── Galleria page ──────────────────────────────────────────── */
.gallery-filter {
  display: flex;
  gap: 1rem;
  padding: 2rem 2.5rem;
  border-bottom: 0.5px solid var(--border);
}
.filter-btn {
  background: none;
  border: 0.5px solid transparent;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.filter-btn:hover,
.filter-btn.active { color: var(--gold); border-color: var(--gold-dim); }

.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding: 2px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg3);
  aspect-ratio: 1;
}
.gallery-item.tall { grid-row: span 2; aspect-ratio: auto; }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.gallery-item:hover img { transform: scale(1.05); }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(44,36,24,0.92);
  z-index: 500;
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 2rem;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}
.lightbox-close:hover { color: var(--gold); }
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--gold);
  font-size: 2rem;
  cursor: pointer;
  padding: 1rem;
}
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

/* ── Contatto page ──────────────────────────────────────────── */
.contatto-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 0;
  border-top: 0.5px solid var(--border);
}
.form-wrap {
  padding: 4rem 3rem;
  border-right: 0.5px solid var(--border);
}
.form-intro {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}
.contact-sidebar {
  padding: 4rem 2.5rem;
  background: var(--bg2);
}

/* ── Form shared ────────────────────────────────────────────── */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.field { display: flex; flex-direction: column; margin-bottom: 1rem; }
.field label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.field input,
.field select,
.field textarea {
  background: var(--bg3);
  border: 0.5px solid var(--border-md);
  color: var(--text);
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 300;
  outline: none;
  width: 100%;
  transition: border-color 0.2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--gold); }
.field textarea { resize: vertical; min-height: 120px; }
.field select { cursor: pointer; }

fieldset {
  border: 0.5px solid var(--border);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
fieldset legend {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 0 0.5rem;
}

.privacy-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 1rem 0 1.5rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.privacy-row input[type="checkbox"] { margin-top: 0.2rem; flex-shrink: 0; }
.privacy-row a { color: var(--gold); }

.form-notice {
  font-size: 0.72rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.form-feedback {
  margin-top: 1rem;
  padding: 1rem;
  font-size: 0.82rem;
  display: none;
}
.form-feedback.success { background: rgba(200,149,90,0.1); color: var(--gold-light); display: block; }
.form-feedback.error { background: rgba(181,83,42,0.1); color: var(--terr); display: block; }

/* Sidebar info block */
.info-block { margin-bottom: 2.5rem; }
.info-block h3 {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  font-weight: 400;
}
.info-block p,
.info-block address p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.8;
}
.info-block a { color: var(--gold-light); }
.info-block a:hover { color: var(--gold); }

/* ── Prenota page ───────────────────────────────────────────── */
.book-hero {
  text-align: center;
  padding: 5rem 2.5rem 3rem;
  border-bottom: 0.5px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.book-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  border-top: 0.5px solid var(--border);
}
.book-form { padding: 3rem; border-right: 0.5px solid var(--border); }
.book-sidebar { padding: 3rem 2.5rem; background: var(--bg2); }
.book-info-item {
  margin-bottom: 1.8rem;
  padding-bottom: 1.8rem;
  border-bottom: 0.5px solid var(--border);
}
.book-info-item:last-child { border-bottom: none; }
.book-info-label {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.book-info-val { font-size: 0.82rem; color: var(--muted); line-height: 1.6; }
.incluso-list {
  list-style: none;
  margin-top: 0.5rem;
}
.incluso-list li {
  font-size: 0.8rem;
  color: var(--muted);
  padding: 0.3rem 0;
  padding-left: 1rem;
  position: relative;
}
.incluso-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* ── Legal pages ────────────────────────────────────────────── */
.legal-section { padding-top: 3rem; padding-bottom: 4rem; }
.legal-body {
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.85;
  color: var(--text);
}
.legal-body h2 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--gold-light);
  margin: 2.5rem 0 0.75rem;
}
.legal-body p { margin-bottom: 1rem; font-size: 0.9rem; }
.legal-body a { color: var(--gold-light); text-decoration: underline; }
.legal-updated { margin-top: 3rem; font-size: 0.75rem; color: var(--muted); }

/* ── FAQ page ────────────────────────────────────────────────── */
.faq-section { padding: 3rem 2.5rem 5rem; }
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 0.5px solid var(--border); }
.faq-item:first-child { border-top: 0.5px solid var(--border); }
.faq-q {
  list-style: none;
  padding: 1.3rem 2rem 1.3rem 0;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text);
  cursor: pointer;
  position: relative;
  user-select: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--gold);
  transition: transform 0.25s ease;
}
.faq-item[open] .faq-q::after { content: '−'; }
.faq-a {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.8;
  padding: 0 2rem 1.3rem 0;
  margin: 0;
}

/* ── Cookie banner ───────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1a1510;
  border-top: 1px solid rgba(155,106,58,0.4);
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  z-index: 9999;
  flex-wrap: wrap;
}
.cookie-banner p { font-size: 0.8rem; color: var(--muted); margin: 0; line-height: 1.6; }
.cookie-banner a { color: var(--gold-light); text-decoration: underline; white-space: nowrap; }
.cookie-banner-actions { display: flex; gap: 0.75rem; flex-shrink: 0; }
.cookie-btn-accept {
  background: var(--gold);
  color: #fff;
  border: none;
  padding: 0.5rem 1.25rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--font-sans);
}
.cookie-btn-decline {
  background: transparent;
  color: var(--muted);
  border: 0.5px solid var(--border);
  padding: 0.5rem 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--font-sans);
}
.cookie-btn-accept:hover { background: var(--gold-light); }
.cookie-btn-decline:hover { color: var(--text); }

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--bg2);
  border-top: 0.5px solid var(--border);
  padding: 4rem 2.5rem 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 0.5px solid var(--border);
}
.footer-brand { display: flex; flex-direction: row; align-items: flex-start; gap: 0.8rem; margin-bottom: 0.8rem; }
.footer-logo-img {
  height: 3rem;
  width: auto;
  filter: brightness(0) saturate(100%) invert(68%) sepia(37%) saturate(571%) hue-rotate(356deg) brightness(97%);
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.footer-brand-text { display: flex; flex-direction: column; }
.footer-brand-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--gold-light);
  margin-bottom: 0.3rem;
}
.footer-tagline {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0.6rem;
}
.footer-col h3 {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
  font-weight: 400;
}
.footer-col ul { list-style: none; }
.footer-col li + li { margin-top: 0.6rem; }
.footer-col a { font-size: 0.8rem; color: var(--muted); transition: color 0.2s; }
.footer-col a:hover { color: var(--gold-light); }
address p + p { margin-top: 0.5rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  font-size: 0.68rem;
  color: var(--muted);
  opacity: 0.6;
}
.footer-bottom a:hover { color: var(--gold); opacity: 1; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner { padding: 3rem 2rem; }
  .camere-grid { grid-template-columns: 1fr 1fr; }
  .att-grid { grid-template-columns: 1fr 1fr; }
  .spaces-grid { grid-template-columns: 1fr 1fr; }
  .book-layout { grid-template-columns: 1fr; }
  .book-sidebar { border-top: 0.5px solid var(--border); }
}

@media (max-width: 900px) {
  .nav-links, .btn-nav, .lang-switcher { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .about-section { grid-template-columns: 1fr; }
  .villa-intro { grid-template-columns: 1fr; }
  .camera-row { grid-template-columns: 1fr; direction: ltr; }
  .camera-row.reverse { direction: ltr; }
  .att-row { grid-template-columns: 1fr; direction: ltr; }
  .att-row.reverse { direction: ltr; }
  .contatto-layout { grid-template-columns: 1fr; }
  .map-section { grid-template-columns: 1fr; }
  .gallery-masonry { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .section { padding: 3rem 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .camere-grid { grid-template-columns: 1fr; }
  .att-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .features { flex-wrap: wrap; }
  .feat-item { flex: 1 0 50%; border-right: none; border-bottom: 0.5px solid var(--border); }
  .gallery-masonry { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.tall { grid-row: span 1; }
  .gallery-strip { grid-template-columns: 1fr 1fr; }
  .g-cell.tall { grid-row: span 1; height: 200px; }
  .booking-widget-inner { grid-template-columns: 1fr; }
  .booking-widget-img { height: 220px; }
  .booking-widget-content { padding: 2.5rem 1.25rem; }
}
