/* ==========================================================================
   Living Milano Immobiliare — site.css
   Brand: Gilda Display (serif) + Montserrat (sans), black/white monochrome,
   warm grey, brick-red accent (#b32805), square corners. Built from the
   Living immobiliare.pdf mockup. Pure hand-written CSS (no framework).
   ========================================================================== */

:root {
  --black: #1a1a1a;
  --ink: #111111;
  --white: #ffffff;
  --warm: #f4f2ed;          /* warm light grey */
  --charcoal: #211f1c;      /* dark cards (warm) */
  --charcoal-2: #1b1a18;
  --text: #555555;
  --muted: #999999;
  --on-dark: #ffffff;
  --on-dark-muted: rgba(255,255,255,0.66);
  --border: #e5e5e5;
  --border-dark: rgba(255,255,255,0.18);
  --accent: #b32805;        /* brick red */

  --serif: 'Gilda Display', Georgia, 'Times New Roman', serif;
  --sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --nav-h: 96px;
  --nav-h-scrolled: 64px;
  --maxw: 1240px;
  --gutter: 32px;

  --shadow-card: 0 18px 50px rgba(0,0,0,0.16);
  --shadow-soft: 0 10px 30px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { font-family: var(--serif); font-weight: 400; color: var(--black); margin: 0; line-height: 1.12; }
p { margin: 0 0 1.1em; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #8a8a8a;
  margin: 0 0 18px;
}
.eyebrow::before {
  content: ''; display: inline-block; width: 26px; height: 1px; background: var(--accent);
  vertical-align: middle; margin-right: 14px; position: relative; top: -2px;
}
.eyebrow.on-dark { color: rgba(255,255,255,0.72); }
.eyebrow.on-dark::before { background: rgba(255,255,255,0.5); }
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.center { text-align: center; }

/* Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-weight: 500; font-size: 11.5px;
  letter-spacing: 2.5px; text-transform: uppercase;
  padding: 15px 30px; border: 1px solid var(--black); background: var(--black);
  color: var(--on-dark); cursor: pointer; border-radius: 0;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { background: transparent; color: var(--black); }
.btn--ghost { background: transparent; color: var(--black); }
.btn--ghost:hover { background: var(--black); color: var(--on-dark); }
.btn--light { background: transparent; color: var(--on-dark); border-color: rgba(255,255,255,0.5); }
.btn--light:hover { background: var(--on-dark); color: var(--black); border-color: var(--on-dark); }
.btn--sm { padding: 11px 20px; font-size: 10px; letter-spacing: 2px; }

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(15,15,15,0.62);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: height .3s ease, background .3s ease;
}
.site-header.solid,
.site-header.is-scrolled {
  background: var(--black);
  height: var(--nav-h-scrolled);
  backdrop-filter: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav {
  width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
}
.nav__group { display: flex; align-items: center; gap: 30px; }
.nav__group--right { justify-content: flex-end; }
.nav__link {
  font-size: 11.5px; font-weight: 500; letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--on-dark); padding: 6px 0; position: relative; white-space: nowrap;
  opacity: .85; transition: opacity .2s ease;
}
.nav__link::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1px;
  background: var(--accent); transition: right .25s ease;
}
.nav__link:hover { opacity: 1; }
.nav__link:hover::after,
.nav__link.active::after { right: 0; }
.nav__link.active { opacity: 1; }
.nav__logo { display: flex; align-items: center; justify-content: center; }
.nav__logo img { height: 70px; width: auto; transform-origin: center; transition: height .35s cubic-bezier(.2,.6,.2,1); }
.site-header.is-scrolled .nav__logo img { height: 42px; }

/* Mobile nav */
.nav__toggle, .nav__logo-mobile { display: none; }
.mobile-drawer { display: none; }

@media (max-width: 1000px) {
  .nav { grid-template-columns: 1fr auto 1fr; }
  .nav__group { display: none; }
  .nav__toggle {
    display: inline-flex; flex-direction: column; gap: 5px; background: none; border: none;
    cursor: pointer; padding: 8px; justify-self: start;
  }
  .nav__toggle span { width: 26px; height: 2px; background: var(--on-dark); transition: .3s; }
  .nav__logo { justify-content: center; }
  .nav__logo img { height: 44px; }
  .mobile-drawer {
    display: block; position: fixed; inset: 0; z-index: 1300;
    background: var(--black); transform: translateX(-100%); transition: transform .35s ease;
    padding: 100px 32px 40px; overflow-y: auto;
  }
  .mobile-drawer.open { transform: translateX(0); }
  .mobile-drawer a {
    display: block; color: var(--on-dark); font-size: 15px; letter-spacing: 2px;
    text-transform: uppercase; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .mobile-drawer__close {
    position: absolute; top: 28px; right: 28px; background: none; border: none;
    color: var(--on-dark); font-size: 34px; cursor: pointer; line-height: 1;
  }
}

/* ==========================================================================
   HERO (home + inner page headers)
   ========================================================================== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; color: var(--on-dark); overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; }
.hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,16,12,0.10) 0%, rgba(20,15,10,0.22) 100%);
}
.hero--rail { padding-right: 250px; }
.hero__inner { position: relative; z-index: 2; max-width: 1040px; padding: 0 24px; }
.hero__title {
  font-family: var(--serif); color: var(--on-dark);
  font-size: clamp(26px, 3.6vw, 50px); line-height: 1.28; font-weight: 400; letter-spacing: .3px;
  display: inline-block; background: rgba(20,16,12,0.30); padding: 20px 40px;
}
/* Hero contact rail (PDF p2 "sidebar contatti") */
.hero__contact {
  position: absolute; top: 0; right: 0; bottom: 0; width: 250px; z-index: 3;
  background: rgba(18,18,18,0.55); backdrop-filter: blur(4px); color: var(--on-dark);
  display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 0 30px;
}
.hero__contact p { font-size: 13px; line-height: 1.55; color: rgba(255,255,255,0.82); margin: 0; }
.hero__contact a { color: rgba(255,255,255,0.82); }
.hero__contact a:hover { color: #fff; }
.hero__contact-social { display: flex; gap: 16px; margin-top: 8px; }
.hero__contact-social a { color: rgba(255,255,255,0.8); }
.hero__contact-social a:hover { color: #fff; }
.hero__contact-social svg { width: 19px; height: 19px; }
.hero__scroll {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 30px; height: 48px; border: 1px solid rgba(255,255,255,0.6); border-radius: 16px;
  display: flex; justify-content: center; padding-top: 8px;
}
.hero__scroll span { width: 3px; height: 8px; background: rgba(255,255,255,0.8); border-radius: 2px; animation: scrolldot 1.6s infinite; }
@keyframes scrolldot { 0%{opacity:0;transform:translateY(-4px)} 50%{opacity:1} 100%{opacity:0;transform:translateY(10px)} }

/* Inner page header (shorter hero with overlaid title) */
.pagehead {
  position: relative; min-height: 60vh; display: flex; align-items: flex-end;
  color: var(--on-dark); overflow: hidden;
}
.pagehead__bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; }
.pagehead__bg::after { content:''; position:absolute; inset:0; background: linear-gradient(180deg, rgba(0,0,0,0.25), rgba(0,0,0,0.65)); }
.pagehead__inner { position: relative; z-index: 2; width: 100%; padding-bottom: 56px; }
.pagehead__title { color: var(--on-dark); font-size: clamp(30px, 4vw, 48px); text-shadow: 0 2px 20px rgba(0,0,0,0.45); }
.pagehead__sub { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,255,0.92); margin-top: 10px; text-shadow: 0 1px 12px rgba(0,0,0,0.5); }
/* page with no hero needs top spacing under fixed nav */
.page-offset { padding-top: var(--nav-h); }

/* ==========================================================================
   HOME — IL NOSTRO APPROCCIO
   ========================================================================== */
.approccio { position: relative; background: #ffffff; color: var(--text); overflow: hidden; }
.approccio__bg { position: absolute; inset: 0; background-size: auto 122%; background-position: left center; background-repeat: no-repeat; opacity: .06; z-index:0; }
.approccio__photo { background:#fff; padding:10px; box-shadow: var(--shadow-card); }
.approccio__grid {
  position: relative; z-index: 2; display: grid; grid-template-columns: 1.02fr 0.98fr; align-items: center; gap: 0;
}
.approccio__photo { position: relative; z-index: 1; box-shadow: var(--shadow-card); }
.approccio__photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/4.6; }
.approccio__card {
  position: relative; z-index: 3; align-self: center;
  background: rgba(22,22,24,0.86); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  padding: 58px 52px; margin-left: -120px;
  box-shadow: 0 34px 90px rgba(0,0,0,0.30);
}
.approccio__card h2 { color: var(--on-dark); font-size: clamp(26px,2.6vw,36px); margin-bottom: 22px; }
.approccio__card p { color: var(--on-dark-muted); font-size: 15px; }
.approccio__card .btn { margin-top: 18px; }

/* ==========================================================================
   HOME — LE NOSTRE PROPOSTE
   ========================================================================== */
.proposte__head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-bottom: 48px; }
.proposte__intro h2 { font-size: clamp(28px,3vw,40px); margin-bottom: 20px; }
.proposte__cta { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.proposte__lead { aspect-ratio: 16/11; overflow: hidden; }
.proposte__lead img { width:100%; height:100%; object-fit: cover; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery figure { margin: 0; overflow: hidden; aspect-ratio: 4/3; }
.gallery img { width:100%; height:100%; object-fit: cover; transition: transform .6s ease; }
.gallery figure:hover img { transform: scale(1.05); }

/* ==========================================================================
   TESTIMONIAL — DICONO DI NOI
   ========================================================================== */
.testi { background: var(--warm); text-align: center; }
.testi__wrap { position: relative; max-width: 880px; margin: 0 auto; padding: 0 60px; }
.testi__quote { font-family: var(--serif); font-size: clamp(20px,2.2vw,30px); color: var(--black); max-width: 760px; margin: 22px auto 26px; line-height: 1.4; }
.testi__stars { color: var(--black); letter-spacing: 7px; font-size: 16px; margin-bottom: 18px; }
.testi__name { font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; font-size: 13px; color: var(--black); }
.testi__date { font-size: 12px; color: var(--muted); margin-top: 4px; }
.testi__arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border: 1px solid var(--black); background: transparent; cursor: pointer; font-size: 18px; transition: .2s; display:flex;align-items:center;justify-content:center; z-index:2; }
.testi__arrow:hover { background: var(--black); color: var(--on-dark); }
.testi__arrow.prev { left: 0; }
.testi__arrow.next { right: 0; }
.testi__item { display: none; }
.testi__item.active { display: block; animation: fade .4s ease; }
@media (max-width: 600px) { .testi__wrap { padding: 0 44px; } .testi__arrow { width: 38px; height: 38px; font-size: 16px; } }
@keyframes fade { from{opacity:0} to{opacity:1} }

/* ==========================================================================
   FILTER BAR (vendita / affitto / my-living)
   ========================================================================== */
.filterbar { background: var(--white); box-shadow: var(--shadow-card); max-width: 920px; margin: -56px auto 0; position: relative; z-index: 5; padding: 26px 28px; }
.filterbar__toggles { display: flex; gap: 0; justify-content: center; margin-bottom: 22px; }
.toggle {
  flex: 0 0 auto; min-width: 150px; text-align: center; padding: 13px 26px; cursor: pointer;
  font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  border: 1px solid var(--black); background: var(--white); color: var(--black); margin-left: -1px;
  transition: .2s;
}
.toggle:first-child { margin-left: 0; }
.toggle.active, .toggle:hover { background: var(--black); color: var(--on-dark); }
.filterbar__row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: end; }
.field label { display:block; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.field select, .field input {
  width: 100%; border: none; border-bottom: 1px solid var(--black); background: transparent;
  padding: 10px 2px; font-family: var(--sans); font-size: 13px; color: var(--black); border-radius: 0;
  -webkit-appearance: none; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%231a1a1a'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 4px center;
}
.field input { background-image: none; cursor: text; }

/* ==========================================================================
   LISTING ROWS (vendita / affitto)
   ========================================================================== */
.listings { display: flex; flex-direction: column; gap: 88px; }
.listing { position: relative; display: block; }
.listing__media { position: relative; width: 64%; aspect-ratio: 16/10; overflow: hidden; box-shadow: var(--shadow-card); }
.listing:nth-child(even) .listing__media { margin-left: auto; }
.listing__media img { width: 100%; height: 100%; object-fit: cover; }
.listing__sold {
  position: absolute; top: 24px; left: 24px;
  background: rgba(255,255,255,0.96); color: var(--black); padding: 10px 26px;
  font-size: 12px; font-weight: 600; letter-spacing: 4px; text-transform: uppercase; z-index: 4;
}
.listing__card {
  position: absolute; top: 50%; transform: translateY(-50%); right: 0; width: 46%; z-index: 3;
  background: rgba(22,22,24,0.93); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  color: var(--on-dark); padding: 42px 40px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.34);
}
.listing:nth-child(even) .listing__card { right: auto; left: 0; }
.listing__title { font-family: var(--serif); font-size: 21px; color: var(--on-dark); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 1px; }
.listing__addr { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 22px; }
.listing__specs { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px 18px; margin-bottom: 24px; }
.spec { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--on-dark); }
.spec svg { width: 18px; height: 18px; flex-shrink: 0; stroke: rgba(255,255,255,0.7); }
.listing__card .btn { width: 100%; }

@media (max-width: 820px) {
  .listing__media, .listing:nth-child(even) .listing__media { width: 100%; margin: 0; }
  .listing__card, .listing:nth-child(even) .listing__card { position: static; transform: none; width: 100%; max-width: 100%; right:auto; left:auto; }
}

/* ==========================================================================
   MY LIVING — development projects
   ========================================================================== */
.projects { display: flex; flex-direction: column; gap: 48px; }
.project { position: relative; padding: 44px 0; margin-bottom: 40px; overflow: hidden; }
.project__bgimg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .12; filter: grayscale(1); z-index: 0; }
.project__bar { position: relative; z-index: 2; text-align: center; background: transparent; padding: 0 0 34px; }
.project__bar h3 { color: var(--black); font-family: var(--serif); font-weight: 400; font-size: clamp(22px,2.4vw,30px); }
.project__bar .place { display: block; color: var(--muted); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; margin-top: 8px; }
.project__body { position: relative; z-index: 2; display: block; }
.project__img { position: relative; width: 62%; aspect-ratio: 16/10; overflow: hidden; box-shadow: var(--shadow-card); }
.project--rev .project__img { margin-left: auto; }
.project__img img { width: 100%; height: 100%; object-fit: cover; }
.project__units {
  position: absolute; top: 50%; transform: translateY(-50%); right: 0; width: 44%; z-index: 3;
  background: rgba(22,22,24,0.94); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.34);
  display: flex; flex-direction: column; justify-content: center;
}
.project--rev .project__units { right: auto; left: 0; }
.unit { color: var(--on-dark); padding: 18px 26px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.unit:last-child { border-bottom: none; }
.unit__icon { width: 30px; height: 22px; stroke: rgba(255,255,255,0.75); fill: none; flex-shrink: 0; }
.unit__info .s { display: block; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600; }
.unit__info .s.disp { color: #ffffff; }
.unit__info .s.sold { color: rgba(255,255,255,0.45); }
.unit__info .l { font-size: 12px; color: rgba(255,255,255,0.7); margin-top: 3px; }
.unit__btn { font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; border: 1px solid rgba(255,255,255,0.45); color: #fff; padding: 9px 14px; white-space: nowrap; transition: .2s; }
.unit__btn:hover { background: #fff; color: var(--black); }
/* Zig-zag: alternate projects render side (My_Living_Vers2) */
@media (max-width: 820px) {
  .project__img, .project--rev .project__img { width: 100%; margin: 0; }
  .project__units, .project--rev .project__units { position: static; transform: none; width: 100%; right: auto; left: auto; }
}

/* ==========================================================================
   SCHEDA APPARTAMENTO (property detail)
   ========================================================================== */
/* Listing detail: faded terracotta-building backdrop spans the FULL-WIDTH section,
   visible in the page margins around a centered white content card (matches mockup). */
.scheda-body { position: relative; overflow: hidden; background-color: #ece6dd; }
.scheda-body::before { content: ''; position: absolute; inset: 0; z-index: 0;
  background: url('img/scheda-bg.jpg') center 30% / cover no-repeat;
  filter: grayscale(1) contrast(1.04); opacity: .2; }
.scheda-body > .container { position: relative; z-index: 1; max-width: 1060px; }
.scheda__main { background: #ffffff; padding: 40px 42px; box-shadow: var(--shadow-card); }
.scheda { display: grid; grid-template-columns: 1.7fr 0.82fr; gap: 60px; align-items: start; }
.scheda__block { margin-bottom: 34px; }
.scheda__block h3 { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--black); margin-bottom: 12px; font-family: var(--sans); font-weight: 600; }
.scheda__block h3 .ref { color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 11px; }
.scheda__price { font-family: var(--serif); font-size: 32px; color: var(--black); margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--border); }
.scheda__map { margin-top: 28px; background: #e7e2da; min-height: 320px; box-shadow: var(--shadow-soft); }
.scheda__map iframe { width: 100%; height: 340px; border: 0; display: block; filter: grayscale(1) contrast(1.05); }
.scheda__side { background: var(--charcoal); color: var(--on-dark); padding: 34px 30px; position: sticky; top: 90px; }
.scheda__side h3 { color: var(--on-dark); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; font-family: var(--sans); font-weight: 600; margin-bottom: 20px; }
.scheda__dl { display: flex; flex-direction: column; gap: 0; margin-bottom: 26px; }
.scheda__dl > div { padding: 4px 0; font-size: 12.5px; }
.scheda__dl > div.gap { margin-top: 14px; }
.scheda__dl .k { color: var(--on-dark-muted); letter-spacing: .5px; }
.scheda__dl .k::after { content: ':\00a0'; }
.scheda__dl .v { color: var(--on-dark); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.scheda__feats { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-direction: column; gap: 11px; }
.scheda__feats li { display: flex; align-items: center; gap: 12px; font-size: 13px; letter-spacing: .5px; color: var(--on-dark); }
.scheda__feats li::before { content: '\25C6'; color: rgba(255,255,255,0.55); font-size: 9px; flex-shrink: 0; }
.scheda__actions { display: flex; flex-direction: column; gap: 12px; }
.scheda__actions .btn { width: 100%; }
@media (max-width: 900px) { .scheda { grid-template-columns: 1fr; } .scheda__side { position: static; } }

/* Static map block */
.mapblock { margin-top: 56px; }
.mapblock img { width: 100%; height: 360px; object-fit: cover; filter: grayscale(1) contrast(1.05); }

/* ==========================================================================
   MODALS (planimetria + contattaci)
   ========================================================================== */
.modal { position: fixed; inset: 0; z-index: 1100; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal.open { display: flex; animation: fade .25s ease; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(10,10,10,0.78); }
.modal__box { position: relative; z-index: 2; background: var(--white); max-width: 560px; width: 100%; max-height: 88vh; overflow: auto; padding: 0; }
.modal__box--plan { background: var(--white); max-width: 620px; padding: 24px; }
.modal__box--dark { background: var(--charcoal); color: var(--on-dark); padding: 40px 38px; }
.modal__close { position: absolute; top: 12px; right: 14px; z-index: 5; background: none; border: none; font-size: 28px; line-height: 1; cursor: pointer; color: var(--black); }
.modal__box--dark .modal__close { color: var(--on-dark); }
.modal__box--dark h3 { color: var(--on-dark); font-size: 24px; margin-bottom: 6px; }
.modal__box--dark .eyebrow { color: var(--accent); }

/* ==========================================================================
   FORMS (valuta + contattaci) — underline style
   ========================================================================== */
.form { max-width: 720px; margin: 0 auto; }
.form__grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
.form__field label { display: block; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--black); margin-bottom: 8px; font-weight: 500; }
.form__field input, .form__field textarea, .form__field select {
  width: 100%; border: none; border-bottom: 1px solid #cfcfcf; background: transparent; border-radius: 0;
  padding: 8px 2px; font-family: var(--sans); font-size: 15px; font-weight: 300; color: var(--black);
}
.form__field input:focus, .form__field textarea:focus, .form__field select:focus { outline: none; border-bottom-color: var(--accent); }
.form .privacy { font-size: 12px; color: var(--muted); margin: 26px 0 18px; }
.form .privacy a { color: var(--accent); text-decoration: underline; }
.form .req { font-size: 11px; color: var(--muted); margin-top: 16px; }
.modal__box--dark .form__field label { color: var(--on-dark); }
.modal__box--dark .form__field input, .modal__box--dark .form__field textarea { color: var(--on-dark); border-bottom-color: rgba(255,255,255,0.3); }

/* ==========================================================================
   MAPPA (leaflet)
   ========================================================================== */
#map { width: 100%; height: 620px; background: #e9e9e9; }
.leaflet-container { font-family: var(--sans); }
.lm-pin {
  background: var(--black); width: 26px; height: 26px; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg); border: 2px solid #fff; box-shadow: 0 3px 8px rgba(0,0,0,0.35);
}
.map-popup { width: 230px; }
.map-popup img { width: 100%; height: 120px; object-fit: cover; }
.map-popup__body { background: var(--charcoal); color: var(--on-dark); padding: 14px 16px; }
.map-popup__title { font-family: var(--serif); font-size: 15px; color: var(--on-dark); margin-bottom: 4px; }
.map-popup__addr { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 10px; }
.map-popup__price { font-size: 14px; font-weight: 600; }
.leaflet-popup-content-wrapper { border-radius: 0; padding: 0; }
.leaflet-popup-content { margin: 0; }
.map-grey .leaflet-tile { filter: grayscale(1) contrast(1.02); }

/* ==========================================================================
   BLOG
   ========================================================================== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.post-card { background: var(--white); border: 1px solid var(--border); display: flex; flex-direction: column; transition: box-shadow .25s ease, transform .25s ease; }
.post-card:hover { box-shadow: var(--shadow-card); transform: translateY(-4px); }
.post-card__media { aspect-ratio: 16/10; overflow: hidden; }
.post-card__media img { width:100%; height:100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__body { padding: 26px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.post-card__date { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.post-card__title { font-size: 21px; margin-bottom: 12px; line-height: 1.25; }
.post-card__excerpt { font-size: 14px; color: var(--text); flex: 1; }
.post-card__more { margin-top: 18px; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; font-weight: 600; color: var(--black); }
.post-card__more::after { content: ' →'; color: var(--accent); }

/* Article body */
.article { max-width: 760px; margin: 0 auto; }
.article p { font-size: 16px; line-height: 1.8; color: #444; }
.article h2 { font-size: 28px; margin: 44px 0 16px; }
.article h3 { font-size: 21px; margin: 30px 0 12px; }
.article ul { padding-left: 20px; color: #444; line-height: 1.8; }
.article li { margin-bottom: 8px; }
.article__meta { text-align: center; margin-bottom: 10px; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.article__back { display:inline-block; margin-top: 40px; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; font-weight: 600; }
.article__back::before { content: '← '; color: var(--accent); }

/* ==========================================================================
   CHI SIAMO — team feature blocks
   ========================================================================== */
.intro-block { max-width: 820px; margin: 0 auto 10px; text-align: center; }
.intro-block h2 { font-size: clamp(28px,3vw,40px); margin-bottom: 22px; }
.bio { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 0; margin-bottom: 56px; }
.bio--rev .bio__photo { order: 2; }
.bio--rev .bio__card { order: 1; margin-left: 0; margin-right: -110px; }
.bio__photo { position: relative; z-index: 1; overflow: hidden; box-shadow: var(--shadow-card); }
.bio__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; aspect-ratio: 4/5; }
.bio__card {
  position: relative; z-index: 3; align-self: center;
  background: rgba(22,22,24,0.88); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  color: var(--on-dark); padding: 54px 50px; display: flex; flex-direction: column; justify-content: center;
  margin-left: -110px;
}
.bio__card h3 { color: var(--on-dark); font-size: 28px; margin-bottom: 6px; }
.bio__role { color: rgba(255,255,255,0.58); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 22px; }
.bio__card p { color: var(--on-dark-muted); font-size: 14.5px; }
.bio__save { margin-top: 26px; color: rgba(255,255,255,0.5); display: inline-flex; }
@media (max-width: 820px) {
  .bio { grid-template-columns: 1fr; }
  .bio__card, .bio--rev .bio__card { margin: 0; }
  .bio--rev .bio__photo { order: 0; }
  .bio--rev .bio__card { order: 0; }
}

/* Chi siamo — dark intro panel over faded interior */
.chisiamo-intro { position: relative; overflow: hidden; padding: calc(var(--nav-h) + 76px) 0 84px; background: #101011; }
.chisiamo-intro__bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .30; filter: grayscale(.25); z-index: 0; }
.chisiamo-intro__bg::after { content:''; position:absolute; inset:0;
  background: linear-gradient(90deg, rgba(15,15,16,0.94) 0%, rgba(15,15,16,0.6) 52%, rgba(15,15,16,0.18) 100%); }
.chisiamo-intro .container { position: relative; z-index: 2; }
.chisiamo-intro__panel { max-width: 580px; background: rgba(20,20,22,0.78); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); padding: 52px 48px; box-shadow: 0 34px 90px rgba(0,0,0,0.42); }
.chisiamo-intro__panel h1 { color: var(--on-dark); font-size: clamp(28px,3.2vw,42px); margin-bottom: 20px; line-height: 1.18; }
.chisiamo-intro__panel p { color: var(--on-dark-muted); font-size: 15px; }

/* Bios section — palazzo watermark behind */
.bios { position: relative; overflow: hidden; }
.bios__bg { position: absolute; inset: 0; background-size: auto 116%; background-position: right -60px center; background-repeat: no-repeat; opacity: .05; z-index: 0; }
.bios .container { position: relative; z-index: 2; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--black); color: var(--on-dark); padding: 72px 0 0; }
.footer__grid { display: grid; grid-template-columns: 1fr 1fr auto; gap: 40px; padding-bottom: 56px; }
.footer__col h4 { color: var(--on-dark); font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 1px; margin-bottom: 16px; }
.footer__col a, .footer__col p { display: block; color: var(--on-dark-muted); font-size: 14px; margin-bottom: 10px; transition: color .2s; }
.footer__col a:hover { color: var(--on-dark); }
.footer__links a { font-weight: 600; color: var(--on-dark); margin-bottom: 18px; }
.footer__logo { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.footer__logo img { height: 96px; }
.footer__logo span { font-size: 11px; color: var(--on-dark-muted); letter-spacing: .5px; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.12); padding: 22px 0; display: flex; align-items: center;
  justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.footer__legal a { color: var(--on-dark-muted); font-size: 12px; margin-right: 14px; }
.footer__legal a:hover { color: var(--on-dark); }
.footer__social { display: flex; gap: 14px; align-items: center; }
.footer__social a { color: var(--on-dark-muted); transition: color .2s; }
.footer__social a:hover { color: var(--on-dark); }
.footer__social svg { width: 20px; height: 20px; }
.to-top {
  position: fixed; right: 28px; bottom: 96px; z-index: 850; width: 46px; height: 46px;
  background: rgba(26,26,26,0.9); color: #fff; border: 1px solid rgba(255,255,255,0.25);
  display: none; align-items: center; justify-content: center; cursor: pointer; transition: .2s;
}
.to-top.show { display: flex; }
.to-top:hover { background: var(--accent); border-color: var(--accent); }
@media (max-width: 820px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__logo { grid-column: 1 / -1; align-items: flex-start; }
}

/* ==========================================================================
   RESPONSIVE general
   ========================================================================== */
@media (max-width: 980px) {
  .approccio__grid { grid-template-columns: 1fr; }
  .approccio__card { margin-left: 0; }
  .approccio__photo img { aspect-ratio: auto; height: auto; }
  .proposte__head { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .section { padding: 64px 0; }
  .gallery, .blog-grid { grid-template-columns: 1fr; }
  .filterbar { margin-top: -36px; padding: 20px 16px; }
  .filterbar__row { grid-template-columns: 1fr; }
  .filterbar__toggles { width: 100%; }
  .toggle { flex: 1 1 0; min-width: 0; padding: 11px 6px; font-size: 10px; letter-spacing: 1px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__logo { align-items: flex-start; }
  .scheda__dl .v { font-size: 12px; }
}

/* ==========================================================================
   PDF-ACCURACY ADDITIONS
   ========================================================================== */

/* LE NOSTRE PROPOSTE — dark section, white text card + interior collage (PDF p3-4) */
.proposte2 { position: relative; background: var(--charcoal-2); color: var(--on-dark); overflow: hidden; }
.proposte2__bg { position: absolute; inset: 0; background-size: auto 122%; background-position: right center; background-repeat: no-repeat; opacity: .10; filter: invert(1); z-index: 0; }

/* Palazzo watermark behind card sections ("palazzo in trasparenza dietro le schede") */
.section--palazzo { position: relative; overflow: hidden; }
.section--palazzo::before {
  content: ''; position: absolute; inset: -6% 0; z-index: 0; pointer-events: none;
  background: url('img/palazzo.svg') center top / auto 108% repeat-x; opacity: .05;
}
.section--palazzo > .container { position: relative; z-index: 1; }
.proposte2__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 0.92fr 1.08fr; align-items: center; }
.proposte2__card {
  position: relative; z-index: 3; margin-right: -56px; align-self: center;
  background: rgba(247,246,243,0.93); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  color: var(--text); padding: 58px 50px; display: flex; flex-direction: column; justify-content: center;
  box-shadow: 0 34px 90px rgba(0,0,0,0.34);
}
.proposte2__media { position: relative; z-index: 1; }
.proposte2__card h2 { font-size: clamp(26px,2.6vw,38px); margin-bottom: 18px; }
.proposte2__cta { display: flex; gap: 14px; margin-top: 24px; flex-wrap: wrap; }
.proposte2__media { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 28px; align-content: center; }
.proposte2__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.proposte2__media .big { grid-column: 1 / -1; aspect-ratio: 16/8; }
.proposte2__media .sq { aspect-ratio: 4/3; }
@media (max-width: 900px) {
  .proposte2__grid { grid-template-columns: 1fr; }
  .proposte2__card { padding: 44px 24px; }
  .proposte2__media { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
  .proposte2__media .big, .proposte2__media .sq { grid-column: auto; aspect-ratio: 16/10; }
}

/* centered pagehead title (scheda address) */
.pagehead--center .pagehead__inner { text-align: center; }

/* scheda hero gallery arrows */
.pagehead__arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,0.6); background: rgba(0,0,0,0.22); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 20px; transition: .2s; }
.pagehead__arrow:hover { background: #fff; color: var(--black); }
.pagehead__arrow.prev { left: 18px; }
.pagehead__arrow.next { right: 18px; }

/* Chi Siamo two-column intro (PDF p20) */
.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-intro__text h2 { font-size: clamp(28px,3vw,40px); margin-bottom: 20px; }
.about-intro__photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 5/4; }
@media (max-width: 820px) { .about-intro { grid-template-columns: 1fr; gap: 30px; } }

/* Hero contact rail responsive */
@media (max-width: 900px) {
  .hero--rail { padding-right: 0; }
  .hero__contact { display: none; }
}

/* Mappa pin — white house glyph inside the teardrop */
.lm-pin { display: flex; align-items: center; justify-content: center; }
.lm-pin svg { transform: rotate(45deg); width: 12px; height: 12px; stroke: #fff; fill: none; }

/* ==========================================================================
   v3 — DYNAMIC & AESTHETIC LAYER
   ========================================================================== */

/* utility */
.no-scroll { overflow: hidden; }
body.panel-open .to-top { opacity: 0; pointer-events: none; }

/* Nav legibility over bright hero */
.site-header:not(.solid):not(.is-scrolled) .nav__link { text-shadow: 0 1px 10px rgba(0,0,0,0.55); }
.site-header:not(.solid):not(.is-scrolled) .nav__logo img,
.site-header:not(.solid):not(.is-scrolled) .nav__toggle span { filter: drop-shadow(0 1px 6px rgba(0,0,0,0.4)); }

/* Focus-visible (keyboard) */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, .toggle:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}

/* Editorial colour grade — hero/people-welcome + blog images stay warm colour */
.post-card__media img, .about-intro__photo img {
  filter: saturate(0.95) contrast(1.03);
}
/* Rollover: B&W -> colour on hover. Scope = approccio team photo + chi-siamo bios ONLY.
   Proposte interiors and all listing/scheda/my-living property photos stay FULL COLOUR. */
.bio__photo img, .approccio__photo img {
  filter: grayscale(1) saturate(1.03) contrast(1.03);
  transition: filter 1.2s ease-in-out, transform 1.3s cubic-bezier(.2,.6,.2,1);
}
.bio:hover .bio__photo img,
.approccio__photo:hover img {
  filter: grayscale(0) saturate(1.03) contrast(1.03);
}
.proposte2__media img { filter: saturate(1.02) contrast(1.02); }
.bio:hover .bio__photo img { transform: scale(1.03); }

/* Button motion */
.btn { transition: background .25s cubic-bezier(.2,.6,.2,1), color .25s ease, border-color .25s ease, transform .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Hover / elevation */
.gallery figure:hover img { transform: scale(1.03); }
.listing__media img { transition: transform .7s cubic-bezier(.2,.6,.2,1), filter .55s ease; }
.listing:hover .listing__media img { transform: scale(1.03); }
.listing__card { transition: transform .35s cubic-bezier(.2,.6,.2,1), box-shadow .35s ease; }
.listing:hover .listing__card { transform: translateY(-50%) translateX(-4px); box-shadow: 0 34px 80px -22px rgba(0,0,0,0.55); }
@media (max-width: 820px) { .listing:hover .listing__card { transform: none; } }
.project__img img { transition: transform .7s cubic-bezier(.2,.6,.2,1), filter .55s ease; }
.project:hover .project__img img { transform: scale(1.03); }
.bio__card, .approccio__card { box-shadow: 0 30px 70px -24px rgba(0,0,0,0.45); }

/* Scroll-reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.6,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* Hero slideshow (home) */
.hero__slideshow { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.2s ease; }
.hero__slide.active { opacity: 1; }
.hero__slide.kb { animation: kenburns 8s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.0); } to { transform: scale(1.09); } }
/* Single-image hero — slow continuous Ken Burns (no crossfade) */
.hero__kb { position: absolute; inset: 0; background-size: cover; background-position: center 42%; z-index: 0; transform-origin: 50% 45%; animation: kenburns-loop 44s ease-in-out infinite alternate; will-change: transform; }
/* Optional A/B hero video (storytelling vs prodotto) — injected by index.html when configured */
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
@keyframes kenburns-loop { from { transform: scale(1.0); } to { transform: scale(1.1); } }
.hero__scrim { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(14,11,8,0.34) 0%, rgba(14,11,8,0.20) 42%, rgba(12,9,7,0.66) 100%),
              linear-gradient(0deg, rgba(120,55,20,0.18), rgba(120,55,20,0) 50%); }
.hero__inner { z-index: 2; }
.hero__scroll { z-index: 2; }
.hero__title { opacity: 0; transform: translateY(18px); }
.hero.is-ready .hero__title { opacity: 1; transform: none; transition: opacity .9s ease .25s, transform .9s cubic-bezier(.2,.6,.2,1) .25s; }

/* CONTACT FLYOUT — right-edge tab */
.contact-tab {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 880;
  background: var(--black); color: #fff; border: none; cursor: pointer; padding: 16px 10px;
  writing-mode: vertical-rl; text-orientation: mixed; font-family: var(--sans); font-weight: 600;
  font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; box-shadow: -6px 0 22px rgba(0,0,0,0.18);
  transition: background .2s ease, padding .2s ease;
}
.contact-tab span { display: inline-block; transform: rotate(180deg); }
.contact-tab:hover { background: var(--accent); padding-right: 14px; }
.contact-backdrop { position: fixed; inset: 0; background: rgba(10,10,10,0.5); z-index: 1190; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s; }
.contact-backdrop.open { opacity: 1; visibility: visible; }
.contact-panel {
  position: fixed; top: 0; right: 0; bottom: 0; width: 380px; max-width: 88vw; z-index: 1200;
  background: var(--charcoal); color: var(--on-dark); padding: 64px 40px 40px;
  transform: translateX(100%); transition: transform .4s cubic-bezier(.2,.7,.2,1);
  display: flex; flex-direction: column; gap: 4px; overflow-y: auto;
}
.contact-panel.open { transform: translateX(0); }
.contact-panel__close { position: absolute; top: 18px; right: 20px; background: none; border: none; color: var(--on-dark); font-size: 30px; line-height: 1; cursor: pointer; opacity: .8; }
.contact-panel__close:hover { opacity: 1; }
.contact-panel__title { color: var(--on-dark); font-size: 27px; margin-bottom: 24px; }
.contact-panel__block { margin-bottom: 20px; }
.contact-panel__lbl { display: block; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; font-weight: 600; }
.contact-panel__block p { color: rgba(255,255,255,0.82); font-size: 14px; line-height: 1.6; margin: 0; }
.contact-panel__block a { color: rgba(255,255,255,0.82); }
.contact-panel__block a:hover { color: #fff; }
.contact-panel__actions { display: flex; flex-direction: column; gap: 12px; margin: 18px 0 26px; }
.contact-panel__actions .btn { width: 100%; }
.contact-panel__actions .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.5); }
.contact-panel__actions .btn--ghost:hover { background: #fff; color: var(--black); }
.contact-panel__social { display: flex; gap: 16px; margin-top: auto; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12); }
.contact-panel__social a { color: rgba(255,255,255,0.72); }
.contact-panel__social a:hover { color: #fff; }
.contact-panel__social svg { width: 20px; height: 20px; }
@media (max-width: 820px) { .contact-tab { display: none; } }

/* Testimonial dots */
.testi__dots { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.testi__dot { width: 9px; height: 9px; border: 1px solid var(--black); background: transparent; cursor: pointer; padding: 0; transition: background .2s ease; }
.testi__dot.active { background: var(--black); }

/* Stats strip */
.stats { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { text-align: center; padding: 56px 20px; border-left: 1px solid var(--border); }
.stat:first-child { border-left: none; }
.stat__num { font-family: var(--serif); font-size: clamp(34px, 4vw, 54px); color: var(--black); line-height: 1; }
.stat__lbl { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-top: 12px; }
@media (max-width: 700px) { .stats__grid { grid-template-columns: 1fr 1fr; } .stat:nth-child(3) { border-left: none; } .stat { padding: 40px 16px; } }

/* CTA band */
.cta-band { position: relative; background: var(--charcoal-2); color: var(--on-dark); overflow: hidden; }
.cta-band__bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .14; filter: grayscale(1); }
.cta-band__inner { position: relative; z-index: 2; text-align: center; max-width: 720px; margin: 0 auto; padding: 0 24px; }
.cta-band h2 { color: var(--on-dark); font-size: clamp(28px,3.2vw,44px); margin-bottom: 18px; }
.cta-band p { color: rgba(255,255,255,0.72); margin-bottom: 30px; }
.cta-band__btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-band__btns .btn--light { color: #fff; border-color: rgba(255,255,255,0.55); }
.cta-band__btns .btn--light:hover { background: #fff; color: var(--black); }

/* Section head row (home blog teaser) */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; flex-wrap: wrap; gap: 16px; }
.section-head__link { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; font-weight: 600; }
.section-head__link::after { content: ' \2192'; color: var(--accent); }

/* Scheda price block + mobile bar */
.scheda__sideprice { background: transparent; color: #fff; padding: 0 0 22px; margin: 0 0 24px; border-bottom: 1px solid rgba(255,255,255,0.14); }
.scheda__sideprice .lbl { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.scheda__sideprice .val { font-family: var(--serif); font-size: 30px; line-height: 1.1; margin-top: 6px; }
.scheda-mobilebar { display: none; }
@media (max-width: 900px) {
  .scheda-mobilebar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 870;
    background: var(--black); color: #fff; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; box-shadow: 0 -6px 24px rgba(0,0,0,0.2); }
  .scheda-mobilebar .p { font-family: var(--serif); font-size: 18px; }
  .scheda-mobilebar .btn { padding: 12px 20px; }
}

/* Listings empty state */
.listings__empty { text-align: center; color: var(--muted); padding: 60px 0; font-size: 15px; display: none; }
.listings__empty.show { display: block; }

/* Map pin motion */
@keyframes pin-drop { 0% { opacity: 0; transform: translateY(-14px) rotate(-45deg); } 100% { opacity: 1; transform: translateY(0) rotate(-45deg); } }
.lm-pin { animation: pin-drop .45s cubic-bezier(.2,.7,.3,1) both; transition: background .2s ease; }
.lm-pin:hover { background: var(--accent); }
.leaflet-popup { animation: popfade .25s ease; }
@keyframes popfade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* Mobile menu — hamburger to X + staggered links */
.nav__toggle span { transition: transform .3s ease, opacity .2s ease; }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-drawer__nav a { opacity: 0; transform: translateX(-18px); transition: opacity .3s ease, transform .35s cubic-bezier(.2,.6,.2,1); }
.mobile-drawer.open .mobile-drawer__nav a { opacity: 1; transform: none; }
.mobile-drawer.open .mobile-drawer__nav a:nth-child(1) { transition-delay: .08s; }
.mobile-drawer.open .mobile-drawer__nav a:nth-child(2) { transition-delay: .13s; }
.mobile-drawer.open .mobile-drawer__nav a:nth-child(3) { transition-delay: .18s; }
.mobile-drawer.open .mobile-drawer__nav a:nth-child(4) { transition-delay: .23s; }
.mobile-drawer.open .mobile-drawer__nav a:nth-child(5) { transition-delay: .28s; }
.mobile-drawer.open .mobile-drawer__nav a:nth-child(6) { transition-delay: .33s; }
.mobile-drawer.open .mobile-drawer__nav a:nth-child(7) { transition-delay: .38s; }
.mobile-drawer.open .mobile-drawer__nav a:nth-child(8) { transition-delay: .43s; }

/* Footer signature */
.footer__signature { font-family: var(--serif); color: rgba(255,255,255,0.5); font-size: 18px; padding: 8px 0 28px; margin: 0; }

/* Visually hidden — read by screen readers + search engines, not shown */
.visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero__title { opacity: 1 !important; transform: none !important; }
  .hero__slide.kb, .hero__kb { animation: none !important; }
}
