/* Shwari Villas Zanzibar – foglio di stile comune */
:root {
  --teal: #134E4A;
  --teal-2: #1E6B65;
  --terra: #C0603A;
  --sand: #F4EFE6;
  --sand-2: #E8DCC8;
  --ink: #1F2A2A;
  --muted: #5E6B6A;
  --white: #FFFFFF;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Segoe UI", Calibri, Arial, sans-serif;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- intestazione ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px;
  transition: background .3s, box-shadow .3s;
}
.site-header.solid, .site-header.scrolled { background: rgba(19, 78, 74, .96); box-shadow: 0 2px 12px rgba(0,0,0,.15); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); }
.brand img { width: 48px; height: 48px; }
.brand span { font-family: var(--serif); font-size: 22px; letter-spacing: .18em; text-transform: uppercase; }
.nav { display: flex; gap: 26px; }
.nav a {
  color: var(--white); text-decoration: none; font-size: 14px; letter-spacing: .14em; text-transform: uppercase;
  padding-bottom: 3px; border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a.active { border-bottom-color: var(--sand-2); }
.menu-toggle { display: none; background: none; border: 0; color: var(--white); font-size: 28px; cursor: pointer; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: min(100vh, 860px); display: flex; align-items: flex-end;
  background-size: cover; background-position: center; color: var(--white);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,30,28,.45) 0%, rgba(10,30,28,.2) 35%, rgba(10,30,28,.78) 100%);
}
.hero.short { min-height: min(62vh, 560px); }
.hero-inner { position: relative; max-width: var(--max); width: 100%; margin: 0 auto; padding: 0 32px 90px; }
.eyebrow { font-size: 13px; letter-spacing: .28em; text-transform: uppercase; color: var(--sand-2); margin: 0 0 14px; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 6vw, 78px); line-height: 1.05; margin: 0 0 18px; }
.hero p.lead { font-size: 20px; max-width: 640px; margin: 0; color: var(--sand); }

/* ---------- sezioni ---------- */
section { padding: 96px 32px; }
.wrap { max-width: var(--max); margin: 0 auto; }
.sand { background: var(--sand); }
.dark { background: var(--teal); color: var(--sand); }
.dark h2, .dark h3 { color: var(--white); }
h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4vw, 48px); line-height: 1.15; color: var(--teal); margin: 0 0 22px; }
h3 { font-family: var(--serif); font-weight: 500; font-size: 26px; color: var(--teal); margin: 0 0 10px; }
.intro { max-width: 760px; font-size: 19px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.quote { font-family: var(--serif); font-style: italic; font-size: clamp(26px, 3vw, 36px); line-height: 1.35; color: var(--teal); max-width: 820px; margin: 0 auto; text-align: center; }
.dark .quote { color: var(--white); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split img { width: 100%; height: 520px; object-fit: cover; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card img { width: 100%; height: 260px; object-fit: cover; margin-bottom: 18px; }
.card p { margin: 0; color: var(--muted); }
.dark .card p { color: var(--sand); }

.features { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.features li { padding-left: 22px; position: relative; }
.features li::before { content: ""; position: absolute; left: 0; top: .7em; width: 10px; height: 10px; border-radius: 50%; background: var(--terra); }

.gallery { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 230px; gap: 10px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.g-wide { grid-column: span 4; }
.g-mid { grid-column: span 3; }
.g-small { grid-column: span 2; }
.g-tall { grid-row: span 2; }

.full-img { width: 100%; height: min(70vh, 620px); object-fit: cover; }

.btn {
  display: inline-block; margin-top: 26px; padding: 14px 34px;
  background: var(--terra); color: var(--white); text-decoration: none;
  letter-spacing: .16em; text-transform: uppercase; font-size: 14px; transition: background .2s;
}
.btn:hover { background: #A84F2D; }
.btn.ghost { background: transparent; border: 1px solid var(--white); }
.btn.ghost:hover { background: rgba(255,255,255,.12); }

.caption { font-size: 13px; color: var(--muted); font-style: italic; margin-top: 10px; }
.dark .caption { color: var(--sand-2); }

/* ---------- contatti ---------- */
.contact-box { background: var(--teal); color: var(--sand); text-align: center; padding: 80px 32px; }
.contact-box h2 { color: var(--white); }
.contact-box a.mail { font-family: var(--serif); font-size: clamp(26px, 3.4vw, 40px); color: var(--white); text-decoration: none; border-bottom: 1px solid var(--sand-2); }

/* ---------- piè di pagina ---------- */
.site-footer { background: #0E3A37; color: var(--sand-2); padding: 48px 32px 32px; font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: center; }
.site-footer img { width: 72px; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--sand-2); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.legal { max-width: var(--max); margin: 26px auto 0; padding-top: 18px; border-top: 1px solid rgba(232,220,200,.2); font-size: 12px; color: #9FB3B0; }

/* ---------- animazione leggera ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav { display: none; position: absolute; top: 76px; right: 0; left: 0; flex-direction: column; gap: 0; background: var(--teal); padding: 10px 32px 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .menu-toggle { display: block; }
  .split, .grid-3, .grid-4, .features { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .split img { height: 340px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .g-wide, .g-mid, .g-small { grid-column: span 2; }
  .g-tall { grid-row: span 1; }
  section { padding: 70px 22px; }
  .hero-inner { padding: 0 22px 70px; }
  .site-header { padding: 12px 20px; }
}
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- selettore lingua ---------- */
.nav .lang { color: var(--sand-2); font-size: 13px; letter-spacing: .14em; margin-left: 8px; white-space: nowrap; }
.nav .lang a { border-bottom: 1px solid transparent; }
.nav .lang a.active { color: var(--white); border-bottom-color: var(--terra); }
.site-footer .wrap div a.active { color: var(--white); text-decoration: underline; }
@media (max-width: 1180px) {
  .nav { display: none; position: absolute; top: 76px; right: 0; left: 0; flex-direction: column; gap: 0; background: var(--teal); padding: 10px 32px 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .menu-toggle { display: block; }
  .nav .lang { margin: 12px 0 0; }
  .nav .lang a { border-bottom: 0; padding: 0 4px; }
}
