/* ==========================================================================
   B&B Casa Diaz — Verona
   Palette: bianco (#ffffff / #faf9f6), nero (#161513), ocra (#c98a2c)
   ========================================================================== */

:root {
  --white: #ffffff;
  --white-soft: #faf8f5;
  --black: #161513;
  --black-soft: #2a2825;
  --ochre: #c1852a;
  --ochre-dark: #9c6a1f;
  --ochre-light: #e8c48f;
  --line: #e7e2d9;
  --max-width: 1180px;
  --radius: 2px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0;
  letter-spacing: 0.01em;
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ochre-dark);
  font-weight: 600;
  margin-bottom: 14px;
}

.section-head {
  max-width: 640px;
  margin: 0 0 48px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  margin-bottom: 14px;
}

.section-head p {
  color: var(--black-soft);
  font-size: 1.02rem;
}

section { padding: 96px 0; }

.section-alt { background: var(--white-soft); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--ochre);
  color: var(--white);
  border-color: var(--ochre);
}
.btn-primary:hover { background: var(--ochre-dark); border-color: var(--ochre-dark); }

.btn-outline {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}
.btn-outline:hover { background: var(--black); color: var(--white); }

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.btn-outline-light:hover { background: var(--white); color: var(--black); border-color: var(--white); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.0);
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
  padding: 22px 0;
}

.site-header.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(8px);
  box-shadow: 0 1px 0 var(--line);
  padding: 12px 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: 12px; position: relative; height: 34px; }
.brand img { height: 34px; width: auto; transition: opacity 0.3s ease; }
.brand .logo-on-light { position: absolute; left: 0; top: 0; opacity: 0; }
.site-header.scrolled .brand .logo-on-dark { opacity: 0; }
.site-header.scrolled .brand .logo-on-light { opacity: 1; }

.brand-text {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--white);
  transition: color 0.3s ease;
}
.site-header.scrolled .brand-text { color: var(--black); }

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

nav.main-nav a {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--white);
  transition: color 0.3s ease;
  position: relative;
}

.site-header.scrolled nav.main-nav a { color: var(--black); }

nav.main-nav a:hover { color: var(--ochre); }

.nav-cta { display: none; }
@media (min-width: 721px) {
  .nav-cta { display: inline-flex; padding: 11px 22px; }
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 200;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: all 0.3s ease;
}
.site-header.scrolled .menu-toggle span,
.menu-toggle.dark span { background: var(--black); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22,21,19,0.35) 0%, rgba(22,21,19,0.15) 40%, rgba(22,21,19,0.75) 100%);
}

.hero-content {
  padding: 0 0 96px;
  max-width: 780px;
}

.hero .eyebrow { color: var(--ochre-light); }

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.08;
  margin-bottom: 20px;
}

.hero p.lede {
  font-size: 1.15rem;
  max-width: 520px;
  margin-bottom: 34px;
  color: rgba(255,255,255,0.92);
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0.85;
}
.scroll-cue::after {
  content: "";
  width: 1px;
  height: 34px;
  background: rgba(255,255,255,0.7);
  animation: scrollpulse 1.8s ease-in-out infinite;
}
@keyframes scrollpulse {
  0% { transform: scaleY(0.2); opacity: 0.2; transform-origin: top; }
  50% { transform: scaleY(1); opacity: 1; transform-origin: top; }
  100% { transform: scaleY(0.2); opacity: 0.2; transform-origin: bottom; }
}

/* ---------- Intro / Chi siamo ---------- */

.intro {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  align-items: center;
}

.intro-media {
  position: relative;
}

.intro-media img {
  border-radius: var(--radius);
  width: 100%;
  height: 560px;
  object-fit: cover;
}

.intro-media .frame-note {
  position: absolute;
  bottom: -26px;
  right: -26px;
  background: var(--ochre);
  color: var(--white);
  padding: 22px 26px;
  max-width: 220px;
  font-family: var(--serif);
  font-size: 0.95rem;
  line-height: 1.4;
}

.intro-text p { color: var(--black-soft); margin-bottom: 18px; }

.intro-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 28px;
  margin: 34px 0 8px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.intro-stats .stat-num {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--ochre-dark);
  display: block;
}
.intro-stats .stat-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--black-soft);
}

/* ---------- Camere / gallery ---------- */

.room-group { margin-bottom: 64px; }
.room-group:last-child { margin-bottom: 0; }

.room-group-head {
  max-width: 720px;
  margin: 0 0 26px;
}

.room-group-head h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  margin: 6px 0 10px;
}

.room-group-head p {
  color: var(--black-soft);
  font-size: 0.98rem;
}

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.room-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--black);
}

.room-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: transform 0.6s ease, opacity 0.4s ease;
}

.room-card:hover img { transform: scale(1.06); opacity: 0.85; }

.room-card .room-label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 20px;
  background: linear-gradient(0deg, rgba(0,0,0,0.72), rgba(0,0,0,0));
  color: var(--white);
}

.room-label .eyebrow { color: var(--ochre-light); margin-bottom: 4px; }
.room-label h3 { font-size: 1.1rem; }

.room-card.tall img { height: 660px; }
.room-card.wide { grid-column: span 2; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15,14,13,0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  border: 1px solid rgba(255,255,255,0.1);
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 12px;
}
.lightbox-close { top: 18px; right: 24px; }
.lightbox-prev { left: 10px; top: 50%; transform: translateY(-50%); font-size: 2.2rem; }
.lightbox-next { right: 10px; top: 50%; transform: translateY(-50%); font-size: 2.2rem; }
.lightbox-caption {
  position: absolute;
  bottom: 26px;
  left: 0; right: 0;
  text-align: center;
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

/* ---------- Servizi ---------- */

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}

.amenity {
  background: var(--white);
  padding: 40px 28px;
  text-align: left;
}

.amenity .icon {
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  color: var(--ochre);
}
.amenity .icon svg { width: 100%; height: 100%; stroke: var(--ochre); fill: none; }

.amenity h3 { font-size: 1rem; margin-bottom: 8px; font-family: var(--sans); font-weight: 700; letter-spacing: 0.01em; }
.amenity p { font-size: 0.92rem; color: var(--black-soft); margin: 0; }

/* ---------- Tour virtuale ---------- */

.tour-section {
  background: var(--black);
  color: var(--white);
}
.tour-section .section-head p { color: rgba(255,255,255,0.72); }
.tour-section .eyebrow { color: var(--ochre-light); }

.tour-wrap {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.tour-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/10;
  background: #0c0b0a;
  border: 1px solid rgba(255,255,255,0.12);
}
.tour-frame iframe { width: 100%; height: 100%; border: 0; }

.tour-frame .tour-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  border: none;
  padding: 0;
}
.tour-frame .tour-cover img { width: 100%; height: 100%; object-fit: cover; }
.tour-frame .tour-cover::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(10,9,8,0.28);
}
.play-badge {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 76px; height: 76px;
  border-radius: 50%;
  background: var(--ochre);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.play-badge svg { width: 26px; height: 26px; fill: var(--white); margin-left: 4px; }

.tour-text ul { list-style: none; padding: 0; margin: 26px 0 34px; }
.tour-text li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  display: flex;
  gap: 12px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
}
.tour-text li::before {
  content: "";
  width: 6px; height: 6px;
  margin-top: 8px;
  background: var(--ochre);
  flex-shrink: 0;
}

/* ---------- Posizione ---------- */

.location-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
}

.poi-list { list-style: none; margin: 28px 0 34px; padding: 0; }
.poi-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.96rem;
}
.poi-list li span:last-child {
  color: var(--ochre-dark);
  font-weight: 600;
  white-space: nowrap;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.address-block {
  background: var(--white-soft);
  border-left: 3px solid var(--ochre);
  padding: 22px 26px;
  margin-bottom: 28px;
}
.address-block strong { display: block; font-family: var(--serif); font-size: 1.1rem; margin-bottom: 6px; }
.address-block span { color: var(--black-soft); font-size: 0.95rem; }

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  height: 100%;
  min-height: 420px;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Recensioni ---------- */

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.review-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 32px 28px;
}

.stars { color: var(--ochre); letter-spacing: 3px; margin-bottom: 18px; font-size: 0.95rem; }
.review-card p.quote { font-style: italic; color: var(--black-soft); margin-bottom: 20px; }
.review-card .author { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.review-card .author span { display: block; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--black-soft); margin-top: 2px; font-size: 0.85rem; }

/* ---------- Prenota / CTA ---------- */

.cta-band {
  background: var(--ochre);
  color: var(--white);
  text-align: center;
  padding: 90px 0;
}
.cta-band .eyebrow { color: rgba(255,255,255,0.85); }
.cta-band h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); margin-bottom: 18px; }
.cta-band p { max-width: 560px; margin: 0 auto 34px; color: rgba(255,255,255,0.92); }
.cta-band .btn-outline-light { color: var(--white); }

/* ---------- Footer ---------- */

footer.site-footer {
  background: var(--black);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand img { height: 30px; margin-bottom: 16px; }
.footer-brand p { max-width: 320px; font-size: 0.9rem; color: rgba(255,255,255,0.55); }
footer h4 {
  font-family: var(--sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 18px;
}
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 12px; font-size: 0.92rem; }
footer a:hover { color: var(--ochre-light); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 26px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Reveal animation ---------- */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .intro { grid-template-columns: 1fr; gap: 40px; }
  .intro-media img { height: 420px; }
  .rooms-grid { grid-template-columns: repeat(2, 1fr); }
  .room-card.wide { grid-column: span 2; }
  .amenities-grid { grid-template-columns: repeat(2, 1fr); }
  .tour-wrap { grid-template-columns: 1fr; }
  .location-wrap { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  section { padding: 68px 0; }
  .container { padding: 0 20px; }
  nav.main-nav { position: fixed; top: 0; right: 0; height: 100vh; width: min(320px, 82vw);
    background: var(--white); flex-direction: column; align-items: flex-start; justify-content: flex-start;
    padding: 100px 32px 32px; gap: 26px; transform: translateX(100%); transition: transform 0.35s ease; box-shadow: -8px 0 30px rgba(0,0,0,0.15); }
  nav.main-nav.open { transform: translateX(0); }
  nav.main-nav a { color: var(--black); font-size: 0.95rem; }
  .menu-toggle { display: block; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .rooms-grid { grid-template-columns: 1fr; }
  .room-card.wide { grid-column: span 1; }
  .room-card.tall img { height: 320px; }
  .amenities-grid { grid-template-columns: 1fr; }
  .intro-stats { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; }
}

.nav-scrim {
  display: none;
  position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 150;
}
.nav-scrim.open { display: block; }
