/* Foglio di stile del sito
   Impianto: pagina editoriale a bande piene (avorio, sabbia, notte) con contenuto centrato a 1280 px;
   titoli in Cormorant Garamond con l'accento in corsivo oro, testo e interfaccia in Jost, filetti sottili.
   Tutti i colori sono token: tema chiaro su :root, tema scuro nei due blocchi che seguono. */
/* font: file variabili nella cartella fonts (licenza SIL Open Font), un file per i caratteri di base e uno per quelli estesi */
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('../fonts/cormorant-garamond-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('../fonts/cormorant-garamond-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 300 700; font-display: swap; src: url('../fonts/cormorant-garamond-italic-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 300 700; font-display: swap; src: url('../fonts/cormorant-garamond-italic-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../fonts/jost-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../fonts/jost-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --bg: #FBFAF7;            /* avorio */
  --bg-alt: #F1EBE0;        /* sabbia */
  --fg: #141414;            /* nero */
  --fg-soft: #5A544C;       /* testo secondario */
  --gold: #9C7C45;          /* oro su fondo chiaro */
  --gold-soft: #C9A86E;     /* oro su fondo scuro */
  --gold-text: #7F6236;     /* oro più scuro per i testi piccoli su fondo chiaro (contrasto AA) */
  --line: rgba(20, 20, 20, .14);
  --line-strong: rgba(20, 20, 20, .5);
  --ph: #E9E1D3;            /* fondo dei segnaposto fotografici */
  --error: #9B2F23;
  --error-on-dark: #E38A7B; /* errori dei moduli sulle bande scure */
  --night: #141414;         /* bande scure, uguali nei due temi */
  --night-2: #1C1916;
  --night-fg: #F2EDE4;
  --night-fg-soft: #B9B1A5;
  --night-line: rgba(242, 237, 228, .16);
  --logo-light-vis: block;  /* intestazione piena: logo per fondo chiaro */
  --logo-dark-vis: none;
  --font-display: 'Cormorant Garamond', Cormorant, Garamond, 'Times New Roman', serif;
  --font-body: 'Jost', Futura, 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --max: 1280px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141414; --bg-alt: #1C1916; --fg: #F2EDE4; --fg-soft: #B9B1A5;
    --gold: #C9A86E; --gold-soft: #C9A86E; --gold-text: #C9A86E;
    --line: rgba(242, 237, 228, .16); --line-strong: rgba(242, 237, 228, .45);
    --ph: #262220; --error: #E38A7B; --error-on-dark: #E38A7B;
    --night: #0E0D0C; --night-2: #171513;
    --logo-light-vis: none; --logo-dark-vis: block;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141414; --bg-alt: #1C1916; --fg: #F2EDE4; --fg-soft: #B9B1A5;
  --gold: #C9A86E; --gold-soft: #C9A86E; --gold-text: #C9A86E;
  --line: rgba(242, 237, 228, .16); --line-strong: rgba(242, 237, 228, .45);
  --ph: #262220; --error: #E38A7B; --error-on-dark: #E38A7B;
  --night: #0E0D0C; --night-2: #171513;
  --logo-light-vis: none; --logo-dark-vis: block;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 70;
  background: var(--night);
}
body.hdr-solid::before { background: var(--bg); }
body.menu-open::before { background: var(--night); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-weight: 400; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.hero :focus-visible, .header:not(.is-solid) :focus-visible { outline-color: var(--night-fg); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#main:focus, .section:focus, .hero__title:focus, .villa-view h1:focus, .collection h1:focus, .legal-view h1:focus, .result h3:focus { outline: none; }
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px;
  background: var(--fg); color: var(--bg); text-decoration: none; font-size: 13px; letter-spacing: .1em;
}
.skip:focus { top: 16px; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * 72px);
  margin-inline: auto;
  padding-left: max(clamp(20px, 5vw, 72px), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(20px, 5vw, 72px), env(safe-area-inset-right, 0px));
}

/* tipografia ricorrente */
.kicker {
  display: flex; align-items: center; gap: 14px; margin: 0;
  font: 500 11px/1 var(--font-body); letter-spacing: .24em; text-transform: uppercase; color: var(--gold-text);
}
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; flex: none; }
.title {
  margin: 18px 0 0; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(34px, 4.2vw, 58px); line-height: 1.08; letter-spacing: -.005em; text-wrap: balance;
}
.title em { font-style: italic; color: var(--gold); }
.lede { margin: 0; font: 300 clamp(17.5px, 1.45vw, 21px)/1.6 var(--font-body); max-width: 58ch; }
.caps {
  font: 500 10.5px/1.3 var(--font-body); letter-spacing: .22em; text-transform: uppercase; color: var(--fg-soft);
}

/* pulsanti */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 50px; padding: 0 30px;
  font: 500 11.5px/1.3 var(--font-body); letter-spacing: .22em; text-transform: uppercase; text-decoration: none; text-align: center;
  color: inherit; background: transparent; border: 1px solid currentColor; border-radius: 0; cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn:hover { background: color-mix(in srgb, currentColor 9%, transparent); }
.btn--solid { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn--solid:hover { background: var(--gold); border-color: var(--gold); color: var(--night); }
.hero .btn--solid, .band--night .btn--solid { background: var(--night-fg); color: var(--night); border-color: var(--night-fg); }
.hero .btn--solid:hover, .band--night .btn--solid:hover { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--night); }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }

/* ---------- intestazione ---------- */
.header {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 50;
  color: var(--night-fg);
  transition: background .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 86px;
}
.header .logo { display: block; flex: none; }
.header .logo img { height: 34px; width: auto; }
.logo--on-dark { display: block; }
.logo--on-light { display: none; }
.header.is-solid {
  color: var(--fg);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header.is-solid .logo--on-dark { display: var(--logo-dark-vis); }
.header.is-solid .logo--on-light { display: var(--logo-light-vis); }
.nav { display: flex; gap: clamp(20px, 2.6vw, 40px); }
.nav a, .lang button, .menu-btn {
  font: 500 11.5px/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: inherit;
}
.nav a { position: relative; padding: 6px 0; white-space: nowrap; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }
.header__right { display: flex; align-items: center; gap: clamp(16px, 2vw, 32px); }
.lang { display: flex; align-items: center; gap: 2px; }
.lang button { background: none; border: 0; padding: 6px 7px; cursor: pointer; color: var(--night-fg-soft); border-bottom: 1px solid transparent; }
.lang button:hover { color: var(--night-fg); }
.lang button[aria-current="true"] { color: var(--night-fg); border-bottom-color: var(--gold-soft); }
.header.is-solid .lang button { color: var(--fg-soft); }
.header.is-solid .lang button:hover, .header.is-solid .lang button[aria-current="true"] { color: var(--fg); }
.header.is-solid .lang button[aria-current="true"] { border-bottom-color: var(--gold); }
.lang__sep { opacity: .4; font-size: 11px; }
.menu-btn { display: none; align-items: center; gap: 10px; background: none; border: 0; padding: 8px 0; cursor: pointer; }
.menu-btn__lines { width: 22px; height: 10px; display: flex; flex-direction: column; justify-content: space-between; }
.menu-btn__lines i { display: block; height: 1px; background: currentColor; }

/* menu a tutto schermo (telefono e tablet) */
.menu {
  position: fixed; inset: 0; z-index: 60; background: var(--night); color: var(--night-fg);
  display: flex; flex-direction: column;
  padding-top: calc(env(safe-area-inset-top, 0px) + 20px); padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 32px);
  padding-left: max(clamp(20px, 5vw, 72px), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(20px, 5vw, 72px), env(safe-area-inset-right, 0px));
  overflow-y: auto;
}
.menu__top { display: flex; align-items: center; justify-content: space-between; min-height: 66px; }
.menu__top img { height: 30px; width: auto; }
.menu__close { background: none; border: 0; color: inherit; cursor: pointer; padding: 8px 0; }
.menu__nav { display: grid; gap: 6px; margin: auto 0; padding: 40px 0; }
.menu__nav a {
  font: 300 clamp(36px, 9vw, 54px)/1.2 var(--font-display); text-decoration: none; color: var(--night-fg);
  padding: 4px 0; border-bottom: 1px solid var(--night-line);
}
.menu__nav a:hover { color: var(--gold-soft); }
.menu__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; color: var(--night-fg-soft); }
.menu .lang button[aria-current="true"] { color: var(--gold-soft); }
.menu .caps { color: var(--night-fg-soft); }

/* ---------- copertina ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(600px, 92vh, 960px); display: flex; align-items: flex-end;
  background: var(--night); color: var(--night-fg);
}
.hero__media { position: absolute; inset: 0; z-index: -2; margin: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.hero__media .ph { width: 100%; height: 100%; background: var(--night-2); color: var(--night-fg-soft); }
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(14, 13, 12, .5) 0%, rgba(14, 13, 12, .32) 42%, rgba(14, 13, 12, 0) 76%),
    linear-gradient(180deg, rgba(14, 13, 12, .64) 0%, rgba(14, 13, 12, .22) 30%, rgba(14, 13, 12, .44) 60%, rgba(14, 13, 12, .9) 100%);
}
.hero .wrap { padding-block: 190px 72px; }
.hero__content { max-width: 840px; animation: rise 1.1s var(--ease) both; }
.hero__kicker { color: var(--night-fg); }
.hero__kicker::before { background: var(--gold-soft); }
.header:not(.is-solid) .lang button { color: var(--night-fg); }
.hero__title {
  margin: 24px 0 26px; font: 300 clamp(44px, 6.6vw, 94px)/1.02 var(--font-display); letter-spacing: -.012em; text-wrap: balance;
}
.hero__title em { font-style: italic; font-weight: 400; color: var(--gold-soft); }
.hero__text { margin: 0 0 38px; font: 300 clamp(17px, 1.4vw, 20px)/1.6 var(--font-body); max-width: 54ch; color: var(--night-fg); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px 18px; }
.hero__scroll {
  position: absolute; bottom: 44px; z-index: 1;
  right: max(clamp(20px, 5vw, 72px), env(safe-area-inset-right, 0px));
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  color: var(--night-fg-soft); font: 500 10px/1 var(--font-body); letter-spacing: .3em; text-transform: uppercase;
}
.hero__scroll span { writing-mode: vertical-rl; }
.hero__scroll i { display: block; width: 1px; height: 48px; background: currentColor; opacity: .7; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- sezioni ---------- */
.section { padding-block: clamp(72px, 9vw, 136px); scroll-margin-top: 70px; }
.band--sand { background: var(--bg-alt); }
.band--night { background: var(--night); color: var(--night-fg); }
.band--night .kicker, .band--night .title em { color: var(--gold-soft); }
.band--night .caps { color: var(--night-fg-soft); }
.sec-head {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 28px 72px; align-items: end;
  margin-bottom: clamp(44px, 5vw, 72px);
}

/* presentazione */
.intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px clamp(48px, 7vw, 112px); align-items: start; }
.intro__media { margin: 52px 0 0; max-width: 440px; aspect-ratio: 4 / 5; overflow: hidden; position: relative; background: var(--ph); }
.intro__media img, .intro__media .ph { width: 100%; height: 100%; object-fit: cover; }
.frame::after {
  content: ""; position: absolute; inset: 16px; pointer-events: none;
  border: 1px solid color-mix(in srgb, var(--gold-soft) 75%, transparent);
}
.pillars {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px;
  margin-top: 56px; padding-top: 44px; border-top: 1px solid var(--line);
}
.pillar { min-width: 0; }
.pillar h3 { margin: 0 0 12px; font: 500 24px/1.2 var(--font-display); }
.pillar p { margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--fg-soft); }

/* ville */
.villas-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px 48px; }
.villa-card { display: block; min-width: 0; color: inherit; text-decoration: none; }
.villa-card__media { margin: 0; aspect-ratio: 3 / 2; overflow: hidden; background: var(--ph); }
.villa-card__media img, .villa-card__media .ph { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.villa-card:hover .villa-card__media img { transform: scale(1.035); }
.villa-card__body { display: grid; gap: 9px; padding-top: 22px; }
.villa-card__area { margin: 0; font: 500 11px/1.3 var(--font-body); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-text); }
.villa-card__name { margin: 0; font: 500 clamp(26px, 2.4vw, 32px)/1.15 var(--font-display); transition: color .3s var(--ease); }
.villa-card:hover .villa-card__name { color: var(--gold); }
.villa-card__facts { margin: 0; font-size: 15px; color: var(--fg-soft); }
.villa-card__facts i { font-style: normal; margin: 0 9px; color: var(--gold); }
.villa-card__cta {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 8px;
  font: 500 11px/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase;
}
.villa-card__cta .arrow { transition: transform .35s var(--ease); }
.villa-card:hover .arrow { transform: translateX(6px); }
.villa-card--small .villa-card__name { font-size: 24px; }
.villa-card--small .villa-card__body { padding-top: 16px; gap: 6px; }

/* segnaposto fotografico */
.ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: var(--ph); color: var(--fg-soft); text-align: center; padding: 24px;
}
.ph__mark { width: 56px; height: 56px; opacity: .6; }
.ph__text { font: 500 10.5px/1.5 var(--font-body); letter-spacing: .22em; text-transform: uppercase; }

/* scheda villa */
.villa-view { padding-top: 132px; padding-bottom: clamp(72px, 9vw, 136px); }
.back {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px; text-decoration: none;
  font: 500 11px/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--fg-soft);
}
.back, .footer__link, .owners-strip__link, .map-card .villa-card__cta { min-height: 24px; padding-block: 8px; }
.back:hover { color: var(--gold-text); }
.villa-hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px clamp(40px, 6vw, 96px); align-items: start; }
.villa-hero__media { margin: 0; position: sticky; top: 110px; }
.villa-hero__media .frame { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ph); }
.villa-hero__media img, .villa-hero__media .ph { width: 100%; height: 100%; object-fit: cover; }
.villa-hero__media figcaption { margin-top: 12px; font-size: 13px; letter-spacing: .06em; color: var(--fg-soft); }
.villa-hero__body .title { font-size: clamp(38px, 4.6vw, 64px); }
.tagline { margin: 18px 0 28px; font: italic 400 clamp(22px, 2vw, 27px)/1.3 var(--font-display); color: var(--gold-text); }
.prose p { margin: 0 0 18px; font-size: 17px; line-height: 1.75; max-width: 60ch; }
.facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 24px;
  margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line);
}
.fact { min-width: 0; }
.fact__value { font: 400 34px/1 var(--font-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fact__value small { font-size: 16px; letter-spacing: .02em; }
.fact__label { margin-top: 8px; font: 500 10.5px/1.3 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--fg-soft); }
.villa-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 64px; margin-top: 56px; padding-top: 44px; border-top: 1px solid var(--line); }
.h-small { margin: 0 0 22px; font: 500 12px/1 var(--font-body); letter-spacing: .24em; text-transform: uppercase; color: var(--gold-text); }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.list li { position: relative; padding-left: 26px; font-size: 16px; line-height: 1.5; }
.list li::before { content: ""; position: absolute; left: 0; top: .8em; width: 14px; height: 1px; background: var(--gold); }
.list--2col { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.villa-location { margin-top: 48px; }
.villa-location p { margin: 0; font-size: 17px; line-height: 1.75; }
.villa-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
  margin-top: 64px; padding: 40px clamp(24px, 4vw, 56px); background: var(--bg-alt);
}
.villa-cta p { margin: 0; font: italic 400 24px/1.3 var(--font-display); }
.more { margin-top: clamp(64px, 8vw, 112px); }
.more__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; margin-top: 28px; }

/* servizi */
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service { min-width: 0; padding: 36px 32px 40px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service svg { width: 30px; height: 30px; margin-bottom: 22px; fill: none; stroke: var(--gold); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { margin: 0 0 10px; font: 500 23px/1.2 var(--font-display); }
.service p { margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--fg-soft); }

/* proprietari */
.owners { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 48px clamp(40px, 7vw, 112px); align-items: center; }
.owners__media { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--night-2); }
.owners__media img, .owners__media .ph { width: 100%; height: 100%; object-fit: cover; }
.owners__media .ph { background: var(--night-2); color: var(--night-fg-soft); }
.owners .lede { color: var(--night-fg); }
.owners .btn { margin-top: 36px; }

/* contatti */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px clamp(40px, 7vw, 112px); align-items: start; }
.direct { display: grid; gap: 24px; margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--line); }
.direct__item { display: grid; gap: 8px; }
.direct__value { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font: 400 22px/1.2 var(--font-display); }
.direct__value a { text-decoration: none; }
.direct__value a:hover { color: var(--gold-text); }
.copy-btn {
  font: 500 10px/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase;
  border: 1px solid var(--line-strong); background: transparent; color: var(--fg-soft); padding: 8px 12px; cursor: pointer;
  transition: color .3s, border-color .3s;
}
.copy-btn:hover { color: var(--gold-text); border-color: var(--gold-text); }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font: 500 10.5px/1.3 var(--font-body); letter-spacing: .22em; text-transform: uppercase; color: var(--fg-soft); }
.field input, .field select, .field textarea {
  width: 100%; margin: 0; padding: 8px 0 10px; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0;
  background: transparent; color: var(--fg); font: 400 17px/1.5 var(--font-body);
  transition: border-color .3s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--gold); }
.field input::placeholder, .field textarea::placeholder { color: var(--fg-soft); opacity: .9; }
.field .req { color: var(--gold-text); }
.form__required { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--fg-soft); }
.field textarea { min-height: 120px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 28px; cursor: pointer;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%239C7C45' stroke-width='1.2'/></svg>") no-repeat right center;
}
.form__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin-top: 8px; }
.form__note { margin: 0; font-size: 13px; line-height: 1.55; color: var(--fg-soft); max-width: 56ch; }
.form__note a { color: inherit; text-underline-offset: 3px; white-space: nowrap; }
.form__note a:hover { color: var(--gold-text); }
.form--dark .form__note a:hover { color: var(--gold-soft); }
.field [aria-invalid="true"] { border-bottom: 2px solid var(--error); }
.form--dark .field [aria-invalid="true"] { border-bottom-color: var(--error-on-dark); }
.form__error { grid-column: 1 / -1; margin: 0; font-size: 14px; color: var(--error); }
.result { display: grid; gap: 18px; padding: 32px clamp(20px, 3vw, 40px); background: var(--bg-alt); scroll-margin-top: 110px; }
.result h3 { margin: 0; font: 400 32px/1.1 var(--font-display); }
.result p { margin: 0; color: var(--fg-soft); font-size: 15.5px; }
.result pre { margin: 0; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); white-space: pre-wrap; word-break: break-word; font: 400 15px/1.6 var(--font-body); }
.result__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* piè di pagina */
.footer { background: var(--night); color: var(--night-fg-soft); padding-block: clamp(64px, 7vw, 96px) 32px; font-size: 14.5px; border-top: 1px solid var(--night-line); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr) minmax(0, 1.15fr) minmax(0, 1.05fr); gap: 44px 48px; align-items: start; }
.footer__brand img { display: block; width: 150px; height: auto; }
.footer__tag { margin: 28px 0 0; font: italic 400 26px/1.3 var(--font-display); color: var(--gold-soft); }
.footer__about { margin: 12px 0 0; max-width: 34ch; line-height: 1.65; }
.footer .footer__head { margin: 0 0 18px; font: 500 10.5px/1.3 var(--font-body); letter-spacing: .22em; text-transform: uppercase; color: var(--night-fg); }
.footer .footer__head--gap { margin-top: 34px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer a { color: inherit; text-decoration: none; transition: color .3s var(--ease); }
.footer a:hover { color: var(--gold-soft); }
.footer__contact li { display: grid; gap: 5px; }
.footer__label { font: 500 10px/1.3 var(--font-body); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-soft); }
.footer__contact a, .footer__contact span + span { color: var(--night-fg); font-size: 15.5px; overflow-wrap: anywhere; }
.footer__contact a:hover { color: var(--gold-soft); }
.footer .lang { justify-content: flex-start; margin-left: -7px; }
.footer .lang button[aria-current="true"] { color: var(--gold-soft); }
.footer__owners { margin: 0 0 14px; line-height: 1.6; max-width: 28ch; }
.footer__link { display: inline-flex; align-items: center; gap: 10px; font: 500 11px/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--night-fg); }
.footer__link .arrow { transition: transform .35s var(--ease); }
.footer__link:hover .arrow { transform: translateX(5px); }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px;
  margin-top: clamp(48px, 5vw, 64px); padding-top: 22px; border-top: 1px solid var(--night-line); font-size: 12.5px; letter-spacing: .04em;
}
.footer__bottom p { margin: 0; }
.footer .footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* ---------- adattamento ---------- */
@media (max-width: 1080px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .more__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1180px) { /* con sei voci di menu, sotto questa larghezza si passa al menu a tutto schermo */
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 960px) {
  .intro, .owners, .contact, .sec-head, .villa-hero { grid-template-columns: minmax(0, 1fr); }
  .villa-hero__media { position: static; }
  .intro__media { margin-top: 36px; }
  .hero__scroll { display: none; }
  .hero .wrap { padding-block: 150px 56px; }
}
@media (max-width: 760px) {
  .villas-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .pillars { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .villa-cols { grid-template-columns: minmax(0, 1fr); }
  .more__grid { grid-template-columns: minmax(0, 1fr); }
  .header__inner { min-height: 74px; }
  .header .logo img { height: 28px; }
}
@media (max-width: 520px) { /* sul telefono le lingue restano nel menu a tutto schermo, così il logo e il pulsante Menu ci stanno */
  .header__right > .lang { display: none; }
}
@media (max-width: 640px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .services-grid { grid-template-columns: minmax(0, 1fr); }
  .service { padding: 28px 22px 32px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .list--2col { grid-template-columns: minmax(0, 1fr); }
  .hero { min-height: 0; }
  .hero .wrap { padding-block: 140px 48px; }
  .villa-view { padding-top: 110px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- mappa delle ville ---------- */
.map-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: -16px 0 36px; }
.chip {
  font: 500 10.5px/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase;
  padding: 12px 16px; border: 1px solid var(--line-strong); background: transparent; color: var(--fg-soft); cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.chip:hover { color: var(--fg); border-color: var(--fg); }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.map-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px clamp(32px, 5vw, 72px); align-items: start; }
.map-box { position: relative; min-width: 0; }
.map-canvas { position: relative; border: 1px solid var(--line); background: var(--bg); }
.map-stage svg { display: block; width: 100%; height: auto; }
.map-island { fill: var(--bg-alt); stroke: var(--gold); stroke-width: 1.3; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.map-vedra { fill: var(--gold); }
.map-pins { position: absolute; inset: 0; }
.map-label {
  position: absolute; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 7px;
  font: 500 10px/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--fg-soft);
  pointer-events: none; white-space: nowrap;
}
.map-label i { display: block; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); flex: none; }
.map-label--town b { font-weight: 500; color: var(--fg); font-size: 11px; }
.map-label b { font-weight: 500; text-shadow: 0 0 2px var(--bg), 0 0 4px var(--bg), 0 0 6px var(--bg); }
.map-label--left { transform: translate(-100%, -50%); flex-direction: row-reverse; }
.map-label--islet { transform: translate(-50%, 8px); }
.map-label--islet i { display: none; }
.map-label--airport { transform: translate(-50%, 6px); }
.map-label--airport i { display: none; }
.pin {
  position: absolute; transform: translate(-50%, -50%); width: 36px; height: 36px; z-index: 2;
  border: 0; background: transparent; padding: 0; cursor: pointer; display: grid; place-items: center; color: inherit;
}
.pin__dot {
  width: 12px; height: 12px; border-radius: 50%; background: var(--fg);
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--gold);
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.pin:hover .pin__dot, .pin.is-hover .pin__dot { transform: scale(1.25); background: var(--gold); }
.pin.is-active { z-index: 3; }
.pin.is-active .pin__dot { transform: scale(1.4); background: var(--gold); }
.pin:focus-visible { outline: none; }
.pin:focus-visible .pin__dot { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--gold); }
.pin__name {
  position: absolute; left: 50%; top: 100%; transform: translate(-50%, 0);
  padding: 5px 9px; background: var(--bg); border: 1px solid var(--line); color: var(--fg);
  font: 500 14px/1 var(--font-display); letter-spacing: .03em; white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity .25s var(--ease);
}
.pin:hover .pin__name, .pin.is-hover .pin__name, .pin:focus-visible .pin__name { opacity: 1; }
.pin--static { pointer-events: none; }
.pin--static .pin__dot { background: var(--gold); }
.map-card {
  position: absolute; z-index: 5; width: 290px; background: var(--bg); border: 1px solid var(--line);
  box-shadow: 0 18px 48px rgba(14, 13, 12, .16);
}
.map-card__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--ph); }
.map-card__media img, .map-card__media .ph { width: 100%; height: 100%; object-fit: cover; }
.map-card__body { display: grid; gap: 6px; padding: 16px 18px 18px; }
.map-card__name { margin: 0; font: 500 23px/1.15 var(--font-display); }
.map-card__dist { margin: 4px 0 2px; font-size: 13px; line-height: 1.55; color: var(--fg-soft); }
.map-card__close {
  position: absolute; top: 8px; right: 8px; z-index: 2; width: 32px; height: 32px; border-radius: 50%; border: 0;
  background: var(--bg); color: var(--fg); font-size: 22px; line-height: 1; cursor: pointer; display: grid; place-items: center;
}
.map-credit { margin: 10px 0 0; font-size: 11px; letter-spacing: .04em; color: var(--fg-soft); }
.map-credit a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); }
.map-credit a:hover { color: var(--fg); }
.map-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.map-item {
  width: 100%; text-align: left; background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: 16px 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center;
  cursor: pointer; color: inherit; text-decoration: none; font: inherit; transition: background .25s var(--ease);
}
.map-item:hover, .map-item.is-active { background: var(--bg-alt); }
.map-item.is-active { box-shadow: inset 3px 0 0 var(--gold); }
.map-item__name { font: 500 21px/1.15 var(--font-display); }
.map-item__meta { grid-column: 1; font-size: 13px; line-height: 1.4; color: var(--fg-soft); }
.map-item__area { grid-column: 2; grid-row: 1 / 3; text-align: right; font: 500 10px/1.3 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-text); }
.map-empty { padding: 24px 14px; font-size: 15px; color: var(--fg-soft); }
.villa-location__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 48px; align-items: start; }
.villa-location__grid--text { grid-template-columns: minmax(0, 1fr); max-width: 70ch; }
.villa-location__grid p { max-width: 60ch; }
.mini-map { position: relative; max-width: 380px; border: 1px solid var(--line); background: var(--bg); }
.mini-map svg { display: block; width: 100%; height: auto; }

/* ---------- proprietari: vantaggi, passaggi, modulo ---------- */
.owners__benefits {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--night-line); border-left: 1px solid var(--night-line);
}
.benefit { min-width: 0; padding: 28px 24px 32px; border-right: 1px solid var(--night-line); border-bottom: 1px solid var(--night-line); }
.benefit h2 { margin: 0 0 10px; font: 500 22px/1.2 var(--font-display); color: var(--night-fg); }
.benefit p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--night-fg-soft); }
.owners__bottom { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px clamp(40px, 6vw, 96px); margin-top: clamp(56px, 7vw, 96px); align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; font-size: 16.5px; line-height: 1.55; color: var(--night-fg); }
.steps__n { font: 400 30px/1 var(--font-display); color: var(--gold-soft); font-variant-numeric: tabular-nums; }
.title--sm { font-size: clamp(30px, 3.4vw, 44px); }
.form__intro { margin: 18px 0 28px; font-size: 16px; line-height: 1.6; color: var(--night-fg-soft); max-width: 56ch; }
.owners__form { scroll-margin-top: 110px; }
.form--dark .field label, .form--dark .form__note, .form--dark .form__required { color: var(--night-fg-soft); }
.form--dark .field .req { color: var(--gold-soft); }
.form--dark .field input, .form--dark .field select, .form--dark .field textarea { color: var(--night-fg); border-bottom-color: rgba(242, 237, 228, .45); }
.form--dark .field input:focus, .form--dark .field select:focus, .form--dark .field textarea:focus { border-bottom-color: var(--gold-soft); }
.form--dark .field input::placeholder, .form--dark .field textarea::placeholder { color: var(--night-fg-soft); }
.form--dark .field select { color-scheme: dark; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23C9A86E' stroke-width='1.2'/></svg>"); }
.form--dark .field select option { color: var(--night-fg); background: var(--night); }
.form--dark .form__error { color: var(--error-on-dark); }
.band--night .result { background: var(--night-2); color: var(--night-fg); }
.band--night .result p { color: var(--night-fg-soft); }
.band--night .result pre { border-color: var(--night-line); color: var(--night-fg); }
.band--night .result .caps { color: var(--gold-soft); }
.band--night .kicker { color: var(--gold-soft); }

@media (max-width: 1080px) {
  .owners__benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .map-layout, .owners__bottom, .villa-location__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1100px) {
  .map-card { position: relative; width: auto; margin-top: 16px; box-shadow: none; scroll-margin-top: 96px; }
}
@media (max-width: 760px) {
  .map-label--minor { display: none; }
  .pin { width: 42px; height: 42px; }
  .map-item { grid-template-columns: minmax(0, 1fr); }
  .map-item__area { grid-column: 1; grid-row: auto; text-align: left; }
}
@media (max-width: 640px) {
  .owners__benefits { grid-template-columns: minmax(0, 1fr); }
  .benefit { padding: 24px 20px 28px; }
}

/* ---------- collezione: pagina a parte con filtri ---------- */
.villas-more { display: flex; justify-content: center; margin-top: clamp(40px, 5vw, 64px); }
.collection { padding-top: 0; padding-bottom: clamp(72px, 9vw, 136px); }
.filters { margin: clamp(32px, 4vw, 48px) 0 clamp(36px, 4vw, 52px); }
.filters__groups { display: flex; flex-wrap: wrap; gap: 22px clamp(28px, 3vw, 48px); }
.filter-group { display: grid; gap: 10px; min-width: 0; }
.filter-group__label { font: 500 10.5px/1.3 var(--font-body); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-text); }
.filter-group__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filters__bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line);
}
.filters__count { margin: 0; font: italic 400 22px/1.3 var(--font-display); }
.filters__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.filters__clear {
  background: none; border: 0; padding: 6px 0; cursor: pointer; color: var(--fg-soft);
  font: 500 10.5px/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; border-bottom: 1px solid var(--line-strong);
}
.filters__clear:hover { color: var(--gold-text); border-color: var(--gold-text); }
.sort { display: inline-flex; align-items: center; gap: 12px; }
.sort .caps { margin: 0; }
.sort select {
  margin: 0; padding: 6px 26px 6px 0; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; background: transparent;
  color: var(--fg); font: 400 15.5px/1.4 var(--font-body); cursor: pointer; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%239C7C45' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 4px center;
}
.sort select:focus { border-bottom-color: var(--gold); outline: none; }
.sort select:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.villas-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 32px; }
.villas-grid--3 .villa-card__name { font-size: clamp(24px, 1.85vw, 27px); }
.villas-grid--3 .villa-card { animation: dv-rise .55s var(--ease) both; }
@keyframes dv-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.col-empty { padding: clamp(40px, 5vw, 64px) clamp(24px, 4vw, 56px); border: 1px solid var(--line); text-align: center; }
.col-empty p { margin: 0 0 26px; font: italic 400 24px/1.3 var(--font-display); }
.col-empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.collection__foot { margin-top: clamp(64px, 8vw, 112px); }
.collection__foot p { max-width: 40ch; }
.collection__foot-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 1080px) {
  .villas-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 28px; }
}
@media (max-width: 760px) {
  .filters__groups { gap: 20px; }
  .filter-group { width: 100%; }
}
@media (max-width: 640px) {
  .villas-grid--3 { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .filters__bar { align-items: flex-start; flex-direction: column; }
}

/* ---------- proprietari: pagina a parte e rimandi discreti ---------- */
.owners-link {
  display: inline-flex; align-items: center; white-space: nowrap; text-decoration: none; color: inherit;
  padding: 6px 0 6px clamp(14px, 1.6vw, 24px); border-left: 1px solid color-mix(in srgb, currentColor 35%, transparent);
  font: 500 11px/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; opacity: .85;
  transition: color .3s var(--ease), opacity .3s var(--ease);
}
.owners-link:hover, .owners-link:focus-visible { opacity: 1; color: var(--gold-soft); }
.header.is-solid .owners-link:hover, .header.is-solid .owners-link:focus-visible { color: var(--gold-text); }
.menu__owners {
  display: inline-flex; align-items: center; gap: 12px; margin: -12px 0 32px; padding: 14px 0; text-decoration: none;
  font: 500 12px/1 var(--font-body); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-soft);
}
.menu__owners .arrow { transition: transform .35s var(--ease); }
.menu__owners:hover .arrow { transform: translateX(5px); }
.owners-view { padding-top: 132px; padding-bottom: clamp(72px, 9vw, 136px); }
.owners-view .back { color: var(--night-fg-soft); }
.owners-view .back:hover { color: var(--gold-soft); }
.owners-view .owners { margin-top: 8px; }
.owners-view .title { color: var(--night-fg); }
.owners-view .owners .lede { max-width: 52ch; }
.owners__form:focus, .owners-view h1:focus, .collection h1:focus { outline: none; }
.owners-strip { background: var(--bg-alt); border-top: 1px solid var(--line); }
.owners-strip__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-block: 28px; }
.owners-strip__text { margin: 0; font: italic 400 clamp(20px, 1.8vw, 24px)/1.3 var(--font-display); }
.owners-strip__link {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg);
  font: 500 11px/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; transition: color .3s var(--ease);
}
.owners-strip__link .arrow { transition: transform .35s var(--ease); }
.owners-strip__link:hover { color: var(--gold-text); }
.owners-strip__link:hover .arrow { transform: translateX(5px); }
@media (max-width: 1180px) {
  .owners-link { display: none; }
}
@media (max-width: 640px) {
  .owners-view { padding-top: 110px; }
}

/* ---------- collezione: ingresso a tutta larghezza ---------- */
.collection__hero { padding: clamp(150px, 18vh, 190px) 0 clamp(52px, 6vw, 88px); }
.collection__hero-inner { max-width: calc(var(--max) + 2 * 72px); }
.collection__hero .title { max-width: 18ch; font-size: clamp(40px, 5.2vw, 72px); }
.collection__hero .lede { margin-top: 26px; max-width: 56ch; color: var(--night-fg); }
.collection__count { margin: 30px 0 0; color: var(--gold-soft); }
.collection__rule { display: block; width: 72px; height: 1px; margin-top: 22px; background: var(--gold-soft); transform-origin: left; }
.collection.is-entering .collection__hero-inner > * { animation: rise .9s var(--ease) both; }
.collection.is-entering .collection__hero-inner > :nth-child(2) { animation-delay: .08s; }
.collection.is-entering .collection__hero-inner > :nth-child(3) { animation-delay: .16s; }
.collection.is-entering .collection__hero-inner > :nth-child(4) { animation-delay: .24s; }
.collection.is-entering .collection__rule { animation: dv-draw 1.1s var(--ease) .35s both; }
@keyframes dv-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.collection__body { padding-top: clamp(8px, 2vw, 24px); }
.collection__body .filters__groups { gap: 24px clamp(28px, 3vw, 56px); }
@media (max-width: 640px) {
  .collection__hero { padding-top: 128px; }
}

/* ---------- piccoli aiuti di impaginazione (al posto degli stili scritti nella pagina) ---------- */
.lede--gap { margin-top: 26px; }
.caps--flush { margin: 0; }
.h-small--facts, .h-small--gallery { margin-top: 56px; }
.facts--flush { margin-top: 0; }
.i18n-pending [data-i18n] { visibility: hidden; } /* finché la pagina non è nella lingua del visitatore */

/* ---------- ville: etichetta degli esempi, licenza turistica, elenco vuoto ---------- */
.villa-card__media, .map-card__media { position: relative; }
.tag-sample {
  position: absolute; left: 12px; top: 12px; z-index: 1; padding: 7px 10px; background: var(--night); color: var(--night-fg);
  font: 500 10px/1 var(--font-body); letter-spacing: .22em; text-transform: uppercase;
}
.tag-sample--inline { position: static; display: inline-block; margin-right: 6px; vertical-align: 1px; }
.sample-note { margin: 18px 0 0; max-width: 52ch; font-size: 14.5px; line-height: 1.6; color: var(--fg-soft); }
.villa-card__licence, .villa-licence {
  margin: 0; font: 500 10.5px/1.4 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--fg-soft);
}
.villa-licence { margin-top: 26px; }
.villa-licence span { margin-right: 6px; color: var(--gold-text); }
.villas-empty {
  margin: 0; padding: clamp(32px, 4vw, 56px) clamp(24px, 4vw, 56px); border: 1px solid var(--line-strong); text-align: center;
  font: italic 400 24px/1.35 var(--font-display);
}
.villas-empty a { display: inline-block; margin-left: 10px; padding-block: 8px; font: 500 11px/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; }
.villa-wait { margin: 0; min-height: 50vh; font-size: 15px; color: var(--fg-soft); }
.villa-cols--one { grid-template-columns: minmax(0, 1fr); }

/* ---------- scheda villa: galleria ---------- */
.frame--btn { display: block; width: 100%; padding: 0; border: 0; color: inherit; font: inherit; cursor: zoom-in; }
.frame__count {
  position: absolute; right: 12px; bottom: 12px; z-index: 1; padding: 7px 10px; background: rgba(14, 13, 12, .72); color: #F2EDE4;
  font: 500 10.5px/1 var(--font-body); letter-spacing: .18em;
}
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gallery__item { position: relative; display: block; padding: 0; border: 0; aspect-ratio: 3 / 2; overflow: hidden; background: var(--ph); cursor: zoom-in; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery__item:hover img { transform: scale(1.03); }
.gallery__more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(14, 13, 12, .58); color: #F2EDE4; font: 400 34px/1 var(--font-display); }
@media (max-width: 640px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}

/* ---------- galleria a tutto schermo ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 80; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(8px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px));
  background: rgba(10, 9, 8, .96); color: #F2EDE4;
}
.lightbox__stage { grid-column: 2; grid-row: 1; margin: 0; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.lightbox__stage img {
  width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); object-fit: contain;
  transition: opacity .25s var(--ease);
}
.lightbox__stage img.is-loading { opacity: .35; }
.lightbox__stage figcaption { font: 500 11px/1 var(--font-body); letter-spacing: .24em; color: #B9B1A5; }
.lightbox__nav, .lightbox__close {
  display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid rgba(242, 237, 228, .3); border-radius: 50%;
  background: transparent; color: inherit; font-size: 20px; line-height: 1; cursor: pointer;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.lightbox__nav:hover, .lightbox__close:hover { background: rgba(242, 237, 228, .12); border-color: rgba(242, 237, 228, .65); }
.lightbox__nav { grid-row: 1; margin-inline: clamp(4px, 2vw, 28px); }
.lightbox__nav--prev { grid-column: 1; }
.lightbox__nav--next { grid-column: 3; }
.lightbox__close { position: absolute; top: max(16px, env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); z-index: 1; font-size: 26px; }
.lightbox :focus-visible { outline-color: #F2EDE4; }
@media (max-width: 640px) {
  .lightbox { grid-template-columns: minmax(0, 1fr); }
  .lightbox__stage { grid-column: 1; }
  .lightbox__stage img { max-height: calc(100vh - 180px); max-height: calc(100dvh - 180px); }
  .lightbox__nav { position: absolute; bottom: max(18px, env(safe-area-inset-bottom, 0px)); width: 44px; height: 44px; margin: 0; }
  .lightbox__nav--prev { left: 16px; }
  .lightbox__nav--next { right: 16px; }
}

/* ---------- note legali e privacy ---------- */
.legal-view { padding-top: 132px; padding-bottom: clamp(72px, 9vw, 136px); }
.legal-view > * { max-width: 74ch; }
.legal-view .title { font-size: clamp(36px, 4.4vw, 60px); }
.legal__intro { margin-top: 24px; }
.legal__sec { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.legal__sec > p { margin: 0 0 14px; font-size: 16.5px; line-height: 1.7; }
.legal__sec .list { margin: 4px 0 18px; }
.legal__id { margin: 18px 0 0; border-top: 1px solid var(--line); }
.legal__id > div { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 4px 24px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.legal__id dt { font: 500 10.5px/1.6 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--fg-soft); }
.legal__id dd { margin: 0; font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.legal__sec > .legal__pending { margin: 16px 0 0; padding: 14px 18px; background: var(--bg-alt); font-size: 15px; color: var(--fg-soft); }
.legal__updated { margin: 44px 0 0; font-size: 13px; letter-spacing: .04em; color: var(--fg-soft); }
.legal__wait { margin: 24px 0 0; min-height: 40vh; color: var(--fg-soft); }
@media (max-width: 640px) {
  .legal-view { padding-top: 110px; }
  .legal__id > div { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- piè di pagina: dati del titolare ---------- */
.footer__company { flex-basis: 100%; margin: 0; font-size: 12px; line-height: 1.6; color: var(--night-fg-soft); }

/* ---------- mappa: con molte ville l'elenco scorre accanto alla mappa ---------- */
@media (min-width: 961px) {
  .map-list { max-height: 640px; overflow-y: auto; }
}

/* ---------- copertina e intestazione sugli schermi piccoli ---------- */
@media (max-width: 960px) {
  .hero__scrim { background: linear-gradient(180deg, rgba(14, 13, 12, .66) 0%, rgba(14, 13, 12, .42) 28%, rgba(14, 13, 12, .64) 58%, rgba(14, 13, 12, .92) 100%); }
}
@media (max-width: 760px) {
  .header.is-solid { -webkit-backdrop-filter: none; backdrop-filter: none; background: color-mix(in srgb, var(--bg) 97%, transparent); }
}
@media (max-width: 360px) {
  .header .logo img { height: 24px; }
  .header__inner { gap: 12px; }
}

/* ---------- pagina non trovata (404.html) ---------- */
.notfound { min-height: 100vh; min-height: 100dvh; display: grid; background: var(--night); color: var(--night-fg); }
.notfound__box { display: grid; justify-items: center; align-content: center; gap: 18px; padding-block: 72px; text-align: center; }
.notfound__box img { width: min(300px, 70vw); height: auto; margin-bottom: 28px; }
.notfound__box .title { margin: 0; }
.notfound__box .lede { color: var(--night-fg-soft); }
.notfound__box .btn { margin-top: 22px; }
