/* ===== Tokens ===== */
:root {
  --cream: #f6f3ee;
  --cream-2: #efeae1;
  --ink: #23211e;
  --ink-soft: #54504a;
  --line: #ddd6ca;
  --accent: #1f2a36;      /* charcoal-navy, come gli arredi della casa */
  --accent-soft: #8a7d68; /* ottone tenue */
  --white: #ffffff;
  --maxw: 1180px;
  --r: 4px;
  --shadow: 0 18px 50px rgba(31, 28, 24, 0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
  letter-spacing: 0.2px;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 760px; }
.center { text-align: center; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent-soft);
  margin: 0 0 0.8rem;
}

.lede { font-size: 1.1rem; color: var(--ink-soft); }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.95rem 2rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--r);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-dark { background: var(--accent); color: var(--white); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 243, 238, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; line-height: 1.05; }
.brand-mark { font-family: "Cormorant Garamond", serif; font-size: 1.45rem; font-weight: 600; }
.brand-sub { font-size: 0.64rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent-soft); }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a { text-decoration: none; color: var(--ink-soft); font-size: 0.82rem; letter-spacing: 0.04em; transition: color 0.2s; }
.nav a:hover { color: var(--ink); }
.nav-cta { padding: 0.5rem 1.1rem; border: 1px solid var(--ink); border-radius: var(--r); color: var(--ink) !important; }
.nav-cta:hover { background: var(--ink); color: var(--white) !important; }

/* ===== Hero ===== */
.hero { position: relative; height: 88vh; min-height: 540px; display: flex; align-items: flex-end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,18,15,0.15) 0%, rgba(20,18,15,0.05) 40%, rgba(20,18,15,0.72) 100%); }
.hero-content { position: relative; padding-bottom: 7vh; color: var(--white); }
.hero-content .eyebrow { color: rgba(255,255,255,0.85); }
.hero h1 { color: var(--white); font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.04; font-weight: 500; }
.hero-lead { max-width: 540px; margin: 1.4rem 0 2rem; color: rgba(255,255,255,0.92); font-size: 1.08rem; }

/* ===== Facts ===== */
.facts { background: var(--accent); color: var(--white); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 2.4rem 1rem; text-align: center; border-right: 1px solid rgba(255,255,255,0.12); }
.fact:last-child { border-right: none; }
.fact-num { display: block; font-family: "Cormorant Garamond", serif; font-size: 2.8rem; line-height: 1; }
.fact-label { display: block; margin-top: 0.5rem; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.7); }

/* ===== Sections ===== */
.section { padding: 6rem 0; }
.section-alt { background: var(--cream-2); }
.section h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 1rem; }
.center h2 { margin-bottom: 2.6rem; }
.center.narrow h2 { margin-bottom: 1.2rem; }

/* ===== Rooms ===== */
.rooms { display: flex; flex-direction: column; gap: 4.5rem; }
.room { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3.5rem; align-items: center; }
.room-reverse .room-media { order: 2; }
.room-media img { width: 100%; height: 420px; object-fit: cover; border-radius: var(--r); box-shadow: var(--shadow); }
.room-text h3 { font-size: 2.1rem; margin-bottom: 1rem; }
.room-text p { color: var(--ink-soft); }

/* ===== Features ===== */
.features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.features li { background: var(--cream); padding: 2.2rem; }
.features h4 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.features p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* ===== Gallery ===== */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 12px; }
.g-item { padding: 0; border: none; cursor: pointer; overflow: hidden; border-radius: var(--r); background: var(--cream-2); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.g-item:hover img { transform: scale(1.06); }

/* ===== Contact ===== */
.contact-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1.8rem; }

/* ===== Footer ===== */
.site-footer { background: var(--accent); color: rgba(255,255,255,0.85); padding: 1.8rem 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between; align-items: center; font-size: 0.82rem; letter-spacing: 0.04em; }
.footer-inner .muted { color: rgba(255,255,255,0.55); }

/* ===== Lightbox ===== */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(15,13,11,0.94); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lb-img { max-width: 90vw; max-height: 86vh; border-radius: var(--r); box-shadow: var(--shadow); }
.lb-close { position: absolute; top: 22px; right: 28px; background: none; border: none; color: #fff; font-size: 2.4rem; line-height: 1; cursor: pointer; opacity: 0.8; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: none; color: #fff; font-size: 3.4rem; cursor: pointer; opacity: 0.7; padding: 0 1.2rem; }
.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }
.lb-close:hover, .lb-nav:hover { opacity: 1; }

/* ===== Hero actions ===== */
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.65); }
.btn-ghost:hover { background: rgba(255,255,255,0.14); }

/* ===== Camere (schede) ===== */
.center-lede { max-width: 680px; margin: 0 auto 2.6rem; }
.h2-small { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 1.4rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media img { width: 100%; height: 240px; object-fit: cover; }
.card-body { padding: 1.8rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.6rem; margin-bottom: 0.6rem; }
.card-note { color: var(--ink-soft); font-size: 0.95rem; margin: 0 0 1.2rem; }
.card-list { list-style: none; padding: 0; margin: 0 0 1.6rem; }
.card-list li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}
.card-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent-soft);
}
.price {
  margin: auto 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.price-num { font-family: "Cormorant Garamond", serif; font-size: 2.1rem; color: var(--ink); line-height: 1; }
.price-unit { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-soft); }

.fineprint {
  margin: 2.4rem auto 0;
  max-width: 720px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ===== Posizione / Condizioni ===== */
.split { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4rem; }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.info-list li:first-child { border-top: 1px solid var(--line); }
.info-list strong { color: var(--ink); font-weight: 500; }
.info-list a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--accent-soft); }
.info-list a:hover { color: var(--accent-soft); }

/* ===== Contatti ===== */
.contact-name { font-size: 1.15rem; margin: 1.6rem 0 0; }
.contact-name a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--accent-soft); }
.contact-name a:hover { color: var(--accent); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 180px; }
  .room { grid-template-columns: 1fr; gap: 1.6rem; }
  .room-reverse .room-media { order: 0; }
  .room-media img { height: 300px; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
  .split { grid-template-columns: 1fr; gap: 2.6rem; }
}
@media (max-width: 640px) {
  .nav { gap: 1.1rem; }
  .nav a:not(.nav-cta) { display: none; }
  .section { padding: 4rem 0; }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(2) { border-right: none; }
  .fact:nth-child(1), .fact:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,0.12); }
  .features { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .gallery .g-item:first-child { grid-row: span 1 !important; }
  .hero { height: 80vh; }
  .cards { grid-template-columns: 1fr; }
  .card-media img { height: 220px; }
  .hero-actions .btn { flex: 1 1 auto; text-align: center; }
  .footer-inner { flex-direction: column; gap: 0.5rem; text-align: center; }
}
