/* ==========================================================================
   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);
  --lime: #00b341;
}

* { 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; justify-content: flex-end; }
.nav__group--right { justify-content: flex-start; }
.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__lang { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.55); font-family: var(--sans); font-weight: 600; padding: 4px 8px; border: 1px solid rgba(255,255,255,0.28); border-radius: 2px; transition: color .2s, border-color .2s; text-decoration: none; margin-left: 8px; }
.nav__lang:hover { color: #fff; border-color: rgba(255,255,255,0.7); }
.site-header.is-scrolled .nav__lang { color: rgba(22,22,24,0.55); border-color: rgba(22,22,24,0.28); }
.site-header.is-scrolled .nav__lang:hover { color: var(--black); border-color: var(--black); }
.nav__link--lang { font-size: 11px; letter-spacing: 2px; color: rgba(255,255,255,0.55); }
.nav__proj { font-family: var(--serif); font-style: italic; text-transform: lowercase; font-size: 0.9em; color: var(--lime); letter-spacing: 0; }
.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; background-color: #100f0c;
}
.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: 50px; left: 50%; transform: translateX(-50%); z-index: 3;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.48); animation: hero-scroll-float 2.4s ease-in-out infinite;
}
.hero__scroll:hover { color: rgba(255,255,255,0.9); }
.hero__scroll svg { width: 22px; height: 11px; }
@keyframes hero-scroll-float {
  0%,100% { transform: translateX(-50%) translateY(0); opacity: 0.48; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 0.9; }
}

/* Inner page header (shorter hero with overlaid title) */
.pagehead {
  position: relative; min-height: 80vh; display: flex; align-items: flex-end;
  color: var(--on-dark);
}
.pagehead__bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; transition: opacity 2.5s ease; }
.pagehead__bg::after { content:''; position:absolute; inset:0; background: linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.45)); }
.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); }
/* Imageless article header (blog single) — dark bar so the white title stays readable. */
.pagehead--plain { background: var(--charcoal); min-height: 38vh; }
.pagehead--plain .pagehead__title { text-shadow: none; }
/* Mobile listing card: show the via as the title and the zone on the line below. */
.listing__title--mobile, .listing__addr--mobile { display: none; }
@media (max-width: 767px) {
  .listing__card > .listing__title:not(.listing__title--mobile),
  .listing__card > .listing__addr:not(.listing__addr--mobile) { display: none; }
  .listing__title--mobile, .listing__addr--mobile { display: block; }
}
.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); }
.pagehead__ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.pagehead__price { font-family: var(--serif); font-size: clamp(22px,2.6vw,34px); color: var(--on-dark); margin-top: 14px; 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: 0; }
.listing { position: relative; display: block; padding: 72px 0; }
.listing__media { position: relative; width: 64%; aspect-ratio: 4/3; 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; object-position: center 25%; }
.listing__sold {
  position: absolute; top: 24px; left: 24px;
  background: var(--accent); color: #fff; 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%; }
.listing::before {
  content: ''; position: absolute; z-index: 0;
  top: 0; bottom: 0;
  left: calc(50% - 50vw); width: 100vw;
  background-image: linear-gradient(rgba(245,241,236,0.87), rgba(245,241,236,0.87)),
                    var(--lm-bg-url, url('img/palazzo-bg-1.jpg'));
  background-size: auto, cover;
  background-position: center, center;
  background-repeat: no-repeat;
}
.listing--dark::before {
  background-image: linear-gradient(rgba(22,22,24,0.89), rgba(22,22,24,0.89)),
                    var(--lm-bg-url, url('img/palazzo-bg-1.jpg'));
  background-size: auto, cover;
  background-position: center, center;
  background-repeat: no-repeat;
}
.listing__media { z-index: 1; }

@media (max-width: 820px) {
  .listing { padding: 40px 0; }
  .listing__media, .listing:nth-child(even) .listing__media { width: 100%; margin: 0; }
  .listing__media { aspect-ratio: 16/9; }
  .listing__card, .listing:nth-child(even) .listing__card { position: relative; top: auto; transform: none; width: 100%; max-width: 100%; right:auto; left:auto; z-index: 3; }
  /* Remove backdrop-filter on mobile — iOS Safari crashes with many blurred layers */
  .listing__card { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(22,22,24,0.97); }
}

/* ==========================================================================
   MY LIVING — development projects
   ========================================================================== */
.projects { display: flex; flex-direction: column; gap: 0; }
.project { position: relative; padding: 44px 0; margin-bottom: 0; overflow: hidden; }
.project__bgimg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 1; filter: grayscale(0.2); z-index: 0; }
.project__bgimg::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(245,241,236,0.82);
}
.project--dark .project__bgimg::after { background: rgba(22,22,24,0.84); }
.project--dark .project__bar h3 { color: var(--on-dark); }
.project--dark .project__bar .place { color: rgba(255,255,255,0.65); }
.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 { padding: 32px 0; }
  .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; }
  .unit { display: flex; align-items: center; gap: 12px; }
  .unit__info { flex: 1; min-width: 0; }
  .unit__btn { flex-shrink: 0; margin-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-image: linear-gradient(rgba(240,235,228,0.81), rgba(240,235,228,0.81)),
                    var(--lm-bg-url, url('img/palazzo-bg-1.jpg'));
  background-size: auto, cover;
  background-position: center, center 30%;
  background-repeat: no-repeat;
  filter: grayscale(0.25) contrast(1.04); opacity: 1; }
.scheda-body > .container { position: relative; z-index: 1; max-width: 1060px; }
.scheda__main { background: #ffffff; padding: 40px 42px; box-shadow: var(--shadow-card); color: var(--black); }
.scheda { display: grid; grid-template-columns: 1.7fr 0.82fr; gap: 60px; align-items: start; }
.scheda__intro { font-size: 15px; color: var(--text); margin-bottom: 30px; line-height: 1.7; }
.scheda__intro p { margin-bottom: 1em; }
.scheda__intro strong { font-weight: 600; color: var(--black); }
.scheda__intro h2, .scheda__intro h3 { font-family: var(--serif); font-size: 22px; font-weight: 400; color: var(--black); margin: 1.4em 0 0.5em; letter-spacing: 0; }
/* Section labels imported as <ul><li> from WP content editor — style like block labels */
.scheda__intro ul { list-style: none; padding: 0; margin: 0 0 18px; }
.scheda__intro li { font-family: var(--sans); font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 2px; padding-bottom: 8px; border-bottom: 1px solid var(--border); margin-bottom: 10px; }
.scheda__block { margin-bottom: 34px; }
.scheda__block h3, .scheda__block-label { font-family: var(--sans); font-size: 11px; font-weight: 600; color: var(--muted); margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--border); letter-spacing: 2px; text-transform: uppercase; }
.scheda__block p { font-size: 15px; color: var(--text); line-height: 1.7; }
.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__cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.scheda__cat-tag { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; padding: 4px 10px; border: 1px solid rgba(255,255,255,0.4); color: var(--on-dark-muted); background: transparent; }
.immobile__map .leaflet-tile { filter: grayscale(0) contrast(1.05); }
.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; } .scheda__main { padding: 24px 20px; } }

/* 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--plan img { width: 100%; height: auto; display: block; }
@media (max-width: 600px) { .modal__box--plan { max-width: 100%; max-height: 92vh; overflow-y: auto; } }
.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: 32px; height: 32px; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg); border: 2px solid #fff; box-shadow: 0 3px 8px rgba(0,0,0,0.35);
  display: flex; align-items: center; justify-content: center;
}
.lm-pin svg { display: none; }
.lm-pin span {
  font-family: var(--serif); font-size: 10px; font-weight: 400; color: #fff;
  letter-spacing: 0.5px; transform: rotate(45deg);
}
.map-popup { width: 280px; max-width: calc(100vw - 48px); display: flex; flex-direction: column; }
.map-popup img { width: 100%; height: 130px; 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: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--on-dark); margin-bottom: 2px; }
.map-popup__zona { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 10px; }
.map-popup__specs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.mpp-spec { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--on-dark-muted); }
.mpp-spec svg { stroke: rgba(255,255,255,0.6); }
.map-popup__pricelbl { font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--on-dark-muted); }
.map-popup__price { font-size: 16px; font-weight: 600; color: var(--on-dark); margin-top: 2px; }
.leaflet-popup-content-wrapper { border-radius: 0; padding: 0; }
.leaflet-popup-content { margin: 0; }
.map-grey .leaflet-tile { filter: grayscale(0) contrast(1.05); }

/* ==========================================================================
   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 20%; 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; margin-right: 0; }
  .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; }
.pagehead--center .pagehead__bg::after { background: none; }

/* 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);
}
.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); }
@media (max-width: 820px) {
  .approccio__photo.is-colored img {
    filter: grayscale(0) saturate(1.03) contrast(1.03);
  }
  .bio.is-colored .bio__photo--ctx::after { opacity: 1; }
  .team-card.is-visible .team-card__photo::after { opacity: 1; }
}

/* 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(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.6,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-left  { opacity: 0; transform: translateX(-52px); transition: opacity .85s ease, transform .85s cubic-bezier(.2,.6,.2,1); }
.reveal-left.is-in  { opacity: 1; transform: none; }
.reveal-right { opacity: 0; transform: translateX(52px); transition: opacity .85s ease, transform .85s cubic-bezier(.2,.6,.2,1); }
.reveal-right.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; }
/* Self-hosted background video — cover the hero, clicks blocked. Poster paints
   instantly; the clip swaps in natively (and JS adds .is-ready on first frame). */
.hero__yt { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero__yt--mobile { display: none; }
.hero__yt-overlay { position: absolute; inset: 0; z-index: 1; background: transparent; }
@media (max-width: 767px) {
  .hero__yt--desktop { display: none; }
  .hero__yt--mobile { display: block; }
}

/* First-visit intro overlay (homepage only, once per session) */
html.lm-intro-lock, html.lm-intro-lock body { overflow: hidden; }
.lm-intro { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center;
  background: #15120e; opacity: 1; transition: opacity .5s ease; }
.lm-intro.is-hidden { opacity: 0; pointer-events: none; }
.lm-intro__mark { font-family: var(--serif); font-size: clamp(28px, 5vw, 56px); letter-spacing: .04em;
  background: linear-gradient(90deg, rgba(244,239,231,0.30) 0%, #f4efe7 50%, rgba(244,239,231,0.30) 100%);
  background-size: 200% 100%; -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent; animation: lmShimmer 2.2s ease-in-out infinite; }
@keyframes lmShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .lm-intro__mark { animation: none; } }
@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__actions .btn:not(.btn--ghost) { background: transparent; color: var(--on-dark); border-color: rgba(255,255,255,0.5); }
.contact-panel__actions .btn:not(.btn--ghost):hover { background: #fff; color: var(--black); border-color: #fff; }
.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; }

/* ==========================================================================
   2026-06 ADDITIONS
   ========================================================================== */

/* Listing card price */
.listing__price { font-family: var(--serif); font-size: 20px; color: var(--on-dark); margin-bottom: 16px; }

/* Bio photo contextual architectural background */
.bio__photo--ctx { position: relative; isolation: isolate; }
.bio__photo--ctx::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: var(--bio-bg, none) center / cover no-repeat;
  opacity: 0.18; pointer-events: none;
}
.bio__photo--ctx img { position: relative; z-index: 1; image-orientation: from-image; }

/* Team grid (3×2 for secondary chi siamo members) */
.team-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 36px 28px; margin-top: 64px; }
.team-card { position: relative; }
.team-card__photo { position: relative; overflow: hidden; aspect-ratio: 3/4; margin-bottom: 16px; isolation: isolate; }
.team-card__photo img { width:100%; height:100%; object-fit:cover; object-position:top center;
  filter: grayscale(1); transition: filter 1.2s ease, transform 1.2s cubic-bezier(.2,.6,.2,1); }
.team-card:hover .team-card__photo img { filter: grayscale(0); transform: scale(1.03); }
.team-card__overlay { display: none; }
.team-card__bio { color: rgba(255,255,255,0.92); font-size: 13px; line-height: 1.7; text-align: center; margin: 0; }
.team-card__name { font-family: var(--serif); font-size: 18px; margin-bottom: 4px; }
.team-card__role { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
@media (max-width: 700px) { .team-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }

/* ::after colour portrait overlay — bio founders + team cards.
   JS (initPortraitVars) injects --portrait: url(…) on each container.
   Fades in the full-colour image on top of the permanent grayscale img,
   eliminating the grey-bleed artifact from a filter transition. */
.bio__photo--ctx::after {
  content: ''; position: absolute; inset: 0; z-index: 2;
  background: var(--portrait, none) top center / cover no-repeat;
  opacity: 0; transition: opacity 0.7s ease;
}
.bio:hover .bio__photo--ctx::after { opacity: 1; }
.team-card__photo::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: var(--portrait, none) top center / cover no-repeat;
  opacity: 0; transition: opacity 0.7s ease;
}
.team-card:hover .team-card__photo::after { opacity: 1; }

.team-card__bio-mob { display: block; font-size: 13px; line-height: 1.7; color: var(--muted); margin-top: 10px; }

/* Homepage hero carousel */
.hero__car-a, .hero__car-b { position: absolute; inset: 0; background-size: cover; background-position: center 42%; transition: opacity 1.2s ease; will-change: opacity, transform; }
.hero__car-a { animation: hero-kb-a 16s ease-in-out infinite alternate; }
.hero__car-b { animation: hero-kb-b 16s ease-in-out 8s infinite alternate; }
@keyframes hero-kb-a { from { transform: scale(1); } to { transform: scale(1.07); } }
@keyframes hero-kb-b { from { transform: scale(1.07); } to { transform: scale(1); } }
.hero__dots { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 10px; }
.hero__dot { width: 8px; height: 8px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.7); background: transparent; cursor: pointer; padding: 0; transition: background .25s ease; }
.hero__dot.active { background: #fff; }

/* Immobile actions bar (price + CTAs below hero on single-immobile) */
.immobile-actions { background: var(--warm); border-bottom: 1px solid rgba(0,0,0,0.09); padding: 22px 0; }
.immobile-actions__row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: center; }
.immobile-actions__price { font-family: var(--serif); font-size: clamp(20px,2.2vw,28px); color: var(--black); }
.immobile-actions__btns { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 640px) { .immobile-actions__row { flex-direction: column; gap: 14px; } .immobile-actions__btns { justify-content: center; } }

/* Proposte 3 — blog-card style, dark (homepage) */
.proposte3 { position: relative; background: var(--charcoal-2); color: var(--on-dark); padding: 80px 0; overflow: hidden; }
.proposte3__bg { position: absolute; inset: 0; background-size: auto 120%; background-position: right center;
  background-repeat: no-repeat; opacity: .08; filter: invert(1); z-index: 0; }
.proposte3__head { text-align: center; margin-bottom: 52px; position: relative; z-index: 1; }
.proposte3__head h2 { color: var(--on-dark); font-size: clamp(24px,2.8vw,38px); margin-top: 12px; }
.proposte3__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; padding-bottom: 28px; position: relative; z-index: 1; }
.proposte3__grid .p3card:nth-child(2) { transform: translateY(-28px); }
.proposte3__grid .p3card:nth-child(2):hover { transform: translateY(-32px); }
.p3card { display: flex; flex-direction: column; text-decoration: none; overflow: hidden;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.09);
  transition: transform .3s cubic-bezier(.2,.6,.2,1), box-shadow .3s ease; }
.p3card:hover { box-shadow: 0 40px 80px -20px rgba(0,0,0,0.8); }
.p3card__img { aspect-ratio: 5/6; overflow: hidden; flex-shrink: 0; position: relative; }
.p3card__img::after { content: ''; position: absolute; inset: auto 0 0 0;
  height: 80px; background: linear-gradient(to top, rgba(6,6,6,0.62), transparent);
  pointer-events: none; }
.p3card__badge { position: absolute; bottom: 13px; left: 16px; right: 16px; z-index: 1;
  font-family: var(--serif); font-style: italic; font-size: 12.5px; font-weight: 400;
  color: rgba(255,255,255,0.88);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p3card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease, filter 1.2s ease-in-out;
  filter: grayscale(0.25) saturate(0.88); }
.p3card:hover .p3card__img img { transform: scale(1.05); filter: grayscale(0) saturate(1.1); }
.p3card__body { padding: 26px 24px 30px; flex: 1; }
.p3card__num { font-family: var(--serif); font-size: 72px; font-weight: 400; color: rgba(255,255,255,0.05); line-height: 1; display: block; margin-bottom: -18px; letter-spacing: -2px; }
.p3card__label { font-family: var(--serif); font-size: clamp(18px,1.8vw,22px); color: var(--on-dark); display: block; margin-bottom: 10px; }
.p3card__label::before { content: ''; display: block; width: 26px; height: 1.5px; background: var(--accent); margin-bottom: 10px; }
.p3card__desc { font-size: 13.5px; color: var(--on-dark-muted); margin-bottom: 20px; line-height: 1.65; }
.p3card__cta { font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--on-dark); font-weight: 600; }
@media (max-width: 800px) {
  .proposte3__grid { grid-template-columns: 1fr; gap: 16px; padding-bottom: 0; }
  .proposte3__grid .p3card:nth-child(2) { transform: none; }
  .proposte3__grid .p3card:nth-child(2):hover { transform: translateY(-4px); }
}

/* Vendita active-filter badge */
.filter-badge { display: inline-flex; align-items: center; gap: 10px; background: var(--warm); border: 1px solid var(--border); padding: 8px 16px; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 500; color: var(--black); margin: 20px 0 0; }
.filter-badge a { color: var(--muted); font-size: 16px; line-height: 1; text-decoration: none; }
.filter-badge a:hover { color: var(--black); }

/* Social page — soc-* */

.soc-intro__btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* Instagram section */
.soc-ig { background: #f2ede6; border-top: 3px solid var(--accent); padding: 72px 0 0; }
.soc-ig__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 6px; flex-wrap: wrap; }
.soc-ig__meta { display: flex; flex-direction: column; gap: 8px; }
.soc-ig__platform { font-family: var(--serif); font-size: clamp(48px,7vw,92px); color: var(--black); line-height: 1; letter-spacing: -2px; margin: 0; font-weight: 400; }
.soc-ig__handle { font-size: 10.5px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--muted); margin: 0; }
.soc-ig__pitch { font-family: var(--serif); font-style: italic; font-size: clamp(15px,1.3vw,18px); color: rgba(30,22,14,0.52); margin: 0 0 48px; }
/* API thumbnail grid (kept for future) */
.soc-ig__feed { display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; }
.soc-ig__item { aspect-ratio: 1; overflow: hidden; position: relative; display: block; }
.soc-ig__item img { width:100%; height:100%; object-fit:cover; filter:grayscale(.1); transition: transform .5s ease, filter .5s ease; }
.soc-ig__item:hover img { transform:scale(1.06); filter:grayscale(0); }
.soc-ig__item--video::after { content:'▶'; position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:rgba(255,255,255,.85); font-size:22px; background:rgba(0,0,0,.18); pointer-events:none; }
/* Marquee carousel for social embeds — true edge-to-edge, always scrolling */
.soc-carousel { overflow-x: clip; padding: 16px 0 80px; --item-w: 380px; --gap: 16px; }
.soc-carousel__track { display: flex; gap: var(--gap); align-items: flex-start; width: max-content; animation: soc-marquee 36s linear infinite; will-change: transform; }
.soc-carousel__item { width: var(--item-w); flex-shrink: 0; display: block; text-decoration: none; }
.soc-carousel__item iframe { width: 100%; height: 580px; border: none; display: block; border-radius: 3px; pointer-events: none; }
.soc-carousel__item:nth-child(3n+1) { margin-top: 0; }
.soc-carousel__item:nth-child(3n+2) { margin-top: 44px; }
.soc-carousel__item:nth-child(3n)   { margin-top: 20px; }
.soc-ig .soc-carousel__item iframe  { background: #fff; box-shadow: 0 2px 20px rgba(0,0,0,0.10); }
.soc-tt .soc-carousel__item iframe  { background: #1a1a1a; box-shadow: 0 4px 32px rgba(0,0,0,0.38); }
@keyframes soc-marquee { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-3 * (var(--item-w) + var(--gap)))); } }
@media (prefers-reduced-motion: reduce) { .soc-carousel__track { animation: none !important; } }

/* TikTok section */
.soc-tt { background: var(--charcoal-2); color: var(--on-dark); padding: 72px 0 0; }
.soc-tt__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }
.soc-tt__meta { display: flex; flex-direction: column; gap: 8px; }
.soc-tt__platform { font-family: var(--serif); font-size: clamp(48px,7vw,92px); color: var(--on-dark); line-height: 1; letter-spacing: -2px; margin: 0; font-weight: 400; }
.soc-tt__handle { font-size: 10.5px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--on-dark-muted); margin: 0; }

/* Band */
.soc-band { background: var(--warm); padding: 64px 0; }
.soc-band__inner { text-align: center; }
.soc-band__handles { font-family: var(--serif); font-style: italic; font-size: clamp(14px,1.2vw,17px); color: var(--muted); margin: 0 0 6px; }
.soc-band__label { font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--muted); opacity: .7; margin: 0 0 22px; }
.soc-band__btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 760px) { .soc-ig__top, .soc-tt__top { align-items: flex-start; flex-direction: column; } }
@media (max-width: 600px) { .soc-carousel { --item-w: 260px; --gap: 12px; } .soc-carousel__item iframe { height: 420px; } }

/* Featured video + copy grid inside .soc-ig / .soc-tt */
.soc-feat { display: grid; grid-template-columns: 420px 1fr; gap: 56px; align-items: center; margin-bottom: 56px; }
.soc-feat__video iframe { width: 420px; height: 660px; border: none; pointer-events: all; border-radius: 3px; box-shadow: 0 8px 48px rgba(0,0,0,.18); display: block; }
.soc-feat__meta { display: flex; flex-direction: column; gap: 22px; }
.soc-feat__platform { font-family: var(--serif); font-size: clamp(48px,7vw,88px); line-height: 1; letter-spacing: -2px; font-weight: 400; margin: 0; }
.soc-ig .soc-feat__platform { color: var(--black); }
.soc-tt .soc-feat__platform { color: var(--on-dark); }
.soc-feat__handle { font-size: 10.5px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--muted); margin: 0; }
.soc-tt .soc-feat__handle { color: var(--on-dark-muted); }
.soc-feat__pitch { font-family: var(--serif); font-style: italic; font-size: clamp(15px,1.4vw,19px); line-height: 1.58; margin: 0; }
.soc-ig .soc-feat__pitch { color: rgba(30,22,14,0.55); }
.soc-tt .soc-feat__pitch { color: var(--on-dark-muted); }
@media (max-width: 900px) { .soc-feat { grid-template-columns: 1fr; gap: 36px; } .soc-feat__video iframe { width: 100%; max-width: 380px; height: 580px; } }
@media (max-width: 600px) { .soc-feat__video iframe { height: 460px; } }

/* Featured single video (interactive) — centered inside .soc-ig / .soc-tt */
.soc-feat-video { margin: 40px auto 0; max-width: 420px; }
.soc-feat-video iframe { width: 100%; height: 640px; border: none; pointer-events: all; border-radius: 3px; box-shadow: 0 8px 48px rgba(0,0,0,.18); display: block; }
.soc-ig .soc-feat-video iframe { background: #fff; }
.soc-tt .soc-feat-video iframe { background: #1a1a1a; }
@media (max-width: 600px) { .soc-feat-video iframe { height: 500px; } }

/* "Le case di cui Giandomenico parla" */
.soc-case { background: var(--warm); padding: 80px 0; }
.soc-case__head { text-align: center; margin-bottom: 52px; }
.soc-case__head h2 { font-size: clamp(24px,2.8vw,38px); }
.soc-case__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.soc-case__card { background: #fff; display: block; text-decoration: none; overflow: hidden; transition: transform .3s ease, box-shadow .3s ease; }
.soc-case__card:hover { transform: translateY(-4px); box-shadow: 0 22px 56px rgba(0,0,0,.11); }
.soc-case__img { aspect-ratio: 4/3; overflow: hidden; }
.soc-case__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; filter: grayscale(.15) saturate(.9); }
.soc-case__card:hover .soc-case__img img { transform: scale(1.04); filter: grayscale(0) saturate(1.1); }
.soc-case__body { padding: 20px 22px 26px; }
.soc-case__zona { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.soc-case__title { font-family: var(--serif); font-size: clamp(16px,1.5vw,19px); color: var(--black); line-height: 1.28; margin-bottom: 10px; }
.soc-case__specs { font-size: 12px; color: var(--muted); margin: 0; }
.soc-case__arrow { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-top: 14px; font-weight: 600; }
.soc-case__cta { text-align: center; margin-top: 52px; }
@media (max-width: 840px) { .soc-case__grid { grid-template-columns: 1fr; gap: 16px; } }

/* Le nostre proposte — white variant (social page) */
.proposte3--white { background: #fff; }
.proposte3--white .proposte3__bg { filter: none; opacity: .04; }
.proposte3--white .proposte3__head .eyebrow { color: var(--muted); }
.proposte3--white .proposte3__head h2 { color: var(--black); }
.proposte3--white .p3card { background: var(--charcoal); border-color: transparent; }

/* Social page v1.5.7: pagehead hero + links strip + profile + plain carousels */

/* Links strip — sits immediately below the pagehead */
.soc-links { background: #fff; border-bottom: 1px solid rgba(0,0,0,.07); padding: 20px 0; }
.soc-links__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.soc-links__handles { font-family: var(--serif); font-style: italic; font-size: clamp(14px,1.2vw,17px); color: var(--muted); margin: 0; }
.soc-links__btns { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 640px) { .soc-links__inner { flex-direction: column; align-items: flex-start; } }

/* Profile section — embedded reel + light text */
.soc-profile { background: #fff; padding: 80px 0; }
.soc-profile__grid { display: grid; grid-template-columns: 360px 1fr; gap: 64px; align-items: center; }
.soc-profile__video iframe { width: 100%; height: 620px; border: none; pointer-events: all; border-radius: 4px; box-shadow: 0 6px 40px rgba(0,0,0,.09); display: block; background: #f8f6f2; }
.soc-profile__content { display: flex; flex-direction: column; gap: 20px; }
.soc-profile__content h2 { font-size: clamp(24px,2.4vw,34px); margin: 0 0 4px; }
.soc-profile__content p { font-size: 15px; line-height: 1.68; color: rgba(22,24,28,0.68); margin: 0; }
@media (max-width: 900px) { .soc-profile__grid { grid-template-columns: 1fr; gap: 40px; } .soc-profile__video iframe { height: 520px; } }
@media (max-width: 600px) { .soc-profile { padding: 48px 0; } .soc-profile__video iframe { height: 420px; } }

/* Plain carousel sections — override IG/TT top padding */
.soc-ig.soc-plain, .soc-tt.soc-plain { padding-top: 44px; }
.soc-plain__label { margin-bottom: 20px; }

/* TikTok light override */
.soc-tt--light { background: var(--warm); color: var(--black); }
.soc-tt--light .soc-carousel__item iframe { background: #f8f6f2; box-shadow: 0 2px 20px rgba(0,0,0,.08); }

/* 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 { transition: none !important; }
.leaflet-popup.lm-popup-ready { animation: popfade .25s ease backwards; }
@keyframes popfade { from { opacity: 0; } to { opacity: 1; } }
.leaflet-popup.popup--below .leaflet-popup-tip-container { bottom: auto; top: 0; transform: rotate(180deg); }

/* 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; }
.visually-hidden:focus { clip:auto; clip-path:none; width:auto; height:auto; overflow:visible; white-space:normal; position:static; margin:0; background:#1a1a1a; color:#fff; padding:8px 16px; z-index:9999; }

/* 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, .reveal-left, .reveal-right { opacity: 1 !important; transform: none !important; }
  .hero__car-a, .hero__car-b { animation: none !important; }
  .hero__title { opacity: 1 !important; transform: none !important; }
  .hero__slide.kb, .hero__kb { animation: none !important; }
}

/* ==========================================================================
   v1.3.0 ADDITIONS
   ========================================================================== */

/* MyLiving nav link — green underline instead of brick-red */
.nav__link--myliving::after { background: var(--lime); }

/* Language toggle — IT / EN pill */
.nav__lang {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; letter-spacing: 1.5px; font-family: var(--sans); font-weight: 600;
  padding: 4px 10px; border: 1px solid rgba(255,255,255,0.28); border-radius: 2px;
  color: rgba(255,255,255,0.55); transition: color .2s, border-color .2s; text-decoration: none; margin-left: 8px;
}
.nav__lang:hover { color: #fff; border-color: rgba(255,255,255,0.7); }
.site-header.is-scrolled .nav__lang { color: rgba(22,22,24,0.55); border-color: rgba(22,22,24,0.28); }
.site-header.is-scrolled .nav__lang:hover { color: var(--black); border-color: var(--black); }
.nav__lang__sep { opacity: 0.4; }
.nav__lang__active { opacity: 0.38; pointer-events: none; }
.nav__lang__other { color: inherit; }
.nav__lang:hover .nav__lang__other { color: #fff; }
.site-header.is-scrolled .nav__lang:hover .nav__lang__other { color: var(--black); }

/* Mobile drawer lang link */
.mobile-drawer .nav__link--lang { display: flex; align-items: center; gap: 6px; }

/* ── Gallery modal ── */
.modal__box--gallery {
  background: #111; max-width: 95vw; width: 100%; max-height: 95vh;
  display: flex; flex-direction: column; position: relative; padding: 0;
}
.gallery-modal__img-wrap {
  flex: 1; display: flex; align-items: center; justify-content: center;
  min-height: 0; overflow: hidden; position: relative;
}
.gallery-modal__img-wrap img {
  max-width: 100%; max-height: 80vh; object-fit: contain; display: block;
  transition: opacity .3s ease;
}
.gallery-modal__counter {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.55); pointer-events: none;
}
.gallery-modal__arrows { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; gap: 12px; }
.gallery-modal__arrow {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); color: rgba(255,255,255,0.7);
  width: 48px; height: 48px; border-radius: 50%; font-size: 24px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background .2s, color .2s; flex-shrink: 0;
}
.gallery-modal__arrow:hover { background: rgba(255,255,255,0.18); color: #fff; }
.gallery-modal__dots { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; flex: 1; }
.gallery-modal__dot {
  width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.22);
  border: none; cursor: pointer; padding: 0; transition: background .2s;
}
.gallery-modal__dot.active { background: #fff; }
.modal__box--gallery .modal__close { color: rgba(255,255,255,0.7); top: 14px; right: 14px; }
.modal__box--gallery .modal__close:hover { color: #fff; }

/* ── Planimetria carousel ── */
.plan-carousel { display: flex; flex-direction: column; gap: 0; }
.plan-carousel__img-wrap { position: relative; }
.plan-carousel__img-wrap img { width: 100%; height: auto; display: block; }
.plan-carousel__nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0 0; gap: 10px; }
.plan-carousel__arrow {
  background: none; border: 1px solid var(--border); color: var(--black);
  width: 40px; height: 40px; border-radius: 50%; font-size: 20px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; flex-shrink: 0;
}
.plan-carousel__arrow:hover { background: var(--black); color: #fff; border-color: var(--black); }
.plan-carousel__counter { font-size: 11px; letter-spacing: 1.5px; color: var(--muted); text-align: center; flex: 1; }

/* ── Responsive — v1.3.0 ── */
@media (max-width: 640px) {
  /* Gallery modal: fullscreen on mobile */
  .modal:has(.modal__box--gallery) { padding: 0; }
  .modal__box--gallery { max-width: 100vw; max-height: 100vh; border-radius: 0; }
  .gallery-modal__img-wrap img { max-height: 65vh; }
  .gallery-modal__arrow { width: 40px; height: 40px; font-size: 20px; }

  /* Planimetria carousel: no side padding */
  .modal__box--plan { padding: 16px; }

  /* Scheda actions: stack all 3 buttons */
  .scheda__actions { gap: 10px; }
  .scheda__actions .btn { font-size: 10px; padding: 14px 10px; }

  /* Language toggle: visible in drawer */
  .nav__link--lang { font-size: 10px; }
}

/* ==========================================================================
   v1.6.0 — Hero arrow · Blog filter · Single post redesign
   ========================================================================== */

/* Hero inner: fill width so text-align:center (inherited from .hero) centers the title */
.hero__inner { width: 100%; }

/* Blog filterbar — inline (no negative margin, no shadow, no pagehead required) */
.filterbar--blog { margin: 36px 0 52px; max-width: 100%; box-shadow: none; border: 1px solid var(--border); }
.filterbar--blog .filterbar__row { grid-template-columns: 2fr 1fr auto; }
.blog-no-results { padding: 12px 0 0; font-size: 13px; color: var(--muted); letter-spacing: .5px; }

/* Article categories (displayed in pagehead before the title) */
.article-cats { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.article-cats__tag { font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.75); border: 1px solid rgba(255,255,255,0.35); padding: 4px 14px; transition: color .2s, border-color .2s; }
.article-cats__tag:hover { color: #fff; border-color: rgba(255,255,255,0.7); }

/* Reading time + author row in pagehead */
.pagehead__byline { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.72); margin-top: 12px; }

/* Article footer: tags + back link */
.article__footer { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 20px; }
.article__tags { display: flex; gap: 10px; flex-wrap: wrap; }
.article__tag { font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--text); border: 1px solid var(--border); padding: 4px 12px; transition: color .2s, border-color .2s; }
.article__tag:hover { color: var(--black); border-color: var(--black); }
.article__footer .article__back { margin-top: 0; }

/* ==========================================================================
   v1.7.0 — Chi siamo person-colour effect · hero video · misc
   ========================================================================== */

/* Person-colour: base img stays greyscale; ::after overlays same image in full
   colour with mix-blend-mode:color — neutral/grey backgrounds pick up zero chroma
   so only the person (skin, clothing) transitions to colour. No masking needed.
   isolation:isolate on parent confines the blend to the card container. */

.bio__photo--ctx::after,
.team-card__photo::after {
  content: '';
  position: absolute; inset: 0; z-index: 2;
  background-image: var(--portrait, none);
  background-size: cover; background-position: top center;
  mix-blend-mode: color;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

/* Desktop hover: reveal colour person; keep base img B&W */
.bio:hover .bio__photo--ctx img {
  filter: grayscale(1) saturate(1.03) contrast(1.03);
  transform: scale(1.03);
}
.bio:hover .bio__photo--ctx::after { opacity: 1; }


/* Mobile scroll-in: reveal colour person */
@media (max-width: 820px) {
  .bio.is-colored .bio__photo--ctx img {
    filter: grayscale(1) saturate(1.03) contrast(1.03);
  }
  .bio.is-colored .bio__photo--ctx::after,
  .team-card.is-visible .team-card__photo::after { opacity: 1; }
}

/* Hero video — autoplay muted, sits below carousel z-order */
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero__mute-btn {
  position: absolute; bottom: 28px; left: 28px; z-index: 4;
  width: 40px; height: 40px; border-radius: 0; border: 1px solid rgba(255,255,255,0.55);
  background: rgba(0,0,0,0.32); color: #fff; cursor: pointer; font-size: 16px;
  display: flex; align-items: center; justify-content: center; transition: background .2s;
}
.hero__mute-btn:hover { background: rgba(0,0,0,0.6); }

/* Single property Leaflet map */
.scheda__map--leaflet { width: 100%; height: 260px; margin-top: 32px; }
.immobile__map .lm-pin { background: var(--accent); }

/* Related posts section */
.section--warm { background: var(--warm); }
.related-head { margin-bottom: 40px; text-align: center; }
.related-head h2 { font-family: var(--serif); font-size: 24px; font-weight: 400; color: var(--black); }

@media (max-width: 768px) {
  .filterbar--blog .filterbar__row { grid-template-columns: 1fr; }
  .filterbar--blog { margin: 24px 0 36px; }
}

/* Immobile title bar — title / zona / price stacked, own dark container, only above the description column */
.scheda__main .immobile-titlebar { margin: -40px -42px 30px; }
.immobile-titlebar { background: var(--charcoal); color: var(--on-dark); }
.immobile-titlebar__inner { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 16px; text-align: center; }
.immobile-titlebar__item { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: #fff; }
.immobile-titlebar__item--title { font-size: 15px; letter-spacing: 1.8px; }
.immobile-titlebar__item--zona { font-size: 10.5px; letter-spacing: 1.2px; color: rgba(255,255,255,0.82); }
.immobile-titlebar__item--price { font-family: var(--serif); font-size: 20px; letter-spacing: 0; text-transform: none; color: #fff; }
@media (max-width: 900px) { .scheda__main .immobile-titlebar { margin: -24px -20px 24px; } }
