/* ================================================================
   CASALE DE' PASQUINELLI — Shared Design System
   (Navbar, Footer, Cookie banner, Inner page templates)
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Quattrocento:wght@400;700&family=Rethink+Sans:wght@300;400;500;600&family=Della+Respira&display=swap');

/* ── CSS Variables ── */
:root {
  --beige:       #E6E2D6;
  --beige-page:  #F7F4EB;
  --white:       #FFFFFF;
  --brown:       #4B4326;
  --brown-body:  #423B25;
  --brown-text:  #574E2D;
  --gold:        #695E36;
  --gold-border: #867743;
  --gold-acts:   #A59350;
  --fcfcfc:      #FCFCFC;
  --dark-acts:   #16160F;

  --font-body:    'Quattrocento', Georgia, serif;
  --font-sans:    'Rethink Sans', system-ui, sans-serif;
  --font-special: 'Della Respira', Georgia, serif;

  --radius:   6px;
  --bg-page:  linear-gradient(160deg, #FDFAF5 0%, #EDE8DB 100%);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--brown-body);
  background: #fff;
  overflow-x: clip;
  opacity: 0;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
/* Global: body text — Quattrocento 16px everywhere */
p, li { font-family: var(--font-body); font-size: 16px; }

/* ================================================================
   NAVBAR
   ================================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(0,0,0,0.52) 0%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 70px;
  transition: background 0.4s, height 0.3s;
}
.navbar.scrolled {
  background: rgba(20, 18, 12, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.3);
}
.nav-logo img { height: 44px; width: auto; transition: height 0.35s ease; }
.navbar.scrolled .nav-logo img { height: 30px; }
.nav-menu {
  display: flex;
  list-style: none;
  gap: 28px;
  align-items: center;
}
.nav-menu a {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: #fff;
  text-transform: uppercase;
  transition: opacity 0.2s;
}
.nav-menu a:hover { opacity: 0.7; }
.nav-menu .has-dropdown { position: relative; }
.nav-dropdown {
  position: absolute;
  top: 100%; left: 0;
  background: #000;
  min-width: 180px;
  padding: 8px 0;
  display: none;
  flex-direction: column;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.has-dropdown:hover .nav-dropdown { display: flex; }
.nav-dropdown a { padding: 10px 20px; display: block; font-size: 12px; }
.cdp-caret {
  font-size: 8px; margin-left: 4px; vertical-align: middle;
  display: inline-block; transition: transform 0.2s ease;
}
.has-dropdown:hover .cdp-caret { transform: rotate(180deg); }
/* Language dropdown */
.nav-langs-wrap {
  position: relative;
  cursor: pointer;
}
.nav-langs-current {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 0;
}
.nav-langs-current > img {
  width: 22px; height: 16px;
  border-radius: 2px;
}
.nav-langs-caret {
  color: rgba(255,255,255,0.75);
  font-size: 9px;
  line-height: 1;
}
.nav-langs-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: rgba(20, 18, 12, 0.97);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(0,0,0,0.45);
  min-width: 38px;
}
.nav-langs-wrap:hover .nav-langs-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-langs-menu img {
  width: 22px; height: 16px;
  border-radius: 2px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
  display: block;
}
.nav-langs-menu img:hover { opacity: 1; }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  border-radius: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #E6E2D6;
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.navbar.scrolled .nav-hamburger span { background: var(--brown); }

/* ── Mobile nav ── */
.cdp-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(30,24,10,0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1100;
}
.cdp-nav-overlay.cdp-nav-open { display: block; }
.cdp-mobile-nav {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 320px;
  background: #FAF8F4;
  z-index: 1200;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(0,0,0,0.18);
}
.cdp-mobile-nav.cdp-nav-open { transform: translateX(0); }
.cdp-mobile-nav-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-bottom: 28px;
}

/* Nav header: logo + close */
.cdp-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 18px;
  border-bottom: 1px solid rgba(165,147,80,0.15);
}
.cdp-nav-header-logo { height: 32px; width: auto; opacity: 0.9; }
.cdp-nav-close {
  background: none;
  border: 1px solid rgba(165,147,80,0.25);
  color: #2B2416;
  font-size: 14px;
  cursor: pointer;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s, border-color 0.2s;
}
.cdp-nav-close:hover { background: rgba(165,147,80,0.1); border-color: #A59350; }

/* Nav list */
.cdp-nav-list {
  list-style: none;
  padding: 10px 0;
  flex: 1;
}
.cdp-nav-list > li > a,
.cdp-sub-toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 24px;
  color: #2B2416;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.cdp-nav-list > li > a:hover,
.cdp-sub-toggle:hover { background: rgba(165,147,80,0.07); color: #A59350; }
.cdp-nav-list > li > a:hover .nav-item-icon,
.cdp-sub-toggle:hover .nav-item-icon { color: #A59350; }
.nav-item-icon {
  width: 18px;
  text-align: center;
  color: #A59350;
  font-size: 12px;
  flex-shrink: 0;
  opacity: 0.85;
}
.cdp-nav-divider { height: 1px; background: rgba(165,147,80,0.12); margin: 4px 24px; }

/* Sub-list */
.cdp-sub-list {
  list-style: none;
  display: none;
  margin: 0 0 4px 56px;
  padding: 4px 0;
  border-left: 1.5px solid rgba(165,147,80,0.25);
}
.cdp-sub-list.cdp-open { display: block; }
.cdp-sub-list a {
  display: block;
  padding: 9px 16px;
  font-family: var(--font-sans);
  font-size: 12px;
  color: #5A4F30;
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: none;
  transition: color 0.18s;
}
.cdp-sub-list a:hover { color: #A59350; }

/* Chevron */
.cdp-chevron { margin-left: auto; font-size: 9px; color: rgba(165,147,80,0.7); }
.cdp-chevron i { display: inline-block; transition: transform 0.25s ease; }
.cdp-sub-toggle[aria-expanded="true"] .cdp-chevron i { transform: rotate(180deg); }

/* Language selector */
.cdp-nav-lang {
  display: flex;
  gap: 4px;
  padding: 20px 24px 0;
  margin-top: auto;
  border-top: 1px solid rgba(165,147,80,0.15);
}
.cdp-nav-lang a {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  color: #8B7D52;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
}
.cdp-nav-lang a:hover,
.cdp-nav-lang a.cdp-lang-active { background: rgba(165,147,80,0.12); color: #A59350; }

/* ================================================================
   FOOTER — light cream
   ================================================================ */
footer {
  background: #EDE9DC;
  color: var(--brown);
  padding: 60px 40px 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  border-top: 1px solid rgba(75,67,38,0.12);
}
.footer-logo { height: 60px; width: auto; margin: 0 auto; opacity: 0.85; }
.footer-socials { display: flex; gap: 20px; justify-content: center; }
.footer-socials a { color: var(--brown); font-size: 18px; transition: color 0.2s; opacity: 0.6; }
.footer-socials a:hover { color: var(--gold); opacity: 1; }
.footer-links { display: flex; gap: 16px; align-items: center; font-family: var(--font-sans); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.footer-links a { color: var(--brown-body); opacity: 0.7; transition: opacity 0.2s; }
.footer-links a:hover { opacity: 1; }
.footer-links span { color: rgba(75,67,38,0.3); }
.footer-bottom { font-family: var(--font-sans); font-size: 11px; color: rgba(75,67,38,0.5); line-height: 1.8; }
.footer-legal { display: flex; gap: 12px; justify-content: center; margin-bottom: 8px; }
.footer-legal a { color: rgba(75,67,38,0.5); transition: color 0.2s; }
.footer-legal a:hover { color: var(--gold); }

/* ================================================================
   COOKIE BANNER + MODAL
   ================================================================ */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(20,18,8,0.97);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 40px;
  flex-wrap: wrap;
}
.cookie-banner-text {
  font-family: var(--font-sans);
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  flex: 1;
  min-width: 200px;
}
.cookie-banner-text a { color: var(--gold); text-decoration: underline; }
.cookie-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-btn {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 18px;
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  color: #fff;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.2s, border-color 0.2s;
}
.cookie-btn:hover { background: rgba(255,255,255,0.1); }
.cookie-btn.primary { background: var(--gold); border-color: var(--gold); }
.cookie-btn.primary:hover { background: var(--brown); border-color: var(--brown); }
#cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal-box {
  background: #fff;
  padding: 40px;
  border-radius: var(--radius);
  max-width: 480px;
  width: 90%;
}
.cookie-modal-box h3 {
  font-family: var(--font-body);
  font-size: 22px;
  color: var(--brown);
  margin-bottom: 24px;
}
.cookie-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--brown-body);
}
.toggle { position: relative; display: inline-block; width: 44px; height: 24px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 12px;
  transition: background 0.2s;
}
.slider::before {
  content: '';
  position: absolute;
  height: 18px; width: 18px;
  left: 3px; bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}
.toggle input:checked + .slider { background: var(--gold); }
.toggle input:checked + .slider::before { transform: translateX(20px); }
.cookie-modal-btns { display: flex; gap: 12px; margin-top: 24px; }
.btn-save, .btn-accept-all {
  flex: 1;
  padding: 12px;
  font-family: var(--font-sans);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  border-radius: var(--radius);
  border: 1px solid var(--gold);
  transition: background 0.2s, color 0.2s;
}
.btn-save { background: transparent; color: var(--gold); }
.btn-save:hover { background: var(--gold); color: #fff; }
.btn-accept-all { background: var(--gold); color: #fff; }
.btn-accept-all:hover { background: var(--brown); border-color: var(--brown); }

/* ================================================================
   PAGE HERO (generic — used by inner pages)
   ================================================================ */
.page-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--brown);
}
.page-hero.half { min-height: 50vh; }
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 0;
}
.page-hero-overlay { position: absolute; inset: 0; z-index: 1; }
.page-hero-overlay.dark { background: linear-gradient(180deg, #000 0%, rgba(255,255,255,0.2) 100%); opacity: 0.5; }
.page-hero-overlay.medium { background: rgba(0,0,0,0.34); }
.page-hero-content { position: relative; z-index: 2; text-align: center; color: #fff; padding: 20px; }
.page-hero-title {
  font-family: var(--font-body);
  font-size: 80px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 3.6px;
  color: #fff;
  padding: 20px;
}
.page-hero-btn {
  display: inline-block;
  margin-top: 40px;
  font-family: var(--font-sans);
  font-size: 20px;
  letter-spacing: 3.5px;
  color: #fff;
  background: transparent;
  border: none;
  border-bottom: 1px solid #fff;
  padding: 20px 40px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.page-hero-btn:hover { background: #fff; color: var(--brown); }

/* ================================================================
   VENUE PAGE — parallax scroll (panel rises over hero)
   ================================================================ */
.venue-block-wrap { overflow: hidden; position: relative; background: var(--bg-page); }
.venue-hero-img {
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.venue-hero-img::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.34); }
.venue-hero-text { position: relative; z-index: 1; text-align: center; color: #fff; }
.venue-spacer { height: 100vh; }
.venue-panel {
  background: var(--bg-page);
  border-radius: 30px 30px 0 0;
  margin-top: -110vh;
  min-height: 100vh;
  position: relative;
  z-index: 2;
  padding: 100px 8vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.venue-panel .venue-divider { font-family: var(--font-body); font-size: 60px; font-weight: 200; color: #000; margin: 16px 0 30px; line-height: 1; }
.venue-panel .venue-body { font-family: var(--font-sans); font-size: 16px; color: var(--brown-body); line-height: 1.75; max-width: 680px; margin-bottom: 20px; }
.venue-features { list-style: none; margin: 20px 0 32px; }
.venue-features li { font-family: var(--font-sans); font-size: 15px; color: var(--brown-body); padding: 4px 0; display: flex; align-items: center; gap: 10px; }
.venue-features li::before { content: ''; display: inline-block; width: 8px; height: 8px; background: var(--gold); border-radius: 50%; flex-shrink: 0; }

/* ================================================================
   WEDDINGS PAGE
   ================================================================ */
.wed-gold-divider { font-size: 60px; color: var(--gold); font-weight: 200; line-height: 1; width: 65%; border-bottom: 1px solid var(--gold); padding-bottom: 14px; margin-bottom: 28px; }

/* ================================================================
   ACTIVITIES PAGE — dark sticky menu + scrolling panels
   ================================================================ */
.acts-page { background: #16160F; min-height: 100vh; }
.acts-layout { display: flex; background: #16160F; }
.acts-menu-col {
  width: 50%;
  padding: 150px 6vw 80px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 5;
}
.acts-menu-list { list-style: none; }
.acts-menu-item {
  font-family: var(--font-body);
  font-size: 15px;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: color 0.3s;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.acts-menu-item.active, .acts-menu-item:hover { color: #A59350; }
.acts-panels-col { width: 50%; }
.acts-panel {
  min-height: 90vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 80px;
  background-size: cover;
  background-position: center;
}
.acts-panel::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.8) 100%); }
.acts-panel-content { position: relative; z-index: 1; }
.acts-panel-title { font-family: var(--font-body); font-size: 60px; color: #A59350; margin-bottom: 12px; }
.acts-panel-divider { font-family: var(--font-special); font-size: 50px; color: rgba(255,255,255,0.4); line-height: 1; width: 29%; border-bottom: 1px solid rgba(255,255,255,0.15); padding-bottom: 15px; margin-bottom: 16px; }
.acts-panel-body { font-family: var(--font-sans); font-size: 16px; color: rgba(255,255,255,0.8); line-height: 1.7; max-width: 90%; }

/* ================================================================
   FAQ PAGE
   ================================================================ */
.faq-body-section { background: var(--bg-page); min-height: 100vh; display: flex; justify-content: center; padding: 4% 0; }
.faq-content { width: 70%; max-width: 900px; }
.faq-intro { font-family: var(--font-body); font-size: 18px; color: var(--brown); line-height: 1.7; margin-bottom: 32px; background: #fff; padding: 24px 32px; border-radius: var(--radius); }
.faq-accordion { display: flex; flex-direction: column; gap: 8px; margin-top: 24px; }
.faq-item { background: #FCFAF3; border: 1px solid #A59559; border-radius: var(--radius); overflow: hidden; }
.faq-question { width: 100%; text-align: left; padding: 15px 30px; background: none; border: none; font-family: var(--font-body); font-size: 18px; font-weight: 600; color: var(--gold); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-icon { font-size: 20px; transition: transform 0.3s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden; padding: 0 30px;
  font-family: var(--font-sans); font-size: 16px; color: var(--brown-body); line-height: 1.7;
  transition: max-height 0.35s ease-in-out, padding 0.35s ease-in-out;
}
.faq-item.open .faq-answer { padding: 0 30px 20px; }

/* ================================================================
   CONTACTS PAGE
   ================================================================ */
.contacts-panel { background: var(--bg-page); border-radius: 30px 30px 0 0; min-height: 100vh; position: relative; z-index: 2; display: flex; align-items: stretch; flex-wrap: wrap; }
.contacts-form-col { width: 50%; padding: 100px 5% 100px 8vw; display: flex; flex-direction: column; justify-content: center; }
.contacts-form-col p { font-size: 18px; color: var(--brown-body); line-height: 1.7; margin-bottom: 32px; }
.contact-form { display: flex; flex-direction: column; gap: 24px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-family: var(--font-sans); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.form-group input, .form-group textarea, .form-group select { background: transparent; border: none; border-bottom: 1px solid var(--brown); padding: 10px 0; font-family: var(--font-body); font-size: 16px; color: var(--brown); outline: none; }
.form-group textarea { min-height: 80px; resize: vertical; }
.btn-submit { font-size: 28px; font-weight: 400; background: transparent; color: var(--gold); border: none; border-right: 1px solid var(--brown); padding: 15px 60px; cursor: pointer; font-family: var(--font-body); transition: background 0.2s, color 0.2s; align-self: flex-start; }
.btn-submit:hover { background: var(--gold); color: #fff; }
.contacts-info-col { width: 50%; padding: 6% 3%; display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.contacts-info-col p { font-size: 18px; color: var(--brown-body); line-height: 1.7; }
.contacts-map-section { height: 480px; display: flex; }
.contacts-map-section iframe { width: 100%; height: 100%; border: none; }

/* Contact hero button animations */
.contact-hero-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-size: 16px; letter-spacing: 2px;
  text-transform: uppercase; color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.6);
  padding: 14px 0; text-decoration: none;
  transition: color 0.3s, border-color 0.3s, gap 0.3s;
  opacity: 0; transform: translateY(20px);
}
.contact-hero-btn:hover { color: rgba(255,255,255,0.75); gap: 18px; border-color: rgba(255,255,255,0.4); }

/* ================================================================
   HOUSE PAGE TEMPLATE
   ================================================================ */
.house-page { background: var(--bg-page); padding-top: 70px; }

/* Sub-navigation (house tabs) */
.house-subnav {
  position: sticky; top: 70px; z-index: 990;
  background: #F7F4EB;
  border-bottom: 1px solid rgba(75,67,38,0.18);
  display: flex; align-items: stretch;
  padding: 0 40px; height: 48px;
}
.house-subnav a {
  font-family: var(--font-sans); font-size: 11px; font-weight: 400;
  color: rgba(75,67,38,0.55); text-decoration: none;
  padding: 0 20px; letter-spacing: 0.1em; text-transform: uppercase;
  display: flex; align-items: center;
  position: relative;
  transition: color 0.25s;
}
.house-subnav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 20px; right: 20px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.house-subnav a:first-child { padding-left: 0; }
.house-subnav a:first-child::after { left: 0; }
.house-subnav a.active { color: var(--gold); font-weight: 600; }
.house-subnav a.active::after { transform: scaleX(1); }
.house-subnav a:hover { color: var(--brown); }
.house-subnav a:hover::after { transform: scaleX(1); }
.house-subnav .subnav-home {
  margin-left: auto;
  border-left: 1px solid rgba(75,67,38,0.18);
  font-size: 10px; letter-spacing: 0.15em;
}
.house-subnav .subnav-home::after { display: none; }

/* Section 1: header (title left, photo right) */
.hs-header {
  display: flex; align-items: flex-start;
  padding: 7% 8vw 5%; gap: 6%;
}
.hs-info { flex: 0 0 50%; display: flex; flex-direction: column; min-height: 50vh; }
.hs-name {
  font-family: var(--font-body); font-size: 72px; font-weight: 400;
  color: var(--brown); line-height: 1; margin-bottom: 14px;
}
.hs-divider { width: 26%; height: 1px; background: var(--gold); margin-bottom: 28px; }
.hs-desc p {
  font-family: var(--font-body); font-size: 16px; line-height: 1.78;
  color: var(--brown-body); margin-bottom: 14px;
}
.hs-buttons {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: 32px;
}
.hs-btn-avail {
  font-family: var(--font-sans); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--brown);
  border: 1px solid var(--brown); padding: 15px 30px;
  text-decoration: none; transition: background 0.2s, color 0.2s;
}
.hs-btn-avail:hover { background: var(--brown); color: #F7F4EB; }
.hs-btn-services {
  display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
  font-family: var(--font-sans); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--brown-body);
  text-decoration: none; opacity: 0.7;
}
.hs-btn-services:hover { opacity: 1; }
.hs-btn-services i { font-size: 14px; }
.hs-hero-photo { flex: 1; min-width: 0; }
.hs-hero-photo img { width: 100%; height: auto; display: block; object-fit: cover; }

/* Hero Slider */
.hs-hero-slider {
  flex: 1; min-width: 0; position: relative; overflow: hidden;
  height: 65vh; min-height: 400px;
}
.hs-slider-track {
  display: flex; height: 100%;
  transition: transform 0.55s cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
}
.hs-slide { min-width: 100%; height: 100%; overflow: hidden; }
.hs-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hs-slbtn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(247,244,235,0.82); backdrop-filter: blur(4px);
  border: 1px solid rgba(165,147,80,0.35);
  width: 40px; height: 40px; border-radius: 50%;
  cursor: pointer; font-size: 26px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  z-index: 5; color: var(--brown); padding: 0;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.hs-slbtn:hover { background: var(--gold); color: #fff; border-color: var(--gold); }
.hs-slprev { left: 12px; }
.hs-slnext { right: 12px; }
.hs-sldots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 5px; z-index: 5;
}
.hs-sldot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.4); cursor: pointer;
  border: none; padding: 0; flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
}
.hs-sldot.active { background: #fff; transform: scale(1.3); }

/* Section 2: two photos with scroll scale effect */
.hs-two-photos { display: flex; gap: 2px; }
.hs-photo-half { flex: 1; overflow: hidden; }
.hs-photo-half img { width: 100%; height: 500px; object-fit: cover; display: block; transform-origin: center; will-change: transform; }

/* Section 3: photo + features */
.hs-features-row {
  display: flex; align-items: flex-start;
  padding: 7% 8vw 5%; gap: 6%;
}
.hs-features-photo { flex: 0 0 42%; }
.hs-features-photo img { width: 100%; height: 540px; object-fit: cover; display: block; }
.hs-feat-slider { position: relative; overflow: hidden; width: 100%; height: 540px; }
.hs-features-col { flex: 1; }
.hs-feat-title-wrap {
  display: flex; align-items: center; gap: 20px; margin-bottom: 24px;
}
.hs-feat-title-wrap h2 {
  font-family: var(--font-body); font-size: 34px; font-weight: 400;
  color: var(--brown); flex-shrink: 0; line-height: 1;
}
.hs-feat-line { flex: 1; height: 1px; background: var(--gold); }
.hs-feat-list-new { list-style: none; margin-bottom: 36px; }
.hs-feat-list-new li {
  font-family: var(--font-body); font-size: 14px; color: var(--brown-body);
  padding: 7px 0; border-bottom: 1px solid rgba(75,67,38,0.1);
  display: flex; align-items: center; gap: 10px;
}
.hs-feat-list-new li::before {
  content: '•'; color: var(--gold); font-size: 14px; flex-shrink: 0;
}
.hs-feat-buttons {
  display: flex; justify-content: space-between; align-items: center;
}
.hs-book-btn, .hs-map-btn {
  font-family: var(--font-body); font-size: 16px; font-weight: 400;
  color: var(--gold); text-decoration: none;
  border-bottom: 1px solid var(--gold); padding-bottom: 3px;
  transition: opacity 0.2s;
}
.hs-book-btn:hover, .hs-map-btn:hover { opacity: 0.65; }

/* Section 4: map */
.hs-map-section { padding: 5% 8vw 7%; text-align: center; }
.hs-map-title {
  font-family: var(--font-body); font-size: 34px; font-weight: 400;
  letter-spacing: 6px; text-transform: uppercase;
  color: var(--brown); margin-bottom: 24px;
}
.hs-map-text {
  font-family: var(--font-sans); font-size: 14px; line-height: 1.78;
  color: var(--brown-body); max-width: 760px; margin: 0 auto 44px;
}
.hs-map-container {
  position: relative; max-width: 820px; margin: 0 auto;
  border: 1px solid rgba(75,67,38,0.15);
}
.hs-map-container img { width: 100%; height: auto; display: block; }
.hs-map-overlay { position: absolute; inset: 0; pointer-events: none; }

/* Responsive */
@media (max-width: 900px) {
  .house-subnav { padding: 0 16px; overflow-x: auto; }
  .house-subnav a { font-size: 11px; padding: 0 10px; white-space: nowrap; }
  .hs-header { flex-direction: column; padding: 5% 6vw; }
  .hs-info { min-height: unset; }
  .hs-name { font-size: 52px; }
  .hs-hero-photo img { width: 100%; height: 260px; object-fit: cover; }
  .hs-hero-slider { height: 56vw; min-height: 220px; }
  .hs-photo-half img { height: 240px; }
  .hs-features-row { flex-direction: column; padding: 5% 6vw; }
  .hs-features-photo { flex: none; width: 100%; }
  .hs-features-photo img { height: 280px; }
  .hs-feat-slider { height: 280px; }
  .hs-map-section { padding: 5% 6vw; }
  .hs-two-photos { display: none; }
  .hs-buttons { flex-direction: column; gap: 14px; padding-top: 24px; margin-bottom: 28px; }
}

/* ================================================================
   LEGAL PAGES (privacy, cookie policy)
   ================================================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 60px 40px; }
.legal-content { font-family: var(--font-body); color: var(--brown-body); line-height: 1.75; }
.legal-content h2 { font-family: var(--font-body); font-size: 22px; font-weight: 700; color: var(--brown); margin: 32px 0 12px; }
.legal-content p { font-size: 15px; margin-bottom: 14px; }
.legal-content ul { margin: 8px 0 16px 24px; }
.legal-content li { font-size: 15px; margin-bottom: 6px; }
.legal-content a { color: var(--gold); text-decoration: underline; }
.legal-updated { font-size: 13px; color: var(--gold); font-style: italic; margin-bottom: 28px; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 900px) {
  .navbar { padding: 0 16px; }
  .nav-menu, .nav-langs-wrap { display: none; }
  .nav-hamburger { display: flex; }

  .house-header-row, .house-second-row { flex-direction: column; }
  .house-info-col, .house-gallery-col, .house-gallery2, .house-features-col { width: 100%; padding: 16px 0; }
  .house-name { font-size: 48px; }

  .acts-layout { flex-direction: column; }
  .acts-menu-col { width: 100%; position: relative; height: auto; padding: 40px 20px 20px; }
  .acts-panels-col { width: 100%; }
  .acts-panel { padding: 40px 20px; }

  .contacts-panel { flex-direction: column; }
  .contacts-form-col, .contacts-info-col { width: 100%; padding: 40px 20px; }

  .faq-content { width: 90%; }
  .page-hero-title { font-size: 48px; }
}

/* ================================================================
   INLINE EDITOR (editor.js)
   ================================================================ */
#cdp-edit-toggle {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 9000;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(75,67,38,0.92);
  color: #fff;
  border: none;
  font-size: 20px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(0,0,0,0.32);
  transition: background 0.2s, transform 0.2s;
}
#cdp-edit-toggle:hover { background: var(--gold); transform: scale(1.08); }

#cdp-edit-toolbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9100;
  background: rgba(20,18,12,0.97);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
  height: 52px;
  gap: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-family: var(--font-sans);
}
.cdp-tb-left { display: flex; align-items: center; gap: 14px; flex: 1; overflow: hidden; }
.cdp-tb-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.cdp-tb-label { color: var(--gold); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
#cdp-font-sel {
  font-size: 11px;
  background: rgba(255,255,255,0.1); color: #fff;
  border: 1px solid rgba(255,255,255,0.2); border-radius: 2px;
  padding: 4px 8px; cursor: pointer; max-width: 190px;
}
#cdp-font-sel option { color: #000; background: #fff; }
.cdp-color-wrap {
  display: flex; align-items: center; gap: 5px;
  font-size: 10px; color: rgba(255,255,255,0.65);
  cursor: pointer; white-space: nowrap;
}
.cdp-color-wrap input[type=color] {
  width: 24px; height: 20px; border: none; border-radius: 2px;
  cursor: pointer; padding: 0; background: none;
}
.cdp-btn-save, .cdp-btn-cancel {
  font-family: var(--font-sans); font-size: 11px; letter-spacing: 0.08em;
  border: none; padding: 7px 18px; cursor: pointer; border-radius: 2px; text-transform: uppercase;
}
.cdp-btn-save { background: var(--gold); color: #fff; }
.cdp-btn-save:hover { background: #8c7a3f; }
.cdp-btn-cancel { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.8); }
.cdp-btn-cancel:hover { background: rgba(255,255,255,0.18); }

.cdp-editable {
  outline: 2px dashed rgba(165,147,80,0.55) !important;
  outline-offset: 3px;
  border-radius: 2px;
  cursor: text !important;
  min-height: 1em;
}
.cdp-editable:focus { outline: 2px solid var(--gold) !important; background: rgba(165,147,80,0.06); }
body.cdp-edit-active { padding-top: 52px; }

.cdp-toast {
  position: fixed; bottom: 90px; right: 28px;
  background: rgba(20,18,12,0.96); color: #fff;
  font-family: var(--font-sans); font-size: 13px;
  padding: 10px 22px; border-radius: 3px;
  z-index: 9200; transition: opacity 0.4s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  border-left: 3px solid var(--gold);
}
.cdp-toast.cdp-toast-error { border-left-color: #c0392b; }

/* ================================================================
   PAGE PRELOADER
   ================================================================ */
#cdp-preloader {
  position: fixed; inset: 0; z-index: 99999;
  background: #ECECEC;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
#cdp-preloader.cdp-preloader-hide {
  opacity: 0; visibility: hidden; pointer-events: none;
}
.cdp-preloader-logo {
  height: 130px; width: auto;
  animation: cdpLogoReveal 1s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.08s;
}
@keyframes cdpLogoReveal {
  from { opacity: 0; transform: scale(0.82) translateY(16px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}
.cdp-preloader-bar-wrap {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: rgba(190, 30, 45, 0.12);
}
.cdp-preloader-bar {
  height: 100%;
  width: 0%;
  background: #BE1E2D;
}

/* ================================================================
   FARM PAGE — inline photo sections
   ================================================================ */
.farm-section {
  display: grid;
  grid-template-columns: 45% 1fr;
  gap: 0;
  min-height: 60vh;
  align-items: center;
}
.farm-section.reverse { grid-template-columns: 1fr 45%; }
.farm-section-photo {
  position: relative; overflow: hidden;
  height: 100%;
  min-height: 440px;
}
.farm-section-photo img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.farm-section-text {
  padding: 80px 9%;
  display: flex; flex-direction: column; justify-content: center;
}
.farm-section.reverse .farm-section-photo { order: 2; }
.farm-section.reverse .farm-section-text { order: 1; }

/* Farm page header */
.farm-page-header {
  background: #1D1D15;
  padding: 140px 10% 80px;
  border-bottom: 1px solid rgba(165,147,80,0.2);
}
.farm-page-header h1 {
  font-family: var(--font-body);
  font-size: 80px; font-weight: 400; color: #A59350;
  text-transform: uppercase; letter-spacing: 4px; line-height: 1;
}

@media (max-width: 900px) {
  .farm-section,
  .farm-section.reverse {
    grid-template-columns: 1fr;
  }
  .farm-section-photo { min-height: 280px; height: 280px; }
  .farm-section.reverse .farm-section-photo { order: 0; }
  .farm-section.reverse .farm-section-text { order: 1; }
  .farm-section-text { padding: 40px 6vw; }
  .farm-page-header { padding: 110px 6vw 50px; }
  .farm-page-header h1 { font-size: 48px; }
}

/* ================================================================
   HOUSES.HTML (all houses overview page)
   ================================================================ */
.houses-page-hero {
  min-height: 60vh;
  background-image: url('/assets/uploads/casa-sketch.jpg'), linear-gradient(135deg,#EDE9DC 0%,#D8D2C0 100%);
  background-size: cover, cover;
  background-position: center, center;
  background-blend-mode: multiply;
  display: flex; align-items: flex-end;
  padding: 0 8vw 7%;
}
.houses-page-hero h1 {
  font-family: var(--font-body); font-size: 80px; font-weight: 200;
  color: var(--brown); text-transform: uppercase; letter-spacing: 4px; line-height: 1;
}
.houses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: #E6E2D6;
}
.houses-grid-card {
  position: relative; overflow: hidden;
  aspect-ratio: 3/4;
  text-decoration: none;
  display: block;
}
.houses-grid-card img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.6s ease;
}
.houses-grid-card:hover img { transform: scale(1.06); }
.houses-grid-card::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.72) 100%);
}
.houses-grid-foot {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  padding: 28px 24px;
  display: flex; flex-direction: column; gap: 6px;
}
.houses-grid-name {
  font-family: var(--font-body); font-size: 36px; font-weight: 400;
  color: #fff; line-height: 1;
}
.houses-grid-stats {
  font-family: var(--font-sans); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.7);
}
.houses-grid-discover {
  display: inline-block; margin-top: 10px;
  font-family: var(--font-sans); font-size: 10px; letter-spacing: 0.15em;
  text-transform: uppercase; color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.5);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}
.houses-grid-card:hover .houses-grid-discover { border-color: rgba(255,255,255,1); }

@media (max-width: 900px) {
  .houses-grid { grid-template-columns: 1fr; }
  .houses-grid-card { aspect-ratio: 16/10; }
}

/* ================================================================
   PROPERTY MAP + LEGEND (houses.html + house pages)
   ================================================================ */
.houses-map-section {
  background: #F7F4EB; padding: 70px 8vw 90px; text-align: center;
}
.houses-map-label {
  font-family: var(--font-sans); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 4px; color: var(--gold);
  margin-bottom: 10px;
}
.houses-map-section h2 {
  font-family: var(--font-body); font-size: 42px; font-weight: 400;
  color: var(--brown); letter-spacing: 4px; text-transform: uppercase; margin-bottom: 14px;
}
.houses-map-desc {
  font-family: var(--font-body); font-size: 15px; color: var(--brown-body);
  line-height: 1.78; max-width: 640px; margin: 0 auto 44px;
}
.houses-map-container {
  max-width: 900px; margin: 0 auto 52px;
  border-radius: 4px; overflow: hidden;
  box-shadow: 0 8px 40px rgba(75,67,38,0.13);
}
.houses-map-container img { width: 100%; height: auto; display: block; }
.houses-map-legend {
  display: flex; justify-content: center; align-items: flex-start;
  max-width: 860px; margin: 0 auto;
  background: #fff; border: 1px solid rgba(75,67,38,0.1);
  border-radius: 4px; overflow: hidden;
}
.hml-group { flex: 1; padding: 28px 32px; }
.hml-group-title {
  font-family: var(--font-sans); font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 3px; color: var(--gold);
  margin-bottom: 18px; padding-bottom: 10px;
  border-bottom: 1px solid rgba(75,67,38,0.1);
}
.hml-divider { width: 1px; background: rgba(75,67,38,0.1); align-self: stretch; flex-shrink: 0; }
.hml-items { display: flex; flex-direction: column; gap: 10px; }
.hml-item {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
}
.hml-item.hml-house {
  padding: 8px 10px; border-radius: 3px; margin: 0 -10px;
  transition: background 0.2s;
}
.hml-item.hml-house:hover { background: rgba(165,147,80,0.08); }
.hml-dot {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--brown); color: #fff;
  font-family: var(--font-body); font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hml-name {
  font-family: var(--font-body); font-size: 15px; color: var(--brown);
  flex: 1; text-align: left;
}
.hml-stat {
  font-family: var(--font-sans); font-size: 11px; color: var(--brown-body);
  opacity: 0.7; white-space: nowrap; min-width: 0;
}
.hml-area-icon {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(165,147,80,0.12); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 13px;
}
@media (max-width: 700px) {
  .houses-map-legend { flex-direction: column; }
  .hml-divider { width: auto; height: 1px; }
  .hml-group { padding: 22px 20px; }
}

/* ================================================================
   WEDDINGS GALLERY
   ================================================================ */
.wed-gallery {
  padding: 80px 4vw;
  background: #F7F4EB;
}
.wed-gallery-title {
  font-family: var(--font-body); font-size: 52px; font-weight: 400;
  color: var(--brown); text-align: center; margin-bottom: 48px;
  letter-spacing: 2px;
}
.wed-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 260px;
  gap: 4px;
}
.wed-gallery-item {
  overflow: hidden;
  cursor: pointer;
}
.wed-gallery-item.tall { grid-row: span 2; }
.wed-gallery-item.wide { grid-column: span 2; }
.wed-gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.5s ease;
}
.wed-gallery-item:hover img { transform: scale(1.04); }

@media (max-width: 900px) {
  .wed-gallery-grid { grid-template-columns: repeat(2,1fr); grid-auto-rows: 200px; }
  .wed-gallery-item.tall, .wed-gallery-item.wide { grid-row: auto; grid-column: auto; }
}

/* ── Scroll-caret bounce animation ── */
@keyframes caret-bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(7px); }
}
.caret-bounce { display: inline-block; animation: caret-bounce 2.2s ease-in-out infinite; }

/* ── Buttons: mobile full-width ── */
@media (max-width: 768px) {
  .btn-read-more,
  .hs-btn-avail,
  .wed-ceremonies-btn,
  .wed-gallery-btn {
    display: flex;
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 15px 30px;
    box-sizing: border-box;
  }
  .hs-btn-services {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 8px;
    padding: 14px;
    box-sizing: border-box;
    opacity: 1;
    border: 1px solid rgba(75,67,38,0.2);
  }
}

/* ── House subnav: wrap on small phones ── */
@media (max-width: 600px) {
  .house-subnav {
    height: auto;
    flex-wrap: wrap;
    padding: 4px 12px 0;
    overflow-x: visible;
  }
  .house-subnav a { padding: 10px 8px; font-size: 10px; }
  .house-subnav a::after { left: 8px; right: 8px; }
  .house-subnav a:first-child { padding-left: 8px; }
  .house-subnav a:first-child::after { left: 8px; }
  .house-subnav .subnav-home { margin-left: 0; border-left: none; }
}
