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

/* ── VARIABILI ── */
:root {
  --bg:        #f4f0e8;
  --bg2:       #edeae0;
  --bg3:       #e6e2d8;
  --gold:      #8b6914;
  --gold-lt:   #a07c28;
  --ink:       #1a1712;
  --ink-dim:   #5a5448;
  --border:    rgba(139,105,20,0.18);
  --serif:     'Cormorant Garamond', Georgia, serif;
  --sans:      'Jost', sans-serif;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
}

/* ── NOISE ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.15;
}

/* ══════════════════════════════
   NAV
══════════════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 3rem;
  transition: background 0.5s, padding 0.4s;
}
nav.scrolled {
  background: rgba(244,240,232,0.95);
  backdrop-filter: blur(14px);
  padding: 0.9rem 3rem;
  border-bottom: 1px solid var(--border);
}
.nav-logo img { height: 80px; width: auto; display: block; }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-decoration: none;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--gold); }
.nav-right { display: flex; align-items: center; gap: 1.5rem; }
/* ── LANGUAGE DROPDOWN ── */
.flag {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  outline: none;
  box-shadow: none;
  overflow: hidden;
}
.lang-dropdown {
  position: relative;
}
.lang-dd-trigger {
  display: flex; align-items: center; gap: 0.35rem;
  background: none; border: 1px solid var(--border);
  color: var(--ink-dim); cursor: pointer;
  font-size: 0.72rem; letter-spacing: 0.1em; font-family: var(--sans);
  padding: 0.3rem 0.6rem 0.3rem 0.5rem;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.lang-dd-trigger:hover { border-color: var(--gold); color: var(--ink); }
.lang-dd-trigger[aria-expanded="true"] { border-color: var(--gold); color: var(--ink); }
.lang-dd-current { font-weight: 500; }
.lang-dd-arrow { transition: transform 0.2s; flex-shrink: 0; }
.lang-dd-trigger[aria-expanded="true"] .lang-dd-arrow { transform: rotate(180deg); }
.lang-dd-menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  min-width: 130px;
  box-shadow: 0 8px 24px rgba(14,12,10,0.12);
  opacity: 0; pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 200;
}
.lang-dropdown.open .lang-dd-menu {
  opacity: 1; pointer-events: all; transform: translateY(0);
}
.lang-dd-item {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  font-size: 0.78rem; letter-spacing: 0.08em; font-family: var(--sans);
  color: var(--ink-dim); text-decoration: none;
  cursor: pointer; transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.lang-dd-item:hover { background: rgba(139,105,20,0.07); color: var(--ink); }
.lang-dd-item.active { color: var(--gold); font-weight: 600; cursor: default; }
.lang-dd-item.active:hover { background: none; }
.nav-cta {
  font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #f4f0e8; background: var(--gold);
  border: none; padding: 0.65rem 1.6rem;
  cursor: pointer; text-decoration: none;
  transition: background 0.3s;
}
.nav-cta:hover { background: var(--gold-lt); }

/* ══════════════════════════════
   HERO — fullscreen con <img>
══════════════════════════════ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

/* La foto occupa tutto con object-fit */
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  display: block;
  filter: contrast(1.08) brightness(0.9) saturate(0.85);
  z-index: 0;
}

/* Gradiente scuro sopra la foto */
.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20,18,14,0.1) 0%,
    rgba(20,18,14,0.05) 35%,
    rgba(20,18,14,0.65) 75%,
    rgba(20,18,14,0.97) 100%
  );
  z-index: 1;
}

/* VM gigante trasparente */
.hero-vm {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.hero-vm-text {
  font-family: var(--serif);
  font-size: clamp(22vw, 30vw, 38vw);
  font-weight: 300;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201,169,110,0.12);
  letter-spacing: 0.05em;
  line-height: 1;
  user-select: none;
  opacity: 0;
  animation: fadeIn 2.5s 0.3s ease forwards;
}

/* Contenuto hero */
.hero-content {
  position: relative;
  z-index: 3;
  padding: 0 3rem 6rem;
  width: 100%;
  max-width: 900px;
  opacity: 0;
  animation: fadeUp 1.4s 0.7s ease forwards;
}
.hero-tag {
  font-size: 0.65rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: #c9a96e;
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.hero-tag::before {
  content: '';
  display: block;
  width: 36px; height: 1px;
  background: #c9a96e;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  font-weight: 300;
  color: #f4f0e8;
  margin-bottom: 0.6rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}
.hero-name {
  font-family: var(--serif);
  font-size: clamp(4.5rem, 10vw, 8.5rem);
  font-weight: 600;
  line-height: 0.95;
  color: #f4f0e8;
  letter-spacing: 0.04em;
  margin-bottom: 1.8rem;
}
.hero-name em {
  font-style: italic;
  font-weight: 300;
  color: #e2c99a;
}
.hero-sub {
  font-size: 0.85rem;
  color: rgba(244,240,232,0.75);
  letter-spacing: 0.06em;
  line-height: 1.8;
  max-width: 400px;
  margin-bottom: 2.6rem;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2.4rem;
  right: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  z-index: 3;
  opacity: 0;
  animation: fadeIn 1s 2s ease forwards;
  pointer-events: none;
}
.hero-scroll span {
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(244,240,232,0.6);
  writing-mode: vertical-rl;
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, #c9a96e, transparent);
  animation: scrollPulse 2s ease-in-out infinite;
  display: block;
  flex-shrink: 0;
}

/* ══════════════════════════════
   CROSSBOOKING WIDGET
══════════════════════════════ */
.booking-bar {
  background: #1a1712;
  position: relative;
  z-index: 10;
}
.booking-bar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, #c9a96e, transparent);
}
.booking-bar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, #c9a96e, transparent);
}
.booking-widget-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
}

/* ══════════════════════════════
   SEZIONI COMUNI
══════════════════════════════ */
.section-inner { max-width: 1100px; margin: 0 auto; padding: 0 3rem; }
.section-label {
  font-size: 0.65rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--gold);
  display: flex; align-items: center; gap: 0.8rem;
  margin-bottom: 1rem;
}
.section-label::before {
  content: ''; display: block;
  width: 28px; height: 1px; background: var(--gold);
}

/* ══════════════════════════════
   INTRO
══════════════════════════════ */
.intro { padding: 8rem 0 6rem; }
.intro-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6rem; align-items: center;
}
.intro-text h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300; line-height: 1.2;
  margin-bottom: 1.8rem;
}
.intro-text h2 em { font-style: italic; color: var(--gold-lt); }
.intro-text p {
  font-size: 1rem; line-height: 1.9;
  color: var(--ink-dim); margin-bottom: 1.2rem;
}
.intro-img {
  position: relative;
  overflow: hidden;
}
.intro-img img {
  width: 100%; height: 520px;
  object-fit: cover; display: block;
  filter: contrast(1.08) brightness(0.9) saturate(0.75);
}
.stat-row {
  display: flex; gap: 3rem;
  margin-top: 2.5rem; padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; gap: 0.3rem; }
.stat-num {
  font-family: var(--serif);
  font-size: 2.2rem; font-weight: 300;
  color: var(--gold); line-height: 1;
}
.stat-label {
  font-size: 0.68rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--ink-dim);
}

/* ══════════════════════════════
   APPARTAMENTI
══════════════════════════════ */
.apartments { padding: 6rem 0 8rem; background: var(--bg2); }
.apartments-header {
  display: flex; justify-content: space-between;
  align-items: flex-end; margin-bottom: 4rem;
}
.apartments-header h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300; color: var(--ink);
}
.apartments-header p {
  max-width: 340px; font-size: 0.85rem;
  line-height: 1.8; color: var(--ink-dim); text-align: right;
}
.apt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px; background: var(--border);
}
.apt-card {
  background: var(--bg2);
  position: relative; overflow: hidden; cursor: pointer;
}
.apt-featured { grid-column: span 2; }
.apt-img {
  width: 100%; height: 340px;
  object-fit: cover; display: block;
  transition: transform 0.7s ease;
  filter: contrast(1.15) brightness(0.62) saturate(0.7) hue-rotate(5deg);
}
.apt-featured .apt-img { height: 440px; }
.apt-card:hover .apt-img { transform: scale(1.04); filter: contrast(1.1) brightness(0.78) saturate(0.82); }
.apt-last { grid-column: 1 / -1; }
.apt-last .apt-img { height: 260px; }
.apt-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(14,12,10,0.88) 0%, transparent 55%);
  display: flex; flex-direction: column;
  justify-content: flex-end; padding: 2rem;
}
.apt-num {
  font-size: 0.72rem; font-weight: 400;
  letter-spacing: 0.25em; color: #c9a96e; margin-bottom: 0.4rem;
}
.apt-name {
  font-family: var(--serif);
  font-size: 1.5rem; font-weight: 300;
  color: #f4f0e8; margin-bottom: 0.5rem;
}
.apt-desc { font-size: 0.86rem; color: rgba(244,240,232,0.75); line-height: 1.6; margin-bottom: 1rem; }
.apt-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.apt-tag {
  font-size: 0.62rem; letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(201,169,110,0.3);
  color: #070707b3; padding: 0.25rem 0.6rem;
}
.apt-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.68rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: #c9a96e;
  text-decoration: none; margin-top: 1rem;
  transition: gap 0.3s;
}
.apt-link:hover { gap: 0.9rem; }

/* ══════════════════════════════
   SERVIZI
══════════════════════════════ */
.services { padding: 8rem 0; }
.services h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 300; margin-bottom: 4rem; max-width: 500px;
}
.services-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2px; background: var(--border);
}
.svc {
  background: var(--bg); padding: 2.2rem 1.8rem;
  display: flex; flex-direction: column; gap: 1rem;
  transition: background 0.3s;
}
.svc:hover { background: var(--bg3); }
.svc-icon { font-size: 1.5rem; }
.svc-name { font-family: var(--serif); font-size: 1.05rem; font-weight: 300; }
.svc-desc { font-size: 0.86rem; color: var(--ink-dim); line-height: 1.7; }

/* ══════════════════════════════
   POSIZIONE
══════════════════════════════ */
.location { padding: 0 0 8rem; }
.location-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--border); gap: 2px;
}
.location-map { min-height: 440px; }
.map-placeholder {
  width: 100%; height: 100%; min-height: 440px;
  background: linear-gradient(135deg, var(--bg3) 0%, #d8d3c5 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1rem;
}
.map-pin {
  width: 40px; height: 40px;
  border: 1px solid var(--gold);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg); position: relative;
}
.map-pin::after {
  content: ''; position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 10px; height: 10px;
  border-radius: 50%; background: var(--gold);
}
.map-label { font-family: var(--serif); font-size: 0.85rem; color: var(--ink-dim); letter-spacing: 0.1em; }
.location-info {
  background: var(--bg2); padding: 4rem;
  display: flex; flex-direction: column; justify-content: center;
}
.location-info h2 {
  font-family: var(--serif);
  font-size: 2.2rem; font-weight: 300; margin-bottom: 1rem;
}
.location-info h2 em { font-style: italic; color: var(--gold-lt); }
.location-info p { font-size: 0.96rem; line-height: 1.9; color: var(--ink-dim); margin-bottom: 2rem; }
.proximity-list { list-style: none; display: flex; flex-direction: column; gap: 0.8rem; }
.proximity-list li {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.92rem; color: var(--ink-dim);
  padding-bottom: 0.8rem; border-bottom: 1px solid var(--border);
}
.proximity-list li span:last-child {
  font-family: var(--serif); color: var(--gold); font-size: 0.9rem;
}

/* ══════════════════════════════
   CTA
══════════════════════════════ */
.book-cta {
  padding: 8rem 0; text-align: center;
  background: #ede4cc;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.book-cta::before {
  content: 'VM'; position: absolute;
  font-family: var(--serif); font-size: 22vw; font-weight: 300;
  color: rgba(139,105,20,0.05);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none; letter-spacing: 0.2em;
}
.book-cta h2 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 300; margin-bottom: 1rem;
}
.book-cta h2 em { font-style: italic; color: var(--gold-lt); }
.book-cta p { font-size: 1rem; color: var(--ink-dim); margin-bottom: 3rem; }
.cta-buttons { display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap; }

/* ══════════════════════════════
   BOTTONI
══════════════════════════════ */
.btn-primary {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  background: var(--gold); color: #f4f0e8;
  border: none; padding: 1rem 2.8rem;
  cursor: pointer; text-decoration: none; transition: background 0.3s;
  display: inline-block;
}
.btn-primary:hover { background: var(--gold-lt); }
.btn-secondary {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 400;
  letter-spacing: 0.2em; text-transform: uppercase;
  background: transparent; color: var(--ink-dim);
  border: 1px solid var(--border); padding: 1rem 2.8rem;
  cursor: pointer; text-decoration: none; transition: border-color 0.3s, color 0.3s;
  display: inline-block;
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
footer { background: var(--bg); border-top: 1px solid var(--border); padding: 4rem 0 2.5rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 0 3rem; }
.footer-top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem; margin-bottom: 3rem; padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}
.footer-brand .logo {
  font-family: var(--serif); font-size: 1.4rem;
  letter-spacing: 0.25em; color: var(--gold);
  text-decoration: none; display: block; margin-bottom: 1rem;
}
.footer-brand p { font-size: 0.88rem; color: var(--ink-dim); line-height: 1.8; }
.footer-col h4 {
  font-size: 0.65rem; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col ul a { font-size: 0.9rem; color: var(--ink-dim); text-decoration: none; transition: color 0.3s; }
.footer-col ul a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 0.72rem; color: var(--ink-dim); opacity: 0.6; }

/* ══════════════════════════════
   WHATSAPP
══════════════════════════════ */
/* wa-float gestito da .float-buttons */

/* ══════════════════════════════
   ANIMAZIONI
══════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  to { opacity: 1; }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ══════════════════════════════
   SCROLL REVEAL
══════════════════════════════ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ══════════════════════════════
   HAMBURGER
══════════════════════════════ */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  z-index: 1001;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--ink);
  transition: all 0.3s ease;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ══════════════════════════════
   RESPONSIVE — TABLET 768px
══════════════════════════════ */
@media (max-width: 768px) {

  /* NAV */
  nav { padding: 1rem 1.5rem; }
  nav.scrolled { padding: 0.8rem 1.5rem; }
  .nav-hamburger { display: flex; z-index: 1002; position: relative; }
  .nav-hamburger span { background: var(--ink); }
  .nav-hamburger.open span { background: var(--ink); }
  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(244,240,232,0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 1000;
    list-style: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    color: var(--ink);
  }
  .nav-right {
    display: none;
    position: fixed;
    bottom: 3rem;
    left: 0; right: 0;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    z-index: 1001;
  }
  .nav-right.open { display: flex; }
  .nav-cta { width: 200px; text-align: center; padding: 1rem; }

  /* HERO */
  .hero-content { padding: 0 1.5rem 5rem; }
  .hero h1 { font-size: 0.75rem; }
  .hero-name { font-size: clamp(3rem, 14vw, 4.5rem); margin-bottom: 1.2rem; }
  .hero-sub { font-size: 0.8rem; max-width: 100%; margin-bottom: 2rem; }
  .hero-vm-text { font-size: 55vw; }
  .hero-scroll { display: none; }

  /* BOOKING */
  .booking-widget-wrapper { padding: 1rem; }

  /* INTRO */
  .intro { padding: 4rem 0 3rem; }
  .intro-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .intro-img { display: none; }
  .section-inner { padding: 0 1.5rem; }
  .stat-row { gap: 1.5rem; }

  /* APPARTAMENTI */
  .apartments { padding: 3rem 0 4rem; }
  .apartments-header { flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
  .apartments-header p { text-align: left; max-width: 100%; }
  .apt-grid { grid-template-columns: 1fr; gap: 2px; }
  .apt-card, .apt-featured, .apt-last { grid-column: span 1; }
  .apt-img { height: 280px; }
  .apt-featured .apt-img { height: 320px; }
  .apt-last .apt-img { height: 240px; }

  /* SERVIZI */
  .services { padding: 4rem 0; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .services h2 { font-size: 1.8rem; margin-bottom: 2.5rem; }

  /* POSIZIONE */
  .location { padding: 0 0 4rem; }
  .location-grid { grid-template-columns: 1fr; }
  .location-map img { min-height: 280px !important; }
  .location-info { padding: 2.5rem 1.5rem; }
  .location-info h2 { font-size: 1.8rem; }

  /* CTA */
  .book-cta { padding: 5rem 0; }
  .book-cta h2 { font-size: 2rem; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .btn-primary, .btn-secondary { width: 260px; text-align: center; }

  /* FOOTER */
  .footer-top { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* ══════════════════════════════
   RESPONSIVE — MOBILE 480px
══════════════════════════════ */
@media (max-width: 480px) {

  .hero-name { font-size: clamp(2.8rem, 16vw, 3.5rem); }
  .hero h1 { font-size: 0.65rem; letter-spacing: 0.25em; }
  .hero-tag { font-size: 0.6rem; }

  .services-grid { grid-template-columns: 1fr; }

  .apt-img { height: 240px; }

  .intro-text h2 { font-size: 1.8rem; }

  .stat-num { font-size: 1.8rem; }

  .booking-widget-wrapper { padding: 0.8rem; }
}

/* ══════════════════════════════
   FIX ANTI-SCROLL LATERALE
══════════════════════════════ */
.hero,
.hero-vm,
.hero-vm-text,
.apartments,
.apt-grid,
.services,
.services-grid,
.location,
.location-grid,
.intro,
.intro-grid,
.book-cta,
footer,
.booking-bar {
  max-width: 100%;
  overflow-x: hidden;
}

/* Il VM gigante non deve mai uscire */
.hero-vm {
  width: 100%;
  overflow: hidden;
}
.hero-vm-text {
  display: block;
  max-width: 100%;
}

/* Foto hero sempre nei bordi */
.hero-img {
  max-width: 100%;
}

/* Sezioni con padding su mobile */
@media (max-width: 768px) {
  .section-inner {
    padding: 0 1.2rem;
    max-width: 100%;
  }
  .apartments .section-inner,
  .services .section-inner,
  .location .section-inner,
  .intro .section-inner,
  .book-cta .section-inner,
  .footer-inner {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }
  .apt-grid,
  .services-grid,
  .location-grid {
    width: 100%;
    max-width: 100%;
  }
}

/*-------------------------------------------------*/

#prenota {
  scroll-margin-top: 240px;
}
/* ══════════════════════════════
   SEZIONE ROMA — testo + foto
══════════════════════════════ */
.roma-section {
  padding: 8rem 0;
  background: var(--bg);
  overflow: hidden;
}
.roma-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}
.roma-title {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 1.5rem;
}
.roma-title em {
  font-style: italic;
  color: var(--gold-lt);
}
.roma-desc {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--ink-dim);
  margin-bottom: 1.2rem;
}
.roma-cta {
  display: inline-block;
  margin-top: 1rem;
}

/* Foto sovrapposte */
.roma-photos {
  position: relative;
  height: 600px;
}
.roma-photo {
  position: absolute;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(20,18,14,0.18);
}
.roma-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.08) brightness(0.92) saturate(0.82);
  transition: transform 0.6s ease;
}
.roma-photo:hover img { transform: scale(1.04); }

/* Foto 1 — grande in alto a destra */
.roma-photo-1 {
  width: 64%;
  height: 48%;
  top: 0;
  right: 0;
  transform: rotate(1.5deg);
  z-index: 3;
}
/* Foto 2 — media in basso a sinistra */
.roma-photo-2 {
  width: 52%;
  height: 42%;
  bottom: 8%;
  left: 0;
  transform: rotate(-2deg);
  z-index: 2;
}
/* Foto 3 — separata, in basso a destra, ben visibile */
.roma-photo-3 {
  width: 44%;
  height: 38%;
  bottom: 0;
  right: 2%;
  transform: rotate(1deg);
  z-index: 4;
  box-shadow: 0 16px 48px rgba(20,18,14,0.25);
}

/* Animazioni foto */
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 1s ease, transform 1s ease;
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-photo-1 {
  opacity: 0;
  transform: translateY(-30px) rotate(2deg);
  transition: opacity 0.9s 0.1s ease, transform 0.9s 0.1s ease;
}
.reveal-photo-1.visible {
  opacity: 1;
  transform: translateY(0) rotate(2deg);
}
.reveal-photo-2 {
  opacity: 0;
  transform: translateY(30px) rotate(-1.5deg);
  transition: opacity 0.9s 0.25s ease, transform 0.9s 0.25s ease;
}
.reveal-photo-2.visible {
  opacity: 1;
  transform: translateY(0) rotate(-1.5deg);
}
.reveal-photo-3 {
  opacity: 0;
  transform: translateX(30px) rotate(1deg);
  transition: opacity 0.9s 0.4s ease, transform 0.9s 0.4s ease;
}
.reveal-photo-3.visible {
  opacity: 1;
  transform: translateX(0) rotate(1deg);
}

/* ══════════════════════════════
   I NOSTRI APPARTAMENTI — 3 card
══════════════════════════════ */
.apartments-new {
  padding: 7rem 0 8rem;
  background: var(--bg2);
}
.apartments-new-header {
  text-align: center;
  margin-bottom: 4rem;
}
.apartments-new-header h2 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 0.8rem;
}
.apartments-new-header h2 em {
  font-style: italic;
  color: var(--gold-lt);
}
.apartments-new-header p {
  font-size: 0.95rem;
  color: var(--ink-dim);
}
.apts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}
.apt-new-card {
  background: var(--bg);
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.apt-new-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(20,18,14,0.12);
}
.apt-new-img-wrap {
  position: relative;
  overflow: hidden;
  height: 280px;
}
.apt-new-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.08) brightness(0.88) saturate(0.8);
  transition: transform 0.6s ease, filter 0.4s ease;
}
.apt-new-card:hover .apt-new-img-wrap img {
  transform: scale(1.06);
  filter: contrast(1.05) brightness(0.95) saturate(0.88);
}
.apt-new-badge {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  font-family: var(--serif);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: #f4f0e8;
  background: rgba(14,12,10,0.55);
  backdrop-filter: blur(6px);
  padding: 0.3rem 0.7rem;
}
.apt-new-body {
  padding: 2rem;
}
.apt-new-num {
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.apt-new-title {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 0.8rem;
}
.apt-new-title em {
  font-style: italic;
  color: var(--gold-lt);
}
.apt-new-desc {
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--ink-dim);
  margin-bottom: 1.2rem;
}
.apt-new-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}
.apt-new-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.2rem;
  transition: color 0.3s, border-color 0.3s, gap 0.3s;
}
.apt-new-cta:hover {
  color: var(--gold-lt);
  border-color: var(--gold-lt);
  gap: 0.7rem;
}
.apts-all-cta {
  text-align: center;
  margin-top: 1rem;
}

/* ══════════════════════════════
   RESPONSIVE NUOVE SEZIONI
══════════════════════════════ */
@media (max-width: 900px) {
  .roma-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 0 1.5rem;
  }
  .roma-photos {
    height: 380px;
  }
  .roma-section { padding: 5rem 0; }
  .apts-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .apt-new-img-wrap { height: 240px; }
}

@media (max-width: 480px) {
  .roma-photos { height: 320px; }
  .roma-photo-1 { width: 72%; height: 52%; }
  .roma-photo-2 { width: 65%; height: 48%; }
  .roma-photo-3 { display: none; }
  /* Bottone appartamenti compatto su mobile */
  .apts-all-cta { margin-top: 0.5rem; }
  .apts-all-cta .btn-secondary {
    width: auto;
    padding: 0.8rem 1.6rem;
    font-size: 0.72rem;
  }
}

/* ══════════════════════════════
   ACCESSIBILITÀ — WCAG 2.1 AA
   Testi minimi 16px corpo,
   contrasti adeguati, focus visibili
══════════════════════════════ */

/* Base font size aumentato */
body { font-size: 1rem; }

/* Tutti i testi corpo almeno 16px */
.apt-row-desc,
.apt-new-desc,
.intro-text p,
.roma-desc,
.svc-desc,
.location-info p,
.footer-brand p,
.hero-sub,
.book-cta p,
.gallery-hero p,
.apartments-new-header p {
  font-size: 1rem;
  line-height: 1.75;
}

/* Testi secondari almeno 14px */
.apt-row-details li,
.proximity-list li,
.footer-col ul a,
.footer-bottom p,
.slider-counter,
.apt-tag,
.apt-new-tags .apt-tag {
  font-size: 0.875rem;
}

/* Label sezione almeno 13px */
.section-label,
.apt-num,
.apt-new-num,
.apt-row-num,
.nav-links a,
.nav-cta {
  font-size: 0.8125rem;
}

/* Focus visibile su tutti gli elementi interattivi */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Skip link per screen reader */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--gold);
  color: #1a1712;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* Contrasto testo su sfondo chiaro */
.ink-dim-accessible {
  color: #4a4438; /* più scuro di --ink-dim per contrasto 4.5:1 */
}

/* Bottoni con testo leggibile */
.btn-primary,
.btn-secondary,
.nav-cta,
.booking-btn,
.apt-new-cta {
  min-height: 44px; /* touch target minimo 44x44px */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Link sempre distinguibili */
.apt-link,
.apt-new-cta {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.apt-link:hover,
.apt-new-cta:hover {
  text-decoration: none;
}

/* Immagini con alt text — già presenti, assicuriamo che non siano decorative senza alt */
img:not([alt]) { outline: 2px solid red; } /* debug — rimuovere in produzione */

/* Riduzione movimento per chi lo preferisce */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Mobile accessibilità */
@media (max-width: 768px) {
  body { font-size: 1.0625rem; } /* 17px su mobile */
  .hero-sub { font-size: 1rem; }
  .apt-row-desc,
  .apt-new-desc,
  .roma-desc { font-size: 1rem; }
  .nav-links a { font-size: 1.5rem; } /* menu mobile grande e leggibile */
}

/* ── INSTAGRAM NAV ── */
.nav-instagram {
  color: var(--ink-dim);
  display: flex;
  align-items: center;
  transition: color 0.3s;
  text-decoration: none;
}
.nav-instagram svg { width: 22px; height: 22px; }
.nav-instagram:hover { color: var(--gold); }
nav.scrolled .nav-instagram { color: var(--ink-dim); }

/* ── FLOAT BUTTONS — WA + Viber ── */
.float-buttons {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 800;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: center;
}
.wa-float,
.viber-float {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.3s;
}
.wa-float:hover,
.viber-float:hover { transform: scale(1.08); }

.wa-float {
  background: #25d366;
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
}
.wa-float svg { width: 26px; height: 26px; fill: white; }

.viber-float {
  background: #7360f2;
  box-shadow: 0 4px 20px rgba(115,96,242,0.35);
}
.viber-float svg { width: 26px; height: 26px; color: white; }

@media (max-width: 768px) {
  .float-buttons { bottom: 1.2rem; right: 1.2rem; }
  .wa-float, .viber-float { width: 46px; height: 46px; }
}

/* ══════════════════════════════
   SERVIZI — card cliccabili + transfer
══════════════════════════════ */

/* Card cliccabile — chiaramente interattiva */
.svc-clickable {
  cursor: pointer;
  position: relative;
  border-bottom: 2px solid transparent;
  transition: background 0.3s, border-color 0.3s, transform 0.2s;
}
.svc-clickable .svc-desc {
  color: var(--gold);
  font-weight: 400;
}
.svc-clickable::before {
  content: '→';
  position: absolute;
  bottom: 1.2rem;
  right: 1.4rem;
  font-size: 1rem;
  color: var(--gold);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.3s, transform 0.3s;
}
.svc-clickable:hover {
  background: var(--bg3);
  border-bottom-color: var(--gold);
  transform: translateY(-2px);
}
.svc-clickable:hover::before {
  opacity: 1;
  transform: translateX(0);
}
.svc-clickable:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Card Transfer — wide, dark, premium */
.svc-transfer {
  margin-top: 2px;
  background: #1a1712;
  border: none;
  padding: 2.4rem 2.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 0.4s;
}
/* Linea gold sopra */
.svc-transfer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, #c9a96e, transparent);
}
/* Numero decorativo */
.svc-transfer::after {
  content: '01';
  position: absolute;
  right: -0.5rem;
  bottom: -1rem;
  font-family: var(--serif);
  font-size: 8rem;
  font-weight: 300;
  color: rgba(201,169,110,0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.svc-transfer:hover { background: #211e18; }
.svc-transfer:focus-visible { outline: 2px solid #c9a96e; }

.svc-transfer-left {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  flex: 1;
  position: relative;
  z-index: 1;
}
.svc-transfer-left .svc-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}
.svc-transfer-badge {
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #c9a96e;
  margin-bottom: 0.5rem;
}
.svc-transfer-left .svc-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 300;
  color: #f4f0e8;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}
.svc-transfer-left .svc-desc {
  font-size: 0.88rem;
  color: rgba(244,240,232,0.65);
  line-height: 1.7;
}
.svc-transfer-cta {
  position: relative;
  z-index: 1;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #1a1712;
  background: #c9a96e;
  padding: 0.85rem 2rem;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.3s;
}
.svc-transfer:hover .svc-transfer-cta {
  background: #e2c99a;
}

/* ══════════════════════════════
   MODAL GENERICO
══════════════════════════════ */
.svc-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.svc-modal.open {
  opacity: 1;
  pointer-events: all;
}
.svc-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14,12,10,0.7);
  backdrop-filter: blur(4px);
}
.svc-modal-box {
  position: relative;
  z-index: 1;
  background: var(--bg);
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2.5rem;
  box-shadow: 0 24px 80px rgba(14,12,10,0.3);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}
.svc-modal.open .svc-modal-box {
  transform: translateY(0);
}
.svc-modal-box--wide {
  max-width: 720px;
}
.svc-modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: none;
  border: 1px solid var(--border);
  color: var(--ink-dim);
  width: 32px; height: 32px;
  cursor: pointer; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}
.svc-modal-close:hover { border-color: var(--gold); color: var(--ink); }
.svc-modal-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border);
}
.svc-modal-header .svc-icon { font-size: 1.6rem; }
.svc-modal-header h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--ink);
}
.svc-modal-body p {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--ink-dim);
  margin-bottom: 1.2rem;
}
.svc-modal-img {
  margin: 1.2rem 0;
  overflow: hidden;
}
.svc-modal-img img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  display: block;
  filter: contrast(1.05) brightness(0.92) saturate(0.85);
}
/* Immagine menu: mostra per intero senza crop */
.svc-modal-img--menu {
  overflow: visible;
}
.svc-modal-img--menu img {
  max-height: none;
  object-fit: contain;
  filter: none;
  border-radius: 2px;
}
.svc-modal-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 1.2rem 0;
}
.svc-modal-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.9rem;
  color: var(--ink-dim);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}
.svc-modal-item span { font-size: 1.1rem; }
.svc-modal-note {
  font-size: 0.8rem !important;
  color: var(--ink-dim);
  opacity: 0.7;
  font-style: italic;
}

/* ── COME RAGGIUNGERCI modal ── */
.reach-card {
  display: flex;
  gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--border);
}
.reach-card:last-of-type { border-bottom: none; }
.reach-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 0.1rem; }
.reach-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.6rem;
}
.reach-items { display: flex; flex-direction: column; gap: 0.5rem; }
.reach-item {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--ink-dim);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.reach-badge {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 0.1rem 0.5rem;
  font-size: 0.72rem;
  white-space: nowrap;
  flex-shrink: 0;
  color: var(--ink);
}
.reach-note {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.2rem;
  padding: 1rem;
  background: var(--bg2);
  font-size: 0.85rem;
  color: var(--ink-dim);
}
.reach-note a {
  color: var(--gold);
  text-decoration: none;
}
.reach-note a:hover { text-decoration: underline; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .svc-transfer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.8rem 1.5rem;
  }
  .svc-transfer-cta {
    align-self: stretch;
    text-align: center;
    padding: 0.85rem 1rem;
  }
  .svc-modal-box { padding: 1.5rem; }
  .reach-item { flex-direction: column; gap: 0.3rem; }
}

/* ── BOTTONE CARD CLICCABILI — uguale a transfer CTA ── */
.svc-btn {
  display: inline-block;
  margin-top: 1.2rem;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #1a1712;
  background: #c9a96e;
  padding: 0.65rem 1.2rem;
  width: fit-content;
  transition: background 0.3s;
}
.svc-clickable:hover .svc-btn {
  background: #e2c99a;
}
