/* ============================================================
   casaREnova® — stylesheet
   Palette: --navy #1E3A5F  --blue-accent #2952A3  --bg-light #F5F5F5
   Fonts: Lora (serif headings) + Inter (body)
   ============================================================ */

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; color: #1A1A1A; background: #fff; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* === LUCIDE ICONS === */
.lucide {
  display: inline-block;
  width: 20px;
  height: 20px;
  stroke: #1E3A5F;
  stroke-width: 1.5;
  fill: none;
  vertical-align: middle;
  flex-shrink: 0;
}
.footer .lucide { stroke: rgba(255,255,255,0.65); }

/* === TOKENS === */
:root {
  --white:        #FFFFFF;
  --bg-light:     #F5F5F5;
  --navy:         #1E3A5F;
  --navy-dark:    #142C48;
  --blue-accent:  #2952A3;
  --text-dark:    #1A1A1A;
  --text-muted:   #666666;
  --border:       #E0E0E0;
  --badge-green:  #2952A3;
  --badge-sold:   #888888;
  --badge-wip:    #C97900;
  --shadow-sm:    0 1px 6px rgba(0,0,0,0.07);
  --shadow:       0 3px 16px rgba(0,0,0,0.09);
  --radius:       4px;
  --container:    1180px;
}

/* === LAYOUT === */
.container { max-width: var(--container); margin: 0 auto; padding: 0 2rem; }
section { padding: 80px 0; }

/* === TYPOGRAPHY === */
h1, h2, h3 {
  font-family: 'Lora', Georgia, serif;
  font-weight: 400;
  line-height: 1.2;
}
.label-sm {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.accent-italic {
  font-style: italic;
  color: var(--blue-accent);
}
.serif { font-family: 'Lora', Georgia, serif; }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.75rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover { background: var(--navy-dark); border-color: var(--navy-dark); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-white:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

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

/* ============================================================
   HEADER / NAV
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #FFFFFF;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  border-bottom: none;
}
.nav {
  display: flex;
  align-items: center;
  height: 66px;
  gap: 0;
}
.nav-logo {
  display: flex;
  align-items: center;
  background: transparent;
  padding: 0;
  border-radius: 0;
  margin-right: 2.5rem;
  flex-shrink: 0;
}
.nav-logo img { height: 30px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
}
.nav-links a {
  color: #1A1A1A;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  background: transparent;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: #666666; background: transparent; }

.header .btn-navy {
  margin-left: auto;
  font-size: 0.72rem;
  padding: 0.55rem 1.2rem;
  background: var(--blue-accent);
  border-color: var(--blue-accent);
}
.header .btn-navy:hover { background: #1e408a; border-color: #1e408a; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 1px; transition: 0.2s; }

/* Mobile overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 200;
  flex-direction: column;
  padding: 0;
}
.nav-overlay.open { display: flex; }
.nav-overlay-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.nav-overlay-close {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.3rem; cursor: pointer;
  background: rgba(255,255,255,0.1); border-radius: 3px;
}
.nav-overlay-links {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  gap: 0;
}
.nav-overlay-links a {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  font-weight: 500;
  padding: 0.9rem 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-overlay-links a:last-child { border-bottom: none; }
.nav-overlay .btn-navy { margin: 1.5rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--white);
  padding: 80px 0 72px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5rem;
  align-items: center;
}
.hero-title {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 1.25rem;
  line-height: 1.1;
}
.hero-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 440px;
  margin-bottom: 2.25rem;
  line-height: 1.75;
}
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.hero-photo {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #e8edf2;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #FFFFFF 0%, rgba(255,255,255,0) 38%);
  pointer-events: none;
  z-index: 1;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 36px 1rem;
  border-right: 1px solid var(--border);
  text-align: center;
}
.stat:last-child { border-right: none; }
.stat-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  font-family: 'Lora', Georgia, serif;
  line-height: 1;
}
.stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* ============================================================
   APPROCCIO (Valorizziamo)
   ============================================================ */
.approccio {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 185px;
  padding: 0;
  background: var(--white);
}
.approccio-photo {
  overflow: hidden;
  background: #d8dfe8;
}
.approccio-photo img { width: 100%; height: 100%; object-fit: cover; }
.approccio-content {
  padding: 72px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
}
.approccio-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.3;
}
.approccio-sub { font-size: 0.9rem; color: var(--text-muted); line-height: 1.75; }
.approccio-icons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 0.5rem;
}
.approccio-icon-item { display: flex; flex-direction: column; gap: 0.4rem; }
.approccio-icon-item .icon { font-size: 1.4rem; margin-bottom: 0.2rem; }
.approccio-icon-item strong { font-size: 0.82rem; font-weight: 700; color: var(--text-dark); }
.approccio-icon-item span { font-size: 0.77rem; color: var(--text-muted); line-height: 1.5; }

/* ============================================================
   PROGETTI IN EVIDENZA
   ============================================================ */
.progetti { background: var(--bg-light); }
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
}
.section-header h2 { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dark); font-family: 'Inter', sans-serif; }
.section-header a { font-size: 0.75rem; font-weight: 600; color: var(--navy); letter-spacing: 0.05em; transition: color 0.2s; }
.section-header a:hover { color: var(--blue-accent); }

.progetti-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }

.progetto-card {
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
  display: block;
  color: var(--text-dark);
}
.progetto-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }

.progetto-card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #dde4ee;
  position: relative;
}
.progetto-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.progetto-card:hover .progetto-card-img img { transform: scale(1.03); }

.progetto-card-body { padding: 1.1rem 1.25rem 1.25rem; }
.progetto-name { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.2rem; }
.progetto-city { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.progetto-units { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.75rem; }

.badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  color: var(--white);
}
.badge-vendita { background: var(--navy); }
.badge-venduto { background: var(--badge-sold); }
.badge-corso   { background: var(--badge-wip); }

/* ============================================================
   PRIMA / DOPO
   ============================================================ */
.prima-dopo { background: var(--bg-light); padding: 80px 0; }

/* ── Slider container ── */
.pd-slider {
  position: relative;
  height: 420px;
  overflow: hidden;
  cursor: col-resize;
  user-select: none;
  -webkit-user-select: none;
  background: #c8d0dc;
  touch-action: none;
  border-radius: 4px;
}

/* ── Each image layer ── */
.pd-side {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.pd-side img,
.pd-dopo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
}

/* ── Dopo: clipped from the left up to --split ── */
.pd-dopo {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 var(--split, 50%));
  will-change: clip-path;
}

/* ── Labels ── */
.pd-label {
  position: absolute;
  bottom: 1.5rem;
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-size: 1rem;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,0.55);
  pointer-events: none;
  z-index: 5;
  letter-spacing: 0.03em;
}
.pd-label-prima { left: 1.5rem; }
.pd-label-dopo  { right: 1.5rem; }

/* ── Divider line ── */
.pd-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split, 50%);
  transform: translateX(-50%);
  width: 2px;
  background: rgba(255,255,255,0.9);
  z-index: 10;
  pointer-events: none;
  will-change: left;
}

/* ── Drag handle ── */
.pd-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.28);
  pointer-events: all;
  cursor: col-resize;
}

/* ── Mobile stacked view (hidden on desktop) ── */
.pd-mobile { display: none; }
.pd-mobile-item {
  position: relative;
  overflow: hidden;
  background: #c8d0dc;
  aspect-ratio: 4/3;
}
.pd-mobile-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pd-mobile-item .pd-label { bottom: 1rem; left: 1rem; right: auto; }
.pd-mobile-item .pd-label-dopo { left: auto; right: 1rem; }

/* ── Text above slider ── */
.pd-text-above {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2.5rem;
  align-items: end;
  margin-bottom: 1.75rem;
}
.pd-text-right { display: flex; flex-direction: column; gap: 1rem; }
.pd-title { font-size: clamp(1.5rem, 2.5vw, 2rem); color: var(--text-dark); }
.pd-sub { font-size: 0.9rem; color: var(--text-muted); line-height: 1.75; }
.pd-link { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--navy); border-bottom: 2px solid var(--navy); padding-bottom: 2px; display: inline-block; transition: color 0.2s, border-color 0.2s; }
.pd-link:hover { color: var(--blue-accent); border-color: var(--blue-accent); }

/* ============================================================
   IMMOBILI DISPONIBILI
   ============================================================ */
.immobili { background: var(--white); }
.immobili-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }

.immobile-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
  color: var(--text-dark);
  transition: box-shadow 0.2s, transform 0.2s;
}
.immobile-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }

.immobile-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #dde4ee;
  position: relative;
}
.immobile-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.immobile-card:hover .immobile-card-img img { transform: scale(1.03); }

.immobile-card-body { padding: 1rem 1.1rem 1.2rem; }
.immobile-zone { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.25rem; }
.immobile-title { font-size: 1rem; font-weight: 600; margin-bottom: 0.6rem; }
.immobile-specs { display: flex; gap: 1rem; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.7rem; flex-wrap: wrap; }
.immobile-price { font-size: 1rem; font-weight: 700; color: var(--navy); }

/* Photo placeholder generic */
.photo-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #dde4f0 0%, #c8d4e4 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.5rem; color: #8899bb; font-size: 0.78rem; font-weight: 600;
}
.photo-placeholder svg { opacity: 0.4; }

/* ============================================================
   PERCHÉ NOI
   ============================================================ */
.perche { background: var(--bg-light); }
.perche-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.perche-intro h2 { font-size: clamp(1.6rem, 2.5vw, 2rem); margin-bottom: 1rem; }
.perche-intro p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.8; }
.perche-list { display: flex; flex-direction: column; gap: 1.5rem; }
.perche-item { display: flex; gap: 1rem; align-items: flex-start; }
.perche-icon { font-size: 1.2rem; margin-top: 2px; flex-shrink: 0; }
.perche-item strong { display: block; font-size: 0.9rem; font-weight: 700; margin-bottom: 0.25rem; }
.perche-item p { font-size: 0.84rem; color: var(--text-muted); margin: 0; line-height: 1.6; }

/* ============================================================
   TESTIMONIANZE
   ============================================================ */
.testi { background: var(--white); }
.testi h2 { font-size: clamp(1.6rem, 2.5vw, 2rem); margin-bottom: 2.5rem; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testi-card {
  padding: 2rem;
  background: var(--bg-light);
  border-left: 3px solid var(--navy);
  display: flex; flex-direction: column; gap: 1.25rem;
}
.testi-card p { font-size: 0.9rem; font-style: italic; color: var(--text-dark); line-height: 1.8; flex: 1; }
.testi-author { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--navy); }
.testi-role { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.1rem; }

/* ============================================================
   HOME CONTACT FORM
   ============================================================ */
.home-contact { background: var(--white); }
.home-contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 5rem; align-items: start; }
.home-contact-info h2 { font-size: clamp(1.5rem, 2.5vw, 1.9rem); margin-bottom: 1rem; }
.home-contact-info p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.8; margin-bottom: 1.5rem; }
.contact-link-list { display: flex; flex-direction: column; gap: 0.6rem; }
.contact-link-item {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.85rem; font-weight: 600; color: var(--text-dark);
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  background: var(--bg-light);
  transition: border-color 0.2s, color 0.2s;
}
.contact-link-item:hover { border-color: var(--navy); color: var(--navy); }

/* ============================================================
   FORM SHARED
   ============================================================ */
.form-wrap { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-group label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--text-muted); }
.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  border-radius: 0;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(30,58,95,0.1);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-dark .form-group input,
.form-dark .form-group textarea,
.form-dark .form-group select {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  color: #fff;
}
.form-dark .form-group input::placeholder,
.form-dark .form-group textarea::placeholder { color: rgba(255,255,255,0.4); }
.form-dark .form-group input:focus,
.form-dark .form-group textarea:focus {
  border-color: rgba(255,255,255,0.6);
  box-shadow: none;
}
.form-dark .form-group label { color: rgba(255,255,255,0.6); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy); color: rgba(255,255,255,0.65); padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 2.5rem; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand { display: flex; flex-direction: column; gap: 1rem; }
.footer-logo { display: inline-flex; background: rgba(255,255,255,0.95); padding: 4px 9px; border-radius: 3px; width: fit-content; }
.footer-logo img { height: 26px; }
.footer-brand p { font-size: 0.83rem; line-height: 1.7; max-width: 250px; }
.footer-col h4 { font-family: 'Inter', sans-serif; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: #fff; margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.45rem; }
.footer-col ul a { font-size: 0.83rem; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--white); }
.footer-col p { font-size: 0.83rem; margin-bottom: 0.4rem; display: flex; align-items: center; gap: 0.45rem; }
.footer-bottom { padding: 16px 0; font-size: 0.75rem; color: rgba(255,255,255,0.35); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
.footer-bottom a { color: rgba(255,255,255,0.4); text-decoration: underline; }
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }

/* ============================================================
   PAGE HERO (internal pages)
   ============================================================ */
.page-hero { background: var(--navy); color: #fff; padding: 72px 0 64px; }
.page-hero .label-sm { color: rgba(255,255,255,0.5); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); color: #fff; margin-bottom: 1rem; }
.page-hero p { font-size: 1rem; color: rgba(255,255,255,0.65); line-height: 1.8; max-width: 600px; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  background: var(--white);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.breadcrumb nav { display: flex; align-items: center; gap: 0.5rem; font-size: 0.76rem; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb span.current { color: var(--text-dark); font-weight: 600; }

/* ============================================================
   APARTMENT DETAIL — GALLERY
   ============================================================ */
.gallery-wrap { background: var(--white); padding: 28px 0 0; overflow: hidden; }
.gallery-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 5px;
  height: 460px;
  overflow: hidden;
}
.gallery-main { grid-row: 1 / 3; overflow: hidden; background: #d5dce8; cursor: pointer; position: relative; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }
.gallery-main:hover img { transform: scale(1.02); }
.gallery-thumb { overflow: hidden; background: #d5dce8; cursor: pointer; position: relative; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }
.gallery-thumb:hover img { transform: scale(1.04); }
.gallery-more {
  position: absolute; inset: 0;
  background: rgba(30,58,95,0.65);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff; gap: 0.2rem; cursor: pointer;
}
.gallery-more-count { font-size: 1.6rem; font-weight: 700; line-height: 1; }
.gallery-more-label { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,0.93);
  display: flex; align-items: center; justify-content: center;
}
.lb-img-wrap { max-width: 88vw; max-height: 86vh; display: flex; align-items: center; justify-content: center; }
.lb-img-wrap img { max-width: 100%; max-height: 86vh; object-fit: contain; display: block; border-radius: 2px; }
.lb-close {
  position: absolute; top: 1.2rem; right: 1.5rem;
  background: none; border: none; color: #fff; font-size: 2rem;
  cursor: pointer; line-height: 1; opacity: .7; transition: opacity .2s;
}
.lb-close:hover { opacity: 1; }
.lb-prev, .lb-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.12); border: none; color: #fff;
  font-size: 2.4rem; width: 3rem; height: 5rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border-radius: 4px; transition: background .2s;
}
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,0.22); }
.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }
.lb-counter {
  position: absolute; bottom: 1.2rem;
  color: rgba(255,255,255,0.5); font-size: .8rem; letter-spacing: .05em;
}

/* ============================================================
   APARTMENT DETAIL — HEADER INFO
   ============================================================ */
.apt-info-bar {
  background: var(--white);
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--border);
}
.apt-info-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.25rem;
}
.apt-tipo { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-accent); margin-bottom: 0.3rem; }
.apt-title-main { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; font-family: 'Inter', sans-serif; letter-spacing: -0.01em; margin-bottom: 0.3rem; }
.apt-address { font-size: 0.85rem; color: var(--text-muted); }
.apt-price-box { text-align: right; flex-shrink: 0; }
.apt-price-label { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 0.2rem; }
.apt-price-value { font-size: 1.9rem; font-weight: 700; color: var(--navy); line-height: 1; font-family: 'Lora', serif; }
.apt-price-note { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.25rem; }

.apt-specs-row {
  display: flex;
  align-items: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.25rem;
}
.apt-spec {
  display: flex; align-items: center; gap: 0.45rem;
  font-size: 0.8rem; font-weight: 500; color: var(--text-dark);
  padding: 0.7rem 1.5rem;
  border-right: 1px solid var(--border);
}
.apt-spec:first-child { padding-left: 0; }
.apt-spec:last-child { border-right: none; }
.apt-spec .spec-icon { font-size: 0.95rem; }

.apt-info-cta { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ============================================================
   APARTMENT DETAIL — BODY
   ============================================================ */
.apt-body { padding: 56px 0; }
.apt-body-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 4rem; align-items: start; }

.apt-desc-title {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-style: italic;
  margin-bottom: 1.25rem;
  line-height: 1.4;
}
.apt-desc-text { font-size: 0.9rem; color: var(--text-muted); line-height: 1.85; }
.apt-desc-text p + p { margin-top: 0.9rem; }
.apt-desc-cta { margin-top: 1.75rem; }

/* Planimetria */
.planimetria { margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid var(--border); }
.planimetria h3 { font-family: 'Inter', sans-serif; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1.25rem; }
.plan-img { border: 1px solid var(--border); background: var(--bg-light); }
.plan-img img { width: 100%; height: auto; }
.plan-placeholder {
  height: 260px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.6rem; color: #b0bbc8; font-size: 0.8rem; font-weight: 600;
}
.plan-table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: 0.82rem; }
.plan-table tr { border-bottom: 1px solid var(--border); }
.plan-table tr:last-child { border-bottom: none; }
.plan-table td { padding: 0.55rem 0; }
.plan-table td:first-child { color: var(--text-muted); }
.plan-table td:last-child { font-weight: 600; text-align: right; }
.plan-download { margin-top: 1rem; }

/* Caratteristiche */
.apt-features-col { }
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 0.75rem;
}
.feature-item {
  background: var(--white);
  padding: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}
.feature-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.feature-item strong { display: block; font-size: 0.78rem; font-weight: 700; margin-bottom: 0.1rem; }
.feature-item span { font-size: 0.72rem; color: var(--text-muted); line-height: 1.4; }

/* Posizione */
.posizione { margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid var(--border); }
.posizione h3 { font-family: 'Inter', sans-serif; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1rem; }
.map-box { height: 220px; border: 1px solid var(--border); background: #dde4ee; overflow: hidden; }
.map-box iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-placeholder {
  height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.5rem; color: #b0bbc8; font-size: 0.8rem; font-weight: 600; text-align: center;
}
.map-placeholder svg { opacity: 0.45; }
.posizione-desc { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.75rem; line-height: 1.65; }

/* ============================================================
   APARTMENT DETAIL — CONTACT FORM (navy bg)
   ============================================================ */
.apt-contact {
  background: var(--navy);
  padding: 72px 0;
}
.apt-contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 5rem; align-items: start; }
.apt-contact-info .label-sm { color: rgba(255,255,255,0.5); }
.apt-contact-info h2 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); color: #fff; margin-bottom: 0.75rem; }
.apt-contact-info p { font-size: 0.88rem; color: rgba(255,255,255,0.6); line-height: 1.8; }

.apt-contact-light { background: #EBEBEB; }
.apt-contact-light .apt-contact-info .label-sm { color: var(--text-muted); }
.apt-contact-light .apt-contact-info h2 { color: var(--text-dark); }
.apt-contact-light .apt-contact-info p { color: var(--text-muted); }

/* ============================================================
   CHI SIAMO PAGE
   ============================================================ */
.about-section { padding: 80px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-photo { aspect-ratio: 4/3; overflow: hidden; background: #d5dce8; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-content h2 { font-size: clamp(1.6rem, 2.5vw, 2rem); margin-bottom: 1.25rem; }
.about-content p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.85; margin-bottom: 1rem; }
.about-content p:last-child { margin-bottom: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .approccio-content { padding: 56px 40px; }
  .apt-body-grid { gap: 2.5rem; }
  .apt-contact-grid { gap: 3rem; }
  .home-contact-grid { gap: 3rem; }
}

@media (max-width: 768px) {
  .nav-links, .header .btn-navy { display: none; }
  .hamburger { display: flex; }

  section { padding: 56px 0; }

  .hero { padding: 48px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-photo { aspect-ratio: 16/10; }
  .hero-photo::after { display: none; }
  .hero-title { font-size: 2.2rem; }

  .stats-inner { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(3) { border-right: 1px solid var(--border); }
  .stat:nth-child(4) { border-right: none; }

  .approccio { grid-template-columns: 1fr; min-height: auto; }
  .approccio-photo { height: 280px; }
  .approccio-content { padding: 44px 24px; }
  .approccio-icons { grid-template-columns: 1fr; gap: 1rem; }

  .progetti-grid, .immobili-grid { grid-template-columns: 1fr; max-width: 420px; }

  /* prima/dopo: hide slider, show stacked images */
  .pd-slider { display: none; }
  .pd-mobile { display: flex; flex-direction: column; gap: 4px; }
  .pd-text-above { grid-template-columns: 1fr; gap: 1rem; margin-bottom: 1.25rem; }

  .perche-grid { grid-template-columns: 1fr; gap: 2.5rem; }

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

  .home-contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 110px 110px; height: auto; }
  .gallery-main { grid-column: 1 / 3; grid-row: 1; }

  .apt-info-top { flex-direction: column; gap: 1rem; }
  .apt-price-box { text-align: left; }
  .apt-specs-row { flex-wrap: wrap; }
  .apt-spec { padding: 0.6rem 1rem; font-size: 0.75rem; }
  .apt-spec:first-child { padding-left: 1rem; }

  .apt-body-grid { grid-template-columns: 1fr; }

  .apt-contact { padding: 48px 0; }
  .apt-contact-grid { grid-template-columns: 1fr; gap: 2rem; }

  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .hero-title { font-size: 1.9rem; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .apt-spec { border-right: none; }
}

/* === VIRTUAL TOUR === */
.vt-block { margin-top: 2.5rem; }
.vt-block h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.75rem; color: var(--text-dark); }
.vt-block .vt-hint { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.4rem; }
.vt-viewer { width: 100%; height: 380px; min-height: 380px; border-radius: 8px; overflow: hidden; position: relative; display: block; }
@media (max-width: 768px) { .vt-viewer { height: 260px; min-height: 260px; } }
