/* Font self-hosted (subset latin) — Fraunces e Inter, licenza SIL OFL */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../assets/fonts/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =========================================================
   HALLS Immobiliare — Design System
   ========================================================= */

:root {
  /* Colors */
  --ink: #182620;
  --ink-soft: #33433c;
  --cream: #f7f4ee;
  --cream-deep: #efe9dd;
  --white: #ffffff;
  --sage: #4b5d46;
  --sage-light: #7c9174;
  --gold: #b6884a;
  --gold-light: #d9b479;
  --line: #e3ddcf;
  --success: #4b6b46;

  /* Type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1240px;
  --radius-s: 6px;
  --radius-m: 14px;
  --radius-l: 26px;
  --shadow-s: 0 2px 10px rgba(24, 38, 32, 0.06);
  --shadow-m: 0 12px 30px rgba(24, 38, 32, 0.12);
  --shadow-l: 0 24px 60px rgba(24, 38, 32, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 4.5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--sage);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: var(--gold);
}

.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--dark { background: var(--ink); color: var(--cream); }
.section--dark p { color: #c7d0c9; }
.section--dark h2, .section--dark h3 { color: var(--cream); }
.section--sand { background: var(--cream-deep); }

.section-head {
  max-width: 640px;
  margin: 0 0 48px;
}
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 100px;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { background: var(--sage); box-shadow: var(--shadow-m); }
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: var(--gold-light); box-shadow: var(--shadow-m); }
.btn-outline { background: transparent; border-color: currentColor; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--cream); }
.btn-ghost-light { background: rgba(247,244,238,.12); border-color: rgba(247,244,238,.4); color: var(--cream); backdrop-filter: blur(6px); }
.btn-ghost-light:hover { background: var(--cream); color: var(--ink); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 20px; font-size: .85rem; }

/* =========================================================
   Header
   ========================================================= */
.topbar {
  background: var(--ink);
  color: #cfd8d0;
  font-size: .82rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
}
.topbar a { display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: var(--gold-light); }
.topbar-left { display: flex; gap: 24px; }
.topbar-right { display: flex; gap: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -.01em;
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo span {
  font-family: var(--font-body);
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sage);
  margin-top: 5px;
}

.main-nav { display: flex; align-items: center; gap: 40px; }
.nav-links { display: flex; gap: 34px; font-weight: 500; font-size: .95rem; }
.nav-links a { position: relative; padding: 6px 0; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--gold);
  transition: right .2s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.nav-links a.active { color: var(--sage); }

.header-cta { display: flex; align-items: center; gap: 18px; }
.header-phone { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem; }
.header-phone svg { width: 18px; height: 18px; color: var(--gold); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: all .2s ease;
}
.nav-toggle span::before { position: absolute; top: -8px; width: 24px; }
.nav-toggle span::after { position: absolute; top: 8px; width: 24px; }

/* =========================================================
   Hero (home)
   ========================================================= */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,22,18,.35) 0%, rgba(15,22,18,.35) 40%, rgba(15,22,18,.92) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-bottom: 56px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(247,244,238,.14);
  border: 1px solid rgba(247,244,238,.35);
  backdrop-filter: blur(6px);
  padding: 7px 16px;
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  margin-bottom: 22px;
}
.hero h1 { max-width: 820px; color: var(--white); margin-bottom: 18px; }
.hero-sub { max-width: 560px; font-size: 1.1rem; color: #e6e5da; margin-bottom: 40px; }

/* Search widget */
.search-card {
  background: var(--white);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-l);
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--ink);
}
.search-tabs {
  display: flex;
  gap: 4px;
  width: 100%;
  padding: 6px 6px 0;
}
.search-tab {
  border: none;
  background: transparent;
  padding: 10px 20px;
  border-radius: 100px;
  font-weight: 600;
  font-size: .88rem;
  color: var(--ink-soft);
}
.search-tab.active { background: var(--ink); color: var(--cream); }
.search-fields {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr auto;
  gap: 6px;
  width: 100%;
  padding: 4px;
}
.search-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 18px;
  border-radius: var(--radius-m);
  background: var(--cream);
}
.search-field label {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--sage);
}
.search-field select, .search-field input {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink);
  padding: 0;
  outline: none;
}
.search-submit {
  border: none;
  background: var(--gold);
  color: var(--white);
  border-radius: var(--radius-m);
  padding: 0 30px;
  font-weight: 700;
  font-size: .95rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background .2s ease;
}
.search-submit:hover { background: var(--sage); }

/* =========================================================
   Stats bar
   ========================================================= */
.stats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 44px 0;
}
.stat { text-align: center; border-right: 1px solid var(--line); padding: 0 16px; }
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 600;
  color: var(--sage);
  display: block;
}
.stat-label { font-size: .85rem; color: var(--ink-soft); margin-top: 4px; }

/* =========================================================
   Property cards
   ========================================================= */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.property-card {
  background: var(--white);
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-s);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
}
.property-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-m); }
.property-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.property-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.property-card:hover .property-media img { transform: scale(1.06); }
.property-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--ink);
  color: var(--cream);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 6px 12px;
  border-radius: 100px;
}
.property-badge.affitto { background: var(--gold); }
.property-fav {
  position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  display: flex; align-items: center; justify-content: center;
  border: none;
}
.property-fav svg { width: 16px; height: 16px; }
.property-price-tag {
  position: absolute; bottom: 14px; left: 14px;
  background: rgba(24,38,32,.88);
  color: var(--white);
  font-weight: 700;
  padding: 7px 14px;
  border-radius: var(--radius-s);
  font-size: .95rem;
}
.property-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.property-body h3 { margin: 0; font-size: 1.15rem; }
.property-loc {
  display: flex; align-items: center; gap: 6px;
  font-size: .85rem; color: var(--ink-soft);
}
.property-loc svg { width: 14px; height: 14px; color: var(--gold); flex-shrink: 0; }
.property-feats {
  display: flex; gap: 16px;
  padding-top: 12px; margin-top: auto;
  border-top: 1px solid var(--line);
  font-size: .82rem; color: var(--ink-soft);
}
.property-feats span { display: flex; align-items: center; gap: 6px; }
.property-feats svg { width: 15px; height: 15px; color: var(--sage); }

/* =========================================================
   Value props / features
   ========================================================= */
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.value-card {
  background: var(--white);
  border-radius: var(--radius-m);
  padding: 32px 26px;
  box-shadow: var(--shadow-s);
}
.value-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--cream-deep);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.value-icon svg { width: 24px; height: 24px; color: var(--sage); }
.value-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.value-card p { font-size: .92rem; margin: 0; }

/* =========================================================
   CTA banner
   ========================================================= */
.cta-banner {
  background: var(--sage);
  color: var(--white);
  border-radius: var(--radius-l);
  padding: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background-image: radial-gradient(circle at 85% 20%, rgba(255,255,255,.12), transparent 45%);
}
.cta-banner h2 { color: var(--white); margin-bottom: 10px; }
.cta-banner p { color: #dde5da; margin: 0; max-width: 480px; }
.cta-banner .btn-gold:hover { background: var(--white); color: var(--sage); }

/* =========================================================
   Testimonials
   ========================================================= */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.testi-card {
  background: var(--white);
  border-radius: var(--radius-m);
  padding: 30px;
  box-shadow: var(--shadow-s);
}
.testi-stars { display: flex; gap: 3px; color: var(--gold); margin-bottom: 14px; }
.testi-stars svg { width: 16px; height: 16px; }
.testi-quote { font-style: italic; color: var(--ink); margin-bottom: 20px; }
.testi-person { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--sage);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .85rem;
  flex-shrink: 0;
}
.testi-person strong { display: block; font-size: .9rem; }
.testi-person span { font-size: .8rem; color: var(--ink-soft); }

/* =========================================================
   Zone / areas served
   ========================================================= */
.zone-list { display: flex; flex-wrap: wrap; gap: 12px; }
.zone-chip {
  padding: 10px 20px;
  border-radius: 100px;
  background: var(--white);
  border: 1px solid var(--line);
  font-weight: 600; font-size: .88rem;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--ink); color: #b9c3bb; padding-top: 80px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(247,244,238,.12);
}
.footer-logo { font-family: var(--font-display); color: var(--cream); font-size: 1.5rem; margin-bottom: 14px; }
.footer-col h4 {
  color: var(--cream);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 18px;
}
.footer-col ul li { margin-bottom: 11px; font-size: .92rem; }
.footer-col ul li a:hover { color: var(--gold-light); }
.footer-contact-item { display: flex; gap: 10px; margin-bottom: 14px; font-size: .92rem; align-items: flex-start; }
.footer-contact-item svg { width: 17px; height: 17px; color: var(--gold-light); flex-shrink: 0; margin-top: 2px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(247,244,238,.25);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: var(--gold); border-color: var(--gold); }
.footer-social svg { width: 16px; height: 16px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 26px 0; font-size: .82rem; flex-wrap: wrap; gap: 10px;
}
.footer-bottom a:hover { color: var(--gold-light); }

/* =========================================================
   Page header (interior pages)
   ========================================================= */
.page-header {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--line);
}
.breadcrumb { display: flex; gap: 8px; font-size: .85rem; color: var(--ink-soft); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--sage); }
.page-header h1 { margin-bottom: 10px; }
.page-header p { max-width: 560px; margin: 0; }

/* =========================================================
   Listings page — filters
   ========================================================= */
.listings-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: flex-start;
}
.filters-panel {
  background: var(--white);
  border-radius: var(--radius-m);
  padding: 26px;
  box-shadow: var(--shadow-s);
  position: sticky;
  top: 104px;
}
.filters-panel h3 { font-size: 1rem; margin-bottom: 20px; }
.filter-group { margin-bottom: 24px; }
.filter-group label.filter-label {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--sage);
  margin-bottom: 10px;
}
.filter-group select, .filter-group input[type="number"] {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-s);
  border: 1px solid var(--line);
  background: var(--cream);
  font-family: inherit;
  font-size: .9rem;
  color: var(--ink);
}
.filter-range { display: flex; gap: 8px; }
.checkbox-row { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; font-size: .9rem; }
.checkbox-row input { width: 16px; height: 16px; accent-color: var(--sage); }
.filter-chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip {
  padding: 8px 14px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: var(--cream);
  font-size: .82rem;
  font-weight: 600;
}
.filter-chip.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.listings-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
  flex-wrap: wrap;
  gap: 14px;
}
.results-count { font-weight: 600; }
.sort-select {
  padding: 10px 16px;
  border-radius: var(--radius-s);
  border: 1px solid var(--line);
  background: var(--white);
  font-family: inherit;
  font-size: .88rem;
}
.listings-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.empty-state {
  text-align: center;
  padding: 70px 20px;
  background: var(--white);
  border-radius: var(--radius-m);
}

/* =========================================================
   Property detail
   ========================================================= */
.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
  border-radius: var(--radius-m);
  overflow: hidden;
  margin-bottom: 40px;
  height: 480px;
}
.gallery-main { height: 100%; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-side { display: grid; grid-template-rows: repeat(2, 1fr); gap: 12px; height: 100%; }
.gallery-side img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.gallery-thumb { overflow: hidden; position: relative; }
.gallery-more {
  position: absolute; inset: 0;
  background: rgba(24,38,32,.55);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 50px;
  align-items: flex-start;
}
.detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 26px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.detail-title h1 { font-size: 2rem; margin-bottom: 8px; }
.detail-price { font-family: var(--font-display); font-size: 2rem; color: var(--sage); white-space: nowrap; }

.facts-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 40px;
}
.fact {
  background: var(--white);
  border-radius: var(--radius-m);
  padding: 18px 10px;
  text-align: center;
  box-shadow: var(--shadow-s);
}
.fact svg { width: 22px; height: 22px; color: var(--gold); margin-bottom: 8px; }
.fact strong { display: block; font-size: 1.05rem; }
.fact span { font-size: .76rem; color: var(--ink-soft); }

.detail-block { margin-bottom: 44px; }
.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 20px;
}
.feature-list li { display: flex; align-items: center; gap: 10px; font-size: .95rem; }
.feature-list svg { width: 17px; height: 17px; color: var(--sage); flex-shrink: 0; }

.map-embed { border-radius: var(--radius-m); overflow: hidden; height: 320px; border: 1px solid var(--line); }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

.agent-card {
  background: var(--white);
  border-radius: var(--radius-m);
  padding: 28px;
  box-shadow: var(--shadow-s);
  position: sticky;
  top: 104px;
}
.agent-card .badge-note {
  display: inline-block;
  font-size: .74rem;
  font-weight: 700;
  color: var(--sage);
  background: var(--cream-deep);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.agent-identity { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.agent-avatar {
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--sage); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.agent-identity strong { display: block; }
.agent-identity span { font-size: .82rem; color: var(--ink-soft); }
.agent-contact-btns { display: flex; gap: 10px; margin-bottom: 20px; }
.agent-contact-btns .btn { flex: 1; padding: 12px 10px; font-size: .85rem; }

/* Forms */
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 6px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-s);
  border: 1px solid var(--line);
  background: var(--cream);
  font-family: inherit;
  font-size: .92rem;
  color: var(--ink);
  resize: vertical;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: 2px solid var(--sage);
  outline-offset: 1px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-check { display: flex; align-items: flex-start; gap: 9px; font-size: .82rem; color: var(--ink-soft); margin-bottom: 18px; }
.form-check input { margin-top: 3px; accent-color: var(--sage); }
.form-note { font-size: .8rem; color: var(--ink-soft); margin-top: 12px; text-align: center; }
.form-success {
  display: none;
  background: var(--cream-deep);
  border: 1px solid var(--sage-light);
  border-radius: var(--radius-s);
  padding: 14px 16px;
  font-size: .88rem;
  color: var(--success);
  margin-top: 14px;
  align-items: center;
  gap: 10px;
}
.form-success.show { display: flex; }
.form-success svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Related */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

/* =========================================================
   About page
   ========================================================= */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split img { border-radius: var(--radius-l); }
.about-values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.team-card {
  background: var(--white);
  border-radius: var(--radius-m);
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow-s);
}
.team-avatar {
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--cream-deep);
  color: var(--sage);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 0 auto 18px;
}
.team-card strong { display: block; font-size: 1.05rem; margin-bottom: 3px; }
.team-card span { font-size: .84rem; color: var(--sage); font-weight: 600; }
.team-placeholder-note {
  font-size: .74rem;
  color: var(--ink-soft);
  margin-top: 10px;
  font-style: italic;
}

/* =========================================================
   Contact page
   ========================================================= */
.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 50px;
  align-items: flex-start;
}
.contact-card {
  background: var(--white);
  border-radius: var(--radius-m);
  padding: 34px;
  box-shadow: var(--shadow-s);
}
.info-card {
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius-m);
  padding: 34px;
  margin-bottom: 20px;
}
.info-card h3 { color: var(--cream); }
.info-card .footer-contact-item { color: #d9dfd6; }

/* =========================================================
   Utilities / responsive
   ========================================================= */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }

@media (max-width: 1080px) {
  .listing-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 0; }
  .stat:nth-child(2) { border-right: none; }
  .stat { border-right: 1px solid var(--line); }
  .stat:nth-child(2n) { border-right: none; }
  .testi-grid { grid-template-columns: 1fr; }
  .listings-layout { grid-template-columns: 1fr; }
  .filters-panel { position: static; }
  .listings-grid-2 { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .agent-card { position: static; }
  .facts-bar { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .topbar { display: none; }
  .nav-links, .header-phone span { display: none; }
  .nav-toggle { display: block; }
  .site-header .container { height: 72px; }
  .hero { min-height: 82vh; }
  .search-fields { grid-template-columns: 1fr; }
  .search-submit { width: 100%; padding: 15px; }
  .listing-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-banner { flex-direction: column; text-align: center; padding: 44px 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .facts-bar { grid-template-columns: repeat(2, 1fr); }
  .feature-list { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; height: auto; }
  .gallery-side { grid-template-rows: 1fr; grid-auto-flow: column; height: 140px; }
  .section { padding: 64px 0; }
  .about-values { grid-template-columns: 1fr; }
}

/* Mobile nav drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--ink);
  color: var(--cream);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  transform: translateX(100%);
  transition: transform .3s ease;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.mobile-nav-close { background: none; border: none; color: var(--cream); font-size: 1.6rem; }
.mobile-nav a { font-family: var(--font-display); font-size: 1.7rem; padding: 14px 0; border-bottom: 1px solid rgba(247,244,238,.12); }
.mobile-nav-footer { margin-top: auto; display: flex; flex-direction: column; gap: 14px; }

/* =========================================================
   Homepage — hero senza ricerca + portal cards due sezioni
   ========================================================= */
.hero-portals {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 900px;
}
.portal-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(247,244,238,.1);
  border: 1px solid rgba(247,244,238,.32);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-l);
  padding: 26px 26px 24px;
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}
.portal-card:hover { transform: translateY(-4px); background: rgba(247,244,238,.16); border-color: rgba(247,244,238,.55); }
.portal-card-tag {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gold-light);
}
.portal-card h3, .portal-card h2 { color: var(--white); font-size: 1.4rem; margin: 0; }
.portal-card p { color: #dcded6; font-size: .92rem; margin: 0; }
.portal-card-arrow {
  margin-top: auto;
  padding-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: .9rem;
  color: var(--white);
}
.portal-card-arrow svg { width: 16px; height: 16px; transition: transform .2s ease; }
.portal-card:hover .portal-card-arrow svg { transform: translate(3px,-3px); }

/* =========================================================
   Sezioni home — riquadro "due sezioni"
   ========================================================= */
.split-sections {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.section-card {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow-m);
}
.section-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.section-card:hover img { transform: scale(1.05); }
.section-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,22,18,.05) 30%, rgba(15,22,18,.9) 100%);
}
.section-card-body { position: relative; z-index: 1; padding: 34px; color: var(--white); }
.section-card-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: var(--gold-light); margin-bottom: 10px;
}
.section-card-body h3, .section-card-body h2 { color: var(--white); font-size: 1.7rem; margin-bottom: 8px; }
.section-card-body p { color: #e3e5dc; margin-bottom: 20px; max-width: 420px; }

/* =========================================================
   Partner attribution banner (pagina Immobili in vendita)
   ========================================================= */
.partner-banner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  background: var(--ink);
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-m);
}
.partner-banner-media { position: relative; min-height: 320px; }
.partner-banner-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.partner-banner-body { padding: 44px 46px; color: var(--cream); display: flex; flex-direction: column; justify-content: center; }
.partner-banner-body .eyebrow { color: var(--gold-light); }
.partner-banner-body .eyebrow::before { background: var(--gold-light); }
.partner-banner-body h2 { color: var(--white); }
.partner-banner-body p { color: #cfd8d0; }
.partner-logo-row {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px;
  font-size: .82rem;
  color: #b9c3bb;
}
.partner-logo-row strong { color: var(--cream); font-family: var(--font-display); font-size: 1rem; }
.partner-banner-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Piccolo badge "in collaborazione con" riutilizzabile */
.partner-mini {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .74rem; font-weight: 600;
  color: var(--sage);
  background: var(--cream-deep);
  padding: 5px 12px;
  border-radius: 100px;
}
.partner-mini svg { width: 13px; height: 13px; }

/* =========================================================
   Unit card — immobili in vendita (Strembo, link esterno)
   ========================================================= */
.unit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.unit-card {
  background: var(--white);
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-s);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
}
.unit-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-m); }
.unit-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.unit-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.unit-card:hover .unit-media img { transform: scale(1.06); }
.unit-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--sage);
  color: var(--white);
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: 6px 12px; border-radius: 100px;
}
.unit-price-tag {
  position: absolute; bottom: 14px; left: 14px;
  background: rgba(24,38,32,.88);
  color: var(--white);
  font-weight: 700;
  padding: 7px 14px;
  border-radius: var(--radius-s);
  font-size: .95rem;
}
.unit-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.unit-body h3 { margin: 0; font-size: 1.1rem; }
.unit-loc { display: flex; align-items: center; gap: 6px; font-size: .84rem; color: var(--ink-soft); }
.unit-loc svg { width: 14px; height: 14px; color: var(--gold); flex-shrink: 0; }
.unit-feats {
  display: flex; gap: 14px; flex-wrap: wrap;
  padding-top: 12px; border-top: 1px solid var(--line);
  font-size: .8rem; color: var(--ink-soft);
}
.unit-feats span { display: flex; align-items: center; gap: 6px; }
.unit-feats svg { width: 15px; height: 15px; color: var(--sage); }
.unit-cta {
  margin-top: auto;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 16px;
  border-radius: 100px;
  background: var(--ink);
  color: var(--cream);
  font-weight: 600; font-size: .88rem;
  transition: background .2s ease;
}
.unit-cta:hover { background: var(--sage); }
.unit-cta svg { width: 15px; height: 15px; }

/* =========================================================
   Showcase card — realizzazioni (venduto), non cliccabile a scopo transazionale
   ========================================================= */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.showcase-card {
  background: var(--white);
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-s);
  transition: transform .25s ease, box-shadow .25s ease;
}
.showcase-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-m); }
.showcase-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.showcase-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.showcase-card:hover .showcase-media img { transform: scale(1.06); }
.sold-ribbon {
  position: absolute; top: 14px; left: 14px;
  background: var(--gold);
  color: var(--white);
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  padding: 6px 14px; border-radius: 100px;
  display: inline-flex; align-items: center; gap: 6px;
}
.sold-ribbon svg { width: 12px; height: 12px; }
.showcase-body { padding: 20px 22px 24px; }
.showcase-body h3 { margin: 0 0 6px; font-size: 1.1rem; }
.showcase-loc { display: flex; align-items: center; gap: 6px; font-size: .84rem; color: var(--ink-soft); margin-bottom: 14px; }
.showcase-loc svg { width: 14px; height: 14px; color: var(--gold); flex-shrink: 0; }
.showcase-feats {
  display: flex; gap: 14px; flex-wrap: wrap;
  padding-top: 12px; border-top: 1px solid var(--line);
  font-size: .8rem; color: var(--ink-soft);
}
.showcase-feats span { display: flex; align-items: center; gap: 6px; }
.showcase-feats svg { width: 15px; height: 15px; color: var(--sage); }

.placeholder-note {
  font-size: .82rem;
  color: var(--ink-soft);
  font-style: italic;
  text-align: center;
  max-width: 640px;
  margin: 40px auto 0;
}

@media (max-width: 1080px) {
  .unit-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-grid { grid-template-columns: repeat(2, 1fr); }
  .split-sections { grid-template-columns: 1fr; }
  .partner-banner { grid-template-columns: 1fr; }
  .partner-banner-media { min-height: 220px; }
}

@media (max-width: 760px) {
  .hero-portals { grid-template-columns: 1fr; }
  .unit-grid { grid-template-columns: 1fr; }
  .showcase-grid { grid-template-columns: 1fr; }
  .partner-banner-body { padding: 30px 24px; }
}

/* =========================================================
   Realizzazione — pagina singolo progetto (case study)
   ========================================================= */
.project-hero {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow-m);
}
.project-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,22,18,.05) 40%, rgba(15,22,18,.85) 100%);
}
.project-hero-body { position: relative; z-index: 1; padding: 40px; color: var(--white); }
.project-hero-body h2 { color: var(--white); font-size: 2rem; margin-bottom: 6px; }
.project-hero-body .showcase-loc { color: #e3e5dc; }
.project-hero-body .showcase-loc svg { color: var(--gold-light); }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.photo-grid-2 { grid-template-columns: repeat(2, 1fr); }
.photo-grid-label {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--sage);
  margin: 0 0 16px;
}
.photo-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-s);
}
@media (max-width: 1080px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .photo-grid { grid-template-columns: 1fr; }
  .project-hero { min-height: 320px; }
  .project-hero-body { padding: 26px; }
}

/* =========================================================
   Partner tag — badge discreto con logo, in fondo alla pagina vendita
   ========================================================= */
.partner-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 22px 28px;
  border-radius: var(--radius-m);
  background: var(--white);
  box-shadow: var(--shadow-s);
  text-align: center;
}
.partner-tag span { font-size: .88rem; color: var(--ink-soft); }
.partner-tag img { height: 28px; width: auto; }
.partner-tag a { display: inline-flex; align-items: center; }

/* =========================================================
   Contatti — metodi di contatto in evidenza
   ========================================================= */
.contact-methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.contact-tile {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border-radius: var(--radius-m);
  padding: 30px 32px;
  box-shadow: var(--shadow-s);
  transition: transform .2s ease, box-shadow .2s ease;
  min-width: 0;
}
.contact-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); }
.contact-tile-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--cream-deep);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-tile-icon svg { width: 26px; height: 26px; color: var(--sage); }
.contact-tile-label {
  display: block;
  font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--sage); margin-bottom: 4px;
}
.contact-tile-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ink);
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 0;
}

.contact-info-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.contact-info-layout .map-embed { height: 100%; min-height: 260px; }

@media (max-width: 760px) {
  .contact-methods { grid-template-columns: 1fr; }
  .contact-info-layout { grid-template-columns: 1fr; }
}

/* =========================================================
   Logo (immagine)
   ========================================================= */
.logo { display: inline-flex; flex-direction: row; align-items: center; }
.logo img { height: 58px; width: auto; display: block; }
.logo--on-dark img { height: 50px; background: var(--cream); padding: 6px 10px; border-radius: 10px; }
.footer-logo { margin-bottom: 18px; }
.footer-logo img { height: 80px; width: auto; background: var(--cream); padding: 10px 14px; border-radius: 12px; }
@media (max-width: 760px) {
  .logo img { height: 50px; }
}

/* =========================================================
   Home mobile — due bottoni quadrati in basso, foto al centro
   ========================================================= */
@media (max-width: 760px) {
  .hero { min-height: calc(100svh - 72px); align-items: stretch; }
  .hero-media::after {
    background: linear-gradient(180deg, rgba(15,22,18,.62) 0%, rgba(15,22,18,.08) 34%, rgba(15,22,18,.08) 58%, rgba(15,22,18,.88) 100%);
  }
  .hero-inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: 32px;
    padding-bottom: 24px;
  }
  .hero h1 { font-size: 2rem; margin-bottom: 10px; }
  .hero-sub { font-size: 1rem; margin-bottom: 0; }
  .hero-portals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: auto;
  }
  .portal-card {
    aspect-ratio: 1 / 1;
    min-width: 0;
    padding: 14px;
    justify-content: space-between;
    gap: 6px;
    border-radius: 20px;
  }
  .portal-card-tag { display: none; }
  .portal-card h3, .portal-card h2 { font-size: 1.05rem; line-height: 1.2; overflow-wrap: anywhere; }
  .portal-card p { font-size: .72rem; line-height: 1.3; overflow-wrap: anywhere; }
  .portal-card-arrow { margin-top: auto; padding-top: 4px; font-size: .78rem; gap: 6px; }
}

/* =========================================================
   Filigrana logo HALLS (solo foto Realizzazioni)
   ========================================================= */
.wm { position: relative; display: block; border-radius: var(--radius-m); overflow: hidden; box-shadow: var(--shadow-s); }
.photo-grid .wm img { box-shadow: none; border-radius: 0; display: block; }
.wm::after,
.project-hero--wm::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 20%;
  aspect-ratio: 320 / 291;
  transform: translate(-50%, -50%);
  background: url("../assets/img/brand/logo-halls.png") center / contain no-repeat;
  filter: brightness(0) invert(1) drop-shadow(0 1px 3px rgba(0,0,0,.3));
  opacity: .5;
  pointer-events: none;
  z-index: 1;
}
.project-hero--wm::before { width: 12%; min-width: 90px; }
@media (max-width: 760px) {
  .wm::after { width: 26%; }
  .project-hero--wm::before { width: 22%; }
}
