/* DETHO — Elevating fine living
   Layout: carta calda, colonne a 80px di margine, ritmo verticale 140px, serif editoriale + sans lineare.
   Tema unico chiaro per scelta (palette "carta" del Figma), colori tutti espliciti. */
:root {
  color-scheme: light;
  --canvas: #fcfbf8;
  --surface: #ffffff;
  --subtle: #f6f3ee;
  --muted: #eee9e1;
  --ink: #1c1a18;
  --ink-2: #57524c;
  --ink-3: #736d66;
  --line: #dedad4;
  --line-soft: #ece9e4;
  --brand: #004069;
  --brand-2: #748a96;
  --on-ink: #fcfbf8;
  --shadow-soft: 0 2px 8px rgba(20,18,16,.04), 0 8px 24px rgba(20,18,16,.05);
  --shadow-float: 0 8px 24px rgba(20,18,16,.08), 0 32px 64px rgba(20,18,16,.14);

  --serif: "Instrument Serif", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Raleway", "Helvetica Neue", Arial, sans-serif;

  --gutter-x: clamp(20px, 5.6vw, 80px);
  --pad-l: max(var(--gutter-x), env(safe-area-inset-left, 0px));
  --pad-r: max(var(--gutter-x), env(safe-area-inset-right, 0px));
  --section-y: clamp(88px, 9.7vw, 140px);
  --gap: clamp(40px, 4.4vw, 64px);
  --header-h: 96px;

  --t-display: clamp(56px, 7.8vw, 112px);
  --t-h1: clamp(46px, 5vw, 72px);
  --t-h2: clamp(38px, 3.9vw, 56px);
  --t-h3: clamp(30px, 2.8vw, 40px);
  --t-h4: clamp(24px, 1.95vw, 28px);
  --t-lead: clamp(18px, 1.4vw, 20px);

  --ease: cubic-bezier(.22,1,.36,1);
  --ease-io: cubic-bezier(.77,0,.18,1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 26px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
::selection { background: var(--ink); color: var(--on-ink); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 1.5px solid var(--brand); outline-offset: 3px; }
em, .it { font-style: italic; }

/* ---------- type ---------- */
.display { font-family: var(--serif); font-weight: 400; font-size: var(--t-display); line-height: 1.143; letter-spacing: -0.015em; text-wrap: balance; }
.h1 { font-family: var(--serif); font-weight: 400; font-size: var(--t-h1); line-height: 1.167; letter-spacing: -0.01em; text-wrap: balance; }
.h2 { font-family: var(--serif); font-weight: 400; font-size: var(--t-h2); line-height: 1.18; letter-spacing: -0.005em; text-wrap: balance; }
.h3 { font-family: var(--serif); font-weight: 400; font-size: var(--t-h3); line-height: 1.2; text-wrap: balance; }
.h4 { font-family: var(--serif); font-weight: 400; font-size: var(--t-h4); line-height: 1.21; text-wrap: balance; }
.h5 { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 28px; }
.display em, .h1 em, .h2 em, .h3 em { font-family: var(--serif); }
.eyebrow { font-family: var(--sans); font-weight: 500; font-size: 12px; line-height: 16px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.lead { font-size: var(--t-lead); line-height: 1.6; color: var(--ink-2); }
.body-l { font-size: 18px; line-height: 30px; color: var(--ink-2); }
.body-s { font-size: 14px; line-height: 22px; color: var(--ink-2); }
.caption { font-size: 12px; line-height: 18px; letter-spacing: .02em; color: var(--ink-3); }
.label { font-weight: 600; font-size: 13px; line-height: 16px; letter-spacing: .12em; text-transform: uppercase; }
.field-label { font-weight: 500; font-size: 11px; line-height: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.num { font-variant-numeric: tabular-nums lining-nums; }

/* split words */
.sw { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .08em .14em 0; margin: 0 -.08em -.14em 0; }
.sw > span { display: inline-block; will-change: transform; }

/* ---------- layout ---------- */
.wrap { padding-left: var(--pad-l); padding-right: var(--pad-r); }
.section { padding-block: var(--section-y); }
.section--subtle { background: var(--subtle); }
.section--ink { background: var(--ink); color: var(--on-ink); }
.section--ink .eyebrow, .section--ink .lead, .section--ink .body-l { color: rgba(252,251,248,.72); }
.stack { display: flex; flex-direction: column; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px 48px; flex-wrap: wrap; margin-bottom: var(--gap); }
.sec-head__title { display: flex; flex-direction: column; gap: 16px; min-width: 0; max-width: 760px; }
.sec-head__aside { display: flex; flex-direction: column; gap: 20px; width: min(420px, 100%); min-width: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 48px 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 24px; }
.grid-3 > *, .grid-2 > *, .grid-4 > * { min-width: 0; }

/* ---------- buttons & links ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 32px; border-radius: 4px; font-weight: 600; font-size: 13px; line-height: 16px; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; overflow: hidden; isolation: isolate; transition: color .5s var(--ease), border-color .5s var(--ease), transform .4s var(--ease); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: translateY(101%); border-radius: inherit; transition: transform .6s var(--ease); }
.btn:hover::before { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; transition: transform .5s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--sm { padding: 12px 24px; }
.btn--primary { background: var(--ink); color: var(--on-ink); }
.btn--primary::before { background: var(--brand); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light::before { background: var(--ink); }
.btn--light:hover { color: var(--on-ink); }
.btn--secondary { background: var(--muted); color: var(--ink); }
.btn--secondary::before { background: var(--ink); }
.btn--secondary:hover { color: var(--on-ink); }
.btn--outline { border: 1px solid var(--ink); color: var(--ink); }
.btn--outline::before { background: var(--ink); }
.btn--outline:hover { color: var(--on-ink); }
.btn--outline-light { border: 1px solid var(--on-ink); color: var(--on-ink); }
.btn--outline-light::before { background: var(--on-ink); }
.btn--outline-light:hover { color: var(--ink); }
.btn--block { width: 100%; }

.link { display: inline-flex; align-items: center; gap: 8px; padding: 4px 0; font-weight: 600; font-size: 13px; line-height: 16px; letter-spacing: .14em; text-transform: uppercase; position: relative; }
.link::after { content: ""; position: absolute; left: 0; right: 22px; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.link:hover::after { transform: scaleX(1); transform-origin: left; }
.link svg { width: 14px; height: 14px; color: var(--brand); transition: transform .6s var(--ease); }
.link:hover svg { transform: rotate(90deg); }
.section--ink .link svg, .on-image .link svg { color: currentColor; }

.icon-btn { width: 52px; height: 52px; border-radius: 999px; border: 1px solid var(--line); display: inline-grid; place-items: center; transition: background .4s var(--ease), color .4s var(--ease), border-color .4s; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.icon-btn[disabled] { opacity: .35; pointer-events: none; }

/* ---------- header ---------- */
.site-header { position: fixed; z-index: 60; top: 0; left: 0; right: 0; padding-top: env(safe-area-inset-top, 0px); color: var(--ink); transition: transform .7s var(--ease), color .5s var(--ease); }
.site-header::before { content: ""; position: absolute; inset: 0; background: rgba(252,251,248,.86); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); border-bottom: 1px solid var(--line-soft); opacity: 1; transition: opacity .5s var(--ease); }
.site-header__in { position: relative; height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; transition: height .5s var(--ease); }
.site-header.is-transparent { color: #fff; }
.site-header.is-transparent::before { opacity: 0; }
.site-header.is-compact .site-header__in { height: 76px; }
.site-header.is-hidden { transform: translateY(-110%); }
.brand-logo { display: block; width: 84px; height: 80px; position: relative; transition: width .5s var(--ease), height .5s var(--ease); }
.is-compact .brand-logo { width: 64px; height: 61px; }
.brand-logo svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .5s var(--ease); }
.brand-logo .logo-mono { opacity: 0; color: #fff; }
.is-transparent .brand-logo .logo-mono { opacity: 1; }
.is-transparent .brand-logo .logo-brand { opacity: 0; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav__links { display: flex; align-items: center; gap: 24px; }
.nav__link { position: relative; padding: 4px 0; font-weight: 600; font-size: 13px; line-height: 16px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.site-header .btn-contact { padding: 12px 24px; }
.is-transparent .btn-contact { background: #fff; color: var(--ink); }
.site-header:not(.is-transparent) .btn-contact { background: var(--muted); }
.burger { display: none; width: 48px; height: 48px; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease); }
.burger span:nth-child(1) { top: 20px; } .burger span:nth-child(2) { top: 27px; }
.menu-open .burger span:nth-child(1) { top: 24px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 24px; transform: rotate(-45deg); }

/* mobile menu */
.mmenu { position: fixed; inset: 0; z-index: 55; background: var(--ink); color: var(--on-ink); padding: calc(var(--header-h) + 40px + env(safe-area-inset-top,0px)) var(--pad-r) 40px var(--pad-l); display: flex; flex-direction: column; justify-content: space-between; clip-path: inset(0 0 100% 0); transition: clip-path .9s var(--ease-io); visibility: hidden; }
.menu-open .mmenu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu-open .site-header { color: #fff; }
.menu-open .site-header::before { opacity: 0; }
.menu-open .brand-logo .logo-mono { opacity: 1; } .menu-open .brand-logo .logo-brand { opacity: 0; }
.mmenu__links { display: flex; flex-direction: column; gap: 6px; }
.mmenu__links a { font-family: var(--serif); font-size: clamp(40px, 11vw, 64px); line-height: 1.1; display: block; overflow: hidden; }
.mmenu__links a span { display: inline-block; transform: translateY(105%); transition: transform .9s var(--ease); }
.menu-open .mmenu__links a span { transform: none; }
.mmenu__foot { display: flex; flex-direction: column; gap: 8px; opacity: .7; font-size: 15px; }

/* ---------- loader & curtain ---------- */
.loader { position: fixed; inset: 0; z-index: 200; background: var(--ink); color: var(--on-ink); display: grid; place-items: center; }
.loader__mark { width: 132px; height: 126px; color: #fff; }
.loader__mark path { opacity: 0; }
.loader__bar { position: absolute; left: var(--pad-l); right: var(--pad-r); bottom: calc(56px + env(safe-area-inset-bottom,0px)); display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.loader__line { position: absolute; left: 0; right: 0; bottom: -16px; height: 1px; background: rgba(252,251,248,.18); }
.loader__line i { position: absolute; inset: 0; background: var(--on-ink); transform: scaleX(0); transform-origin: left; }
.loader__count { font-family: var(--serif); font-size: 64px; line-height: 1; }
.loader__claim { font-family: var(--serif); font-size: 28px; font-style: italic; opacity: .8; }
.curtain { position: fixed; inset: 0; z-index: 150; pointer-events: none; visibility: hidden; }
.curtain__panel { position: absolute; inset: 0; background: var(--ink); transform: translateY(100%); }
.curtain__panel--2 { background: var(--brand); }
.curtain__mark { position: absolute; left: 50%; top: 50%; width: 90px; height: 86px; margin: -43px 0 0 -45px; color: #fff; opacity: 0; }
.curtain__label { position: absolute; left: 0; right: 0; top: calc(50% + 72px); text-align: center; color: var(--on-ink); opacity: 0; font-family: var(--serif); font-style: italic; font-size: 24px; }

/* ---------- cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--ink); mix-blend-mode: difference; transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background .3s, opacity .3s; opacity: 0; }
.cursor { background: #fff; }
.cursor.is-on { opacity: 1; }
.cursor.is-link { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
.cursor-label { position: fixed; left: 0; top: 0; z-index: 301; pointer-events: none; width: 92px; height: 92px; margin: -46px 0 0 -46px; }
.cursor-label span { position: absolute; inset: 0; border-radius: 50%; background: var(--ink); color: var(--on-ink); display: grid; place-items: center; font-weight: 600; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; transform: scale(0); transition: transform .55s var(--ease); }
.cursor-label.is-on span { transform: scale(1); }
.hero .dd__menu { top: auto; bottom: calc(100% + 20px); transform: translateY(8px); }
.hero .dd.is-open .dd__menu { transform: none; }
@media (hover: none), (pointer: coarse) { .cursor, .cursor-label { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.hero--home { min-height: max(720px, min(100svh, 980px)); }
.hero--page { min-height: clamp(560px, 70svh, 720px); }
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__media img { position: absolute; inset: -6% 0 0 0; width: 100%; height: 112%; object-fit: cover; transform-origin: 50% 40%; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,18,15,.38) 0%, rgba(20,18,15,.05) 45%, rgba(20,18,15,.72) 100%); }
.hero--page .hero__shade { background: linear-gradient(180deg, rgba(20,18,15,.42), rgba(20,18,15,.76)); }
.hero__content { position: relative; padding-top: calc(var(--header-h) + 64px); padding-bottom: 56px; display: flex; flex-direction: column; gap: 32px; }
.hero__headline { display: flex; flex-direction: column; gap: 20px; }
.hero__headline .eyebrow { color: #fff; }
.hero__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px 64px; flex-wrap: wrap; padding-bottom: 16px; }
.hero__row > .stack { flex: 1 1 480px; max-width: 760px; min-width: 0; }
.hero__row .lead { color: #fff; width: min(400px, 100%); }
.hero__scroll { position: absolute; right: var(--pad-r); bottom: 32px; display: flex; align-items: center; gap: 12px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; }
.hero__scroll i { width: 1px; height: 48px; background: rgba(255,255,255,.35); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: #fff; animation: scrollhint 2.2s var(--ease-io) infinite; }
@keyframes scrollhint { to { top: 110%; } }

/* filter bar */
.fbar { background: var(--surface); color: var(--ink); border: 1px solid var(--line-soft); border-radius: 12px; box-shadow: 0 8px 12px rgba(20,18,16,.05), 0 2px 4px rgba(20,18,16,.04); padding: 12px; display: flex; align-items: center; gap: 12px; position: relative; z-index: 5; }
.seg { display: flex; }
.seg button { height: 52px; min-width: 92px; padding: 0 16px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; transition: background .35s var(--ease), color .35s var(--ease), border-color .35s; }
.seg button + button { margin-left: -1px; }
.seg button:first-child { border-radius: 4px 0 0 4px; } .seg button:last-child { border-radius: 0 4px 4px 0; }
.seg button.is-on { background: var(--ink); color: var(--on-ink); border-color: var(--ink); position: relative; z-index: 1; }
.seg--fluid { width: 100%; } .seg--fluid button, .seg--fluid .seg-a { flex: 1 1 auto; min-width: 0; height: 44px; padding: 0 12px; white-space: nowrap; }
.seg .seg-a { display: flex; align-items: center; justify-content: center; margin-left: -1px; border: 1px solid var(--line); border-radius: 0 4px 4px 0; background: var(--surface); font-weight: 600; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; transition: background .35s var(--ease), color .35s var(--ease), border-color .35s; }
.seg .seg-a:hover { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.seg .seg-a ~ button, .seg button:has(+ .seg-a) { border-radius: 0; }
.seg button:first-child { border-radius: 4px 0 0 4px; }
.search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 4px; background: var(--surface); }
.search svg { width: 20px; height: 20px; flex: none; color: var(--ink); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 15px; line-height: 22px; }
.search input::placeholder { color: var(--ink-3); }
.search--boxed { border: 1px solid var(--line); }
.fbar__sep { width: 1px; height: 40px; background: var(--line-soft); flex: none; }
.dd { position: relative; flex: none; }
.dd__trigger { display: flex; align-items: center; gap: 12px; padding: 4px 4px; text-align: left; }
.dd__trigger .t { display: flex; flex-direction: column; gap: 4px; }
.dd__trigger .v { font-weight: 600; font-size: 12px; line-height: 16px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.dd__trigger svg { width: 14px; height: 14px; transition: transform .4s var(--ease); }
.dd.is-open .dd__trigger svg { transform: rotate(180deg); }
.dd__menu { position: absolute; top: calc(100% + 20px); left: -16px; min-width: 220px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 8px; box-shadow: var(--shadow-float); padding: 8px; z-index: 30; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .35s var(--ease), transform .45s var(--ease), visibility .35s; }
.dd.is-open .dd__menu { opacity: 1; visibility: visible; transform: none; }
.dd__menu button { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 12px; border-radius: 4px; font-size: 15px; line-height: 22px; text-align: left; transition: background .25s; }
.dd__menu button:hover { background: var(--subtle); }
.dd__menu button.is-on { font-weight: 600; }
.dd__menu button.is-on::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.fbar__filters { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border: 1px solid var(--ink); border-radius: 4px; font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; transition: background .35s, color .35s; flex: none; }
.fbar__filters:hover { background: var(--ink); color: var(--on-ink); }
.fbar__filters svg { width: 18px; height: 18px; }
/* cifre allineate (Raleway di base ha le cifre «old style», che scendono sotto la riga) e line-height 1: il numero sta al centro del cerchio */
.fbar__filters .count { display: inline-grid; place-items: center; box-sizing: border-box; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 11px; line-height: 1; letter-spacing: 0; font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; }
.fbar .btn { flex: none; }

/* ---------- cards ---------- */
.media { position: relative; overflow: hidden; border-radius: 8px; background: var(--muted); }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
a:hover > .media img, .card:hover .media img { transform: scale(1.045); }
.badge { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 600; font-size: 11px; line-height: 14px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.badge--brand { background: var(--brand); color: #fff; }
.badge--ink { background: var(--ink); color: var(--on-ink); }
.counter { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: 4px; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); font-weight: 600; font-size: 11px; line-height: 14px; letter-spacing: .1em; }
.counter svg { width: 14px; height: 14px; }
.fav { width: 36px; height: 36px; border-radius: 999px; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); display: grid; place-items: center; transition: transform .4s var(--ease); }
.fav svg { width: 16px; height: 16px; transition: fill .3s, transform .5s var(--ease); }
.fav:hover { transform: scale(1.08); }
.fav.is-on svg { fill: var(--ink); transform: scale(1.12); }

.pcard { display: flex; flex-direction: column; gap: 20px; }
.pcard .media { aspect-ratio: 410 / 312; }
.pcard__over { position: absolute; inset: 16px; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.pcard__over > * { pointer-events: auto; }
.pcard__top, .pcard__bot { display: flex; justify-content: space-between; align-items: center; }
.pcard__bot { justify-content: flex-end; }
.pcard__info { display: flex; flex-direction: column; gap: 12px; }
.pcard__addr { font-size: 14px; line-height: 22px; color: var(--ink-3); }
.pcard__title { font-family: var(--serif); font-size: 28px; line-height: 34px; transition: color .4s; }
.pcard:hover .pcard__title { color: var(--brand); }
.pcard__div { height: 1px; background: var(--line-soft); position: relative; overflow: hidden; }
.pcard__div::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease); }
.pcard:hover .pcard__div::after { transform: scaleX(1); }
.pcard__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.specs { display: flex; gap: 16px; align-items: center; color: var(--ink-2); font-size: 14px; line-height: 22px; }
.specs span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.specs svg { width: 16px; height: 16px; }
.price { display: flex; flex-direction: column; align-items: flex-end; text-align: right; white-space: nowrap; }
.price b { font-weight: 600; font-size: 16px; line-height: 26px; }
.price small { font-size: 12px; line-height: 18px; color: var(--ink-3); }
.list-view .pcard { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 40px; align-items: center; padding-bottom: 40px; border-bottom: 1px solid var(--line-soft); }
.list-view { grid-template-columns: 1fr !important; }

.projcard { display: flex; flex-direction: column; gap: 24px; }
.projcard .media { aspect-ratio: 628 / 520; }
.projcard__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.projcard__name { font-weight: 300; font-size: clamp(28px, 2.5vw, 36px); line-height: 1.22; letter-spacing: .04em; text-transform: uppercase; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; line-height: 16px; color: var(--ink-2); transition: background .3s var(--ease), color .3s, border-color .3s; white-space: nowrap; }
.chip--sm { padding: 4px 12px; }
.chip.is-on, button.chip:hover { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.chip svg { width: 14px; height: 14px; }
.projcard__meta { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line-soft); }

.svc-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 8px; padding: 32px; display: flex; flex-direction: column; gap: 20px; transition: transform .7s var(--ease), box-shadow .7s var(--ease), border-color .5s; }
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); border-color: var(--line); }
.svc-card__n { font-family: var(--serif); font-style: italic; font-size: var(--t-h3); line-height: 1.2; color: var(--brand); }

/* tabs */
.tabs { display: flex; gap: 32px; border-bottom: 1px solid var(--line); position: relative; }
.tabs--plain { border-bottom: 0; }
.tab { padding: 4px 4px 16px; font-weight: 600; font-size: 13px; line-height: 16px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); transition: color .3s; white-space: nowrap; }
.tab.is-on, .tab:hover { color: var(--ink); }
.tabs__ink { position: absolute; bottom: -1px; height: 2px; background: var(--ink); transition: left .6s var(--ease), width .6s var(--ease); }

/* accordion */
.acc { border-top: 1px solid var(--line); }
.acc__head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; text-align: left; }
.acc__title { font-family: var(--serif); font-size: var(--t-h3); line-height: 1.2; transition: transform .6s var(--ease), color .4s; }
.acc__head:hover .acc__title { transform: translateX(8px); }
.acc__act { display: inline-flex; align-items: center; gap: 6px; flex: none; font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.acc__act svg { width: 14px; height: 14px; transition: transform .6s var(--ease); }
.acc.is-open .acc__act svg { transform: rotate(135deg); }
.acc__body { height: 0; overflow: hidden; }
.acc__inner { padding-bottom: 28px; display: flex; flex-direction: column; gap: 12px; }

/* stats */
.stat { border-top: 1px solid currentColor; padding-top: 24px; display: flex; flex-direction: column; gap: 8px; }
.stat__n { font-family: var(--serif); font-size: var(--t-h1); line-height: 1.167; letter-spacing: -.01em; white-space: nowrap; }
.stat__l { font-size: 14px; line-height: 22px; opacity: .7; }

/* carousel */
.carousel { overflow: hidden; margin-right: calc(-1 * var(--pad-r)); cursor: grab; }
.carousel.is-drag { cursor: grabbing; }
.carousel__track { display: flex; gap: 16px; will-change: transform; padding-right: var(--pad-r); }
.ccard { flex: 0 0 clamp(240px, 21vw, 300px); display: flex; flex-direction: column; gap: 12px; user-select: none; }
.ccard .media { aspect-ratio: 3 / 4; }
.ccard img { pointer-events: none; }
.ccard__name { font-weight: 600; font-size: 13px; line-height: 16px; letter-spacing: .12em; text-transform: uppercase; }
.carousel-ctrl { margin-top: 64px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.progress { width: 200px; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.progress i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(.2); }
.arrows { display: flex; gap: 8px; }

/* editorial */
.editorial { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 40px; align-items: start; }
.editorial__img { position: sticky; top: 120px; aspect-ratio: 620 / 720; border-radius: 8px; overflow: hidden; background: var(--muted); }
.editorial__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.editorial__cap { position: absolute; left: 20px; bottom: 20px; right: 20px; display: flex; justify-content: space-between; color: #fff; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; text-shadow: 0 1px 12px rgba(0,0,0,.3); }

/* destinations */
.dest { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 48px 96px; margin-top: 120px; }
.dest__list { display: flex; flex-direction: column; }
.dest__row { display: grid; grid-template-columns: 56px minmax(0,1fr); gap: 24px; padding: 28px 0; border-top: 1px solid rgba(252,251,248,.22); position: relative; }
.dest__row::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--on-ink); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease); }
.dest__row:hover::before { transform: scaleX(1); }
.dest__n { font-family: var(--serif); font-style: italic; font-size: 40px; line-height: 1; opacity: .6; }
.dest__t { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; align-items: baseline; }
.dest__t .h4 { transition: transform .7s var(--ease); }
.dest__row:hover .dest__t .h4 { transform: translateX(10px); }

/* CTA image */
.cta-img { position: relative; overflow: hidden; color: #fff; }
.cta-img__bg { position: absolute; inset: -10% 0; }
.cta-img__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-img__bg::after { content: ""; position: absolute; inset: 0; background: rgba(20,18,15,.55); }
.cta-row { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-row .eyebrow { color: inherit; opacity: .8; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--on-ink); padding-block: 96px calc(48px + env(safe-area-inset-bottom,0px)); display: flex; flex-direction: column; gap: 64px; overflow: hidden; }
.footer__claim { font-family: var(--serif); font-size: clamp(56px, 10vw, 156px); line-height: 1; letter-spacing: -.02em; white-space: nowrap; }
.footer__cols { display: grid; grid-template-columns: minmax(0,1fr) repeat(3, 180px) 340px; gap: 48px; }
.footer__brand { display: flex; flex-direction: column; gap: 20px; }
.footer__brand .logo-mono { width: 81px; height: 77px; color: #fff; }
.footer__brand p { opacity: .75; }
.fcol { display: flex; flex-direction: column; gap: 12px; }
.fcol h4 { margin: 0; font-weight: 500; font-size: 12px; line-height: 16px; letter-spacing: .2em; text-transform: uppercase; opacity: .55; }
.fcol a, .fcol span { position: relative; width: fit-content; }
.fcol a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.fcol a:hover::after { transform: scaleX(1); transform-origin: left; }
.newsletter { display: flex; flex-direction: column; gap: 16px; }
.newsletter p { opacity: .75; margin: 0; }
.nl-field { display: flex; align-items: center; border-bottom: 1px solid var(--on-ink); padding: 12px 0; gap: 12px; }
.nl-field input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; font-size: 15px; color: var(--on-ink); }
.nl-field input::placeholder { color: rgba(252,251,248,.6); }
.nl-field button svg { width: 20px; height: 20px; transition: transform .5s var(--ease); }
.nl-field button:hover svg { transform: translateX(5px); }
.nl-msg { font-size: 14px; opacity: .8; min-height: 22px; }
.footer__line { height: 1px; background: rgba(252,251,248,.9); transform-origin: left; }
.footer__legal { display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; font-size: 12px; line-height: 18px; }
.footer__legal > span { opacity: .6; }
.footer__links { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.footer__links a, .footer__links button { opacity: .6; transition: opacity .3s; font-size: 12px; }
.footer__links a:hover, .footer__links button:hover { opacity: 1; }
.footer__links svg { width: 18px; height: 18px; }
.footer__credits { align-self: flex-start; margin-top: -48px; font-size: 11px; line-height: 16px; opacity: .4; transition: opacity .3s; }
.footer__credits:hover { opacity: .8; }

/* ---------- page intro (inner pages) ---------- */
.intro { padding-top: calc(var(--header-h) + 56px); padding-bottom: 40px; display: flex; flex-direction: column; gap: 24px; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 12px; line-height: 18px; color: var(--ink-3); flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); }
.crumbs span:last-child { color: var(--ink); }
.crumbs svg { width: 12px; height: 12px; }
.intro__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; }
.intro__row .lead { width: min(460px, 100%); }

/* listing */
.listing-tools { display: flex; flex-direction: column; gap: 24px; padding-bottom: 32px; }
.rtool { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.rtool__sum { color: var(--ink-2); }
.rtool__tools { display: flex; align-items: center; gap: 20px; }
.viewtoggle { display: flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.viewtoggle button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; font-weight: 600; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; transition: background .3s, color .3s; }
.viewtoggle button svg { width: 16px; height: 16px; }
.viewtoggle button.is-on { background: var(--ink); color: var(--on-ink); }
.sort { display: inline-flex; gap: 6px; align-items: center; }
.sort .dd__trigger { padding: 0; gap: 6px; }
.sort .v { font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.active-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-height: 32px; }
.results { padding-bottom: 120px; }
.empty { padding: 80px 0; text-align: center; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.pagination { display: flex; justify-content: center; gap: 4px; margin-top: 56px; }
.pagination button { width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; font-weight: 500; font-size: 15px; transition: background .3s, color .3s; }
.pagination button.is-on { background: var(--ink); color: var(--on-ink); }
.pagination button.out { border: 1px solid var(--line); }
.pagination button:not(.is-on):hover { background: var(--subtle); }
.pagination svg { width: 18px; height: 18px; }

/* drawers */
.overlay { position: fixed; inset: 0; z-index: 90; background: rgba(20,18,16,.45); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility .6s; }
.overlay.is-on { opacity: 1; visibility: visible; }
.drawer { position: fixed; z-index: 100; top: 0; right: 0; bottom: 0; width: min(480px, 100%); background: var(--canvas); box-shadow: var(--shadow-float); display: flex; flex-direction: column; transform: translateX(104%); transition: transform .9s var(--ease); padding-top: env(safe-area-inset-top,0px); padding-bottom: env(safe-area-inset-bottom,0px); padding-right: env(safe-area-inset-right,0px); }
.drawer.is-on { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 20px 32px; border-bottom: 1px solid var(--line-soft); }
.drawer__head button svg { width: 24px; height: 24px; transition: transform .6s var(--ease); }
.drawer__head button:hover svg { transform: rotate(90deg); }
.drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 24px 32px 40px; display: flex; flex-direction: column; gap: 32px; }
.drawer__foot { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 20px 32px; background: var(--surface); border-top: 1px solid var(--line-soft); }
.drawer__foot .btn { flex: 1; }
.fgroup { display: flex; flex-direction: column; gap: 16px; }
.fgroup > .field-label { color: var(--ink-2); }
.range { display: flex; flex-direction: column; gap: 16px; }
.range__head { display: flex; justify-content: space-between; align-items: baseline; }
.range__head b { font-weight: 500; font-size: 15px; }
.range__track { position: relative; height: 20px; }
.range__track .rail { position: absolute; left: 0; right: 0; top: 9px; height: 2px; background: var(--line); }
.range__track .fill { position: absolute; top: 9px; height: 2px; background: var(--ink); }
.range__track input { position: absolute; inset: 0; width: 100%; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; height: 20px; }
.range__track input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 1.5px solid var(--ink); cursor: grab; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.range__track input::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 1.5px solid var(--ink); cursor: grab; }
.range__track input::-webkit-slider-runnable-track { background: none; }
.range__fields { display: flex; gap: 12px; }
.range__fields div { flex: 1; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; }
.range__fields b { font-weight: 400; font-size: 15px; line-height: 22px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check { display: flex; align-items: center; gap: 12px; font-size: 15px; line-height: 22px; cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check .box { width: 20px; height: 20px; border-radius: 2px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; flex: none; transition: background .3s, border-color .3s; }
.check .box svg { width: 14px; height: 14px; color: #fff; transform: scale(0); transition: transform .35s var(--ease); }
.check input:checked + .box { background: var(--ink); border-color: var(--ink); }
.check input:checked + .box svg { transform: scale(1); }
.check input:focus-visible + .box { outline: 1.5px solid var(--brand); outline-offset: 2px; }
.toggle { display: flex; align-items: center; gap: 12px; font-size: 15px; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; }
.toggle .sw-track { width: 40px; height: 24px; border-radius: 999px; background: var(--line); position: relative; transition: background .4s var(--ease); flex: none; }
.toggle .sw-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.15); transition: transform .45s var(--ease); }
.toggle input:checked + .sw-track { background: var(--ink); }
.toggle input:checked + .sw-track::after { transform: translateX(16px); }

/* form */
.form { display: flex; flex-direction: column; gap: 16px; }
.input { display: flex; flex-direction: column; gap: 6px; }
.input input, .input textarea, .input select { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 12px 14px; font-size: 15px; line-height: 22px; outline: 0; transition: border-color .3s; resize: vertical; }
.input input:focus, .input textarea:focus, .input select:focus { border-color: var(--ink); }
.input.is-err input { border-color: #a2402c; }
.err { color: #a2402c; font-size: 12px; min-height: 0; }
.success { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; padding: 8px 0; }
.success__mark { width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; }
.success__mark svg { width: 24px; height: 24px; }
.success__mark path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .8s .2s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- property page ---------- */
.prop-title { padding-top: calc(var(--header-h) + 40px); padding-bottom: 32px; display: flex; flex-direction: column; gap: 24px; }
.prop-title__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.prop-title__main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.addr { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 16px; }
.addr svg { width: 18px; height: 18px; flex: none; }
.prop-actions { display: flex; gap: 8px; }
.gallery { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: 1fr 1fr; gap: 12px; height: clamp(360px, 42vw, 600px); }
.gallery__main { grid-row: span 2; position: relative; border-radius: 8px; overflow: hidden; cursor: zoom-in; }
.gallery__side { position: relative; border-radius: 8px; overflow: hidden; cursor: zoom-in; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.gallery > div:hover img { transform: scale(1.04); }
.gallery__btns { position: absolute; left: 16px; bottom: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.gbtn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 4px; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); font-weight: 600; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; transition: background .3s, color .3s; }
.gbtn:hover { background: var(--ink); color: var(--on-ink); }
.gbtn svg { width: 16px; height: 16px; }
.prop-main { display: grid; grid-template-columns: minmax(0, 800px) minmax(0, 400px); justify-content: space-between; gap: 80px; padding-top: 64px; padding-bottom: 140px; }
.prop-content { display: flex; flex-direction: column; gap: 72px; min-width: 0; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border: 1px solid var(--line-soft); border-radius: 12px; background: var(--surface); padding: 8px; }
.fact { display: flex; gap: 14px; align-items: flex-start; padding: 24px; }
.fact:nth-child(-n+3) { border-bottom: 1px solid var(--line-soft); }
.fact:not(:nth-child(3n)) { border-right: 1px solid var(--line-soft); }
.fact svg { width: 24px; height: 24px; flex: none; color: var(--brand); margin-top: 2px; }
.fact b { display: block; font-weight: 500; font-size: 15px; line-height: 20px; margin-top: 6px; }
.block { display: flex; flex-direction: column; gap: 24px; padding-top: 40px; border-top: 1px solid var(--line); }
.block__head { display: flex; flex-direction: column; gap: 8px; }
.readmore { position: relative; overflow: hidden; transition: max-height 1s var(--ease); }
.readmore:not(.is-open)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 80px; background: linear-gradient(transparent, var(--canvas)); }
.rows { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
.row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-size: 16px; }
.row span:first-child { color: var(--ink-3); }
.row span:last-child { font-weight: 500; text-align: right; }
.costs .row { padding: 20px 0; }
.costs .row.big span:last-child { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1; }
.plan { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 12px; overflow: hidden; }
.plan__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px 0; flex-wrap: wrap; }
.plan__draw { padding: 24px; aspect-ratio: 16 / 10; position: relative; }
.plan__draw svg { width: 100%; height: 100%; }
.plan__draw .room { fill: var(--subtle); stroke: var(--ink); stroke-width: 2; transition: fill .4s; }
.plan__draw .room:hover { fill: #e8e2d6; }
.plan__draw text { font-family: var(--sans); fill: var(--ink); font-size: 13px; }
.plan__draw text.m { fill: var(--ink-3); font-size: 11px; }
.plan__stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border-top: 1px solid var(--line-soft); }
.plan__stats div { padding: 20px 24px; display: flex; flex-direction: column; gap: 4px; }
.plan__stats div + div { border-left: 1px solid var(--line-soft); }
.plan__stats b { font-weight: 500; font-size: 15px; }
.plan__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 24px; border-top: 1px solid var(--line-soft); flex-wrap: wrap; }
.map { position: relative; aspect-ratio: 2 / 1; border-radius: 12px; overflow: hidden; background: #ece7de; }
.map svg.base { position: absolute; inset: 0; width: 100%; height: 100%; }
.map__pin { position: absolute; left: 50%; top: 48%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 6px rgba(0,64,105,.18); }
.map__pin::before, .map__pin::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--brand); animation: pulse 2.8s var(--ease) infinite; }
.map__pin::after { animation-delay: 1.4s; }
@keyframes pulse { from { transform: scale(.6); opacity: .9; } to { transform: scale(4.2); opacity: 0; } }
.map__tag { position: absolute; left: calc(50% + 18px); top: calc(48% - 44px); background: var(--ink); color: var(--on-ink); padding: 8px 12px; border-radius: 4px; font-size: 12px; font-weight: 600; letter-spacing: .08em; white-space: nowrap; }
.map__open { position: absolute; right: 16px; bottom: 16px; }
.nearby { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.nearby div { display: flex; flex-direction: column; gap: 2px; padding-left: 14px; border-left: 1px solid var(--line); }
.nearby b { font-weight: 500; font-size: 15px; line-height: 20px; }
.aside { align-self: start; position: sticky; top: 112px; display: flex; flex-direction: column; gap: 16px; }
.req { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 12px; box-shadow: var(--shadow-soft); padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.req__price { display: flex; flex-direction: column; gap: 4px; padding-bottom: 20px; border-bottom: 1px solid var(--line-soft); }
.req__price b { font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1.1; }
.req__alt { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.agent { display: flex; gap: 16px; align-items: center; padding: 0 24px; }
.agent__av { width: 48px; height: 48px; border-radius: 50%; background: var(--muted); display: grid; place-items: center; font-family: var(--serif); font-size: 20px; color: var(--brand); flex: none; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 160; background: rgba(20,18,16,.96); color: #fff; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility .6s; padding: env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px); }
.lightbox.is-on { opacity: 1; visibility: visible; }
.lightbox__top { display: flex; justify-content: space-between; align-items: center; padding: 20px 32px; }
.lightbox__stage { flex: 1; position: relative; overflow: hidden; margin: 0 32px; }
.lightbox__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.lightbox__nav { display: flex; justify-content: center; gap: 12px; padding: 24px; }
.lightbox .icon-btn { border-color: rgba(255,255,255,.3); color: #fff; }
.lightbox .icon-btn:hover { background: #fff; color: var(--ink); }
.lightbox__thumbs { display: flex; gap: 8px; justify-content: center; padding-bottom: 24px; }
.lightbox__thumbs button { width: 64px; height: 44px; border-radius: 4px; overflow: hidden; opacity: .45; transition: opacity .3s; }
.lightbox__thumbs button.is-on { opacity: 1; outline: 1px solid #fff; outline-offset: 2px; }
.lightbox__thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* toast */
.toast { position: fixed; z-index: 180; left: 50%; bottom: calc(32px + env(safe-area-inset-bottom,0px)); transform: translate(-50%, calc(100% + 80px)); background: var(--ink); color: var(--on-ink); padding: 14px 20px; border-radius: 6px; display: flex; align-items: center; gap: 12px; font-size: 14px; box-shadow: var(--shadow-float); transition: transform .7s var(--ease); max-width: calc(100% - 32px); }
.toast.is-on { transform: translate(-50%, 0); }
.toast svg { width: 18px; height: 18px; flex: none; }

/* cookie */
.cookie { position: fixed; z-index: 170; left: max(24px, env(safe-area-inset-left,0px)); bottom: calc(24px + env(safe-area-inset-bottom,0px)); width: min(440px, calc(100% - 48px)); background: var(--canvas); border: 1px solid var(--line-soft); border-radius: 12px; box-shadow: var(--shadow-float); padding: 24px; display: flex; flex-direction: column; gap: 16px; transform: translateY(calc(100% + 80px)); transition: transform .9s var(--ease); }
.cookie.is-on { transform: none; }
.cookie__btns { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie__btns .btn { flex: 1; padding: 12px 16px; }
.cookie__prefs { display: flex; flex-direction: column; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-soft); }

/* team */
.team-card { display: flex; flex-direction: column; gap: 16px; }
.portrait { aspect-ratio: 410 / 380; border-radius: 8px; background: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--ink-3); position: relative; overflow: hidden; }
.portrait .ini { font-family: var(--serif); font-size: 88px; line-height: 1; color: var(--brand-2); transition: transform 1s var(--ease); }
.team-card:hover .portrait .ini { transform: scale(1.08) translateY(-4px); }
.portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.5) 50%, transparent 70%); transform: translateX(-100%); transition: transform 1.4s var(--ease); }
.team-card:hover .portrait::after { transform: translateX(100%); }

/* services list */
.svc-row { display: grid; grid-template-columns: 120px minmax(0, 440px) minmax(0,1fr); gap: 48px; padding: 40px 0; border-top: 1px solid var(--line); align-items: start; position: relative; }
.svc-row::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease); }
.svc-row:hover::before { transform: scaleX(1); }
.svc-row__n { font-family: var(--serif); font-style: italic; font-size: var(--t-h2); line-height: 1.18; color: var(--brand); }
.values { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 24px; }
.value { border-top: 1px solid var(--ink); padding-top: 32px; display: flex; flex-direction: column; gap: 16px; }

/* FAQ & legal */
.two-col { display: grid; grid-template-columns: 300px minmax(0,1fr); gap: 96px; align-items: start; padding-bottom: 140px; }
.side-sticky { position: sticky; top: 112px; display: flex; flex-direction: column; gap: 32px; }
.catnav { display: flex; flex-direction: column; }
.catnav a { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); transition: color .3s, padding .5s var(--ease); }
.catnav a span:last-child { font-weight: 400; font-size: 12px; letter-spacing: .02em; }
.catnav a.is-on, .catnav a:hover { color: var(--ink); padding-left: 8px; }
.help { background: var(--subtle); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.faq-groups { display: flex; flex-direction: column; gap: 72px; min-width: 0; }
.faq-group { display: flex; flex-direction: column; gap: 20px; }
.faq-group .acc__title { font-size: clamp(24px, 2.2vw, 32px); }
.faq-group .acc__head { padding: 24px 0; }
.legal-index a { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); color: var(--ink-2); transition: color .3s; }
.legal-index a b { font-weight: 500; font-size: 15px; color: var(--ink-3); min-width: 20px; }
.legal-index a.is-on, .legal-index a:hover { color: var(--ink); }
.legal-index a.is-on b { color: var(--brand); }
.article { display: flex; flex-direction: column; gap: 56px; max-width: 760px; }
.article section { display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 120px; }
.article h3 { margin: 0; display: flex; gap: 16px; align-items: baseline; }
.article h3 b { font-weight: 400; color: var(--brand); }
.ctable { border: 1px solid var(--line-soft); border-radius: 12px; background: var(--surface); overflow-x: auto; }
.ctable table { width: 100%; border-collapse: collapse; min-width: 620px; }
.ctable th { background: var(--subtle); text-align: left; font-weight: 500; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); padding: 14px 20px; }
.ctable td { padding: 14px 20px; border-top: 1px solid var(--line-soft); font-size: 14px; color: var(--ink-2); }
.ctable td:first-child { font-weight: 500; font-size: 15px; color: var(--ink); }
.contact-box { background: var(--subtle); border-radius: 12px; padding: 32px; display: flex; flex-direction: column; gap: 12px; }

/* manifesto */
.manifesto { display: grid; grid-template-columns: minmax(0, 560px) minmax(0,1fr); gap: 80px; align-items: start; }
.manifesto__img { aspect-ratio: 560 / 680; border-radius: 8px; overflow: hidden; }
.manifesto__img img { width: 100%; height: 115%; object-fit: cover; }

/* project page */
.proj-facts { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 24px; }
.proj-strip { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; height: clamp(280px, 30vw, 460px); }
.proj-strip > div { border-radius: 8px; overflow: hidden; }
.proj-strip img { width: 100%; height: 100%; object-fit: cover; }

/* reveal helpers */
.clip { overflow: hidden; }

/* marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: 22px; white-space: nowrap; }
.marquee__t { display: inline-flex; gap: 56px; align-items: center; font-family: var(--serif); font-size: clamp(28px, 3vw, 44px); line-height: 1; animation: marq 38s linear infinite; padding-right: 56px; }
.marquee__t i { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); display: inline-block; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- responsive ---------- */
@media (max-width: 1260px) {
  .nav__links { gap: 18px; }
  .nav__link { font-size: 12px; }
  .footer__cols { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .footer__brand { grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; align-items: center; gap: 32px; }
  .newsletter { grid-column: span 3; max-width: 480px; }
  .prop-main { grid-template-columns: minmax(0,1fr) 360px; gap: 48px; }
  .fbar .dd--hide-md, .fbar .fbar__sep--hide-md { display: none; }
}
@media (max-width: 1080px) {
  :root { --header-h: 80px; }
  .nav__links, .site-header .btn-contact { display: none; }
  .burger { display: block; }
  .brand-logo { width: 64px; height: 61px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-4, .values { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 40px 24px; }
  .editorial, .manifesto { grid-template-columns: 1fr; }
  .editorial__img { position: relative; top: 0; order: -1; aspect-ratio: 4 / 3; }
  .dest { grid-template-columns: 1fr; margin-top: 88px; }
  .prop-main { grid-template-columns: 1fr; }
  .aside { position: relative; top: 0; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .side-sticky { position: relative; top: 0; }
  .svc-row { grid-template-columns: 72px minmax(0,1fr); gap: 16px 24px; }
  .svc-row > p { grid-column: 2; }
  .fbar .dd, .fbar .fbar__sep { display: none; }
  .proj-facts { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .fbar { flex-wrap: wrap; }
  .fbar .seg { width: 100%; } .fbar .seg button { flex: 1; }
  .fbar .search { flex: 1 1 100%; order: 3; border: 1px solid var(--line); }
  .fbar__filters { order: 4; flex: 1; justify-content: center; }
  .fbar .btn { order: 5; flex: 1; }
  .hero__scroll { display: none; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact { border: 0 !important; padding: 16px; }
  .rows { grid-template-columns: 1fr; }
  .nearby { grid-template-columns: 1fr 1fr; }
  .plan__stats { grid-template-columns: 1fr 1fr; }
  .plan__stats div:nth-child(3) { border-left: 0; }
  .plan__stats div:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
  .gallery { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; }
  .gallery__main { grid-row: auto; aspect-ratio: 4 / 3; }
  .gallery__side { display: none; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__brand, .newsletter { grid-column: span 2; }
  .list-view .pcard { grid-template-columns: 1fr; gap: 20px; }
  .checks { grid-template-columns: 1fr; }
  .proj-strip { grid-template-columns: 1fr; height: auto; } .proj-strip > div { aspect-ratio: 4 / 3; }
  .pcard__foot { flex-wrap: wrap; }
  .dest__row { grid-template-columns: 40px minmax(0,1fr); }
  .drawer__head, .drawer__body, .drawer__foot { padding-left: 20px; padding-right: 20px; }
  .map__tag { display: none; }
  .tabs { gap: 20px; overflow-x: auto; }
  .footer__claim { white-space: normal; }
  .hero--home { min-height: 760px; }
}
@media (max-width: 480px) {
  .grid-4, .values { grid-template-columns: 1fr; }
  .stat__n { font-size: 52px; }
  .req__alt { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
[hidden] { display: none !important; }

/* ---------- correzioni dopo il controllo generale ---------- */
.fbar { gap: 10px; }
.fbar .search { padding: 12px; gap: 10px; }
.fbar .dd__trigger { gap: 8px; }
.search input { text-overflow: ellipsis; }
.acc__act .pm { position: relative; width: 14px; height: 14px; flex: none; display: block; }
.acc__act .pm::before, .acc__act .pm::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: currentColor; transition: transform .6s var(--ease); }
.acc__act .pm::after { transform: rotate(90deg); }
.acc.is-open .acc__act .pm::after { transform: rotate(0deg); }
.acc.is-open .acc__act > span { display: none; }
.stack > .link, .sec-head__aside > .link, .svc-card > .link, .block > .link { align-self: flex-start; }
.svc-card > .link { margin-top: auto; }
.hero .eyebrow { color: #fff; }
.ctable td { white-space: nowrap; }
.ctable td:nth-child(3) { white-space: normal; }
@media (min-width: 761px) {
  .prop-title__row { flex-wrap: nowrap; }
  .prop-title__main { flex: 1 1 auto; }
  .prop-actions { flex: none; }
}
.two-col > *, .prop-main > *, .manifesto > *, .editorial > * { min-width: 0; }
.article { width: 100%; }

/* ---------- movimento: nessuna transizione CSS sulle proprietà che anima GSAP ---------- */
.btn { transition: color .5s var(--ease), border-color .5s var(--ease); }
.svc-card { transition: translate .7s var(--ease), box-shadow .7s var(--ease), border-color .5s; }
.svc-card:hover { transform: none; translate: 0 -6px; }
.media img, .gallery img { transition: scale 1.4s var(--ease); }
a:hover > .media img, .card:hover .media img, .gallery > div:hover img { transform: none; scale: 1.045; }
.fav { transition: scale .4s var(--ease); }
.fav:hover { transform: none; scale: 1.08; }
.fav-big.is-on svg { fill: currentColor; }
.counter, .fav, .gbtn { backdrop-filter: none; -webkit-backdrop-filter: none; }
.sw { padding-left: .06em; margin-left: -.06em; }
.sw > span { will-change: auto; }
input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.lightbox__thumbs { overflow-x: auto; justify-content: safe center; padding-inline: 16px; }
.lightbox__thumbs button { flex: none; }
.carousel { touch-action: pan-y; }
/* preloader */
.loader { will-change: transform; animation: loaderFail .6s 15s forwards; }
.loader__mark, .loader__bar { opacity: 0; }
.loader__mark path { opacity: 1; }
.loader__count { min-width: 2.6ch; text-align: right; font-variant-numeric: lining-nums; }
@keyframes loaderFail { to { opacity: 0; visibility: hidden; } }

/* tendina del cambio pagina: la posizione la gestisce solo lo script (prima si sommava a quella del CSS e non copriva lo schermo) */
.curtain__panel { transform: none; will-change: transform; }

/* revisione 17/11 — commenti cliente */
.sel-bar { margin-bottom: 48px; }
.ccard__badge { position: absolute; top: 16px; left: 16px; z-index: 1; }
.svc-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); grid-template-rows: repeat(3, auto); grid-auto-flow: column; column-gap: 48px; }
.svc-mini { display: grid; grid-template-columns: 48px 184px minmax(0,1fr); gap: 24px; padding: 24px 0; border-top: 1px solid var(--line-soft); align-items: baseline; position: relative; }
.svc-mini::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease); }
.svc-mini:hover::before { transform: scaleX(1); }
.svc-mini__n { font-family: var(--serif); font-style: italic; font-size: 32px; line-height: 1; color: var(--brand); }
.svc-mini__t { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.2; margin: 0; }
.svc-mini__p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 22px; }
@media (max-width: 1080px) {
  .svc-list { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
}
@media (max-width: 760px) {
  .svc-mini { grid-template-columns: 40px minmax(0,1fr); gap: 8px 16px; padding: 20px 0; }
  .svc-mini__p { grid-column: 2; }
  .team-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 32px 16px; }
  .team-grid .portrait .ini { font-size: 56px; }
}
@media (max-width: 480px) { .team-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }

/* Unità disponibili di un nuovo progetto (tabella «Tipologie e prezzi») */
.rows.units { display: flex; flex-direction: column; }
.units .row > span { white-space: nowrap; text-align: left; justify-self: start; }
.units .row { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr auto; gap: 16px; align-items: center; }
.units .row > span:last-child { justify-self: end; }
@media (max-width: 640px) {
  .units .row { grid-template-columns: 1fr 1fr; row-gap: 4px; }
  .units .row:first-child { display: none; }
  .units .row > span:last-child { justify-self: start; }
}
/* Descrizioni degli annunci (testo dal CMS) */
.prose h3 { font-size: 1.05em; font-weight: 600; margin: 0 0 12px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 1.2em; }

/* Nuovi progetti: tre per riga (richiesta di Detho, 3/12) */
.grid-proj { gap: 48px 24px; }
.grid-proj .projcard__name { font-size: clamp(22px, 1.9vw, 30px); }
.grid-proj .projcard__head { gap: 16px; }
/* tabella delle unità con il codice (es. A1.1) */
.units--cod .row { grid-template-columns: .8fr 2fr 1fr 1fr 1.4fr auto; }
@media (max-width: 640px) { .units--cod .row { grid-template-columns: 1fr 1fr; } }
/* Vendite e affitti: fino a 4 annunci per riga (richiesta di Martina), ma solo se ogni scheda ha almeno 330px, la
   larghezza che serve alla riga superficie · camere · bagni · prezzo più lunga; altrimenti 3. I nuovi progetti restano a 3.
   E se un prezzo lungo non ci sta comunque, il prezzo va a capo invece di sovrapporsi. */
@media (min-width: 1261px) { .grid-listing { grid-template-columns: repeat(auto-fill, minmax(max(330px, calc((100% - 60px) / 4)), 1fr)); gap: 40px 20px; } }
.grid-listing .pcard__foot { flex-wrap: wrap; row-gap: 8px; }

/* Banner cookie sul telefono: «Accetta» a tutta larghezza in alto, «Rifiuta» e «Preferenze» affiancati sotto, il banner
   più largo e meno imbottito (tre bottoni su una riga di 300px erano troppo stretti). */
@media (max-width: 600px) {
  .cookie { left: 12px; right: 12px; width: auto; bottom: calc(12px + env(safe-area-inset-bottom,0px)); padding: 20px; gap: 14px; }
  .cookie__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .cookie__btns .btn { padding: 12px 10px; white-space: nowrap; }
  .cookie__btns:has(.btn:nth-child(3)) .btn--primary { grid-column: 1 / -1; order: -1; }
}
