/* ═══════════════════════════════════════════════════════════════════════════
   STYLE HOMES — FOGLIO DI STILE PRINCIPALE
   Palette: ink (nero caldo) · brass (ottone) · ivory / paper (avorio)
   Font: Cormorant Garamond (display) · Jost (testo)
   ═══════════════════════════════════════════════════════════════════════════ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ink: #14110f;
  --ink-soft: #221d19;
  --ink-2: #1c1815;
  --brass: #b08d4f;
  --brass-h: #c8a262;
  --ivory: #f4efe7;
  --paper: #fbf8f3;
  --paper-2: #f5f0e8;
  --muted: #8a8078;
  --line: rgba(176, 141, 79, .24);
  --line-soft: rgba(20, 17, 15, .10);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', -apple-system, Segoe UI, sans-serif;
  --shadow: 0 24px 70px rgba(20, 17, 15, .18);
  --ease: cubic-bezier(.4, 0, .2, 1);
  --nav-h: 84px;
}

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 620px) { .wrap { padding: 0 20px; } }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: var(--ink); color: var(--ivory); padding: 14px 22px; text-decoration: none;
}
.skip-link:focus { left: 0; }

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

/* ─────────────────────────────────── TIPOGRAFIA COMUNE ─────────────────── */

.eyebrow {
  font-size: 11.5px; letter-spacing: 3.2px; text-transform: uppercase;
  color: var(--brass); font-weight: 400; margin-bottom: 16px;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; }
h2 em, h1 em, h3 em { font-style: italic; color: var(--brass); }

.sec-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.sec-head h2 { font-size: clamp(30px, 4.6vw, 52px); }
.sec-sub { margin-top: 20px; font-size: 15.5px; line-height: 1.85; color: var(--muted); }

.section { padding: 110px 0; }
.section-soft { background: var(--paper-2); }
.section-dark { background: var(--ink); color: var(--ivory); }
.section-dark .sec-sub { color: rgba(244, 239, 231, .62); }
@media (max-width: 760px) { .section { padding: 76px 0; } }

.note {
  margin-top: 34px; font-size: 12.5px; line-height: 1.8; letter-spacing: .3px;
  color: var(--muted); text-align: center;
}

/* ─────────────────────────────────── BOTTONI ───────────────────────────── */

.btn, .btn-line, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: 2px;
  text-transform: uppercase; text-decoration: none; cursor: pointer;
  padding: 16px 34px; border: 1px solid transparent; transition: all .3s var(--ease);
}
.btn { background: var(--brass); color: var(--ink); }
.btn:hover { background: var(--brass-h); transform: translateY(-2px); }

.btn-line { background: transparent; border-color: currentColor; color: inherit; }
.btn-line:hover { background: var(--brass); border-color: var(--brass); color: var(--ink); }

.btn-ghost { padding: 11px 22px; border-color: var(--brass); color: var(--brass); }
.btn-ghost:hover { background: var(--brass); color: var(--ink); }

/* ─────────────────────────────────── NAV ───────────────────────────────── */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 22px 44px; transition: all .4s var(--ease);
}
.nav.scr { background: rgba(20, 17, 15, .94); backdrop-filter: blur(12px); padding: 12px 44px; }

.nav .brand { display: block; flex-shrink: 0; line-height: 0; }
.nav .brand img { height: 72px; width: auto; transition: height .4s var(--ease); }
.nav.scr .brand img { height: 52px; }
@media (max-width: 620px) { .nav .brand img, .nav.scr .brand img { height: 44px; } }

.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a {
  font-size: 11.5px; font-weight: 300; letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--ivory); text-decoration: none; opacity: .85; transition: color .25s, opacity .25s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.on { color: var(--brass); opacity: 1; }

.nav-side { display: flex; align-items: center; gap: 18px; }

.lang-switch { display: flex; align-items: center; gap: 5px; color: rgba(244, 239, 231, .45); }
.lang-switch button {
  background: none; border: none; cursor: pointer; padding: 2px 3px;
  font-size: 11.5px; letter-spacing: 1.5px; color: rgba(244, 239, 231, .6); transition: color .25s;
}
.lang-switch button:hover { color: var(--ivory); }
.lang-switch button.on { color: var(--brass); font-weight: 500; }

.burger { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.burger span {
  display: block; width: 26px; height: 1.5px; background: var(--ivory);
  margin: 6px 0; transition: transform .3s var(--ease), opacity .2s;
}
.nav.open .burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav.open .burger span:nth-child(2) { opacity: 0; }
.nav.open .burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.resa-mob { display: none; }

@media (max-width: 1080px) {
  .nav { padding: 16px 22px; }
  .nav.scr { padding: 12px 22px; }
  .nav.open { background: rgba(20, 17, 15, .985); }
  .burger { display: block; }
  .nav .brand, .nav-side { position: relative; z-index: 2; }   /* restano sopra al drawer */
  .nav-side .btn-ghost { display: none; }
  .nav-links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 28px;
    background: rgba(20, 17, 15, .985); backdrop-filter: blur(8px);
    opacity: 0; pointer-events: none; transition: opacity .35s var(--ease);
  }
  .nav-links a { font-size: 16px; letter-spacing: 2.6px; opacity: 1; }
  .nav.open .nav-links { opacity: 1; pointer-events: auto; }
  .nav-links a.resa-mob { display: inline-flex; margin-top: 12px; color: var(--ink); font-size: 12px; letter-spacing: 2px; }
  .nav-links a.resa-mob:hover { color: var(--ink); }
}

/* ─────────────────────────────────── HERO ──────────────────────────────── */

.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column;
  justify-content: flex-end; color: var(--ivory); overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 17, 15, .74) 0%, rgba(20, 17, 15, .34) 52%, rgba(20, 17, 15, .12) 100%),
    linear-gradient(180deg, rgba(20, 17, 15, .58) 0%, rgba(20, 17, 15, .22) 34%, rgba(20, 17, 15, .92) 100%),
    url('../../img-web/505/StyleHomes_505_Soggiorno_2.jpg') center / cover no-repeat;
  animation: zoom 18s ease-out both;
}
@keyframes zoom { from { transform: scale(1.08); } to { transform: scale(1); } }

.hero-in { position: relative; z-index: 2; padding-bottom: 64px; animation: rise 1.2s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }

.hero h1 {
  font-size: clamp(44px, 7.6vw, 100px); line-height: .98; max-width: 15ch; margin-bottom: 24px;
  text-shadow: 0 2px 40px rgba(20, 17, 15, .55);
}
.hero h1 em { color: var(--brass-h); }
.hero .lead {
  font-size: 17px; line-height: 1.75; max-width: 500px; opacity: .94; margin-bottom: 34px;
  text-shadow: 0 1px 18px rgba(20, 17, 15, .6);
}
.hero .eyebrow { text-shadow: 0 1px 14px rgba(20, 17, 15, .6); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-facts {
  position: relative; z-index: 2;
  border-top: 1px solid rgba(244, 239, 231, .16); backdrop-filter: blur(3px);
}
.hero-facts-in { display: flex; gap: 40px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; }
.hero-facts div { display: flex; align-items: baseline; gap: 9px; }
.hero-facts strong { font-family: var(--serif); font-size: 27px; font-weight: 500; color: var(--brass); }
.hero-facts span { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; opacity: .75; }
@media (max-width: 620px) {
  .hero .eyebrow { font-size: 10px; letter-spacing: 2.2px; }
  .hero .lead { font-size: 15.5px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-facts-in { gap: 18px 26px; }
  .hero-facts strong { font-size: 21px; }
  .hero-facts span { font-size: 9.5px; letter-spacing: 1.4px; }
}

/* ─────────────────────────────────── MARQUEE ───────────────────────────── */

.strip { background: var(--ink); padding: 15px 0; overflow: hidden; white-space: nowrap; }
.strip-run {
  display: inline-block; font-family: var(--serif); font-style: italic; font-size: 19px;
  letter-spacing: 1px; color: var(--brass); animation: slide 46s linear infinite;
}
.strip-run span { margin: 0 26px; opacity: .85; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .strip-run { animation: none; } }

/* ─────────────────────────────────── INTRO ─────────────────────────────── */

.intro { padding: 110px 32px 90px; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.intro-lead h2 { font-size: clamp(30px, 4.3vw, 50px); }
.intro-body p { font-size: 16px; line-height: 1.95; color: var(--ink-soft); margin-bottom: 18px; }
.intro-body .sign { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--brass); margin-top: 26px; }
@media (max-width: 900px) { .intro { grid-template-columns: 1fr; gap: 36px; padding: 76px 20px 60px; } }

/* ─────────────────────────────────── FILTRI / CHIP ─────────────────────── */

.apt-filter, .poi-filter, .faq-filter, .tabs {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 46px;
}
.chip {
  background: none; border: 1px solid var(--line); color: inherit; cursor: pointer;
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase; padding: 10px 20px;
  transition: all .25s var(--ease);
}
.chip:hover { border-color: var(--brass); color: var(--brass); }
.chip.on { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.section-dark .chip { border-color: rgba(176, 141, 79, .4); }

/* ─────────────────────────────────── APPARTAMENTI ──────────────────────── */

.apt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 1040px) { .apt-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .apt-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }

.apt-card {
  position: relative; background: var(--ink); color: var(--ivory); cursor: pointer;
  border: none; text-align: left; padding: 0; overflow: hidden; display: flex; flex-direction: column;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.apt-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.apt-card.hide { display: none; }

.apt-ph { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.apt-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.apt-card:hover .apt-ph img { transform: scale(1.06); }
.apt-ph::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 17, 15, .45) 0%, transparent 42%);
}

.apt-num {
  position: absolute; top: 18px; left: 22px; z-index: 2;
  font-family: var(--serif); font-size: 56px; font-weight: 600; line-height: 1;
  color: var(--ivory); text-shadow: 0 2px 22px rgba(0, 0, 0, .45);
}
.apt-cat {
  position: absolute; top: 26px; right: 22px; z-index: 2;
  font-size: 9.5px; letter-spacing: 2.2px; text-transform: uppercase;
  border: 1px solid var(--brass); color: var(--brass); padding: 5px 11px;
  background: rgba(20, 17, 15, .45); backdrop-filter: blur(3px);
}

.apt-meta { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.apt-meta .lbl { font-size: 10.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--brass); }
.apt-meta h3 { font-size: 27px; }
.apt-meta .claim {
  font-size: 13.5px; line-height: 1.65; color: rgba(244, 239, 231, .68);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 3.3em;
}

.apt-spec {
  display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 6px;
  padding-top: 16px; border-top: 1px solid rgba(244, 239, 231, .12);
  font-size: 11.5px; letter-spacing: 1.2px; color: rgba(244, 239, 231, .72);
}
.apt-more {
  margin-top: auto; padding-top: 16px; font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--brass);
}
.apt-more::after { content: ' →'; transition: margin .25s; display: inline-block; }
.apt-card:hover .apt-more::after { margin-left: 5px; }

/* ─────────────────────────────────── BAND FOTO ─────────────────────────── */

.band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
@media (max-width: 820px) { .band { grid-template-columns: repeat(2, 1fr); } }
.band button { border: none; padding: 0; background: none; cursor: pointer; height: 280px; overflow: hidden; }
.band img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(18%); transition: transform .8s var(--ease), filter .6s; }
.band button:hover img { transform: scale(1.07); filter: grayscale(0); }

/* ─────────────────────────────────── SERVIZI ───────────────────────────── */

.srv-panel { display: none; }
.srv-panel.on { display: block; animation: fade .4s var(--ease) both; }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.srv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(244, 239, 231, .12); }
@media (max-width: 1000px) { .srv-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .srv-grid { grid-template-columns: 1fr; } }

.srv-item { background: var(--ink); padding: 32px 28px; display: flex; flex-direction: column; gap: 12px; transition: background .3s; }
.srv-item:hover { background: var(--ink-2); }
.srv-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.srv-ico { width: 26px; height: 26px; stroke: var(--brass); fill: none; stroke-width: 1.3; flex-shrink: 0; }
.srv-price {
  font-size: 10.5px; letter-spacing: 1.6px; text-transform: uppercase; white-space: nowrap;
  border: 1px solid var(--line); color: var(--brass); padding: 5px 11px;
}
.srv-price.free { border-color: rgba(244, 239, 231, .22); color: rgba(244, 239, 231, .6); }
.srv-item h3 { font-size: 21px; }
.srv-item p { font-size: 13.5px; line-height: 1.8; color: rgba(244, 239, 231, .66); }

/* ─────────────────────────────────── SPLIT (LOCATION) ─────────────────── */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-bottom: 90px; }
.split:last-child { margin-bottom: 0; }
.split-rev .split-txt { order: 2; }
.split-txt h3 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 18px; }
.split-txt p { font-size: 15.5px; line-height: 1.95; color: var(--ink-soft); }
.split-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 30px; margin-bottom: 60px; }
  .split-rev .split-txt { order: 0; }
}

.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.tags span {
  border: 1px solid var(--line); color: var(--brass); font-size: 10.5px;
  letter-spacing: 1.8px; text-transform: uppercase; padding: 8px 15px;
}

.ticks { list-style: none; margin-top: 24px; display: grid; gap: 13px; }
.ticks li { position: relative; padding-left: 26px; font-size: 14.5px; line-height: 1.7; color: var(--ink-soft); }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: 8px; width: 11px; height: 6px;
  border-left: 1.5px solid var(--brass); border-bottom: 1.5px solid var(--brass); transform: rotate(-45deg);
}

/* ─────────────────────────────────── POI ──────────────────────────────── */

.poi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 1000px) { .poi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .poi-grid { grid-template-columns: 1fr; } }

.poi-card {
  background: #fff; border: 1px solid var(--line-soft); padding: 28px 26px 30px;
  display: flex; flex-direction: column; gap: 11px; transition: all .35s var(--ease);
}
.poi-card:hover { border-color: var(--brass); transform: translateY(-4px); box-shadow: 0 16px 44px rgba(20, 17, 15, .09); }
.poi-card.hide { display: none; }
.poi-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.poi-cat { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.poi-time {
  font-size: 10.5px; letter-spacing: 1.4px; color: var(--brass);
  border: 1px solid var(--line); padding: 4px 10px; white-space: nowrap;
}
.poi-card h3 { font-size: 23px; }
.poi-card p { font-size: 13.8px; line-height: 1.8; color: var(--muted); }

/* ─────────────────────────────────── DOVE SIAMO ───────────────────────── */

.where { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: start; }
@media (max-width: 940px) { .where { grid-template-columns: 1fr; } }

.map-box { position: relative; aspect-ratio: 4 / 3; background: var(--ink); overflow: hidden; }
.map-box iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 18px; text-align: center; padding: 32px; color: var(--ivory);
  background: linear-gradient(rgba(20, 17, 15, .78), rgba(20, 17, 15, .78)), url('../../img-web/esterni/StyleHomes_Esterno_1.jpg') center / cover;
}
.map-ph p { font-size: 13px; line-height: 1.75; max-width: 40ch; color: rgba(244, 239, 231, .75); }
.map-link { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--brass); text-decoration: none; }
.map-link:hover { text-decoration: underline; }

.where-info { display: grid; gap: 2px; }
.wi { padding: 22px 24px; background: #fff; border: 1px solid var(--line-soft); display: flex; gap: 16px; }
.wi svg { width: 22px; height: 22px; stroke: var(--brass); fill: none; stroke-width: 1.3; flex-shrink: 0; margin-top: 3px; }
.wi h3 { font-size: 19px; margin-bottom: 6px; }
.wi p { font-size: 13.5px; line-height: 1.75; color: var(--muted); }

/* ─────────────────────────────────── FAQ ──────────────────────────────── */

.faq { max-width: 900px; margin: 0 auto; border-top: 1px solid rgba(244, 239, 231, .14); }
.faq-item { border-bottom: 1px solid rgba(244, 239, 231, .14); }
.faq-item.hide { display: none; }
.faq-q {
  width: 100%; background: none; border: none; cursor: pointer; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 4px; font-family: var(--serif); font-size: 21px; color: var(--ivory);
  transition: color .25s;
}
.faq-q:hover { color: var(--brass); }
.faq-q i {
  font-style: normal; font-family: var(--sans); font-size: 24px; font-weight: 200;
  color: var(--brass); flex-shrink: 0; transition: transform .35s var(--ease); line-height: 1;
}
.faq-item.open .faq-q i { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
.faq-a p {
  padding: 0 4px 26px; font-size: 14.5px; line-height: 1.9; color: rgba(244, 239, 231, .66); max-width: 78ch;
}

/* ─────────────────────────────────── CONTATTI ─────────────────────────── */

.contact {
  margin-top: 90px; padding-top: 70px; border-top: 1px solid rgba(244, 239, 231, .14);
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
}
@media (max-width: 940px) { .contact { grid-template-columns: 1fr; gap: 44px; margin-top: 64px; } }

.contact h3 { font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 16px; }
.contact-sub { font-size: 15px; line-height: 1.8; color: rgba(244, 239, 231, .66); margin-bottom: 28px; }
.contact-list { list-style: none; display: grid; gap: 14px; margin-bottom: 30px; }
.contact-list li { display: flex; align-items: center; gap: 13px; font-size: 14.5px; }
.contact-list svg { width: 18px; height: 18px; stroke: var(--brass); fill: none; stroke-width: 1.4; flex-shrink: 0; }
.contact-list a { color: var(--ivory); text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-list a:hover { color: var(--brass); }

.contact-form { display: grid; gap: 16px; }
.f-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; }
.contact-form label { display: grid; gap: 7px; }
.contact-form label > span { font-size: 10.5px; letter-spacing: 2px; text-transform: uppercase; color: rgba(244, 239, 231, .6); }
.contact-form input, .contact-form textarea {
  background: rgba(244, 239, 231, .06); border: 1px solid rgba(244, 239, 231, .18);
  color: var(--ivory); font-family: var(--sans); font-size: 14px; font-weight: 300;
  padding: 13px 14px; border-radius: 2px; transition: border-color .25s, background .25s;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--brass); background: rgba(244, 239, 231, .1);
}
.contact-form textarea { resize: vertical; }
.f-check { display: flex !important; align-items: flex-start; gap: 11px; }
.f-check input { width: 17px; height: 17px; accent-color: var(--brass); flex-shrink: 0; margin-top: 2px; }
.f-check span { font-size: 12.5px !important; letter-spacing: 0 !important; text-transform: none !important; line-height: 1.7; }
/* Campo esca anti-bot: fuori dallo schermo, mai visibile né raggiungibile da tastiera. */
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn { justify-self: start; }
.f-msg { font-size: 13px; min-height: 20px; color: var(--brass); }
.f-msg.err { color: #e0a3a3; }

/* ─────────────────────────────────── FOOTER ───────────────────────────── */

footer { background: var(--ink); color: rgba(244, 239, 231, .55); padding: 60px 0 40px; border-top: 1px solid rgba(244, 239, 231, .1); }
.foot { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .foot { grid-template-columns: 1fr; gap: 28px; } }
.foot-logo { height: 96px; width: auto; margin-bottom: 14px; }
.foot-sub, .foot-legal p { font-size: 12.5px; line-height: 1.8; letter-spacing: .4px; }
.foot-nav { display: grid; gap: 9px; }
.foot-nav a { font-size: 12.5px; text-decoration: none; letter-spacing: .5px; transition: color .25s; }
.foot-nav a:hover { color: var(--brass); }
.foot-legal a { color: rgba(244, 239, 231, .8); text-decoration: none; }
.foot-legal a:hover { color: var(--brass); }
.foot-legal .note { margin-top: 12px; font-size: 11px; opacity: .6; }
.foot-owner { margin-top: 12px; }
.foot-dev { margin-top: 8px; font-size: 11px; letter-spacing: .4px; opacity: .6; }
.foot-dev strong, .foot-dev a { color: var(--brass); font-weight: 400; }
.foot-owner strong { color: var(--ivory); font-weight: 400; }
.foot-links { margin-top: 12px; font-size: 12.5px; }
.foot-links a, .foot-links button { border-bottom: 1px solid var(--line); }
.foot-links button {
  background: none; border: none; border-bottom: 1px solid var(--line); padding: 0;
  font-size: 12.5px; font-weight: 300; color: rgba(244, 239, 231, .8); cursor: pointer;
}
.foot-links button:hover { color: var(--brass); }

/* ─────────────────────────────────── MODALE APPARTAMENTO ──────────────── */

.modal { position: fixed; inset: 0; z-index: 1500; display: none; }
.modal.on { display: block; }
.modal-back { position: absolute; inset: 0; background: rgba(20, 17, 15, .8); backdrop-filter: blur(4px); animation: fade .3s both; }
.modal-box {
  position: absolute; inset: 3vh 0 0; margin: 0 auto; max-width: 1100px; width: calc(100% - 32px);
  background: var(--paper); overflow-y: auto; box-shadow: var(--shadow);
  animation: up .4s var(--ease) both;
}
@keyframes up { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
.modal-x {
  position: sticky; top: 0; float: right; z-index: 5; width: 52px; height: 52px;
  background: var(--ink); color: var(--ivory); border: none; font-size: 26px; cursor: pointer;
  line-height: 1; transition: background .25s;
}
.modal-x:hover { background: var(--brass); color: var(--ink); }

.m-hero { position: relative; aspect-ratio: 16 / 8; overflow: hidden; background: var(--ink); }
.m-hero img { width: 100%; height: 100%; object-fit: cover; }
.m-hero .apt-num { font-size: 72px; }
.m-body { padding: 40px 46px 56px; }
@media (max-width: 640px) { .m-body { padding: 30px 22px 40px; } .m-hero .apt-num { font-size: 48px; } }

.m-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 8px; }
.m-body h2 { font-size: clamp(30px, 4vw, 44px); }
.m-body > p.desc { font-size: 15.5px; line-height: 1.95; color: var(--ink-soft); margin: 18px 0 34px; max-width: 72ch; }

.m-specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); margin-bottom: 38px; }
@media (max-width: 640px) { .m-specs { grid-template-columns: repeat(2, 1fr); } }
.m-specs div { background: var(--paper); padding: 18px 20px; }
.m-specs dt { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.m-specs dd { font-family: var(--serif); font-size: 22px; }

.m-sub { font-size: 11px; letter-spacing: 2.6px; text-transform: uppercase; color: var(--brass); margin-bottom: 18px; }
.m-feats { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 30px; margin-bottom: 40px; }
@media (max-width: 640px) { .m-feats { grid-template-columns: 1fr; } }
.m-feats li { position: relative; padding-left: 24px; font-size: 14.5px; line-height: 1.6; }
.m-feats li::before {
  content: ''; position: absolute; left: 0; top: 7px; width: 10px; height: 5.5px;
  border-left: 1.5px solid var(--brass); border-bottom: 1.5px solid var(--brass); transform: rotate(-45deg);
}

.m-gal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 40px; }
@media (max-width: 820px) { .m-gal { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .m-gal { grid-template-columns: repeat(2, 1fr); } }
.m-gal button { border: none; padding: 0; background: none; cursor: pointer; aspect-ratio: 1; overflow: hidden; }
.m-gal img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.m-gal button:hover img { transform: scale(1.08); }

/* ─────────────────────────────────── LIGHTBOX ─────────────────────────── */

.lb {
  position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center;
  background: rgba(12, 10, 9, .95); padding: 60px 70px;
}
.lb.on { display: flex; animation: fade .25s both; }
.lb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-x, .lb-nav {
  position: absolute; background: none; border: none; color: var(--ivory); cursor: pointer;
  opacity: .7; transition: opacity .25s, transform .25s;
}
.lb-x:hover, .lb-nav:hover { opacity: 1; }
.lb-x { top: 20px; right: 26px; font-size: 40px; line-height: 1; }
.lb-nav { top: 50%; transform: translateY(-50%); font-size: 56px; line-height: 1; padding: 10px 16px; }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }
.lb-cap {
  position: absolute; bottom: 22px; left: 0; right: 0; text-align: center;
  color: rgba(244, 239, 231, .7); font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
}
@media (max-width: 620px) { .lb { padding: 60px 12px; } .lb-nav { font-size: 40px; } }

/* ─────────────────────────────────── COOKIE ───────────────────────────── */

.cookie {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 1400;
  max-width: 620px; background: var(--ink); color: var(--ivory);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  padding: 22px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px;
  animation: up .5s var(--ease) both;
}
.cookie[hidden] { display: none; }   /* necessario: display:flex sovrascriverebbe [hidden] */
.cookie p { font-size: 13px; line-height: 1.7; flex: 1 1 260px; color: rgba(244, 239, 231, .8); }
.cookie-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie .btn, .cookie .btn-line { padding: 12px 20px; font-size: 10.5px; }
@media (max-width: 520px) { .cookie { left: 10px; right: 10px; bottom: 10px; padding: 18px; } }

/* ─────────────────────────────────── REVEAL ───────────────────────────── */

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg, .hero-in { animation: none; }
  html { scroll-behavior: auto; }
}

body.lock { overflow: hidden; }

/* ─────────────────────────────────── PAGINE LEGALI ────────────────────── */

.legal-nav {
  position: sticky; top: 0; z-index: 900; background: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px 44px;
}
.legal-nav img { height: 52px; width: auto; display: block; }
.legal-nav .back {
  font-size: 11.5px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--ivory); text-decoration: none; opacity: .85;
}
.legal-nav .back:hover { color: var(--brass); }
@media (max-width: 620px) { .legal-nav { padding: 12px 20px; } .legal-nav img { height: 42px; } }

.legal { max-width: 840px; margin: 0 auto; padding: 70px 32px 100px; }
.legal h1 { font-size: clamp(32px, 5vw, 50px); margin-bottom: 10px; }
.legal .upd { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 44px; }
.legal h2 {
  font-size: clamp(22px, 3vw, 30px); margin: 46px 0 16px;
  padding-top: 26px; border-top: 1px solid var(--line);
}
.legal h3 { font-size: 19px; margin: 26px 0 10px; }
.legal p, .legal li { font-size: 15px; line-height: 1.9; color: var(--ink-soft); }
.legal p { margin-bottom: 14px; }
.legal ul, .legal ol { margin: 0 0 16px 22px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--brass); }
.legal strong { font-weight: 500; }
.legal table { width: 100%; border-collapse: collapse; margin: 8px 0 22px; font-size: 14px; }
.legal th, .legal td { border: 1px solid var(--line); padding: 11px 13px; text-align: left; vertical-align: top; }
.legal th { background: var(--paper-2); font-weight: 500; letter-spacing: .4px; }
.legal .box { background: var(--paper-2); border-left: 2px solid var(--brass); padding: 20px 24px; margin: 22px 0; }
.legal .box p:last-child { margin-bottom: 0; }
.legal-table-wrap { overflow-x: auto; }

[data-lg] { display: none; }
[data-lg].on { display: block; }
