/* RétroHome B&B — mobile-first styles */

:root {
  --white: #FAF8F5;
  --white-pure: #FFFFFF;
  --wood-light: #E8D5B5;
  --wood: #C4A77D;
  --wood-dark: #8B6914;
  --gold: #C9A961;
  --gold-dark: #A8863A;
  --black: #1A1612;
  --black-soft: #3D3530;
  --orange: #E8751A;
  --orange-soft: #F4A261;
  --gray: #8A8279;
  --gray-light: #EDE8E0;
  --success: #2D6A4F;
  --danger: #C0392B;
  --shadow: 0 8px 32px rgba(26, 22, 18, 0.08);
  --shadow-lg: 0 20px 60px rgba(26, 22, 18, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --font-display: 'Raleway', system-ui, sans-serif;
  --font-body: 'Raleway', system-ui, sans-serif;
  --header-h: 72px;
  --logo-h: 72px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--black-soft);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--orange); }

.container {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(196, 167, 125, 0.2);
  transition: box-shadow var(--transition), background var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow);
  background: rgba(250, 248, 245, 0.98);
}

.site-header.menu-open {
  background: rgba(250, 248, 245, 0.98);
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  width: min(1120px, 100% - 1rem);
  margin-inline: auto;
  position: relative;
}

.logo-link {
  display: flex;
  align-items: center;
  align-self: stretch;
  flex-shrink: 0;
  height: 100%;
  line-height: 0;
  position: relative;
  z-index: 1002;
  cursor: pointer;
}

.logo-img {
  height: var(--logo-h);
  width: auto;
  max-width: none;
  display: block;
  object-fit: contain;
  transition: transform var(--transition);
}

.logo-link:hover .logo-img { transform: scale(1.03); }

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.main-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  z-index: 1001;
}

@media (max-width: 899px) {
  .main-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    width: min(19rem, calc(100vw - 1.5rem));
    margin-top: 0.35rem;
    padding: 0.5rem 0.85rem 0.85rem;
    background: rgba(250, 248, 245, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(196, 167, 125, 0.35);
    border-radius: 0 0 14px 14px;
    box-shadow: 0 16px 40px rgba(26, 22, 18, 0.14);
    align-items: stretch;
    justify-content: flex-start;
    transform-origin: top right;
    transform: scale(0.96) translateY(-6px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.28s ease, visibility 0.28s ease;
  }

  .main-nav.open {
    transform: scale(1) translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .main-nav a {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--black);
    padding: 0.72rem 0.65rem;
    border-bottom: 1px solid rgba(196, 167, 125, 0.22);
    border-radius: 8px;
  }

  .main-nav a:last-of-type {
    border-bottom: none;
  }

  .main-nav a:hover,
  .main-nav a:focus-visible {
    background: rgba(196, 167, 125, 0.14);
    color: var(--black);
  }

  .main-nav a[aria-current="page"]:hover,
  .main-nav a[aria-current="page"]:focus-visible {
    background: rgba(196, 167, 125, 0.1);
    color: var(--gold-dark);
  }

  .main-nav .nav-cta {
    margin-top: 0.35rem;
    padding: 0.75rem 1.25rem;
    text-align: center;
    border-bottom: none;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--white-pure);
    border-radius: 999px;
  }

  .main-nav .nav-cta:hover { color: var(--white-pure); opacity: 0.9; }
}

@media (min-width: 900px) {
  .main-nav a {
    font-size: 1.1rem;
    padding: 0;
    border-bottom: none;
    border-radius: 0;
  }

  .main-nav a:hover,
  .main-nav a:focus-visible {
    background: transparent;
  }
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }

  .main-nav {
    position: static;
    flex-direction: row;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    width: auto;
    margin-top: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    gap: 1.5rem;
    align-items: center;
  }

  .main-nav a { font-size: 1.1rem; }

  .main-nav a[aria-current="page"] {
    color: var(--gold-dark);
    font-weight: 600;
    border: 1px solid rgba(196, 167, 125, 0.75);
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
  }

  .main-nav .nav-cta {
    margin-top: 0;
    padding: 0.6rem 1.4rem;
    font-size: 1rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--white-pure);
    border-radius: 999px;
  }

  .main-nav .nav-cta:hover { color: var(--white-pure); opacity: 0.9; }
}

/* Home — logo grande in apertura */
.home-logo-showcase {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(42vh, 360px);
  padding: calc(var(--header-h) + 1.25rem) 1.5rem 2rem;
  background: var(--white);
  text-align: center;
}

.home-logo-large {
  width: min(480px, 88vw);
  height: auto;
  max-width: none;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88svh, 900px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem 4rem;
  background: var(--black) center/cover no-repeat;
  background-image: var(--hero-bg);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(26, 22, 18, 0.75) 0%,
    rgba(26, 22, 18, 0.45) 50%,
    rgba(26, 22, 18, 0.65) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white-pure);
  max-width: 640px;
}

.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--wood-light);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 7vw, 3.5rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero-lead {
  font-size: 1.05rem;
  font-weight: 300;
  opacity: 0.92;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  font-size: 0.85rem;
  border: 1px solid rgba(201, 169, 97, 0.4);
}

.hero-badge .score {
  background: var(--gold);
  color: var(--black);
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}

.hero-scroll span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 12px;
  position: relative;
}

.hero-scroll span::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--gold);
  border-radius: 2px;
  animation: scroll-bounce 2s infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(10px); opacity: 0.3; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--white-pure);
  box-shadow: 0 4px 20px rgba(201, 169, 97, 0.4);
}

.btn-primary:hover {
  color: var(--white-pure);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201, 169, 97, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--white-pure);
  border-color: rgba(255,255,255,0.5);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white-pure);
  border-color: var(--gold);
}

.btn-block { width: 100%; }

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: linear-gradient(180deg, var(--gray-light) 0%, var(--white) 100%);
}

.section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 600;
  color: var(--black);
  margin-bottom: 0.75rem;
}

.section-head p {
  color: var(--gray);
  max-width: 520px;
  margin-inline: auto;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--delay, 0s);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Room */
.room-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .room-grid { grid-template-columns: 1fr 1fr; align-items: center; }
}

.room-card {
  background: var(--white-pure);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(196, 167, 125, 0.25);
}

.room-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-light);
}

.room-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold-dark);
}

.room-stats span { font-size: 0.8rem; color: var(--gray); }

.room-features {
  list-style: none;
  margin-bottom: 1.5rem;
}

.room-features li {
  padding: 0.45rem 0 0.45rem 1.5rem;
  position: relative;
  font-size: 0.95rem;
}

.room-features li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.7rem;
  top: 0.65rem;
}

.room-price {
  font-size: 1.1rem;
  color: var(--black);
}

.room-price strong {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--gold-dark);
}

.room-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.room-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
  transition: transform 0.6s ease;
}

.room-image:hover img { transform: scale(1.04); }

/* Amenities */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 600px) {
  .amenities-grid { grid-template-columns: repeat(4, 1fr); }
}

.amenity-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.25rem 0.75rem;
  background: var(--white-pure);
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: var(--shadow);
  border: 1px solid rgba(196, 167, 125, 0.15);
  transition: transform var(--transition), box-shadow var(--transition);
}

.amenity-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.amenity-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--wood-light), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.amenity-icon::after { content: '✓'; color: var(--black); font-weight: 700; }

/* Gallery */
.gallery-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
  scrollbar-width: none;
}

.gallery-track::-webkit-scrollbar { display: none; }

.gallery-item {
  flex: 0 0 min(85vw, 360px);
  scroll-snap-align: center;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform var(--transition);
}

.gallery-item:hover { transform: scale(1.02); }

.gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.gallery-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--wood-light);
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.gallery-dots button.active {
  background: var(--gold);
  width: 24px;
  border-radius: 4px;
}

.gallery-lightbox[hidden] { display: none; }

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 22, 18, 0.88);
  backdrop-filter: blur(8px);
}

.gallery-lightbox-panel {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: calc(100dvh - 2rem);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
}

.gallery-lightbox-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.gallery-lightbox-figure img {
  width: 100%;
  max-height: calc(100dvh - 6rem);
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  background: var(--black);
}

.gallery-lightbox-figure figcaption {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  text-align: center;
}

.gallery-lightbox-close {
  position: absolute;
  top: -0.25rem;
  right: 0;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition);
}

.gallery-lightbox-close:hover { background: rgba(255, 255, 255, 0.28); }

.gallery-lightbox-nav {
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  flex-shrink: 0;
}

.gallery-lightbox-nav:hover {
  background: var(--gold);
  color: var(--black);
  transform: scale(1.05);
}

@media (max-width: 640px) {
  .gallery-lightbox-panel {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    justify-items: center;
  }

  .gallery-lightbox-nav {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.4rem;
  }

  .gallery-lightbox-prev { order: 2; }
  .gallery-lightbox-figure { order: 1; grid-column: 1; }
  .gallery-lightbox-next { order: 3; }

  .gallery-lightbox-close {
    top: -2.75rem;
    right: 0.25rem;
  }
}

body.gallery-lightbox-open { overflow: hidden; }

/* Reviews */
.section-reviews {
  background: linear-gradient(165deg, var(--black) 0%, #2a2218 100%);
  color: var(--white-pure);
}

.section-reviews .section-head h2 { color: var(--white-pure); }
.section-reviews .section-head p { color: rgba(255,255,255,0.65); }

.reviews-subtitle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem !important;
}

.booking-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #003580;
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.reviews-carousel {
  position: relative;
  overflow: hidden;
}

.reviews-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.review-card {
  flex: 0 0 100%;
  padding: 2rem 1.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(201, 169, 97, 0.25);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  text-align: center;
}

@media (min-width: 768px) {
  .review-card {
    flex: 0 0 calc(50% - 0.5rem);
    margin-right: 1rem;
  }
}

@media (min-width: 1024px) {
  .review-card { flex: 0 0 calc(33.333% - 0.67rem); }
}

.review-stars {
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.review-stars .star.half { opacity: 0.45; }

.review-text {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  font-style: italic;
  line-height: 1.55;
  color: rgba(255,255,255,0.92);
  margin-bottom: 1.5rem;
  quotes: none;
}

.review-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: var(--black);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.review-author cite {
  font-style: normal;
  font-weight: 600;
  font-size: 1rem;
  color: var(--wood-light);
  letter-spacing: 0.03em;
}

.reviews-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.reviews-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(201, 169, 97, 0.5);
  background: transparent;
  color: var(--gold);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
}

.reviews-btn:hover {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}

.reviews-dots {
  display: flex;
  gap: 0.4rem;
}

.reviews-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}

.reviews-dots button.active {
  background: var(--gold);
  width: 20px;
  border-radius: 4px;
}

/* Booking */
.booking-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .booking-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: start;
  }
}

.calendar-panel {
  background: var(--white-pure);
  border-radius: var(--radius);
  padding: 1.25rem 1rem 1.25rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(196, 167, 125, 0.2);
  width: 100%;
  min-width: 0;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.calendar-header h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: 0.02em;
}

.cal-nav {
  width: 34px;
  height: 34px;
  border: 1px solid var(--gray-light);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  font-size: 1.15rem;
  color: var(--black);
  transition: var(--transition);
  line-height: 1;
}

.cal-nav:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white-pure);
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--gray);
  margin-bottom: 0.65rem;
}

.calendar-legend .dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  margin-right: 0.3rem;
  vertical-align: middle;
}

.dot.available { background: #3d9a6d; }
.dot.occupied { background: #c0392b; }
.dot.selected { background: var(--gold-dark); }

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 0.35rem;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
}

.cal-day {
  aspect-ratio: 1;
  min-height: 2.85rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1rem, 3.2vw, 1.2rem);
  font-weight: 700;
  border-radius: 8px;
  cursor: default;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  border: none;
  font-family: var(--font-body);
  line-height: 1;
  padding: 0;
}

.cal-day.empty {
  visibility: hidden;
  pointer-events: none;
  min-height: 2.85rem;
}

.cal-day.past {
  background: #ebe6de;
  color: #b8aea2;
}

.cal-day.available {
  background: #3d9a6d;
  color: #fff;
  cursor: pointer;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}

.cal-day.available:hover {
  filter: brightness(1.08);
  transform: scale(1.04);
  box-shadow: 0 4px 12px rgba(45, 106, 79, 0.35);
}

.cal-day.occupied {
  background: #c0392b;
  color: #fff;
  cursor: not-allowed;
  opacity: 0.92;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.15);
}

.cal-day.past.occupied {
  background: #d98880;
  color: rgba(255, 255, 255, 0.9);
}

.cal-day.range {
  background: var(--gold);
  color: var(--black);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.45);
}

.cal-day.check-in,
.cal-day.check-out {
  background: var(--gold-dark);
  color: var(--white-pure);
  box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px var(--gold-dark);
  transform: scale(1.05);
  z-index: 1;
}

@media (min-width: 768px) {
  .cal-day {
    min-height: 3.15rem;
    font-size: 1.15rem;
  }
}

.booking-form {
  border-radius: var(--radius);
  padding: 1.75rem;
}

.booking-form:not(.booking-form-card) {
  background: var(--white-pure);
  box-shadow: var(--shadow);
  border: 1px solid rgba(196, 167, 125, 0.2);
}

.form-row {
  margin-bottom: 1rem;
}

.form-row label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 0.35rem;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.2);
}

.booking-summary {
  background: var(--gray-light);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.form-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray);
  margin-top: 0.75rem;
}

.form-message {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  text-align: center;
}

.form-message.success {
  background: rgba(45, 106, 79, 0.12);
  color: var(--success);
}

.form-message.error {
  background: rgba(192, 57, 43, 0.12);
  color: var(--danger);
}

/* Contact — form card marrone + colonna info */
.contact-form-wrap {
  width: 100%;
}

.contact-form.contact-form-card,
.booking-form.booking-form-card {
  background: linear-gradient(165deg, #4a3f32 0%, var(--black) 42%, #2a2218 100%);
  color: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(196, 167, 125, 0.28);
}

.contact-form-card .contact-form-title,
.booking-form-card .contact-form-title {
  color: var(--white-pure);
}

.contact-form-card .contact-form-lead,
.booking-form-card .contact-form-lead {
  color: rgba(255, 255, 255, 0.72);
}

.contact-form-card .form-row label,
.booking-form-card .form-row label {
  color: var(--wood-light);
}

.contact-form-card .form-row input,
.contact-form-card .form-row textarea,
.booking-form-card .form-row input,
.booking-form-card .form-row select,
.booking-form-card .form-row textarea {
  background: rgba(255, 255, 255, 0.97);
  border-color: rgba(255, 255, 255, 0.18);
}

.contact-form-card .form-row input:focus,
.contact-form-card .form-row textarea:focus,
.booking-form-card .form-row input:focus,
.booking-form-card .form-row select:focus,
.booking-form-card .form-row textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.28);
}

.booking-form-card .booking-summary {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(196, 167, 125, 0.25);
}

.booking-form-card .booking-summary strong {
  color: var(--gold);
}

.contact-form-card .form-note,
.booking-form-card .form-note {
  color: rgba(255, 255, 255, 0.68);
}

.contact-form-card .form-note a,
.booking-form-card .form-note a {
  color: var(--gold);
}

.contact-form-card .form-note a:hover,
.booking-form-card .form-note a:hover {
  color: var(--wood-light);
}

.contact-form-card .btn-primary,
.booking-form-card .btn-primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
}

.contact-form-card .btn-primary:hover,
.booking-form-card .btn-primary:hover {
  background: var(--wood-light);
  border-color: var(--wood-light);
}

/* Contact (legacy grid) */
.contact-grid {
  display: grid;
  gap: 2rem;
}

.contact-page-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1.2fr; }
  .contact-page-layout { grid-template-columns: 1fr 1fr; align-items: start; }
}

.contact-aside {
  display: grid;
  gap: 1.5rem;
}

.contact-form-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  color: var(--black);
  margin-bottom: 0.5rem;
}

.contact-form-lead {
  color: var(--gray);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--white-pure);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  border: 1px solid rgba(196, 167, 125, 0.15);
  transition: transform var(--transition), box-shadow var(--transition);
  color: inherit;
}

.contact-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-lg);
  color: inherit;
}

.contact-card.whatsapp {
  border-color: rgba(37, 211, 102, 0.3);
  background: linear-gradient(135deg, rgba(37,211,102,0.08), var(--white-pure));
}

.contact-icon { font-size: 1.5rem; }

.contact-card strong {
  display: block;
  color: var(--black);
  font-size: 0.95rem;
}

.contact-card span {
  font-size: 0.82rem;
  color: var(--gray);
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.map-wrap iframe {
  width: 100%;
  height: min(360px, 50vw);
  border: 0;
  display: block;
}

.btn-map {
  display: block;
  text-align: center;
  margin: 0;
  border-radius: 0;
  color: var(--black);
  border-color: var(--gold);
  background: var(--white-pure);
}

.btn-map:hover {
  background: var(--gold);
  color: var(--white-pure);
}

/* Footer */
.site-footer {
  background: var(--black);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 0;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-logo {
  height: 64px;
  width: auto;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.footer-brand p { font-size: 0.9rem; margin-bottom: 0.5rem; }
.license { font-size: 0.75rem; opacity: 0.5; }

.site-footer h4 {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.site-footer a { color: rgba(255,255,255,0.8); }
.site-footer a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.25rem;
  text-align: center;
  font-size: 0.8rem;
}

.copyright-admin-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.copyright-admin-link:hover {
  color: var(--gold);
}

.footer-branding {
  margin-top: 0.75rem;
}

.archimede-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 0.35rem;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.archimede-trigger:hover {
  transform: scale(1.08);
  opacity: 0.9;
}

.archimede-trigger img {
  display: block;
  width: 1.75rem;
  height: auto;
}

.archimede-modal[hidden] { display: none; }

.archimede-modal {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.archimede-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 22, 18, 0.65);
  backdrop-filter: blur(6px);
}

.archimede-modal-panel {
  position: relative;
  z-index: 1;
  width: min(32rem, 100%);
  max-height: calc(100dvh - 2.5rem);
  overflow-y: auto;
  padding: 2rem 1.75rem 1.75rem;
  background: var(--white-pure);
  border: 1px solid rgba(196, 167, 125, 0.25);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.archimede-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 50%;
  background: var(--gray-light);
  color: var(--black);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.archimede-modal-close:hover { background: var(--wood-light); }

.archimede-modal-logo {
  width: min(240px, 70%);
  height: auto;
  margin: 0 auto 1rem;
  object-fit: contain;
}

.archimede-modal-panel h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--black);
}

.archimede-modal-lead {
  color: var(--gray);
  margin-bottom: 1rem;
}

.archimede-modal-list {
  list-style: none;
  text-align: left;
  margin: 0 0 1rem;
}

.archimede-modal-list li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.25rem;
  color: var(--black-soft);
  font-size: 0.95rem;
}

.archimede-modal-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold-dark);
  font-weight: 700;
}

.archimede-modal-note {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 1.25rem;
}

body.modal-open { overflow: hidden; }

/* Inner pages */
.page-hero {
  padding: calc(var(--header-h) + 2.5rem) 1.5rem 2.5rem;
  background: linear-gradient(180deg, var(--white) 0%, var(--gray-light) 100%);
  text-align: center;
}

.page-hero-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.75rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  color: var(--black);
  margin-bottom: 0.75rem;
}

.page-hero p {
  max-width: 42rem;
  margin-inline: auto;
  color: var(--gray);
}

.home-cards {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .home-cards { grid-template-columns: repeat(3, 1fr); }
}

.home-card {
  display: block;
  padding: 1.75rem;
  background: var(--white-pure);
  border: 1px solid rgba(196, 167, 125, 0.25);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition);
}

.home-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: inherit;
}

.home-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--black);
  margin-bottom: 0.5rem;
}

.home-card-link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  color: var(--gold-dark);
}

.seo-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .seo-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .seo-grid { grid-template-columns: repeat(3, 1fr); }
}

.seo-card {
  padding: 1.5rem;
  background: var(--white-pure);
  border-radius: var(--radius);
  border: 1px solid rgba(196, 167, 125, 0.2);
}

.seo-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--black);
  margin-bottom: 0.65rem;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.prose p {
  margin-bottom: 1rem;
  max-width: 48rem;
}

.home-cta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.prose .home-cta { justify-content: flex-start; }

main:not(.page-home) .section:first-of-type {
  padding-top: 2.5rem;
}

.page-prenota .page-hero {
  padding-bottom: 0;
}

.page-prenota .page-hero p {
  margin-bottom: 0;
}

.page-prenota .section:first-of-type {
  padding-top: 0;
}

/* Floating contact actions */
.float-actions {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.phone-float,
.whatsapp-float {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.phone-float {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  box-shadow: 0 4px 20px rgba(168, 134, 58, 0.45);
  animation: phone-pulse 3s infinite;
}

.phone-float svg {
  width: 26px;
  height: 26px;
  fill: #fff;
}

.phone-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 28px rgba(168, 134, 58, 0.55);
}

@keyframes phone-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(168, 134, 58, 0.45); }
  50% { box-shadow: 0 4px 32px rgba(168, 134, 58, 0.7); }
}

.whatsapp-float {
  background: #25D366;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  animation: wa-pulse 3s infinite;
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.55);
}

@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45); }
  50% { box-shadow: 0 4px 32px rgba(37, 211, 102, 0.7); }
}

@media (min-width: 768px) {
  .float-actions { bottom: 2rem; right: 2rem; }
}
