/* Studio Immobiliare Capello - stile 2026 (nessuna dipendenza esterna eccetto Google Fonts) */
:root {
  --brand: #268b18;
  --brand-dark: #12410b;
  --brand-soft: #eef6ec;
  --accent: #7bab74;
  --ink: #1d2a1b;
  --muted: #5c6b59;
  --line: #dfe7dc;
  --bg: #fbfcfa;
  --card: #fff;
  --radius: 16px;
  --shadow: 0 1px 2px rgb(20 40 15 / .06), 0 8px 24px rgb(20 40 15 / .08);
  --wrap: 1200px;
  --header-h: 92px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}
img, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--brand); text-underline-offset: .2em; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4, h5 { line-height: 1.2; margin: 0 0 .5em; text-wrap: balance; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; top: .5rem; left: .5rem; z-index: 100; background: #fff; padding: .6rem 1rem; border-radius: 8px; }
.hp { position: absolute; left: -9999px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / .86);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.brand img { height: 4.6rem; width: auto; }
.nav { display: flex; align-items: center; gap: 1rem; }
.nav ul { display: flex; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.nav ul a {
  display: block; padding: .45rem .65rem; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem;
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.nav ul a:hover { background: var(--brand-soft); color: var(--brand-dark); }
.nav ul a[aria-current="page"] { background: var(--brand); color: #fff; }
.nav-social { display: flex; gap: .4rem; }
.social {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; color: var(--brand); background: var(--brand-soft);
  transition: transform .2s, background .2s, color .2s;
}
.social:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }
.social-icon { width: 20px; height: 20px; }
.nav-toggle { display: none; }

@media (min-width: 992px) and (max-width: 1140px) {
  .nav { gap: .65rem; }
  .nav ul { gap: .1rem; }
  .nav ul a { padding: .4rem .5rem; font-size: .92rem; }
  .nav-cta { padding: .5rem .85rem; font-size: .95rem; }
}

@media (max-width: 991px) {
  .nav-toggle {
    display: grid; gap: 5px; align-content: center; justify-items: center;
    width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer;
  }
  .nav-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    position: absolute; inset: 100% 0 auto 0; flex-direction: column; align-items: stretch; gap: 1rem;
    padding: 1rem 1.25rem 1.5rem; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 24px rgb(0 0 0 / .08);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.open { visibility: visible; opacity: 1; transform: none; }
  .nav ul { flex-direction: column; }
  .nav ul a { padding: .8rem 1rem; border-radius: 12px; font-size: 1.05rem; white-space: normal; }
  .nav-social { justify-content: center; }
}

/* ---------- sezioni ---------- */
.s { padding-block: clamp(1.75rem, 4vw, 3rem); }
.section-head { text-align: center; margin-bottom: 2rem; }
.section-title { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 600; letter-spacing: .01em; }
.section-sub { color: var(--muted); }

.logo-banner { padding-block: 2rem 1rem; background: #fff; }
.logo-banner img { width: min(100%, 520px); margin-inline: auto; }

.hero {
  position: relative; display: grid; place-items: center; text-align: center;
  min-height: clamp(280px, 42vw, 440px); padding: 3rem 0;
  background: linear-gradient(rgb(255 255 255 / .35), rgb(255 255 255 / .35)), var(--hero, none) center / cover no-repeat, var(--brand-soft);
}
.hero h1 { font-size: clamp(2rem, 5.5vw, 4rem); font-weight: 700; margin: 0; text-shadow: 0 1px 12px rgb(255 255 255 / .6); }
.hero h1 a { color: var(--ink); text-decoration: none; border-bottom: 4px solid var(--accent); transition: color .2s, border-color .2s; }
.hero h1 a:hover { color: var(--brand-dark); border-color: var(--brand); }

.lead { max-width: 52rem; margin-inline: auto; text-align: center; font-size: clamp(1.15rem, 2vw, 1.5rem); color: var(--ink); }

.divider-box { max-width: 28rem; margin-inline: auto; text-align: center; border-block: 2px solid var(--accent); padding: 1rem 0; }
.divider-box p { margin: 0; font-size: clamp(1.5rem, 3.2vw, 2.3rem); font-weight: 600; letter-spacing: .04em; }

.prose { max-width: 48rem; margin-inline: auto; }
.cta { text-align: center; }

/* ---------- bottoni ---------- */
.btn {
  display: inline-block; padding: .7rem 1.6rem; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--brand); color: #fff; font: 500 1.05rem/1.3 inherit; font-family: inherit; text-decoration: none; text-align: center;
  box-shadow: 0 4px 12px rgb(38 139 24 / .25);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn:hover { background: var(--brand-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 18px rgb(38 139 24 / .3); }
.btn--lg { padding: .9rem 2.2rem; font-size: 1.2rem; }
.btn--muted { background: #8a9487; box-shadow: none; }
.btn--muted:hover { background: #6d776a; transform: none; box-shadow: none; }


/* Bottone scheda stampabile */
.head-print-action {
  margin-top: 1rem;
}
.btn--print-sheet {
  font-size: 0.95rem;
  padding: 0.55rem 1.3rem;
  background: #f4fbf4;
  color: #1b5e20;
  border: 1.5px solid #a5d6a7;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.btn--print-sheet:hover {
  background: #268b18;
  color: #fff;
  border-color: #268b18;
  box-shadow: 0 4px 12px rgba(38,139,24,0.25);
  transform: translateY(-2px);
}

/* ---------- card annunci ---------- */
.card-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.card-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); max-width: 56rem; margin-inline: auto; }
.card {
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgb(20 40 15 / .06), 0 16px 32px rgb(20 40 15 / .12); }
.card-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--brand-soft); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { flex: 1; padding: 1.1rem 1.25rem .5rem; text-align: center; }
.card-body h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .3rem; }
.card-body h4 { font-size: 1rem; font-weight: 500; font-style: italic; color: var(--muted); margin-bottom: .6rem; }
.card-body p { font-size: 1rem; font-weight: 600; margin: 0; color: var(--ink); }
.card-foot { padding: .75rem 1.25rem 1.25rem; text-align: center; }

/* ---------- galleria / slider ---------- */
.gallery-grid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.shot { display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 12px; background: var(--brand-soft); cursor: zoom-in; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.shot:hover img { transform: scale(1.06); }

.slider { position: relative; max-width: 960px; margin-inline: auto; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); touch-action: pan-y; }
.slide { display: none; }
.slide.active { display: block; animation: fade .5s; }
.slide img { width: 100%; max-height: 75vh; object-fit: contain; margin-inline: auto; background: #fff; }

.slider--photos { aspect-ratio: 16 / 9; max-height: 540px; background: #000; }
.slider--photos .slide { height: 100%; }
.slider--photos .slide.active { display: block; height: 100%; }
.slider--photos .slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; background: transparent; }
@keyframes fade { from { opacity: 0; } }
.slider-btn {
  position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%;
  background: rgb(255 255 255 / .92); color: var(--ink); font-size: 1.4rem; cursor: pointer; transition: background .2s; box-shadow: var(--shadow);
}
.slider-btn:hover { background: #fff; }
.slider-btn.prev { left: .75rem; }
.slider-btn.next { right: .75rem; }
.dots { position: absolute; inset: auto 0 .75rem; display: flex; justify-content: center; gap: .4rem; }
.dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: rgb(0 0 0 / .25); cursor: pointer; }
.dots button[aria-current="true"] { background: var(--brand); width: 24px; border-radius: 6px; }

dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; }
dialog.lightbox::backdrop { background: rgb(0 0 0 / .88); }
.lb-inner { display: grid; place-items: center; width: 100%; height: 100%; padding: 1rem; }
.lb-inner img { max-height: 90vh; max-width: 92vw; object-fit: contain; border-radius: 8px; }
.lb-btn { position: fixed; top: 50%; translate: 0 -50%; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .9); font-size: 1.5rem; cursor: pointer; }
.lb-btn.prev { left: 1rem; } .lb-btn.next { right: 1rem; }
.lb-close { position: fixed; top: 1rem; right: 1rem; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .9); font-size: 1.4rem; cursor: pointer; }

/* ---------- dettagli immobile ---------- */
.split-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .split-grid { grid-template-columns: 1.1fr 1fr; } }
.split .prose { max-width: none; margin: 0; }
.facts { display: grid; gap: .9rem; }
.fact { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 1.25rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.fact-icon { flex: none; width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--brand); color: #fff; }
.fact h4 { font-size: 1.05rem; margin: 0 0 .15rem; }
.fact p { margin: 0; font-size: 1rem; color: var(--muted); }

/* ---------- nota contrattuale / disclaimer immobile ---------- */
.disclaimer-s { padding-block: 0 1.5rem; }
.disclaimer-box { display: flex; align-items: flex-start; gap: .85rem; padding: 1.1rem 1.35rem; background: #fbfdfb; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--radius); box-shadow: var(--shadow); }
.disclaimer-icon { flex: none; width: 22px; height: 22px; color: var(--brand); margin-top: 2px; }
.disclaimer-box p { margin: 0; font-size: .95rem; line-height: 1.55; color: #444; }
.disclaimer-box strong { color: #1e4a16; font-weight: 700; }

.detail-list { list-style: none; max-width: 44rem; margin: 0 auto; padding: 0; display: grid; gap: .75rem; }
.detail-list li { padding: 1rem 1.25rem; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; }

.chip-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.chip { display: inline-flex; align-items: center; gap: .6rem; padding: .6rem 1.2rem; border-radius: 999px; background: var(--brand-soft); border: 1px solid var(--line); font-weight: 600; text-align: center; }
.chip-icon { width: 22px; height: 22px; color: var(--brand); }

.feature-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
@media (min-width: 900px) {
  .feature-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 540px) and (max-width: 899px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
.feature { display: flex; flex-direction: column; text-align: center; padding: 1.75rem 1.25rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.feature-icon { width: 56px; height: 56px; padding: 14px; margin: 0 auto 1rem; border-radius: 16px; background: var(--brand-soft); color: var(--brand); }
.feature h3 { font-size: 1.05rem; letter-spacing: .02em; margin-bottom: .6rem; text-wrap: balance; }
.feature p { font-size: .95rem; line-height: 1.5; color: var(--muted); margin: 0; text-wrap: pretty; }

.team .person { display: grid; gap: 1.5rem; align-items: center; grid-template-columns: 1fr; max-width: 56rem; margin: 0 auto 2rem; padding: 1.5rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
@media (min-width: 700px) { .team .person { grid-template-columns: 200px 1fr; } }
.person img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.person h3 { font-size: 1.4rem; }
.person p { margin: 0; font-size: 1.02rem; }

/* ---------- contatti ---------- */
.contact-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); max-width: 60rem; margin-inline: auto; }
.contact { display: flex; gap: 1rem; align-items: center; padding: 1.25rem 1.5rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.contact > a, .contact-icon { flex: none; }
.contact-icon { width: 52px; height: 52px; padding: 13px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); }
.contact h3 { font-size: 1.1rem; margin-bottom: .2rem; }
.contact p { margin: 0; overflow-wrap: anywhere; }
.contact .k strong { font-weight: 600; }

.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
@media (min-width: 600px) {
  .map { aspect-ratio: 16 / 9; min-height: 300px; }
}
.map iframe { width: 100%; height: 100%; border: 0; }
.video { max-width: 720px; margin-inline: auto; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.video video { width: 100%; display: block; }
.video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.video--reel { max-width: 360px; aspect-ratio: 9 / 16; border-radius: 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, .15); margin-inline: auto; }
.video--reel video { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; }

/* ---------- form ---------- */
.form-s[style] { background: linear-gradient(rgb(255 255 255 / .88), rgb(255 255 255 / .88)), var(--bg) center / cover; }
.form { max-width: 48rem; margin-inline: auto; }
.form-grid { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; margin-bottom: 1.25rem; }
.field { grid-column: 1 / -1; display: block; }
.field--half { grid-column: span 1; }
@media (max-width: 600px) { .field--half { grid-column: 1 / -1; } }
.field input, .field textarea {
  width: 100%; padding: .85rem 1.1rem; border: 1px solid #c5d0c2; border-radius: 12px; background: #fff;
  font: inherit; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgb(38 139 24 / .15); }
.form .btn { display: block; margin-inline: auto; }
.form-msg { margin: 1rem 0 0; padding: .9rem 1.2rem; border-radius: 12px; text-align: center; }
.form-msg.ok { background: #e6f4e3; color: #14501a; }
.form-msg.err { background: #fde8e8; color: #8a1c1c; }
.immobile-badge { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; background: #eef6ec; border: 1px solid #c8e4c3; color: #14501a; padding: .6rem 1.1rem; border-radius: 999px; font-size: .95rem; margin: 0 auto 1.5rem; text-align: center; }
.immobile-badge .badge-icon { flex: none; stroke: var(--brand); }

/* ---------- social / footer ---------- */
.share { text-align: center; }
.social-row { display: flex; justify-content: center; gap: .75rem; }
.share .social { width: 52px; height: 52px; }
.share .social-icon { width: 26px; height: 26px; }

.site-footer { margin-top: 2rem; padding: 2rem 0; background: var(--brand-dark); color: #dbe8d8; text-align: center; font-size: 1rem; }
.site-footer a { color: #fff; }
.site-footer p { margin: 0 0 .4rem; }
.site-footer .small { font-size: .9rem; opacity: .75; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =====================================================================
   v2 - rinnovo: hero, trust, intestazioni di pagina, filtri, badge,
   footer, azioni rapide, consenso mappa, galleria a mosaico
   ===================================================================== */
:root { --brand-deep: #0f3a0a; --warm: #c8841a; }
body { padding-bottom: 0; }
h1, h2, h3 { letter-spacing: -.01em; }

/* header */
.brand img { height: 3.6rem; width: auto; }
.nav-cta {
  display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1.1rem; border-radius: 999px;
  background: var(--brand); color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background .2s, transform .2s;
}
.nav-cta:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); }
.btn-icon { width: 1.1em; height: 1.1em; flex: none; }
.nav ul a.is-section { color: var(--brand-dark); background: var(--brand-soft); }
@media (max-width: 991px) { .nav-cta { justify-content: center; padding: .85rem 1rem; } }

/* bottoni */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; }
.btn--ghost { background: transparent; color: var(--brand-dark); box-shadow: inset 0 0 0 2px var(--brand); }
.btn--ghost:hover { background: var(--brand); color: #fff; }
.btn--light { background: #fff; color: var(--brand-dark); box-shadow: 0 4px 14px rgb(0 0 0 / .15); }
.btn--light:hover { background: var(--brand-soft); color: var(--brand-dark); }
.btn--wa { background: #1fa855; box-shadow: 0 4px 12px rgb(31 168 85 / .3); }
.btn--wa:hover { background: #138a41; }
.center { text-align: center; margin-top: 2rem; display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* hero home */
.hero {
  position: relative; display: block; min-height: clamp(460px, 62vh, 640px); padding: 0; text-align: left; isolation: isolate; background: var(--brand-deep);
}
.hero-bg { position: absolute; inset: 0; z-index: -2; background: var(--hero) center / cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(95deg, rgb(10 40 8 / .88) 0%, rgb(10 40 8 / .62) 55%, rgb(10 40 8 / .15) 100%); }
.hero-inner { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-height: inherit; padding-block: 4rem; color: #fff; }
.hero-kicker { font-weight: 500; letter-spacing: .14em; text-transform: uppercase; font-size: .9rem; color: #cfe8c9; margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2.1rem, 5.4vw, 3.9rem); max-width: 18ch; color: #fff; text-shadow: none; margin-bottom: 1rem; }
.hero-sub { max-width: 40rem; font-size: clamp(1.1rem, 2vw, 1.35rem); color: #e9f3e6; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; }

/* fascia fiducia */
.trust { background: #fff; border-bottom: 1px solid var(--line); }
.trust ul { list-style: none; margin: 0; padding: 1.5rem 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.trust li { display: flex; align-items: center; gap: .9rem; }
.trust-icon { width: 46px; height: 46px; padding: 11px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); flex: none; }
.trust strong { display: block; font-size: 1.1rem; line-height: 1.2; }
.trust span { font-size: .95rem; color: var(--muted); }

/* intestazione di pagina */
.page-head { background: linear-gradient(180deg, var(--brand-soft), var(--bg)); padding: clamp(1.75rem, 4vw, 3rem) 0 1.5rem; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); margin-bottom: .35rem; text-transform: none; }
.page-lead { font-size: 1.25rem; color: var(--muted); max-width: 46rem; margin-bottom: 1rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0 0 1rem; padding: 0; font-size: .95rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: .4rem; }
.crumbs a { color: var(--muted); }
.head-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.head-actions .btn { padding: .75rem 1.5rem; font-size: 1.05rem; }
.listing-actions { padding: 3rem 0; background: var(--brand-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 2rem 0; text-align: center; }
main > .listing-actions:first-child { margin-top: 0; border-top: 0; padding-block: 2.25rem; }
.listing-actions .head-actions { justify-content: center; margin: 0 auto; }
@media (max-width: 600px) {
  .listing-actions .head-actions .btn { width: 100%; justify-content: center; text-align: center; }
}
.specs { list-style: none; margin: .75rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.specs li { padding: .2rem .7rem; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-size: .88rem; font-weight: 500; }
.specs--lg li { font-size: 1rem; padding: .35rem .95rem; background: #fff; border: 1px solid var(--line); }

/* badge */
.badge { position: absolute; top: .75rem; left: .75rem; padding: .3rem .8rem; border-radius: 999px; font-size: .82rem; font-weight: 600; letter-spacing: .03em; color: #fff; background: #5c6b59; box-shadow: 0 2px 8px rgb(0 0 0 / .2); }
.badge--prossimamente { background: var(--warm); }
.badge--trattativa { background: #b4561f; }
.badge--venduto, .badge--locato { background: #3d463b; }
.badge--inline { position: static; display: inline-block; margin: .25rem 0 .5rem; }

/* card v2 */
.card-img { position: relative; }
.card-body { text-align: left; padding: 1.1rem 1.25rem .25rem; }
.card-body .eyebrow { margin: 0 0 .2rem; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.card-body .eyebrow:empty { display: none; }
.card-body h3 { font-size: 1.2rem; margin-bottom: 0; }
.card-foot { text-align: left; display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.price { margin: 0; font-size: 1.25rem; font-weight: 700; color: var(--brand-dark); }
.card--venduto, .card--locato { cursor: default; }
.card--venduto .card-img, .card--locato .card-img { pointer-events: none; }
.card--venduto .card-img img, .card--locato .card-img img { filter: grayscale(1) brightness(.88); }
.card--venduto h3, .card--locato h3, .card--venduto .specs, .card--locato .specs, .card--venduto .eyebrow, .card--locato .eyebrow { opacity: .65; }
.card--venduto .btn--muted, .card--locato .btn--muted { pointer-events: none; cursor: default; }
.card--wide .card-body h3 { font-size: 1.5rem; }
.card--wide .card-body p { font-size: 1.05rem; font-weight: 400; color: var(--muted); margin-top: .4rem; }
.card--wide .card-img { aspect-ratio: 16 / 9; }

/* filtri */
.filters { display: grid; gap: .6rem; margin-bottom: 1.75rem; }
.filter-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip-btn { padding: .45rem 1.1rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: 500 1rem/1.2 inherit; color: var(--ink); cursor: pointer; transition: all .2s; }
.chip-btn:hover { border-color: var(--brand); }
.chip-btn[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.filter-count { margin: .25rem 0 0; color: var(--muted); font-size: .95rem; }
.empty { text-align: center; padding: 2rem; color: var(--muted); }
.card[hidden] { display: none; }

/* sezioni */
.features--tint { background: var(--brand-soft); }
.sell-box { text-align: center; max-width: 46rem; margin: 0 auto; padding: 2.5rem 1.5rem 0; }
.sell-box h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
.sell-box p { color: var(--muted); font-size: 1.15rem; margin: 0; }
.sell-cta { padding-bottom: 0; }
.plan figure { margin: 0 auto; max-width: 900px; text-align: center; }
.plan img { margin-inline: auto; border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; max-width: 100%; height: auto; }
.plan figcaption { margin-top: .75rem; font-weight: 600; }
.divider-box { border-color: var(--accent); }

/* galleria a mosaico */
@media (min-width: 700px) {
  .gallery-grid .shot:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; height: 100%; }
}
.gallery-grid [data-extra] { display: none; }
.gallery-grid.open [data-extra] { display: block; }
.gallery-more { text-align: center; margin-top: 1.25rem; }
dialog.lightbox::backdrop { backdrop-filter: blur(4px); }

/* mappa con consenso */
.map { position: relative; background: var(--brand-soft); }
.map-consent { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .75rem; padding: 1.5rem; text-align: center; background:
  radial-gradient(circle at 20% 20%, rgb(123 171 116 / .25), transparent 40%), radial-gradient(circle at 80% 70%, rgb(38 139 24 / .15), transparent 45%), var(--brand-soft); }
.map-consent p { max-width: 32rem; margin: 0; }
.map-consent .btn { margin: .15rem; }

/* form v2 */
.field select { width: 100%; padding: .85rem 1.1rem; border: 1px solid #c5d0c2; border-radius: 12px; background: #fff; font: inherit; color: var(--ink); }
.field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgb(38 139 24 / .15); }
.consent { display: flex; gap: .7rem; align-items: flex-start; margin: 0 0 1.25rem; font-size: .95rem; color: var(--muted); }
.consent input { width: 1.2rem; height: 1.2rem; margin-top: .2rem; accent-color: var(--brand); flex: none; }
.form-s { background: #fff; border-top: 1px solid var(--line); }
.form-s[style] { background: #fff; }
.form-msg { font-weight: 500; }

/* legali */
.legal-body { max-width: 46rem; margin-inline: auto; }
.legal-body h2 { font-size: 1.35rem; margin: 2rem 0 .5rem; }
.small { font-size: .9rem; color: var(--muted); }

/* footer v2 */
.site-footer { margin-top: 3rem; padding: 3rem 0 1.5rem; text-align: left; background: var(--brand-deep); color: #cfdccb; font-size: 1rem; }
.foot-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.site-footer h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin-bottom: .75rem; }
.foot-brand { font-size: 1.35rem; font-weight: 700; color: #fff; margin-bottom: .5rem; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.foot-social { display: flex; gap: .5rem; margin-top: 1rem; }
.site-footer .social { background: rgb(255 255 255 / .12); color: #fff; }
.site-footer .social:hover { background: #fff; color: var(--brand-deep); }
.foot-legal { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid rgb(255 255 255 / .15); font-size: .9rem; opacity: .8; }
.foot-legal p { margin: 0; }
.foot-admin { color: inherit; text-decoration: none; opacity: .55; transition: opacity .15s ease; }
.foot-admin:hover { opacity: 1; text-decoration: underline; }

/* azioni rapide */
.quick { display: none; }
.wa-fab { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #1fa855; color: #fff; box-shadow: 0 8px 24px rgb(0 0 0 / .25); transition: transform .2s; }
.wa-fab:hover { transform: scale(1.08); color: #fff; }
.wa-fab svg { width: 30px; height: 30px; }
@media (max-width: 700px) {
  body { padding-bottom: 68px; }
  .wa-fab { display: none; }
  .quick { position: fixed; inset: auto 0 0 0; z-index: 45; display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgb(0 0 0 / .08); }
  .quick a { display: grid; justify-items: center; gap: .1rem; padding: .55rem 0 .6rem; color: var(--brand-dark); text-decoration: none; font-size: .8rem; font-weight: 600; }
  .quick svg { width: 24px; height: 24px; }
  .hero-inner { padding-block: 3rem; }
  .hero::after { background: linear-gradient(180deg, rgb(10 40 8 / .75), rgb(10 40 8 / .85)); }
  .hero-actions .btn { width: 100%; }
}

/* banner consenso mappe */
.consent-bar { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 60; max-width: 760px; margin-inline: auto; display: flex; gap: 1rem 1.5rem; align-items: center; flex-wrap: wrap; padding: 1rem 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 40px rgb(0 0 0 / .22); font-size: .95rem; }
.consent-bar p { flex: 1 1 320px; margin: 0; }
.consent-actions { display: flex; gap: .6rem; flex: none; }
.consent-actions .btn { padding: .55rem 1.3rem; font-size: 1rem; }


/* ==========================================================================
   STILI DI STAMPA SCHEDA IMMOBILE (@media print)
   ========================================================================== */
@media print {
  /* Nascondi elementi di navigazione, bottoni, floating actions e form */
  .site-header,
  .quick,
  .wa-fab,
  .nav-toggle,
  .skip,
  .consent-bar,
  .site-footer,
  .hero-actions,
  .head-actions,
  .gallery-more,
  .listing-actions,
  .s.form-s,
  .s.cards.related,
  .s.map-s,
  .s.slider-s,
  .s.video-s,
  .s.gallery,
  .s.disclaimer-s,
  .btn,
  .btn-print-listing,
  .head-print-action {
    display: none !important;
  }

  body {
    background: #fff !important;
    color: #111 !important;
    font-size: 11pt !important;
    line-height: 1.4 !important;
  }

  .wrap {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  

  .page-head h1 {
    font-size: 1.7rem !important;
    color: #12410b !important;
    margin-bottom: 4px !important;
  }

  .page-lead {
    font-size: 1.1rem !important;
    color: #333 !important;
    margin-bottom: 8px !important;
  }

  .specs--lg li {
    background: #f4f7f3 !important;
    color: #12410b !important;
    border: 1px solid #dbe4d9 !important;
    font-size: 9pt !important;
    padding: 3px 8px !important;
  }

  .facts {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .fact {
    background: #fafcfa !important;
    border: 1px solid #e2e8e0 !important;
    padding: 8px !important;
  }

  /* Mostra fino a 4-6 foto principali della galleria per occupare bene il foglio */
  .gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    page-break-inside: avoid;
  }

  .gallery-grid a.shot:nth-child(n+7) {
    display: none !important;
  }

  .shot img {
    height: 120px !important;
    object-fit: cover !important;
  }
}

