/* ==========================================================================
   TRE NOCI · alcamo · sicilia — sito ufficiale
   Design system derivato dall'identità visiva e dalle brochure:
   verde petrolio #0B3B3A · corten #8C4A2E · crema #F5F1E9 · Lora + Poppins
   ========================================================================== */

:root {
  --petrol: #0B3B3A;
  --petrol-deep: #06201F;
  --shade: 6, 32, 31; /* rgb dell'ombra sui hero */
  --corten: #8C4A2E;
  --corten-light: #D9A184;
  --cream: #F5F1E9;
  --cream-dark: #EDEAE3;
  --ink: #26251F;
  --muted: #8A857A;
  --hairline: rgba(38, 37, 31, 0.16);
  --hairline-light: rgba(245, 241, 233, 0.22);
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --container: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 76px;
}

/* Tema corten — Villa HA: ogni "verdone" diventa corten */
.theme-corten {
  --petrol: #8C4A2E;
  --petrol-deep: #59301C;
  --shade: 47, 24, 12;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; padding: 0; }
[id] { scroll-margin-top: calc(var(--header-h) + 12px); }
::selection { background: var(--petrol); color: var(--cream); }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- typography helpers ---------- */
.kicker {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--corten);
  display: block;
  margin-bottom: 1.1rem;
}
.on-dark .kicker, .kicker.light { color: var(--corten-light); }

.h-display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 4.6vw, 3.1rem);
  line-height: 1.16;
  color: var(--petrol);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.on-dark .h-display { color: var(--cream); }

.h-section {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  line-height: 1.2;
  color: var(--petrol);
  text-wrap: balance;
}
.on-dark .h-section { color: var(--cream); }

.lead { font-size: clamp(1.08rem, 1.6vw, 1.2rem); line-height: 1.75; }
.prose p + p { margin-top: 1.1em; }
.prose em { font-style: italic; }
.small-sans { font-family: var(--sans); font-size: 0.82rem; }
.muted { color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95em 1.9em;
  border: 1px solid var(--petrol);
  background: var(--petrol);
  color: var(--cream);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.btn:hover { background: var(--petrol-deep); border-color: var(--petrol-deep); }
.btn:active { transform: translateY(1px); }
.btn-outline { background: transparent; color: var(--petrol); }
.btn-outline:hover { background: var(--petrol); color: var(--cream); }
.on-dark .btn { background: var(--cream); border-color: var(--cream); color: var(--petrol); }
.on-dark .btn:hover { background: #fff; border-color: #fff; }
.on-dark .btn-outline { background: transparent; border-color: var(--hairline-light); color: var(--cream); }
.on-dark .btn-outline:hover { background: var(--cream); color: var(--petrol); border-color: var(--cream); }
.btn .arrow { font-family: var(--serif); font-size: 1.1em; letter-spacing: 0; line-height: 1; }

.text-link {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--corten);
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.35em;
  transition: color 0.2s ease;
}
.text-link:hover { color: var(--petrol); }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  color: var(--cream);
  transition: background 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
}
.site-header .container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-header.scrolled {
  background: rgba(245, 241, 233, 0.93);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--petrol);
  box-shadow: 0 1px 0 var(--hairline);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}
.brand svg { width: 30px; height: auto; }
.brand-name {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.42em;
}
.brand-sub {
  display: block;
  font-weight: 400;
  font-size: 0.56rem;
  letter-spacing: 0.34em;
  opacity: 0.75;
  margin-top: 0.15rem;
}
.main-nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.2rem); }
.main-nav a {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0.92;
  padding: 0.4em 0;
  border-bottom: 1px solid transparent;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}
.main-nav a:hover { opacity: 1; border-color: currentColor; }
.main-nav a[aria-current="page"] { border-color: var(--corten); color: inherit; opacity: 1; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.15em;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 2em;
  padding: 0.22em;
  transition: border-color 0.35s ease;
}
.site-header.scrolled .lang-switch { border-color: rgba(38, 37, 31, 0.3); }
.lang-switch a {
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s, background 0.2s, color 0.2s;
  padding: 0.38em 0.85em;
  border-radius: 2em;
  line-height: 1;
}
.lang-switch a:hover { opacity: 1; }
.lang-switch .active {
  opacity: 1;
  background: var(--corten);
  color: #fff;
}
.lang-sep { display: none; }

/* burger */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 80;
}
.nav-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
body.menu-open .nav-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { top: 21px; transform: rotate(-45deg); }
body.menu-open .nav-toggle { color: var(--cream); }
body.menu-open .site-header {
  z-index: 80;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
  color: var(--cream);
}

/* mobile overlay menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--petrol-deep);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gutter);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; }
body.menu-open { overflow: hidden; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 1.4rem; text-align: center; }
.mobile-menu nav a {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 6vw, 2.1rem);
  text-decoration: none;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
body.menu-open .mobile-menu nav a { opacity: 1; transform: none; }
body.menu-open .mobile-menu nav a:nth-child(2) { transition-delay: 0.06s; }
body.menu-open .mobile-menu nav a:nth-child(3) { transition-delay: 0.12s; }
body.menu-open .mobile-menu nav a:nth-child(4) { transition-delay: 0.18s; }
body.menu-open .mobile-menu nav a:nth-child(5) { transition-delay: 0.24s; }
.mobile-menu .menu-lang {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
}
.mobile-menu .menu-lang a { text-decoration: none; opacity: 0.55; }
.mobile-menu .menu-lang .active { opacity: 1; color: var(--corten-light); }
.mobile-menu .menu-foot {
  position: absolute;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 0; right: 0;
  text-align: center;
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.5;
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  /* lo switch lingua resta visibile anche su mobile, accanto al burger */
  .site-header .lang-switch { margin-left: auto; font-size: 0.7rem; }
  .site-header .container { gap: 0.6rem; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--cream);
  isolation: isolate;
  overflow: hidden;
}
.hero.hero-short { min-height: min(88svh, 860px); }
.hero-media, .hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero-media img { animation: heroZoom 9s ease-out forwards; }
@keyframes heroZoom { from { transform: scale(1.07); } to { transform: scale(1); } }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgba(var(--shade), 0.45), rgba(var(--shade), 0.05) 34%, rgba(var(--shade), 0.06) 52%, rgba(var(--shade), 0.82) 100%);
}
.hero-inner { width: 100%; padding-block: clamp(4rem, 12vh, 7.5rem); }
/* nelle pagine villa il testo scende dentro l'ombra in basso */
.hero-short .hero-inner { padding-bottom: clamp(1.8rem, 4.5vh, 3rem); }
.hero-short::after {
  background:
    linear-gradient(to bottom, rgba(var(--shade), 0.4), rgba(var(--shade), 0.04) 34%, rgba(var(--shade), 0.3) 60%, rgba(var(--shade), 0.9) 100%);
}
.hero-center {
  align-items: center;
  text-align: center;
}
.hero-center .hero-inner { padding-bottom: clamp(6rem, 16vh, 9rem); }
.hero-logo { width: clamp(54px, 8vw, 76px); margin-inline: auto; }
.hero-wordmark {
  display: block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(1.05rem, 2.6vw, 1.5rem);
  letter-spacing: 0.55em;
  text-indent: 0.55em;
  margin-top: 1.4rem;
}
.hero-place {
  display: block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(0.62rem, 1.3vw, 0.74rem);
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  opacity: 0.85;
  margin-top: 0.7rem;
  text-transform: lowercase;
}
.hero-tagline {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3.2vw, 2.1rem);
  line-height: 1.35;
  font-weight: 400;
  font-style: italic;
  max-width: 21em;
  margin: clamp(1.8rem, 4vh, 2.6rem) auto 0;
  text-wrap: balance;
}
.hero-kicker {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--corten-light);
  margin-bottom: 1rem;
  display: block;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 1.05;
}
.hero-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  opacity: 0.92;
  margin-top: 1rem;
  max-width: 34em;
}
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(18px, 4vh, 34px);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.8;
  text-decoration: none;
}
.scroll-cue::after {
  content: "";
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, var(--cream), transparent);
  animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue { 0%, 100% { transform: translateY(0); opacity: 0.9; } 50% { transform: translateY(8px); opacity: 0.4; } }

/* ---------- sections ---------- */
.section { padding-block: clamp(4.2rem, 11vh, 8.5rem); }
.section-tight { padding-block: clamp(3rem, 8vh, 5.5rem); }
.bg-dark { background: var(--petrol); color: var(--cream); }
.bg-deep { background: var(--petrol-deep); color: var(--cream); }
.bg-shade { background: var(--cream-dark); }
.section-head { max-width: 46em; margin-bottom: clamp(2.2rem, 6vh, 3.6rem); }
.section-head.centered { margin-inline: auto; text-align: center; }

/* editorial split (testo + aside, come pagina 2 brochure) */
.split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2.4rem, 6vw, 5.5rem);
  align-items: start;
}
.split-media {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(2.4rem, 6vw, 4.5rem);
  align-items: center;
}
@media (max-width: 860px) {
  .split, .split-media { grid-template-columns: 1fr; }
}

/* aside "in sintesi" con righello */
.aside-list {
  border-top: 1px solid var(--hairline);
  font-family: var(--sans);
  font-size: 0.86rem;
}
.on-dark .aside-list { border-color: var(--hairline-light); }
.aside-list li {
  padding: 0.72em 0;
  border-bottom: 1px solid var(--hairline);
}
.on-dark .aside-list li { border-color: var(--hairline-light); }
.aside-title {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--petrol);
  margin-bottom: 1rem;
}
.on-dark .aside-title { color: var(--cream); }

/* distanze / righe dato */
.data-rows { border-top: 1px solid var(--hairline); font-family: var(--sans); font-size: 0.88rem; }
.data-rows > div {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.68em 0;
  border-bottom: 1px solid var(--hairline);
}
.data-rows .val { font-weight: 600; color: var(--petrol); white-space: nowrap; }
.on-dark .data-rows { border-color: var(--hairline-light); }
.on-dark .data-rows > div { border-color: var(--hairline-light); }
.on-dark .data-rows .val { color: var(--cream); }

/* statistiche grandi in serif */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: clamp(1.4rem, 4vw, 2.8rem);
}
.stat-num {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 500;
  color: var(--petrol);
  line-height: 1.1;
}
.on-dark .stat-num { color: var(--cream); }
.stat-label {
  font-family: var(--sans);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.5rem;
}
.on-dark .stat-label { color: var(--corten-light); }

/* banda statistiche sotto hero villa */
.stats-band { border-bottom: 1px solid var(--hairline-light); }
.stats-band .stats { text-align: center; }

/* ---------- figures & galleries ---------- */
figure.frame img { width: 100%; }
figcaption {
  font-family: var(--sans);
  font-size: 0.74rem;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: var(--muted);
  padding-top: 0.7em;
}
.on-dark figcaption { color: rgba(245, 241, 233, 0.62); }

.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(0.9rem, 2.2vw, 1.6rem);
}
.gallery figure { grid-column: span 12; margin: 0; }
.gallery a { display: block; overflow: hidden; }
.gallery img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery a:hover img { transform: scale(1.035); }
@media (min-width: 760px) {
  .gallery .g-4 { grid-column: span 4; }
  .gallery .g-6 { grid-column: span 6; }
  .gallery .g-8 { grid-column: span 8; }
  .gallery .g-12 { grid-column: span 12; }
  .gallery .g-12 img { aspect-ratio: 21 / 9; }
}

/* piano/planimetrie card */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(1rem, 2.5vw, 1.8rem);
}
.plan-card {
  background: #fff;
  border: 1px solid var(--hairline);
  padding: clamp(0.9rem, 2vw, 1.4rem);
}
.plan-card a { display: block; }
.plan-card img { width: 100%; aspect-ratio: 16/9; object-fit: contain; }
.plan-card h3 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--petrol);
  margin-top: 1rem;
}
.plan-card p { font-family: var(--sans); font-size: 0.8rem; color: var(--muted); line-height: 1.55; margin-top: 0.4rem; }
.plan-note {
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- scelta ville (home) ---------- */
.villa-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: clamp(1.4rem, 3.5vw, 2.6rem);
}
.villa-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: var(--petrol);
  color: var(--cream);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.villa-card:hover { transform: translateY(-6px); box-shadow: 0 26px 60px rgba(6, 32, 31, 0.28); }
.villa-card .vc-media { overflow: hidden; }
.villa-card .vc-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.villa-card:hover .vc-media img { transform: scale(1.05); }
.vc-body { padding: clamp(1.4rem, 3vw, 2.1rem); display: flex; flex-direction: column; gap: 0.9rem; flex: 1; }
.vc-kicker {
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--corten-light);
}
.vc-name { font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 500; line-height: 1.1; }
.vc-tagline { font-family: var(--serif); font-style: italic; font-size: 1rem; opacity: 0.9; }
.vc-stats {
  font-family: var(--sans);
  font-size: 0.8rem;
  line-height: 2;
  border-top: 1px solid var(--hairline-light);
  padding-top: 0.9rem;
  opacity: 0.92;
}
.vc-cta {
  margin-top: auto;
  padding-top: 1.1rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--corten-light);
}
.villa-card:hover .vc-cta { color: var(--cream); }

/* variante corten della card (Villa HA) */
.villa-card-corten { background: var(--corten); }
.villa-card-corten:hover { box-shadow: 0 26px 60px rgba(89, 48, 28, 0.38); }
.villa-card-corten .vc-kicker,
.villa-card-corten .vc-cta { color: #F4DCC7; }
.villa-card-corten:hover .vc-cta { color: #fff; }

/* banner "altra villa" declinato in corten */
.cross-corten::after { background: rgba(63, 32, 16, 0.6); }
.cross-corten:hover::after { background: rgba(63, 32, 16, 0.46); }

/* ---------- brochure download ---------- */
.brochure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(1.2rem, 3vw, 2rem);
}
.brochure-card {
  border: 1px solid var(--hairline-light);
  padding: clamp(1.5rem, 3.5vw, 2.4rem);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.brochure-card h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; }
.brochure-card p { font-family: var(--sans); font-size: 0.82rem; opacity: 0.8; line-height: 1.6; }
.brochure-links { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: auto; }
.dl-note { font-family: var(--sans); font-size: 0.7rem; opacity: 0.55; letter-spacing: 0.06em; }

/* ---------- nota trasparenza ---------- */
.notice {
  border: 1px solid var(--corten);
  padding: clamp(1.3rem, 3vw, 1.9rem);
  font-family: var(--sans);
  font-size: 0.85rem;
  line-height: 1.7;
}
.notice-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--corten);
  margin-bottom: 0.8rem;
}
.on-dark .notice { border-color: var(--corten-light); }
.on-dark .notice-title { color: var(--corten-light); }

/* ---------- tabella ambienti ---------- */
.rooms-table { border-top: 1px solid var(--hairline); font-family: var(--sans); font-size: 0.88rem; }
.rooms-table div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.62em 0;
  border-bottom: 1px solid var(--hairline);
}
.rooms-table .a { color: var(--ink); }
.rooms-table .v { font-weight: 600; color: var(--petrol); white-space: nowrap; }

.dot-list { font-family: var(--sans); font-size: 0.88rem; }
.dot-list li {
  padding: 0.55em 0 0.55em 1.4em;
  position: relative;
  border-bottom: 1px solid var(--hairline);
}
.dot-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--corten);
}

/* ---------- cross link altra villa ---------- */
.cross-villa { position: relative; isolation: isolate; color: var(--cream); overflow: hidden; }
.cross-villa img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.8s ease; }
.cross-villa:hover img { transform: scale(1.04); }
.cross-villa::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(6, 32, 31, 0.58); transition: background 0.4s; }
.cross-villa:hover::after { background: rgba(6, 32, 31, 0.44); }
.cross-villa a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  text-decoration: none;
  padding: clamp(4rem, 10vh, 6.5rem) var(--gutter);
}

/* ---------- footer / contatti ---------- */
.site-footer { text-align: center; }
.site-footer .brand-block { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.footer-contact { margin-top: 2.6rem; }
.footer-company {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.footer-rule { width: 44px; height: 2px; background: var(--corten); margin: 1.6rem auto; }
.footer-contact a {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  text-decoration: none;
  margin-top: 0.6rem;
  transition: color 0.2s;
}
.footer-contact a:hover { color: var(--corten-light); }
.contact-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 0.6rem;
}
.contact-row a { margin-top: 0; }
.wa-link { color: #25D366; display: inline-flex; }
.wa-link:hover { color: #4AE584; }
.wa-link svg { width: 24px; height: 24px; display: block; }
.footer-address {
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-top: 2.8rem;
  line-height: 2;
}
.footer-legal {
  font-family: var(--sans);
  font-size: 0.68rem;
  line-height: 1.7;
  opacity: 0.5;
  max-width: 52em;
  margin: 2rem auto 0;
}
.footer-nav { margin-top: 2.4rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 1.6rem; }
.footer-nav a {
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0.7;
}
.footer-nav a:hover { opacity: 1; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(6, 32, 31, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox figure {
  max-width: min(94vw, 1500px);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox img {
  max-width: 94vw;
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #fff;
}
.lightbox figcaption { color: rgba(245, 241, 233, 0.85); text-align: center; max-width: 60em; }
.lb-btn {
  position: absolute;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.75;
  transition: opacity 0.2s;
  z-index: 2;
}
.lb-btn:hover { opacity: 1; }
.lb-close { top: max(10px, env(safe-area-inset-top)); right: 12px; font-size: 1.7rem; }
.lb-prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 6px; top: 50%; transform: translateY(-50%); }
.lb-counter {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: rgba(245, 241, 233, 0.6);
}

/* ---------- reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }

/* ---------- suggerimento lingua ---------- */
.lang-toast {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(20px);
  z-index: 65;
  background: var(--petrol-deep);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 0.82rem;
  line-height: 1.5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem 1.1rem;
  padding: 0.85rem 1.2rem;
  box-shadow: 0 16px 40px rgba(6, 32, 31, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
  width: max-content;
  max-width: min(92vw, 520px);
}
.lang-toast.show { opacity: 1; transform: translateX(-50%); visibility: visible; }
.lang-toast a { color: var(--corten-light); font-weight: 600; text-decoration: none; white-space: nowrap; }
.lang-toast button { font-size: 1.05rem; opacity: 0.6; padding: 0.2em 0.4em; }
.lang-toast button:hover { opacity: 1; }

/* ---------- preferenze utente ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media img { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue::after { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

/* piccoli schermi: rifiniture */
@media (max-width: 560px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero-tagline { font-size: 1.25rem; }
  .btn { width: 100%; justify-content: center; text-align: center; }
  .brochure-links .btn { width: 100%; }
  .footer-nav { gap: 1rem 1.4rem; }
}

/* stampa */
@media print {
  .site-header, .scroll-cue, .lang-toast, .mobile-menu { display: none !important; }
  .hero { min-height: auto; }
  body { background: #fff; }
}
