/* Maestrale Immobiliare — demo agenzia immobiliare */
@font-face { font-family: "DM Serif"; src: url(../assets/fonts/dm-serif-display-latin-400-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "DM Serif"; src: url(../assets/fonts/dm-serif-display-latin-400-italic.woff2) format("woff2"); font-style: italic; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url(../assets/fonts/plus-jakarta-sans-latin-wght-normal.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --cream: #f7f3ec;
  --cream-2: #efe8dc;
  --white: #fffdf9;
  --navy: #10233b;
  --navy-2: #1b3452;
  --terra: #c8643b;
  --terra-2: #e08a5f;
  --ochre: #d9a441;
  --sea: #3c7fa3;
  --ink: #16202c;
  --muted: #6b7686;
  --line: rgba(16, 35, 59, 0.1);
  --display: "DM Serif", Georgia, serif;
  --sans: "Jakarta", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1240px;
}
* { box-sizing: border-box; }
html { background: var(--cream); }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 16.5px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.lock { overflow: hidden; }
::selection { background: var(--terra); color: #fff; }
a { color: inherit; }
svg { display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; line-height: 1.02; letter-spacing: -0.01em; }
em { font-family: var(--display); font-style: italic; color: var(--terra); }
p { margin: 0; }
button, select, input { font-family: inherit; }
.wrap { width: min(var(--wrap), calc(100% - 56px)); margin: 0 auto; }
.kick { font-size: 12.5px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--terra); margin-bottom: 16px; }
.lead { font-size: 18px; color: var(--muted); max-width: 540px; }
.note { margin-top: 16px; font-size: 13px; color: var(--muted); }
section h2 { font-size: clamp(40px, 4.8vw, 68px); }
.muted { color: var(--muted); }

/* bottoni */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 24px; border-radius: 14px; font: 700 15px var(--sans); text-decoration: none; border: 0; cursor: pointer; white-space: nowrap; transition: transform 0.45s var(--ease), background-color 0.3s, box-shadow 0.3s; }
.btn .ar { width: 18px; height: 18px; transition: transform 0.45s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .ar { transform: translateX(4px); }
.btn-navy { background: var(--navy); color: #fff; box-shadow: 0 14px 28px -14px rgba(16, 35, 59, 0.7); }
.btn-navy:hover { background: var(--navy-2); }
.btn-terra { background: var(--terra); color: #fff; box-shadow: 0 14px 28px -14px rgba(200, 100, 59, 0.8); }
.btn-terra:hover { background: #b5552f; }
.btn-ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-sm { height: 44px; padding: 0 18px; font-size: 14px; gap: 0; }
.btn-sm .ar { margin-left: 8px; }

/* nastro demo + badge */
.demo-ribbon { position: relative; z-index: 60; display: block; text-align: center; padding: 9px 16px; background: var(--navy); color: #b9c6d6; font-size: 13px; text-decoration: none; }
.demo-ribbon span { display: inline-block; margin-right: 8px; padding: 1px 8px; border-radius: 6px; background: var(--terra); color: #fff; font-weight: 800; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; }
.demo-ribbon b { color: #fff; }
.demo-fab { position: fixed; left: 18px; bottom: 18px; z-index: 80; display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 999px; background: rgba(11, 19, 34, 0.92); color: #e8eef8; text-decoration: none; font-size: 13.5px; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.45); }
.demo-fab b { color: #8cc4ff; }
.demo-fab .dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.25); }
.js .demo-fab { opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity 0.4s, transform 0.4s var(--ease); }
.js .demo-fab.show { opacity: 1; transform: none; pointer-events: auto; }

/* nav */
.nav { position: sticky; top: 0; z-index: 70; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px max(28px, calc((100% - var(--wrap)) / 2)); transition: background-color 0.4s, box-shadow 0.4s; }
.nav.scrolled { background: rgba(247, 243, 236, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.logo-m svg { width: 40px; height: 40px; }
.b-txt { display: grid; line-height: 1.05; }
.b-txt b { font: 400 24px var(--display); color: var(--navy); }
.b-txt small { font-size: 11px; font-weight: 800; letter-spacing: 0.24em; text-transform: uppercase; color: var(--terra); }
.links { display: flex; gap: 30px; }
.links a { font-size: 15px; font-weight: 600; text-decoration: none; color: var(--muted); transition: color 0.3s; }
.links a:hover { color: var(--navy); }
.nav-r { display: flex; align-items: center; gap: 10px; }
.fav-pill { display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 14px; border-radius: 12px; border: 0; background: #fff; color: var(--navy); font: 700 14.5px var(--sans); cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--line); transition: all 0.3s; }
.fav-pill svg { width: 19px; height: 19px; }
.fav-pill.has { color: var(--terra); box-shadow: inset 0 0 0 1.5px rgba(200, 100, 59, 0.5); }
.fav-pill.has svg { fill: currentColor; }
.fav-pill.bump { animation: bump 0.5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.18); } }

/* hero */
.hero { position: relative; min-height: calc(100svh - 110px); display: flex; flex-direction: column; justify-content: space-between; padding-top: 40px; overflow: hidden; }
.pano-w { position: absolute; left: 0; right: 0; bottom: 0; height: 74%; }
.pano { width: 100%; height: 100%; }
.pano-w::before { content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 40%; z-index: 1; background: linear-gradient(var(--cream), rgba(247, 243, 236, 0)); pointer-events: none; }
.hero-in { position: relative; z-index: 2; }
.h-title { font-size: clamp(64px, 8.4vw, 132px); line-height: 0.95; color: var(--navy); margin-bottom: 20px; }
.h-title .ln { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.06em; }
.h-title .ln > span { display: inline-block; white-space: nowrap; }
.hero .lead { max-width: 480px; color: #4f5b6b; }
.search { position: relative; z-index: 3; display: grid; grid-template-columns: auto 1fr 1fr 1fr auto; gap: 8px; align-items: stretch; padding: 10px; margin-bottom: 38px; border-radius: 22px; background: rgba(255, 253, 249, 0.93); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 30px 60px -30px rgba(16, 35, 59, 0.6); }
.s-seg { display: flex; padding: 4px; border-radius: 14px; background: var(--cream-2); }
.s-seg button { border: 0; background: transparent; padding: 0 18px; border-radius: 11px; font: 700 14.5px var(--sans); color: var(--muted); cursor: pointer; transition: all 0.3s; }
.s-seg button.on { background: var(--navy); color: #fff; }
.s-f { display: grid; gap: 0; padding: 8px 14px; border-radius: 14px; transition: background-color 0.3s; }
.s-f:hover { background: var(--cream); }
.s-f span { font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.s-f select, .f-f select { appearance: none; -webkit-appearance: none; border: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310233b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right center / 16px; padding: 2px 22px 2px 0; font: 700 16px var(--sans); color: var(--navy); cursor: pointer; outline: none; width: 100%; }
.s-go { height: auto; min-height: 56px; }

/* annunci */
.list { padding: 110px 0; }
.l-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.l-count { font-size: 16px; color: var(--muted); }
.l-count b { font: 400 40px var(--display); color: var(--navy); margin-right: 4px; }
.filters { position: sticky; top: 78px; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 10px; margin-bottom: 30px; border-radius: 18px; background: rgba(255, 253, 249, 0.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 16px 30px -24px rgba(16, 35, 59, 0.5), inset 0 0 0 1px var(--line); }
.f-seg { display: flex; padding: 4px; border-radius: 12px; background: var(--cream-2); }
.f-seg button { height: 38px; border: 0; background: transparent; padding: 0 14px; border-radius: 9px; font: 700 14px var(--sans); color: var(--muted); cursor: pointer; transition: all 0.3s; }
.f-seg button.on { background: #fff; color: var(--navy); box-shadow: 0 4px 10px -6px rgba(16, 35, 59, 0.5); }
.f-f { display: grid; padding: 4px 12px; border-radius: 12px; min-width: 130px; }
.f-f:hover { background: var(--cream); }
.f-f span { font-size: 10.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.f-f select { font-size: 14.5px; }
.f-reset { margin-left: auto; height: 38px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; font: 700 14px var(--sans); color: var(--terra); cursor: pointer; }
.f-reset:hover { background: #fbe9e0; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card { position: relative; border-radius: 24px; background: var(--white); overflow: hidden; cursor: pointer; box-shadow: 0 24px 40px -34px rgba(16, 35, 59, 0.55), inset 0 0 0 1px var(--line); transition: transform 0.5s var(--ease), box-shadow 0.4s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 34px 50px -30px rgba(16, 35, 59, 0.55), inset 0 0 0 1px var(--line); }
.card.hide { display: none; }
.c-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.c-media .scene { width: 100%; height: 100%; transition: transform 0.9s var(--ease); }
.card:hover .scene { transform: scale(1.06); }
.c-badges { position: absolute; left: 14px; top: 14px; right: 60px; display: flex; flex-wrap: wrap; gap: 6px; }
.bdg { padding: 5px 10px; border-radius: 8px; background: rgba(255, 253, 249, 0.92); font-size: 12px; font-weight: 800; color: var(--navy); }
.bdg.b-c { background: var(--navy); color: #fff; }
.bdg.b-sea { background: #d9ecf5; color: #1f5a7a; }
.bdg.b-hot { background: var(--terra); color: #fff; }
.fav { position: absolute; right: 12px; top: 12px; width: 42px; height: 42px; border-radius: 12px; border: 0; background: rgba(255, 253, 249, 0.92); color: var(--navy); display: grid; place-items: center; cursor: pointer; transition: transform 0.3s var(--ease), color 0.3s; }
.fav svg { width: 21px; height: 21px; transition: fill 0.3s; }
.fav:hover { transform: scale(1.08); }
.fav.on { color: var(--terra); }
.fav.on svg { fill: currentColor; }
.c-body { padding: 20px 22px 22px; }
.c-zone { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.c-zone svg { width: 15px; height: 15px; color: var(--terra); }
.c-body h3 { font-size: 25px; margin: 6px 0 8px; color: var(--navy); }
.c-price { font: 800 22px var(--sans); color: var(--navy); letter-spacing: -0.02em; }
.c-feat { list-style: none; padding: 14px 0 0; margin: 14px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; font-weight: 600; color: #3d4858; }
.c-feat li { display: flex; align-items: center; gap: 6px; }
.c-feat svg { width: 17px; height: 17px; color: var(--muted); }
.c-feat .cls { margin-left: auto; padding: 1px 9px; border-radius: 6px; background: var(--cc); color: #fff; font-weight: 800; font-size: 12.5px; }
.c-open { margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 0; font: 700 14.5px var(--sans); color: var(--terra); cursor: pointer; }
.c-open .ar { width: 16px; height: 16px; transition: transform 0.4s var(--ease); }
.card:hover .c-open .ar { transform: translateX(4px); }
.empty { text-align: center; padding: 60px 20px; border-radius: 24px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.empty[hidden] { display: none; }
.empty b { font: 400 30px var(--display); color: var(--navy); }
.empty p { max-width: 440px; margin: 10px auto 20px; color: var(--muted); }

/* zone */
.zone { padding: 110px 0; background: var(--navy); color: #fff; }
.zone .lead, .zone .note { color: #a9b8ca; }
.zone h2 { color: #fff; }
.zone em { color: var(--terra-2); }
.zone .kick { color: var(--terra-2); }
.zone-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 60px; align-items: center; }
.zbars { display: grid; gap: 6px; }
.zb { display: grid; grid-template-columns: 130px 1fr 110px 62px; align-items: center; gap: 14px; padding: 12px 14px; border: 0; border-radius: 14px; background: transparent; color: #fff; text-align: left; cursor: pointer; transition: background-color 0.3s; }
.zb:hover { background: rgba(255, 255, 255, 0.07); }
.zb-n { font-weight: 700; font-size: 15px; }
.zb-bar { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.zb-bar i { display: block; height: 100%; width: var(--w); border-radius: 99px; background: linear-gradient(90deg, var(--terra), var(--ochre)); transform-origin: left; }
.zb-v { font-weight: 800; font-size: 15px; text-align: right; }
.zb-t { font-size: 13px; font-weight: 800; text-align: right; }
.zb-t.up { color: #7fd8a6; }
.zb-t.down { color: #ff9b86; }

/* mutuo */
.mutuo { padding: 120px 0; }
.mutuo-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 60px; align-items: center; }
.m-box { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 20px; padding: 30px; border-radius: 30px; background: var(--white); box-shadow: 0 40px 80px -50px rgba(16, 35, 59, 0.6), inset 0 0 0 1px var(--line); }
.m-in { display: grid; gap: 22px; }
.m-f { display: grid; gap: 10px; }
.m-f > span { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 12.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.m-f > span b { font: 800 17px var(--sans); letter-spacing: -0.01em; text-transform: none; color: var(--navy); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--navy) var(--p, 30%), var(--cream-2) var(--p, 30%)); outline: none; cursor: pointer; margin: 6px 0; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 3px solid var(--navy); box-shadow: 0 6px 14px -4px rgba(16, 35, 59, 0.5); cursor: grab; }
input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--navy); cursor: grab; }
.m-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.m-seg button { height: 40px; padding: 0 14px; border: 0; border-radius: 11px; background: var(--cream); font: 700 14px var(--sans); color: var(--muted); cursor: pointer; transition: all 0.3s; }
.m-seg button:hover { color: var(--navy); }
.m-seg button.on { background: var(--navy); color: #fff; }
.m-out { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; border-radius: 22px; background: var(--cream); }
.donut { position: relative; width: 210px; aspect-ratio: 1; }
.donut svg { width: 100%; height: 100%; }
.d-c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.d-c small { font-size: 12px; font-weight: 700; color: var(--muted); }
.d-c b { font: 400 40px var(--display); color: var(--navy); line-height: 1.1; }
.m-leg { list-style: none; padding: 0; margin: 0; width: 100%; display: grid; gap: 8px; font-size: 14.5px; }
.m-leg li { display: flex; align-items: center; gap: 8px; }
.m-leg li b { margin-left: auto; color: var(--navy); }
.m-leg i { width: 12px; height: 12px; border-radius: 4px; }
.m-leg .k1 { background: var(--navy); }
.m-leg .k2 { background: #f0d9c8; }
.m-leg .tot { padding-top: 8px; border-top: 1px solid var(--line); font-weight: 700; }
.m-note { font-size: 12px; color: var(--muted); }

/* valuta */
.val { padding: 110px 0; background: linear-gradient(180deg, var(--cream), #f1e5d6); }
.val-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 60px; align-items: center; }
.v-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.v-list li { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.v-list svg { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--terra); color: #fff; }
.vbox { position: relative; padding: 32px; border-radius: 30px; background: var(--white); box-shadow: 0 40px 80px -50px rgba(16, 35, 59, 0.6), inset 0 0 0 1px var(--line); min-height: 470px; }
.v-steps { display: flex; gap: 8px; margin-bottom: 24px; }
.v-steps span { flex: 1; padding-top: 10px; border-top: 4px solid var(--cream-2); font-size: 12.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); transition: all 0.4s; }
.v-steps span.on, .v-steps span.done { border-color: var(--terra); color: var(--navy); }
.v-panel { display: none; }
.v-panel.on { display: grid; gap: 22px; }
.v-q { font: 400 32px var(--display); color: var(--navy); }
.vzs { display: flex; flex-wrap: wrap; gap: 8px; }
.vz { height: 46px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--cream); font: 700 14.5px var(--sans); color: var(--navy); cursor: pointer; transition: all 0.3s; }
.vz:hover { box-shadow: inset 0 0 0 1.5px var(--navy); }
.vz.on { background: var(--navy); color: #fff; }
.v-panel > .btn { justify-self: start; }
.v-ex { display: flex; flex-wrap: wrap; gap: 8px; }
.chk { position: relative; cursor: pointer; }
.chk input { position: absolute; opacity: 0; }
.chk span { display: inline-flex; align-items: center; height: 42px; padding: 0 16px; border-radius: 11px; background: var(--cream); font-weight: 700; font-size: 14px; color: var(--muted); transition: all 0.3s; }
.chk input:checked + span { background: #fbe9e0; color: var(--terra); box-shadow: inset 0 0 0 1.5px var(--terra); }
.chk input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 2px; }
.v-nav { display: flex; gap: 10px; flex-wrap: wrap; }
.v-range { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; font: 400 clamp(38px, 4.4vw, 56px) var(--display); color: var(--navy); line-height: 1; }
.v-range span { color: var(--terra); }
.v-sub { color: var(--muted); font-size: 15px; margin-top: -8px; }
.v-note { font-size: 12.5px; color: var(--muted); }
.v-done { position: absolute; inset: 0; border-radius: 30px; background: var(--white); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 30px; }
.v-done[hidden] { display: none; }
.vd-ic { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--terra); color: #fff; margin-bottom: 10px; box-shadow: 0 0 0 12px #fbe9e0; }
.vd-ic svg { width: 36px; height: 36px; }
.v-done b { font: 400 34px var(--display); color: var(--navy); }
.v-done p { max-width: 400px; }
.bk-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fld { display: grid; gap: 6px; }
.fld span { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.fld input { height: 50px; padding: 0 16px; border-radius: 12px; border: 0; background: var(--cream); font: 500 16px var(--sans); color: var(--ink); outline: none; box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow 0.3s; }
.fld input:focus { box-shadow: inset 0 0 0 1.5px var(--navy); }
.fld.bad input { box-shadow: inset 0 0 0 1.5px var(--terra); }
.shake { animation: shake 0.4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* agenzia */
.agenzia { padding: 110px 0 120px; background: var(--white); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stt { padding: 26px; border-radius: 22px; background: var(--cream); }
.stt b { display: block; font: 400 clamp(46px, 5vw, 68px) var(--display); color: var(--navy); line-height: 1; }
.stt span { font-size: 14.5px; font-weight: 600; color: var(--muted); }
.stats-note { margin: 10px 0 80px; font-size: 12.5px; color: var(--muted); }
.ag-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: start; }
.contact { margin-top: 30px; padding: 22px; border-radius: 20px; background: var(--cream); display: grid; gap: 8px; font-size: 15px; }
.contact b { color: var(--navy); }
.ags { display: grid; gap: 14px; }
.ag { display: flex; gap: 18px; align-items: flex-start; padding: 22px; border-radius: 22px; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 0.3s, transform 0.5s var(--ease); }
.ag:hover { transform: translateX(6px); box-shadow: inset 0 0 0 1.5px var(--terra); }
.ag-av { flex: 0 0 auto; width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(140deg, var(--navy), var(--navy-2)); color: #fff; font: 400 24px var(--display); }
.ag h3 { font-size: 24px; color: var(--navy); }
.ag small { display: block; font-size: 13px; font-weight: 800; color: var(--terra); margin: 2px 0 6px; }
.ag p { font-size: 15px; color: var(--muted); }

/* footer */
.foot { padding: 50px 0; background: var(--navy); color: #a9b8ca; font-size: 14px; }
.foot-in { display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: center; }
.f-brand { display: flex; align-items: center; gap: 12px; }
.f-brand .logo-m svg rect { fill: #fff; }
.f-brand .logo-m svg path:first-of-type { stroke: var(--navy); }
.f-brand b { display: block; font: 400 22px var(--display); color: #fff; }
.f-brand small { font-size: 12px; }
.f-legal { font-size: 12.5px; }
.foot a { color: var(--terra-2); }

/* scheda immobile */
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 24px; }
.modal[hidden] { display: none; }
.md-back { position: absolute; inset: 0; background: rgba(10, 20, 34, 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.md-box { position: relative; width: min(1100px, 100%); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); display: grid; grid-template-columns: 1.1fr 0.9fr; border-radius: 28px; background: var(--white); overflow: hidden; box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.6); }
.md-x { position: absolute; right: 14px; top: 14px; z-index: 3; width: 44px; height: 44px; border-radius: 12px; border: 0; background: rgba(255, 253, 249, 0.94); color: var(--navy); display: grid; place-items: center; cursor: pointer; }
.md-x svg { width: 22px; height: 22px; }
.md-media { position: relative; background: var(--cream-2); display: flex; flex-direction: column; gap: 16px; padding: 16px; overflow-y: auto; }
.md-side { display: grid; gap: 12px; }
.md-ppm { padding: 18px; border-radius: 18px; background: var(--white); font-size: 14px; color: var(--muted); }
.md-ppm b { display: block; font: 400 30px var(--display); color: var(--navy); line-height: 1.1; }
.md-ppm .pb { position: relative; height: 10px; border-radius: 99px; background: var(--cream-2); margin: 14px 0 8px; }
.md-ppm .pb i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: linear-gradient(90deg, var(--terra), var(--ochre)); }
.md-ppm .pb u { position: absolute; top: -5px; bottom: -5px; width: 3px; border-radius: 2px; background: var(--navy); }
.md-ppm .pl { display: flex; justify-content: space-between; font-size: 12.5px; }
.md-agent { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 18px; background: var(--white); }
.md-agent .ag-av { width: 50px; height: 50px; border-radius: 14px; font-size: 19px; }
.md-agent b { display: block; font: 400 20px var(--display); color: var(--navy); }
.md-agent small { font-size: 13px; color: var(--muted); }
.md-tabs { position: absolute; left: 28px; top: 28px; z-index: 2; display: flex; padding: 4px; border-radius: 12px; background: rgba(255, 253, 249, 0.94); }
.md-tabs button { height: 36px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; font: 700 13.5px var(--sans); color: var(--muted); cursor: pointer; }
.md-tabs button.on { background: var(--navy); color: #fff; }
.md-view { position: relative; aspect-ratio: 4 / 3; flex: 0 0 auto; border-radius: 18px; overflow: hidden; background: #fbf9f5; display: grid; place-items: center; }
.md-view .scene { width: 100%; height: 100%; }
.md-view .plan { width: 92%; height: auto; max-height: 84%; margin-top: 34px; }
.md-body { padding: 34px 32px 30px; overflow-y: auto; overscroll-behavior: contain; }
.md-zone { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.md-zone svg { width: 15px; height: 15px; color: var(--terra); }
.md-body h2 { font-size: 36px; color: var(--navy); margin: 6px 0 8px; }
.md-price { font: 800 26px var(--sans); color: var(--terra); letter-spacing: -0.02em; }
.md-feat { list-style: none; padding: 0; margin: 18px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.md-feat li { padding: 10px 12px; border-radius: 12px; background: var(--cream); font-size: 14px; }
.md-feat li small { display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.md-feat li b { color: var(--navy); }
.md-desc { color: #3d4858; font-size: 15.5px; }
.md-ex { list-style: none; padding: 0; margin: 14px 0 20px; display: flex; flex-wrap: wrap; gap: 6px; }
.md-ex li { padding: 5px 11px; border-radius: 8px; background: #e7eef4; color: var(--navy); font-size: 13px; font-weight: 700; }
.md-energy small { font-size: 11.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.en { display: flex; gap: 3px; margin: 8px 0 20px; }
.en span { flex: 1; height: 30px; border-radius: 6px; background: var(--cc); opacity: 0.28; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; transition: all 0.4s var(--ease); }
.en span.on { opacity: 1; transform: scaleY(1.25); box-shadow: 0 6px 12px -6px rgba(0, 0, 0, 0.5); }
.md-mutuo { padding: 16px 18px; border-radius: 16px; background: var(--navy); color: #c9d4e2; font-size: 14.5px; margin-bottom: 22px; }
.md-mutuo:empty { display: none; }
.md-mutuo b { color: #fff; font-size: 20px; }
.md-l { font: 400 24px var(--display); color: var(--navy); margin-bottom: 10px; }
.md-days { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-bottom: 8px; }
.md-days::-webkit-scrollbar { display: none; }
.md-days button, .md-times button { flex: 0 0 auto; border: 0; border-radius: 11px; background: var(--cream); font: 700 13.5px var(--sans); color: var(--navy); cursor: pointer; transition: all 0.25s; }
.md-days button { padding: 8px 12px; display: grid; justify-items: center; line-height: 1.2; }
.md-days button small { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.md-times { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 14px; }
.md-times button { height: 38px; }
.md-times button:disabled { opacity: 0.3; text-decoration: line-through; cursor: default; }
.md-days button.on, .md-times button.on { background: var(--navy); color: #fff; }
.md-days button.on small { color: #a9b8ca; }
.md-go { width: 100%; margin-top: 12px; }
.md-done { display: flex; gap: 10px; align-items: center; margin-top: 12px; padding: 14px 16px; border-radius: 14px; background: #e6f4ec; color: #1f6a40; font-size: 14.5px; font-weight: 600; }
.md-done[hidden] { display: none; }
.md-done svg { width: 22px; height: 22px; flex: 0 0 auto; }

/* stati animazione */
.anim [data-h], .anim [data-r] { opacity: 0; }
.anim .h-title .ln > span { transform: translateY(110%); }

@media (max-width: 1100px) {
  .search { grid-template-columns: 1fr 1fr; }
  .s-seg { grid-column: 1 / -1; }
  .s-seg button { flex: 1; height: 44px; }
  .s-go { grid-column: 1 / -1; }
  .grid { grid-template-columns: 1fr 1fr; }
  .m-box { grid-template-columns: 1fr; }
}
@media (max-width: 1000px) {
  .links { display: none; }
  .zone-grid, .mutuo-grid, .val-grid, .ag-grid { grid-template-columns: 1fr; }
  .zone-grid > *, .mutuo-grid > *, .val-grid > *, .ag-grid > * { min-width: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .md-box { grid-template-columns: 1fr; overflow-y: auto; }
  .md-media { overflow: visible; }
  .md-side { display: none; }
  .md-body { overflow: visible; }
  .foot-in { grid-template-columns: 1fr; }
  .filters { position: relative; top: 0; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .nav { padding: 12px 16px; }
  .btn-sm .long { display: none; }
  .demo-ribbon { font-size: 11.5px; padding: 8px 10px; }
  .hero { min-height: 0; padding-top: 24px; }
  .pano-w { position: relative; order: 2; height: 230px; margin: 6px 0 -70px; }
  .hero-in { order: 1; }
  .search { order: 3; }
  .h-title { font-size: 17vw; }
  .search { grid-template-columns: 1fr; margin-bottom: 20px; }
  .s-seg, .s-go { grid-column: auto; }
  .list, .zone, .mutuo, .val, .agenzia { padding: 80px 0; }
  .grid { grid-template-columns: 1fr; }
  .filters { gap: 4px; }
  .f-seg { width: 100%; }
  .f-seg button { flex: 1; }
  .f-f { min-width: 0; flex: 1 1 45%; }
  .f-reset { margin-left: 0; }
  .zb { grid-template-columns: 1fr auto; gap: 6px 10px; padding: 12px 6px; }
  .zb-bar { grid-column: 1 / -1; grid-row: 2; }
  .zb-v { grid-row: 1; grid-column: 2; }
  .zb-t { display: none; }
  .m-box, .vbox { padding: 20px; border-radius: 24px; }
  .bk-2 { grid-template-columns: 1fr; }
  .stats { gap: 10px; }
  .stt { padding: 18px; }
  .modal { padding: 0; place-items: end center; }
  .md-box { max-height: 92vh; max-height: 92dvh; border-radius: 24px 24px 0 0; }
  .md-body { padding: 24px 20px 30px; }
  .md-body h2 { font-size: 30px; }
  .md-times { grid-template-columns: repeat(4, 1fr); }
  .foot { padding-bottom: 100px; }
}
