/* Domus Mellini — stile ricostruito dal sito originale */
:root {
  --background: hsl(40 20% 97%);
  --foreground: hsl(30 10% 12%);
  --primary: hsl(36 40% 48%);
  --primary-foreground: hsl(40 20% 97%);
  --secondary: hsl(35 15% 90%);
  --muted: hsl(35 12% 92%);
  --muted-foreground: hsl(30 8% 45%);
  --accent: hsl(36 55% 65%);
  --border: hsl(35 15% 85%);
  --card: hsl(40 25% 95%);
  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --max: 80rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 300; margin: 0; line-height: 1.15; }
p { margin: 0; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 6rem 0; scroll-margin-top: 4rem; }
.section--alt { background: hsl(35 15% 90% / .5); }
.center { text-align: center; }

.eyebrow {
  font-size: .7rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}
.eyebrow--gold { color: var(--primary); }
.section-title { font-size: clamp(2.4rem, 5vw, 3.75rem); }
.section-head { text-align: center; margin-bottom: 3.5rem; }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .5s, box-shadow .5s, backdrop-filter .5s;
}
.nav.is-scrolled { background: hsl(40 20% 97% / .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 2px rgb(0 0 0 / .05); }
.nav__inner { max-width: var(--max); margin: 0 auto; padding: 1rem 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.nav__logo { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 600; letter-spacing: .02em; color: #fff; transition: color .5s; }
.nav.is-scrolled .nav__logo { color: var(--foreground); }
.nav__right { display: flex; align-items: center; gap: 1.75rem; }
.nav__links { display: none; gap: 1.75rem; }
.nav__links a { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-foreground); transition: color .2s; }
.nav__links a:hover { color: var(--foreground); }
.nav:not(.is-scrolled) .nav__links a { color: hsl(0 0% 100% / .85); }
.nav:not(.is-scrolled) .nav__links a:hover { color: #fff; }
.lang { display: flex; border: 1px solid hsl(0 0% 100% / .5); transition: border-color .5s; }
.nav.is-scrolled .lang { border-color: var(--border); }
.lang a { font-size: .7rem; letter-spacing: .2em; padding: .35rem .75rem; color: hsl(0 0% 100% / .75); }
.nav.is-scrolled .lang a { color: var(--muted-foreground); }
.lang a[aria-current="true"] { background: #fff; color: var(--foreground); }
.nav.is-scrolled .lang a[aria-current="true"] { background: var(--foreground); color: var(--background); }
.btn-dark {
  display: inline-block; background: var(--foreground); color: var(--background);
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; padding: .7rem 1.25rem; transition: opacity .2s;
}
.btn-dark:hover { opacity: .85; }
.nav__burger { display: inline-flex; background: none; border: 0; padding: .25rem; color: #fff; cursor: pointer; }
.nav.is-scrolled .nav__burger { color: var(--foreground); }
.nav__book { display: none; }
.mobile-menu { display: none; background: var(--background); border-top: 1px solid var(--border); padding: 1rem 1.5rem 1.5rem; }
.mobile-menu.is-open { display: block; }
.mobile-menu a { display: block; padding: .75rem 0; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-foreground); border-bottom: 1px solid var(--border); }
.mobile-menu .btn-dark { margin-top: 1rem; text-align: center; color: var(--background); border: 0; }
.nav.menu-open { background: var(--background); }
.nav.menu-open .nav__logo, .nav.menu-open .nav__burger { color: var(--foreground); }

@media (min-width: 768px) {
  .nav__logo { font-size: 1.9rem; }
  .nav__book { display: inline-block; }
  .nav__burger { display: none; }
  .mobile-menu { display: none !important; }
}
@media (min-width: 1100px) {
  .nav__links { display: flex; }
}

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; min-height: 560px; display: flex; align-items: center; justify-content: center; overflow: hidden; color: #fff; text-align: center; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); animation: heroZoom 12s ease-out forwards; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgb(0 0 0 / .35), rgb(0 0 0 / .3) 50%, rgb(0 0 0 / .5)); }
.hero__content { position: relative; z-index: 1; padding: 0 1.5rem; }
.hero__eyebrow { font-size: .75rem; letter-spacing: .35em; text-transform: uppercase; opacity: .85; margin-bottom: 1.25rem; }
.hero h1 { font-size: clamp(3.2rem, 9vw, 6rem); font-weight: 300; }
.hero__subtitle { margin-top: 1rem; font-size: 1rem; opacity: .9; }
.btn-light {
  display: inline-block; margin-top: 2.25rem; background: #fff; color: var(--foreground);
  font-size: .72rem; letter-spacing: .25em; text-transform: uppercase; padding: 1rem 2.25rem; transition: background .2s;
}
.btn-light:hover { background: hsl(0 0% 100% / .88); }
.hero__scroll { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 1; color: hsl(0 0% 100% / .7); animation: bounce 2s infinite; }
@keyframes heroZoom { to { transform: scale(1); } }
@keyframes bounce { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
.gallery button { padding: 0; border: 0; cursor: zoom-in; overflow: hidden; aspect-ratio: 4 / 3; background: var(--muted); }
.gallery button:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.gallery button:hover img { transform: scale(1.05); }
@media (min-width: 768px) { .gallery { grid-template-columns: repeat(4, 1fr); } }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgb(0 0 0 / .92); display: none; align-items: center; justify-content: center; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; padding: 1rem; opacity: .8; }
.lightbox button:hover { opacity: 1; }
.lightbox__close { top: .5rem; right: .5rem; }
.lightbox__prev { left: .5rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: .5rem; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 1.25rem; left: 50%; transform: translateX(-50%); color: hsl(0 0% 100% / .7); font-size: .75rem; letter-spacing: .2em; }

/* ---------- About ---------- */
.about { display: grid; gap: 3rem; align-items: center; }
.about__img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.about h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.5rem; }
.about p { color: var(--muted-foreground); font-size: .92rem; margin-bottom: 1rem; }
.highlights { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: 2rem; }
.highlight { display: flex; align-items: center; gap: .75rem; background: var(--background); padding: .9rem 1rem; font-size: .82rem; }
.highlight svg { color: var(--primary); flex: none; }
@media (min-width: 900px) { .about { grid-template-columns: 1fr 1fr; gap: 4rem; } }

/* ---------- Amenities ---------- */
.amenities { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.amenity { background: var(--card); border: 1px solid var(--border); padding: 1.75rem 1rem; text-align: center; transition: border-color .3s; }
.amenity:hover { border-color: var(--accent); }
.amenity__icon { width: 3rem; height: 3rem; margin: 0 auto 1rem; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--primary); }
.amenity h3 { font-family: var(--font-body); font-weight: 500; font-size: .85rem; margin-bottom: .3rem; }
.amenity p { font-size: .75rem; color: var(--muted-foreground); }
@media (min-width: 768px) { .amenities { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; } }

/* ---------- Reviews ---------- */
.rating-badge { display: inline-flex; align-items: center; gap: .75rem; margin-top: 1.5rem; background: var(--background); border: 1px solid var(--border); padding: .55rem 1.1rem; font-size: .78rem; }
.rating-badge .sep { width: 1px; height: 1rem; background: var(--border); }
.stars { color: var(--primary); letter-spacing: .1em; }
.reviews { display: grid; gap: 1.5rem; }
.review { background: var(--background); border: 1px solid var(--border); padding: 2rem; display: flex; flex-direction: column; }
.review blockquote { margin: 1rem 0 1.5rem; font-style: italic; font-size: .9rem; color: var(--muted-foreground); flex: 1; }
.review footer { display: flex; justify-content: space-between; align-items: flex-end; border-top: 1px solid var(--border); padding-top: 1rem; }
.review strong { font-weight: 500; font-size: .88rem; display: block; }
.review span { font-size: .75rem; color: var(--muted-foreground); }
.review .stars--small { font-size: .7rem; opacity: .7; }
@media (min-width: 768px) { .reviews { grid-template-columns: 1fr 1fr; } }

/* ---------- Location ---------- */
.location { display: grid; gap: 2.5rem; }
.map { width: 100%; height: 420px; border: 1px solid var(--border); filter: grayscale(.35) sepia(.1); }
.nearby h3 { font-size: 1.6rem; margin-bottom: 1.25rem; }
.nearby ul { list-style: none; padding: 0; margin: 0; }
.nearby li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--border); font-size: .85rem; }
.nearby li span:first-child { display: flex; align-items: center; gap: .75rem; }
.nearby svg { color: var(--primary); flex: none; }
.nearby time { font-size: .75rem; color: var(--muted-foreground); white-space: nowrap; display: flex; align-items: center; gap: .35rem; }
.address-line { margin-top: 1.5rem; font-size: .82rem; color: var(--muted-foreground); }
.address-line a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 900px) { .location { grid-template-columns: 1.6fr 1fr; gap: 3rem; } }

/* ---------- Booking ---------- */
.booking { position: relative; color: #fff; text-align: center; overflow: hidden; scroll-margin-top: 4rem; }
.booking__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.booking::before { content: ""; position: absolute; inset: 0; background: rgb(20 16 12 / .78); z-index: 1; }
.booking .container { position: relative; z-index: 2; padding-top: 7rem; padding-bottom: 7rem; max-width: 52rem; }
.badge { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid hsl(0 0% 100% / .3); padding: .4rem .9rem; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 1.75rem; }
.booking h2 { font-size: clamp(2.4rem, 5vw, 3.75rem); }
.booking__subtitle { margin: 1.25rem auto 0; max-width: 38rem; font-size: .92rem; color: hsl(0 0% 100% / .8); }
.booking__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2.5rem; }
.btn-white, .btn-outline { display: inline-flex; align-items: center; gap: .6rem; padding: .95rem 1.75rem; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; transition: background .2s, color .2s; cursor: pointer; }
.btn-white { background: #fff; color: var(--foreground); border: 1px solid #fff; }
.btn-white:hover { background: hsl(0 0% 100% / .88); }
.btn-outline { border: 1px solid hsl(0 0% 100% / .5); color: #fff; background: transparent; }
.btn-outline:hover { background: hsl(0 0% 100% / .1); }
.booking__response { margin-top: 1.75rem; font-size: .75rem; color: hsl(0 0% 100% / .6); }

.request { margin: 2.75rem auto 0; display: grid; gap: .75rem; grid-template-columns: 1fr 1fr; text-align: left; max-width: 40rem; }
.request label { font-size: .65rem; letter-spacing: .2em; text-transform: uppercase; color: hsl(0 0% 100% / .7); display: grid; gap: .4rem; }
.request input, .request select { width: 100%; background: hsl(0 0% 100% / .08); border: 1px solid hsl(0 0% 100% / .3); padding: .75rem .85rem; color: #fff; font-size: .9rem; border-radius: 0; }
.request input::-webkit-calendar-picker-indicator { filter: invert(1); opacity: .7; }
.request select option { color: var(--foreground); }
.request .full { grid-column: 1 / -1; }
.request button { justify-content: center; }
@media (min-width: 700px) { .request { grid-template-columns: 1fr 1fr 1fr; } .request .btn-cell { grid-column: 1 / -1; } }

/* ---------- Footer ---------- */
.footer { background: var(--foreground); color: hsl(40 20% 97% / .85); padding: 4rem 0 2rem; }
.footer__grid { display: grid; gap: 2.5rem; }
.footer__brand { font-family: var(--font-heading); font-size: 1.6rem; color: var(--background); margin-bottom: 1rem; }
.footer h4 { font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; font-weight: 400; color: hsl(40 20% 97% / .5); margin: 0 0 1rem; }
.footer p, .footer li { font-size: .85rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer a:hover { color: var(--accent); }
.footer__bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid hsl(40 20% 97% / .1); display: flex; flex-wrap: wrap; gap: .5rem; justify-content: space-between; font-size: .72rem; color: hsl(40 20% 97% / .45); }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 1.3fr 1fr 1fr; } }

/* WhatsApp floating button */
.wa-float { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40; width: 3.4rem; height: 3.4rem; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgb(0 0 0 / .2); transition: transform .2s; }
.wa-float:hover { transform: scale(1.06); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__img, .hero__scroll { animation: none; }
  html { scroll-behavior: auto; }
}
