/* ==========================================================================
   DIMORA MONTECCHIO — Static build
   Pure CSS3 · BEM methodology · Luxury beige palette
   ========================================================================== */

:root {
  --bone:   #F7F3EE;
  --sand:   #EDE6DC;
  --stone:  #D8C6AF;
  --bronze: #B49A76;
  --ink:    #3D4928; /*2A2724*/
  --border: #E0D5C2;
  --muted:  #6B6258;
  --emerald-bg:#ecfdf5; --emerald-fg:#047857; --emerald-bd:#a7f3d0;
  --amber-bg:  #fffbeb; --amber-fg:  #b45309; --amber-bd:  #fde68a;
  --stone-bg:  #f5f5f4; --stone-fg:  #57534e; --stone-bd:  #d6d3d1;
  --font-display: "Cormorant Garamond","Canela",ui-serif,Georgia,serif;
  --font-sans: "Inter",ui-sans-serif,system-ui,-apple-system,sans-serif;
  --max: 1480px;
}

*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 300; letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }
::selection { background: var(--bronze); color: var(--bone); }

/* ---------- Shared ---------- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 768px) { .container { padding: 0 3rem; } }
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(42,39,36,0.65);
}
.eyebrow--light { color: rgba(247,243,238,0.65); }
.text-balance { text-wrap: balance; }
.text-pretty  { text-wrap: pretty; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* =====================================================================
   NAV
   ===================================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 1.5rem 0;
  transition: background .4s ease, padding .4s ease, border-color .4s ease;
  background: transparent;
  border-bottom: 1px solid transparent;
}
.nav--scrolled {
  padding: 0.75rem 0;
  background: rgba(247,243,238,0.72);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
          backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: rgba(224,213,194,0.6);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  max-width: var(--max); margin: 0 auto; padding: 0 1.5rem;
}
@media (min-width: 768px) { .nav__inner { padding: 0 2.5rem; } }
.nav__brand { display: flex; align-items: center; gap: 0.75rem; }
.nav__logo {
  font-family: var(--font-display);
  font-size: 1.25rem; letter-spacing: 0.18em;
  color: var(--bone);
  transition: color .3s;
}
@media (min-width: 768px) { .nav__logo { font-size: 1.5rem; } }
.nav__tagline {
  display: none;
  font-size: 0.65rem; letter-spacing: 0.4em; text-transform: uppercase;
  color: rgba(247,243,238,0.7);
  transition: color .3s;
}
@media (min-width: 768px) { .nav__tagline { display: inline; } }
.nav__menu { display: none; list-style: none; margin: 0; padding: 0; gap: 2rem; }
@media (min-width: 1024px) { .nav__menu { display: flex; align-items: center; } }
.nav__link {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.22em;
  color: rgba(247,243,238,0.85); transition: color .2s;
}
.nav__link:hover { color: var(--bone); }
.nav__lang { display: flex; align-items: center; gap: 0.4rem; font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(247,243,238,0.7); }
.nav__lang a { padding: 0.25rem 0.4rem; transition: color .2s; }
.nav__lang a:hover, .nav__lang a[aria-current="true"] { color: var(--bone); }
.nav__cta {
  display: none; align-items: center; gap: 0.5rem;
  border: 1px solid rgba(247,243,238,0.7); color: var(--bone);
  padding: 0.7rem 1.25rem;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.28em;
  transition: background .3s, color .3s;
}
@media (min-width: 768px) { .nav__cta { display: inline-flex; } }
.nav__cta:hover { background: var(--bone); color: var(--ink); }
.nav__toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid rgba(247,243,238,0.5); color: var(--bone);
}
@media (min-width: 1024px) { .nav__toggle { display: none; } }

/* Scrolled state — dark text on glass */
.nav--scrolled .nav__logo,
.nav--scrolled .nav__link,
.nav--scrolled .nav__lang { color: var(--ink); }
.nav--scrolled .nav__tagline { color: var(--muted); }
.nav--scrolled .nav__link { color: rgba(42,39,36,0.75); }
.nav--scrolled .nav__link:hover { color: var(--ink); }
.nav--scrolled .nav__cta { border-color: rgba(42,39,36,0.7); color: var(--ink); }
.nav--scrolled .nav__cta:hover { background: var(--ink); color: var(--bone); }
.nav--scrolled .nav__toggle { border-color: rgba(42,39,36,0.4); color: var(--ink); }
.nav--scrolled .nav__lang a:hover,
.nav--scrolled .nav__lang a[aria-current="true"]{
    color:var(--ink);
}

/* Mobile menu */
.nav__mobile {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bone);
  border-top: 1px solid var(--border);
  padding: 1.5rem;
}
.nav__mobile.is-open { display: block; }
@media (min-width: 1024px) { .nav__mobile { display: none !important; }}
.nav__mobile ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.nav__mobile a { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.22em; color: var(--ink); }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative;
  height: 100svh; min-height: 640px;
  width: 100%; overflow: hidden; background: var(--ink);
}
.hero__image {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  animation: kenBurns 24s ease-in-out infinite alternate;
}
@keyframes kenBurns {
  0%   { transform: scale(1.05); }
  100% { transform: scale(1.18) translate(-2%, -1%); }
}
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(42,39,36,0.55) 0%, rgba(42,39,36,0.15) 45%, rgba(42,39,36,0.80) 100%),
    linear-gradient(90deg, rgba(42,39,36,0.40), transparent);
}
.hero__topbar {
  position: absolute; left: 0; right: 0; top: 7rem;
  padding: 0 1.5rem;
}
@media (min-width: 768px) { .hero__topbar { top: 8rem; padding: 0 3rem; } }
.hero__topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max); margin: 0 auto;
  color: rgba(247,243,238,0.8);
}
.hero__topbar-right { display: none; }
@media (min-width: 768px) { .hero__topbar-right { display: inline; } }

.hero__body {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end;
  height: 100%; max-width: var(--max); margin: 0 auto;
  padding: 0 1.5rem 5rem;
}
@media (min-width: 768px) { .hero__body { padding: 0 3rem 7rem; } }
.hero__content { max-width: 64rem; animation: rise 1.1s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
.hero__eyebrow { color: rgba(247,243,238,0.8); margin-bottom: 1.5rem; }
.hero__title {
  font-size: clamp(2.6rem, 7vw, 7.5rem);
  line-height: 0.95;
  color: var(--bone);
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.hero__title em { font-style: normal; color: var(--stone); }
.hero__lede {
  margin-top: 2rem; max-width: 42rem;
  color: rgba(247,243,238,0.85);
  font-size: 1.125rem; font-weight: 300; line-height: 1.7;
}
@media (min-width: 768px) { .hero__lede { font-size: 1.25rem; } }
.hero__ctas { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 1rem 1.75rem;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.28em;
  transition: all .3s ease;
}
.btn--primary { background: var(--bone); color: var(--ink); }
.btn--primary:hover { background: var(--stone); gap: 1.25rem; }
.btn--ghost { border: 1px solid rgba(247,243,238,0.6); color: var(--bone); }
.btn--ghost:hover { background: rgba(247,243,238,0.1); }
.btn--dark { background: var(--ink); color: var(--bone); }
.btn--dark:hover { background: var(--bronze); }
.btn--outline-dark { border: 1px solid var(--ink); color: var(--ink); }
.btn--outline-dark:hover { background: var(--ink); color: var(--bone); }

.hero__stats {
  margin-top: 4rem;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem;
  border-top: 1px solid rgba(247,243,238,0.2);
  padding-top: 2rem;
}
@media (min-width: 768px) { .hero__stats { grid-template-columns: repeat(4, 1fr); } }
.hero__stat-k { font-family: var(--font-display); color: var(--bone); font-size: 1.875rem; font-weight: 300; }
@media (min-width: 768px) { .hero__stat-k { font-size: 2.25rem; } }
.hero__stat-v { margin-top: 0.25rem; color: rgba(247,243,238,0.65); }
.hero__scroll { position: absolute; left: 50%; bottom: 1.5rem; transform: translateX(-50%); color: rgba(247,243,238,0.6); pointer-events: none; }

/* =====================================================================
   SECTION primitives
   ===================================================================== */
.section { padding: 7rem 0; }
@media (min-width: 768px) { .section { padding: 10rem 0; } }
.section--sand { background: var(--sand); }
.section--bone { background: var(--bone); }
.section--ink  { background: var(--ink); color: var(--bone); }
.section__head {
  display: flex; flex-direction: column; gap: 2rem;
  margin-bottom: 4rem;
}
@media (min-width: 768px) {
  .section__head { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 2rem; }
}
.section__title {
  margin-top: 1.5rem;
  font-size: clamp(2.2rem, 5vw, 5rem);
  line-height: 1;
  text-wrap: balance;
}
.section__title em { font-style: normal; color: var(--bronze); }
.section--ink .section__title em { color: var(--stone); }
.section__intro { max-width: 28rem; color: rgba(42,39,36,0.7); font-weight: 300; line-height: 1.7; }
.section--ink .section__intro { color: rgba(247,243,238,0.7); }

/* =====================================================================
   DREAM
   ===================================================================== */
.dream { background: var(--bone); }
.dream__grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 4rem 3rem;
}
.dream__left { grid-column: span 12; }
.dream__right { grid-column: span 12; }
@media (min-width: 768px) {
  .dream__left { grid-column: span 5; }
  .dream__right { grid-column: 7 / span 6; padding-top: 2.5rem; }
}
.dream__title { font-size: clamp(2.2rem, 5vw, 5rem); line-height: 1; margin-top: 2rem; text-wrap: balance; }
.dream__title em { font-style: normal; color: var(--bronze); }
.dream__text { font-size: 1.125rem; line-height: 1.75; color: rgba(42,39,36,0.85); font-weight: 300; }
@media (min-width: 768px) { .dream__text { font-size: 1.25rem; } }
.dream__text + .dream__text { margin-top: 1.5rem; }
.dream__pillars { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 2.5rem; }
.dream__pillar { border-top: 1px solid var(--border); padding-top: 1rem; }
.dream__pillar-t { font-family: var(--font-display); font-size: 1.5rem; }
.dream__pillar-d { margin-top: 0.25rem; font-size: 0.875rem; color: var(--muted); }

.dream__images {
  margin-top: 6rem;
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.5rem;
}
@media (min-width: 768px) { .dream__images { gap: 2.5rem; } }
.dream__img--big { grid-column: span 12; position: relative; overflow: hidden; aspect-ratio: 4 / 5; }
.dream__col { grid-column: span 12; display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 768px) {
  .dream__img--big { grid-column: span 7; aspect-ratio: 5 / 6; }
  .dream__col { grid-column: span 5; padding-top: 6rem; }
}
.dream__img--small { position: relative; overflow: hidden; aspect-ratio: 4 / 5; }
.dream__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.5s ease; }
.dream__img:hover img { transform: scale(1.05); }
.dream__quote {
  font-family: var(--font-display);
  font-size: 1.5rem; line-height: 1.35;
  color: rgba(42,39,36,0.85);
  margin: 0;
}
@media (min-width: 768px) { .dream__quote { font-size: 1.875rem; } }

/* =====================================================================
   AMENITIES
   ===================================================================== */
.amenities__grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
@media (min-width: 768px) { .amenities__grid { grid-template-columns: repeat(4, 1fr); } }
.amenities__item {
  position: relative;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2rem;
  min-height: 220px;
  background: rgba(247,243,238,0.4);
  transition: background .3s;
}
@media (min-width: 768px) { .amenities__item { padding: 2.5rem; } }
.amenities__item:hover { background: var(--bone); }
.amenities__num {
  position: absolute; top: 1rem; right: 1.25rem;
  font-family: var(--font-display); color: rgba(180,154,118,0.6); font-size: 0.875rem;
}
.amenities__rule { display: block; height: 1px; width: 2.5rem; background: var(--bronze); margin-bottom: 1.5rem; transition: width .3s; }
.amenities__item:hover .amenities__rule { width: 5rem; }
.amenities__t { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.15; }
@media (min-width: 768px) { .amenities__t { font-size: 1.875rem; } }
.amenities__d { margin-top: 0.75rem; font-size: 0.875rem; color: rgba(42,39,36,0.65); line-height: 1.65; }

/* =====================================================================
   MASTERPLAN
   ===================================================================== */
.masterplan { background: var(--ink); color: var(--bone); padding: 6rem 0 9rem; overflow: hidden; }
@media (min-width: 768px) { .masterplan { padding: 9rem 0 9rem; } }
.masterplan__head .section__intro { color: rgba(247,243,238,0.7); }
.masterplan__stage {
  position: relative;
  border: 1px solid rgba(247,243,238,0.1);
  box-shadow: 0 30px 80px -40px rgba(0,0,0,0.6);
  overflow: hidden;
}
.masterplan__map { width: 100%; height: auto; display: block; -webkit-user-select: none; user-select: none; }
.masterplan__hotspots { position: absolute; inset: 0; }
.masterplan__unit {
  position: absolute; padding: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); color: var(--bone);
  font-size: clamp(10px, 1.2vw, 18px);
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  border: 1px solid rgba(247,243,238,0.45);
  background: rgba(180,154,118,0.18);
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.masterplan__unit:focus-visible { outline: 2px solid var(--bone); outline-offset: 2px; }
.masterplan__unit:hover {
  background: rgba(180,154,118,0.55);
  border-color: var(--bronze);
  box-shadow: 0 0 0 2px rgba(180,154,118,0.4), 0 12px 30px -8px rgba(180,154,118,0.65);
}

.masterplan__tooltip {
  display: none;
  position: absolute; top: 1.5rem; right: 1.5rem;
  width: 18rem; padding: 1.25rem;
  background: rgba(42,39,36,0.55);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
          backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(247,243,238,0.2);
  color: var(--bone); pointer-events: none;
}
@media (min-width: 768px) { .masterplan__tooltip.is-visible { display: block; } }
.masterplan__tooltip-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.masterplan__tooltip-name { font-family: var(--font-display); font-size: 1.875rem; line-height: 1; }
.masterplan__tooltip-meta { font-size: 0.875rem; color: rgba(247,243,238,0.7); margin-top: 0.25rem; }
.masterplan__tooltip-price { margin-top: 1rem; font-family: var(--font-display); font-size: 1.25rem; color: var(--stone); }

.masterplan__legend {
  position: absolute; left: 1rem; right: 1rem; bottom: 1rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem; color: rgba(247,243,238,0.7); font-size: 0.7rem;
}
.masterplan__legend-group { display: flex; gap: 1rem; }
.masterplan__legend-item { display: inline-flex; align-items: center; gap: 0.5rem; text-transform: uppercase; letter-spacing: 0.22em; }
.masterplan__legend-dot { width: 0.5rem; height: 0.5rem; border-radius: 999px; }

.masterplan__chips {
  margin-top: 2rem;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem;
}
@media (min-width: 640px) { .masterplan__chips { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 768px) { .masterplan__chips { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1024px){ .masterplan__chips { grid-template-columns: repeat(8, 1fr); } }
.masterplan__chip {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid rgba(247,243,238,0.15);
  text-align: left; color: var(--bone);
  transition: border-color .2s;
}
.masterplan__chip:hover { border-color: rgba(247,243,238,0.4); }
.masterplan__chip-dot { display: block; width: 0.6rem; height: 0.6rem; border-radius: 999px; flex-shrink: 0; }
.masterplan__chip-name { display: block; font-family: var(--font-display); }
.masterplan__chip-meta { display: block; font-size: 0.7rem; color: rgba(247,243,238,0.55); }

/* Status badges (light) */
.badge { display: inline-flex; align-items: center; padding: 0.25rem 0.6rem; font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.18em; border: 1px solid; }
.badge--available { color: var(--emerald-fg); background: var(--emerald-bg); border-color: var(--emerald-bd); }
.badge--optioned  { color: var(--amber-fg);   background: var(--amber-bg);   border-color: var(--amber-bd);   }
.badge--sold      { color: var(--stone-fg);   background: var(--stone-bg);   border-color: var(--stone-bd);   }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 1rem; }
.modal.is-open { display: flex; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.65); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal__dialog {
  position: relative; z-index: 1;
  max-width: 64rem; width: 100%; max-height: 92vh; overflow: auto;
  background: var(--bone); color: var(--ink);
  display: grid; grid-template-columns: 1fr;
  animation: rise .5s ease both;
}
@media (min-width: 768px) { .modal__dialog { grid-template-columns: 1fr 1fr; } }
.modal__close {
  position: absolute; top: 0.75rem; right: 0.75rem; z-index: 2;
  width: 36px; height: 36px;
  background: rgba(247,243,238,0.85); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
}
.modal__gallery { position: relative; background: rgba(42,39,36,0.05); min-height: 280px; }
@media (min-width: 768px) { .modal__gallery { min-height: 520px; } }
.modal__slide { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
@media (min-width: 768px) { .modal__slide { min-height: 520px; } }
.modal__gallery-bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem;
  background: rgba(247,243,238,0.7);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.modal__gallery-btn { width: 36px; height: 36px; border: 1px solid rgba(42,39,36,0.4); transition: background .2s, color .2s; }
.modal__gallery-btn:hover { background: var(--ink); color: var(--bone); }
.modal__body { padding: 2rem; }
@media (min-width: 768px) { .modal__body { padding: 2.5rem; } }
.modal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.modal__name { font-family: var(--font-display); font-size: 2.25rem; line-height: 1; margin-top: 0.25rem; }
@media (min-width: 768px) { .modal__name { font-size: 3rem; } }
.modal__sub { color: rgba(42,39,36,0.65); margin-top: 0.25rem; }
.modal__stats {
  margin-top: 2rem; padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem 1.5rem;
}
.modal__stat-l { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.32em; color: rgba(42,39,36,0.55); }
.modal__stat-v { font-family: var(--font-display); font-size: 1.25rem; }
.modal__plan { margin-top: 2rem; border: 1px solid var(--border); padding: 1rem; }
.modal__plan-l { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.32em; color: rgba(42,39,36,0.65); margin-bottom: 0.75rem; }
.modal__price-row { margin-top: 2rem; display: flex; align-items: flex-end; justify-content: space-between; }
.modal__price { font-family: var(--font-display); font-size: 1.875rem; }
.modal__actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* =====================================================================
   LOCATION
   ===================================================================== */
.location__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3rem; }
.location__left  { grid-column: span 12; }
.location__right { grid-column: span 12; }
@media (min-width: 1024px) {
  .location__left  { grid-column: span 5; }
  .location__right { grid-column: span 7; align-self: center;}
}
.location__title { font-size: clamp(2.2rem, 5vw, 5rem); line-height: 1; margin-top: 1.5rem; text-wrap: balance; }
.location__title em { font-style: normal; color: var(--stone); }
.location__text { margin-top: 2rem; max-width: 30rem; color: rgba(247,243,238,0.75); font-weight: 300; line-height: 1.7; }
.location__coords {
  margin-top: 2.5rem; display: inline-flex; align-items: center; gap: 1rem;
  border: 1px solid rgba(247,243,238,0.3); padding: 0.75rem 1.25rem;
}
.location__pulse { width: 0.5rem; height: 0.5rem; border-radius: 999px; background: var(--bronze); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.location__cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(247,243,238,0.15); }
.location__card { background: var(--ink); padding: 1.5rem; }
@media (min-width: 768px) { .location__card { padding: 2rem; } }
.location__card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; }
.location__card-name { font-family: var(--font-display); font-size: 1.5rem; }
@media (min-width: 768px) { .location__card-name { font-size: 1.875rem; } }
.location__card-time { color: rgba(247,243,238,0.5); font-size: 0.875rem; }
.location__card-rule{
    margin-top:1rem;
    display:grid;
    grid-template-columns:1fr auto;
    align-items:center;
    gap:1rem;
}

.location__card-rule span:first-child{
    display:block;
    height:1px;
    background:rgba(255,255,255,.18);
}

.location__card-d{
    font-size:.95rem;
    letter-spacing:.35em;
    text-transform:uppercase;
    color:rgba(255,255,255,.75);
    white-space:nowrap;
}
.location__card-rule span { flex: 1;}
.location__card-d { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.32em; color: rgba(247,243,238,0.7); }

/* =====================================================================
   INVESTMENT / CAPITOLATO (shared grid pattern)
   ===================================================================== */
.cards { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--border); }
@media (min-width: 768px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.cards__item { background: var(--bone); padding: 2rem; min-height: 240px; transition: background .3s; }
@media (min-width: 768px) { .cards__item { padding: 2.5rem; } }
.section--sand .cards__item:hover { background: rgba(247,243,238,0.6); }
.section--bone .cards__item:hover { background: var(--sand); }
.cards__head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 2rem; }
.cards__k { font-family: var(--font-display); color: var(--bronze); font-size: 1.125rem; }
.cards__rule { height: 1px; width: 3rem; background: rgba(42,39,36,0.2); margin-top: 0.75rem; transition: width .3s, background .3s; }
.cards__item:hover .cards__rule { width: 6rem; background: var(--bronze); }
.cards__t { font-family: var(--font-display); font-size: 1.875rem; line-height: 1.15; }
.cards__d { margin-top: 1rem; color: rgba(42,39,36,0.7); line-height: 1.7; }

.cards__list { margin-top: 1.25rem; list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.65rem; }
.cards__li { display: flex; gap: 0.75rem; color: rgba(42,39,36,0.75); font-size: 0.875rem; line-height: 1.6; }
.cards__li::before { content: "—"; color: var(--bronze); flex-shrink: 0; margin-top: 0.1rem; }

.capitolato__footer { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; }
.capitolato__footer-text { max-width: 48rem; font-size: 0.875rem; color: rgba(42,39,36,0.75); }

/* =====================================================================
   GALLERY
   ===================================================================== */
.gallery__grid{
  columns:3;
  column-gap:24px;
}

.gallery__item{
  break-inside:avoid;
  margin:0 0 24px 0;
  overflow:hidden;
  position:relative;
}

.gallery__image{
  width:100%;
  height:auto;
  display:block;
}

/* Tablet */
@media(max-width:900px){
  .gallery__grid{
    columns:2;
    column-gap:20px;
  }

  .gallery__item{
    margin-bottom:20px;
  }
}

/* Mobile */
@media(max-width:600px){
  .gallery__grid{
    columns:1;
    column-gap:0;
  }

  .gallery__item{
    margin-bottom:16px;
  }
}

/* =====================================================================
   APARTMENTS TABLE
   ===================================================================== */
.apartments__head { display: flex; flex-direction: column; gap: 2.5rem; margin-bottom: 3.5rem; }
@media (min-width: 768px) { .apartments__head { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.apartments__scroll { overflow-x: auto; margin: 0 -1.5rem; }
@media (min-width: 768px) { .apartments__scroll { margin: 0; } }
.apartments__table { width: 100%; min-width: 860px; border-collapse: collapse; }
.apartments__table thead tr { border-top: 1px solid rgba(42,39,36,0.3); border-bottom: 1px solid rgba(42,39,36,0.3); }
.apartments__table th {
  text-align: left; padding: 1.25rem 0.75rem;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.32em;
  color: rgba(42,39,36,0.7); font-weight: 500;
}
.apartments__table td { padding: 1.25rem 0.75rem; border-bottom: 1px solid var(--border); font-size: 0.875rem; color: rgba(42,39,36,0.78); vertical-align: middle; }
.apartments__table tbody tr { transition: background .2s; }
.apartments__table tbody tr:hover { background: rgba(237,230,220,0.6); }
.apartments__id { font-family: var(--font-display); color: var(--bronze); font-size: 1.125rem; width: 1.5rem; display: inline-block; }
.apartments__name { font-family: var(--font-display); font-size: 1.25rem; color: var(--ink); }
.apartments__price { font-family: var(--font-display); font-size: 1.125rem; color: var(--ink); }
.apartments__tag-villa { display: inline-block; margin-left: 0.5rem; font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.18em; border: 1px solid var(--bronze); color: var(--bronze); padding: 0.1rem 0.4rem; }
.apartments__map-link { color: var(--bronze); }
.apartments__map-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.apartments__note { margin-top: 1.5rem; font-size: 0.75rem; color: rgba(42,39,36,0.55); }

/* =====================================================================
   CONTACT
   ===================================================================== */
.contact__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3rem; }
.contact__left { grid-column: span 12; }
.contact__right { grid-column: span 12; }
@media (min-width: 1024px) {
  .contact__left { grid-column: span 6; }
  .contact__right { grid-column: span 6; padding-left: 3rem; border-left: 1px solid rgba(247,243,238,0.15); }
}
.contact__title { font-size: clamp(2.6rem, 6vw, 6.5rem); line-height: 0.95; margin-top: 1.5rem; text-wrap: balance; }
.contact__title em { font-style: normal; color: var(--stone); }
.contact__text { margin-top: 2rem; max-width: 30rem; color: rgba(247,243,238,0.75); font-weight: 300; line-height: 1.7; }
.contact__info { margin-top: 3rem; display: flex; flex-direction: column; gap: 1.5rem; color: rgba(247,243,238,0.8); }
.contact__info-l { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.32em; color: rgba(247,243,238,0.55); margin-bottom: 0.25rem; }
.contact__info-v { font-family: var(--font-display); font-size: 1.5rem; }

.form { display: flex; flex-direction: column; gap: 1.75rem; }
.form__row { display: grid; grid-template-columns: 1fr; gap: 1.75rem; }
@media (min-width: 768px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form__field { display: block; }
.form__label { display: block; margin-bottom: 0.5rem; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.32em; color: rgba(247,243,238,0.55); }
.form__input, .form__textarea {
  width: 100%; background: transparent; color: var(--bone);
  border: 0; border-bottom: 1px solid rgba(247,243,238,0.3);
  padding: 0.75rem 0; font: inherit;
  transition: border-color .2s;
}
.form__input:focus, .form__textarea:focus { outline: none; border-color: var(--bronze); }
.form__input::placeholder, .form__textarea::placeholder { color: rgba(247,243,238,0.4); }
.form__consent { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.75rem; color: rgba(247,243,238,0.65); }
.form__consent input { accent-color: var(--bronze); margin-top: 0.25rem; }
.form__submit { background: var(--bone); color: var(--ink); padding: 1rem 2rem; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.28em; transition: background .3s; display: inline-flex; align-items: center; gap: 0.75rem; align-self: flex-start; }
.form__submit:hover { background: var(--stone); }
.form__feedback { font-size: 0.875rem; color: var(--stone); display: none; }
.form__feedback.is-visible { display: block; }

.form__feedback {
  display: none;
  min-height: 1.5rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.form__feedback.is-visible {
  display: block;
}

.form__feedback.is-success {
  color: #86b89b;
}

.form__feedback.is-error {
  color: #e29b94;
}

.form__submit:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.form--loading {
  pointer-events: none;
}

.form--loading .form__submit {
  pointer-events: auto;
}

    .form__hp {
      position: absolute !important;
      left: -9999px !important;
      width: 1px !important;
      height: 1px !important;
      overflow: hidden !important;
    }

    .form__feedback {
      margin-top: 1rem;
      padding: .9rem 1rem;
      border: 1px solid currentColor;
      font-size: .9rem;
      line-height: 1.5;
    }

    .form__feedback[hidden] {
      display: none;
    }

    .form__feedback.is-success {
      color: #d7f2df;
      background: rgba(31, 120, 67, .18);
    }

    .form__feedback.is-error {
      color: #ffd8d8;
      background: rgba(156, 45, 45, .18);
    }

    .form__submit[disabled] {
      cursor: wait;
      opacity: .65;
    }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { background: var(--ink); color: rgba(247,243,238,0.7); border-top: 1px solid rgba(247,243,238,0.1); }
.footer__inner {
  max-width: var(--max); margin: 0 auto;
  padding: 3.5rem 1.5rem;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem;
  align-items:end;
}

.footer__logo img{
    width: 300px;
}

@media (min-width: 768px) { .footer__inner { grid-template-columns: repeat(4, 1fr); padding: 3.5rem 3rem; } }
.footer__brand { grid-column: span 2; }
.footer__logo { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: 0.2em; color: var(--bone); }
.footer__tagline { margin-top: 0.25rem; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.32em; color: rgba(247,243,238,0.55); }
.footer__about { margin-top: 1.5rem; max-width: 26rem; font-size: 0.875rem; line-height: 1.7; }
.footer__title { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.32em; color: rgba(247,243,238,0.55); margin-bottom: 1rem; }
.footer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.875rem; }
.footer__list a:hover { color: var(--bone); }
.footer__legal {
  border-top: 1px solid rgba(247,243,238,0.1);
  padding: 1.5rem;
  display: flex; flex-direction: column; gap: 0.75rem; align-items: center; justify-content: space-between;
  font-size: 0.75rem; color: rgba(247,243,238,0.45);
}
@media (min-width: 768px) { .footer__legal { flex-direction: row; padding: 1.5rem 3rem; } }

/* =====================================================================
   A11Y / FOCUS
   ===================================================================== */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--bronze); outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}

/* =====================================================
   FIX NAV DESKTOP + MOBILE
   ===================================================== */

html,
body{
  width:100%;
  max-width:100%;
  overflow-x:hidden;
}

/* Hamburger sempre visibile */
.nav__toggle{
  display:inline-flex !important;
}

/* Nasconde il menu lungo desktop */
.nav__menu{
  display:none !important;
}

/* Mantiene CTA fuori dal menu */
.nav__cta{
  display:inline-flex;
}

/* Dropdown menu anche desktop */
.nav__mobile{
  position:absolute;
  top:100%;
  left:0;
  right:0;
  background:rgba(247,243,238,.96);
  border-top:1px solid var(--border);
  padding:2rem 3rem;
  box-shadow:0 30px 60px rgba(42,39,36,.15);
}

.nav__mobile.is-open{
  display:block !important;
}

.nav__mobile ul{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:1rem 2rem;
}

.nav__mobile a{
  color:var(--ink);
  font-size:.78rem;
  text-transform:uppercase;
  letter-spacing:.22em;
}

/* Mobile menu */
@media(max-width:767px){
  .nav{
    background:rgba(247,243,238,.92);
    border-bottom:1px solid var(--border);
  }

  .nav__logo{
    color:var(--ink);
    font-size:1.05rem;
    letter-spacing:.16em;
  }

  .nav__tagline,
  .nav__cta{
    display:none;
  }

  .nav__toggle{
    color:var(--ink);
    border-color:rgba(42,39,36,.35);
  }

  .nav__mobile{
    padding:1.5rem;
  }

  .nav__mobile ul{
    grid-template-columns:1fr;
  }
}

/* =====================================================
   FIX MOBILE LAYOUT
   ===================================================== */

@media(max-width:767px){

  .container{
    padding-left:1.25rem;
    padding-right:1.25rem;
  }

  .section{
    padding:5rem 0;
  }

  .hero{
    min-height:100svh;
    height:auto;
  }

  .hero__body{
    padding:9rem 1.5rem 4rem;
  }

  .hero__topbar{
    display:none;
  }

  .hero__title{
    font-size:clamp(3rem,15vw,4.8rem);
    line-height:.9;
  }

  .hero__lede{
    font-size:1.05rem;
    line-height:1.55;
  }

  .hero__ctas{
    flex-direction:column;
  }

  .btn{
    width:100%;
    justify-content:center;
  }

  .hero__stats{
    grid-template-columns:repeat(2,1fr);
    gap:1.5rem;
  }

  .section__head{
    margin-bottom:3rem;
  }

  .section__title,
  .location__title,
  .contact__title{
    font-size:clamp(2.6rem,13vw,4rem);
  }

  .location__grid,
  .contact__grid{
    display:block;
  }

  .location__text,
  .contact__text{
    max-width:100%;
  }

  .location__coords{
    width:100%;
    overflow:hidden;
    font-size:.65rem;
  }

  .location__cards{
    grid-template-columns:1fr;
    margin-top:3rem;
  }

  .location__card{
    padding:2rem 1.5rem;
  }

  .location__card-name{
    font-size:2.2rem;
    line-height:1;
  }

  .masterplan{
    padding:5rem 0;
  }

  .masterplan__stage{
    overflow:visible;
  }

  .masterplan__legend{
    display:none;
  }

  .masterplan__legend-group{
    flex-wrap:wrap;
    gap:.75rem;
  }

  .apartments__scroll{
    margin:0;
  }

  .contact__info-v{
    font-size:1.35rem;
    word-break:break-word;
  }

  .form__row{
    grid-template-columns:1fr;
  }
  
  .dream__grid{
    display:block;
  }

  .dream__left,
  .dream__right{
    width:100%;
    max-width:100%;
    overflow:hidden;
  }

  .dream__title{
    font-size:clamp(3rem,14vw,4.5rem);
    line-height:.95;
    max-width:100%;
  }

  .dream__text{
    font-size:1.15rem;
    line-height:1.65;
    max-width:100%;
    overflow-wrap:break-word;
  }

  .dream__right{
    margin-top:3rem;
    padding-top:0;
  }

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

  .dream__images{
    display:grid;
    gap:24px;
  }
  
  .dream__img{
    width:100%;
    max-width:100%;
    overflow:hidden;
  }

  .dream__img img{
    width:100%;
    height:100%;
    object-fit:cover;
  }

  .dream__img--big,
  .dream__img--small{
    margin:0;
    aspect-ratio:4/5;
  }

  .dream__col{
    width:100%;
    max-width:100%;
  }
}

.masterplan__chip:hover,
.masterplan__chip.hover-sync{
  border-color: rgba(247,243,238,0.4);
  background: rgba(180,154,118,0.16);
}

.masterplan__unit:hover,
.masterplan__unit.hover-sync{
  background: rgba(180,154,118,0.55);
  border-color: var(--bronze);
  box-shadow:
    0 0 0 2px rgba(180,154,118,0.4),
    0 12px 30px -8px rgba(180,154,118,0.65);
  z-index: 10;
}

/* =====================================================
   POIS
   ===================================================== */
.masterplan__pois{
  position:absolute;
  inset:0;
  z-index:4;
  pointer-events:none;
}

.masterplan__poi{
  position:absolute;
  pointer-events:auto;
  border:1px solid rgba(247,243,238,.55);
  background:rgba(216,198,175,.12);
  color:var(--bone);
  display:flex;
  align-items:center;
  justify-content:center;
  font-family:var(--font-display);
  font-size:clamp(.8rem,1vw,1.15rem);
  letter-spacing:.08em;
  text-shadow:0 1px 6px rgba(0,0,0,.45);
  transition:.35s ease;
}

.masterplan__poi:hover{
  background:rgba(216,198,175,.28);
  border-color:var(--stone);
  box-shadow:
    inset 0 0 0 1px rgba(247,243,238,.25),
    0 20px 45px -20px rgba(0,0,0,.65);
}

.masterplan__poi-label{
  padding:.25rem .6rem;
  background:rgba(42,39,36,.28);
  backdrop-filter:blur(8px);
}

.poi-modal{
  position:fixed;
  inset:0;
  z-index:120;
  display:none;
  background:rgba(0,0,0,.75);
  align-items:center;
  justify-content:center;
  flex-direction:column;
  padding:2rem;
}

.poi-modal.is-open{
  display:flex;
}

.poi-modal img{
  max-width:min(900px,90vw);
  max-height:75vh;
  object-fit:contain;
}

.poi-modal h3{
  margin-top:1rem;
  color:var(--bone);
  font-family:var(--font-display);
  font-size:2rem;
}

.poi-modal__close{
  position:absolute;
  top:1.5rem;
  right:1.5rem;
  color:var(--bone);
  font-size:2rem;
}

/* =====================================================
   MODAL GALLERY
   ===================================================== */

.gallery-modal{

    position:fixed;
    inset:0;

    background:rgba(20,20,20,.96);

    display:flex;
    align-items:center;
    justify-content:center;

    opacity:0;
    visibility:hidden;

    transition:.35s;

    z-index:9999;

}

.gallery-modal.is-open{

    opacity:1;
    visibility:visible;

}

.gallery-modal__figure{

    margin:0;
    max-width:92vw;
    max-height:90vh;

}

.gallery-modal__image{

    display:block;

    max-width:92vw;
    max-height:86vh;

    object-fit:contain;

}

.gallery-modal__close,
.gallery-modal__prev,
.gallery-modal__next{

    position:absolute;

    background:none;

    border:none;

    color:#fff;

    cursor:pointer;

    font-size:52px;

    transition:.25s;

}

.gallery-modal__close{

    top:25px;
    right:35px;

}

.gallery-modal__prev{

    left:25px;
    top:50%;
    transform:translateY(-50%);

}

.gallery-modal__next{

    right:25px;
    top:50%;
    transform:translateY(-50%);

}

.gallery-modal__close:hover,
.gallery-modal__prev:hover,
.gallery-modal__next:hover{

    opacity:.6;

}

.gallery-modal__count{

    position:absolute;

    bottom:30px;
    left:50%;

    transform:translateX(-50%);

    color:white;

    letter-spacing:.15em;

    font-size:.9rem;

}

#galleryCaption{

    margin-top:18px;

    text-align:center;

    color:white;

    opacity:.75;

}

.gallery__item{
    cursor:pointer;
}

.gallery__image{
    cursor:pointer;
    transition:transform .45s ease, filter .45s ease;
}

.gallery__item:hover .gallery__image{
    transform:scale(1.03);
    filter:brightness(1.05);
}

@media (max-height: 1060px){
  .section{
    padding:5rem 0;
  }

  .hero{
    min-height:100svh;
    display:flex;
}

.hero__body{
    flex:1;

    display:flex;
    flex-direction:column;
    justify-content:flex-end;

    max-width:var(--max);
    margin:0 auto;

    padding:9rem 1.5rem 4rem;
}

  .hero__topbar{
    display:none;
  }
  
  .hero__eyebrow{
    display:none;
  }

  .hero__title{
    font-size:clamp(3rem,15vw,4.8rem);
    line-height:.9;
  }

  .hero__lede{
    font-size:1.05rem;
    line-height:1.55;
  }

  .section__head{
    margin-bottom:3rem;
  }
 }
 
 /* =====================================================
    NAV LANG
   ===================================================== */
   
   /* LANGUAGE DROPDOWN */

.nav__lang-switch{
  position:relative;
  display:flex;
  align-items:center;
}


.nav__lang-button{

  display:flex;
  align-items:center;
  gap:.45rem;

  background:none;
  border:0;

  color:rgba(247,243,238,.85);

  font-size:.72rem;
  letter-spacing:.22em;
  text-transform:uppercase;

  cursor:pointer;

  padding:.4rem 0;

}

@media (max-width: 767px) {
    .nav__lang-button{
       color: initial;
    }
}


.nav__lang-arrow{

  font-size:.8rem;
  transform:translateY(-2px);

  transition:transform .3s ease;

}



.nav__lang-switch.is-open 
.nav__lang-arrow{

  transform:rotate(180deg);

}



.nav__lang-menu{

  position:absolute;

  top:calc(100% + 18px);

  right:0;


  min-width:170px;


  padding:.6rem;


  background:rgba(247,243,238,.95);

  backdrop-filter:blur(18px);


  border:1px solid rgba(224,213,194,.7);


  box-shadow:
  0 20px 50px rgba(0,0,0,.12);


  opacity:0;

  visibility:hidden;

  transform:translateY(-10px);


  transition:
  opacity .3s ease,
  transform .3s ease;


}



.nav__lang-switch.is-open 
.nav__lang-menu{

  opacity:1;

  visibility:visible;

  transform:translateY(0);

}



.nav__lang-menu a{

  display:block;

  padding:.75rem 1rem;


  color:var(--ink);


  font-size:.72rem;

  letter-spacing:.18em;

  text-transform:uppercase;


  transition:
  background .25s ease,
  color .25s ease;


}



/* NAVBAR SCROLL */

.nav--scrolled 
.nav__lang-button{

 color:var(--ink);

}