/* ============================================================
   NUOVA ERA IMMOBILIARE — V2 · "Quiet Luxury Editoriale"
   CSS puro, nessuna build. Display: Fraunces · Corpo: Inter
   Identità cromatica originale: bianco/azzurro/blu brand
   ============================================================ */

:root {
  --bg: #fcfdff;
  --bg-2: #f4f7fb;
  --surface: #ffffff;
  --line: #e3e9f1;
  --line-strong: #c9d4e2;
  --ink: #1b2a44;
  --ink-soft: #304266;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --brand: #3b7db8;
  --brand-dark: #2e639b;
  --brand-deep: #1f4468;
  --azure-50: #f5fafe;
  --azure-100: #e8f2fb;
  --azure-200: #d2e6f6;
  --azure-300: #b0d3ee;
  --danger: #dc2626;
  --r-img: 14px;
  --r-ui: 10px;
  --shadow: 0 30px 70px -30px rgba(27, 42, 68, 0.28);
  --shadow-soft: 0 14px 40px -18px rgba(27, 42, 68, 0.16);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --max: 1240px;
  --nav-h: 84px;
  --pad: clamp(1.1rem, 4vw, 2.2rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1100px 520px at 85% -12%, rgba(59, 125, 184, 0.08), transparent 60%),
    radial-gradient(700px 380px at -5% 4%, rgba(59, 125, 184, 0.05), transparent 55%);
  z-index: 0;
}

main { position: relative; z-index: 1; }

img { display: block; max-width: 100%; }
/* <picture> trasparente al layout: l'<img> interno si comporta come prima.
   Serve al fallback AVIF→WebP (stesse immagini, solo più leggere). */
picture { display: contents; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font-body); }

::selection { background: var(--brand); color: #fff; }

/* barra di avanzamento lettura (iniettata da app.js) */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--brand), var(--brand-dark));
  z-index: 200;
  pointer-events: none;
  transition: width 0.1s linear;
}

/* ---------- tipografia ---------- */

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.display-xl { font-size: clamp(2.2rem, 6.2vw, 5.2rem); }
.display-lg { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.display-md { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }

.serif-italic {
  font-style: italic;
  font-weight: 500;
  color: var(--brand-dark);
}

.eyebrow {
  display: inline-flex;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.eyebrow .idx {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--brand);
}
.eyebrow::after {
  content: '';
  align-self: center;
  width: 34px;
  height: 1px;
  background: var(--brand);
  opacity: 0.55;
}
.center .eyebrow::before {
  content: '';
  align-self: center;
  width: 34px;
  height: 1px;
  background: var(--brand);
  opacity: 0.55;
}

.lead { color: var(--muted); font-weight: 300; font-size: 1rem; }
.small { font-size: 0.82rem; color: var(--muted); font-weight: 300; }

/* ---------- layout ---------- */

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(3.6rem, 8vw, 7rem) 0; position: relative; }
.section--tight { padding: clamp(2.2rem, 5vw, 3.6rem) 0; }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }

/* sezione con riga editoriale in testa */
.sec-rule { border-top: 1px solid var(--line); }

.section-head { margin-bottom: clamp(2rem, 4.5vw, 3.6rem); }
.section-head h2 { margin-top: 1.1rem; max-width: 18ch; }
.section-head.center h2 { margin-left: auto; margin-right: auto; }
.section-head .lead { margin-top: 1.1rem; max-width: 600px; }
.center .lead { margin-left: auto; margin-right: auto; }

.hairline { border: 0; border-top: 1px solid var(--line); }

/* ---------- bottoni ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.8rem;
  border-radius: var(--r-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  white-space: nowrap;
  position: relative;
}
.btn--gold {
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}
.btn--gold::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.35) 50%, transparent 60%);
  transform: translateX(-130%);
  transition: transform 0.7s ease;
  pointer-events: none;
}
.btn--gold:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn--gold:hover::after { transform: translateX(130%); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn--dark {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}
.btn--dark:hover { border-color: var(--brand); }
.btn--sm { padding: 0.62rem 1.15rem; font-size: 0.7rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: wait; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 0.35rem;
  transition: border-color 0.2s, color 0.2s;
}
.link-arrow:hover { color: var(--brand-dark); border-color: var(--brand); }

/* ---------- navbar ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(252, 253, 255, 0.68));
  backdrop-filter: blur(22px) saturate(1.6);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  border-bottom-color: rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 10px 34px -22px rgba(27, 42, 68, 0.35);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 1.5rem;
}
.nav__brand { display: flex; align-items: center; gap: 0.85rem; min-width: 0; }
.nav__brand img { height: 48px; width: auto; }
.nav__brand span {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: var(--ink);
}
.nav__links { display: flex; align-items: center; gap: 2.1rem; }
.nav__links a {
  white-space: nowrap;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.35rem 0;
  position: relative;
  transition: color 0.2s;
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  height: 1px;
  width: 100%;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__links a.is-active { color: var(--ink); }
.nav__links a.is-active::after { transform: scaleX(1); }
.nav__cta { display: flex; }

.nav__burger {
  display: none;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-ui);
  color: var(--ink);
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav__burger svg { width: 20px; height: 20px; }

.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 99;
  background:
    radial-gradient(120% 55% at 88% 0%, rgba(210, 230, 246, 0.6), transparent 60%),
    rgba(252, 253, 255, 0.97);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  padding: 1.4rem 1.5rem 8rem;
  display: none;
  flex-direction: column;
  overflow-y: auto;
  counter-reset: voce;
}
.mobile-menu.is-open { display: flex; animation: menu-in 0.3s ease; }
@keyframes menu-in { from { opacity: 0; } }
.mobile-menu a:not(.btn) {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
  padding: 1.15rem 0.2rem;
  border-bottom: 1px solid var(--azure-200);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.mobile-menu a:not(.btn)::before {
  counter-increment: voce;
  content: counter(voce, decimal-leading-zero);
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--brand);
}
.mobile-menu a:not(.btn)::after {
  content: '→';
  margin-left: auto;
  font-size: 1.05rem;
  color: var(--azure-300);
}
.mobile-menu a.is-active { color: var(--brand-dark); font-style: italic; }
.mobile-menu a.is-active::after { color: var(--brand-dark); }
.mobile-menu.is-open a:not(.btn) {
  opacity: 0;
  transform: translateX(-14px);
  animation: menu-item 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.mobile-menu.is-open a:not(.btn):nth-child(1) { animation-delay: 0.04s; }
.mobile-menu.is-open a:not(.btn):nth-child(2) { animation-delay: 0.09s; }
.mobile-menu.is-open a:not(.btn):nth-child(3) { animation-delay: 0.14s; }
.mobile-menu.is-open a:not(.btn):nth-child(4) { animation-delay: 0.19s; }
.mobile-menu.is-open a:not(.btn):nth-child(5) { animation-delay: 0.24s; }
@keyframes menu-item { to { opacity: 1; transform: none; } }
.mobile-menu .btn {
  margin-top: 1.8rem;
  width: 100%;
  padding: 1.05rem 1.2rem;
  border-radius: 16px;
  font-size: 0.78rem;
}
.mobile-menu.is-open .btn {
  opacity: 0;
  animation: menu-item 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

/* ---------- hero editoriale ---------- */

.hero {
  padding-top: calc(var(--nav-h) + clamp(2.5rem, 7vh, 5.5rem));
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
  position: relative;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  grid-template-areas:
    'intro media'
    'body  media';
  column-gap: clamp(2.5rem, 5vw, 5.5rem);
  align-items: center;
}
.hero__intro { grid-area: intro; align-self: end; }
.hero__body { grid-area: body; align-self: start; }
.hero__media { grid-area: media; }
/* i figli delle griglie non devono mai allargare il layout (immagini intrinseche) */
.hero__grid > *, .two-col > *, .contact-grid > *, .listings-layout > *,
.detail-layout > *, .grid-cards > *, .hero__collage > * { min-width: 0; }
/* Slogan: dimensione fluida calibrata perché ogni riga resti intera,
   senza spezzare la frase a capo su nessuna larghezza di schermo.
   Sopra 860px la colonna è metà viewport → scala dimezzata. */
.hero h1 {
  margin: 1.5rem 0 1.7rem;
  font-size: clamp(2rem, 5vw - 0.5rem, 3.6rem);
  line-height: 1.1;
}
.hero h1 .line { display: block; white-space: nowrap; }
.hero__text { max-width: 540px; }
.hero__text p + p { margin-top: 0.9rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem; margin: 2.4rem 0 0; }
.hero__note {
  margin-top: 1.6rem;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* chip di fiducia (liquid glass) */
.chips { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1.8rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 0.52rem 0.95rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.4));
  border: 1px solid rgba(255, 255, 255, 0.9);
  outline: 1px solid var(--line);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 6px 18px -10px rgba(27, 42, 68, 0.25);
}
.chip::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--azure-300), var(--brand));
  flex-shrink: 0;
}

/* collage: 1 verticale grande + colonna di 3 */
.hero__media { position: relative; }
.hero__collage {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-template-rows: repeat(3, 1fr);
  gap: 0.75rem;
  height: clamp(420px, 56vh, 600px);
}
.hero__collage .tile {
  border-radius: var(--r-img);
  overflow: hidden;
  background: var(--azure-100);
  border: 1px solid var(--line);
  will-change: transform;
  min-width: 0;
  min-height: 0;
}
.hero__collage .tile:nth-child(1) { grid-row: span 3; box-shadow: var(--shadow); }
.hero__collage .tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero__collage .tile:hover img { transform: scale(1.06); }

.hero__card {
  position: absolute;
  left: -1.6rem; bottom: 1.6rem;
  max-width: 340px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.6));
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border: 1px solid var(--line);
  border-radius: var(--r-img);
  padding: 1.05rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s, border-color 0.25s;
}
.hero__card:hover { transform: translateY(-3px); border-color: var(--azure-300); }
.hero__card .t {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hero__card .a { font-size: 0.72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero__card .p { font-family: var(--font-display); font-size: 1.1rem; color: var(--brand-dark); white-space: nowrap; }
.hero__card .m { font-size: 0.7rem; color: var(--muted); text-align: right; white-space: nowrap; }
.hero__card .label {
  font-size: 0.58rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 0.2rem; font-weight: 600;
}
.hero__card > div:first-child { min-width: 0; }
.hero__card > div:last-child { text-align: right; flex-shrink: 0; }

/* ---------- marquee slogan ---------- */

.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 1.1rem 0;
  background: var(--surface);
  position: relative;
  z-index: 1;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: flex;
  align-items: baseline;
  gap: 3.5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink-soft);
  white-space: nowrap;
}
.marquee__item em { color: var(--brand-dark); }
.marquee__item .dot { color: var(--azure-300); font-size: 0.8rem; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- come lavoriamo: 3 colonne editoriali ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}
.step {
  border-top: 1px solid var(--line-strong);
  padding-top: 1.5rem;
  position: relative;
}
.step::before {
  content: '';
  position: absolute;
  top: -1px; left: 0;
  width: 44px; height: 2px;
  background: var(--brand);
}
.step__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 3.2rem;
  line-height: 1;
  color: var(--azure-300);
  display: block;
  margin-bottom: 1.1rem;
}
.step h3 { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 0.6rem; }
.step p { font-size: 0.88rem; color: var(--muted); font-weight: 300; }

/* ---------- pannelli / form ---------- */

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-img);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  position: relative;
  box-shadow: var(--shadow-soft);
}
.panel--glow { box-shadow: var(--shadow); }
.panel--glow::before {
  content: '';
  position: absolute;
  top: 0; left: clamp(1.6rem, 3vw, 2.4rem); right: clamp(1.6rem, 3vw, 2.4rem);
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--azure-300));
  border-radius: 0 0 4px 4px;
}
.panel h3.form-title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; }
.panel .form-sub { font-size: 0.8rem; color: var(--muted); margin: 0.35rem 0 1.6rem; font-weight: 300; }

.field { display: flex; flex-direction: column; gap: 0.45rem; min-width: 0; }
.field label {
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.field select,
.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 300;
  padding: 0.6rem 0.1rem;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
}
.field select {
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 1.8rem;
}
.field select:focus, .field input:focus, .field textarea:focus { border-bottom-color: var(--brand); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field textarea { resize: none; }
.field .err { font-size: 0.72rem; color: var(--danger); }

.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
form .field { margin-bottom: 1.25rem; }
.form-note { font-size: 0.7rem; color: var(--muted-2); text-align: center; margin-top: 1rem; font-weight: 300; }
.form-note a { text-decoration: underline; }
.form-error {
  border: 1px solid #fca5a5;
  background: #fef2f2;
  color: #b91c1c;
  border-radius: 10px;
  padding: 0.7rem 1rem;
  font-size: 0.8rem;
  font-weight: 300;
  margin-bottom: 1rem;
}
.form-success { text-align: center; padding: 2.5rem 1rem; }
.form-success .check {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--azure-100);
  border: 1px solid var(--brand);
  color: var(--brand-dark);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.2rem;
  font-size: 1.4rem;
}
.form-success h3 { margin-bottom: 0.5rem; }
.form-success p { font-size: 0.85rem; color: var(--muted); font-weight: 300; }

/* ---------- barra di ricerca flottante ---------- */

.searchbar {
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.92), rgba(245, 250, 254, 0.75));
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.85);
  outline: 1px solid var(--line);
  border-radius: var(--r-img);
  padding: 1.6rem 1.8rem;
  display: grid;
  grid-template-columns: auto 1fr 1fr auto;
  gap: clamp(1.4rem, 2.5vw, 2.2rem);
  align-items: end;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), var(--shadow);
}
.searchbar__intro {
  align-self: center;
  padding-right: clamp(1rem, 2vw, 1.8rem);
  border-right: 1px solid var(--azure-200);
}
.searchbar__intro .eyebrow { font-size: 0.6rem; }
.searchbar__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--ink);
  margin-top: 0.35rem;
  white-space: nowrap;
  line-height: 1.15;
}
/* i campi della searchbar non ereditano il margine dei form:
   così select e bottone Cerca restano allineati sulla stessa linea */
.searchbar .field { margin-bottom: 0; }
.searchbar .btn { padding: 0.85rem 1.8rem; }
.searchbar .btn svg { width: 14px; height: 14px; }

/* ---------- filtri annunci: barra glass con categorie ---------- */

.filterbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.6rem 0.7rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(245, 250, 254, 0.6));
  backdrop-filter: blur(22px) saturate(1.6);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.9);
  outline: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 18px 44px -22px rgba(27, 42, 68, 0.3);
  margin-bottom: clamp(1.8rem, 4vw, 2.8rem);
}
.seg {
  display: flex;
  gap: 0.2rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: rgba(27, 42, 68, 0.05);
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 100%;
}
.seg::-webkit-scrollbar { display: none; }
.seg__btn {
  border: 0;
  background: transparent;
  padding: 0.58rem 1.2rem;
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
}
.seg__btn:hover { color: var(--ink); }
.seg__btn.is-active {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 8px 18px -8px rgba(27, 42, 68, 0.55);
}
.filterbar__right { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.filterbar .pill-row { flex-wrap: nowrap; gap: 0.25rem; }
.filterbar .pill {
  flex: none;
  min-width: 40px;
  padding: 0.5rem 0.65rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.filterbar .pill:hover { color: var(--ink); }
.filterbar .pill.is-active { background: var(--brand); color: #fff; }
.filterbar select {
  border: 0;
  background-color: transparent;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  cursor: pointer;
  outline: none;
  appearance: none;
  padding: 0.5rem 1.6rem 0.5rem 0.6rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 10px) 55%, calc(100% - 5px) 55%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.filterbar__divider { width: 1px; height: 22px; background: var(--line-strong); flex-shrink: 0; }

/* ---------- card annunci (editoriali) ---------- */

.grid-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.2rem);
  row-gap: clamp(2.2rem, 4vw, 3rem);
}

.card {
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.card:hover { transform: translateY(-6px); }
.card__img {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  border-radius: var(--r-img);
  background: var(--azure-100);
  border: 1px solid var(--line);
  transition: box-shadow 0.35s;
}
.card:hover .card__img { box-shadow: var(--shadow); }
.card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  scale: 1.02;
  transition: scale 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.card:hover .card__img img { scale: 1.1; }

/* parallasse scroll-driven dentro la cornice (solo browser che la supportano) */
@supports (animation-timeline: view()) {
  .card__img img {
    scale: 1.12;
    animation: card-drift linear both;
    animation-timeline: view();
    animation-range: entry 0% exit 100%;
  }
  .card:hover .card__img img { scale: 1.18; }
  @keyframes card-drift {
    from { transform: translateY(-3.5%); }
    to { transform: translateY(3.5%); }
  }
}
.card__img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(27, 42, 68, 0.48), transparent 40%);
}
.card__badges { position: absolute; top: 0.95rem; left: 0.95rem; display: flex; gap: 0.4rem; z-index: 2; }
.badge {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.34rem 0.72rem;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.badge--gold {
  background: linear-gradient(135deg, #4a90c7, var(--brand-dark));
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(46, 99, 155, 0.6);
}
.badge--dark { background: rgba(255, 255, 255, 0.92); color: var(--ink); border: 1px solid var(--line); }
.card__energy {
  position: absolute; top: 0.95rem; right: 0.95rem; z-index: 2;
  font-size: 0.6rem; font-weight: 600; letter-spacing: 0.08em;
  padding: 0.3rem 0.6rem; border-radius: 7px;
  background: rgba(255, 255, 255, 0.92); color: var(--ink);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.card__zona {
  position: absolute; bottom: 0.85rem; left: 1rem; z-index: 2;
  font-size: 0.62rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
}
.card__body { padding: 1.15rem 0.15rem 0; display: flex; flex-direction: column; flex: 1; }
.card__price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
  display: flex;
  align-items: baseline;
}
.card__price .da { font-family: var(--font-body); font-size: 0.75rem; color: var(--muted); margin-right: 0.35rem; font-weight: 400; }
.card__title {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 500;
  color: var(--ink);
  margin: 0.4rem 0 0.3rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.25s;
}
.card:hover .card__title { color: var(--brand-dark); }

/* freccia "vai al dettaglio" che emerge al passaggio */
.card__go {
  position: absolute;
  right: 0.9rem; bottom: 0.85rem;
  z-index: 2;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(232, 242, 251, 0.85));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 26px -10px rgba(27, 42, 68, 0.5);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.card:hover .card__go { opacity: 1; transform: none; }
.card__go svg { width: 15px; height: 15px; }
.card__addr { font-size: 0.76rem; color: var(--muted); font-weight: 300; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}
.card__meta span { white-space: nowrap; }
.card__meta .dot { color: var(--line-strong); }

/* Immobili "catalogo" (es. Easy Casa): la slide si legge INTERA, non viene
   ritagliata — object-fit: contain con sfondo chiaro che fa da cornice. */
.card__img--contain { background: #f1eee7; }
.card__img--contain img {
  object-fit: contain !important;
  scale: 1 !important;
  animation: none !important;
  transform: none !important;
}
.gallery--contain button,
.carousel.is-contain .carousel__track button { background: #f1eee7; }
.gallery--contain button img,
.carousel.is-contain .carousel__track img { object-fit: contain !important; }
.gallery--contain button:hover img { transform: none; }

/* prima card in evidenza sulla home: doppia larghezza */
#featured-grid .card:first-child { grid-column: span 2; }
#featured-grid .card:first-child .card__img { aspect-ratio: 16 / 8.4; }
#featured-grid .card:first-child .card__price { font-size: 1.9rem; }
#featured-grid .card:first-child .card__title { font-size: 1.05rem; }

/* ---------- filosofia: colonne con filetto ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.4rem, 3vw, 2.6rem);
}
.feature {
  border-top: 1px solid var(--line-strong);
  padding-top: 1.4rem;
  position: relative;
}
.feature::before {
  content: '';
  position: absolute;
  top: -1px; left: 0;
  width: 44px; height: 2px;
  background: var(--brand);
}
.feature__icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--azure-100);
  border: 1px solid var(--azure-200);
  color: var(--brand-dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
}
.feature__icon svg { width: 17px; height: 17px; }
.feature h3 { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 0.55rem; }
.feature p { font-size: 0.85rem; color: var(--muted); font-weight: 300; }

/* ---------- banda 360° (citazione editoriale) ---------- */

.band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(760px 320px at 50% 0%, rgba(59, 125, 184, 0.09), transparent 65%),
    var(--azure-50);
}
.band .inner { max-width: 820px; margin: 0 auto; text-align: center; position: relative; }
.band .inner::before {
  content: '“';
  font-family: var(--font-display);
  font-size: clamp(5rem, 10vw, 8rem);
  line-height: 0.6;
  color: var(--azure-200);
  display: block;
  margin-bottom: 0.5rem;
}
.band p.lead { margin-top: 1.6rem; font-size: 1.05rem; }

/* ---------- CTA banner (blu profondo) ---------- */

.cta-banner {
  border-radius: calc(var(--r-img) + 8px);
  background:
    radial-gradient(720px 300px at 12% -10%, rgba(111, 172, 217, 0.28), transparent 60%),
    linear-gradient(150deg, var(--brand-dark), var(--brand-deep));
  padding: clamp(2.4rem, 6vw, 4.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}
.cta-banner::after {
  content: '';
  position: absolute;
  right: -70px; bottom: -110px;
  width: 300px; height: 300px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  pointer-events: none;
}
.cta-banner h2 { margin: 0.9rem 0 0.8rem; color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.cta-banner .lead { max-width: 500px; font-size: 0.94rem; color: var(--azure-200); }
.cta-banner .eyebrow { color: var(--azure-300); }
.cta-banner .eyebrow::after { background: var(--azure-300); }
.cta-banner .eyebrow .idx { color: var(--azure-300); }
.cta-banner .link-arrow { color: var(--azure-200); border-color: rgba(255, 255, 255, 0.3); }
.cta-banner .link-arrow:hover { color: #fff; border-color: #fff; }
.cta-banner__actions { display: flex; gap: 0.9rem; flex-wrap: wrap; position: relative; z-index: 1; }
.cta-banner .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.cta-banner .btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.cta-banner .btn--gold { background: #fff; color: var(--brand-deep); }
.cta-banner .btn--gold:hover { background: var(--azure-100); box-shadow: none; }

/* ---------- pagina annunci ---------- */

.listings-layout { display: grid; grid-template-columns: 260px 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.filters { position: sticky; top: calc(var(--nav-h) + 16px); display: flex; flex-direction: column; gap: 1.6rem; }
.filters .group > p {
  font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 600; margin-bottom: 0.8rem;
}
.check-row { display: flex; align-items: center; gap: 0.65rem; padding: 0.3rem 0; cursor: pointer; font-size: 0.88rem; font-weight: 300; color: var(--ink-soft); }
.check-row input {
  appearance: none;
  width: 17px; height: 17px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: all 0.15s;
}
.check-row input[type="radio"] { border-radius: 50%; }
.check-row input:checked { background: var(--brand); border-color: var(--brand); }
.check-row input:checked::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle, #fff 25%, transparent 30%);
}
.check-row input[type="checkbox"]:checked::after {
  content: '✓';
  background: none;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.range-value { font-family: var(--font-display); font-size: 1.1rem; color: var(--brand-dark); margin-bottom: 0.7rem; }
input[type="range"] { width: 100%; accent-color: var(--brand); background: transparent; }
.range-limits { display: flex; justify-content: space-between; font-size: 0.66rem; color: var(--muted-2); margin-top: 0.3rem; }
.pill-row { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.pill {
  flex: 1;
  min-width: 44px;
  padding: 0.5rem 0.4rem;
  border-radius: 7px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.76rem;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}
.pill:hover { border-color: var(--brand); color: var(--ink); }
.pill.is-active { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }

.listings-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.9rem;
  position: relative;
}
.listings-head::after {
  content: '';
  position: absolute;
  left: 0; bottom: -1px;
  width: 64px; height: 2px;
  background: var(--brand);
}
.listings-head .crumbs { font-size: 0.64rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 0.6rem; }
.crumbs a:hover { color: var(--brand-dark); }
.listings-head h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.listings-head select {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-ui);
  color: var(--ink);
  font-size: 0.82rem;
  padding: 0.68rem 2.2rem 0.68rem 1rem;
  appearance: none;
  outline: none;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.filters-toggle { display: none; }

.empty-state { text-align: center; padding: 4rem 1rem; }
.empty-state h3 { margin-bottom: 0.6rem; }
.empty-state p { color: var(--muted); font-size: 0.9rem; font-weight: 300; margin-bottom: 1.4rem; }

/* drawer filtri mobile */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(27, 42, 68, 0.4);
  display: none;
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 121;
  width: min(320px, 88vw);
  background: var(--surface);
  border-left: 1px solid var(--line);
  padding: 1.6rem 1.4rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.drawer.is-open { transform: translateX(0); }
.drawer-backdrop.is-open { display: block; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.drawer__head button { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 1.3rem; }

/* ---------- pagina dettaglio ---------- */

.detail-layout { display: grid; grid-template-columns: 1fr 350px; gap: clamp(2rem, 4vw, 3rem); align-items: start; }

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 195px);
  gap: 0.65rem;
  border-radius: var(--r-img);
  overflow: hidden;
  margin-bottom: 2.2rem;
  box-shadow: var(--shadow-soft);
}
.gallery button {
  border: 0; padding: 0; cursor: zoom-in;
  position: relative; overflow: hidden;
  background: var(--azure-100);
}
.gallery button img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.gallery button:hover img { transform: scale(1.06); }
.gallery button:first-child { grid-column: span 2; grid-row: span 2; }
.gallery .more-overlay {
  position: absolute; inset: 0;
  background: rgba(27, 42, 68, 0.55);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
}

/* carosello mobile */
.carousel { display: none; margin-bottom: 1.6rem; }
.carousel__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  border-radius: var(--r-img);
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track button {
  flex-shrink: 0; width: 100%;
  scroll-snap-align: center;
  border: 0; padding: 0;
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
  background: var(--azure-100);
}
.carousel__track img { width: 100%; height: 100%; object-fit: cover; }
.carousel__bar { display: flex; align-items: center; justify-content: space-between; margin-top: 0.7rem; }
.carousel__count { font-size: 0.74rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.detail-title-row { margin-bottom: 1.6rem; }
.detail-title-row .badges { display: flex; gap: 0.45rem; margin-bottom: 0.9rem; }
.detail-title-row h1 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
.detail-title-row .addr { margin-top: 0.7rem; font-size: 0.86rem; color: var(--muted); font-weight: 300; }
.detail-title-row .addr a:hover { color: var(--brand-dark); }

.meta-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 2.4rem;
  text-align: center;
}
.meta-strip > div { border-left: 1px solid var(--line); padding: 0 0.5rem; }
.meta-strip > div:first-child { border-left: 0; }
.meta-strip .label { font-size: 0.56rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 0.3rem; }
.meta-strip .value { font-family: var(--font-display); font-size: 1.02rem; color: var(--ink); }

.detail-desc h2, .detail-block h2 { font-size: 1.35rem; margin-bottom: 1rem; }
.detail-desc p { white-space: pre-line; color: var(--ink-soft); font-weight: 300; font-size: 0.93rem; }
.detail-block { margin-top: 2.6rem; }
.info-box {
  background: var(--azure-50);
  border: 1px solid var(--azure-200);
  border-radius: var(--r-img);
  padding: 1.3rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--ink-soft);
}
.info-box strong { color: var(--brand-dark); font-weight: 600; }

.sidebar { position: sticky; top: calc(var(--nav-h) + 16px); display: flex; flex-direction: column; gap: 1.2rem; }
.price-card .label { font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.45rem; font-weight: 600; }
.price-card .price { font-family: var(--font-display); font-size: 2.2rem; color: var(--ink); }
.price-card .price .da { font-family: var(--font-body); font-size: 0.9rem; color: var(--muted); margin-right: 0.4rem; }

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed; inset: 0; z-index: 210;
  background: rgba(15, 23, 42, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 84vh;
  object-fit: contain;
  user-select: none;
}
.lightbox__btn {
  position: absolute;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.15rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.18); }
.lightbox__close { top: 1.2rem; right: 1.2rem; }
.lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__count {
  position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%);
  font-size: 0.78rem; letter-spacing: 0.16em; color: rgba(255, 255, 255, 0.75);
}

/* ---------- FAQ ---------- */

.faq { display: flex; flex-direction: column; }
.faq details {
  border-bottom: 1px solid var(--line);
  transition: background 0.25s;
}
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.35rem 0.3rem;
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: color 0.2s;
}
.faq summary:hover { color: var(--brand-dark); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--brand);
  transition: transform 0.25s;
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0.3rem 1.4rem; font-size: 0.88rem; color: var(--muted); font-weight: 300; max-width: 60ch; }

/* ---------- team ---------- */

.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.4rem, 3vw, 2.2rem); max-width: 720px; margin: 0 auto; }
.team-card {
  text-align: center;
  padding: 2.6rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--r-img);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.team-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 86px;
  background: linear-gradient(180deg, var(--azure-100), transparent);
}
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.team-card img {
  width: 120px; height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.4rem;
  border: 3px solid #fff;
  outline: 1px solid var(--azure-300);
  position: relative;
}
.team-card h3 { font-size: 1.35rem; }
.team-card .role {
  margin-top: 0.55rem;
  font-size: 0.62rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--brand-dark); font-weight: 600;
}

/* pillars chi siamo */
.pillars-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem, 2.5vw, 2rem); }
.pillar {
  border-top: 1px solid var(--line-strong);
  padding-top: 1.3rem;
  position: relative;
}
.pillar::before {
  content: '';
  position: absolute;
  top: -1px; left: 0;
  width: 38px; height: 2px;
  background: var(--brand);
}
.pillar h3 { font-family: var(--font-display); font-size: 1.1rem; margin: 0.85rem 0 0.45rem; }
.pillar p { font-size: 0.82rem; color: var(--muted); font-weight: 300; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.two-col .prose p + p { margin-top: 0.9rem; }
.prose p { color: var(--muted); font-weight: 300; font-size: 0.95rem; }
.prose .em { font-style: italic; color: var(--brand-dark); }

/* ---------- contatti ---------- */

.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(1.4rem, 3vw, 2.2rem); align-items: stretch; }
.contact-rows { display: flex; flex-direction: column; gap: 1.15rem; }
.contact-row { display: flex; gap: 0.95rem; align-items: flex-start; }
.contact-row .ic {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--azure-100);
  border: 1px solid var(--azure-200);
  color: var(--brand-dark);
  display: flex; align-items: center; justify-content: center;
}
.contact-row .ic svg { width: 15px; height: 15px; }
.contact-row .k { font-size: 0.56rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 0.15rem; font-weight: 600; }
.contact-row .v { font-size: 0.9rem; font-weight: 300; color: var(--ink-soft); word-break: break-word; }
.contact-row a.v:hover { color: var(--brand-dark); }
.direct-box {
  margin-top: 1.5rem;
  background: linear-gradient(150deg, var(--azure-50), var(--azure-100));
  border: 1px solid var(--azure-200);
  border-radius: var(--r-img);
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.direct-box .t { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); }
.direct-box .s { font-size: 0.8rem; color: var(--muted); font-weight: 300; margin: 0.35rem 0 1.1rem; }
.direct-box .row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }

/* ---------- pagine legali ---------- */

.legal { max-width: 760px; margin: 0 auto; }
.legal h1 { margin-bottom: 0.4rem; }
.legal .updated { font-size: 0.74rem; color: var(--muted-2); margin-bottom: 2.5rem; }
.legal h2 { font-size: 1.25rem; margin: 2.4rem 0 0.8rem; }
.legal p, .legal li { font-size: 0.88rem; color: var(--muted); font-weight: 300; }
.legal p { margin-bottom: 0.9rem; }
.legal ul { padding-left: 1.3rem; margin-bottom: 1rem; display: flex; flex-direction: column; gap: 0.45rem; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--brand-dark); }
.legal strong { color: var(--ink-soft); font-weight: 600; }
.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  margin-bottom: 1.2rem;
  border: 1px solid var(--line);
}
.legal th, .legal td { text-align: left; padding: 0.65rem 0.8rem; border-bottom: 1px solid var(--line); color: var(--muted); font-weight: 300; vertical-align: top; }
.legal th { background: var(--azure-50); font-weight: 600; color: var(--ink-soft); }
.legal .table-scroll { overflow-x: auto; }

/* ---------- footer editoriale (blu profondo) ---------- */

.footer {
  background: linear-gradient(170deg, var(--brand-deep), #16334f);
  color: #fff;
  margin-top: clamp(3rem, 7vw, 5.5rem);
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  right: -90px; top: -140px;
  width: 380px; height: 380px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  pointer-events: none;
}
.footer__claim {
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}
.footer__claim p {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4.2vw, 3.1rem);
  line-height: 1.18;
  color: var(--azure-200);
  max-width: 22ch;
}
.footer__claim p em { color: #fff; }
.footer__main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 2.5rem;
  padding: clamp(2.2rem, 4vw, 3rem) 0 2.5rem;
}
.footer__brand img { height: 58px; filter: brightness(0) invert(1); opacity: 0.92; margin-bottom: 1rem; }
.footer__brand .name { font-family: var(--font-display); font-size: 1.08rem; color: #fff; }
.footer__brand .claim { display: none; }
.footer h4 {
  font-size: 0.6rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--azure-300); font-weight: 600; margin-bottom: 1.1rem;
  font-family: var(--font-body);
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer ul a { font-size: 0.86rem; color: var(--azure-200); font-weight: 300; transition: color 0.2s; }
.footer ul a:hover { color: #fff; }
.footer__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  padding: 1.6rem 0 2rem;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer__legal .info { font-size: 0.7rem; color: var(--azure-300); font-weight: 300; line-height: 1.8; }
.footer__legal .links { display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; }
.footer__legal .links a, .footer__legal .links button {
  font-size: 0.72rem; color: var(--azure-300);
  background: none; border: none; cursor: pointer;
  transition: color 0.2s;
  white-space: nowrap;
}
.footer__legal .links a:hover, .footer__legal .links button:hover { color: #fff; }

/* ---------- cookie: banner liquid glass + centro preferenze ---------- */

.cookie-banner {
  position: fixed;
  bottom: 1.2rem;
  left: 50%;
  z-index: 160;
  width: min(660px, calc(100vw - 1.6rem));
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.9), rgba(245, 250, 254, 0.72));
  backdrop-filter: blur(26px) saturate(1.6);
  -webkit-backdrop-filter: blur(26px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.95);
  outline: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.4rem 1.6rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), var(--shadow);
  display: none;
  opacity: 0;
  transform: translateX(-50%) translateY(24px);
}
.cookie-banner.is-visible {
  display: block;
  animation: cookie-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}
@keyframes cookie-in {
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.cookie-banner__title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--ink);
  margin-bottom: 0.3rem;
}
.cookie-banner__text { font-size: 0.8rem; color: var(--muted); font-weight: 300; margin-bottom: 1.05rem; max-width: 56ch; }
.cookie-banner__text a { text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner .actions { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.cookie-banner__custom {
  background: none;
  border: none;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
  margin-left: auto;
  padding: 0.5rem 0;
  transition: color 0.2s;
}
.cookie-banner__custom:hover { color: var(--brand-dark); }

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 230;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.cookie-modal.is-open { display: flex; }
.cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(27, 42, 68, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.cookie-modal__card {
  position: relative;
  width: min(560px, 100%);
  max-height: min(86vh, 700px);
  overflow-y: auto;
  border-radius: 26px;
  padding: clamp(1.6rem, 4vw, 2.4rem);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(245, 250, 254, 0.9));
  backdrop-filter: blur(30px) saturate(1.5);
  -webkit-backdrop-filter: blur(30px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), var(--shadow);
  animation: modal-in 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(26px) scale(0.97); }
}
.cookie-modal__card h3 { font-size: 1.7rem; margin-top: 0.7rem; }
.cookie-modal__intro { font-size: 0.84rem; color: var(--muted); font-weight: 300; margin: 0.7rem 0 1.5rem; }
.cookie-modal__close {
  position: absolute;
  top: 1.1rem; right: 1.1rem;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.cookie-modal__close:hover { color: var(--ink); border-color: var(--line-strong); }
.cookie-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}
.cookie-opt .t { font-weight: 600; font-size: 0.94rem; color: var(--ink); }
.cookie-opt .d { font-size: 0.78rem; color: var(--muted); font-weight: 300; margin-top: 0.25rem; }
.cookie-opt__always {
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brand-dark);
  background: var(--azure-100);
  border: 1px solid var(--azure-200);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}
.cookie-modal__actions { display: flex; gap: 0.7rem; justify-content: flex-end; margin-top: 1.5rem; flex-wrap: wrap; }

/* interruttore (switch) */
.switch { cursor: pointer; flex-shrink: 0; }
.switch input { display: none; }
.switch__track {
  display: block;
  width: 48px; height: 27px;
  border-radius: 999px;
  background: var(--line-strong);
  position: relative;
  transition: background 0.25s;
  box-shadow: inset 0 2px 4px rgba(27, 42, 68, 0.12);
}
.switch__thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 21px; height: 21px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(27, 42, 68, 0.3);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.switch input:checked + .switch__track { background: linear-gradient(135deg, #4a90c7, var(--brand-dark)); }
.switch input:checked + .switch__track .switch__thumb { transform: translateX(21px); }

/* ---------- fab contatto (apre la scelta WhatsApp / chiamata) ---------- */

.fab {
  position: fixed;
  bottom: 1.4rem; right: 1.4rem;
  z-index: 96;
  width: 54px; height: 54px;
  border: 0;
  padding: 0;
  cursor: pointer;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 32px -10px rgba(27, 42, 68, 0.5);
  transition: transform 0.25s, background 0.25s;
}
.fab:hover { transform: scale(1.08); background: var(--brand-dark); }
.fab svg { width: 22px; height: 22px; }
.fab__icon-close { display: none; }
body.contact-open .fab { background: var(--brand-dark); }
body.contact-open .fab .fab__icon-contact { display: none; }
body.contact-open .fab .fab__icon-close { display: block; }

/* menu di scelta rapida — pillole WhatsApp + Chiama */
.contact-menu__backdrop {
  position: fixed; inset: 0;
  z-index: 93;
  background: transparent;
  display: none;
}
body.contact-open .contact-menu__backdrop { display: block; }
.contact-menu {
  position: fixed;
  right: 1.5rem;
  bottom: 5.6rem;
  z-index: 115;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-end;
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1), transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
body.contact-open .contact-menu { opacity: 1; transform: none; pointer-events: auto; }
.contact-opt {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  padding: 0.5rem 0.6rem 0.5rem 1.15rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  transition: border-color 0.2s, transform 0.2s;
}
.contact-opt:hover { transform: translateX(-3px); }
.contact-opt--wa:hover { border-color: #25D366; }
.contact-opt--call:hover { border-color: var(--ink); }
.contact-opt__ic {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.contact-opt__ic svg { width: 17px; height: 17px; }
.contact-opt__ic--wa { background: #25D366; }
.contact-opt__ic--call { background: var(--ink); }

/* ---------- tab bar mobile (stile app) ---------- */

.tabbar {
  position: fixed;
  left: 0.7rem; right: 0.7rem;
  bottom: calc(0.7rem + env(safe-area-inset-bottom));
  z-index: 110;
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.9rem;
  border-radius: 26px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.92), rgba(232, 242, 251, 0.8));
  backdrop-filter: blur(26px) saturate(1.6);
  -webkit-backdrop-filter: blur(26px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.95);
  outline: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 20px 50px -16px rgba(27, 42, 68, 0.45);
}
.tabbar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.24rem;
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.25rem 0.45rem;
  position: relative;
  transition: color 0.2s;
}
.tabbar__item svg { width: 21px; height: 21px; }
.tabbar__item.is-active { color: var(--brand-dark); }
.tabbar__item.is-active::before {
  content: '';
  position: absolute;
  top: -0.62rem;
  width: 18px; height: 3px;
  border-radius: 3px;
  background: var(--brand);
}
.tabbar__call {
  width: 56px; height: 56px;
  padding: 0;
  cursor: pointer;
  border-radius: 50%;
  flex-shrink: 0;
  transform: translateY(-16px);
  background: linear-gradient(135deg, #4a90c7, var(--brand-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px -8px rgba(46, 99, 155, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  border: 4px solid rgba(255, 255, 255, 0.92);
  transition: transform 0.2s;
}
.tabbar__call svg { width: 22px; height: 22px; }
body.contact-open .tabbar__call { transform: translateY(-16px) rotate(90deg); }

/* ---------- reveal on scroll ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: 0.12s; }
.js .reveal[data-delay="2"] { transition-delay: 0.24s; }
.js .reveal[data-delay="3"] { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   LIQUID GLASS AZZURRINO — moduli in vetro con bagliore
   che segue il mouse (classe .glow aggiunta da app.js)
   ============================================================ */

.panel, .team-card, .direct-box, .info-box, .faq details {
  background:
    radial-gradient(120% 140% at 15% 0%, rgba(232, 242, 251, 0.85), rgba(255, 255, 255, 0.65) 45%, rgba(210, 230, 246, 0.5));
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.95);
  outline: 1px solid var(--azure-200);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 22px 55px -28px rgba(27, 42, 68, 0.3);
}

/* FAQ: da righe editoriali a card di vetro */
.faq { gap: 0.7rem; }
.faq details { border-radius: 16px; }
.faq details:first-child { border-top: 1px solid rgba(255, 255, 255, 0.95); }
.faq summary { padding: 1.2rem 1.4rem; }
.faq details p { padding: 0 1.4rem 1.3rem; }

.info-box { border-radius: var(--r-img); }

/* bagliore che insegue il cursore */
.glow { position: relative; overflow: hidden; }
.glow::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s ease;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(111, 172, 217, 0.28), rgba(176, 211, 238, 0.1) 45%, transparent 70%);
  z-index: 0;
}
.glow:hover::after { opacity: 1; }
.glow > * { position: relative; z-index: 1; }

/* ============================================================
   PAGINA IMMOBILE — interni premium
   ============================================================ */

/* galleria: badge conteggio foto in vetro */
.gallery { grid-template-rows: repeat(2, 205px); gap: 0.7rem; border-radius: calc(var(--r-img) + 4px); }
.gallery__count {
  position: absolute;
  left: 1rem; bottom: 1rem;
  z-index: 2;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.55));
  backdrop-filter: blur(12px) saturate(1.5);
  -webkit-backdrop-filter: blur(12px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 20px -10px rgba(27, 42, 68, 0.4);
  pointer-events: none;
}

/* meta-strip: da riga con filetti a pannello di vetro con icone */
.meta-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.4rem;
  padding: 1.15rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.95);
  outline: 1px solid var(--azure-200);
  border-radius: var(--r-img);
  background: radial-gradient(120% 150% at 12% 0%, rgba(232, 242, 251, 0.85), rgba(255, 255, 255, 0.6) 50%, rgba(210, 230, 246, 0.5));
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 18px 44px -26px rgba(27, 42, 68, 0.3);
  margin-bottom: 2.4rem;
  text-align: center;
}
.meta-strip > div { border-left: 1px solid var(--azure-200); padding: 0.2rem 0.4rem; }
.meta-strip > div:first-child { border-left: 0; }
.meta-strip .mico {
  width: 30px; height: 30px;
  margin: 0 auto 0.4rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--azure-200);
  color: var(--brand-dark);
  display: flex; align-items: center; justify-content: center;
}
.meta-strip .mico svg { width: 13px; height: 13px; }
.meta-strip .label { font-size: 0.54rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.2rem; font-weight: 600; }
.meta-strip .value { font-family: var(--font-display); font-size: 1rem; color: var(--ink); }

/* scheda prezzo: vetro azzurro intenso */
.price-card {
  background:
    radial-gradient(130% 160% at 15% 0%, rgba(210, 230, 246, 0.9), rgba(232, 242, 251, 0.7) 55%, rgba(255, 255, 255, 0.6)) !important;
}
.price-card .price { font-size: 2.4rem; }

/* scheda agente */
.agent-card { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.4rem; }
.agent-card img {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  outline: 1px solid var(--azure-300);
  flex-shrink: 0;
}
.agent-card__info { min-width: 0; flex: 1; }
.agent-card__info .t { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); }
.agent-card__info .s { font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brand-dark); font-weight: 600; margin-top: 0.15rem; }
.agent-card__actions { display: flex; gap: 0.5rem; flex-shrink: 0; }
.agent-card__actions a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.agent-card__actions a:hover { background: var(--brand-dark); transform: translateY(-2px); }
.agent-card__actions svg { width: 15px; height: 15px; }

/* barra prezzo fissa su mobile */
.detail-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 95;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.88), rgba(232, 242, 251, 0.78));
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border-top: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 -14px 40px -20px rgba(27, 42, 68, 0.35);
}
.detail-bar .label { font-size: 0.54rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.detail-bar .p { font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); line-height: 1.15; white-space: nowrap; }
.detail-bar .p .da { font-family: var(--font-body); font-size: 0.75rem; color: var(--muted); margin-right: 0.3rem; }

/* ---------- responsive ---------- */

@media (max-width: 1120px) {
  .nav__brand span { display: none; }
  .nav__links { gap: 1.4rem; }
}

@media (max-width: 1020px) {
  .grid-cards { grid-template-columns: repeat(2, 1fr); }
  #featured-grid .card:first-child { grid-column: span 2; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .detail-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer__main { grid-template-columns: 1fr 1fr; }
  /* barra prezzo mobile: visibile quando la sidebar non è più affiancata */
  .detail-bar { display: flex; }
  body:has(.detail-bar) .fab { bottom: 5.6rem; }
  body:has(.detail-bar) .footer { padding-bottom: 4.5rem; }
}

@media (max-width: 1020px) and (min-width: 861px) {
  .meta-strip { grid-template-columns: repeat(6, 1fr); }
}

@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }

  /* --- esperienza app: tab bar, niente fab, spazi per le barre --- */
  .tabbar { display: flex; }
  .fab { display: none !important; }
  /* menu contatti: centrato sopra la tab bar */
  .contact-menu {
    right: 0; left: 0;
    bottom: calc(6.6rem + env(safe-area-inset-bottom));
    align-items: center;
    transform-origin: bottom center;
  }
  .footer { padding-bottom: 5.6rem; }
  .cookie-banner { bottom: calc(5.9rem + env(safe-area-inset-bottom)); }
  .detail-bar {
    left: 0.7rem; right: 0.7rem;
    bottom: calc(5.4rem + env(safe-area-inset-bottom));
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.95);
    outline: 1px solid var(--line);
  }
  body:has(.detail-bar) .footer { padding-bottom: 10rem; }

  /* --- hero: intro → foto a swipe → testo --- */
  .hero__grid {
    grid-template-columns: 1fr;
    grid-template-areas: 'intro' 'media' 'body';
    row-gap: 1.5rem;
  }
  .hero { padding-top: calc(var(--nav-h) + 1.6rem); }
  .hero h1 { font-size: clamp(2.05rem, 1rem + 4.9vw, 3.4rem); margin-bottom: 0; }
  .hero__text { margin-top: 0.4rem; }
  .hero__collage {
    display: flex;
    height: auto;
    gap: 0.8rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin: 0 calc(-1 * var(--pad));
    padding: 0 var(--pad) 0.4rem;
  }
  .hero__collage::-webkit-scrollbar { display: none; }
  .hero__collage .tile {
    flex: 0 0 80%;
    aspect-ratio: 4 / 3.2;
    scroll-snap-align: center;
    margin: 0 !important;
    grid-row: auto;
  }
  .hero__card { position: static; max-width: none; margin-top: 0.9rem; }

  /* --- caroselli a swipe: in evidenza e simili --- */
  #featured-grid, #similar-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    gap: 1rem;
    margin: 0 calc(-1 * var(--pad));
    padding: 0 var(--pad) 0.6rem;
  }
  #featured-grid::-webkit-scrollbar, #similar-grid::-webkit-scrollbar { display: none; }
  #featured-grid .card, #similar-grid .card {
    flex: 0 0 82%;
    scroll-snap-align: center;
  }
  #featured-grid .card:first-child { grid-column: auto; }
  #featured-grid .card:first-child .card__img { aspect-ratio: 4 / 3; }
  #featured-grid .card:first-child .card__price { font-size: 1.5rem; }
  #featured-grid .card:first-child .card__title { font-size: 1.06rem; }

  /* --- chip a scorrimento orizzontale --- */
  .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin-right: calc(-1 * var(--pad));
    padding-right: var(--pad);
  }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: 0 0 auto; }
  .steps { grid-template-columns: 1fr; gap: 1.6rem; }
  .searchbar { grid-template-columns: 1fr 1fr; }
  .searchbar .btn { grid-column: span 2; }
  .searchbar__intro {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 1px solid var(--azure-200);
    padding: 0 0 1rem;
    align-self: start;
  }
  .searchbar__title { white-space: normal; }
  .two-col { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .listings-layout { grid-template-columns: 1fr; }
  .filters--desktop { display: none; }
  .filters-toggle { display: inline-flex; align-items: center; gap: 0.5rem; }
  /* barra filtri: tutto visibile, niente scorrimenti nascosti —
     categorie che vanno a capo, locali su una riga intera, ordinamento sotto */
  .filterbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    padding: 0.85rem;
    border-radius: 20px;
  }
  .seg {
    width: 100%;
    flex-wrap: wrap;
    overflow: visible;
    gap: 0.3rem;
    padding: 0.3rem;
  }
  .seg__btn {
    flex: 1 1 auto;
    text-align: center;
    padding: 0.62rem 0.9rem;
  }
  .filterbar__right {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    border-top: 1px solid var(--azure-200);
    padding-top: 0.75rem;
  }
  .filterbar .pill-row {
    width: 100%;
    flex-wrap: nowrap;
    overflow: visible;
    gap: 0.35rem;
  }
  .filterbar .pill { flex: 1; min-width: 0; padding: 0.6rem 0.2rem; font-size: 0.76rem; }
  .filterbar__divider { display: none; }
  .filterbar select {
    width: 100%;
    font-size: 0.74rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.85);
    padding: 0.6rem 1.9rem 0.6rem 1rem;
    text-align: center;
  }
  .gallery { display: none; }
  .carousel { display: block; }
  .meta-strip { grid-template-columns: repeat(3, 1fr); row-gap: 1.3rem; }
  .meta-strip > div:nth-child(4) { border-left: 0; }
  /* CTA banner: bottoni impilati a tutta larghezza, testo mai tagliato */
  .cta-banner__actions { width: 100%; flex-direction: column; }
  .cta-banner__actions .btn { width: 100%; flex: none; }
  /* barra prezzo dettaglio: etichetta su una riga, bottone più compatto */
  .detail-bar .label { white-space: nowrap; }
  .detail-bar .btn { padding: 0.68rem 1.1rem; }
}

@media (max-width: 560px) {
  /* etichette dei bottoni più compatte: mai testo tagliato su schermi stretti */
  .btn { letter-spacing: 0.08em; padding-left: 1.2rem; padding-right: 1.2rem; }
  .grid-cards { grid-template-columns: 1fr; }
  #featured-grid .card:first-child { grid-column: span 1; }
  #featured-grid .card:first-child .card__img { aspect-ratio: 4 / 3; }
  .features { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .nav__brand img { height: 40px; }
  .hero__actions .btn { width: 100%; }
  .hero__actions { gap: 0.9rem; }
  .searchbar { grid-template-columns: 1fr; gap: 1.2rem; }
  .searchbar .btn { grid-column: span 1; }
  .cookie-banner { padding: 1.2rem 1.25rem; }
  .cookie-banner .actions .btn { flex: 1; }
  .cookie-banner__custom { margin-left: 0; width: 100%; text-align: center; }
  .cookie-opt { gap: 0.9rem; }
  .footer__main { grid-template-columns: 1fr; }
  .direct-box .row { grid-template-columns: 1fr; }
}
