/* A Villa in Puglia — shared stylesheet
   Mediterranean palette: warm cream, olive, terracotta, sand */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

:root {
  /* Mediterranean palette — sfondo bianco puro, blu Adriatico */
  --background: #ffffff;
  --foreground: oklch(0.22 0.05 230);
  --card: #ffffff;
  --primary: oklch(0.22 0.05 230);
  --primary-foreground: #ffffff;
  --secondary: #ffffff;
  --muted: #ffffff;
  --muted-foreground: oklch(0.42 0.04 230);
  --accent: oklch(0.55 0.12 220);
  --accent-foreground: #ffffff;
  --border: oklch(0.9 0.01 230);
  --sand: #ffffff;

  --font-display: "Cormorant Garamond", ui-serif, Georgia, serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;

  --radius: 0.25rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; border-color: var(--border); }
html { scroll-behavior: smooth; }
body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

.eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  color: var(--muted-foreground);
  font-weight: 500;
}

main { background-color: var(--background); color: var(--foreground); }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; left: 0; right: 0; z-index: 30;
  transition: background-color .5s, color .5s, border-color .5s;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  color: var(--foreground);
}
.nav.transparent {
  position: fixed;
  background: transparent;
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  color: var(--primary-foreground);
}
.nav.transparent.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  color: var(--foreground);
}
.nav-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
}
@media (min-width: 768px) { .nav-inner { padding: 1.25rem 2.5rem; } }

.brand { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: 0.02em; }
.brand i { font-style: italic; }

.nav-links { display: none; gap: 2.25rem; text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.74rem; }
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-links a { transition: opacity .2s; }
.nav-links a:hover { opacity: .7; }
.nav-links a.active { border-bottom: 1px solid currentColor; padding-bottom: 2px; }

.nav-cta {
  text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.7rem;
  border: 1px solid currentColor; padding: 0.625rem 1.25rem;
  transition: background-color .2s, color .2s;
}
.nav.transparent:not(.scrolled) .nav-cta { border-color: rgba(255,255,255,0.6); }
.nav-cta:hover { background: currentColor; color: var(--background); }

/* ---------- HERO ---------- */
.hero {
  position: relative; width: 100%; overflow: hidden;
  height: 100vh; min-height: 640px;
}
.hero img.bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.55));
}
.hero .content {
  position: relative; z-index: 10; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 1.5rem; color: var(--primary-foreground);
}
.hero .eyebrow { color: rgba(255,255,255,0.8); margin-bottom: 1.5rem; }
.hero h1 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.75rem, 6vw, 5.5rem);
  max-width: 56rem; line-height: 1.02;
}
.hero h1 i { font-style: italic; }
.hero p.lead {
  margin-top: 2rem; max-width: 36rem;
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  font-weight: 300;
  color: rgba(255,255,255,0.9);
}
.thin-link {
  display: inline-block;
  text-transform: uppercase; letter-spacing: 0.32em; font-size: 0.72rem;
  border-bottom: 1px solid rgba(255,255,255,0.6); padding-bottom: 4px;
  transition: opacity .2s;
}
.thin-link:hover { opacity: .8; }
.hero .thin-link { margin-top: 3rem; }

/* ---------- PAGE HERO ---------- */
.page-hero {
  position: relative; width: 100%; overflow: hidden;
  height: 60vh; min-height: 420px;
}
.page-hero img.bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.villa-page .page-hero img.bg {
  inset:unset; bottom: -60px; height: auto;
}
.page-hero .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55), rgba(0,0,0,0.25) 50%, rgba(0,0,0,0.55));
}
.page-hero .content {
  position: relative; z-index: 10; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  text-align: center; padding: 0 1.5rem 5rem; color: var(--primary-foreground);
}
.page-hero .eyebrow { color: rgba(255,255,255,0.8); margin-bottom: 1.25rem; }
.page-hero h1 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.5rem, 5.5vw, 4.5rem); line-height: 1.05; max-width: 48rem;
}
.page-hero h1 i { font-style: italic; }

/* ---------- LAYOUT ---------- */
.container { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 7rem 1.5rem; }
@media (min-width: 768px) { .section { padding: 9rem 1.5rem; } }
.section.tight { padding: 5rem 1.5rem; }
@media (min-width: 768px) { .section.tight { padding: 7rem 1.5rem; } }
.section.bg-secondary { background: #ffffff; }
.section.bg-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

/* ---------- GRIDS ---------- */
.grid-12 { display: grid; grid-template-columns: repeat(1, 1fr); gap: 3rem; }
@media (min-width: 768px) {
  .grid-12 { grid-template-columns: repeat(12, 1fr); gap: 5rem; align-items: center; }
}
.col-5 { grid-column: span 1; }
.col-7 { grid-column: span 1; }
@media (min-width: 768px) {
  .col-5 { grid-column: span 5; }
  .col-7 { grid-column: span 7; }
}
.col-6 { grid-column: span 1; }
@media (min-width: 768px) {
  .col-6 { grid-column: span 6; }
  .col-6-start-7 { grid-column: 7 / span 6; }
}

.two-img-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
}
@media (min-width: 768px) { .two-img-grid { gap: 1.5rem; } }
.two-img-grid img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--radius);
}
.two-img-grid img:first-child { margin-top: 3rem; }

/* Reveal allo scroll (sezione Benvenuti) */
.reveal {
  opacity: 0;
  transform: translateY(110px) scale(0.92);
  filter: blur(6px);
  transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
              filter 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}
.reveal-group .reveal:nth-child(1) { transition-delay: 0.05s; }
.reveal-group .reveal:nth-child(2) { transition-delay: 0.28s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
}

h2.display, h3.display {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1.1;
  color: var(--primary);
}
h2.display i, h3.display i { font-style: italic; }
h2.section-title { font-size: clamp(1.875rem, 3vw, 2.5rem); }

p.body {
  margin-top: 2rem; color: var(--muted-foreground); line-height: 1.7;
  max-width: 36rem;
}

.inline-link {
  display: inline-block; margin-top: 2rem;
  text-transform: uppercase; letter-spacing: 0.28em; font-size: 0.72rem;
  border-bottom: 1px solid currentColor; padding-bottom: 4px;
}

/* ---------- DISCOVER CARDS ---------- */
.cards { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-top: 4rem; }
@media (min-width: 768px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { display: block; }
.card .img-wrap { overflow: hidden; border-radius: var(--radius); }
.card .img-wrap img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  transition: transform .7s ease;
}
.card:hover .img-wrap img { transform: scale(1.03); }
.card h3 {
  font-family: var(--font-display); font-size: 1.5rem;
  color: var(--primary); margin-top: 1.5rem;
}
.card p {
  margin-top: 0.75rem; color: var(--muted-foreground);
  font-size: 0.875rem; line-height: 1.6;
}
.card .arrow {
  display: inline-block; margin-top: 1rem;
  text-transform: uppercase; letter-spacing: 0.28em; font-size: 0.7rem;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}

/* ---------- CTA BAND ---------- */
.cta-band { padding: 6rem 1.5rem; text-align: center; }
.cta-band.bg-primary {
  background: #90e0ef;
  color: oklch(0.22 0.05 230);
}
.cta-band h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1.1;
  max-width: 48rem; margin: 0 auto;
}
.cta-band h2 i { font-style: italic; }
.cta-band.bg-primary .btn-cta {
  background: oklch(0.22 0.05 230);
  color: #ffffff;
}
.cta-band.bg-primary .btn-cta:hover {
  background: #ffffff;
  color: oklch(0.22 0.05 230);
}

/* CTA band con immagine di sfondo (mare aereo) */
.cta-band.cta-image {
  position: relative; overflow: hidden;
  background-image: url('assets/sea-aerial.jpg');
  background-size: cover;
  background-position: center;
  color: #ffffff;
  padding: 9rem 1.5rem;
  min-height: 30rem;
  display: flex; align-items: center; justify-content: center;
}
.cta-band.cta-image .cta-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(3, 4, 94, 0.45),
    rgba(3, 4, 94, 0.25) 45%,
    rgba(3, 4, 94, 0.55)
  );
}
.cta-band.cta-image .cta-content {
  position: relative; z-index: 2;
  max-width: 48rem; margin: 0 auto;
  text-shadow: 0 1px 24px rgba(0, 0, 0, 0.35);
}
.cta-band.cta-image h2 {
  color: #ffffff;
}
.cta-band.cta-image .btn-cta {
  background: #ffffff;
  color: oklch(0.22 0.05 230);
  text-shadow: none;
}
.cta-band.cta-image .btn-cta:hover {
  background: #90e0ef;
  color: oklch(0.22 0.05 230);
}

/* Variante con foto dell'ulivo (camere.html) — DEVE stare dopo .cta-image per sovrascrivere */
.cta-band.cta-image.cta-olive {
  background-image: url('assets/olive-tree-sky.jpg');
  background-position: 65% 55%;
}
.cta-band.cta-image.cta-olive .cta-scrim {
  background: linear-gradient(
    to bottom,
    rgba(3, 4, 53, 0.20),
    rgba(3, 4, 53, 0.45) 55%,
    rgba(3, 4, 53, 0.65)
  );
}
.btn-cta {
  display: inline-block; margin-top: 2.5rem;
  text-transform: uppercase; letter-spacing: 0.28em; font-size: 0.74rem;
  background: var(--primary-foreground); color: var(--primary);
  padding: 1rem 2rem;
  transition: background-color .2s, color .2s;
}
.btn-cta:hover { background: var(--accent); color: var(--accent-foreground); }

/* ---------- FOOTER ---------- */
.footer {
  background: #030435;
  padding: 3rem 1.5rem;
  border-top: 1px solid #030435;
  color: #ffffff;
}
.footer-grid {
  max-width: 72rem; margin: 0 auto;
  display: grid; grid-template-columns: 1fr; gap: 2rem;
  font-size: 0.875rem; color: rgba(255,255,255,0.78);
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid .center { align-items: center; }
  .footer-grid .right { text-align: right; }
}
.footer-grid p.title {
  font-family: var(--font-display); font-size: 1.125rem; color: #ffffff;
}
.footer-grid .center { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-grid .center a { transition: color .2s; color: rgba(255,255,255,0.78); }
.footer-grid .center a:hover { color: #90e0ef; }
.footer-grid .right a { color: #ffffff; }
.footer-grid .small { font-size: 0.75rem; margin-top: 1.5rem; color: rgba(255,255,255,0.55); }

/* ---------- VILLA: STATS + SERVICES ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.stat .num {
  font-family: var(--font-display); font-size: 2rem; color: var(--accent);
  line-height: 1;
}
@media (min-width: 768px) { .stat .num { font-size: 2.25rem; } }
.stat .lab { margin-top: 0.25rem; }

.services {
  list-style: none; display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2rem; padding-top: 2.5rem; border-top: 1px solid var(--border);
}
@media (min-width: 768px) { .services { grid-template-columns: repeat(4, 1fr); } }
.services li {
  display: flex; align-items: flex-start; gap: 0.75rem;
  font-size: 0.95rem; font-weight: 300;
}
.dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); margin-top: 0.6rem; flex-shrink: 0;
}

/* ---------- CAMERE ---------- */
.text-center { text-align: center; }
.intro-block { max-width: 48rem; margin: 0 auto; text-align: center; }
.intro-block h2 { color: var(--primary); font-size: clamp(1.625rem, 2.8vw, 2.25rem); }
.intro-block p { margin: 1.5rem auto 0; color: var(--muted-foreground); max-width: 40rem; }

.rooms { display: flex; flex-direction: column; gap: 6rem; }
@media (min-width: 768px) { .rooms { gap: 9rem; } }
.room {
  display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: start;
}
@media (min-width: 768px) {
  .room { grid-template-columns: 336px 1fr; gap: 4rem; }
  .room.reverse > .room-img { order: 2; }
  .room.reverse > .room-text { order: 1; }
  .room.reverse { grid-template-columns: 1fr 336px; }
}
.room-img { overflow: hidden; border-radius: var(--radius); }
.room-img img { width: 336px; height: 448px; max-width: 100%; object-fit: cover; }
.room-text h3 {
  font-family: var(--font-display); font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  color: var(--primary); line-height: 1.15;
}
.room-text .sub {
  font-family: var(--font-display); font-style: italic;
  font-size: 1.25rem; color: var(--accent); margin-top: 0.5rem;
}
.room-text p { margin-top: 1.5rem; color: var(--muted-foreground); line-height: 1.7; }
.feature-list {
  list-style: none; margin-top: 2rem; padding-top: 1.5rem;
  border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 0.75rem;
}
.feature-list li {
  display: flex; align-items: flex-start; gap: 0.75rem;
  font-size: 0.875rem; font-weight: 300;
}

/* ---------- GALLERIA ---------- */
.cat-row {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.75rem; margin-bottom: 3rem;
}
@media (min-width: 768px) { .cat-row { gap: 1.5rem; } }
.cat-btn {
  text-transform: uppercase; letter-spacing: 0.24em; font-size: 0.72rem;
  padding: 0.5rem 1rem; border: 1px solid var(--border);
  color: var(--muted-foreground); transition: all .2s;
}
.cat-btn:hover { color: var(--foreground); border-color: var(--foreground); }
.cat-btn.active {
  background: var(--primary); color: var(--primary-foreground); border-color: var(--primary);
}

.masonry { column-count: 1; column-gap: 1rem; }
@media (min-width: 640px) { .masonry { column-count: 2; } }
@media (min-width: 1024px) { .masonry { column-count: 3; column-gap: 1.5rem; } }
.masonry .tile {
  display: block; width: 100%; margin-bottom: 1rem; overflow: hidden;
  border-radius: var(--radius); break-inside: avoid;
}
@media (min-width: 1024px) { .masonry .tile { margin-bottom: 1.5rem; } }
.masonry .tile img {
  width: 100%; object-fit: cover; transition: transform .7s ease;
}
.masonry .tile:hover img { transform: scale(1.03); }
.masonry .tile.tall img { aspect-ratio: 3/4; }
.masonry .tile.wide img { aspect-ratio: 4/3; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,0.9);
  display: none; align-items: center; justify-content: center; padding: 1rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 90vh; max-width: 90vw; object-fit: contain; }
.lb-close, .lb-prev, .lb-next {
  position: absolute; color: rgba(255,255,255,0.8); transition: color .2s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { color: white; }
.lb-close { top: 1.5rem; right: 1.5rem; font-size: 2rem; line-height: 1; }
.lb-prev { left: 1.5rem; font-size: 2.5rem; line-height: 1; }
.lb-next { right: 1.5rem; font-size: 2.5rem; line-height: 1; }

.exp {
  display: flex; flex-direction: column;
}
.exp h3 { font-size: 1.375rem; font-weight: 400; color: var(--primary); margin-bottom: 0.25rem; }
.exp .sub {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--accent); margin-bottom: 1rem;
}
.exp p { color: var(--muted-foreground); font-size: 0.95rem; line-height: 1.6; }
.exp-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .exp-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.exp { display: block; }
@media (min-width: 768px) { .exp.offset { transform: translateY(3rem); } }
.exp .img-wrap { overflow: hidden; border-radius: var(--radius); }
.exp .img-wrap img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  transition: transform .7s ease;
}
.exp:hover .img-wrap img { transform: scale(1.03); }
.exp h3 { font-family: var(--font-display); font-size: 1.5rem; color: var(--primary); margin-top: 1.5rem; }
.exp p { margin-top: 0.75rem; font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.6; }

/* Booking links (contatti.html) */
.booking-links {
  display: flex; flex-direction: column; gap: 1rem;
  justify-content: center;
}
.booking-card {
  display: flex; align-items: center; gap: 1.5rem;
  padding: 1.5rem 2rem;
  border: 1px solid var(--border);
  color: var(--foreground);
  transition: border-color .2s, box-shadow .2s;
  text-decoration: none;
}
.booking-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 24px -8px rgba(3,4,53,0.12);
}
.booking-logo {
  width: 2.5rem; height: 2.5rem; flex-shrink: 0;
  color: var(--primary);
}
.booking-logo svg { width: 100%; height: 100%; }
.booking-logo-img {
  width: 4rem; height: 2.5rem;
  display: flex; align-items: center; justify-content: flex-start;
}
.booking-logo-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.booking-info {
  flex: 1; display: flex; flex-direction: column; gap: 0.25rem;
}
.booking-name {
  font-family: var(--font-display); font-size: 1.375rem;
  color: var(--primary); line-height: 1;
}
.booking-sub {
  font-size: 0.8rem; text-transform: uppercase;
  letter-spacing: 0.2em; color: var(--muted-foreground);
}
.booking-arrow {
  width: 1.25rem; height: 1.25rem; flex-shrink: 0;
  color: var(--accent);
  transition: transform .2s;
}
.booking-card:hover .booking-arrow { transform: translateX(4px); }
.map-hero {
  width: 100%; height: 60vh; min-height: 400px;
  position: relative; overflow: hidden;
}
.map-hero iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: 0;
}
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 4rem; max-width: 64rem; margin: 0 auto; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.contact-info h2 { color: var(--primary); font-size: clamp(1.75rem, 2.8vw, 2.25rem); }
.contact-info .body { margin-top: 1.5rem; }
.contact-block { display: flex; flex-direction: column; gap: 1rem; margin-top: 2.5rem; font-size: 0.875rem; }
.contact-block a { color: var(--foreground); transition: color .2s; }
.contact-block a:hover { color: var(--accent); }
.contact-block .eyebrow { margin-bottom: 0.25rem; }

.form {
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 2rem; border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 1.25rem;
}
@media (min-width: 768px) { .form { padding: 2.5rem; } }
.field label { display: block; margin-bottom: 0.5rem; }
.field input, .field textarea {
  width: 100%; background: var(--background); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.75rem 1rem; font-size: 0.875rem;
  font-family: inherit; color: var(--foreground); outline: none;
  transition: border-color .2s;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 7rem; }
.submit {
  width: 100%; text-transform: uppercase; letter-spacing: 0.28em; font-size: 0.74rem;
  background: var(--primary); color: var(--primary-foreground);
  padding: 1rem 2rem; transition: background-color .2s, color .2s;
}
.submit:hover { background: var(--accent); color: var(--accent-foreground); }

/* Variante trulli (esperienze.html) */
.cta-band.cta-trulli {
  background-image: url('assets/trulli-alberobello.jpg');
  background-position: center 55%;
}
.cta-band.cta-trulli .cta-scrim {
  background: linear-gradient(
    to bottom,
    rgba(3, 4, 53, 0.20),
    rgba(3, 4, 53, 0.40) 50%,
    rgba(3, 4, 53, 0.65)
  );
}

/* Variante limoni (galleria.html) */
.cta-band.cta-limoni {
  background-image: url('assets/limoni.jpg');
  background-position: center 60%;
}
.cta-band.cta-limoni .cta-scrim {
  background: linear-gradient(
    to bottom,
    rgba(3, 4, 53, 0.30),
    rgba(3, 4, 53, 0.45) 55%,
    rgba(3, 4, 53, 0.65)
  );
}

/* Tiny inline link for villa section bottom */
.row-links { margin-top: 4rem; display: flex; flex-wrap: wrap; gap: 1.5rem; }
.row-links a {
  text-transform: uppercase; letter-spacing: 0.28em; font-size: 0.72rem;
  border-bottom: 1px solid currentColor; padding-bottom: 4px;
}

/* ---------- CAROSELLO MARQUEE (home) ---------- */
.carousel-section { padding: 3rem 0 4rem; }
@media (min-width: 768px) { .carousel-section { padding: 3.5rem 0 5rem; } }

.marquee {
  position: relative;
  width: 100%;
}
.marquee-viewport {
  overflow: hidden;
  width: 100%;
  padding: 0.5rem 0;
}
.marquee-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  will-change: transform;
  padding: 0 1.5rem;
}
@media (min-width: 768px) {
  .marquee-track { gap: 2rem; padding: 0 2.5rem; }
}
.marquee .m-card {
  margin: 0;
  flex: 0 0 auto;
  width: 480px;
  height: 360px;
  background: #ffffff;
  padding: 0;
  border: none;
}
.marquee .m-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.marquee-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: #ffffff;
  border: 1px solid var(--border);
  color: oklch(0.22 0.05 230);
  z-index: 4;
  transition: background-color .2s, color .2s;
}
.marquee-arrow:hover {
  background: oklch(0.22 0.05 230);
  color: #ffffff;
}
.marquee-arrow.prev { left: 1rem; }
.marquee-arrow.next { right: 1rem; }
@media (min-width: 768px) {
  .marquee-arrow.prev { left: 1.5rem; }
  .marquee-arrow.next { right: 1.5rem; }
}

/* ---------- Servizi (villa.html) — layout a 2 colonne con lista orizzontale ---------- */
.services-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: start; margin-bottom: 2.5rem;
}
@media (max-width: 767px) {
  .services-layout { grid-template-columns: 1fr; gap: 2rem; }
}
.services-left h2 { color: var(--primary); font-size: clamp(1.875rem, 3vw, 2.25rem); }
.services-right p {
  color: var(--muted-foreground); line-height: 1.7; font-size: 0.95rem;
  padding-top: calc(1rem + 1.5rem + 0.2rem); /* compensa eyebrow + margin-bottom */
}

.services-list {
  list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2rem 3rem;
}
@media (max-width: 1023px) {
  .services-list { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 2rem; }
}
@media (max-width: 639px) {
  .services-list { grid-template-columns: 1fr; gap: 1rem; }
}
.services-list li {
  position: relative; padding-left: 2.25rem;
  color: var(--primary); font-size: 0.95rem; line-height: 1.5;
}
.services-list li:before { display: none; }
.svc-icon {
  position: absolute; left: 0; top: 0.05em;
  width: 1.25rem; height: 1.25rem;
  color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
}
.svc-icon svg {
  width: 100%; height: 100%;
}

.row-links { margin-top: 0; display: flex; flex-wrap: wrap; gap: 1.5rem; }

/* La casa — allineamento CTA */
.casa-grid { align-items: stretch !important; }
.casa-col {
  display: flex; flex-direction: column; justify-content: space-between;
}
.casa-top { flex: 1; }
.villa-img-stack {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
@media (min-width: 768px) { .villa-img-stack { gap: 1.25rem; } }
.villa-img-stack img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--radius);
}
.villa-img-stack img:first-child { margin-top: 2.5rem; }
.villa-text { display: flex; flex-direction: column; justify-content: center; }
.villa-features {
  list-style: none; margin-top: 2rem; padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 0.75rem;
}
.villa-features li {
  display: flex; align-items: flex-start; gap: 0.75rem;
  font-size: 0.9rem; color: var(--muted-foreground); font-weight: 300;
}

/* ============================================================
   MOBILE / PUBLISH — aggiunte non invasive (nessuna modifica
   al design esistente: solo navigazione mobile e rifiniture).
   ============================================================ */

/* Evita lo zoom automatico del testo su iOS in rotazione */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* L'ancoraggio interno non finisce sotto la nav sticky */
html { scroll-padding-top: 5rem; }

/* ---------- HAMBURGER (solo mobile) ---------- */
.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center;
  align-items: center; gap: 5px;
  width: 2.75rem; height: 2.75rem; margin-right: -0.5rem;
  color: inherit; -webkit-tap-highlight-color: transparent;
}
.nav-toggle-bar {
  display: block; width: 24px; height: 1.5px;
  background: currentColor; border-radius: 2px;
  transition: transform .3s ease, opacity .25s ease;
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle-bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* La nav-cta resta com'è su desktop; su mobile entra nel menu overlay */
@media (max-width: 767px) { .nav-cta { display: none; } }
/* L'hamburger appare solo sotto i 768px (come le nav-links al contrario) */
@media (min-width: 768px) { .nav-toggle { display: none; } }

/* ---------- MENU OVERLAY (solo mobile) ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--background);
  display: flex; flex-direction: column;
  padding: 1.25rem 1.5rem 2.5rem;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .35s ease, transform .35s ease, visibility .35s;
  overflow-y: auto;
}
.mobile-menu.open { opacity: 1; visibility: visible; transform: none; }
@media (min-width: 768px) { .mobile-menu { display: none; } }

.mobile-menu-top {
  display: flex; align-items: center; justify-content: space-between;
  color: var(--foreground);
}
.mobile-menu-close {
  position: relative; width: 2.75rem; height: 2.75rem; margin-right: -0.5rem;
  color: var(--foreground); -webkit-tap-highlight-color: transparent;
}
.mobile-menu-close span {
  position: absolute; left: 50%; top: 50%;
  width: 24px; height: 1.5px; background: currentColor; border-radius: 2px;
}
.mobile-menu-close span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.mobile-menu-close span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }

.mobile-menu-links {
  display: flex; flex-direction: column;
  margin: auto 0; gap: 0.25rem;
}
.mobile-menu-links a {
  font-family: var(--font-display);
  font-size: 2rem; line-height: 1.2; color: var(--primary);
  padding: 0.5rem 0;
}
.mobile-menu-links a.active { font-style: italic; color: var(--accent); }

.mobile-menu-cta {
  display: block; text-align: center;
  text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.78rem;
  border: 1px solid var(--primary); color: var(--primary);
  padding: 1rem 1.25rem; margin-top: 1.5rem;
  transition: background-color .2s, color .2s;
}
.mobile-menu-cta:hover,
.mobile-menu-cta:active { background: var(--primary); color: var(--primary-foreground); }

.mobile-menu-contact {
  display: flex; flex-direction: column; gap: 0.4rem;
  margin-top: 2rem; font-size: 0.85rem; color: var(--muted-foreground);
}
.mobile-menu-contact a { color: var(--muted-foreground); transition: color .2s; }
.mobile-menu-contact a:hover { color: var(--accent); }

/* Blocca lo scroll del corpo quando il menu è aperto */
html.menu-open, html.menu-open body { overflow: hidden; }

/* Su mobile, le scritte delle hero interne (.page-hero) sono centrate
   verticalmente anziché ancorate in basso. Desktop invariato. */
@media (max-width: 767px) {
  .page-hero .content {
    justify-content: center;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
}

/* ---------- SELETTORE LINGUA (IT / EN) ---------- */
.nav-right { display: flex; align-items: center; gap: 1.25rem; }
@media (max-width: 767px) { .nav-right { display: none; } }

.lang-switch { display: inline-flex; align-items: center; gap: 0.45rem; }
.lang-btn {
  font-family: var(--font-sans);
  text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.72rem;
  color: inherit; opacity: 0.55; line-height: 1; padding: 0;
  transition: opacity .2s;
  -webkit-tap-highlight-color: transparent;
}
.lang-btn:hover { opacity: 0.85; }
.lang-btn.active { opacity: 1; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.lang-sep { opacity: 0.4; font-size: 0.72rem; }

/* Versione nel menu mobile */
.lang-switch-mobile { justify-content: center; gap: 0.75rem; margin-top: 1.75rem; }
.lang-switch-mobile .lang-btn { font-size: 0.95rem; letter-spacing: 0.2em; color: var(--primary); }
.lang-switch-mobile .lang-sep { color: var(--muted-foreground); font-size: 0.95rem; }

/* ---------- VIDEO DI SFONDO HERO (pagina La Villa) ---------- */
/* Si comporta come una background-image: copre l'intera Hero senza
   deformazioni e non genera layout shift (Hero ad altezza fissa). */
.page-hero video.bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  background: #030435; /* tinta sotto al video durante il caricamento */
}
.page-hero .hero-video-fallback {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* Lo scrim (overlay scuro esistente) resta sopra al video per la leggibilità */
.page-hero .scrim { z-index: 1; }

/* ---------- CAROSELLO HOME su MOBILE ---------- */
/* Le card su desktop sono 480px; su mobile sarebbero più larghe dello
   schermo (si vedrebbe mezza foto + mezza un'altra). Qui le adattiamo
   alla larghezza dello schermo così ogni foto si vede intera, con un
   piccolo accenno della successiva. */
@media (max-width: 767px) {
  .marquee-track { gap: 1rem; padding: 0 1rem; }
  .marquee .m-card {
    width: 82vw;
    height: auto;
    aspect-ratio: 4 / 3;
  }
}
