/* ============ Myself Apartments · design system ============ */
:root {
  --cream: #f7f1e6;
  --cream-2: #efe6d4;
  --paper: #fbf8f1;
  --sage: #4e6551;
  --sage-d: #2f3e32;
  --sage-l: #a9bba9;
  --rose: #c98b8b;
  --gold: #b8975a;
  --lav: #8a7ba8;
  --ink: #2a2a26;
  --ink-2: #5b5a52;
  --line: rgba(47, 62, 50, 0.14);
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Jost', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
  --r: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul { list-style: none; margin: 0; padding: 0; }
em { font-style: italic; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1220px, 100% - 48px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 48px); }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--sage-d); color: #fff; padding: 10px 16px; z-index: 200; border-radius: 8px; }
.skip:focus { left: 8px; }

/* subtle paper grain */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .45 0 0 0 0 .35 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, .site-footer { position: relative; z-index: 1; }

/* ============ type helpers ============ */
.eyebrow {
  font-family: var(--sans); font-weight: 400; font-size: 12.5px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px; display: flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ''; width: 34px; height: 1px; background: currentColor; }
.center .eyebrow, .section-head.center .eyebrow { justify-content: center; }
.eyebrow.light { color: #e3cf9f; }
.display { font-size: clamp(2.3rem, 4.6vw, 4rem); color: var(--sage-d); }
.display em { color: var(--rose); font-weight: 400; }
.display.light { color: var(--cream); }
.display.light em { color: #f0d2c4; }
.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 62ch; }
.lead.light { color: rgba(247, 241, 230, 0.86); margin-inline: auto; }
.fineprint { font-size: 13px; color: var(--ink-2); opacity: 0.8; margin-top: 18px; }
.muted { opacity: 0.55; }

.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.section-head { margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .eyebrow { margin-bottom: 14px; }

/* ============ buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 16px 30px; border-radius: 999px;
  font-weight: 400; font-size: 15px; letter-spacing: 0.04em; border: 1px solid transparent;
  transition: transform 0.4s var(--ease), background 0.3s, color 0.3s, box-shadow 0.4s, border-color 0.3s;
  cursor: pointer; white-space: nowrap;
}
.btn i, .btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-3px); }
.btn-primary { background: var(--sage); color: var(--cream); box-shadow: 0 14px 34px -14px rgba(47, 62, 50, 0.7); }
.btn-primary:hover { background: var(--sage-d); box-shadow: 0 20px 40px -14px rgba(47, 62, 50, 0.8); }
.btn-ghost { border-color: var(--sage); color: var(--sage-d); }
.btn-ghost:hover { background: var(--sage); color: var(--cream); }
.btn-light { background: var(--cream); color: var(--sage-d); box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.5); }
.btn-light:hover { background: #fff; }
.btn-outline-light { border-color: rgba(247, 241, 230, 0.5); color: var(--cream); }
.btn-outline-light:hover { background: rgba(247, 241, 230, 0.14); border-color: var(--cream); }

.link-arrow { display: inline-flex; align-items: center; gap: 10px; color: var(--sage); font-weight: 400; letter-spacing: 0.04em; font-size: 15px; }
.link-arrow i, .link-arrow svg { width: 18px; height: 18px; transition: transform 0.4s var(--ease); }
a:hover > .link-arrow i, a:hover > .link-arrow svg, .link-arrow:hover i, .link-arrow:hover svg { transform: translateX(6px); }

/* ============ header ============ */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background 0.4s, box-shadow 0.4s, padding 0.4s; padding: 18px 0; }
.site-header.scrolled { background: rgba(247, 241, 230, 0.88); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--line); padding: 10px 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif); font-style: italic; font-size: 30px; color: var(--sage-d); font-weight: 500; }
.brand-sub { font-size: 10px; letter-spacing: 0.5em; text-transform: uppercase; color: var(--gold); margin-top: 3px; padding-left: 2px; }
.brand-light .brand-name { color: var(--cream); }
.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a { font-size: 14px; letter-spacing: 0.08em; position: relative; color: var(--sage-d); padding: 4px 0; }
.main-nav a:not(.nav-cta)::after { content: ''; position: absolute; left: 0; bottom: -2px; height: 1px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
.main-nav a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-cta { background: var(--sage); color: var(--cream) !important; padding: 10px 24px !important; border-radius: 999px; transition: background 0.3s, transform 0.3s var(--ease); }
.nav-cta:hover { background: var(--sage-d); transform: translateY(-2px); }
.menu-toggle { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: rgba(247, 241, 230, 0.7); cursor: pointer; position: relative; z-index: 120; }
.menu-toggle span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--sage-d); transition: transform 0.4s var(--ease), top 0.4s var(--ease); }
.menu-toggle span:first-child { top: 19px; }
.menu-toggle span:last-child { top: 26px; }
.menu-toggle[aria-expanded='true'] span:first-child { top: 22px; transform: rotate(45deg); }
.menu-toggle[aria-expanded='true'] span:last-child { top: 22px; transform: rotate(-45deg); }

/* ============ hero ============ */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 130px 0 90px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 85% 20%, rgba(201, 139, 139, 0.22), transparent 70%),
    radial-gradient(50% 50% at 8% 90%, rgba(138, 123, 168, 0.18), transparent 70%),
    radial-gradient(70% 60% at 50% 110%, rgba(169, 187, 169, 0.45), transparent 70%),
    linear-gradient(180deg, var(--paper), var(--cream)); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.hero-title { font-size: clamp(3.6rem, 9vw, 8rem); color: var(--sage-d); letter-spacing: -0.03em; margin-bottom: 26px; }
.hero-title span, .hero-title em { display: block; }
.hero-title em { color: var(--rose); font-weight: 400; margin-top: -0.12em; padding-left: 0.5em; }
.hero-lead { font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: var(--ink-2); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 40px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 14px; color: var(--sage-d); }
.hero-badges li { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges i, .hero-badges svg { width: 17px; height: 17px; color: var(--gold); }

.hero-arches { position: relative; height: min(640px, 72vh); min-height: 460px; }
.arch { position: absolute; margin: 0; overflow: hidden; border-radius: 999px 999px 18px 18px; box-shadow: 0 40px 70px -30px rgba(47, 62, 50, 0.55); background: var(--cream-2); }
.arch img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.4s var(--ease); }
.arch:hover img { transform: scale(1.12); }
.arch-a { width: 54%; height: 82%; left: 22%; top: 0; z-index: 2; }
.arch-b { width: 38%; height: 52%; left: 0; bottom: 0; z-index: 3; border: 6px solid var(--cream); }
.arch-c { width: 34%; height: 46%; right: 0; bottom: 6%; z-index: 3; border: 6px solid var(--cream); }
.arch-xl { position: relative; width: 100%; aspect-ratio: 3/4; max-width: 520px; margin-inline: auto; }
.seal { position: absolute; right: 2%; top: 4%; width: 118px; height: 118px; z-index: 4; color: var(--sage-d); background: var(--cream); border-radius: 50%; display: grid; place-items: center; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.3); }
.seal > svg { position: absolute; inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); animation: spin 24s linear infinite; }
.seal text { font-family: var(--sans); font-size: 9.4px; letter-spacing: 0.17em; text-transform: uppercase; fill: var(--sage-d); }
.seal > span { color: var(--rose); display: grid; place-items: center; position: relative; }
.seal > span svg { width: 24px; height: 24px; fill: currentColor; stroke-width: 1.2; }
@keyframes spin { to { transform: rotate(360deg); } }

.scroll-hint { position: absolute; bottom: 26px; left: 50%; width: 26px; height: 44px; margin-left: -13px; border: 1px solid rgba(47, 62, 50, 0.4); border-radius: 20px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 3px; background: var(--sage); animation: wheel 1.8s infinite var(--ease); }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

/* ornament */
.ornament { display: flex; align-items: center; justify-content: center; gap: 16px; color: var(--gold); margin-bottom: 30px; }
.ornament span { width: 70px; height: 1px; background: linear-gradient(90deg, transparent, currentColor); }
.ornament span:last-child { transform: scaleX(-1); }

.intro { padding-bottom: clamp(60px, 8vw, 100px); }
.intro .display { margin-bottom: 28px; }
.intro .lead { margin-inline: auto; }

/* ============ apartments grid ============ */
.apts { background: var(--paper); }
.apts::before, .atmos::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 70px; background: var(--cream); clip-path: ellipse(60% 100% at 50% 0); }
.apt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.apt-card { display: flex; flex-direction: column; background: var(--cream); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease); }
.apt-live:hover { transform: translateY(-10px); box-shadow: 0 40px 60px -34px rgba(47, 62, 50, 0.55); }
.apt-media { position: relative; aspect-ratio: 4/4.4; overflow: hidden; }
.apt-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.apt-live:hover .apt-media img { transform: scale(1.08); }
.apt-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(30, 40, 32, 0.35)); pointer-events: none; }
.tag { position: absolute; top: 18px; left: 18px; z-index: 2; background: var(--cream); color: var(--sage-d); font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase; padding: 7px 16px; border-radius: 999px; font-weight: 400; }
.tag-soft { background: rgba(247, 241, 230, 0.85); color: var(--gold); }
.apt-body { padding: 30px 30px 34px; display: flex; flex-direction: column; flex: 1; }
.apt-body .eyebrow { margin-bottom: 10px; font-size: 11.5px; }
.apt-body h3 { font-size: 2.1rem; color: var(--sage-d); margin-bottom: 12px; }
.apt-body p { color: var(--ink-2); font-size: 16px; flex: 1; }
.apt-soon { background: transparent; border-style: dashed; border-color: rgba(184, 151, 90, 0.5); }
.soon-media { background: linear-gradient(160deg, rgba(169, 187, 169, 0.28), rgba(201, 139, 139, 0.16)); display: grid; place-items: center; }
.soon-media::after { display: none; }
.soon-art { width: 46%; color: var(--sage); opacity: 0.55; animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }

/* ============ atmosphere ============ */
.atmos { background: var(--cream); }
.atmos::before { background: var(--paper); }
.atmos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.atmos-col { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.atmos-col > .fill { flex: 1; min-height: 280px; }
.atmos-col > .fill img { position: absolute; inset: 0; width: 100%; height: 100%; }
.atmos-item { margin: 0; position: relative; overflow: hidden; border-radius: var(--r); cursor: zoom-in; box-shadow: 0 30px 50px -34px rgba(47, 62, 50, 0.5); }
.atmos-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.atmos-item:hover img { transform: scale(1.07); }
.atmos-item figcaption, .m-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 16px; color: #fff; font-family: var(--serif); font-style: italic; font-size: 1.25rem; background: linear-gradient(180deg, transparent, rgba(24, 34, 26, 0.7)); transform: translateY(30%); opacity: 0; transition: 0.6s var(--ease); }
.atmos-item:hover figcaption, .m-item:hover figcaption { transform: none; opacity: 1; }
.a1 { aspect-ratio: 3 / 4.2; border-radius: 999px 999px var(--r) var(--r); }
.a2 { aspect-ratio: 4 / 4.4; }
.a3 { border-radius: var(--r) var(--r) 999px 999px; }
.atmos-quote { min-height: 250px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 20px; }
.atmos-quote p { font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.15; color: var(--sage-d); margin: 10px 0 12px; }
.atmos-quote p em { color: var(--rose); }
.atmos-quote span { font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); }
.q-icon { width: 34px; height: 34px; color: var(--gold); opacity: 0.8; }

/* ============ stats ============ */
.stats { background: var(--sage-d); color: var(--cream); padding: 64px 0; position: relative; overflow: hidden; }
.stats::before { content: ''; position: absolute; inset: 0; background: radial-gradient(40% 120% at 10% 0, rgba(184, 151, 90, 0.18), transparent 70%), radial-gradient(40% 120% at 90% 100%, rgba(201, 139, 139, 0.16), transparent 70%); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; position: relative; }
.stats-grid > div + div { border-left: 1px solid rgba(247, 241, 230, 0.16); }
.stats strong { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(2.8rem, 5vw, 4.4rem); line-height: 1; color: #f0dcb0; }
.stats small { font-size: 0.4em; margin-left: 4px; color: var(--sage-l); }
.stats span { display: block; margin-top: 10px; font-size: 14px; letter-spacing: 0.06em; color: rgba(247, 241, 230, 0.75); }

/* ============ services ============ */
.services { background: var(--paper); }
.services-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.service { padding: 30px 22px; background: var(--cream); border: 1px solid var(--line); border-radius: var(--r); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), background 0.4s; }
.service:hover { transform: translateY(-8px); background: #fff; box-shadow: 0 30px 50px -32px rgba(47, 62, 50, 0.45); }
.service h3 { font-size: 1.45rem; color: var(--sage-d); margin: 20px 0 4px; }
.service p { font-size: 14.5px; color: var(--ink-2); margin: 0; line-height: 1.5; }
.service-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: rgba(169, 187, 169, 0.3); color: var(--sage-d); flex: none; transition: background 0.4s, color 0.4s, transform 0.6s var(--ease); }
.service-icon i, .service-icon svg { width: 24px; height: 24px; stroke-width: 1.4; }
.service:hover .service-icon { background: var(--sage); color: var(--cream); transform: rotate(-8deg) scale(1.06); }
.service-icon.sm { width: 42px; height: 42px; }
.service-icon.sm svg, .service-icon.sm i { width: 19px; height: 19px; }

/* ============ where ============ */
.where { background: var(--cream); }
.where-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.where-copy .display { margin-bottom: 20px; }
.nearby { margin-top: 30px; display: grid; gap: 4px; }
.nearby li { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.nearby strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.3rem; color: var(--sage-d); line-height: 1.2; }
.nearby small { color: var(--ink-2); font-size: 13.5px; }
.nearby b { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; color: var(--gold); white-space: nowrap; }
.map-frame { position: relative; border-radius: 999px 999px var(--r) var(--r); overflow: hidden; aspect-ratio: 4/5; box-shadow: 0 40px 70px -34px rgba(47, 62, 50, 0.6); border: 6px solid var(--paper); background: var(--cream-2); }
.map-frame iframe { position: relative; z-index: 1; width: 100%; height: 100%; border: 0; filter: saturate(0.7) sepia(0.15) contrast(0.96); }
.map-fallback { position: absolute; inset: 0; z-index: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 30px; color: var(--sage-d);
  background: radial-gradient(circle at 50% 40%, rgba(201,139,139,.18), transparent 55%), repeating-linear-gradient(45deg, rgba(78,101,81,.06) 0 1px, transparent 1px 22px), repeating-linear-gradient(-45deg, rgba(78,101,81,.06) 0 1px, transparent 1px 22px), var(--cream-2); }
.map-fallback svg { width: 44px; height: 44px; color: var(--rose); }
.map-fallback strong { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; line-height: 1.1; }
.map-fallback span { font-size: 14px; color: var(--ink-2); }
.map-btn { z-index: 2; }
.map-btn { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: inline-flex; gap: 8px; align-items: center; background: var(--sage-d); color: var(--cream); padding: 12px 24px; border-radius: 999px; font-size: 14px; letter-spacing: 0.05em; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.5); transition: transform 0.4s var(--ease); }
.map-btn:hover { transform: translateX(-50%) translateY(-3px); }
.map-btn svg, .map-btn i { width: 16px; height: 16px; }

/* ============ contact ============ */
.contact { position: relative; padding: clamp(90px, 12vw, 160px) 0; color: var(--cream); overflow: hidden; isolation: isolate; }
.contact-bg { position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(50% 70% at 15% 20%, rgba(201, 139, 139, 0.28), transparent 70%),
    radial-gradient(45% 60% at 90% 80%, rgba(138, 123, 168, 0.3), transparent 70%),
    linear-gradient(160deg, #3c5240, #263229 70%); }
.contact-bg::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(247, 241, 230, 0.07) 1px, transparent 1px); background-size: 26px 26px; }
.contact .display { margin-bottom: 24px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 38px 0 28px; }
.booking-link { display: inline-flex; gap: 8px; align-items: center; color: #e3cf9f; border-bottom: 1px solid rgba(227, 207, 159, 0.4); padding-bottom: 3px; font-size: 15px; transition: color 0.3s, border-color 0.3s; }
.booking-link:hover { color: #fff; border-color: #fff; }
.booking-link svg, .booking-link i { width: 15px; height: 15px; }
.checkinfo { display: flex; flex-wrap: wrap; gap: 14px 34px; justify-content: center; margin-top: 46px; padding-top: 30px; border-top: 1px solid rgba(247, 241, 230, 0.18); font-size: 14.5px; color: rgba(247, 241, 230, 0.8); }
.checkinfo span { display: inline-flex; gap: 10px; align-items: center; }
.checkinfo svg, .checkinfo i { width: 17px; height: 17px; color: #e3cf9f; }
.contact-compact { padding: clamp(70px, 9vw, 120px) 0; }

/* ============ footer ============ */
.site-footer { background: #1e2820; color: rgba(247, 241, 230, 0.75); padding: 80px 0 28px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 50px; }
.footer-brand p { margin: 18px 0; font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--cream); max-width: 20ch; line-height: 1.2; }
.sprig-wrap { color: var(--sage-l); }
.sprig { width: 22px; height: 54px; opacity: 0.7; }
.site-footer h4 { font-family: var(--sans); font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: #e3cf9f; margin-bottom: 20px; font-weight: 400; }
.site-footer li { margin-bottom: 10px; }
.site-footer a:hover { color: #fff; }
.footer-bottom { margin-top: 60px; padding-top: 24px; border-top: 1px solid rgba(247, 241, 230, 0.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13px; opacity: 0.7; }

/* floating whatsapp */
.float-wa { position: fixed; right: 22px; bottom: 22px; z-index: 90; display: inline-flex; align-items: center; gap: 10px; background: #2f7a55; color: #fff; padding: 14px 22px 14px 18px; border-radius: 999px; font-size: 14.5px; letter-spacing: 0.04em; box-shadow: 0 16px 36px -12px rgba(20, 70, 45, 0.7); transition: transform 0.4s var(--ease), background 0.3s; }
.float-wa:hover { transform: translateY(-4px); background: #26694a; }
.float-wa svg, .float-wa i { width: 20px; height: 20px; }

/* ============ apartment page ============ */
.apt-hero { padding: 150px 0 80px; position: relative; background:
  radial-gradient(55% 60% at 90% 10%, rgba(201, 139, 139, 0.2), transparent 70%),
  radial-gradient(45% 50% at 0 100%, rgba(169, 187, 169, 0.4), transparent 70%), var(--paper); }
.apt-hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.apt-hero .hero-title { font-size: clamp(3.4rem, 8vw, 7rem); }
.apt-hero .hero-title em { padding-left: 0; margin-top: 0; }
.apt-hero-copy p { max-width: 52ch; color: var(--ink-2); }
.apt-hero-copy .hero-lead { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2.2vw, 1.9rem); color: var(--sage); line-height: 1.25; }
.crumbs { font-size: 13px; letter-spacing: 0.08em; color: var(--ink-2); margin-bottom: 30px; }
.crumbs span { margin: 0 6px; opacity: 0.5; }
.crumbs a:hover { color: var(--gold); }
.crumbs b { font-weight: 400; color: var(--sage-d); }
.apt-hero-img { cursor: zoom-in; }

.specs { background: var(--sage-d); color: var(--cream); padding: 40px 0; }
.specs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.spec { display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center; }
.spec svg, .spec i { grid-row: 1 / 3; width: 30px; height: 30px; color: #e3cf9f; stroke-width: 1.3; }
.spec span { font-size: 11.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--sage-l); line-height: 1.2; }
.spec strong { font-family: var(--serif); font-weight: 500; font-size: 1.45rem; line-height: 1.2; }

.story { background: var(--cream); }
.story-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 7vw, 110px); align-items: start; }
.story-text p { font-size: 1.12rem; color: var(--ink-2); }
.story-text p:first-child::first-letter { font-family: var(--serif); font-size: 4.4rem; float: left; line-height: 0.8; padding: 8px 12px 0 0; color: var(--rose); font-weight: 500; }

.gallery { background: var(--paper); }
.masonry { column-count: 3; column-gap: 22px; }
.m-item { position: relative; margin: 0 0 22px; break-inside: avoid; overflow: hidden; border-radius: var(--r); cursor: zoom-in; box-shadow: 0 30px 50px -36px rgba(47, 62, 50, 0.55); }
.m-item img { width: 100%; height: auto; transition: transform 1.2s var(--ease); }
.m-item:hover img { transform: scale(1.06); }
.m-item:nth-child(3n + 2) { border-radius: 999px 999px var(--r) var(--r); }
.zoom { position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: rgba(247, 241, 230, 0.9); color: var(--sage-d); opacity: 0; transform: scale(0.7); transition: 0.5s var(--ease); }
.zoom svg, .zoom i { width: 18px; height: 18px; }
.m-item:hover .zoom { opacity: 1; transform: none; }

.amen { background: var(--cream); }
.amen-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.amen-group { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 38px 34px; }
.amen-group h3 { font-size: 1.9rem; color: var(--sage-d); margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.amen-group ul { display: grid; gap: 18px; }
.amen-group li { display: flex; gap: 16px; align-items: center; }
.amen-group strong { display: block; font-weight: 400; color: var(--ink); line-height: 1.3; }
.amen-group small { display: block; color: var(--ink-2); font-size: 13.5px; line-height: 1.35; }

.rules { background: var(--paper); }
.rules-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rule { display: flex; gap: 18px; align-items: center; padding: 24px 26px; border-radius: var(--r); background: var(--cream); border: 1px solid var(--line); }
.rule svg, .rule i { width: 28px; height: 28px; color: var(--gold); stroke-width: 1.3; flex: none; }
.rule strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.3rem; color: var(--sage-d); line-height: 1.2; }
.rule span { font-size: 14.5px; color: var(--ink-2); line-height: 1.4; display: block; }

.others { background: var(--cream); }
.others-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.other { position: relative; padding: 46px 40px; border: 1px dashed rgba(184, 151, 90, 0.55); border-radius: var(--r); }
.other .tag { position: static; display: inline-block; margin-bottom: 18px; border: 1px solid rgba(184, 151, 90, 0.4); }
.other h3 { font-size: 2rem; color: var(--sage-d); margin-bottom: 8px; }
.other p { color: var(--ink-2); margin: 0; }

/* ============ lightbox ============ */
.lb { position: fixed; inset: 0; z-index: 300; background: rgba(20, 28, 22, 0.94); backdrop-filter: blur(8px); display: grid; grid-template-rows: 1fr auto; opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s; }
.lb.open { opacity: 1; visibility: visible; }
.lb-stage { display: grid; place-items: center; padding: 30px 80px 10px; min-height: 0; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 140px); max-height: calc(100svh - 140px); border-radius: 14px; box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5); animation: lbin 0.5s var(--ease); }
@keyframes lbin { from { opacity: 0; transform: scale(0.96); } }
.lb-bar { display: flex; justify-content: center; align-items: center; gap: 20px; padding: 10px 20px 24px; color: var(--cream); font-family: var(--serif); font-style: italic; font-size: 1.3rem; }
.lb-bar small { font-family: var(--sans); font-style: normal; font-size: 12px; letter-spacing: 0.2em; opacity: 0.6; }
.lb button { position: absolute; width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(247, 241, 230, 0.3); background: rgba(247, 241, 230, 0.08); color: var(--cream); cursor: pointer; display: grid; place-items: center; transition: background 0.3s, transform 0.3s; }
.lb button:hover { background: rgba(247, 241, 230, 0.2); }
.lb button svg, .lb button i { width: 22px; height: 22px; }
.lb-x { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; margin-top: -40px; }
.lb-next { right: 20px; top: 50%; margin-top: -40px; }

/* ============ reveal animations ============ */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal-img { opacity: 0; clip-path: inset(12% 6% 0 6% round 30px); transform: translateY(40px) scale(0.96); transition: opacity 1.1s var(--ease) var(--d, 0s), clip-path 1.3s var(--ease) var(--d, 0s), transform 1.3s var(--ease) var(--d, 0s); }
.js .reveal-img.in { opacity: 1; clip-path: inset(0 0 0 0 round 0); transform: none; }
.js .arch.reveal-img, .js .arch.reveal-img.in { clip-path: none; }
[data-parallax] { will-change: translate; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .reveal-img { opacity: 1; transform: none; clip-path: none; transition: none; }
  .seal svg, .soon-art, .scroll-hint span { animation: none; }
}

/* ============ responsive ============ */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .apt-grid { grid-template-columns: repeat(2, 1fr); }
  .amen-groups { grid-template-columns: 1fr; }
  .amen-group ul { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  body { font-size: 16.5px; }
  .menu-toggle { display: block; }
  .main-nav { position: fixed; inset: 0; background: var(--cream); flex-direction: column; justify-content: center; gap: 26px; opacity: 0; visibility: hidden; transition: opacity 0.5s, visibility 0.5s; z-index: 110; }
  .main-nav.open { opacity: 1; visibility: visible; }
  .main-nav a { font-family: var(--serif); font-size: 2.2rem; letter-spacing: 0; }
  .main-nav .nav-cta { font-family: var(--sans); font-size: 16px; margin-top: 10px; }
  .hero { padding-top: 110px; }
  .hero-grid, .apt-hero-grid, .where-grid, .story-grid { grid-template-columns: 1fr; }
  .hero-arches { height: 520px; min-height: 0; max-width: 520px; margin-inline: auto; width: 100%; }
  .seal { width: 96px; height: 96px; }
  .apt-hero { padding-top: 120px; }
  .apt-hero-img { order: -1; max-width: 340px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
  .stats-grid > div:nth-child(3) { border-left: 0; }
  .specs-grid { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .masonry { column-count: 2; }
  .rules-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .atmos-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .atmos-col { display: contents; }
  .atmos-col > .fill { min-height: 0; flex: none; }
  .atmos-col > .fill img { position: static; }
  .atmos-item, .a1, .a2 { aspect-ratio: 3/4; }
  .atmos-quote { grid-column: 1 / -1; order: -1; padding: 10px 0 24px; min-height: 0; }
  .atmos-col:last-child > .fill { grid-column: 1 / -1; aspect-ratio: 16 / 11; }
  .atmos-col:last-child > .fill img { object-position: 50% 40%; }
  .atmos-item figcaption { opacity: 1; transform: none; font-size: 1.05rem; padding-top: 30px; }
  .map-frame { aspect-ratio: 4/4.2; }
  .lb-stage { padding: 70px 14px 10px; }
  .lb-prev, .lb-next { top: auto; bottom: 90px; margin: 0; }
  .lb-prev { left: calc(50% - 64px); }
  .lb-next { right: calc(50% - 64px); }
  .lb button { width: 48px; height: 48px; }
}
@media (max-width: 640px) {
  .wrap, .narrow { width: calc(100% - 36px); }
  .apt-grid, .others-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .service { padding: 24px 18px; }
  .service:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .service h3 { font-size: 1.2rem; }
  .amen-group ul, .rules-grid { grid-template-columns: 1fr; }
  .masonry { column-gap: 12px; }
  .m-item { margin-bottom: 12px; }
  .hero-actions .btn, .contact-actions .btn { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .float-wa span { display: none; }
  .float-wa { padding: 15px; }
  .nearby li { grid-template-columns: 48px 1fr; }
  .nearby b { grid-column: 2; }
  .story-text p:first-child::first-letter { font-size: 3.6rem; }
}

/* ============ tema Santorini (blu e bianco mediterraneo) ============ */
.theme-santorini {
  --sage: #2c5a82;
  --sage-d: #17344f;
  --sage-l: #a9c4dc;
  --rose: #7fb0d0;
  --gold: #c9a35f;
  --cream: #f4f7f9;
  --cream-2: #e6eef4;
  --paper: #fafcfd;
  --line: rgba(23, 52, 79, 0.14);
}
body.theme-santorini { background: var(--cream); }
.theme-santorini .btn-primary { box-shadow: 0 14px 34px -14px rgba(23, 52, 79, 0.7); }
.theme-santorini .arch,
.theme-santorini .m-item,
.theme-santorini .service:hover { box-shadow: 0 30px 50px -34px rgba(23, 52, 79, 0.55); }
.apt-card.theme-santorini .apt-body { background: var(--paper); }
.apt-card.theme-santorini .apt-body h3 { color: var(--sage-d); }

.other-live { display: grid; grid-template-columns: 38% 1fr; gap: 28px; align-items: center; padding: 0; overflow: hidden; border-style: solid; border-color: var(--line); text-decoration: none; color: inherit; background: var(--paper); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.other-live:hover { transform: translateY(-6px); box-shadow: 0 34px 50px -34px rgba(23, 52, 79, 0.5); }
.other-live img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; display: block; }
.other-live > div { padding: 30px 30px 30px 0; }
.other-live .link-arrow { margin-top: 14px; display: inline-flex; }
@media (max-width: 640px) {
  .other-live { grid-template-columns: 1fr; gap: 0; }
  .other-live img { min-height: 0; aspect-ratio: 4/3; }
  .other-live > div { padding: 22px; }
}
.theme-santorini .contact-bg {
  background:
    radial-gradient(50% 70% at 15% 20%, rgba(127, 176, 208, 0.30), transparent 70%),
    radial-gradient(45% 60% at 90% 80%, rgba(201, 163, 95, 0.20), transparent 70%),
    linear-gradient(160deg, #1f4668, #0f2336 70%);
}
.theme-santorini .site-footer { background: #0f2336; }

/* =====================================================================
   HOME · hero serale elegante (notte verde-petrolio, champagne, sabbia)
   ===================================================================== */
:root { --night: #0c2426; --night-2: #12383a; --champ: #e0c88f; --champ-d: #b99a58; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.hero-night { position: relative; isolation: isolate; color: var(--cream); min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 140px 0 150px; overflow: hidden; }
.night-bg { position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 78% 30%, rgba(224, 200, 143, 0.22), transparent 70%),
    radial-gradient(50% 60% at 12% 90%, rgba(201, 139, 139, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(12, 36, 38, 0.30) 0%, rgba(12, 36, 38, 0.62) 55%, #0c2426 100%),
    url('/static/img/hero-sera.webp') center 38% / cover no-repeat,
    var(--night); }
.night-bg::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(247, 241, 230, 0.06) 1px, transparent 1px); background-size: 28px 28px; }

.night-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(30px, 6vw, 100px); align-items: center; }
.night-photos { position: relative; height: min(560px, 66vh); min-height: 440px; }
.npic { position: absolute; margin: 0; overflow: hidden; border-radius: 999px 999px 20px 20px; box-shadow: 0 50px 80px -30px rgba(0, 0, 0, 0.7); border: 1px solid rgba(224, 200, 143, 0.45); }
.npic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.npic-a { left: 4%; top: 0; width: 56%; height: 82%; }
.npic-b { right: 0; bottom: 0; width: 46%; height: 58%; border: 6px solid rgba(12, 36, 38, 0.9); outline: 1px solid rgba(224, 200, 143, 0.45); }
.npic-glow { position: absolute; inset: 10% 5% 0 5%; background: radial-gradient(closest-side, rgba(224, 200, 143, 0.28), transparent 75%); z-index: -1; filter: blur(30px); }

.night-copy { text-align: center; }
.night-copy .eyebrow.light { justify-content: center; color: var(--champ); }
.night-title { font-size: clamp(3.2rem, 7.4vw, 6.6rem); letter-spacing: -0.03em; line-height: 0.95; margin: 14px 0 6px; color: #fff; text-shadow: 0 6px 40px rgba(0, 0, 0, 0.45); }
.night-title span, .night-title em { display: block; }
.night-title em { color: var(--champ); font-weight: 400; margin-top: -0.06em; }
.swash { width: min(380px, 70%); color: var(--champ); margin: 4px auto 22px; display: block; }
.night-lead { font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 2vw, 1.7rem); line-height: 1.3; max-width: 30ch; margin: 0 auto 34px; color: rgba(247, 241, 230, 0.95); }
.night-icons { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 0; }
.night-icons li { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 0 clamp(10px, 1.6vw, 22px); font-size: 12.5px; letter-spacing: 0.04em; color: rgba(247, 241, 230, 0.85); }
.night-icons li + li { border-left: 1px solid rgba(224, 200, 143, 0.3); }
.night-icons svg, .night-icons i { width: 30px; height: 30px; color: var(--champ); stroke-width: 1.1; }

/* barra disponibilita' */
.avail { position: absolute; left: 50%; bottom: 74px; transform: translateX(-50%); width: min(880px, calc(100% - 48px)); display: grid; grid-template-columns: 1fr 1fr 0.8fr 1fr auto; gap: 0; align-items: center; background: rgba(251, 248, 241, 0.97); border-radius: 999px; padding: 8px 8px 8px 12px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(224, 200, 143, 0.5); z-index: 5; color: var(--ink); }
.avail-field { position: relative; display: flex; align-items: center; gap: 9px; padding: 8px 14px; min-width: 0; }
.avail-field + .avail-field { border-left: 1px solid rgba(12, 36, 38, 0.12); }
.avail-field svg, .avail-field i { width: 17px; height: 17px; flex: none; color: var(--champ-d); }
.avail-field input, .avail-field select { width: 100%; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 14px; color: var(--night); outline: none; padding: 6px 0; appearance: none; -webkit-appearance: none; cursor: pointer; }
.avail-field input::placeholder { color: #5f6b66; opacity: 1; }
.avail-field:focus-within { background: rgba(224, 200, 143, 0.14); border-radius: 999px; }
.avail-btn { border: 0; cursor: pointer; font: inherit; font-size: 14.5px; letter-spacing: 0.04em; color: var(--night); background: linear-gradient(180deg, #ecd9a6, #cfb06b); padding: 15px 26px; border-radius: 999px; display: inline-flex; gap: 10px; align-items: center; white-space: nowrap; box-shadow: 0 10px 24px -10px rgba(185, 154, 88, 0.9); transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.avail-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(185, 154, 88, 1); }
.avail-btn svg, .avail-btn i { width: 17px; height: 17px; }

/* header sulla home (sopra il hero scuro) */
@media (min-width: 901px) {
  .page-home .site-header:not(.scrolled) .brand-name { color: #fff; }
  .page-home .site-header:not(.scrolled) .main-nav a { color: rgba(247, 241, 230, 0.92); }
  .page-home .site-header:not(.scrolled) .main-nav a:not(.nav-cta)::after { background: var(--champ); }
  .page-home .site-header:not(.scrolled) .nav-cta { background: linear-gradient(180deg, #ecd9a6, #cfb06b); color: var(--night) !important; }
}
.page-home .site-header:not(.scrolled) .brand-name { color: #fff; }
.page-home .site-header:not(.scrolled) .brand-sub { color: var(--champ); }
.page-home .site-header:not(.scrolled) .menu-toggle { background: rgba(12, 36, 38, 0.4); border-color: rgba(224, 200, 143, 0.5); }
.page-home .site-header:not(.scrolled) .menu-toggle span { background: #fff; }
.page-home .menu-toggle[aria-expanded='true'] { background: var(--cream) !important; }
.page-home .menu-toggle[aria-expanded='true'] span { background: var(--sage-d) !important; }

/* striscia appartamenti che sale sul hero */
.nstrip { position: relative; z-index: 6; margin-top: -64px; padding: 54px 0 90px; background: var(--cream); border-radius: 46px 46px 0 0; box-shadow: 0 -30px 60px -30px rgba(0, 0, 0, 0.5); }
.nstrip-title { display: flex; align-items: center; justify-content: center; gap: 22px; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(1.8rem, 3vw, 2.5rem); color: var(--sage-d); text-align: center; margin: 0 0 34px; }
.nstrip-title span { flex: 1; max-width: 220px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.nstrip-title span:last-child { background: linear-gradient(270deg, transparent, var(--gold)); }
.nstrip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.ncard { position: relative; display: block; overflow: hidden; border-radius: 24px; aspect-ratio: 4 / 3.7; background: var(--night-2); color: #fff; box-shadow: 0 30px 50px -28px rgba(12, 36, 38, 0.7); transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease); }
a.ncard:hover { transform: translateY(-8px); box-shadow: 0 44px 60px -28px rgba(12, 36, 38, 0.8); }
.ncard > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
a.ncard:hover > img { transform: scale(1.07); }
.ncard::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(8, 22, 24, 0.88)); pointer-events: none; }
.ncard-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; align-items: center; gap: 14px; padding: 20px 22px; }
.ncard-ico { width: 30px; height: 30px; flex: none; color: var(--champ); stroke-width: 1.2; }
.ncard-body > div { flex: 1; min-width: 0; }
.ncard h3 { font-family: var(--serif); font-size: 1.55rem; font-weight: 500; line-height: 1.1; margin: 0; color: #fff; }
.ncard small { display: block; margin-top: 4px; font-size: 12.5px; letter-spacing: 0.06em; color: rgba(247, 241, 230, 0.8); }
.ncard-go { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, #ecd9a6, #cfb06b); color: var(--night); transition: transform 0.4s var(--ease); }
a.ncard:hover .ncard-go { transform: translateX(4px); }
.ncard-go svg, .ncard-go i { width: 18px; height: 18px; }
.ncard-soon { background: linear-gradient(160deg, var(--night-2), var(--night)); border: 1px dashed rgba(224, 200, 143, 0.5); }
.ncard-soon-art { position: absolute; inset: 0 0 70px; display: grid; place-items: center; color: rgba(224, 200, 143, 0.5); }
.ncard-soon-art svg { height: 70%; }

@media (max-width: 1100px) {
  .night-icons li { font-size: 11.5px; }
  .nstrip-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-night { padding: 110px 0 60px; min-height: 0; }
  .night-grid { grid-template-columns: 1fr; gap: 26px; }
  .night-copy { order: -1; }
  .night-photos { height: 420px; min-height: 0; max-width: 460px; margin: 6px auto 0; width: 100%; }
  .avail { position: relative; left: auto; bottom: auto; transform: none; margin: 40px auto 0; grid-template-columns: 1fr 1fr; border-radius: 28px; padding: 10px; gap: 4px; width: min(560px, calc(100% - 40px)); }
  .avail-field + .avail-field { border-left: 0; }
  .avail-field { border-radius: 16px; background: rgba(12, 36, 38, 0.04); }
  .avail-btn { grid-column: 1 / -1; justify-content: center; margin-top: 4px; }
  .nstrip { margin-top: 0; border-radius: 34px 34px 0 0; }
}
@media (max-width: 640px) {
  .night-icons { flex-wrap: wrap; gap: 16px 0; }
  .night-icons li { width: 50%; }
  .night-icons li:nth-child(odd) { border-left: 0; }
  .night-icons li:nth-child(3) { border-left: 0; }
  .nstrip-grid { grid-template-columns: 1fr; }
  .night-photos { height: 360px; }
}

.night-copy .eyebrow::before { display: none; }
.avail { margin: 0; }
@media (max-width: 900px) { .avail { margin: 40px auto 0; } }
.avail { left: 0; right: 0; transform: none; margin-inline: auto; width: min(900px, calc(100% - 48px)); }
.js .avail.reveal { transform: translateY(24px); }
.js .avail.reveal.in { transform: none; }
@media (max-width: 900px) { .avail { position: relative; width: min(560px, calc(100% - 40px)); } }

/* =====================================================================
   HOME v2 · foto unica a tutta pagina, testo a destra (struttura del riferimento)
   ===================================================================== */
.hero-night { align-items: stretch; justify-content: flex-end; padding: 150px 0 190px; }
.night-bg { background:
    linear-gradient(90deg, rgba(14, 14, 36, 0.05) 0%, rgba(14, 14, 36, 0.10) 45%, rgba(14, 14, 36, 0.55) 100%),
    linear-gradient(180deg, rgba(10, 12, 30, 0.45) 0%, rgba(10, 12, 30, 0) 28%, rgba(10, 12, 30, 0) 62%, rgba(10, 12, 30, 0.6) 100%),
    url('/static/img/hero-sera.webp') 30% center / cover no-repeat,
    var(--night); }
.night-bg::after { display: none; }
.night-grid { display: block; position: relative; }
.night-copy { margin-left: auto; width: min(560px, 100%); text-align: center; }
.night-copy .eyebrow.light { letter-spacing: 0.34em; font-size: 12.5px; }
.night-title { font-size: clamp(3.4rem, 7.6vw, 7rem); }
.night-lead { font-size: clamp(1.25rem, 1.9vw, 1.6rem); max-width: 26ch; }
.night-icons li { padding: 0 clamp(12px, 1.8vw, 26px); }

/* header come nel riferimento: voce attiva con filetto, pulsante con icona */
.main-nav .nav-home::after { transform: scaleX(1) !important; }
.nav-cta { display: inline-flex; align-items: center; gap: 9px; }
.nav-cta i, .nav-cta svg { width: 16px; height: 16px; }
.page-apt .main-nav .nav-home::after { transform: scaleX(0) !important; }
.page-apt .main-nav .nav-home:hover::after { transform: scaleX(1) !important; }
@media (min-width: 901px) { .page-home .site-header:not(.scrolled) { padding-top: 22px; } }

/* =====================================================================
   TERRITORIO · fascia continua a tutta larghezza (nessun riquadro)
   ===================================================================== */
.around { position: relative; background: linear-gradient(180deg, var(--night-2), var(--night)); color: var(--cream); padding: 96px 0 0; overflow: hidden; }
.around .section-head { text-align: center; }
.around .eyebrow.light { justify-content: center; color: var(--champ); }
.around .eyebrow::before { display: none; }
.around .display.light { color: #fff; }
.around .display.light em { color: var(--champ); }
.around-lead { max-width: 54ch; margin: 16px auto 0; text-align: center; color: rgba(247, 241, 230, 0.85); font-size: 1.1rem; }
.around-band { display: grid; grid-template-columns: 1.5fr 0.8fr 1fr 0.8fr 1fr; height: clamp(320px, 38vw, 560px); margin-top: 56px; }
.around-item { position: relative; margin: 0; overflow: hidden; cursor: zoom-in; border-radius: 0; box-shadow: none; background: var(--night); }
.around-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.6s var(--ease), filter 0.8s; filter: saturate(1.04); }
.around-item:hover img { transform: scale(1.06); }
.around-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 36, 38, 0.12) 40%, rgba(8, 22, 24, 0.82)); pointer-events: none; }
.around-item + .around-item::before { content: ''; position: absolute; left: 0; top: 14%; bottom: 14%; width: 1px; background: rgba(224, 200, 143, 0.4); z-index: 3; }
.around-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 24px 22px 28px; color: #fff; display: flex; flex-direction: column; gap: 4px; }
.around-item strong { font-family: var(--serif); font-weight: 500; font-size: clamp(1.1rem, 1.6vw, 1.5rem); line-height: 1.1; }
.around-item span { font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--champ); }
.around-note { text-align: center; color: rgba(247, 241, 230, 0.55); padding: 16px 20px 22px; margin: 0; }
.js .around-item.reveal { transform: none; }

/* ---- responsive ---- */
@media (max-width: 900px) {
  .hero-night { padding: 118px 0 54px; min-height: 92svh; justify-content: flex-start; }
  .night-bg { background:
    linear-gradient(180deg, rgba(10, 12, 30, 0.5) 0%, rgba(10, 12, 30, 0.12) 35%, rgba(10, 12, 30, 0.55) 100%),
    url('/static/img/hero-sera.webp') 22% center / cover no-repeat, var(--night); }
  .night-copy { margin: 0 auto; order: 0; }
  .around { padding-top: 70px; }
  .around-band { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; height: auto; margin-top: 38px; }
  .around-item.ar-a { grid-column: 1 / 3; height: 240px; }
  .around-item.ar-b, .around-item.ar-e { grid-row: span 2; }
  .around-item + .around-item::before { display: none; }
}
@media (max-width: 640px) {
  .night-title { font-size: clamp(3rem, 15vw, 4.2rem); }
}

/* =====================================================================
   FOTO INTEGRATE NELLA GRAFICA · niente cornici, archi, ombre o riquadri.
   I bordi sfumano nello sfondo della pagina (mask), cosi' ogni foto
   e' parte di un'unica composizione.
   ===================================================================== */
:root {
  --fe: 14%;
  --feather:
    linear-gradient(90deg, transparent 0, #000 var(--fe), #000 calc(100% - var(--fe)), transparent 100%),
    linear-gradient(180deg, transparent 0, #000 var(--fe), #000 calc(100% - var(--fe)), transparent 100%);
}
.fx { border-radius: 0 !important; box-shadow: none !important; border: 0 !important; background: transparent !important; overflow: visible !important; outline: 0 !important; }
.js .reveal-img.fx { clip-path: none; transform: scale(1.03); }
.js .reveal-img.fx.in { transform: none; }

.fx img { -webkit-mask-image: var(--feather); mask-image: var(--feather); -webkit-mask-composite: source-in; mask-composite: intersect; filter: saturate(1.06) contrast(1.02); }

/* ---------- pagina appartamento: foto a tutto campo che sfuma nel fondo ---------- */
.apt-hero { overflow: hidden; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 130px 0 90px; }
.apt-hero-grid { grid-template-columns: 1fr; position: relative; z-index: 2; width: min(1220px, 100% - 48px); }
.apt-hero-copy { max-width: min(560px, 48%); }
.apt-hero-copy p, .apt-hero-copy .hero-lead, .apt-hero-copy .crumbs, .apt-hero-copy .hero-title { text-shadow: 0 0 22px var(--paper), 0 0 8px var(--paper); }
.apt-hero-img.fx { position: absolute; z-index: 1; top: 0; right: 0; bottom: 0; width: 64%; max-width: none; margin: 0; aspect-ratio: auto; }
.apt-hero-img.fx img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; transform: none; transition: none;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0, rgba(0,0,0,.35) 16%, rgba(0,0,0,.85) 40%, #000 56%),
    linear-gradient(180deg, transparent 0, #000 16%, #000 70%, transparent 100%);
  mask-image:
    linear-gradient(90deg, transparent 0, rgba(0,0,0,.35) 16%, rgba(0,0,0,.85) 40%, #000 56%),
    linear-gradient(180deg, transparent 0, #000 16%, #000 70%, transparent 100%); }

@media (max-width: 900px) {
  .apt-hero { display: block; min-height: 0; padding: 0 0 50px; }
  .apt-hero-img.fx { position: relative; width: 100%; height: 62svh; min-height: 380px; }
  .apt-hero-img.fx img { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 55%, transparent 100%); }
  .apt-hero-grid { margin-top: -110px; }
  .apt-hero-copy { max-width: none; }
}

/* ---------- galleria: foto morbide che si fondono tra loro ---------- */
.masonry { column-gap: 0; }
.m-item { margin: 0 0 -4%; cursor: zoom-in; }
.m-item:nth-child(3n + 2) { border-radius: 0 !important; }
.m-item img { --fe: 13%; transition: transform 1.4s var(--ease); }
.m-item:hover img { transform: scale(1.03); }
.m-item figcaption { position: relative; left: auto; right: auto; bottom: auto; background: none; transform: none; opacity: 1; color: var(--sage-d); font-size: 1.05rem; text-align: center; padding: 0; margin: -34px 0 22px; }
.m-item .zoom { display: none; }

/* ---------- home: atmosfera ---------- */
.atmos-item { cursor: zoom-in; }
.atmos-item img { --fe: 13%; }
.atmos-item.a1, .atmos-item.a2, .atmos-item.a3 { border-radius: 0 !important; }
.atmos-item:hover img { transform: scale(1.03); }
.atmos-item figcaption { background: none; color: var(--sage-d); text-shadow: none; padding: 0 0 22px; text-align: center; font-size: 1.1rem; }
.atmos-grid, .atmos-col { gap: 0; }
.atmos-col > .fill { min-height: 300px; }

/* ---------- home: appartamenti nella fascia scura, foto che sfuma ---------- */
.nstrip { background: linear-gradient(180deg, rgba(12,36,38,0) 0, var(--night) 120px); border-radius: 0; box-shadow: none; margin-top: -90px; padding: 80px 0 120px; }
.nstrip-title { color: var(--champ); }
.nstrip-title span { background: linear-gradient(90deg, transparent, var(--champ-d)); }
.nstrip-title span:last-child { background: linear-gradient(270deg, transparent, var(--champ-d)); }
.nstrip::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 70px; background: var(--cream); clip-path: ellipse(60% 100% at 50% 100%); }
.ncard { background: transparent; border-radius: 0; box-shadow: none; aspect-ratio: 4 / 4.2; overflow: visible; }
.ncard::after { display: none; }
.ncard > img { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%), linear-gradient(180deg, transparent 0, #000 18%, #000 52%, transparent 96%); mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%), linear-gradient(180deg, transparent 0, #000 18%, #000 52%, transparent 96%); -webkit-mask-composite: source-in; mask-composite: intersect; }
a.ncard:hover { transform: translateY(-6px); box-shadow: none; }
a.ncard:hover > img { transform: scale(1.04); }
.ncard-body { padding: 20px 8px; }
.ncard-soon { border: 0; background: transparent; }
.ncard-soon-art { inset: 0 0 90px; color: rgba(224, 200, 143, 0.35); }

/* ---------- mappa ---------- */
.map-frame.fx { aspect-ratio: 4 / 4.6; -webkit-mask-image: var(--feather); mask-image: var(--feather); -webkit-mask-composite: source-in; mask-composite: intersect; --fe: 9%; }
.map-frame.fx iframe { filter: saturate(0.75) sepia(0.2) contrast(0.96); }
.map-frame.fx .map-btn { z-index: 3; }

/* ---------- territorio: la fascia si fonde in alto con il fondo ---------- */
.around-band { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 82%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 82%, transparent 100%); height: clamp(360px, 42vw, 620px); }
.around-item::after { background: linear-gradient(180deg, rgba(12,36,38,0) 55%, rgba(8,22,24,0.7)); }
.around-item + .around-item::before { display: none; }
.around-item:not(:last-child) { -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent 100%); mask-image: linear-gradient(90deg, #000 70%, transparent 100%); }
.around-item + .around-item { margin-left: -4%; }
.around-band { grid-template-columns: 1.5fr 0.9fr 1.1fr 0.9fr 1.1fr; }
@media (max-width: 900px) {
  .around-band { grid-template-columns: 1fr 1fr; }
  .around-item + .around-item { margin-left: 0; }
  .around-item:not(:last-child) { -webkit-mask-image: none; mask-image: none; }
}

/* ---------- card "altri appartamenti" ---------- */
.other-live { border: 0 !important; background: transparent !important; border-radius: 0 !important; box-shadow: none !important; overflow: visible; }
.other-live:hover { box-shadow: none !important; transform: translateY(-4px); }
.other-live img { -webkit-mask-image: linear-gradient(90deg, #000 55%, transparent 100%), linear-gradient(180deg, transparent 0, #000 16%, #000 84%, transparent 100%); mask-image: linear-gradient(90deg, #000 55%, transparent 100%), linear-gradient(180deg, transparent 0, #000 16%, #000 84%, transparent 100%); -webkit-mask-composite: source-in; mask-composite: intersect; }
.other-live > div { margin-left: -14%; position: relative; z-index: 2; }
@media (max-width: 640px) {
  .other-live > div { margin: -50px 0 0; padding: 0 18px 18px; }
  .other-live img { -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%); }
}

/* ---------- fix mobile: le figure sfumate non devono allargare le griglie ---------- */
.atmos-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.atmos-item, .m-item, .atmos-col { min-width: 0; max-width: 100%; }
.atmos-item img, .m-item img { max-width: 100%; }
@media (max-width: 900px) {
  .atmos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .masonry { column-count: 2; }
}
@media (max-width: 640px) {
  .m-item { margin-bottom: -3%; }
}
html, body { overflow-x: clip; }

/* galleria in griglia (niente colonne CSS: evita la 3a colonna fuori schermo) */
.masonry { display: grid; column-count: auto; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; align-items: start; }
.m-item { margin: 0 0 -3%; break-inside: auto; }
@media (max-width: 900px) { .masonry { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* card "in arrivo": bagliore morbido al posto del contorno ad arco */
.ncard-soon-art { background: radial-gradient(ellipse 55% 60% at 50% 45%, rgba(224, 200, 143, 0.16), rgba(224, 200, 143, 0.04) 55%, transparent 75%); }
.ncard-soon-art svg { display: none; }

/* territorio su mobile: altezza automatica, foto che sfumano in verticale */
@media (max-width: 900px) {
  .around-band { height: auto; grid-template-columns: 1fr 1fr; grid-auto-rows: 210px; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 8%, #000 94%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 8%, #000 94%, transparent 100%); }
  .around-item.ar-a { grid-column: 1 / 3; height: 240px; }
  .around-item.ar-b, .around-item.ar-e { grid-row: span 2; }
  .around-item { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%) !important; mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%) !important; }
  .around-item.ar-a { -webkit-mask-image: none !important; mask-image: none !important; }
}
.atmos-item figcaption { z-index: 2; }

@media (max-width: 900px) {
  .apt-hero-img.fx img { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%), linear-gradient(180deg, transparent 0, #000 14%, #000 58%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%), linear-gradient(180deg, transparent 0, #000 14%, #000 58%, transparent 100%); -webkit-mask-composite: source-in; mask-composite: intersect; }
}

/* ---------- mare in movimento (WebGL, water.js) ---------- */
.night-water { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s ease; z-index: 0; }
.night-water.on { opacity: 1; }
.night-bg::after { display: block !important; content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity 1.2s ease;
  background-image:
    linear-gradient(90deg, rgba(14, 14, 36, 0.05) 0%, rgba(14, 14, 36, 0.10) 45%, rgba(14, 14, 36, 0.55) 100%),
    linear-gradient(180deg, rgba(10, 12, 30, 0.45) 0%, rgba(10, 12, 30, 0) 28%, rgba(10, 12, 30, 0) 62%, rgba(10, 12, 30, 0.6) 100%);
  background-size: auto; }
.night-bg.water-on::after { opacity: 1; }
@media (max-width: 900px) {
  .night-bg::after { background-image: linear-gradient(180deg, rgba(10, 12, 30, 0.5) 0%, rgba(10, 12, 30, 0.12) 35%, rgba(10, 12, 30, 0.55) 100%); }
}

/* =====================================================================
   REGIA · menu a tutto schermo, preloader, transizioni, showcase WebGL
   ===================================================================== */
html.lenis, html.lenis body { height: auto; }
html.lenis-on { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- header ---------- */
.site-header { transition: background 0.4s, box-shadow 0.4s, padding 0.4s, transform 0.6s var(--ease); }
.site-header.hide { transform: translateY(-110%); }
.hd-right { display: flex; align-items: center; gap: 14px; }
.hd-cta { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; letter-spacing: 0.06em; padding: 11px 24px; border-radius: 999px; background: var(--sage); color: var(--cream); transition: background 0.3s; }
.hd-cta:hover { background: var(--sage-d); }
.hd-cta i, .hd-cta svg { width: 16px; height: 16px; }
.page-home .site-header:not(.scrolled) .hd-cta { background: linear-gradient(180deg, #ecd9a6, #cfb06b); color: var(--night); }
.mbtn { display: inline-flex; align-items: center; gap: 14px; height: 46px; padding: 0 20px 0 24px; border-radius: 999px; border: 1px solid var(--line); background: rgba(247, 241, 230, 0.7); color: var(--sage-d); font: inherit; font-size: 12.5px; letter-spacing: 0.2em; text-transform: uppercase; cursor: pointer; position: relative; transition: background 0.3s, color 0.3s, border-color 0.3s; }
.mbtn:hover { background: rgba(247, 241, 230, 0.95); }
.mbtn-i { width: 22px; height: 10px; position: relative; flex: none; }
.mbtn-i i { position: absolute; right: 0; height: 1.5px; background: currentColor; transition: transform 0.55s var(--ease), top 0.55s var(--ease), width 0.55s var(--ease); }
.mbtn-i i:first-child { top: 0; width: 100%; }
.mbtn-i i:last-child { top: 8px; width: 62%; }
.mbtn:hover .mbtn-i i:last-child { width: 100%; }
.mbtn[aria-expanded='true'] .mbtn-i i { top: 4px; width: 100%; }
.mbtn[aria-expanded='true'] .mbtn-i i:first-child { transform: rotate(45deg); }
.mbtn[aria-expanded='true'] .mbtn-i i:last-child { transform: rotate(-45deg); }
.page-home .site-header:not(.scrolled) .mbtn { background: rgba(12, 36, 38, 0.35); border-color: rgba(224, 200, 143, 0.55); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
body.menu-open .site-header { background: transparent !important; box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; transform: none !important; }
body.menu-open .site-header .brand-name { color: #fff !important; }
body.menu-open .site-header .brand-sub { color: var(--champ) !important; }
body.menu-open .site-header .mbtn { background: transparent !important; border-color: rgba(224, 200, 143, 0.6) !important; color: #fff !important; }
body.menu-open .site-header .hd-cta { opacity: 0; pointer-events: none; }
.hd-cta { transition: background 0.3s, opacity 0.3s; }
@media (max-width: 560px) { .hd-cta { display: none; } .mbtn { padding: 0 16px 0 18px; } }

/* ---------- menu ---------- */
.menu { position: fixed; inset: 0; z-index: 99; visibility: hidden; pointer-events: none; transition: visibility 0s linear 0.95s; }
.menu.open { visibility: visible; pointer-events: auto; transition-delay: 0s; }
.menu-bg { position: absolute; inset: 0; clip-path: circle(0 at calc(100% - 90px) 42px); transition: clip-path 0.95s cubic-bezier(0.77, 0, 0.18, 1);
  background:
    radial-gradient(55% 60% at 85% 12%, rgba(224, 200, 143, 0.16), transparent 70%),
    radial-gradient(60% 70% at 8% 100%, rgba(201, 139, 139, 0.12), transparent 70%),
    linear-gradient(160deg, #0f2d30 0%, #081a1c 100%); }
.menu.open .menu-bg { clip-path: circle(150vmax at calc(100% - 90px) 42px); }
.menu-side { position: absolute; left: 0; top: 0; bottom: 0; width: 42%; opacity: 0; transition: opacity 0.8s ease; }
.menu.open .menu-side { opacity: 1; transition-delay: 0.45s; }
.menu-art { position: absolute; inset: 13% 6% 17% 9%; -webkit-mask-image: var(--feather); mask-image: var(--feather); -webkit-mask-composite: source-in; mask-composite: intersect; --fe: 16%; }
.mp-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.1); transition: opacity 0.9s ease, transform 1.8s var(--ease); filter: saturate(1.05); }
.mp-img.on { opacity: 1; transform: scale(1); }
.menu-cap { position: absolute; left: 9%; bottom: 8%; margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--champ); transition: opacity 0.25s, transform 0.25s; }
.menu-cap.sw { opacity: 0; transform: translateY(8px); }
.menu-inner { position: absolute; right: 0; top: 0; bottom: 0; width: 58%; display: flex; flex-direction: column; justify-content: center; padding: 100px clamp(28px, 7vw, 120px) 40px 2vw; overflow-y: auto; }
.menu-links { display: flex; flex-direction: column; }
.ml { display: flex; align-items: baseline; gap: 22px; padding: 0.32vh 0; color: #fff; transition: opacity 0.4s; }
.ml-n { font-size: 12px; letter-spacing: 0.2em; color: var(--champ); opacity: 0; transition: opacity 0.8s ease calc(0.5s + var(--i) * 0.07s); min-width: 26px; }
.menu.open .ml-n { opacity: 0.8; }
.ml-t { display: block; overflow: hidden; padding: 0.04em 0.2em 0.14em 0; margin-bottom: -0.1em; }
.ml-t > span { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, calc(1.2vw + 7.2vh), 5.2rem); line-height: 1.04; letter-spacing: -0.02em; transform: translateY(115%); transition: transform 1s cubic-bezier(0.22, 0.8, 0.2, 1) 0s, color 0.4s, font-style 0.4s, padding 0.5s var(--ease); }
.menu.open .ml-t > span { transform: none; transition-delay: calc(0.3s + var(--i) * 0.08s), 0s, 0s, 0s; }
.menu-links:hover .ml:not(:hover) { opacity: 0.32; }
.ml:hover .ml-t > span, .ml:focus-visible .ml-t > span { font-style: italic; color: var(--champ); padding-left: 0.35em; transition-delay: 0s; }
.menu-foot { display: flex; flex-wrap: wrap; gap: 14px 30px; margin-top: 4vh; padding-top: 22px; border-top: 1px solid rgba(224, 200, 143, 0.25); font-size: 14px; letter-spacing: 0.03em; color: rgba(247, 241, 230, 0.78); opacity: 0; transform: translateY(14px); transition: opacity 0.8s ease 0.9s, transform 0.8s var(--ease) 0.9s; }
.menu.open .menu-foot { opacity: 1; transform: none; }
.menu-foot a:hover { color: var(--champ); }
.menu-phones { display: inline-flex; gap: 20px; flex-wrap: wrap; }
.menu-wa { display: inline-flex; align-items: center; gap: 8px; color: var(--champ); }
.menu-wa i, .menu-wa svg { width: 16px; height: 16px; }
@media (max-width: 900px) {
  .menu-bg, .menu.open .menu-bg { clip-path: circle(0 at calc(100% - 70px) 40px); }
  .menu.open .menu-bg { clip-path: circle(150vmax at calc(100% - 70px) 40px); }
  .menu-side { width: 100%; }
  .menu-art { inset: 0; -webkit-mask-image: none; mask-image: none; opacity: 0.2; }
  .menu-cap { display: none; }
  .menu-inner { width: 100%; padding: 100px 28px 34px; justify-content: flex-start; }
  .ml-t > span { font-size: clamp(2.2rem, 9.5vw, 3.2rem); }
  .ml { padding: 5px 0; gap: 16px; }
  .menu-foot { flex-direction: column; gap: 10px; margin-top: 26px; }
}

/* ---------- barra avanzamento ---------- */
#progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 101; background: linear-gradient(90deg, #cfb06b, #ecd9a6); transform: scaleX(0); transform-origin: left; pointer-events: none; }

/* ---------- preloader ---------- */
#pre, #pt { display: none; }
html.js-pre { overflow: hidden; }
html.js-pre #pre { display: grid; position: fixed; inset: 0; z-index: 1000; background: var(--night); place-items: center; transition: transform 0.95s cubic-bezier(0.77, 0, 0.18, 1); }
html.js-pre #pre::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 14vh; background: var(--night); border-radius: 0 0 50% 50% / 0 0 100% 100%; }
html.js-pre.pre-out #pre { transform: translateY(-115%); }
.pre-in { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.pre-m { font-family: var(--serif); font-style: italic; font-size: clamp(3.4rem, 9vw, 6rem); line-height: 1; color: #fff; opacity: 0; transform: translateY(24px); }
.pre-a { font-size: 12px; letter-spacing: 0.7em; text-transform: uppercase; color: var(--champ); padding-left: 0.7em; opacity: 0; transform: translateY(12px); }
.pre-line { display: block; width: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--champ), transparent); }
html.pre-go .pre-m { animation: preUp 1s var(--ease) 0.15s forwards; }
html.pre-go .pre-line { animation: preLine 1.2s var(--ease) 0.45s forwards; }
html.pre-go .pre-a { animation: preUp 1s var(--ease) 0.75s forwards; }
@keyframes preUp { to { opacity: 1; transform: none; } }
@keyframes preLine { to { width: min(220px, 50vw); } }

/* ---------- transizione di pagina ---------- */
#pt { position: fixed; inset: 0; z-index: 999; background: var(--night); transform: translateY(100%); pointer-events: none; place-items: center; visibility: hidden; }
#pt::before { content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: 14vh; background: var(--night); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
#pt span { font-family: var(--serif); font-style: italic; font-size: 2.6rem; color: var(--champ); opacity: 0; transition: opacity 0.4s ease 0.25s; }
html.pt-go #pt, html.pt-cover #pt, html.pt-leave #pt { display: grid; }
html.pt-go #pt { visibility: visible; transform: none; transition: transform 0.65s cubic-bezier(0.77, 0, 0.18, 1); pointer-events: auto; }
html.pt-go #pt span, html.pt-cover #pt span { opacity: 1; }
html.pt-cover #pt { visibility: visible; transform: none; transition: none; }
html.pt-leave #pt { visibility: visible; animation: ptOut 0.9s cubic-bezier(0.77, 0, 0.18, 1) forwards; }
@keyframes ptOut { from { transform: none; } to { transform: translateY(-115%); } }

/* ---------- titoli parola per parola ---------- */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.04em 0.06em 0.16em; margin: -0.04em -0.06em -0.16em; }
.split .wi { display: inline-block; transform: translateY(112%); transition: transform 1.1s cubic-bezier(0.22, 0.8, 0.2, 1) calc(var(--wi) * 70ms); will-change: transform; }
.split.sp-in .wi { transform: none; }
.night-title .w, .night-title .wi, .hero-title .w, .hero-title .wi { display: inline-block; }
.js .night-title.reveal, .js .display.reveal, .js .hero-title.reveal { opacity: 1; transform: none; }

/* ---------- cursore ---------- */
.cur-dot, .cur-ring { position: fixed; left: 0; top: 0; z-index: 2000; pointer-events: none; opacity: 0; transition: opacity 0.3s; }
html.cur-on .cur-dot, html.cur-on .cur-ring { opacity: 1; }
html.cur-on, html.cur-on * { cursor: none !important; }
html.cur-on input, html.cur-on select, html.cur-on textarea { cursor: text !important; }
.cur-dot { width: 0; height: 0; mix-blend-mode: difference; }
.cur-dot::before { content: ''; position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.cur-ring { width: 0; height: 0; mix-blend-mode: difference; }
.cur-ring::before { content: ''; position: absolute; left: -20px; top: -20px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid #fff; transition: transform 0.45s var(--ease), background 0.3s; }
.cur-ring.big::before { transform: scale(1.6); background: rgba(255, 255, 255, 0.12); }
.cur-ring.txt::before { transform: scale(2.1); background: #fff; }
.cur-ring.down::before { transform: scale(0.8); }
.cur-ring span { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: #000; opacity: 0; transition: opacity 0.25s; white-space: nowrap; }
.cur-ring.txt span { opacity: 1; }

/* ---------- showcase WebGL ---------- */
.showcase { position: relative; background: linear-gradient(180deg, #0c2426 0%, #0f2d30 100%); color: var(--cream); padding: clamp(110px, 12vw, 170px) 0; overflow: hidden; isolation: isolate; }
.showcase::before, .showcase::after { content: ''; position: absolute; left: 0; right: 0; height: clamp(70px, 9vw, 130px); z-index: 3; pointer-events: none; }
.showcase::before { top: -1px; background: linear-gradient(180deg, var(--cream), transparent); }
.showcase::after { bottom: -1px; background: linear-gradient(0deg, var(--cream), transparent); }
.showcase .sc-glow, .sc-grid::before { content: ''; position: absolute; width: 60vw; height: 60vw; right: -12vw; top: 50%; translate: 0 -50%; background: radial-gradient(closest-side, rgba(224, 200, 143, 0.17), transparent 72%); z-index: -1; pointer-events: none; }
.sc-grid { position: relative; display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(30px, 6vw, 100px); align-items: center; }
.sc-copy .eyebrow { margin-bottom: 18px; }
.sc-num { font-family: var(--serif); font-size: clamp(4.2rem, 8vw, 7.4rem); line-height: 0.9; margin: 0 0 10px; color: transparent; -webkit-text-stroke: 1px rgba(224, 200, 143, 0.55); transition: opacity 0.38s ease, transform 0.38s var(--ease); }
.sc-apt { margin: 0 0 8px; font-size: 12.5px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--champ); transition: opacity 0.38s ease, transform 0.38s var(--ease); }
.sc-title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 4.2vw, 3.7rem); line-height: 1.04; letter-spacing: -0.02em; color: #fff; min-height: 2.2em; margin: 0 0 24px; transition: opacity 0.38s ease, transform 0.38s var(--ease); }
.sc-swap .sc-num, .sc-swap .sc-apt, .sc-swap .sc-title { opacity: 0; transform: translateY(14px); }
.sc-link { display: inline-flex; align-items: center; gap: 12px; padding: 14px 26px; border-radius: 999px; font-size: 14.5px; letter-spacing: 0.04em; color: var(--night); background: linear-gradient(180deg, #ecd9a6, #cfb06b); box-shadow: 0 10px 24px -10px rgba(185, 154, 88, 0.9); }
.sc-link i, .sc-link svg { width: 17px; height: 17px; }
.sc-list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 2px; }
.sc-item { all: unset; box-sizing: border-box; display: block; width: 100%; cursor: pointer; padding: 11px 0 9px; position: relative; }
.sc-item:focus-visible { outline: 2px solid var(--champ); outline-offset: 2px; }
.sc-bar { display: block; height: 1px; background: rgba(247, 241, 230, 0.2); position: absolute; left: 0; right: 0; top: 0; overflow: hidden; }
.sc-bar::after { content: ''; position: absolute; inset: 0; background: var(--champ); transform: scaleX(0); transform-origin: left; }
.sc-item.on .sc-bar::after { animation: scBar 6.2s linear forwards; }
.sc-paused .sc-item.on .sc-bar::after { animation-play-state: paused; }
@keyframes scBar { to { transform: scaleX(1); } }
.sc-lab { display: block; font-size: 14px; letter-spacing: 0.05em; color: rgba(247, 241, 230, 0.5); transition: color 0.4s, padding 0.5s var(--ease); }
.sc-item:hover .sc-lab { color: rgba(247, 241, 230, 0.85); }
.sc-item.on .sc-lab { color: #fff; padding-left: 14px; }
.sc-ctrl { display: flex; gap: 12px; margin-top: 26px; }
.sc-ctrl button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(224, 200, 143, 0.5); background: transparent; color: var(--champ); display: grid; place-items: center; cursor: pointer; transition: background 0.3s, color 0.3s; }
.sc-ctrl button:hover { background: var(--champ); color: var(--night); }
.sc-ctrl i, .sc-ctrl svg { width: 18px; height: 18px; }
.sc-stage { position: relative; width: min(100%, calc(82svh * 0.8)); aspect-ratio: 4 / 5; justify-self: end; --fe: 12%; -webkit-mask-image: var(--feather); mask-image: var(--feather); -webkit-mask-composite: source-in; mask-composite: intersect; touch-action: pan-y; cursor: grab; }
.sc-img { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; overflow: hidden; }
.sc-img.on { opacity: 1; z-index: 1; }
.sc-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s linear; filter: saturate(1.06) contrast(1.02); }
.sc-img.on img { transform: scale(1.14); }
.sc-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 0.8s ease; z-index: 2; }
.sc-canvas.on { opacity: 1; }
.sc-gl .sc-img { opacity: 0 !important; transition: none; }
@media (max-width: 900px) {
  .sc-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .sc-stage { order: -1; width: min(100%, 460px); justify-self: center; max-height: 70svh; }
  .sc-copy { text-align: center; }
  .sc-copy .eyebrow { justify-content: center; }
  .sc-title { min-height: 2.1em; }
  .sc-list { grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; margin-top: 28px; }
  .sc-lab { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sc-item { padding: 10px 0; }
  .sc-bar { height: 3px; border-radius: 3px; top: 5px; }
  .sc-ctrl { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  #pre, #pt, .cur-dot, .cur-ring { display: none !important; }
  .split .wi { transform: none !important; transition: none !important; }
  .sc-img img { transition: none; transform: none !important; }
  .menu-bg, .mp-img, .ml-t > span, .menu-foot { transition-duration: 0.01s !important; transition-delay: 0s !important; }
  .site-header { transition: none; }
}

/* ---------- terzo appartamento: Keep calm ---------- */
.ncard-soon-art { flex-direction: column; align-content: center; gap: 0; text-align: center; }
.ncard-soon-art span { display: block; font-family: var(--serif); line-height: 0.92; }
.kc-top, .kc-bot { font-size: clamp(3.6rem, 7vw, 5.6rem); font-weight: 500; letter-spacing: -0.02em; color: transparent; -webkit-text-stroke: 1px rgba(224, 200, 143, 0.7); }
.kc-bot { font-style: italic; color: var(--champ); -webkit-text-stroke: 0; margin-top: 0.04em; }
.kc-sub { margin-top: 18px; font-family: var(--sans) !important; font-size: 12px; letter-spacing: 0.5em; text-transform: uppercase; color: rgba(247, 241, 230, 0.7); padding-left: 0.5em; line-height: 1.4 !important; }
.ncard-soon-art { animation: kcBreath 5s ease-in-out infinite; }
@keyframes kcBreath { 0%, 100% { opacity: 0.85; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ncard-soon-art { animation: none; } }
