/* ============================================
   Immobiliare Niu — Stylesheet
   ============================================ */

/* ---- Font Imports ---- */

/* Playfair Display — web fallback for Laginchy */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* ---- @font-face — Local Font Files ---- */

/* Laginchy (display serif) */
@font-face {
  font-family: 'Laginchy';
  src: url('font/Laginchy-Regular.otf') format('opentype'),
       url('font/Laginchy-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Laginchy';
  src: url('font/Laginchy-Bold.otf') format('opentype'),
       url('font/Laginchy-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* HK Grotesk (body sans-serif) */
@font-face {
  font-family: 'HK Grotesk';
  src: url('font/HKGrotesk-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'HK Grotesk';
  src: url('font/HKGrotesk-LightItalic.ttf') format('truetype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'HK Grotesk';
  src: url('font/HKGrotesk-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'HK Grotesk';
  src: url('font/HKGrotesk-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'HK Grotesk';
  src: url('font/HKGrotesk-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'HK Grotesk';
  src: url('font/HKGrotesk-MediumItalic.ttf') format('truetype');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'HK Grotesk';
  src: url('font/HKGrotesk-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'HK Grotesk';
  src: url('font/HKGrotesk-SemiBoldItalic.ttf') format('truetype');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'HK Grotesk';
  src: url('font/HKGrotesk-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'HK Grotesk';
  src: url('font/HKGrotesk-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* ---- Custom Properties ---- */
:root {
  --beige: #C8BFB0;
  --olive: #3A3F2E;
  --dark: #111111;
  --white-text: #EDE8DF;
  --dark-text: #1C1A17;
  --accent: #8B2E1A;

  --grain: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.07'/%3E%3C/svg%3E");

  --font-display: 'Laginchy', 'Playfair Display', 'Georgia', serif;
  --font-body: 'HK Grotesk', 'Helvetica Neue', 'Arial', sans-serif;

  --nav-height: 80px;
  --pad: 5vw;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 0.8s;
}

/* ---- Reset ---- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height, 80px);
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

a:hover { opacity: 0.6; }

button { font-family: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ---- Page Backgrounds ---- */
body.page-home {
  background: var(--grain) repeat, var(--beige);
  background-blend-mode: multiply;
  color: var(--dark-text);
}

body.page-compra {
  background-color: var(--olive);
  color: var(--white-text);
}

body.page-chi-siamo {
  background-color: var(--dark);
  color: var(--white-text);
}

/* ---- Page Transition Overlay ---- */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background-color: var(--dark);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.45s var(--ease);
}

.page-transition.done {
  opacity: 0;
}

.page-transition.active {
  opacity: 1;
  pointer-events: all;
}

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ============================================
   ANIMATION SYSTEM
   ============================================ */

/* Scroll-triggered reveals.
   Stagger delays are applied via JS (data-stagger-index),
   NOT via :nth-child — that pattern breaks across grids and containers. */
.anim {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  filter: blur(4px);
  transition: opacity 0.95s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.95s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.95s cubic-bezier(0.22, 1, 0.36, 1);
}

.anim.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

/* will-change is added/removed by JS around the active transition only */
.anim.animating {
  will-change: transform, opacity, filter;
}

/* ============================================
   SCROLL-LINKED FADE
   Modern scroll-driven reveal — each element fades in
   bound to its own viewport progress, not a one-shot trigger.
   Uses CSS Scroll-Driven Animations (Chrome/Edge 115+, Safari 17.4+).
   Falls back to an IntersectionObserver class-toggle on older browsers.
   ============================================ */
.scroll-fade {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.scroll-fade.is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@supports (animation-timeline: view()) {
  .scroll-fade {
    opacity: 1;
    transform: none;
    transition: none;
    animation: scroll-fade-in linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 35%;
    will-change: opacity, transform;
  }

  @keyframes scroll-fade-in {
    from { opacity: 0; transform: translate3d(0, 32px, 0); }
    to   { opacity: 1; transform: translate3d(0, 0, 0); }
  }
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px var(--pad) 16px;
  z-index: 100;
  animation: navSlideDown 0.9s var(--ease) both;
  will-change: padding-top;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: padding-top 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              backdrop-filter 0.5s ease,
              -webkit-backdrop-filter 0.5s ease,
              border-bottom-color 0.5s ease;
}

.navbar.scrolled {
  padding-top: 16px;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom-color: rgba(255, 255, 255, 0.10);
}

.nav-logo {
  position: absolute;
  left: var(--pad);
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

.nav-logo img {
  height: 48px;
  width: auto;
  display: block;
  transition: opacity 0.3s ease;
}

.nav-logo:hover {
  opacity: 0.85;
}

/* ---- Brand-mark: two-line stacked wordmark ---- */
.brand-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  line-height: 1;
}

.brand-mark__top {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
  display: flex;
  align-items: baseline;
}

.brand-mark__reg {
  font-size: 0.45em;
  vertical-align: super;
  line-height: 1;
}

.brand-mark__sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  line-height: 1;
  margin-top: 0.1em;
}

/* Navbar scale override */
.nav-logo .brand-mark__top {
  font-size: 1.5rem;
}

.nav-logo .brand-mark__sub {
  font-size: 0.55rem;
  letter-spacing: 0.3em;
}

@keyframes navSlideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  position: relative;
  padding-bottom: 6px;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: currentColor;
  transition: width 0.4s var(--ease);
}

.nav-link:hover::before {
  width: 100%;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background-color: currentColor;
}

.nav-link:hover {
  opacity: 1;
}

.nav-contact {
  position: absolute;
  right: var(--pad);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.85rem;
  padding: 12px 28px;
  border: 1px solid currentColor;
  border-radius: 22px;
  transition: opacity 0.4s var(--ease),
              background-color 0.4s var(--ease),
              color 0.4s var(--ease),
              box-shadow 0.4s var(--ease);
  display: none;
  animation: contactPulse 3s ease-in-out infinite;
}

@keyframes contactPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(139, 46, 26, 0); }
  50% { box-shadow: 0 0 0 6px rgba(139, 46, 26, 0.12); }
}

.page-home .nav-contact {
  background: rgba(0, 0, 0, 0.04);
}

.page-home .nav-contact:hover {
  background: var(--dark-text);
  color: var(--white-text);
  opacity: 1;
}

.page-compra .nav-contact:hover {
  background: var(--white-text);
  color: var(--olive);
  opacity: 1;
}

.page-chi-siamo .nav-contact:hover {
  background: var(--white-text);
  color: var(--dark-text);
  opacity: 1;
}

.nav-contact:hover {
  opacity: 1;
}

/* ============================================
   MOBILE NAV TOGGLE
   ============================================ */
.nav-toggle {
  position: absolute;
  right: var(--pad);
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1100; /* must sit above the overlay */
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  -webkit-appearance: none;
}

.nav-toggle:focus {
  outline: none;
}

.nav-toggle:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
  border-radius: 4px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background-color: currentColor;
  border-radius: 1px;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.25s ease;
  transform-origin: center;
}

/* X animation when open */
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: translateX(-12px); }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* Per-page hamburger color — forza il colore brand corretto su ogni pagina */
.page-home .nav-toggle,
.page-vendi .nav-toggle {
  color: var(--dark-text);
}

.page-compra .nav-toggle,
.page-chi-siamo .nav-toggle {
  color: var(--white-text);
}

/* Quando il menu è aperto, l'overlay è sempre dark-text su beige o white-text su dark/olive */
.page-home .nav-toggle.open,
.page-vendi .nav-toggle.open {
  color: var(--dark-text);
}

.page-compra .nav-toggle.open,
.page-chi-siamo .nav-toggle.open {
  color: var(--white-text);
}

/* ============================================
   MOBILE MENU — pannello solido a schermo intero
   Copre tutta la viewport senza alcuna trasparenza.
   Il colore brand di sfondo viene ridefinito per pagina
   nelle regole .page-* più in basso.
   ============================================ */
.nav-links {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Forza altezza piena della viewport — inset non basta con alcuni layout engine */
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding-top: 80px;
  padding-left: var(--pad);
  padding-right: var(--pad);
  padding-bottom: 80px;
  z-index: 1050;
  /* Pannello solido opaco — nessun gradient trasparente */
  background: var(--dark);
  color: var(--white-text);
  /* Closed state */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              visibility 0s linear 0.25s;
}

/* Open state */
.nav-links.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              visibility 0s linear 0s;
}

/* ---- Mobile link styling — Laginchy display serif ---- */
.nav-links .nav-link {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 6vw, 2.2rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  width: 100%;
  padding: 18px 0;
  border-bottom: 1px solid rgba(237, 232, 223, 0.10);
  /* Closed/stagger state */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-links .nav-link:first-child {
  border-top: 1px solid rgba(237, 232, 223, 0.10);
}

/* Staggered entry */
.nav-links.open .nav-link {
  opacity: 1;
  transform: translateY(0);
}
.nav-links.open .nav-link:nth-child(1) { transition-delay: 0.10s; }
.nav-links.open .nav-link:nth-child(2) { transition-delay: 0.17s; }
.nav-links.open .nav-link:nth-child(3) { transition-delay: 0.24s; }
.nav-links.open .nav-link:nth-child(4) { transition-delay: 0.31s; }

/* Active state indicator on mobile — wider underline */
.nav-links.open .nav-link.active::after {
  width: 36px;
  height: 2px;
  bottom: -2px;
}

/* ---- Contact Us CTA shown at bottom of overlay ---- */
.nav-links.open ~ .nav-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  bottom: 52px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  padding: 14px 36px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  border: 1px solid currentColor;
  border-radius: 28px;
  background: transparent;
  z-index: 1060;
  white-space: nowrap;
  /* Fade in after links have staggered in */
  opacity: 0;
  animation: none; /* pause contactPulse while overlay is open */
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.38s,
              background-color 0.3s ease,
              color 0.3s ease;
}
.nav-links.open ~ .nav-contact {
  opacity: 1;
}

/* ---- Per-page overlay colors — pannello solido, un colore per pagina ---- */
/* Pagine beige (home, vendi): testo scuro su sfondo beige pieno */
.page-home .nav-links {
  background: #C8BFB0;
  color: var(--dark-text);
}
.page-vendi .nav-links {
  background: #C8BFB0;
  color: var(--dark-text);
}
/* Pagina olive (compra): testo chiaro su sfondo olive pieno */
.page-compra .nav-links {
  background: #3A3F2E;
  color: var(--white-text);
}
/* .page-chi-siamo usa il default dark (#111) già definito sopra */

/* ---- prefers-reduced-motion: instant open/close, no stagger, no transforms ---- */
@media (prefers-reduced-motion: reduce) {
  .nav-links {
    transition: opacity 0s, transform 0s, visibility 0s;
    transform: none;
  }
  .nav-links.open {
    transition: opacity 0s, transform 0s, visibility 0s;
  }
  .nav-links .nav-link {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .nav-links.open .nav-link { transition-delay: 0s; }
  .nav-toggle span { transition: none; }
  .nav-links.open ~ .nav-contact {
    transition: none;
    opacity: 1;
  }
}

/* ---- Divider color per-page (beige pages: divider scuro) ---- */
.page-home .nav-links .nav-link,
.page-vendi .nav-links .nav-link {
  border-bottom-color: rgba(28, 26, 23, 0.12);
}
.page-home .nav-links .nav-link:first-child,
.page-vendi .nav-links .nav-link:first-child {
  border-top-color: rgba(28, 26, 23, 0.12);
}

/* ============================================
   DESKTOP NAVBAR — restore static layout
   ============================================ */
@media (min-width: 768px) {
  .nav-links {
    display: flex;
    position: static;
    inset: auto;
    flex-direction: row;
    padding: 0;
    background: none !important;
    color: inherit !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: none;
    gap: 48px;
    width: auto;
    height: auto;
    min-height: 0;
  }
  .nav-links .nav-link {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    padding: 0 0 6px 0;
    border-top: none;
    border-bottom: none;
    width: auto;
    opacity: 1;
    transform: none;
    transition: none;
  }
  .nav-links.open .nav-link { transition-delay: 0s; }
  .nav-links.open .nav-link.active::after {
    width: 20px;
    height: 2px;
    bottom: 0;
  }
  /* Restore desktop Contact Us position and pulse */
  .nav-contact { display: block; position: absolute; }
  .nav-contact { animation: contactPulse 3s ease-in-out infinite; }
  .nav-links.open ~ .nav-contact {
    display: block;
    position: absolute;
    bottom: auto;
    left: auto;
    right: var(--pad);
    transform: none;
    opacity: 1;
    transition: opacity 0.4s var(--ease),
                background-color 0.4s var(--ease),
                color 0.4s var(--ease),
                box-shadow 0.4s var(--ease);
    animation: contactPulse 3s ease-in-out infinite;
    white-space: normal;
  }
  .nav-toggle { display: none; }
}

/* ============================================
   LOGO BAR (centered above navbar)
   ============================================ */

/* ============================================
   HOME PAGE — HERO SECTION
   ============================================ */
.home {
  position: relative;
  min-height: calc(100vh - var(--nav-height));
  padding-bottom: 40px;
  overflow: hidden;
}

/* Compositional grid lines */
.home::before {
  content: '';
  position: absolute;
  background-color: #2a2a2a;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
  width: 1px;
  top: 0;
  bottom: 0;
  left: 45%;
}

.home-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #2a2a2a;
  opacity: 0.10;
  pointer-events: none;
  z-index: 0;
  top: 0;
}

.home > .container {
  position: relative;
  z-index: 1;
}

/* Logo */
.home-logo {
  text-align: center;
  margin-bottom: 20px;
  padding-top: 10px;
}

.logo-line1 {
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.logo-eur {
  font-family: var(--font-body);
  font-weight: 300;
}

.logo-duomo {
  font-family: var(--font-display);
  font-weight: 700;
}

.logo-reg {
  font-size: 0.6em;
  vertical-align: super;
}

.logo-line2 {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

/* Hero layout */
.home-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
  margin-top: 20px;
  min-height: calc(100vh - var(--nav-height) - 80px);
  justify-content: center;
}

.hero-text {
  max-width: 500px;
}

.hero-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
  margin-bottom: 4px;
}

.hero-title .star {
  font-style: normal;
  font-size: 0.6em;
  vertical-align: super;
  margin-left: 2px;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.2rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.82rem;
  line-height: 1.7;
  max-width: 380px;
  opacity: 0.85;
}

/* Building illustration */
.hero-illustration {
  width: 100%;
  max-width: 520px;
  color: var(--dark);
}

.hero-illustration img {
  width: 100%;
  height: auto;
  object-fit: contain;
  /* Prevent layout shift during opacity/blur reveal */
  contain: layout style;
}

@media (min-width: 768px) {
  .home-hero {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-top: 0;
    min-height: calc(100vh - var(--nav-height) - 80px);
  }

  .hero-text {
    flex: 0 0 42%;
  }

  .hero-illustration {
    flex: 0 0 52%;
    max-width: 580px;
  }

  .logo-line1 { font-size: 1.6rem; }
}

/* ============================================
   HOME — SECTION: FEATURED PROPERTIES
   ============================================ */
.section-featured {
  background: var(--grain) repeat, var(--beige);
  background-blend-mode: multiply;
  color: var(--dark-text);
  padding: 60px 0;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 8px;
}

.section-subtitle {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.9rem;
  opacity: 0.65;
  margin-bottom: 48px;
}

.properties-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.property-card {
  background-color: #EDE8DF;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 30px rgba(28, 20, 10, 0.14), 0 2px 8px rgba(28, 20, 10, 0.08);
  transition: transform 0.45s ease, box-shadow 0.45s ease;
  cursor: pointer;
}

/* Animazione entrata card — stagger sequenziale */
.properties-grid .property-card:nth-child(1) { transition-delay: 0ms; }
.properties-grid .property-card:nth-child(2) { transition-delay: 100ms; }
.properties-grid .property-card:nth-child(3) { transition-delay: 200ms; }

/* Su mobile (colonna singola) le card escono a cascata rapida */
@media (max-width: 767px) {
  .properties-grid .property-card:nth-child(2) { transition-delay: 80ms; }
  .properties-grid .property-card:nth-child(3) { transition-delay: 160ms; }
}

/* Quando il sistema scroll-driven anima .scroll-fade, lo stagger
   è gestito dal delay sopra. Per i browser con animation-timeline,
   ogni card ha range leggermente diverso per creare la cascata. */
@supports (animation-timeline: view()) {
  .properties-grid .property-card:nth-child(2) {
    animation-range: entry 5% cover 40%;
  }
  .properties-grid .property-card:nth-child(3) {
    animation-range: entry 10% cover 45%;
  }
}

.property-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 50px rgba(28, 20, 10, 0.20), 0 4px 12px rgba(28, 20, 10, 0.10);
}

.property-image {
  aspect-ratio: 4 / 3;
  border-radius: 0;
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
  background-color: #d4cfc4;
}

.property-card-body {
  padding: 20px 24px;
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.property-card:hover .property-image img {
  transform: scale(1.05);
}

.property-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 14px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.property-badge--sale { background: var(--accent); color: var(--white-text); }
.property-badge--new { background: var(--olive); color: var(--white-text); }

.property-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.property-details {
  display: flex;
  gap: 16px;
  font-size: 0.76rem;
  opacity: 0.6;
  margin-bottom: 14px;
}

.property-detail {
  display: flex;
  align-items: center;
  gap: 5px;
}

.property-detail svg {
  flex-shrink: 0;
}

.property-price {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 16px;
}

.property-cta {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding-bottom: 3px;
  border-bottom: none;
  position: relative;
  transition: color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.property-cta::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.property-card:hover .property-cta {
  color: var(--accent);
  opacity: 1;
}

.property-card:hover .property-cta::after {
  transform: scaleX(1);
}

.property-cta:not(:hover)::after {
  transform: scaleX(0);
}

@media (min-width: 768px) {
  .section-featured { padding: 120px 0 100px; }

  .properties-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
  }
}

/* ============================================
   HOME — SECTION: CTA SELL
   ============================================ */
.section-cta {
  background: var(--grain) repeat, var(--olive);
  background-blend-mode: multiply;
  color: var(--white-text);
  padding: 60px 0;
  overflow: hidden;
}

.cta-layout {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.cta-text {
  max-width: 600px;
}

.cta-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.1;
  margin-bottom: 20px;
}

.cta-body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.88rem;
  line-height: 1.7;
  opacity: 0.82;
  max-width: 480px;
  margin-bottom: 36px;
}

.cta-strengths {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.cta-strength {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.84rem;
  font-weight: 500;
}

.cta-strength-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(237, 232, 223, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cta-strength-icon svg {
  width: 18px;
  height: 18px;
}

.cta-btn {
  display: inline-block;
  padding: 16px 38px;
  border: 1px solid var(--white-text);
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  background: transparent;
  color: var(--white-text);
  cursor: pointer;
  transition: all 0.4s var(--ease);
}

.cta-btn:hover {
  background: var(--white-text);
  color: var(--olive);
  opacity: 1;
}

/* Decorative element */
.cta-deco {
  display: none;
}

.cta-deco-shape {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(237, 232, 223, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.cta-deco-shape::before {
  content: '✦';
  font-size: 5rem;
  opacity: 0.12;
  color: var(--white-text);
}

.cta-deco-shape::after {
  content: '';
  position: absolute;
  inset: 30px;
  border-radius: 50%;
  border: 1px solid rgba(237, 232, 223, 0.07);
}

@media (min-width: 768px) {
  .section-cta { padding: 100px 0; }

  .cta-layout {
    flex-direction: row;
    align-items: center;
    gap: 60px;
  }

  .cta-text { flex: 0 0 58%; }

  .cta-deco {
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: center;
  }

  .cta-strengths {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 28px;
  }
}

/* ============================================
   HOME — SECTION: NUMBERS
   ============================================ */
.section-numbers {
  background: var(--grain) repeat, var(--dark);
  background-blend-mode: multiply;
  color: var(--white-text);
  padding: 60px 0;
}

.section-numbers .section-title {
  text-align: center;
  margin-bottom: 56px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-suffix {
  font-size: 0.55em;
}

.stat-label {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.8rem;
  opacity: 0.5;
  letter-spacing: 0.06em;
}

@media (min-width: 768px) {
  .section-numbers { padding: 100px 0; }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
  }
}

/* ============================================
   HOME — SECTION: WHY CHOOSE
   ============================================ */
.section-why {
  background: var(--grain) repeat, var(--beige);
  background-blend-mode: multiply;
  color: var(--dark-text);
  padding: 60px 0;
}

.section-why .section-title {
  margin-bottom: 48px;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.why-card {
  padding: 30px;
  border: none;
  border-radius: 16px;
  background: #EDE8DF;
  box-shadow: 0 4px 28px rgba(28, 20, 10, 0.09), 0 1px 6px rgba(28, 20, 10, 0.05);
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 44px rgba(28, 20, 10, 0.15), 0 3px 10px rgba(28, 20, 10, 0.08);
}

.why-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  opacity: 0.75;
}

.why-card-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 8px;
}

.why-card-desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.82rem;
  line-height: 1.7;
  opacity: 0.65;
}

@media (min-width: 768px) {
  .section-why { padding: 100px 0; }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--grain) repeat, var(--dark);
  background-blend-mode: multiply;
  color: var(--white-text);
  padding: 60px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-logo {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.footer-tagline {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 300;
  opacity: 0.5;
  line-height: 1.7;
  max-width: 300px;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 20px;
  opacity: 0.85;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a,
.footer-col p {
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 300;
  opacity: 0.5;
  transition: opacity 0.3s ease;
  line-height: 1.6;
}

.footer-col a:hover {
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(237, 232, 223, 0.08);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.72rem;
  opacity: 0.35;
  letter-spacing: 0.04em;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
  }
}

/* ============================================
   COMPRA PAGE
   ============================================ */
.compra {
  padding-bottom: 60px;
}

.compra-header {
  padding: 10px 0 30px;
}

.compra-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin-bottom: 12px;
}

.compra-subtitle {
  font-family: var(--font-body);
  font-weight: 300;
  font-style: italic;
  font-size: 0.85rem;
  opacity: 0.8;
  letter-spacing: 0.02em;
}

/* Main content layout */
.compra-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

@media (min-width: 768px) {
  .compra-content {
    flex-direction: row;
    gap: 50px;
  }
}

/* Slider */
.slider-wrapper {
  width: 100%;
  position: relative;
}

@media (min-width: 768px) {
  .slider-wrapper { flex: 0 0 63%; }
}

.slider {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
  background-color: #323726;
  box-shadow: 0 8px 60px rgba(134, 97, 82, 0.45), 0 2px 20px rgba(134, 97, 82, 0.25);
}

.slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.slider-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slider-slide.active {
  opacity: 1;
  z-index: 1;
}

.slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform: translateZ(0);
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slider:hover .slider-slide.active img {
  transform: scale(1.03);
}

/* Slider arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.2);
  color: var(--white-text);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  z-index: 5;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
}

.slider:hover .slider-arrow {
  opacity: 1;
}

.slider-arrow:hover {
  background: rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 255, 255, 0.6);
}

.slider-arrow.prev { left: 16px; }
.slider-arrow.next { right: 16px; }

/* Slider dots */
.slider-dots {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  align-items: center;
}

.slider-dot {
  cursor: pointer;
  font-size: 0.7rem;
  opacity: 0.5;
  transition: opacity 0.3s ease;
  user-select: none;
}

.slider-dot.active { opacity: 1; }

/* Features sidebar */
.features { width: 100%; }

@media (min-width: 768px) {
  .features { flex: 1; }
}

.features-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.1;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--white-text);
  padding-bottom: 16px;
}

.features-title-serif {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}

.features-title-sans {
  font-family: var(--font-body);
  font-weight: 700;
}

.features-desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.85rem;
  line-height: 1.7;
  margin-bottom: 28px;
  opacity: 0.85;
}

/* Leader dots list */
.features-list { margin-bottom: 28px; }

.feature-item {
  display: flex;
  align-items: baseline;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.82rem;
  margin-bottom: 6px;
}

.feature-label { white-space: nowrap; }

.feature-dots {
  flex: 1;
  border-bottom: 1px dotted currentColor;
  margin: 0 8px;
  position: relative;
  bottom: 3px;
  opacity: 0.4;
}

.feature-value { font-weight: 600; }

/* Price button */
.price-btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 14px 28px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  background: rgba(134, 97, 82, 0.25);
  color: var(--white-text);
  transition: opacity 0.3s ease;
}

.price-btn:hover { opacity: 0.7; }
.price-amount { color: #F5EFE6; font-weight: 600; }

/* Rooms section */
.compra-rooms {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(237, 232, 223, 0.15);
}

@media (min-width: 768px) {
  .compra-rooms {
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
  }
}

.room-card { position: relative; }

.room-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.room-name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.4rem;
}

.room-number {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.8rem;
  line-height: 1;
  opacity: 0.3;
}

.room-desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.82rem;
  line-height: 1.7;
  opacity: 0.8;
}

/* ============================================
   COMPRA — SEARCH BAR
   ============================================ */
.search-bar {
  background-color: #323726;
  padding: 40px 0;
}

.search-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.1;
  color: var(--white-text);
  margin-bottom: 28px;
}

.search-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .search-bar { padding: 50px 0; }

  .search-form {
    grid-template-columns: 1.8fr repeat(6, 1fr) auto;
    gap: 16px;
    align-items: end;
  }
}

.search-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.search-label {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--white-text);
  opacity: 0.55;
}

.search-input,
.search-select {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(237, 232, 223, 0.4);
  color: var(--white-text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.85rem;
  padding: 8px 0;
  outline: none;
  transition: border-color 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
}

.search-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23F0EDE6' stroke-width='1.2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 16px;
}

.search-select option {
  background: #323726;
  color: var(--white-text);
}

.search-input::placeholder {
  color: var(--white-text);
  opacity: 0.35;
}

.search-input:focus,
.search-select:focus {
  border-bottom-color: var(--white-text);
}

.search-btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--white-text);
  background: transparent;
  border: 1px solid var(--white-text);
  border-radius: 4px;
  padding: 12px 32px;
  cursor: pointer;
  transition: background-color 0.4s var(--ease),
              color 0.4s var(--ease);
  white-space: nowrap;
}

.search-btn:hover {
  background: var(--white-text);
  color: var(--olive);
}

/* ============================================
   COMPRA — LISTINGS SLIDER
   ============================================ */
.section-listings {
  background-color: var(--olive);
  padding: 60px 0;
  overflow: hidden;
}

.section-listings .section-title {
  color: var(--white-text);
  margin-bottom: 40px;
}

.listings-slider-wrapper {
  position: relative;
}

.listings-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.listings-track::-webkit-scrollbar {
  display: none;
}

.listing-card {
  flex: 0 0 280px;
  background-color: #EDE8DF;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 30px rgba(28, 20, 10, 0.14), 0 2px 8px rgba(28, 20, 10, 0.08);
  transition: transform 0.45s ease, box-shadow 0.45s ease;
  cursor: pointer;
}

@media (min-width: 768px) {
  .section-listings { padding: 100px 0; }
  .listing-card { flex: 0 0 calc(25% - 18px); }
}

.listing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 50px rgba(28, 20, 10, 0.20), 0 4px 12px rgba(28, 20, 10, 0.10);
}

.listing-image {
  aspect-ratio: 4 / 3;
  border-radius: 0;
  overflow: hidden;
  position: relative;
  margin-bottom: 0;
  background-color: #323726;
}

.listing-card-body {
  padding: 20px 24px;
}

.listing-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.listing-card:hover .listing-image img {
  transform: scale(1.05);
}

.listing-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--dark-text);
  margin-bottom: 6px;
}

.listing-details {
  display: flex;
  gap: 14px;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.76rem;
  color: var(--dark-text);
  opacity: 0.6;
  margin-bottom: 10px;
}

.listing-price {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 12px;
}

.listing-cta {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--dark-text);
  position: relative;
  transition: color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.listing-cta::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.listing-card:hover .listing-cta {
  color: var(--accent);
  opacity: 1;
}

.listing-card:hover .listing-cta::after {
  transform: scaleX(1);
}

/* Listings arrows */
.listings-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(237, 232, 223, 0.35);
  background: rgba(0, 0, 0, 0.25);
  color: var(--white-text);
  font-size: 1.1rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 5;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

@media (min-width: 768px) {
  .listings-arrow { display: flex; }
}

.listings-arrow:hover {
  background: rgba(0, 0, 0, 0.45);
  border-color: rgba(237, 232, 223, 0.6);
}

.listings-arrow--prev { left: -20px; }
.listings-arrow--next { right: -20px; }

/* ============================================
   CHI SIAMO PAGE
   ============================================ */
.chi-siamo {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
}

.chi-siamo > .container {
  display: flex;
  flex-direction: column;
  gap: 50px;
  padding-top: 40px;
  padding-bottom: 40px;
}

@media (min-width: 768px) {
  .chi-siamo > .container {
    flex-direction: row;
    align-items: center;
    gap: 60px;
    padding-top: 0;
    padding-bottom: 0;
  }
}

.contact-info { flex: 0 0 auto; }

@media (min-width: 768px) {
  .contact-info { flex: 0 0 38%; }
}

.contact-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1.05;
  margin-bottom: 48px;
}

.contact-block { margin-bottom: 32px; }

.contact-email-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-primary {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
}

.contact-label {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.82rem;
  opacity: 0.55;
}

.contact-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: 0.55;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
  flex-shrink: 0;
  color: inherit;
}

.contact-arrow svg {
  display: block;
  flex-shrink: 0;
}

.contact-arrow:hover { opacity: 1; }

.contact-address { margin-top: 40px; }

.contact-address p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.92rem;
  line-height: 1.7;
}

.contact-address .coords {
  font-weight: 300;
  font-size: 0.82rem;
  opacity: 0.55;
  margin-top: 4px;
}

/* Squircle image — fills the parent with object-fit cover so any photo
   adapts perfectly to the asymmetric squircle shape, responsive on both axes. */
.contact-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: #777;
  border-radius: 30px 100px 30px 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.4rem;
  color: #fff;
  overflow: hidden;
}

.contact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (min-width: 768px) {
  .contact-image {
    flex: 1;
    aspect-ratio: auto;
    min-height: 520px;
    border-radius: 50px 200px 50px 200px;
  }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .anim,
  .scroll-fade,
  .scroll-fade.is-revealed {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
    animation: none !important;
  }

  .page-transition {
    display: none !important;
  }

  .navbar {
    animation: none !important;
  }

  html { scroll-behavior: auto; }
}

/* ============================================
   UTILITIES
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ============================================
   VENDI PAGE
   ============================================ */

/* ---- Page background ---- */
body.page-vendi {
  background: var(--grain) repeat, var(--beige);
  background-blend-mode: multiply;
  color: var(--dark-text);
}

/* ---- Nav contact hover (warm cream on beige bg) ---- */
.page-vendi .nav-contact:hover {
  background: var(--dark-text);
  color: var(--white-text);
  opacity: 1;
}

/* Mobile menu overlay bg is set in the navbar block above */

/* ============================================
   VENDI — HERO
   ============================================ */
.vendi-hero {
  padding: 60px 0 80px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .vendi-hero {
    padding: 80px 0 120px;
  }
}

.vendi-hero-layout {
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .vendi-hero-layout {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
  }
}

.vendi-hero-text {
  max-width: 520px;
}

@media (min-width: 768px) {
  .vendi-hero-text {
    flex: 0 0 44%;
  }
}

.vendi-hero-kicker {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  opacity: 0.55;
  margin-bottom: 14px;
}

.vendi-hero-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.1;
  margin-bottom: 6px;
}

.vendi-hero-title .star {
  font-style: normal;
  font-size: 0.55em;
  vertical-align: super;
  margin-left: 4px;
}

.vendi-hero-italic {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 300;
  font-size: 1rem;
  opacity: 0.7;
  margin-bottom: 20px;
  line-height: 1.5;
}

.vendi-hero-body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.85rem;
  line-height: 1.75;
  opacity: 0.82;
  margin-bottom: 36px;
  max-width: 420px;
}

.vendi-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.vendi-btn-primary {
  display: inline-block;
  padding: 16px 36px;
  background: var(--dark-text);
  color: var(--white-text);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border-radius: 4px;
  border: 1px solid var(--dark-text);
  transition: background-color 0.4s var(--ease),
              color 0.4s var(--ease),
              opacity 0.4s var(--ease);
}

.vendi-btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  opacity: 1;
}

.vendi-btn-outline {
  display: inline-block;
  padding: 15px 30px;
  background: transparent;
  color: var(--dark-text);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border-radius: 4px;
  border: 1px solid rgba(28, 26, 23, 0.4);
  transition: border-color 0.4s var(--ease),
              background-color 0.4s var(--ease),
              opacity 0.4s var(--ease);
}

.vendi-btn-outline:hover {
  border-color: var(--dark-text);
  background: rgba(28, 26, 23, 0.06);
  opacity: 1;
}

.vendi-hero-image {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 80px rgba(28, 20, 10, 0.18), 0 4px 20px rgba(28, 20, 10, 0.10);
}

@media (min-width: 768px) {
  .vendi-hero-image {
    flex: 0 0 50%;
    border-radius: 16px;
  }
}

.vendi-hero-image img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.vendi-hero-image:hover img {
  transform: scale(1.03);
}

/* ============================================
   VENDI — WHY SECTION (inherits .section-why)
   ============================================ */
.vendi-why {
  /* Inherits section-why background + padding */
}

/* ============================================
   VENDI — PROCESS SECTION
   ============================================ */
.vendi-process-section {
  background: var(--grain) repeat, var(--dark);
  background-blend-mode: multiply;
  color: var(--white-text);
  padding: 80px 0;
}

@media (min-width: 768px) {
  .vendi-process-section {
    padding: 120px 0;
  }
}

.vendi-process-header {
  margin-bottom: 60px;
}

.vendi-process-layout {
  display: flex;
  flex-direction: column;
  gap: 60px;
  align-items: flex-start;
}

@media (min-width: 900px) {
  .vendi-process-layout {
    flex-direction: row;
    gap: 80px;
    align-items: flex-start;
  }
}

.vendi-process-steps {
  width: 100%;
}

@media (min-width: 900px) {
  .vendi-process-steps {
    flex: 0 0 55%;
  }
}

.vendi-step {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 32px 0;
  border-bottom: 1px solid rgba(237, 232, 223, 0.1);
  position: relative;
}

.vendi-step:first-child {
  padding-top: 0;
}

.vendi-step:last-child {
  border-bottom: none;
}

.vendi-step-number {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  opacity: 0.2;
  flex-shrink: 0;
  width: 56px;
  text-align: right;
}

.vendi-step-content {
  flex: 1;
  padding-top: 4px;
}

.vendi-step-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.vendi-step-desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.83rem;
  line-height: 1.75;
  opacity: 0.65;
}

.vendi-process-image {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 60px rgba(0, 0, 0, 0.4);
  align-self: center;
}

@media (min-width: 900px) {
  .vendi-process-image {
    flex: 1;
    position: sticky;
    top: calc(var(--nav-height) + 20px);
    border-radius: 16px;
  }
}

.vendi-process-image img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

/* ============================================
   VENDI — SERVICES SECTION
   ============================================ */
.vendi-services-section {
  background: var(--grain) repeat, var(--beige);
  background-blend-mode: multiply;
  color: var(--dark-text);
  padding: 80px 0;
}

@media (min-width: 768px) {
  .vendi-services-section {
    padding: 120px 0;
  }
}

.vendi-services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 48px;
}

@media (min-width: 640px) {
  .vendi-services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0 40px;
  }
}

.vendi-services-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.vendi-service-item {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(28, 26, 23, 0.1);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.88rem;
  line-height: 1.5;
}

.vendi-services-list:first-child .vendi-service-item:first-child {
  padding-top: 0;
}

.vendi-service-icon {
  font-size: 0.55rem;
  color: var(--accent);
  flex-shrink: 0;
  opacity: 0.8;
  margin-top: 2px;
}

/* ============================================
   VENDI — VALUATION FORM SECTION
   ============================================ */
.vendi-form-section {
  background: var(--grain) repeat, var(--olive);
  background-blend-mode: multiply;
  color: var(--white-text);
  padding: 80px 0;
  scroll-margin-top: var(--nav-height);
}

@media (min-width: 768px) {
  .vendi-form-section {
    padding: 120px 0;
  }
}

.vendi-form-layout {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

@media (min-width: 900px) {
  .vendi-form-layout {
    flex-direction: row;
    gap: 80px;
    align-items: flex-start;
  }
}

.vendi-form-intro {
  max-width: 440px;
}

@media (min-width: 900px) {
  .vendi-form-intro {
    flex: 0 0 36%;
    position: sticky;
    top: calc(var(--nav-height) + 20px);
  }
}

.vendi-form-intro .section-title {
  margin-bottom: 20px;
}

.vendi-form-body {
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.75;
  opacity: 0.65;
  margin-top: 16px;
}

/* Form */
.vendi-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.vendi-form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

@media (min-width: 560px) {
  .vendi-form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.vendi-form-row--privacy {
  grid-template-columns: 1fr;
}

.vendi-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vendi-field--wide {
  grid-column: 1 / -1;
}

.vendi-label {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--white-text);
  opacity: 0.55;
}

.vendi-input,
.vendi-select,
.vendi-textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(237, 232, 223, 0.35);
  color: var(--white-text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.88rem;
  padding: 10px 0;
  outline: none;
  transition: border-bottom-color 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
  width: 100%;
}

.vendi-input::placeholder,
.vendi-textarea::placeholder {
  color: var(--white-text);
  opacity: 0.3;
}

.vendi-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23EDE8DF' stroke-width='1.2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 18px;
}

.vendi-select option {
  background: #3A3F2E;
  color: var(--white-text);
}

.vendi-input:focus,
.vendi-select:focus,
.vendi-textarea:focus {
  border-bottom-color: var(--white-text);
}

.vendi-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

/* Privacy checkbox */
.vendi-privacy-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  line-height: 1.6;
  opacity: 0.65;
  cursor: pointer;
}

.vendi-checkbox {
  margin-top: 3px;
  flex-shrink: 0;
  appearance: auto;
  -webkit-appearance: auto;
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--accent);
}

.vendi-privacy-link {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Submit button */
.vendi-submit-btn {
  display: inline-block;
  padding: 16px 40px;
  background: var(--white-text);
  color: var(--olive);
  border: none;
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: background-color 0.4s var(--ease),
              color 0.4s var(--ease),
              opacity 0.4s var(--ease);
  width: auto;
  align-self: flex-start;
}

.vendi-submit-btn:hover {
  background: var(--beige);
  opacity: 1;
}

.vendi-submit-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

/* Confirmation message */
.vendi-form-confirm {
  margin-top: 24px;
  padding: 20px 24px;
  border: 1px solid rgba(237, 232, 223, 0.3);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white-text);
  background: rgba(237, 232, 223, 0.08);
  letter-spacing: 0.02em;
  outline: none;
}

/* ============================================
   VENDI — TESTIMONIALS SECTION
   ============================================ */
.vendi-testimonials-section {
  background: var(--grain) repeat, var(--beige);
  background-blend-mode: multiply;
  color: var(--dark-text);
  padding: 80px 0;
}

@media (min-width: 768px) {
  .vendi-testimonials-section {
    padding: 120px 0;
  }
}

.vendi-testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 48px;
}

@media (min-width: 768px) {
  .vendi-testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

.vendi-testimonial {
  padding: 32px;
  background: #EDE8DF;
  border-radius: 16px;
  box-shadow: 0 4px 28px rgba(28, 20, 10, 0.09), 0 1px 6px rgba(28, 20, 10, 0.05);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.vendi-testimonial:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 44px rgba(28, 20, 10, 0.14), 0 3px 10px rgba(28, 20, 10, 0.07);
}

.vendi-testimonial-stars {
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  opacity: 0.85;
}

.vendi-testimonial-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--dark-text);
  flex: 1;
}

.vendi-testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vendi-testimonial-name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.vendi-testimonial-city {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.75rem;
  opacity: 0.5;
  letter-spacing: 0.06em;
}

/* ============================================
   VENDI — NUMBERS SECTION (inherits section-numbers)
   ============================================ */
.vendi-numbers .section-title {
  text-align: center;
  margin-bottom: 56px;
}

/* ============================================
   VENDI — FAQ SECTION
   ============================================ */
.vendi-faq-section {
  background: var(--grain) repeat, var(--beige);
  background-blend-mode: multiply;
  color: var(--dark-text);
  padding: 80px 0;
}

@media (min-width: 768px) {
  .vendi-faq-section {
    padding: 120px 0;
  }
}

.vendi-faq {
  margin-top: 48px;
  max-width: 800px;
}

.vendi-faq-item {
  border-bottom: 1px solid rgba(28, 26, 23, 0.12);
}

.vendi-faq-item:first-child {
  border-top: 1px solid rgba(28, 26, 23, 0.12);
}

.vendi-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.92rem;
  line-height: 1.5;
  transition: opacity 0.2s ease;
  user-select: none;
}

/* Remove default marker in Chrome/Safari/Firefox */
.vendi-faq-question::-webkit-details-marker { display: none; }
.vendi-faq-question::marker { display: none; }

.vendi-faq-question:hover {
  opacity: 0.75;
}

.vendi-faq-icon {
  font-size: 0.55rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.35s var(--ease);
  opacity: 0.7;
}

.vendi-faq-item[open] .vendi-faq-icon {
  transform: rotate(45deg);
}

.vendi-faq-answer {
  padding: 0 0 24px 0;
}

.vendi-faq-answer p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.85rem;
  line-height: 1.75;
  opacity: 0.7;
  max-width: 660px;
}

/* ============================================
   VENDI — FINAL CTA (inherits section-cta / olive bg)
   ============================================ */
.vendi-final-cta .cta-btn {
  /* Inherits .cta-btn — white outline button on olive bg */
  text-decoration: none;
}

.vendi-final-cta .cta-btn:hover {
  color: var(--olive);
  opacity: 1;
}

/* ============================================
   RESPONSIVE MOBILE — max-width: 767px
   Tutte le modifiche mobile sono qui, desktop intatto.
   ============================================ */
@media (max-width: 767px) {

  /* ---- Variabile padding ridotto ---- */
  :root {
    --pad: 5vw;
  }

  /* ---- Prevenzione overflow orizzontale ---- */
  html, body {
    overflow-x: hidden;
  }

  /* ============================================
     NAVBAR mobile
     ============================================ */
  .navbar {
    padding: 22px var(--pad) 16px;
  }

  /* Logo ridotto su mobile — proporzionato e leggibile */
  .nav-logo .brand-mark__top {
    font-size: 1.4rem;
  }

  .nav-logo .brand-mark__sub {
    font-size: 0.55rem;
    letter-spacing: 0.28em;
    margin-top: 0.08em;
  }

  /* Il nav-toggle è già visibile (display: flex) di default —
     il desktop lo nasconde con display: none a 768px+ */

  /* ---- Contact Us: nascosto su mobile, appare nell'overlay ---- */
  .nav-contact {
    display: none;
  }

  /* ============================================
     HERO — HOME PAGE
     ============================================ */

  /* L'hero deve riempire l'intera prima schermata:
     usa 100svh (small viewport height) che esclude la barra
     dell'indirizzo mobile. Fallback su 100dvh e 100vh. */
  .home {
    min-height: 100svh;
    min-height: 100dvh;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .home > .container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 16px;
    padding-bottom: 32px;
  }

  /* Nasconde le linee decorative compositive su mobile */
  .home::before,
  .home-line {
    display: none;
  }

  .home-hero {
    flex-direction: column;
    gap: 20px;
    min-height: unset;
    margin-top: 0;
  }

  .hero-text {
    max-width: 100%;
  }

  /* Titolo più grande e leggibile su mobile */
  .hero-title {
    font-size: clamp(1.8rem, 7.5vw, 2.4rem);
    line-height: 1.15;
  }

  .hero-subtitle {
    font-size: clamp(2rem, 8.5vw, 2.8rem);
    margin-bottom: 16px;
  }

  .hero-body {
    font-size: 0.83rem;
    max-width: 100%;
  }

  /* Illustrazione più grande: 55vh garantisce presenza visiva
     senza mai sforare la viewport insieme al testo sopra */
  .hero-illustration {
    width: 100%;
    max-width: 100%;
    height: clamp(200px, 52vh, 340px);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
  }

  .hero-illustration img {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: bottom center;
  }

  /* ============================================
     CASE IN EVIDENZA
     ============================================ */
  .section-featured {
    padding: 72px 0 56px;
  }

  .section-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .section-subtitle {
    margin-bottom: 32px;
  }

  /* Single column già di default — assicura spacing corretto */
  .properties-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .property-card-body {
    padding: 16px 18px;
  }

  .property-name {
    font-size: 1.05rem;
  }

  .property-details {
    flex-wrap: wrap;
    gap: 10px 14px;
  }

  /* ============================================
     SEZIONE CTA — VENDI CON NOI
     ============================================ */
  .section-cta {
    padding: 48px 0;
  }

  .cta-layout {
    flex-direction: column;
    gap: 32px;
  }

  .cta-title {
    font-size: clamp(1.7rem, 6.5vw, 2.4rem);
  }

  .cta-strengths {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
  }

  /* Bottone full-width su mobile */
  .cta-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 16px 20px;
  }

  /* ============================================
     I NOSTRI NUMERI
     ============================================ */
  .section-numbers {
    padding: 48px 0;
  }

  /* 2 colonne già di default — va bene su mobile */
  .stats-grid {
    gap: 28px;
  }

  .stat-number {
    font-size: clamp(2.2rem, 9vw, 3.2rem);
  }

  /* ============================================
     PERCHE SCEGLIERCI
     ============================================ */
  .section-why {
    padding: 48px 0;
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .why-card {
    padding: 22px 20px;
  }

  /* ============================================
     FOOTER
     ============================================ */
  .site-footer {
    padding: 48px 0 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 36px;
  }

  /* ============================================
     COMPRA PAGE
     ============================================ */
  .compra {
    padding-bottom: 40px;
  }

  .compra-title {
    font-size: clamp(1.7rem, 7vw, 2.4rem);
  }

  .compra-content {
    flex-direction: column;
    gap: 28px;
  }

  /* Il features sidebar si legge dopo lo slider */
  .features-title {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
  }

  /* Bottone prezzo full-width */
  .price-btn {
    width: 100%;
    justify-content: center;
  }

  .compra-rooms {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 40px;
  }

  /* Search bar: colonna singola già di default */
  .search-bar {
    padding: 28px 0;
  }

  .search-title {
    font-size: clamp(1.3rem, 5.5vw, 1.8rem);
    margin-bottom: 20px;
  }

  .search-form {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Bottone cerca full-width */
  .search-btn {
    width: 100%;
    padding: 14px 20px;
  }

  /* Listings slider: card più strette su mobile (scroll orizzontale) */
  .section-listings {
    padding: 48px 0;
  }

  .listing-card {
    flex: 0 0 78vw;
  }

  /* ============================================
     VENDI PAGE
     ============================================ */
  .vendi-hero {
    padding: 36px 0 56px;
  }

  .vendi-hero-layout {
    flex-direction: column;
    gap: 32px;
  }

  .vendi-hero-text {
    max-width: 100%;
  }

  .vendi-hero-title {
    font-size: clamp(1.8rem, 7vw, 2.8rem);
  }

  .vendi-hero-ctas {
    flex-direction: column;
    gap: 12px;
  }

  /* Bottoni vendi hero full-width */
  .vendi-btn-primary,
  .vendi-btn-outline {
    display: block;
    width: 100%;
    text-align: center;
  }

  .vendi-hero-image {
    order: -1; /* Immagine sopra il testo su mobile */
    border-radius: 8px;
  }

  /* Process section */
  .vendi-process-section {
    padding: 56px 0;
  }

  .vendi-process-layout {
    flex-direction: column;
    gap: 40px;
  }

  .vendi-step {
    gap: 20px;
    padding: 24px 0;
  }

  .vendi-step-number {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    width: 40px;
  }

  /* Services section */
  .vendi-services-section {
    padding: 56px 0;
  }

  .vendi-services-grid {
    grid-template-columns: 1fr;
    margin-top: 32px;
  }

  /* Form valutazione */
  .vendi-form-section {
    padding: 56px 0;
  }

  .vendi-form-layout {
    flex-direction: column;
    gap: 36px;
  }

  .vendi-form-row {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
  }

  /* Bottone submit full-width */
  .vendi-submit-btn {
    width: 100%;
    align-self: stretch;
    text-align: center;
  }

  /* Testimonials */
  .vendi-testimonials-section {
    padding: 56px 0;
  }

  .vendi-testimonials-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 32px;
  }

  .vendi-testimonial {
    padding: 24px 20px;
  }

  /* FAQ */
  .vendi-faq-section {
    padding: 56px 0;
  }

  .vendi-faq {
    max-width: 100%;
  }

  /* ============================================
     CHI SIAMO PAGE
     ============================================ */
  .chi-siamo {
    min-height: auto;
    align-items: flex-start;
  }

  .chi-siamo > .container {
    flex-direction: column;
    gap: 36px;
    padding-top: 32px;
    padding-bottom: 40px;
  }

  .contact-title {
    font-size: clamp(2rem, 8vw, 3rem);
    margin-bottom: 32px;
  }

  .contact-image {
    aspect-ratio: 4 / 3;
    border-radius: 24px 70px 24px 70px;
  }

  /* ============================================
     LOGO BAR — home-logo
     ============================================ */
  .home-logo {
    margin-bottom: 14px;
  }

  .logo-line1 {
    font-size: 1.2rem;
  }

  /* ============================================
     CHI SIAMO — contact arrow su sfondo dark
     ============================================ */
  .contact-block {
    margin-bottom: 24px;
  }

  /* Dimensione freccia SVG leggibile su mobile */
  .contact-arrow {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }

  /* ============================================
     AUDIT: overflow orizzontale prevenzione globale
     ============================================ */
  .vendi-hero-image img,
  .hero-illustration img {
    max-width: 100%;
  }

  /* Evita che .section-listings fuoriesca lateralmente */
  .section-listings {
    overflow: hidden;
  }

  /* Coords che potrebbe strabordare su schermi piccoli */
  .contact-address .coords {
    font-size: 0.72rem;
    word-break: break-all;
  }

  /* ============================================
     AUDIT: vendi-form — spacing ridotto su schermi 390px
     ============================================ */
  .vendi-form-section {
    padding: 48px 0;
  }

  .vendi-form-layout {
    gap: 32px;
  }

  /* ============================================
     AUDIT: compra-header spacing
     ============================================ */
  .compra-header {
    padding: 16px 0 24px;
  }

  /* ============================================
     AUDIT: sezione listings — track non overflow
     ============================================ */
  .listings-track {
    margin-left: 0;
    padding-left: 0;
  }

}
