/* ================================================================
   RESET & BASE
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #e63946;
  --primary-dark: #c1121f;
  --primary-light: #fff0f1;
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --bg: #ffffff;
  --bg-soft: #f8f9fa;
  --border: #e5e7eb;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body { font-family: 'Inter', -apple-system, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.section-line {
  display: block; width: 44px; height: 3px;
  background: var(--primary); border-radius: 2px;
}

/* Scroll reveal: attivato via JS per non nascondere contenuti se JavaScript non parte */
.reveal-enabled .reveal {
  opacity: 0;
  translate: 0 28px;
  transition: opacity 0.7s ease, translate 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform var(--transition), box-shadow var(--transition);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, translate;
}
.reveal-enabled .reveal.is-visible {
  opacity: 1;
  translate: 0 0;
}

/* Entrata iniziale della hero */
.hero-content > * {
  opacity: 0;
  animation: heroEntrance 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-content > :nth-child(1) { animation-delay: 0.12s; }
.hero-content > :nth-child(2) { animation-delay: 0.24s; }
.hero-content > :nth-child(3) { animation-delay: 0.36s; }
.hero-content > :nth-child(4) { animation-delay: 0.48s; }
.hero-scroll-hint { animation: hintEntrance 0.7s ease 0.8s both; }
.scroll-arrow { animation: bounce 1.8s ease-in-out 1.5s infinite; }

@keyframes heroEntrance {
  from { opacity: 0; translate: 0 22px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes hintEntrance {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-content > *, .guests-hero-inner > *, .about-hero-inner > *, .hero-scroll-hint, .scroll-arrow {
    opacity: 1;
    animation: none;
    translate: none;
  }
  .reveal-enabled .reveal {
    opacity: 1;
    translate: none;
    transition: none;
  }
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.9rem; border: none; cursor: pointer;
  transition: all var(--transition); white-space: nowrap;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(230,57,70,0.3); }
.btn-ghost { background: transparent; color: var(--text-muted); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--text-muted); color: var(--text); }
.btn-whatsapp { background: #25d366; color: white; }
.btn-whatsapp:hover { background: #128c7e; transform: translateY(-1px); }
.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: var(--radius); }
.btn-sm { padding: 7px 14px; font-size: 0.82rem; }
.w-full { width: 100%; justify-content: center; }

/* ================================================================
   NAVBAR
   ================================================================ */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 64px;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 16px; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; color: var(--text); flex-shrink: 0; }
.nav-logo strong { color: var(--primary); }
.logo-img { width: 28px; height: 28px; display: block; }
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-links { display: flex; gap: 8px; }
.nav-links a {
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-weight: 500; font-size: 0.9rem; color: var(--text-muted);
  transition: all var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); background: var(--primary-light); }

/* Nav WhatsApp button */
.nav-whatsapp {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: var(--radius-sm);
  background: #25d366; color: white;
  font-weight: 600; font-size: 0.82rem;
  transition: all var(--transition); white-space: nowrap; flex-shrink: 0;
}
.nav-whatsapp:hover { background: #128c7e; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37,211,102,0.3); }

/* ================================================================
   LANGUAGE SWITCHER
   ================================================================ */
.lang-switcher {
  position: relative;
  flex-shrink: 0;
}
.lang-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 10px; border-radius: var(--radius-sm);
  background: transparent; border: 1.5px solid var(--border);
  cursor: pointer; font-family: inherit; font-size: 0.82rem; font-weight: 600;
  color: var(--text); transition: all var(--transition);
  white-space: nowrap;
}
.lang-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.lang-flag-img { display: block; border-radius: 2px; flex-shrink: 0; }
.lang-chevron { transition: transform var(--transition); flex-shrink: 0; color: var(--text-muted); }
.lang-btn[aria-expanded="true"] .lang-chevron { transform: rotate(180deg); }

.lang-menu {
  display: none;
  position: absolute; top: calc(100% + 6px); right: 0;
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  min-width: 160px; z-index: 200; overflow: hidden;
}
.lang-menu.open { display: block; animation: fadeIn .15s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

.lang-option {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; font-size: 0.88rem; color: var(--text);
  transition: background var(--transition); cursor: pointer;
  border: none; width: 100%; text-decoration: none;
}
.lang-option:hover { background: var(--bg-soft); color: var(--primary); }
.lang-option.current { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.lang-option .lang-flag-img { flex-shrink: 0; }

/* RTL adjustments */
[dir="rtl"] .nav-inner { flex-direction: row-reverse; }
[dir="rtl"] .nav-right { order: -1; margin-right: auto; margin-left: 0; }
[dir="rtl"] .lang-menu { left: auto; right: 0; }
[dir="rtl"] .apt-list-card { direction: rtl; }
[dir="rtl"] .contact-form-row { direction: rtl; }
[dir="rtl"] .hero-content { direction: rtl; }
[dir="rtl"] .breadcrumb { direction: rtl; }
[dir="rtl"] .panel-header, [dir="rtl"] .panel-body { direction: rtl; }
[dir="rtl"] .panel-beds-row { flex-direction: row-reverse; }
[dir="rtl"] .search-icon { left: auto; right: 10px; }
[dir="rtl"] .search-input { padding-left: 12px; padding-right: 32px; }

/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative; height: calc(100vh - 64px); min-height: 500px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url('/img/hero.jpeg') center/cover no-repeat;
  opacity: 0.45;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(26,26,46,0.5) 0%, rgba(26,26,46,0.7) 100%);
}
.hero-content {
  position: relative; z-index: 2; text-align: center; color: white;
  max-width: 700px; padding: 0 24px;
}
.hero-eyebrow {
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 16px;
}
.hero-title { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 700; line-height: 1.1; margin-bottom: 20px; }
.hero-subtitle { font-size: 1.15rem; color: rgba(255,255,255,0.8); margin-bottom: 40px; line-height: 1.7; }
.hero-cta { font-size: 1.05rem; padding: 16px 36px; border-radius: 50px; }
.hero-scroll-hint {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.5); font-size: 0.75rem; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-arrow {
  width: 20px; height: 20px; border-right: 2px solid rgba(255,255,255,0.5);
  border-bottom: 2px solid rgba(255,255,255,0.5); transform: rotate(45deg);
}
@keyframes bounce { 0%,100% { transform: rotate(45deg) translateY(0); } 50% { transform: rotate(45deg) translateY(5px); } }

/* ================================================================
   STATS SECTION
   ================================================================ */
.stats-section { background: var(--text); padding: 44px 0; }
.stats-grid { display: flex; align-items: center; justify-content: center; }
.stat-item { text-align: center; padding: 0 48px; flex: 1; }
.stat-number {
  display: block; font-size: 2.6rem; font-weight: 700;
  color: var(--primary); line-height: 1; margin-bottom: 8px;
}
.stat-label {
  font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: rgba(255,255,255,0.45); font-weight: 500;
}
.stat-separator { width: 1px; height: 44px; background: rgba(255,255,255,0.1); flex-shrink: 0; }

/* ================================================================
   FEATURES
   ================================================================ */
.features-section { padding: 80px 0; background: var(--bg-soft); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.feature-card {
  background: white; border-radius: var(--radius); padding: 32px 24px;
  box-shadow: var(--shadow-sm); text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon { font-size: 2.2rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: 0.9rem; }

/* ================================================================
   HOW IT WORKS
   ================================================================ */
.how-section { padding: 80px 0; background: var(--bg); }
.section-header-center { text-align: center; margin-bottom: 56px; }
.section-header-center h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 12px; }
.section-header-center .section-line { margin: 10px auto 16px; }
.section-header-center p { color: var(--text-muted); font-size: 0.95rem; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.how-step { text-align: center; }
.how-number {
  font-size: 3.5rem; font-weight: 800; color: var(--primary);
  opacity: 0.15; line-height: 1; margin-bottom: 20px;
}
.how-step h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 10px; }
.how-step p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }

/* ================================================================
   FEATURED SECTION
   ================================================================ */
.featured-section { padding: 80px 0; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.section-header h2 { font-size: 1.8rem; font-weight: 700; }
.link-more { color: var(--primary); font-weight: 600; font-size: 0.9rem; }
.link-more:hover { text-decoration: underline; }

/* ================================================================
   APARTMENT CARDS (GRID)
   ================================================================ */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.apt-card {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); background: white;
  transition: transform var(--transition), box-shadow var(--transition);
  display: block;
}
.apt-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.apt-card-img { position: relative; height: 200px; background: var(--bg-soft); overflow: hidden; }
.apt-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.apt-card:hover .apt-card-img img { transform: scale(1.05); }
.apt-card-placeholder { height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.apt-card-badge {
  position: absolute; top: 12px; right: 12px;
  background: white; color: var(--text); font-size: 0.78rem; font-weight: 600;
  padding: 4px 10px; border-radius: 20px; box-shadow: var(--shadow-sm);
}
.apt-card-badges { position: absolute; top: 12px; right: 12px; display: flex; align-items: center; gap: 7px; }
.apt-card-badges .apt-card-badge { position: static; top: auto; right: auto; }
.apt-card-parking-badge {
  width: 31px; height: 31px; border-radius: 20px;
  background: white; color: var(--text);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 700; box-shadow: var(--shadow-sm);
}
.apt-card-body { padding: 18px; }
.apt-card-title { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.apt-card-address { font-size: 0.82rem; color: var(--text-muted); display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.apt-card-price { font-size: 0.9rem; color: var(--text-muted); }
.apt-card-price strong { color: var(--primary); font-size: 1.1rem; }

/* ================================================================
   NEIGHBORHOODS
   ================================================================ */
.neighborhoods-section { padding: 80px 0; background: var(--bg-soft); }
.neighborhoods-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.neighborhood-card {
  background: white; border-radius: var(--radius); padding: 32px 24px;
  box-shadow: var(--shadow-sm); text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.neighborhood-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.neighborhood-icon { font-size: 2.2rem; margin-bottom: 16px; }
.neighborhood-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 10px; }
.neighborhood-card p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; }

/* ================================================================
   CTA SECTION
   ================================================================ */
.cta-section { padding: 80px 0; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); }
.cta-inner { text-align: center; color: white; }
.cta-inner h2 { font-size: 2rem; font-weight: 700; margin-bottom: 12px; }
.cta-inner .section-line { margin: 0 auto 20px; background: rgba(255,255,255,0.5); }
.cta-inner p { font-size: 1.1rem; opacity: 0.85; margin-bottom: 32px; }
.cta-inner .btn-primary { background: white; color: var(--primary); font-size: 1.05rem; padding: 14px 32px; }
.cta-inner .btn-primary:hover { background: var(--primary-light); box-shadow: 0 4px 20px rgba(0,0,0,0.2); }

/* ================================================================
   APARTMENTS PAGE — full-screen map + floating panel
   ================================================================ */
.apts-fullscreen {
  position: fixed;
  top: 64px; left: 0; right: 0; bottom: 0;
  overflow: hidden;
}
#map {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.apts-panel {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 400px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  background: white;
  box-shadow: 4px 0 24px rgba(0,0,0,0.12);
  overflow: hidden;
}
.panel-header {
  flex-shrink: 0;
  padding: 14px 14px 0;
  border-bottom: 1px solid var(--border);
  background: white;
}
.panel-search-row { display: flex; gap: 8px; margin-bottom: 12px; }
.panel-search-btn { flex-shrink: 0; padding: 0 14px; border-radius: var(--radius-sm); }
.search-input-wrap { position: relative; flex: 1; }
.search-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.input-field {
  width: 100%; padding: 9px 12px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: 0.88rem; font-family: inherit;
  transition: border-color var(--transition);
}
.search-input { padding-left: 32px; }
.input-field:focus { outline: none; border-color: var(--primary); }

/* ── Filtri unificati ─────────────────────────────── */
.filters-block {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  overflow: hidden;
  margin-bottom: 0;
}
.filter-row {
  display: flex; align-items: center;
  padding: 9px 12px; gap: 10px;
  background: white;
}
.filter-divider { height: 1px; background: var(--border); margin: 0; }
.filter-row-label {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-muted);
  white-space: nowrap; min-width: 72px; flex-shrink: 0;
}
.beds-options { display: flex; flex-wrap: wrap; gap: 5px; }
.beds-opt {
  padding: 3px 11px; border-radius: 20px; border: 1.5px solid var(--border);
  font-size: 0.8rem; font-weight: 500; cursor: pointer;
  transition: all var(--transition); display: flex; align-items: center;
  color: var(--text);
}
.beds-opt input { display: none; }
.beds-opt:hover { border-color: var(--primary); color: var(--primary); }
.beds-opt.active { background: var(--primary); color: white; border-color: var(--primary); }

/* Date range — label on top, inputs full-width below */
.filter-row-dates { flex-direction: column; align-items: flex-start; gap: 8px; }
.date-range-wrap { display: flex; align-items: flex-end; gap: 8px; width: 100%; }
.date-field { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.date-field-label { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.date-field input[type="date"] {
  width: 100%; padding: 6px 8px;
  border: 1.5px solid var(--border); border-radius: 6px;
  font-size: 0.83rem; font-family: inherit; color: var(--text);
  background: white; cursor: pointer;
  transition: border-color var(--transition);
}
.date-field input[type="date"]:focus { outline: none; border-color: var(--primary); }
.date-arrow { color: var(--text-muted); flex-shrink: 0; margin-bottom: 8px; }

/* Cancella filtri */
.clear-filters-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 7px 12px; font-size: 0.75rem; font-weight: 600;
  color: var(--text-muted); background: var(--bg-soft);
  cursor: pointer; transition: color var(--transition);
  border-top: 1px solid var(--border);
}
.clear-filters-btn:hover { color: var(--primary); }
.panel-body {
  flex: 1; overflow-y: auto; padding: 12px;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.results-meta { font-size: 0.82rem; color: var(--text-muted); padding: 4px 4px 10px; }
.cards-list { display: flex; flex-direction: column; gap: 10px; }
.apt-list-card {
  display: grid; grid-template-columns: 120px 1fr;
  background: white; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden; cursor: pointer;
  transition: all var(--transition); box-shadow: var(--shadow-sm);
}
.apt-list-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.apt-list-card.highlighted {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(230,57,70,0.15), var(--shadow-md);
}
.apt-list-img { height: 130px; overflow: hidden; }
.apt-list-img img { width: 100%; height: 100%; object-fit: cover; }
.apt-list-placeholder { height: 100%; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.apt-list-body { padding: 12px; display: flex; flex-direction: column; gap: 5px; }
.apt-list-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; }
.apt-list-top h3 { font-size: 0.9rem; font-weight: 600; line-height: 1.3; }
.apt-list-price { font-size: 1rem; font-weight: 700; color: var(--primary); white-space: nowrap; }
.apt-list-price small { font-size: 0.7rem; font-weight: 400; color: var(--text-muted); }
.apt-list-address { font-size: 0.75rem; color: var(--text-muted); display: flex; align-items: center; gap: 3px; }
.apt-list-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.meta-badge { display: flex; align-items: center; gap: 3px; font-size: 0.72rem; color: var(--text-muted); background: var(--bg-soft); padding: 2px 8px; border-radius: 20px; }
.garage-badge { color: var(--text-muted); background: var(--bg-soft); }
.apt-list-desc { font-size: 0.75rem; color: var(--text-muted); line-height: 1.4; flex: 1; }
.map-popup { min-width: 160px; }
.leaflet-popup-content-wrapper { border-radius: var(--radius-sm) !important; box-shadow: var(--shadow-md) !important; }
.empty-state { text-align: center; padding: 48px 16px; }
.empty-icon { font-size: 3rem; margin-bottom: 12px; }
.empty-state h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.empty-state p { color: var(--text-muted); margin-bottom: 20px; font-size: 0.88rem; }
.apts-fullscreen ~ footer { display: none; }

/* ================================================================
   APARTMENT DETAIL PAGE
   ================================================================ */
.apt-detail-page { padding-bottom: 80px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; padding: 20px 0; font-size: 0.85rem; color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.apt-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }

/* Gallery */
.apt-gallery { min-width: 0; }
.apt-detail-info { min-width: 0; }
.carousel { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; }
.carousel-track { display: flex; width: 100%; transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.carousel-slide { flex: 0 0 100%; min-width: 100%; aspect-ratio: 16/9; overflow: hidden; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.5); color: white; border: none; cursor: pointer;
  width: 44px; height: 44px; border-radius: 50%; font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition); z-index: 5;
}
.carousel-btn:hover { background: rgba(0,0,0,0.75); }
.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }
.carousel-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: all var(--transition); }
.dot.active { background: white; transform: scale(1.3); }
.thumbnails { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.thumb { width: 80px; height: 60px; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; border: 2px solid transparent; flex-shrink: 0; transition: border-color var(--transition); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active { border-color: var(--primary); }
.no-photos { background: var(--bg-soft); border-radius: var(--radius); aspect-ratio: 16/9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--text-muted); font-size: 3rem; }

/* Detail info */
.apt-detail-title { font-size: 1.8rem; font-weight: 700; margin-bottom: 12px; }
.apt-detail-address { display: flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 16px; }
.apt-detail-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.detail-badge { display: flex; align-items: center; gap: 8px; background: var(--bg-soft); padding: 8px 14px; border-radius: 20px; font-size: 0.9rem; font-weight: 500; }
.detail-badge.garage-badge { color: var(--text); background: var(--bg-soft); }
.apt-detail-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 24px; }
.price-amount { font-size: 2.2rem; font-weight: 700; color: var(--primary); }
.price-unit { font-size: 1rem; color: var(--text-muted); }
.apt-detail-desc { margin-bottom: 28px; }
.apt-detail-desc h2, .apt-detail-contact h2 { font-size: 1.1rem; font-weight: 600; margin-bottom: 10px; }
.apt-detail-desc p { color: var(--text-muted); line-height: 1.7; white-space: pre-wrap; }
.apt-detail-contact { display: flex; flex-direction: column; gap: 12px; }
.apt-detail-contact p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 4px; }
/* .apt-detail-map is now in the gallery column — see MAP IN GALLERY section */
.apt-detail-map h2 { font-size: 1.3rem; font-weight: 600; margin-bottom: 16px; }
#detailMap { height: 400px; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; }

/* ================================================================
   CONTACT FORM SECTION
   ================================================================ */
.contact-form-section { margin-top: 56px; padding: 48px 0 0; border-top: 1px solid var(--border); }
.contact-form-inner {
  background: var(--bg-soft); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 40px; max-width: 760px;
}
.contact-form-header { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.contact-form-icon {
  width: 48px; height: 48px; background: var(--primary-light);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  color: var(--primary); flex-shrink: 0;
}
.contact-form-header h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 4px; }
.contact-form-header p { font-size: 0.88rem; color: var(--text-muted); }
.contact-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.contact-form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.contact-form-group:last-of-type { margin-bottom: 20px; }
.contact-form-group label { font-weight: 500; font-size: 0.875rem; }
.contact-form-group label span { color: var(--primary); }
.contact-form-group input, .contact-form-group textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.9rem; font-family: inherit; background: white; color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition); resize: vertical;
}
.contact-form-group input:focus, .contact-form-group textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(230,57,70,0.1);
}
.contact-submit { margin-top: 4px; }
.contact-success {
  display: flex; align-items: flex-start; gap: 16px;
  background: #d1fae5; border: 1px solid #a7f3d0; border-radius: var(--radius-sm);
  padding: 20px 24px; color: #065f46;
}
.contact-success svg { flex-shrink: 0; margin-top: 2px; color: #10b981; }
.contact-success strong { display: block; font-size: 1rem; margin-bottom: 4px; }
.contact-success p { font-size: 0.88rem; margin: 0; }
.contact-error {
  background: #fee2e2; border: 1px solid #fca5a5; border-radius: var(--radius-sm);
  padding: 12px 16px; color: #991b1b; font-size: 0.88rem; margin-bottom: 20px;
}

/* ================================================================
   ERROR PAGES
   ================================================================ */
.error-page { min-height: calc(100vh - 130px); display: flex; align-items: center; justify-content: center; text-align: center; }
.error-code { font-size: 7rem; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 16px; }
.error-page h1 { font-size: 1.8rem; margin-bottom: 12px; }
.error-page p { color: var(--text-muted); margin-bottom: 28px; }

/* ================================================================
   FOOTER
   ================================================================ */
.footer { background: var(--text); color: rgba(255,255,255,0.7); padding: 40px 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.footer-logo {
  display: inline-flex; align-items: center; gap: 8px;
  color: white; font-size: 1.05rem;
}
.footer-logo strong { color: var(--primary); }
.footer-logo-img { width: 24px; height: 24px; filter: invert(1); opacity: 0.7; }
.footer-divider { width: 32px; height: 1px; background: rgba(255,255,255,0.15); }
.footer-tagline-text { font-size: 0.75rem; opacity: 0.45; letter-spacing: 0.05em; }
.footer-owner-link {
  display: inline-flex; align-items: center; justify-content: center;
  color: white; background: var(--primary); border: 1px solid var(--primary);
  border-radius: 999px; padding: 9px 18px; margin: 2px 0 4px;
  font-size: 0.84rem; font-weight: 600;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.footer-owner-link:hover {
  background: var(--primary-dark); transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(230,57,70,0.28);
}
.footer-copy { font-size: 0.85rem; }

/* ================================================================
   ABOUT PAGE
   ================================================================ */
.about-page { overflow: hidden; }
.about-hero {
  position: relative; min-height: 430px; display: flex; align-items: center;
  color: white; text-align: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 55%, #0f3460 100%);
}
.about-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(230,57,70,0.2), transparent 36%),
              radial-gradient(circle at 85% 80%, rgba(255,255,255,0.08), transparent 32%);
}
.about-hero-inner { position: relative; z-index: 1; max-width: 820px; }
.about-eyebrow {
  color: var(--primary); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 14px;
}
.about-hero h1 { font-size: clamp(2.35rem, 5vw, 4rem); line-height: 1.12; margin-bottom: 24px; }
.about-hero-inner > p:last-child { max-width: 680px; margin: 0 auto; color: rgba(255,255,255,0.72); font-size: 1.08rem; }
.about-hero-inner > * { opacity: 0; animation: heroEntrance 0.75s cubic-bezier(0.22,1,0.36,1) forwards; }
.about-hero-inner > :nth-child(1) { animation-delay: 0.1s; }
.about-hero-inner > :nth-child(2) { animation-delay: 0.22s; }
.about-hero-inner > :nth-child(3) { animation-delay: 0.34s; }

.about-story-section { padding: 96px 0; }
.about-story-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 72px; align-items: center; }
.about-team-photo { min-height: 460px; border-radius: 20px; background: var(--bg-soft); border: 1px solid var(--border); padding: 18px; overflow: hidden; }
.about-team-img {
  width: 100%; height: 100%; min-height: 424px; object-fit: cover; object-position: center;
  border-radius: 14px; box-shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
}
.about-photo-placeholder {
  height: 100%; min-height: 424px; border: 1.5px dashed #cbd5e1; border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: var(--text-muted); padding: 40px;
}
.about-photo-placeholder svg { color: var(--primary); margin-bottom: 18px; }
.about-photo-placeholder strong { color: var(--text); font-size: 1.05rem; margin-bottom: 6px; }
.about-photo-placeholder span { font-size: 0.86rem; }
.about-story-copy h2, .owners-copy h2 { font-size: clamp(1.8rem, 3vw, 2.45rem); line-height: 1.2; margin-bottom: 18px; }
.about-story-copy .section-line, .owners-copy .section-line { margin-bottom: 26px; }
.about-story-copy > p:not(.about-eyebrow) { color: var(--text-muted); margin-bottom: 18px; }

.about-team-section { padding: 88px 0; background: var(--bg-soft); }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.team-card { padding: 32px; background: white; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.team-avatar {
  width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--primary-light); color: var(--primary); font-size: 1.25rem; font-weight: 700; margin-bottom: 22px;
}
.team-card h3 { font-size: 1.15rem; margin-bottom: 3px; }
.team-role { display: block; color: var(--primary); font-size: 0.76rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.team-card p { color: var(--text-muted); font-size: 0.88rem; }

.owners-section { padding: 100px 0; scroll-margin-top: 64px; }
.owners-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 72px; align-items: center; }
.owners-copy > p:not(.about-eyebrow) { color: var(--text-muted); font-size: 1rem; max-width: 650px; }
.owners-benefits { list-style: none; margin: 28px 0 32px; display: grid; gap: 13px; }
.owners-benefits li { display: flex; align-items: flex-start; gap: 12px; color: var(--text); }
.owners-benefits span { color: var(--primary); font-weight: 700; }
.owners-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.owners-contact-box {
  margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--border);
}
.owners-contact-box h3 { font-size: 1.08rem; margin-bottom: 6px; }
.owners-contact-box > p { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 18px; }
.owners-actions .btn { gap: 9px; }
.owners-actions .btn.is-disabled {
  opacity: 0.48; cursor: not-allowed; pointer-events: none;
}
.owners-contact-config { margin-top: 10px; color: var(--text-muted); font-size: 0.76rem; }
.owners-card { background: var(--text); color: white; border-radius: 20px; padding: 38px; box-shadow: var(--shadow-lg); }
.owners-card-number { display: block; color: var(--primary); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; margin-bottom: 5px; }
.owners-card h3 { font-size: 1.08rem; margin-bottom: 7px; }
.owners-card p { color: rgba(255,255,255,0.58); font-size: 0.87rem; margin-bottom: 25px; padding-bottom: 25px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.owners-card p:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }

/* ================================================================
   GUESTS PAGE
   ================================================================ */
.guests-page { overflow: hidden; }
.guests-hero {
  min-height: 380px; display: flex; align-items: center; text-align: center; color: white;
  background:
    radial-gradient(circle at 20% 20%, rgba(230,57,70,0.25), transparent 34%),
    linear-gradient(135deg, #1a1a2e 0%, #16213e 58%, #0f3460 100%);
}
.guests-hero-inner { max-width: 820px; }
.guests-hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.12; margin-bottom: 22px; }
.guests-hero p:last-child { max-width: 680px; margin: 0 auto; color: rgba(255,255,255,0.74); font-size: 1.05rem; }
.guests-hero-inner > * { opacity: 0; animation: heroEntrance 0.75s cubic-bezier(0.22,1,0.36,1) forwards; }
.guests-hero-inner > :nth-child(1) { animation-delay: 0.1s; }
.guests-hero-inner > :nth-child(2) { animation-delay: 0.22s; }
.guests-hero-inner > :nth-child(3) { animation-delay: 0.34s; }
.guests-info-section { padding: 92px 0; background: var(--bg-soft); }
.guests-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.guest-card {
  background: white; border: 1px solid var(--border); border-radius: 20px;
  padding: 34px; box-shadow: var(--shadow-sm);
}
.guest-card-icon {
  width: 58px; height: 58px; border-radius: 18px; display: flex; align-items: center; justify-content: center;
  background: var(--primary-light); font-size: 1.55rem; margin-bottom: 20px;
}
.guest-card h2 { font-size: 1.25rem; margin-bottom: 12px; }
.guest-card p { color: var(--text-muted); margin-bottom: 16px; }
.guest-card ul { margin: 0; padding-left: 18px; color: var(--text); display: grid; gap: 9px; }
.guest-card li::marker { color: var(--primary); }
.guest-card-highlight { border-color: rgba(230,57,70,0.25); background: linear-gradient(180deg, #fff, #fff6f7); }
.guest-note {
  margin: 18px 0 0 !important; padding-top: 16px; border-top: 1px solid rgba(230,57,70,0.18);
  font-size: 0.86rem;
}
.guests-cta-section { padding: 88px 0; }
.guests-cta-inner {
  text-align: center; max-width: 760px; padding: 48px; border-radius: 24px;
  background: var(--text); color: white; box-shadow: var(--shadow-lg);
}
.guests-cta-inner h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); margin-bottom: 14px; }
.guests-cta-inner p { color: rgba(255,255,255,0.68); margin-bottom: 24px; }

/* ================================================================
   DATE FILTER (panel appartamenti) — see .filter-row-dates above
   ================================================================ */

/* ================================================================
   MAP IN GALLERY COLUMN
   ================================================================ */
.apt-detail-map { margin-top: 20px; }
.apt-detail-map h2 { font-size: 1rem; font-weight: 600; margin-bottom: 10px; color: var(--text); }
#detailMap { height: 260px; border-radius: var(--radius-sm); border: 1px solid var(--border); overflow: hidden; }

/* ================================================================
   AVAILABILITY CALENDAR (pagina appartamento)
   ================================================================ */
.apt-availability {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* Header con freccette nav */
.apt-availability-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; }
.cal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.cal-header span { font-size: 0.9rem; font-weight: 600; text-transform: capitalize; color: var(--text-muted); }
.cal-nav-btn {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 6px; border: 1.5px solid var(--border);
  background: white; color: var(--text); font-size: 1.2rem; cursor: pointer;
  transition: all var(--transition); line-height: 1;
}
.cal-nav-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.cal-nav-btn:disabled { opacity: 0.3; cursor: default; }


.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px;
}
.cal-dow {
  text-align: center; font-size: 0.68rem; font-weight: 700;
  color: var(--text-muted); padding: 2px 0 6px; text-transform: uppercase;
}
.cal-day {
  text-align: center; font-size: 0.8rem; padding: 5px 2px;
  border-radius: 5px; line-height: 1.3;
}
.cal-day-empty  { background: transparent; }
.cal-day-past   { color: #d1d5db; }
.cal-day-free   { color: var(--text); background: white; }
.cal-day-blocked {
  background: #fee2e2; color: #b91c1c;
  text-decoration: line-through;
}
.cal-day-today  { font-weight: 700; outline: 2px solid var(--primary); outline-offset: -2px; border-radius: 5px; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .apt-detail-layout { grid-template-columns: 1fr; }
  .neighborhoods-grid { grid-template-columns: repeat(2, 1fr); }
  .about-story-grid, .owners-grid { gap: 44px; }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.2rem; }
  .nav-links { display: none; }
  .nav-whatsapp span { display: none; }
  .nav-whatsapp { padding: 8px 10px; }
  .cards-grid { grid-template-columns: 1fr; }
  .stats-grid { flex-wrap: wrap; gap: 32px; }
  .stat-separator { display: none; }
  .stat-item { flex: 0 0 40%; padding: 0; }
  .how-grid { grid-template-columns: 1fr; gap: 32px; }
  .neighborhoods-grid { grid-template-columns: repeat(2, 1fr); }
  .about-story-section, .owners-section { padding: 72px 0; }
  .about-story-grid, .owners-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .guests-info-section, .guests-cta-section { padding: 72px 0; }
  .guests-grid { grid-template-columns: 1fr; }
  .guests-cta-inner { padding: 34px 24px; }

  .apts-panel {
    width: 100%; top: auto; height: 55%;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
  }
  .apts-panel::before {
    content: ''; display: block; width: 40px; height: 4px;
    background: var(--border); border-radius: 2px; margin: 10px auto 0; flex-shrink: 0;
  }
}

@media (max-width: 600px) {
  .contact-form-inner { padding: 24px; }
  .contact-form-row { grid-template-columns: 1fr; }
  .neighborhoods-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}

@media (max-width: 480px) {
  .apts-panel { height: 60%; }
  .stat-item { flex: 0 0 42%; }
}
