/* ============================================================
   Immobiliare BRIMM — Adriatico editoriale
   Palette dal logo: navy profondo + azzurro · carta avorio calda
   Type: SF Pro (Apple) con fallback Inter · palette navy/azzurro
   ============================================================ */

:root {
  --ink: #0E2138;
  --navy: #16345C;
  --navy-deep: #0B1D33;
  --azure: #3FA4DC;
  --azure-bright: #5BB8EA;
  --azure-soft: #C9E4F4;
  --paper: #F5F2EB;
  --paper-warm: #EFEAE0;
  --sand: #E3DCCC;
  --line: rgba(14, 33, 56, 0.14);
  --line-light: rgba(245, 242, 235, 0.22);

  --font-display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --text-sm: clamp(0.8125rem, 0.78rem + 0.15vw, 0.875rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.4vw, 2.3rem);
  --text-2xl: clamp(2rem, 1.5rem + 2.6vw, 3.6rem);
  --text-hero: clamp(2.6rem, 1.6rem + 5.4vw, 6rem);

  --space: clamp(1.25rem, 3vw, 2.5rem);
  --section: clamp(5rem, 10vw, 9.5rem);
  --wrap: 1280px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, blockquote {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin: 0;
}

h1 em, h2 em, h3 em, .contact-title em, .show-cta-title em, .property-section-title em {
  font-style: normal;
  font-weight: inherit;
  background: linear-gradient(95deg, #2E8FCB 0%, var(--azure-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-title em, .title-light em, .showcase-title em, .contact-title em, .page-hero-title em, .show-cta-title em {
  background-image: linear-gradient(95deg, var(--azure-bright) 0%, #A9DBF7 100%);
}

p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }
figure { margin: 0; }
button { font: inherit; cursor: pointer; }

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

.wrap {
  width: min(100% - 2 * var(--space), var(--wrap));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 300;
  padding: 0.75rem 1.25rem;
  background: var(--navy);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 2px solid var(--azure);
  outline-offset: 3px;
}

/* ---------- Kicker / titoli ---------- */
.kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(14, 33, 56, 0.55);
  margin-bottom: 1.4rem;
}
.kicker-light { color: rgba(245, 242, 235, 0.6); }

.section-title {
  font-size: var(--text-2xl);
  letter-spacing: -0.022em;
  max-width: 18ch;
}
.title-light { color: var(--paper); }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: none;
  text-decoration: none;
  transition: background 0.35s var(--ease-out), color 0.35s var(--ease-out),
              border-color 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }

.btn-solid { background: var(--navy); color: #fff; }
.btn-solid:hover { background: var(--azure); }

.btn-light { background: var(--paper); color: var(--navy-deep); }
.btn-light:hover { background: var(--azure); color: #fff; }

.btn-ghost {
  border-color: rgba(245, 242, 235, 0.45);
  color: var(--paper);
}
.btn-ghost:hover { border-color: var(--paper); background: rgba(245, 242, 235, 0.1); }

.btn-line {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}
.btn-line:hover { border-color: var(--navy); background: var(--navy); color: #fff; }

/* ---------- Loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  background: var(--navy-deep);
  color: var(--paper);
  transition: opacity 0.7s var(--ease-out), visibility 0.7s;
  /* fallback: se JS non parte, il loader si toglie da solo */
  animation: loader-bail 0.5s 2.6s forwards;
}
.loader.is-hidden { opacity: 0; visibility: hidden; }

@keyframes loader-bail {
  to { opacity: 0; visibility: hidden; }
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}
.loader-mark .lm-house,
.loader-mark .lm-door,
.loader-mark .lm-wave {
  stroke-dasharray: 160;
  stroke-dashoffset: 160;
  animation: draw 1.4s var(--ease-out) forwards;
}
.loader-mark .lm-door { animation-delay: 0.3s; stroke: var(--azure); }
.loader-mark .lm-wave { animation-delay: 0.55s; stroke: var(--azure); }

@keyframes draw { to { stroke-dashoffset: 0; } }

.loader-word {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.5em;
  padding-left: 0.5em;
  opacity: 0;
  animation: loader-word 0.9s 0.5s var(--ease-out) forwards;
}
@keyframes loader-word {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 200;
  color: var(--paper);
  transition: background 0.45s var(--ease-out), color 0.45s var(--ease-out),
              box-shadow 0.45s var(--ease-out);
}
.header-inner {
  width: min(100% - 2 * var(--space), 1400px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.1rem;
  transition: padding 0.45s var(--ease-out);
}

.site-header.is-scrolled {
  background: rgba(245, 242, 235, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-scrolled .header-inner { padding-block: 0.7rem; }

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
.brand-mark .accent { stroke: var(--azure); }
.brand-word { display: flex; flex-direction: column; line-height: 1.05; }
.brand-top {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--azure-bright);
}
.site-header.is-scrolled .brand-top { color: var(--azure); }
.brand-bottom {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.07em;
}

.main-nav {
  display: flex;
  gap: clamp(1.2rem, 2.5vw, 2.4rem);
}
.main-nav a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0.85;
  position: relative;
  padding-block: 0.3rem;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transition: right 0.35s var(--ease-out);
}
.main-nav a:hover { opacity: 1; }
.main-nav a:hover::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: 1.1rem; }
.header-tel {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  opacity: 0.9;
}
.header-cta { padding: 0.7rem 1.4rem; }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  background: none;
  border: 0;
  color: inherit;
  padding: 0.4rem 0;
}
.menu-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.menu-lines { display: flex; flex-direction: column; gap: 5px; width: 26px; }
.menu-lines i {
  height: 1.5px;
  background: currentColor;
  transition: transform 0.4s var(--ease-out);
}
.menu-toggle[aria-expanded="true"] .menu-lines i:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-lines i:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--navy-deep);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3rem;
  padding: var(--space);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease-out), visibility 0.5s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 0.4rem; }
.mobile-menu nav a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3rem);
  text-decoration: none;
  padding-block: 0.35rem;
  border-bottom: 1px solid var(--line-light);
  transform: translateY(24px);
  opacity: 0;
  transition: transform 0.6s var(--ease-out), opacity 0.6s var(--ease-out);
}
.mobile-menu.is-open nav a { transform: translateY(0); opacity: 1; }
.mobile-menu.is-open nav a:nth-child(2) { transition-delay: 0.06s; }
.mobile-menu.is-open nav a:nth-child(3) { transition-delay: 0.12s; }
.mobile-menu.is-open nav a:nth-child(4) { transition-delay: 0.18s; }
.mobile-menu.is-open nav a:nth-child(5) { transition-delay: 0.24s; }
.mobile-menu-foot { display: flex; flex-direction: column; gap: 0.5rem; }
.mobile-menu-foot a { color: var(--azure-bright); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--paper);
  overflow: clip;
  background: var(--navy-deep);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-poster,
.hero-media iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  border: 0;
}
/* l'iframe YouTube deve coprire tutto: 16:9 forzato oltre i bordi */
.hero-media iframe {
  width: max(100vw, 177.78svh);
  height: max(100svh, 56.25vw);
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease 0.2s;
}
.hero-media.video-ready iframe { opacity: 1; }
.hero-media.is-paused iframe { opacity: 0; }

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(11, 29, 51, 0.72) 0%, rgba(11, 29, 51, 0.28) 38%, rgba(11, 29, 51, 0.2) 55%, rgba(11, 29, 51, 0.8) 100%),
    radial-gradient(120% 80% at 20% 90%, rgba(11, 29, 51, 0.45) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - 2 * var(--space), var(--wrap));
  margin-inline: auto;
  padding-top: clamp(6rem, 12vh, 9rem);
}

.hero-kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--azure-bright);
  margin-bottom: 1.6rem;
}

.hero-title {
  font-size: var(--text-hero);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.02;
  max-width: 12ch;
}
.hline { display: block; overflow: clip; padding-block: 0.06em; }
.hline-inner { display: inline-block; will-change: transform; }

.hero-sub {
  max-width: 46ch;
  text-shadow: 0 1px 18px rgba(11, 29, 51, 0.45);
  margin-top: 1.8rem;
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: 1.55;
  color: rgba(245, 242, 235, 0.88);
}

/* ---------- Ricerca in hero (stile Sotheby's) ---------- */
.hero-search {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: end;
  margin-top: 2.2rem;
  padding: 1.1rem;
  border-radius: 18px;
  background: rgba(11, 29, 51, 0.5);
  border: 1px solid rgba(245, 242, 235, 0.18);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  max-width: 780px;
}
.hs-field { display: flex; flex-direction: column; gap: 0.35rem; }
.hs-field span {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 242, 235, 0.6);
}
.hs-field select {
  font: inherit;
  font-size: 0.95rem;
  color: var(--paper);
  background: rgba(245, 242, 235, 0.1);
  border: 1px solid rgba(245, 242, 235, 0.22);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  width: 100%;
}
.hs-field select:focus {
  outline: none;
  border-color: var(--azure-bright);
}
.hs-field option { color: var(--ink); background: var(--paper); }
.hs-submit { justify-self: start; white-space: nowrap; }

.hero-sell {
  margin-top: 1.1rem;
  font-size: var(--text-sm);
  color: rgba(245, 242, 235, 0.75);
}
.hero-sell a {
  color: var(--azure-bright);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(91, 184, 234, 0.45);
  padding-bottom: 2px;
}
.hero-sell a:hover { border-color: var(--azure-bright); }

.hero-foot {
  position: relative;
  z-index: 2;
  width: min(100% - 2 * var(--space), var(--wrap));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 2rem 1.6rem;
  margin-top: clamp(1.5rem, 5vh, 3.5rem);
}

.hero-coord {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 242, 235, 0.55);
}

.video-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(11, 29, 51, 0.35);
  border: 1px solid rgba(245, 242, 235, 0.3);
  color: var(--paper);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: border-color 0.3s;
}
.video-toggle:hover { border-color: var(--paper); }
.vt-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--azure-bright);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hero-scroll {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 242, 235, 0.65);
}
.hero-scroll i {
  width: 1px;
  height: 44px;
  background: linear-gradient(var(--paper), transparent);
  display: block;
  animation: scroll-hint 2.2s var(--ease-out) infinite;
  transform-origin: top;
}
@keyframes scroll-hint {
  0% { transform: scaleY(0); }
  45% { transform: scaleY(1); }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ---------- Intro ---------- */
.intro { padding-block: var(--section); }

.intro-statement {
  font-size: var(--text-2xl);
  font-weight: 600;
  letter-spacing: -0.022em;
  max-width: 24ch;
}
.sline { display: block; }
.wline { display: block; }
.w-accent {
  background: linear-gradient(95deg, #2E8FCB 0%, var(--azure-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5rem);
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  align-items: start;
}
.intro-text {
  font-size: var(--text-lg);
  font-weight: 400;
  color: rgba(14, 33, 56, 0.8);
  max-width: 42ch;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 0;
  border-top: 1px solid var(--line);
}
.stat {
  padding: 1.4rem 1.5rem 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.stat:nth-child(odd) { border-right: 1px solid var(--line); }
.stat:nth-child(even) { padding-left: 1.5rem; }
.stat dt {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(14, 33, 56, 0.5);
}
.stat dd {
  margin: 0.4rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.intro-portals {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  font-size: var(--text-sm);
  color: rgba(14, 33, 56, 0.6);
}
.intro-portals a {
  color: var(--navy);
  font-weight: 600;
  text-decoration-color: var(--azure);
  text-underline-offset: 3px;
}
.intro-portals a:hover { color: var(--azure); }

/* ---------- Showcase orizzontale ---------- */
.showcase {
  background: var(--navy-deep);
  color: var(--paper);
}
.showcase-pin {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: clip;
  padding-block: clamp(5rem, 11vh, 7.5rem) clamp(2rem, 5vh, 3.5rem);
}
.showcase-head {
  width: min(100% - 2 * var(--space), var(--wrap));
  margin-inline: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: clamp(2rem, 5vh, 3.5rem);
}
.showcase-head .kicker { color: rgba(245, 242, 235, 0.55); margin-bottom: 0.6rem; }
.showcase-title { font-size: var(--text-2xl); }
.showcase-hint {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 242, 235, 0.5);
}

/* Di default la traccia scorre in orizzontale in modo nativo
   (mobile, JS assente, reduced-motion). Con motion attiva su
   desktop diventa una striscia pinnata mossa da GSAP. */
.showcase-track {
  display: flex;
  gap: clamp(1.2rem, 2.5vw, 2.2rem);
  padding-inline: var(--space);
  padding-bottom: 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.showcase-track > * { scroll-snap-align: start; }

@media (min-width: 861px) {
  html.motion-ok .showcase-track {
    width: max-content;
    overflow: visible;
    padding-inline: max(var(--space), (100vw - var(--wrap)) / 2);
    padding-bottom: 0;
    scroll-snap-type: none;
    will-change: transform;
  }
}

.show-card {
  width: min(74vw, 540px);
  flex: none;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.show-card figure {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: clip;
  border-radius: 18px;
  background: var(--navy);
}
.show-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}
.show-card:hover img { transform: scale(1.05); }
.show-card .show-price {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: rgba(11, 29, 51, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--paper);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
}
.show-meta { display: flex; flex-direction: column; gap: 0.35rem; }
.show-type {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--azure-bright);
}
.show-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 400;
  line-height: 1.2;
}
.show-specs {
  font-size: var(--text-sm);
  color: rgba(245, 242, 235, 0.65);
}

.show-card.show-card-cta {
  justify-content: center;
  align-items: flex-start;
  gap: 1.4rem;
  width: min(70vw, 420px);
  padding: 2rem;
  border: 1px solid var(--line-light);
  border-radius: 18px;
}
.show-card-cta .show-cta-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: 1.15;
}
.show-card-cta em { color: var(--azure-bright); font-weight: 400; }

.showcase-progress {
  display: none;
  width: min(100% - 2 * var(--space), var(--wrap));
  margin-inline: auto;
  height: 1px;
  background: var(--line-light);
  margin-top: clamp(2rem, 5vh, 3.5rem);
}
@media (min-width: 861px) {
  html.motion-ok .showcase-progress { display: block; }
}
.showcase-progress i {
  display: block;
  height: 100%;
  background: var(--azure);
  transform: scaleX(0);
  transform-origin: left;
}

/* ---------- Ticker ---------- */
.ticker {
  overflow: clip;
  border-block: 1px solid var(--line);
  padding-block: 1.1rem;
  background: var(--paper-warm);
}
.ticker-row {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-right: 2.5rem;
  width: max-content;
  animation: ticker 36s linear infinite;
}
.ticker-row span {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: var(--navy);
}
.ticker-row i {
  font-style: normal;
  color: var(--azure);
  font-size: 0.7rem;
}
@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* ---------- Catalogo ---------- */
.catalog { padding-block: var(--section); }

.catalog-head { max-width: 720px; }
.catalog-note {
  margin-top: 1.2rem;
  color: rgba(14, 33, 56, 0.65);
}
.catalog-note a { color: var(--navy); font-weight: 600; text-decoration-color: var(--azure); text-underline-offset: 3px; }

.catalog-tools {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.filter-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: none;
  color: rgba(14, 33, 56, 0.7);
  transition: all 0.3s var(--ease-out);
}
.filter:hover { border-color: var(--navy); color: var(--navy); }
.filter.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.8rem;
}
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(14, 33, 56, 0.5);
}
.field input,
.field select {
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  transition: border-color 0.3s;
  width: 100%;
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--azure);
  box-shadow: 0 0 0 3px rgba(63, 164, 220, 0.18);
}

.catalog-count {
  margin-top: 2.2rem;
  font-size: var(--text-sm);
  color: rgba(14, 33, 56, 0.55);
}

.catalog-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
  gap: clamp(2rem, 4vw, 3rem) clamp(1.4rem, 2.5vw, 2.2rem);
}

.card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
}
.card figure {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: clip;
  border-radius: 16px;
  background: var(--sand);
}
.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.card:hover img { transform: scale(1.06); }

.card-kicker {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(14, 33, 56, 0.5);
}
.card-kicker .card-loc { color: var(--azure); }

.card-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.22;
  letter-spacing: -0.005em;
}
.card-address {
  font-size: var(--text-sm);
  color: rgba(14, 33, 56, 0.6);
}
.card-specs {
  font-size: var(--text-sm);
  color: rgba(14, 33, 56, 0.65);
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.2rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}
.card-price {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.card-arrow {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: all 0.35s var(--ease-out);
  font-size: 1rem;
}
.card:hover .card-arrow {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  transform: rotate(45deg);
}

.catalog-empty {
  margin-top: 3rem;
  font-size: var(--text-lg);
  font-weight: 400;
  max-width: 50ch;
  color: rgba(14, 33, 56, 0.7);
}
.catalog-empty a { color: var(--navy); font-weight: 600; }

.catalog-more { margin-top: 3rem; text-align: center; }

/* ---------- Metodo ---------- */
.method {
  background: var(--navy-deep);
  color: rgba(245, 242, 235, 0.85);
  padding-block: var(--section);
  position: relative;
  overflow: clip;
}
.method::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 164, 220, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.method-steps {
  list-style: none;
  margin: clamp(3rem, 6vw, 5rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
}
.step {
  border-top: 1px solid var(--line-light);
  padding-top: 1.6rem;
}
.step-num {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--azure-bright);
}
.step h3 {
  font-size: var(--text-xl);
  color: var(--paper);
  margin: 0.7rem 0 0.9rem;
}
.step p { font-weight: 400; line-height: 1.7; }

/* ---------- Valutazione gratuita (lead) ---------- */
.valuation {
  margin-top: clamp(3.5rem, 7vw, 6rem);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  border: 1px solid var(--line-light);
  border-radius: 22px;
  padding: clamp(1.8rem, 4vw, 3rem);
  background: rgba(63, 164, 220, 0.07);
  scroll-margin-top: 100px;
}
.valuation-copy h3 {
  font-size: var(--text-xl);
  color: var(--paper);
  letter-spacing: -0.02em;
}
.valuation-copy > p {
  margin-top: 0.9rem;
  color: rgba(245, 242, 235, 0.8);
  max-width: 40ch;
}
.valuation-alt { font-size: var(--text-sm); }
.valuation-alt a {
  color: var(--azure-bright);
  font-weight: 600;
  text-decoration: none;
}
.valuation-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}
.vf-field { display: flex; flex-direction: column; gap: 0.35rem; }
.vf-wide { grid-column: 1 / -1; }
.vf-field span {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 242, 235, 0.55);
}
.vf-field input {
  font: inherit;
  font-size: 0.95rem;
  color: var(--paper);
  background: rgba(245, 242, 235, 0.08);
  border: 1px solid rgba(245, 242, 235, 0.22);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  width: 100%;
}
.vf-field input::placeholder { color: rgba(245, 242, 235, 0.4); }
.vf-field input:focus {
  outline: none;
  border-color: var(--azure-bright);
  box-shadow: 0 0 0 3px rgba(91, 184, 234, 0.18);
}
.vf-submit { grid-column: 1 / -1; justify-self: start; }
.vf-note {
  grid-column: 1 / -1;
  font-size: 0.78rem;
  color: rgba(245, 242, 235, 0.5);
}

/* ---------- CTA fissa mobile (scheda immobile) ---------- */
.sticky-cta {
  display: none;
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 180;
  grid-template-columns: 1fr 1.4fr;
  gap: 0.6rem;
  padding: 0.7rem var(--space) calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(245, 242, 235, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.sticky-cta .btn { justify-content: center; padding: 0.85rem 1rem; }
.sticky-cta .btn-line { background: #fff; }
@media (max-width: 900px) {
  .sticky-cta { display: grid; }
  body:has(.sticky-cta) .site-footer { padding-bottom: 6.5rem; }
}

/* ---------- Territori ---------- */
.places { padding-block: var(--section) 0; }

.places-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.place-card {
  position: relative;
  text-decoration: none;
  color: inherit;
  border-radius: 18px;
  overflow: clip;
}
.place-card figure {
  aspect-ratio: 3 / 4;
  overflow: clip;
  background: var(--sand);
}
.place-card:nth-child(2) { margin-top: clamp(1.5rem, 4vw, 3.5rem); }
.place-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}
.place-card:hover img { transform: scale(1.06); }
.place-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(11, 29, 51, 0.82) 100%);
  pointer-events: none;
}
.place-meta {
  position: absolute;
  z-index: 1;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 1.4rem;
  color: var(--paper);
}
.place-meta h3 { font-size: var(--text-xl); }
.place-meta p {
  font-size: var(--text-sm);
  color: rgba(245, 242, 235, 0.75);
  margin-top: 0.3rem;
}

/* ---------- Agenzia ---------- */
.about { padding-block: var(--section); }

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.about-figure {
  border-radius: 18px;
  overflow: clip;
  aspect-ratio: 4 / 5;
}
.about-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-body > p { margin-top: 1.6rem; color: rgba(14, 33, 56, 0.8); max-width: 48ch; }

.about-quote {
  margin: 2.2rem 0 0;
  padding-left: 1.5rem;
  border-left: 2px solid var(--azure);
  font-size: var(--text-xl);
  font-weight: 500;
  font-style: normal;
  line-height: 1.35;
  color: var(--navy);
}
.about-quote cite {
  display: block;
  margin-top: 0.8rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: var(--text-sm);
  color: rgba(14, 33, 56, 0.55);
}

.about-info {
  list-style: none;
  margin: 2.2rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.about-info li {
  padding-block: 0.8rem;
  border-top: 1px solid var(--line);
  font-size: var(--text-sm);
}
.about-info li:last-child { border-bottom: 1px solid var(--line); }
.about-reviews {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}
.about-reviews:hover { color: var(--azure); }

/* ---------- Contatti ---------- */
.contact {
  position: relative;
  background: linear-gradient(170deg, var(--navy) 0%, var(--navy-deep) 70%);
  color: var(--paper);
  padding-block: var(--section);
  overflow: clip;
}
.contact::before {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 70vw;
  height: 70vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 164, 220, 0.14) 0%, transparent 60%);
  pointer-events: none;
}

.contact-title {
  font-size: var(--text-hero);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.04;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  margin-top: clamp(3rem, 7vw, 5.5rem);
}
.contact-block h3 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 242, 235, 0.55);
  margin-bottom: 1rem;
}
.contact-big {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  text-decoration: none;
  line-height: 1.25;
  transition: color 0.3s;
}
.contact-big:hover { color: var(--azure-bright); }
.contact-mail { word-break: break-all; font-size: clamp(1.1rem, 1.8vw, 1.5rem); }
.contact-block p { font-weight: 400; }
.contact-link {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: var(--text-sm);
  color: var(--azure-bright);
  text-decoration: none;
  border-bottom: 1px solid rgba(91, 184, 234, 0.4);
  padding-bottom: 2px;
  transition: border-color 0.3s;
}
.contact-link:hover { border-color: var(--azure-bright); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(245, 242, 235, 0.7);
  border-top: 1px solid var(--line-light);
  padding-block: 2.2rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--paper);
}
.footer-brand .accent { stroke: var(--azure); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer-nav a {
  font-size: var(--text-sm);
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.3s, color 0.3s;
}
.footer-nav a:hover { opacity: 1; color: var(--azure-bright); }
.footer-legal { font-size: 0.78rem; opacity: 0.55; width: 100%; }

/* ---------- Stati iniziali animazioni (solo con JS + motion attiva) ---------- */
html.motion-ok .reveal-hero,
html.motion-ok .reveal-up { opacity: 0; }
html.motion-ok .hline-inner { opacity: 0; }
html.motion-ok .reveal-card { opacity: 0; }

/* Le ancore atterrano sotto l'header fisso */
section[id], main[id] { scroll-margin-top: 84px; }

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .main-nav { display: none; }
  .header-tel { display: none; }
  .menu-toggle { display: flex; }
}

@media (max-width: 900px) {
  .intro-grid { grid-template-columns: 1fr; }
  .method-steps { grid-template-columns: 1fr; gap: 2.2rem; }
  .hero-search { grid-template-columns: 1fr 1fr; }
  .hs-submit { grid-column: 1 / -1; justify-self: stretch; justify-content: center; }
  .valuation { grid-template-columns: 1fr; }
  .valuation-form { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-figure { aspect-ratio: 16 / 10; }
  .places-grid { grid-template-columns: 1fr; }
  .place-card:nth-child(2) { margin-top: 0; }
  .place-card figure { aspect-ratio: 16 / 10; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .search-row { grid-template-columns: 1fr; }
}

@media (max-height: 760px) and (min-width: 861px) {
  .show-card { width: min(60vw, 440px); }
}

@media (max-width: 640px) {
  .header-cta { display: none; }
  .hero-foot { flex-wrap: wrap; row-gap: 1rem; }
  .hero-scroll { display: none; }
  .stats { grid-template-columns: 1fr; }
  .stat:nth-child(odd) { border-right: 0; }
  .stat:nth-child(even) { padding-left: 0; }
  .show-card { width: 84vw; }
}

/* ============================================================
   Pagine interne (catalogo completo + scheda immobile)
   ============================================================ */

/* Header sempre solido sulle sottopagine */
.site-header.is-solid {
  background: rgba(245, 242, 235, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-solid .brand-top { color: var(--azure); }

/* ---------- Intestazione pagina catalogo ---------- */
.page-hero {
  background: linear-gradient(170deg, var(--navy) 0%, var(--navy-deep) 80%);
  color: var(--paper);
  padding-block: clamp(9rem, 20vh, 13rem) clamp(3.5rem, 8vw, 6rem);
  position: relative;
  overflow: clip;
}
.page-hero::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -12%;
  width: 55vw;
  height: 55vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 164, 220, 0.14) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero-title {
  font-size: var(--text-hero);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.03;
}
.page-hero-sub {
  margin-top: 1.6rem;
  max-width: 52ch;
  font-size: var(--text-lg);
  font-weight: 400;
  color: rgba(245, 242, 235, 0.85);
}

.catalog-page { padding-block: clamp(3rem, 6vw, 5rem) var(--section); }

.search-row-4 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 900px) {
  .search-row-4 { grid-template-columns: 1fr; }
}

.card figure { position: relative; }
.card-photos {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  background: rgba(11, 29, 51, 0.68);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--paper);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

/* ---------- CTA di pagina ---------- */
.page-cta {
  background: var(--navy-deep);
  color: var(--paper);
  padding-block: clamp(4rem, 8vw, 7rem);
}
.page-cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.page-cta-actions p {
  font-weight: 400;
  color: rgba(245, 242, 235, 0.8);
  margin-bottom: 1.4rem;
  max-width: 38ch;
}
.page-cta-actions > div { display: flex; flex-wrap: wrap; gap: 1rem; }
@media (max-width: 900px) {
  .page-cta-inner { grid-template-columns: 1fr; }
}

/* ---------- Scheda immobile ---------- */
.property { padding-top: clamp(6.5rem, 14vh, 9rem); }
.property-loading { padding-block: 6rem; text-align: center; color: rgba(14, 33, 56, 0.55); }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: var(--text-sm);
  color: rgba(14, 33, 56, 0.55);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.breadcrumb a { text-decoration: none; color: var(--navy); }
.breadcrumb a:hover { color: var(--azure); }
.breadcrumb span[aria-current] {
  max-width: 42ch;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.property-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 4rem);
  margin-bottom: clamp(1.8rem, 3.5vw, 2.8rem);
}
.property-head .kicker { margin-bottom: 0.9rem; color: var(--azure); }
.property-title {
  font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.4rem);
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.08;
  max-width: 22ch;
}
.property-address {
  margin-top: 0.9rem;
  color: rgba(14, 33, 56, 0.65);
}
.property-specs {
  margin-top: 0.4rem;
  font-size: var(--text-sm);
  color: rgba(14, 33, 56, 0.55);
  letter-spacing: 0.02em;
}
.property-price-box { text-align: right; flex: none; }
.property-price {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem);
  font-weight: 650;
  letter-spacing: -0.025em;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 1.1rem;
}
.property-cta { display: flex; gap: 0.7rem; justify-content: flex-end; flex-wrap: wrap; }

/* ---------- Galleria ---------- */
.gallery { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.gallery-main {
  position: relative;
  border-radius: 18px;
  overflow: clip;
  background: var(--sand);
}
.gallery-zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.gallery-main img {
  width: 100%;
  aspect-ratio: 16 / 9.5;
  object-fit: cover;
  display: block;
  transition: transform 0.8s var(--ease-out);
}
.gallery-zoom:hover img { transform: scale(1.015); }
.gallery-counter {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  background: rgba(11, 29, 51, 0.68);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--paper);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  pointer-events: none;
}
.gallery-thumbs {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.8rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  scrollbar-width: thin;
}
.gallery-thumb {
  flex: none;
  width: 108px;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: clip;
  background: var(--sand);
  opacity: 0.65;
  transition: opacity 0.3s, border-color 0.3s;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb:hover { opacity: 1; }
.gallery-thumb.is-active { opacity: 1; border-color: var(--azure); }

/* ---------- Corpo scheda ---------- */
.property-body {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
  margin-bottom: var(--section);
}
.property-section-title {
  font-size: var(--text-xl);
  margin-bottom: 1.4rem;
}

.property-desc p {
  margin-bottom: 1.1rem;
  line-height: 1.75;
  color: rgba(14, 33, 56, 0.82);
}

.property-side {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.detail-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.6rem;
  background: #fff;
}
.detail-card h3 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(14, 33, 56, 0.5);
  margin-bottom: 1.1rem;
}
.detail-card dl { margin: 0; }
.detail-card dl > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.55rem;
  border-top: 1px solid var(--line);
  font-size: var(--text-sm);
}
.detail-card dt { color: rgba(14, 33, 56, 0.55); }
.detail-card dd { margin: 0; font-weight: 600; text-align: right; }

.detail-card-contact { background: var(--navy-deep); border-color: transparent; color: var(--paper); }
.detail-card-contact h3 { color: rgba(245, 242, 235, 0.55); }
.detail-card-contact > p { font-weight: 400; color: rgba(245, 242, 235, 0.8); margin-bottom: 1rem; }
.detail-card-contact .contact-big { color: var(--paper); font-size: 1.5rem; }
.detail-card-contact .contact-big:hover { color: var(--azure-bright); }
.detail-contact-links { display: flex; gap: 1.2rem; margin-top: 0.9rem; }
.detail-contact-links a {
  font-size: var(--text-sm);
  color: var(--azure-bright);
  text-decoration: none;
  border-bottom: 1px solid rgba(91, 184, 234, 0.4);
  padding-bottom: 2px;
}
.detail-hours {
  margin-top: 1.2rem;
  font-size: 0.78rem;
  color: rgba(245, 242, 235, 0.55);
}

.related { background: var(--paper-warm); padding-block: clamp(3.5rem, 7vw, 6rem); border-top: 1px solid var(--line); }
.related-grid { margin-top: clamp(2rem, 4vw, 3rem); }

@media (max-width: 900px) {
  .property-head { flex-direction: column; align-items: flex-start; }
  .property-price-box { text-align: left; }
  .property-cta { justify-content: flex-start; }
  .property-body { grid-template-columns: 1fr; }
  .property-side { position: static; }
  .gallery-main img { aspect-ratio: 4 / 3; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(6, 15, 27, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox-figure {
  max-width: min(92vw, 1500px);
  max-height: 86svh;
}
.lightbox-figure img {
  max-width: 100%;
  max-height: 86svh;
  object-fit: contain;
  border-radius: 3px;
}
.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(245, 242, 235, 0.3);
  background: transparent;
  color: var(--paper);
  font-size: 1.5rem;
  line-height: 1;
}
.lightbox-close:hover { border-color: var(--paper); }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(245, 242, 235, 0.3);
  background: rgba(11, 29, 51, 0.5);
  color: var(--paper);
  font-size: 1.1rem;
  transition: border-color 0.3s, background 0.3s;
}
.lightbox-nav:hover { border-color: var(--paper); background: var(--navy); }
.lightbox-prev { left: 1.2rem; }
.lightbox-next { right: 1.2rem; }
.lightbox-counter {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(245, 242, 235, 0.75);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
}
@media (max-width: 640px) {
  .lightbox-nav { width: 42px; height: 42px; }
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .ticker-row { animation: none; }
  .hero-scroll i, .vt-dot { animation: none; }
}
