/* =========================================================
   Your Home From Home — stile
   ========================================================= */
:root {
  --bx: #710004;
  --bx-2: #8f1419;
  --bx-deep: #3b0204;
  --night: #170607;
  --night-2: #22090a;
  --cream: #f6efe5;
  --paper: #fbf8f3;
  --sand: #eadfce;
  --ink: #1f1515;
  --ink-2: #5b4b48;
  --muted: #8a7a76;
  --line: rgba(31, 21, 21, .12);
  --gold: #c9a45a;
  --gold-2: #e7c983;
  --serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r: 20px;
  --shadow: 0 1px 2px rgba(40, 10, 10, .06), 0 12px 40px -12px rgba(60, 10, 10, .22);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.65; font-weight: 450;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.menu-open, body.modal-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--bx); color: var(--cream); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1240px, 100% - 40px); margin-inline: auto; }
.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.ic { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- tipografia ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 18px;
  font-size: .76rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--bx);
}
.eyebrow::before { content: ''; width: 28px; height: 1.5px; background: currentColor; }
.eyebrow.center { display: flex; justify-content: center; }
.eyebrow-light { color: var(--gold-2); }
.h2 {
  font-family: var(--serif); font-weight: 600; font-size: clamp(2.5rem, 5.4vw, 4.6rem);
  line-height: 1.02; letter-spacing: -.015em; margin: 0 0 22px; text-wrap: balance;
}
.h2 em, .hero-title em { font-style: italic; font-weight: 500; color: var(--bx); }
.h2.light { color: var(--cream); }
.h2.light em { color: var(--gold-2); }
.lead { font-size: clamp(1.02rem, 1.4vw, 1.16rem); color: var(--ink-2); max-width: 60ch; margin: 0 0 28px; }
.lead.light { color: rgba(246, 239, 229, .74); }

/* ---------- bottoni ---------- */
.btn {
  --bg: var(--bx); --fg: var(--cream);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 1.5px solid transparent;
  background: var(--bg); color: var(--fg); text-decoration: none; font-weight: 700; font-size: .95rem; letter-spacing: .01em;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s, color .25s, border-color .25s;
  position: relative; overflow: hidden; isolation: isolate; white-space: nowrap;
}
.btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--ease); z-index: -1; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(113, 0, 4, .55); }
.btn:hover::after { transform: translateX(120%); }
.btn:hover .ic { transform: translateX(3px); }
.btn .ic { transition: transform .3s var(--ease); }
.btn-primary { --bg: var(--bx); --fg: #fff; }
.btn-light { --bg: var(--cream); --fg: var(--bx); }
.btn-gold { --bg: var(--gold); --fg: var(--night); }
.btn-ghost-light { --bg: rgba(255,255,255,.06); --fg: var(--cream); border-color: rgba(246,239,229,.4); backdrop-filter: blur(6px); }
.btn-ghost-light:hover { border-color: var(--cream); background: rgba(255,255,255,.12); }
.btn-outline { --bg: transparent; --fg: var(--bx); border-color: rgba(113,0,4,.35); }
.btn-outline:hover { border-color: var(--bx); background: rgba(113,0,4,.05); box-shadow: none; }
.btn-sm { padding: 10px 18px; font-size: .86rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; pointer-events: none; }

/* chip linee metro */
.chip {
  --c: #999; display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 7px; border-radius: 6px;
  background: var(--c); color: #fff; font: 800 .72rem/1 var(--sans); font-style: normal; letter-spacing: .02em;
}
.chip[style*="F5B700"] { color: #2a1d00; }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200; display: grid; place-content: center; justify-items: center; gap: 18px;
  background: radial-gradient(circle at 50% 40%, #5a0a0c, var(--night) 70%); color: var(--cream);
  transition: opacity .8s var(--ease), visibility .8s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader p { margin: 0; font-family: 'Comfortaa', var(--sans); font-size: 1.05rem; letter-spacing: .08em; opacity: .85; }
.loader-hex { width: 74px; height: 74px; }
.loader-hex path { fill: none; stroke: var(--gold-2); stroke-width: 3; stroke-dasharray: 280; stroke-dashoffset: 280; animation: hexdraw 1.6s var(--ease) infinite alternate; }
@keyframes hexdraw { to { stroke-dashoffset: 0; } }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 clamp(16px, 3vw, 40px); color: var(--cream);
  transition: background .4s var(--ease), color .4s, height .4s var(--ease), box-shadow .4s;
}
.site-header.scrolled {
  --header-h: 64px; background: rgba(246, 239, 229, .82); color: var(--ink);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { width: 52px; height: 52px; color: var(--cream); transition: color .4s, width .4s, height .4s; }
.scrolled .brand-logo { color: var(--bx); width: 46px; height: 46px; }
.brand-name { font-family: 'Comfortaa', var(--sans); font-weight: 700; font-size: 1rem; letter-spacing: .01em; }
.brand-name em { font-style: normal; color: var(--gold-2); }
.scrolled .brand-name em { color: var(--bx); }
.nav { display: flex; gap: clamp(14px, 2.4vw, 34px); }
.nav a { text-decoration: none; font-weight: 600; font-size: .93rem; position: relative; padding: 6px 0; opacity: .9; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); transform-origin: left; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; border: 1.5px solid currentColor; border-radius: 999px; padding: 2px; opacity: .85; }
.lang button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 3px 10px 3px 5px; border-radius: 999px; font-size: .74rem; font-weight: 800; letter-spacing: .06em; }
.lang .flag { width: 18px; height: 12px; border-radius: 2.5px; box-shadow: 0 0 0 1px rgba(0,0,0,.18); flex: none; }
.lang button[aria-pressed="true"] { background: currentColor; }
.lang button[aria-pressed="true"] { color: var(--bx); background: var(--cream); }
.scrolled .lang button[aria-pressed="true"] { background: var(--bx); color: var(--cream); }
.scrolled .header-cta { --bg: var(--bx); --fg: var(--cream); }
.burger { display: none; width: 42px; height: 42px; border: 0; background: none; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1.8px; background: currentColor; transition: transform .35s var(--ease), top .35s; }
.burger span:first-child { top: 16px; } .burger span:last-child { top: 24px; }
.menu-open .burger span:first-child { top: 20px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 20px; transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden;
  background: radial-gradient(120% 90% at 60% 35%, #6a0b0e 0%, #3a0406 45%, var(--night) 80%);
  color: var(--cream); isolation: isolate;
}
.hero-canvas { position: absolute; inset: 0; z-index: 0; }
.hero-canvas canvas { width: 100% !important; height: 100% !important; display: block; opacity: 0; transition: opacity 1.4s var(--ease); }
.hero-ready .hero-canvas canvas { opacity: 1; }
/* skyline di Milano disegnato a linea sottile (sulla falsariga del sito originale) */
.hero { background: radial-gradient(90% 70% at 50% 28%, #fbf7f1 0%, #f4ede2 55%, #ece2d3 100%); color: var(--ink); align-items: stretch; }
.skyline { position: absolute; left: 50%; bottom: 0; width: max(100%, 1100px); height: auto; max-height: 64%; display: block; transform: translateX(-50%); }
@media (max-width: 700px) { .skyline { width: 1050px; max-height: none; transform: translateX(-58%); } }
.skyline g[data-depth] { will-change: transform; }
.sk-far rect { fill: #e5d9c6; }
.sk-far { opacity: .75; }
.sk-fill path { fill: #f6efe5; stroke: none; }
.sk-line path { fill: none; stroke: var(--bx); stroke-width: 1.3; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: skDraw 3.2s .2s var(--ease) forwards; }
.sk-detail { fill: none; stroke: #9b6a5e; stroke-width: .6; opacity: 0; animation: skFade 1.6s 2s ease forwards; }
.sk-madonnina { fill: #c9a45a; opacity: 0; animation: skFade 1s 3s ease forwards; }
.sk-ground { stroke: var(--gold); stroke-width: 1.2; }
@keyframes skDraw { to { stroke-dashoffset: 0; } }
@keyframes skFade { to { opacity: .9; } }
.hero-shade { background: radial-gradient(60% 46% at 50% 34%, rgba(251,247,241,.92), rgba(251,247,241,0) 70%) !important; }
.hero .hero-content { align-self: flex-start; text-align: center; padding: calc(var(--header-h, 84px) + clamp(48px, 12vh, 130px)) 0 0; }
.hero .hero-content > p:first-child, .hero .hero-content .hero-title { max-width: none; margin-inline: auto; }
.hero .eyebrow.center { justify-content: center; }
.hero .hero-title { color: var(--bx); text-shadow: none; font-size: clamp(3.4rem, 8.4vw, 8rem); margin-bottom: 0; }
.hero .hero-title em { display: inline; color: #b48a3f; }
.hero-go { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 38%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; padding-bottom: 26px; text-decoration: none; color: var(--bx); font-size: .72rem; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; }
.hero-go span { padding: 6px 14px; border-radius: 999px; background: rgba(251,247,241,.85); transition: background .3s; }
.hero-go .ic { width: 26px; height: 26px; animation: cueDown 1.8s var(--ease) infinite; }
.hero-go.near span { background: var(--bx); color: var(--cream); }
@keyframes cueDown { 0%, 100% { transform: translateY(0); opacity: .6; } 50% { transform: translateY(6px); opacity: 1; } }
/* intestazione scura sull'apertura chiara */
.site-header { color: var(--ink); }
.brand-logo { color: var(--bx); }
.brand-name em { color: var(--bx); }
.lang button[aria-pressed="true"] { background: var(--bx) !important; color: var(--cream) !important; }
.header-cta { --bg: var(--bx); --fg: var(--cream); }
@media (prefers-reduced-motion: reduce) { .sk-line path { animation: none; stroke-dashoffset: 0; } .sk-detail, .sk-madonnina { animation: none; opacity: .9; } .hero-go .ic { animation: none; } }
.hero-shade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(23,6,7,.9) 0%, rgba(23,6,7,.62) 34%, rgba(23,6,7,.12) 58%, transparent 70%), linear-gradient(0deg, rgba(23,6,7,.75), transparent 38%), linear-gradient(180deg, rgba(23,6,7,.55), transparent 22%); }
.hero-content { position: relative; z-index: 2; width: min(1240px, 100% - 40px); margin: 0 auto; padding: 0 0 clamp(90px, 14vh, 150px); pointer-events: none; }
.hero-content > * { pointer-events: auto; }
.hero-content > p:first-child, .hero-title, .hero-lead, .hero-ctas { max-width: 640px; }
.hero-content .hero-title { max-width: 920px; }
.hero-title {
  font-family: 'Italiana', var(--serif); font-weight: 400; font-size: clamp(3.4rem, 8vw, 7.4rem); line-height: .95; letter-spacing: .01em; margin: 0 0 26px;
  text-shadow: 0 10px 40px rgba(0,0,0,.35);
}
.hero-title em { display: block; font-style: normal; font-weight: 400; color: var(--gold-2); }
.hero-lead { font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: rgba(246,239,229,.82); margin: 0 0 34px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-hint {
  position: absolute; z-index: 2; right: clamp(16px, 3vw, 40px); bottom: 34px; display: flex; align-items: center; gap: 10px;
  font-size: .8rem; letter-spacing: .04em; color: rgba(246,239,229,.7); pointer-events: none;
}
.hero-hint .ic { width: 20px; height: 20px; animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateX(0) rotate(0); } 50% { transform: translateX(6px) rotate(8deg); } }
.scroll-cue { display: none; position: absolute; z-index: 2; left: 50%; bottom: 22px; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid rgba(246,239,229,.5); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--cream); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

.tip {
  position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; min-width: 160px; max-width: 260px;
  padding: 10px 14px; border-radius: 12px; background: rgba(251,248,243,.96); color: var(--ink);
  box-shadow: 0 10px 30px -8px rgba(0,0,0,.45); opacity: 0; transition: opacity .2s; font-size: .85rem; line-height: 1.35;
}
.tip.on { opacity: 1; }
.tip b { display: block; font-family: var(--serif); font-size: 1.15rem; font-weight: 700; }
.tip small { color: var(--ink-2); }
.tip-dark { background: rgba(23,6,7,.92); color: var(--cream); border: 1px solid rgba(231,201,131,.25); }
.tip-dark small { color: rgba(246,239,229,.7); display: block; }
.tip .chip { margin-right: 4px; vertical-align: 2px; }

/* ---------- scelta ---------- */
.choice { background: var(--cream); }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 32px); perspective: 1400px; margin-top: 10px; }
.choice-card {
  --rx: 0deg; --ry: 0deg; position: relative; display: block; min-height: clamp(360px, 42vw, 540px); border-radius: 28px; overflow: hidden;
  text-decoration: none; color: var(--cream); background: var(--night);
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform .5s var(--ease), box-shadow .5s;
  box-shadow: var(--shadow);
}
.choice-card:hover { box-shadow: 0 40px 80px -30px rgba(80, 0, 4, .55); }
.choice-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.2s var(--ease), filter .6s; filter: saturate(.9); }
.choice-card:hover img { transform: scale(1.14); filter: saturate(1.05); }
.choice-card::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(23,6,7,.05) 20%, rgba(23,6,7,.88) 100%); }
.choice-card::after { content: ''; position: absolute; inset: 0; z-index: 1; background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), rgba(231,201,131,.22), transparent 45%); opacity: 0; transition: opacity .4s; }
.choice-card:hover::after { opacity: 1; }
.choice-body { position: absolute; inset: auto 0 0; z-index: 2; padding: clamp(24px, 3.4vw, 44px); transform: translateZ(40px); }
.choice-kicker { font-family: var(--serif); font-size: 1.1rem; color: var(--gold-2); letter-spacing: .1em; }
.choice-body h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: 1.02; margin: 6px 0 12px; }
.choice-body p { margin: 0 0 22px; color: rgba(246,239,229,.82); max-width: 42ch; }


/* ---------- servizi ---------- */
.services { background: var(--paper); }
.services-wrap { display: grid; grid-template-columns: minmax(280px, 5fr) 7fr; gap: clamp(30px, 5vw, 80px); align-items: start; }
.services-head { position: sticky; top: 110px; }
.services-cta { grid-column: 1 / -1; display: flex; justify-content: center; margin-top: 40px; }
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; perspective: 1200px; }
.service {
  --rx: 0deg; --ry: 0deg; position: relative; padding: 28px 26px 26px; border-radius: var(--r); background: #fff; border: 1px solid var(--line);
  overflow: hidden; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .45s var(--ease), box-shadow .45s, border-color .3s;
}
.service::before { content: ''; position: absolute; inset: 0; background: radial-gradient(320px circle at var(--mx, -100px) var(--my, -100px), rgba(113,0,4,.09), transparent 60%); pointer-events: none; }
.service:hover { box-shadow: var(--shadow); border-color: rgba(113,0,4,.25); }
.service:nth-child(even) { transform: translateY(36px) rotateX(var(--rx)) rotateY(var(--ry)); }
.service-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.service-num { font-family: var(--serif); font-size: 1.05rem; color: var(--muted); letter-spacing: .1em; }
.service-icon {
  width: 54px; height: 54px; display: grid; place-items: center; color: var(--bx);
  clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%); background: linear-gradient(135deg, #f5ebe1, #ead9c8);
  transition: background .4s, color .4s, transform .6s var(--ease);
}
.service-icon .ic { width: 25px; height: 25px; }
.service:hover .service-icon { background: var(--bx); color: var(--cream); transform: rotate(60deg); }
.service:hover .service-icon .ic { transform: rotate(-60deg); transition: transform .6s var(--ease); }
.service h3 { font-family: var(--sans); font-size: .98rem; line-height: 1.35; font-weight: 800; letter-spacing: .08em; color: var(--bx); margin: 0 0 12px; }
.service p { margin: 0; color: var(--ink-2); font-size: .95rem; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-toggle {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--line);
  background: #fff; font-size: .84rem; font-weight: 600; color: var(--ink-2); transition: all .25s var(--ease);
}
.chip-toggle .dot { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--muted); transition: all .25s; }
.chip-toggle:hover { border-color: var(--bx); color: var(--bx); }
.chip-toggle.on { background: var(--bx); border-color: var(--bx); color: #fff; }
.chip-toggle.on .dot { background: var(--gold-2); border-color: var(--gold-2); }
.chip-line {
  --c: #999; min-width: 44px; padding: 7px 12px; border-radius: 10px; border: 1.5px solid var(--c); background: transparent; color: var(--ink);
  font-weight: 800; font-size: .82rem; transition: all .25s var(--ease);
}
.chip-line.on { background: var(--c); color: #fff; }
.chip-line.on[style*="F5B700"] { color: #2a1d00; }

/* ---------- appartamenti ---------- */
.apartments { background: var(--paper); }
.section-head { max-width: 760px; margin-bottom: 36px; }
.filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 0; border-radius: 18px; background: #fff; border: 1px solid var(--line); margin-bottom: 30px; position: sticky; top: 74px; z-index: 5; box-shadow: 0 10px 30px -22px rgba(0,0,0,.4); overflow: hidden; }
.fgroup { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 9px; padding: 14px 22px; min-width: 0; }
.fgroup-park { flex-direction: row; align-items: center; justify-content: space-between; }
.filters .chip-line, .filters .chip-toggle, .filters .stepper { height: 36px; box-sizing: border-box; }
.filters .chip-line { min-width: 42px; justify-content: center; }
.flabel { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.fgroup .chips { gap: 6px; }
.fgroup .chip-toggle { padding: 6px 13px; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; overflow: hidden; }
.stepper button { width: 36px; height: 34px; border: 0; background: none; font-size: 1.2rem; font-weight: 700; color: var(--bx); transition: background .2s; }
.stepper button:hover:not(:disabled) { background: var(--cream); }
.stepper button:disabled { color: #cfc4b8; cursor: default; }
.stepper output { min-width: 58px; text-align: center; font-weight: 800; font-size: .86rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.fcount { font-weight: 700; color: var(--bx); font-size: .9rem; white-space: nowrap; }
.apt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; perspective: 1600px; }
.apt-card {
  --rx: 0deg; --ry: 0deg; position: relative; background: #fff; border-radius: 24px; overflow: hidden; cursor: pointer; border: 1px solid var(--line);
  transition: box-shadow .45s var(--ease), border-color .45s; outline-offset: 4px;
}
.apt-card:hover { border-color: rgba(201,164,90,.7); box-shadow: 0 0 0 3px rgba(231,201,131,.35), 0 18px 40px -26px rgba(70, 0, 4, .35); }
.apt-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--sand); }
.apt-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.apt-card:hover .apt-media img { transform: scale(1.04); }
.apt-tag { position: absolute; left: 14px; top: 14px; padding: 5px 12px; border-radius: 999px; background: rgba(251,248,243,.92); color: var(--bx); font-size: .74rem; font-weight: 800; letter-spacing: .04em; backdrop-filter: blur(4px); }
.apt-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 5px; opacity: 0; transition: opacity .3s; }
.apt-card:hover .apt-dots { opacity: 1; }
.apt-dots i { width: 22px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.5); }
.apt-dots i.on { background: #fff; }
.apt-body { padding: 18px 20px 20px; }
.apt-lines { display: flex; gap: 5px; margin-bottom: 8px; }
.apt-body h3 { font-family: var(--serif); font-weight: 700; font-size: 1.75rem; line-height: 1.05; margin: 0 0 4px; }
.apt-area { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; color: var(--ink-2); font-size: .9rem; }
.apt-cin { margin: 0 0 12px; font-size: .64rem; font-weight: 400; letter-spacing: .03em; color: var(--ink-2); opacity: .55; }
.apt-card.flash { animation: cardFlash 3s var(--ease); }
@keyframes cardFlash { 0%, 100% { box-shadow: 0 0 0 0 rgba(201,164,90,0); } 15%, 60% { box-shadow: 0 0 0 4px var(--gold), 0 30px 60px -28px rgba(70,0,4,.45); } }
.apt-area .ic { color: var(--bx); }
.apt-specs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.apt-specs > span:not(.specs) { display: inline-flex; align-items: center; gap: 6px; }
.specs { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.specs > span { display: inline-flex; align-items: center; gap: 5px; }
.specs .ic { width: 17px; height: 17px; color: var(--bx); }
.specs b { font-weight: 700; color: var(--ink); }
.specs small { font-size: .78em; margin-left: -2px; }
.specs .sp-park .ic { width: 20px; height: 20px; color: #fff; fill: #2f6fb3; stroke: #fff; }
.mc-specs { margin: 2px 0 12px !important; }
.mc-specs .specs b, .mc-specs .specs small { color: var(--cream); }
.mc-specs .specs .ic { color: var(--gold-2); }
.mc-specs .specs .sp-park .ic { color: #fff; }
.apt-more { margin-left: auto; }
.chip-park { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px 6px 8px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-size: .84rem; font-weight: 700; color: var(--ink-2); transition: all .25s var(--ease); }
.chip-park .ic { width: 20px; height: 20px; fill: #2f6fb3; stroke: #fff; }
.chip-park:hover { border-color: #2f6fb3; color: #2f6fb3; }
.chip-park.on { background: #2f6fb3; border-color: #2f6fb3; color: #fff; }
.chip-park.on .ic { fill: #fff; stroke: #2f6fb3; }
.apt-more { margin-left: auto; color: var(--bx); font-weight: 800; }
.apt-type { padding: 3px 10px; border-radius: 999px; background: var(--cream); color: var(--bx); font-weight: 800; font-size: .78rem; }
.apt-more .ic { transition: transform .3s var(--ease); }
.apt-card:hover .apt-more .ic { transform: translateX(4px); }
.apt-soon { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 34px; cursor: default; background: linear-gradient(160deg, var(--bx), var(--bx-deep)); color: var(--cream); border: 0; min-height: 360px; }
.apt-soon h3 { font-family: var(--serif); font-size: 1.7rem; line-height: 1.1; margin: 18px 0 8px; }
.apt-soon p { margin: 0; color: rgba(246,239,229,.75); }
.soon-hex { position: relative; width: 170px; height: 170px; }
.soon-hex svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.soon-logo { inset: 0 !important; width: 100% !important; height: 100% !important; color: var(--cream); animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(.94); } 50% { transform: scale(1.04); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-6px); } }
.apt-empty { grid-column: 1 / -1; text-align: center; padding: 40px; color: var(--ink-2); }

/* ---------- modale ---------- */
.modal { width: min(1180px, 100% - 32px); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 28px; background: var(--paper); color: var(--ink); box-shadow: 0 40px 120px -20px rgba(0,0,0,.6); overflow: hidden; }
.modal::backdrop { background: rgba(23, 6, 7, .72); backdrop-filter: blur(8px); }
.modal[open] { animation: pop .5s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.modal-inner { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); height: min(780px, calc(100vh - 32px)); }
.modal-close { position: absolute; right: 16px; top: 16px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(251,248,243,.94); display: grid; place-items: center; box-shadow: var(--shadow); transition: transform .3s var(--ease); }
.modal-close:hover { transform: rotate(90deg); }
.gallery { background: var(--night); display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.gallery-main { position: relative; flex: 1; min-height: 340px; display: grid; place-items: center; overflow: hidden; }
.gallery-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .3s; }
.gallery-main img.fade { opacity: .25; }
.g-nav { position: absolute; top: 50%; translate: 0 -50%; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(251,248,243,.9); display: grid; place-items: center; transition: transform .3s var(--ease), background .3s; }
.g-nav:hover { transform: scale(1.08); background: #fff; }
.g-prev { left: 14px; } .g-next { right: 14px; }
.g-count { position: absolute; left: 16px; bottom: 14px; padding: 4px 12px; border-radius: 999px; background: rgba(23,6,7,.7); color: var(--cream); font-size: .8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.gallery-thumbs { display: flex; gap: 6px; padding: 10px; overflow-x: auto; scrollbar-width: thin; background: #0f0404; }
.gallery-thumbs button { flex: none; width: 78px; height: 52px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: #333; opacity: .55; transition: opacity .2s, border-color .2s; }
.gallery-thumbs button.on, .gallery-thumbs button:hover { opacity: 1; border-color: var(--gold-2); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.modal-body { padding: 40px 36px 32px; overflow-y: auto; }
.m-lines { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.m-tag { margin-left: 6px; font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--bx); }
.modal-body h2 { font-family: var(--serif); font-size: clamp(2.2rem, 3.5vw, 3rem); line-height: 1; margin: 0 0 8px; }
.m-area { display: flex; align-items: center; gap: 6px; margin: 0 0 22px; color: var(--ink-2); }
.m-area .ic { color: var(--bx); }
.m-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 22px; }
.m-specs div { padding: 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.m-specs .ic { color: var(--bx); margin-bottom: 6px; }
.m-specs b { font-size: .95rem; line-height: 1.25; }
.m-specs small { color: var(--muted); font-size: .75rem; }
.m-desc { color: var(--ink-2); margin: 0 0 20px; white-space: pre-line; }
.m-facts { display: grid; grid-template-columns: 1fr auto; gap: 12px; margin: 0 0 26px; padding: 14px 0; border-block: 1px solid var(--line); font-size: .86rem; }
.m-facts dt { color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.m-facts dd { margin: 2px 0 0; font-weight: 600; }
.m-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.m-actions .btn { padding: 12px 18px; font-size: .88rem; }

/* ---------- recensioni ---------- */
.reviews { background: #fffaf3; border-block: 1px solid var(--line); padding-block: clamp(34px, 5vw, 56px); overflow: hidden; }
.rv-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 24px; margin-bottom: 22px; }
.rv-head .h2 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); }
.rv-note { margin: 0; color: var(--ink-2); font-size: .86rem; font-weight: 600; }
.rv-track { min-height: 232px; }
.rv-track { overflow: hidden; padding-left: max(16px, env(safe-area-inset-left, 0px)); }
.rv-row { display: flex; gap: 18px; width: max-content; padding: 6px 0 14px; will-change: transform; }
.rv-card { width: 320px; flex: none; display: grid; grid-template-rows: auto auto 1fr auto; gap: 8px; padding: 18px 20px; border-radius: 18px; background: #fff; border: 1px solid var(--line); cursor: pointer; transition: border-color .3s, box-shadow .3s; }
.rv-card:hover, .rv-card:focus-visible { border-color: rgba(201,164,90,.7); box-shadow: 0 0 0 3px rgba(231,201,131,.3); outline: none; }
.rv-card header { display: flex; align-items: center; gap: 12px; }
.rv-card header b { display: block; font-size: 1rem; }
.rv-logo { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.rv-logo.rv-a { background: #ff385c; }
.rv-logo.rv-a svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linejoin: round; }
.rv-logo.rv-b { display: flex; align-items: center; justify-content: center; white-space: nowrap; background: #003580; font: 800 1.05rem/1 var(--sans); letter-spacing: -.02em; }
.rv-logo.rv-b i { font-style: normal; color: #5bbaff; }
.apts-lead a.to-reviews { color: var(--bx); font-weight: 400; text-decoration: underline; text-decoration-color: rgba(201,164,90,.8); text-underline-offset: 5px; text-decoration-thickness: 1px; transition: color .25s, text-decoration-color .25s; }
.apts-lead a.to-reviews:hover { color: var(--bx-2); text-decoration-color: var(--bx); }
.services-head .h2 { font-size: clamp(2.2rem, 3.8vw, 3.5rem); }
.rv-more { display: none; color: var(--ink-2); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(201,164,90,.8); text-underline-offset: 3px; }
.rv-card.long .rv-more { display: inline; }
.rv-dialog { width: min(560px, calc(100% - 32px)); max-height: min(80vh, 720px); padding: 30px 32px 26px; border: 1px solid var(--line); border-radius: 20px; background: #fffaf3; color: var(--ink); box-shadow: 0 40px 80px -30px rgba(40,0,4,.5); overflow: auto; }
.rv-dialog::backdrop { background: rgba(23,6,7,.45); backdrop-filter: blur(3px); }
.rv-dialog[open] { animation: pop .35s var(--ease); }
.rv-dialog .modal-close { top: 14px; right: 14px; }
.rvd-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding-right: 48px; }
.rvd-head b { display: block; font-size: 1.1rem; }
.rvd-head small { color: var(--ink-2); font-size: .8rem; }
.rvd-text { margin-top: 12px; font-size: .98rem; line-height: 1.7; }
.rvd-text p { margin: 0 0 10px; }
.rvd-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.rvd-foot span { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--bx); }
.style-picker { position: fixed; z-index: 90; left: max(14px, env(safe-area-inset-left, 0px)); bottom: max(14px, env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: 10px; background: rgba(23,6,7,.88); color: var(--cream); font-size: .74rem; box-shadow: 0 12px 30px -10px rgba(0,0,0,.5); }
.style-picker span { padding: 0 8px; color: var(--gold-2); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .66rem; }
.style-picker button { border: 0; background: none; color: var(--cream); padding: 6px 10px; border-radius: 7px; font-weight: 700; }
.style-picker button.on { background: var(--cream); color: var(--bx); }
.rv-source { margin: 4px auto 0; font-size: .7rem; color: var(--ink-2); opacity: .7; }
.rv-apt { font-weight: 700; color: var(--bx); }
.rv-card header small { color: var(--ink-2); font-size: .76rem; }
.rv-stars { color: var(--gold); letter-spacing: 2px; font-size: .9rem; }
.rv-score { justify-self: start; display: inline-flex; align-items: baseline; gap: 1px; padding: 3px 8px; border-radius: 8px 8px 8px 0; background: #003580; color: #fff; font-weight: 800; font-size: .86rem; font-variant-numeric: tabular-nums; }
.rv-score small { font-size: .68rem; opacity: .8; }
.rv-card p { margin: 0; font-size: .9rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.rv-card footer { display: flex; justify-content: space-between; gap: 10px; font-size: .76rem; color: var(--ink-2); padding-top: 8px; border-top: 1px solid var(--line); }
@media (max-width: 600px) { .rv-card { width: 270px; } }
@media (prefers-reduced-motion: reduce) { .rv-track { overflow-x: auto; } }

/* ---------- mappa ---------- */
.map-section { background: radial-gradient(120% 100% at 50% 0%, #5e1418 0%, #43100f 60%, #360b0d 100%); color: var(--cream); padding-top: clamp(44px, 5.5vw, 72px); position: relative; }
.map-head { margin-bottom: 22px; }
.map-head .h2 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); margin-bottom: 10px; }
.map-head .lead { margin-bottom: 0; }
.map-stage { position: relative; height: max(640px, 86vh); overflow: hidden; border-top: 1px solid rgba(231,201,131,.15); background: var(--map-bg, #ece4d6); }
.map-stage[data-ground="crema"] { --map-bg: #ece4d6; }
.map-stage[data-ground="sabbia"] { --map-bg: #e2d3bb; }
.map-stage[data-ground="cipria"] { --map-bg: #efdfdc; }
.map-stage[data-ground="perla"] { --map-bg: #e7e6e2; }
.map-canvas { position: absolute; inset: 0; }
.map-canvas canvas { width: 100% !important; height: 100% !important; display: block; }
.map-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.ml { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity .3s; will-change: transform; }
.ml.on { opacity: 1; }
.ml > span { display: inline-flex; align-items: center; gap: 4px; transform: translate(-50%, -100%); white-space: nowrap; }
.ml-st > span { padding: 2px 7px 2px 3px; border-radius: 6px; background: rgba(23,6,7,.78); color: #fff; font-size: 11px; font-weight: 700; }
.ml-st i { display: inline-grid; place-items: center; height: 15px; padding: 0 4px; border-radius: 4px; color: #fff; font: 800 9px/1 var(--sans); font-style: normal; }
.ml-int > span { font-size: 12px; }
.ml-mon > span { padding: 3px 9px; border-radius: 999px; background: rgba(251,248,243,.9); color: var(--ink); font: italic 600 13px var(--serif); box-shadow: 0 4px 14px -6px rgba(0,0,0,.5); }
.ml-apt > span { padding: 5px 12px; border-radius: 999px; background: var(--bx); color: #fff; font-size: 12px; border: 1.5px solid var(--gold-2); box-shadow: 0 6px 20px -6px rgba(0,0,0,.6); }
.ml-dist > span { transform: translate(-50%, -50%); font: italic 600 15px/1 var(--serif); color: rgba(91, 60, 50, .78); letter-spacing: .06em; text-shadow: 0 0 6px #f6f0e6, 0 0 2px #f6f0e6; }
.ml-route > span { padding: 6px 14px; border-radius: 999px; background: var(--gold); color: var(--night); font-size: 13px; font-weight: 800; box-shadow: 0 8px 24px -8px rgba(0,0,0,.6); }
.map-loading { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--bx); font-size: .9rem; transition: opacity .6s; }
.map-stage.ready .map-loading { opacity: 0; pointer-events: none; }

.map-controls { position: absolute; top: 18px; right: 18px; z-index: 3; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; max-width: 520px; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(23,6,7,.7); border: 1px solid rgba(231,201,131,.2); backdrop-filter: blur(10px); }
.seg button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: rgba(246,239,229,.75); padding: 7px 14px; border-radius: 999px; font-size: .82rem; font-weight: 700; transition: all .25s; }
.seg button.on { background: var(--cream); color: var(--bx); }
.map-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; border: 1px solid rgba(231,201,131,.2); background: rgba(23,6,7,.7); color: rgba(246,239,229,.85); font-size: .82rem; font-weight: 700; backdrop-filter: blur(10px); transition: all .25s; }
.map-btn:hover { border-color: var(--gold-2); color: #fff; }
.map-btn.on { color: var(--gold-2); border-color: rgba(231,201,131,.6); }
.line-toggles { display: flex; gap: 6px; padding: 4px; border-radius: 14px; background: rgba(23,6,7,.7); border: 1px solid rgba(231,201,131,.2); backdrop-filter: blur(10px); }
.line-toggles .chip-line { color: var(--cream); padding: 6px 10px; min-width: 40px; }
.line-toggles .chip-line:not(.on) { opacity: .55; }

.map-panel {
  position: absolute; z-index: 3; left: 18px; top: 18px; bottom: 18px; width: 360px; display: flex; flex-direction: column;
  border-radius: 22px; background: rgba(23,6,7,.78); border: 1px solid rgba(231,201,131,.18); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); overflow: hidden;
}
.panel-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 6px; gap: 4px; border-bottom: 1px solid rgba(231,201,131,.15); }
.panel-tabs button { border: 0; background: none; color: rgba(246,239,229,.65); padding: 10px; border-radius: 14px; font-weight: 700; font-size: .88rem; transition: all .25s; }
.panel-tabs button[aria-selected="true"] { background: rgba(246,239,229,.1); color: var(--cream); }
.panel-body { flex: 1; overflow-y: auto; padding: 14px; scrollbar-width: thin; scrollbar-color: rgba(231,201,131,.3) transparent; }
.map-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.map-list button { width: 100%; display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 12px; padding: 7px; border-radius: 14px; border: 1px solid transparent; background: rgba(246,239,229,.04); color: var(--cream); text-align: left; transition: all .25s var(--ease); }
.map-list button:hover, .map-list button.on { background: rgba(246,239,229,.1); border-color: rgba(231,201,131,.4); transform: translateX(3px); }
.map-list img { width: 54px; height: 40px; border-radius: 9px; object-fit: cover; }
.map-list b { display: block; font-size: .9rem; line-height: 1.2; }
.map-list small { color: rgba(246,239,229,.6); font-size: .76rem; }
.ml-chips { display: flex; gap: 3px; }
.ml-chips .chip { min-width: 0; height: 18px; padding: 0 5px; font-size: .62rem; }
.map-card { margin-bottom: 14px; border-radius: 16px; overflow: hidden; background: rgba(246,239,229,.08); border: 1px solid rgba(231,201,131,.35); animation: pop .5s var(--ease); }
.map-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.mc-body { padding: 14px; }
.mc-body h3 { font-family: var(--serif); font-size: 1.6rem; margin: 2px 0 2px; line-height: 1.1; }
.mc-body p { margin: 0 0 12px; color: rgba(246,239,229,.7); font-size: .84rem; }
.mc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; }
.map-panel .field span { color: rgba(246,239,229,.7); text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; }
.map-panel select { width: 100%; padding: 11px 12px; border-radius: 12px; border: 1px solid rgba(231,201,131,.3); background: rgba(246,239,229,.08); color: var(--cream); font-weight: 600; font-size: .9rem; }
.map-panel select option { color: var(--ink); }
.route-result { margin-top: 16px; }
.route-total { display: flex; align-items: baseline; justify-content: space-between; padding: 12px 14px; border-radius: 14px; background: linear-gradient(120deg, rgba(201,164,90,.25), rgba(201,164,90,.08)); border: 1px solid rgba(231,201,131,.4); margin-bottom: 14px; }
.route-total small { color: rgba(246,239,229,.7); font-weight: 600; }
.route-total b { font-size: 1.5rem; color: var(--gold-2); }
.steps { list-style: none; margin: 0; padding: 0; position: relative; }
.steps::before { content: ''; position: absolute; left: 15px; top: 10px; bottom: 10px; width: 2px; background: rgba(246,239,229,.15); }
.st { --c: var(--gold); position: relative; display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 8px 0; font-size: .86rem; line-height: 1.45; color: rgba(246,239,229,.85); animation: pop .5s var(--ease) both; }
.st:nth-child(2) { animation-delay: .08s; } .st:nth-child(3) { animation-delay: .16s; } .st:nth-child(4) { animation-delay: .24s; } .st:nth-child(5) { animation-delay: .32s; }
.st > .chip, .st > .ic { position: relative; z-index: 1; justify-self: center; }
.st > .ic { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--night); border: 1.5px solid var(--gold-2); color: var(--gold-2); }
.st > .chip { margin-top: 2px; }
.st b { color: #fff; }
.st small { display: block; color: rgba(246,239,229,.55); }
.route-note { margin: 16px 0 0; font-size: .76rem; color: rgba(246,239,229,.55); }
.route-note a { color: var(--gold-2); display: inline-flex; align-items: center; gap: 4px; }
.map-hint { position: absolute; z-index: 2; right: 18px; bottom: 16px; margin: 0; padding: 6px 12px; border-radius: 999px; background: rgba(23,6,7,.7); font-size: .76rem; color: rgba(246,239,229,.85); pointer-events: none; backdrop-filter: blur(8px); }
.ml-street > span { transform: translate(-50%, -50%); font: 600 10.5px/1 var(--sans); letter-spacing: .02em; color: #5b4a40; text-shadow: 0 0 3px #fffaf2, 0 0 3px #fffaf2, 0 0 1px #fffaf2; }
.ml-street-0 > span { font-size: 11.5px; font-weight: 700; color: #4a3328; }
.ml-street-3 > span { font-size: 10px; font-weight: 600; color: #7a6a5f; }
.ml-street { z-index: 0; }
.ml-st, .ml-apt, .ml-mon, .ml-route { z-index: 1; }
.seg-zoom button { padding: 7px 10px; }
.map-zoomhint { position: absolute; z-index: 5; right: 18px; bottom: 50px; max-width: min(80%, 360px); padding: 7px 12px; border-radius: 10px; background: rgba(23,6,7,.72); color: var(--cream); font-size: .74rem; font-weight: 600; pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .25s; }
.map-zoomhint.on { opacity: 1; transform: none; }
.seg-nav button .ic { width: 16px; height: 16px; }
.mc-goto { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(231,201,131,.45); background: rgba(201,164,90,.14); color: var(--gold-2); font-weight: 700; font-size: .84rem; transition: all .25s; }
.ground-picker { position: absolute; z-index: 4; left: 50%; bottom: 58px; transform: translateX(-50%); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 16px; background: rgba(23,6,7,.85); color: var(--cream); font-size: .8rem; box-shadow: 0 12px 30px -10px rgba(0,0,0,.5); }
.ground-picker b { margin: 0 6px; color: var(--gold-2); }
.ground-picker button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; border: 1px solid rgba(231,201,131,.25); background: none; color: var(--cream); font-weight: 700; font-size: .78rem; }
.ground-picker button i { width: 16px; height: 16px; border-radius: 4px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); }
.ground-picker button.on { background: var(--cream); color: var(--bx); }
@media (max-width: 760px) { .ground-picker { position: static; transform: none; margin: 8px; } }
.mc-goto:hover { background: rgba(201,164,90,.28); color: #fff; }
.mc-goto .ic { width: 16px; height: 16px; transform: rotate(90deg); }
.map-activate, .map-done { display: none; }

/* ---------- contatti ---------- */
.contact { background: var(--cream); }
.contact-wrap { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.contact-list .ic { width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: var(--bx); color: var(--cream); }
.contact-list small { display: block; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.contact-list a, .contact-list span { font-weight: 700; text-decoration: none; }
.contact-list a:hover { color: var(--bx); }
.form-card { position: relative; background: #fff; border-radius: 28px; padding: clamp(22px, 3.4vw, 40px); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.seg-light { background: var(--cream); border-color: var(--line); margin-bottom: 24px; backdrop-filter: none; }
.seg-light button { color: var(--ink-2); padding: 10px 18px; font-size: .88rem; }
.seg-light button.on { background: var(--bx); color: #fff; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field-row { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field-row[hidden] { display: none; }
.field.full, .check.full, .field.wide { grid-column: 1 / -1; }
.form-card .field > span { color: var(--ink-2); }
.form-card input:not([type=checkbox]), .form-card select, .form-card textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1.5px solid #e5dbcd; background: var(--paper); font-size: .95rem; font-weight: 500;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.form-card textarea { resize: vertical; min-height: 110px; }
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { outline: none; border-color: var(--bx); background: #fff; box-shadow: 0 0 0 4px rgba(113,0,4,.08); }
.field.invalid input, .field.invalid textarea { border-color: #c2272d; background: #fff6f6; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: var(--ink-2); margin: 4px 0 6px; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--bx); }
.check.invalid { color: #c2272d; }
.check a { color: var(--bx); font-weight: 700; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-top: 12px; }
.form-foot small { color: var(--muted); }
.form-msg { margin: 12px 0 0; font-size: .88rem; color: var(--ink-2); min-height: 1.2em; }
.form-msg.err { color: #c2272d; font-weight: 700; }
.form-ok { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: #fff; padding: 30px; animation: pop .6s var(--ease); }
.form-ok[hidden] { display: none; }
.ok-badge { width: 84px; height: 84px; display: grid; place-items: center; background: var(--bx); color: #fff; clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%); margin-bottom: 18px; }
.ok-badge .ic { width: 38px; height: 38px; stroke-width: 2.4; stroke-dasharray: 30; stroke-dashoffset: 30; animation: tick .7s .2s var(--ease) forwards; }
@keyframes tick { to { stroke-dashoffset: 0; } }
.form-ok h3 { font-family: var(--serif); font-size: 2.2rem; margin: 0 0 6px; }
.form-ok p { margin: 0; color: var(--ink-2); }

/* ---------- footer ---------- */
.footer { background: var(--night); color: rgba(246,239,229,.75); padding: 70px 0 30px; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(246,239,229,.1); }
.footer-logo { width: 96px; height: 96px; color: var(--cream); margin-bottom: 12px; }
.footer-brand p { margin: 0; max-width: 32ch; }
.footer-nav { display: grid; gap: 8px; align-content: start; }
.footer-nav a, .footer-contact a { text-decoration: none; color: var(--cream); }
.footer-nav a:hover, .footer-contact a:hover { color: var(--gold-2); }
.footer-contact { display: grid; gap: 10px; align-content: start; }
.f-mail small { display: block; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(246,239,229,.5); }
.footer-legal { padding-top: 24px; font-size: .78rem; color: rgba(246,239,229,.5); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer-legal a { color: inherit; }

/* ---------- animazioni di entrata ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }
.service[data-reveal].in:nth-child(even) { transform: translateY(36px) rotateX(var(--rx)) rotateY(var(--ry)); }
.apt-card[data-reveal].in, .choice-card[data-reveal].in, .service[data-reveal].in:nth-child(odd) { transform: rotateX(var(--rx)) rotateY(var(--ry)); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .apt-grid { grid-template-columns: repeat(2, 1fr); }
  .services-wrap { grid-template-columns: 1fr; }
  .services-head { position: static; }
  .map-panel { width: 320px; }
}
@media (max-width: 900px) {
  .nav { position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; align-items: center; gap: 26px; background: var(--night); color: var(--cream); opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
  .nav a { font-family: var(--serif); font-size: 2.4rem; font-weight: 600; }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .menu-open .site-header { color: var(--cream); background: transparent; box-shadow: none; backdrop-filter: none; }
  .menu-open .brand-logo { color: var(--cream); }
  .burger { display: block; }
  .header-cta { display: none; }
  .brand-name { display: none; }
  .contact-wrap { grid-template-columns: 1fr; }
  .map-stage { height: auto; display: flex; flex-direction: column; }
  .map-canvas-wrap { position: relative; }
  .map-canvas, .map-labels { position: absolute; inset: 0 0 auto; height: 72vh; }
  .map-stage::before { content: ''; display: block; height: 72vh; flex: none; }
  .map-loading { inset: 0 0 auto; height: 72vh; }
  .map-panel { position: relative; inset: auto; width: auto; margin: 14px; max-height: none; }
  .panel-body { max-height: 460px; }
  .map-controls { left: 0; right: 0; top: 10px; padding: 0 12px; justify-content: flex-start; max-width: none; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .map-controls::-webkit-scrollbar { display: none; }
  .map-controls > * { flex: none; }
  .map-btn span, .seg button span { display: none; }
  .map-activate { white-space: nowrap; }
  .map-hint { display: none; }
  .map-activate { display: flex; align-items: center; gap: 6px; position: absolute; z-index: 4; left: 50%; top: calc(72vh / 2); translate: -50% -50%; padding: 7px 13px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: rgba(23,6,7,.28); color: #fff; font-size: .78rem; font-weight: 600; backdrop-filter: blur(4px); }
  .map-activate .ic { width: 15px; height: 15px; }
  .map-stage.active .map-activate { display: none; }
  .map-done { display: block; position: absolute; z-index: 4; right: 12px; top: calc(72vh - 56px); padding: 10px 18px; border-radius: 999px; border: 0; background: var(--cream); color: var(--bx); font-weight: 800; }
  .map-done[hidden] { display: none; }
  .modal-inner { grid-template-columns: minmax(0, 1fr); overflow-y: auto; height: auto; max-height: calc(100vh - 32px); }
  .gallery-main { min-height: 0; flex: none; aspect-ratio: 4 / 3; }
  .modal-body { overflow: visible; padding: 26px 22px 28px; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .wrap { width: calc(100% - 32px); }
  .brand-logo { width: 46px; height: 46px; }
  .choice-grid { grid-template-columns: 1fr; }
  .choice-card { min-height: 380px; }
  .services-grid { grid-template-columns: 1fr; }
  .service:nth-child(even), .service[data-reveal].in:nth-child(even) { transform: none; }
  .apt-grid { grid-template-columns: 1fr; }
  .filters { position: static; grid-template-columns: minmax(0, 1fr); }
  .fgroup { padding: 12px 16px; }
  .hero-hint { display: none; }
  .hero-shade { background: linear-gradient(0deg, rgba(23,6,7,.78) 0%, rgba(23,6,7,.45) 40%, transparent 62%); }
  .hero-ctas .btn { width: 100%; }
  .form-grid, .field-row { grid-template-columns: 1fr; }
  .m-specs { grid-template-columns: 1fr 1fr; }
  .m-specs div:last-child { grid-column: 1 / -1; }
  .m-facts { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .modal { width: 100%; max-width: 100%; max-height: 100%; height: 100%; margin: 0; border-radius: 0; }
  .m-actions .btn { flex: 1 1 100%; }
  .modal-inner { max-height: 100vh; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
