:root {
  --bg: #f5efe7;
  --surface: #fbf6ef;
  --cream: #f4e5d8;
  --text: #2a1d1a;
  --muted: #7a655d;
  --accent: #6d1427;
  --accent-dark: #54101f;
  --dark: #1b1613;
  --border: rgba(42, 29, 26, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

.container {
  width: min(1180px, calc(100% - 56px));
  margin: 0 auto;
}

.center { text-align: center; }
.measure { max-width: 680px; }
.center .measure,
.measure.center { margin-left: auto; margin-right: auto; }

/* ---------- typography helpers ---------- */
.serif {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
}

.eyebrow {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin: 0;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(2.1rem, 3.6vw, 3.1rem);
  line-height: 1.08;
  margin: 16px 0 18px;
}

.lead {
  font-size: 1.02rem;
  line-height: 1.95;
  color: var(--muted);
  margin: 0;
}

/* ---------- key divider ---------- */
.key-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
  margin: 18px 0;
}
.key-divider::before {
  content: "";
  height: 1px;
  width: 56px;
  background: currentColor;
  opacity: 0.8;
}
.key-divider svg { width: 34px; height: 14px; flex: none; }
.key-divider--center { justify-content: center; }
.key-divider--center::after {
  content: "";
  height: 1px;
  width: 56px;
  background: currentColor;
  opacity: 0.8;
}
.key-divider--light { color: var(--cream); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 40px;
  background: rgba(245, 239, 231, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.brand img { width: 66px; height: 66px; }

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 9px 14px;
  border-radius: 6px;
  cursor: pointer;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-link {
  position: relative;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text);
  padding: 6px 0;
}
.nav-link:hover { color: var(--accent); }
.nav-link.active { color: var(--accent); }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--accent);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  padding: 12px 26px;
}
.btn-primary:hover { background: var(--accent-dark); }

.btn-wa {
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 15px 30px;
}
.btn-wa:hover { background: var(--accent-dark); }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 13px 26px;
}
.btn-outline:hover { background: var(--accent); color: #fff; }

.btn-full { width: 100%; }

/* ---------- bands ---------- */
.band { padding: 84px 0; }
.band-light { background: var(--bg); }
.band-surface { background: var(--surface); }
.band-dark { background: var(--dark); color: var(--cream); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 56vh;
  overflow: hidden;
  color: #fff;
}
/* Layer immagine: più alto del contenitore così la traslazione (parallasse)
   non scopre mai bordi vuoti. Lo muove il JS tramite la var --parallax. */
.hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14%;
  height: 128%;
  background-size: cover;
  background-position: center;
  transform: translateY(var(--parallax, 0px));
  will-change: transform;
  z-index: 0;
}
/* Velo scuro per la leggibilità del testo */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(10, 7, 6, 0.85) 0%, rgba(10, 7, 6, 0.55) 45%, rgba(10, 7, 6, 0.15) 100%);
}
.hero .container {
  position: relative;
  z-index: 1;
  padding-top: 70px;
  padding-bottom: 70px;
}
.hero-inner { max-width: 580px; }

.hero-home::before {
  background-image: url('assets/5.webp');
}
.hero-home::after {
  background: linear-gradient(rgba(10, 7, 6, 0.45), rgba(10, 7, 6, 0.52));
}
.hero-contact::before {
  background-image: url('assets/6.webp');
}
.hero-contact::after {
  background: linear-gradient(rgba(10, 7, 6, 0.6), rgba(10, 7, 6, 0.78));
}
.hero-contact .hero-inner {
  max-width: 660px;
  margin: 0 auto;
  text-align: center;
}

.logo-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(2.7rem, 5.4vw, 4.6rem);
  line-height: 1;
  letter-spacing: 0.04em;
  margin: 0 0 24px;
}
.logo-title em {
  display: inline-block;
  font-style: italic;
  text-transform: lowercase;
  font-weight: 500;
  font-size: 0.62em;
}

.hero-lead {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  line-height: 1.4;
  color: #f3e7df;
  margin: 0 0 24px;
}
.hero-sub {
  font-size: 1rem;
  line-height: 1.8;
  color: #e7d9d0;
  margin: 0 0 32px;
  max-width: 420px;
}

.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(2.4rem, 4.2vw, 3.7rem);
  line-height: 1.05;
  margin: 0;
}
.hero-contact p {
  font-size: 1.05rem;
  color: #ece0d8;
  margin: 0;
}

/* ---------- features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px;
  margin-top: 52px;
}
.feature-icon {
  display: inline-flex;
  color: var(--accent);
  margin-bottom: 16px;
}
.feature-icon svg { width: 40px; height: 40px; }
.feature h3 {
  font-size: 0.86rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ---------- galleries ---------- */
.gal4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.gal4 figure { margin: 0; }
.gal4 img { width: 100%; height: 210px; object-fit: cover; border-radius: 4px; }
.gal4 h3 {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 16px 0 6px;
}
.gal4 p { margin: 0; color: var(--muted); font-size: 0.86rem; line-height: 1.6; }

.gal6 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 48px;
}
.gal6 img { width: 100%; height: 230px; object-fit: cover; border-radius: 4px; }

/* ---------- home: dove siamo ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split img { width: 100%; height: 380px; object-fit: cover; border-radius: 4px; }
.split-text p { color: var(--muted); line-height: 1.9; margin: 0 0 26px; }

.mt-home { margin-top: 80px; }

/* ---------- chi siamo: hero split ---------- */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 58vh;
}
.hs-img { overflow: hidden; }
.hs-img img { width: 100%; height: 100%; object-fit: cover; }
.hs-text {
  background: var(--dark);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px clamp(32px, 6vw, 90px);
}
.hs-text h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(2.3rem, 3.6vw, 3.4rem);
  line-height: 1.05;
  margin: 0;
}
.hs-text p { color: #d9cabf; line-height: 1.9; margin: 0; }

/* ---------- contatti ---------- */
.contatti {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: stretch;
}
.contact-map {
  border-radius: 4px;
  overflow: hidden;
  min-height: 440px;
}
.contact-map iframe,
.contact-map img { width: 100%; height: 100%; min-height: 440px; border: 0; object-fit: cover; }

.contact-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 24px;
}
.contact-list li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 16px;
  align-items: start;
}
.contact-list svg { width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }
.contact-list strong {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.contact-list p { margin: 0; color: var(--text); line-height: 1.6; font-size: 0.94rem; }
.orari-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 28px;
  font-size: 0.94rem;
  color: var(--text);
}

/* ---------- booking form ---------- */
.booking {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  max-width: 860px;
  margin: 48px auto 0;
  text-align: left;
}
.booking .full { grid-column: 1 / -1; }
.booking label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 9px;
}
.booking input,
.booking select,
.booking textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: 3px;
}
.booking textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.booking input:focus,
.booking select:focus,
.booking textarea:focus { outline: 2px solid rgba(109, 20, 39, 0.35); border-color: var(--accent); }

/* honeypot anti-spam: nascosto agli utenti, visibile ai bot */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-intro {
  max-width: 560px;
  margin: 14px auto 0;
  color: var(--muted);
  line-height: 1.6;
}
.form-alert {
  max-width: 860px;
  margin: 28px auto 0;
  padding: 14px 18px;
  border-radius: 6px;
  text-align: left;
  font-size: 0.94rem;
}
.form-alert--ok  { background: #e9f5ec; color: #1f6b3a; border: 1px solid #bfe3c9; }
.form-alert--err { background: #fbeaea; color: #9a2222; border: 1px solid #f0c7c7; }

.form-or {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 860px;
  margin: 26px auto;
  color: var(--muted);
}
.form-or::before,
.form-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.form-or span {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- footer ---------- */
.site-footer { background: var(--accent); color: var(--cream); }
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  padding: 52px 0;
  flex-wrap: wrap;
  align-items: flex-start;
}
.footer-brand { display: flex; align-items: center; gap: 18px; max-width: 320px; }
.footer-brand img { width: 70px; height: 70px; flex: none; }
.footer-brand p { margin: 0; line-height: 1.6; font-size: 0.9rem; }
.footer-contact { display: grid; gap: 12px; }
.footer-contact p { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 0.9rem; }
.footer-contact svg { width: 18px; height: 18px; flex: none; }
.footer-social { display: flex; gap: 16px; align-items: center; }
.footer-social a { display: inline-flex; }
.footer-social svg { width: 22px; height: 22px; }
.footer-bottom {
  border-top: 1px solid rgba(244, 229, 216, 0.22);
  text-align: center;
  padding: 18px 0;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .features { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .gal4 { grid-template-columns: repeat(2, 1fr); }
  .gal6 { grid-template-columns: repeat(2, 1fr); }
  .split,
  .contatti { grid-template-columns: 1fr; gap: 36px; }
  .hero-split { grid-template-columns: 1fr; }
  .hs-img img { height: 320px; }
}

@media (max-width: 720px) {
  .site-header { padding: 12px 20px; }
  .menu-toggle { display: inline-flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    background: var(--bg);
    padding: 0 24px;
    display: flex;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    border-bottom: 1px solid transparent;
    transition: max-height 0.34s ease, opacity 0.25s ease,
                transform 0.34s ease, padding 0.34s ease,
                border-color 0.34s ease;
  }
  .main-nav.nav-open {
    max-height: 360px;
    opacity: 1;
    transform: translateY(0);
    padding: 22px 24px;
    pointer-events: auto;
    border-bottom-color: var(--border);
  }
  .band { padding: 60px 0; }
  .booking { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; gap: 28px; }
}

@media (max-width: 480px) {
  .features,
  .gal4,
  .gal6 { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .logo-title { font-size: clamp(2.2rem, 11vw, 3rem); }
}
