* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --cream: #F5F0E8;
  --dark: #1A1612;
  --gold: #C9A96E;
  --gold-light: #E8D5B0;
  --muted: #7A7060;
  --white: #FFFFFF;
}

body {
  background: var(--dark);
  color: var(--cream);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  border-bottom: 1px solid rgba(201, 169, 110, 0.15);
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
}

.nav-logo span {
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.7);
  text-decoration: none;
  transition: color .2s;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-book {
  background: var(--gold);
  color: var(--dark);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.65rem 1.6rem;
  text-decoration: none;
  font-weight: 500;
  transition: background .2s;
}

.nav-book:hover {
  background: var(--gold-light);
}

.hero {
  position: relative;
  padding: 0;
  text-align: center;
  border-bottom: 1px solid rgba(201, 169, 110, 0.1);
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Video di sfondo hero */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
}

/* Overlay: sfuma il video per leggibilità del testo */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(26, 22, 18, 0.65) 0%,
      rgba(26, 22, 18, 0.58) 35%,
      rgba(26, 22, 18, 0.82) 100%);
  z-index: 1;
}

/* Contenuto hero sopra il video */
.hero-content {
  position: relative;
  z-index: 2;
  padding: 6rem 3rem 5rem;
  width: 100%;
}

.eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.eyebrow::before,
.eyebrow::after {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--gold);
}

.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.2rem, 7vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--cream);
  margin-bottom: 0.4rem;
  text-shadow:
    0 2px 28px rgba(0, 0, 0, 0.85),
    0 1px 6px rgba(0, 0, 0, 0.65),
    0 0px 60px rgba(0, 0, 0, 0.4);
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
  text-shadow:
    0 2px 24px rgba(0, 0, 0, 0.85),
    0 1px 6px rgba(0, 0, 0, 0.6);
}

.hero-sub {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.85);
  margin-bottom: 1rem;
  text-shadow:
    0 1px 12px rgba(0, 0, 0, 0.9),
    0 0px 30px rgba(0, 0, 0, 0.6);
}

.hero-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: rgba(245, 240, 232, 0.88);
  margin-bottom: 2.5rem;
  text-shadow:
    0 1px 14px rgba(0, 0, 0, 0.9),
    0 0px 35px rgba(0, 0, 0, 0.55);
}

.cta-row {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.btn-gold {
  background: var(--gold);
  color: var(--dark);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  text-decoration: none;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background .2s, box-shadow .2s;
  /* Ombra esterna scura per staccarsi dal video */
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.7), 0 2px 8px rgba(0, 0, 0, 0.5);
}

.btn-gold:hover {
  background: var(--gold-light);
}

.btn-ghost {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  opacity: 0.85;
  transition: opacity .2s;
  background: none;
  border: none;
  cursor: pointer;
  /* Ombra scura sul testo chiaro */
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.9), 0 0px 25px rgba(0, 0, 0, 0.6);
}

.btn-ghost:hover {
  opacity: 1;
}

.capacity-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(201, 169, 110, 0.18);
  border-bottom: 1px solid rgba(201, 169, 110, 0.18);
}

.cap-item {
  padding: 1.8rem 2rem;
  text-align: center;
  border-right: 1px solid rgba(201, 169, 110, 0.18);
}

.cap-item:last-child {
  border-right: none;
}

.cap-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--gold);
  display: block;
  line-height: 1;
}

.cap-label {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-top: 0.4rem;
}

.cap-desc {
  font-size: 0.75rem;
  color: rgba(245, 240, 232, 0.5);
  margin-top: 0.3rem;
}

section {
  padding: 5rem 3rem;
}

#posizione {
  padding-top: 8rem;
}

.sec-eyebrow {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.sec-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--cream);
}

.sec-title em {
  font-style: italic;
  color: var(--gold-light);
}

.gold-rule {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 1.2rem 0;
}

.configs-section {
  background: rgba(201, 169, 110, 0.03);
  border-top: 1px solid rgba(201, 169, 110, 0.1);
}

.configs-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.configs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: rgba(201, 169, 110, 0.15);
  max-width: 1080px;
  margin: 0 auto;
}

.config-card {
  background: var(--dark);
  padding: 2.5rem 2rem;
  position: relative;
}

.config-card.featured {
  background: rgba(201, 169, 110, 0.05);
}

.config-badge {
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201, 169, 110, 0.4);
  padding: 0.3rem 0.8rem;
  display: inline-block;
  margin-bottom: 1.2rem;
}

.config-badge.highlight {
  background: var(--gold);
  color: var(--dark);
}

.config-icon {
  margin-bottom: 1rem;
}

.config-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--gold);
  stroke-width: 1.2;
  fill: none;
}

.config-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 0.3rem;
}

.config-guests {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.config-desc {
  font-size: 0.82rem;
  line-height: 1.8;
  color: rgba(245, 240, 232, 0.6);
  margin-bottom: 1.5rem;
}

.config-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.config-features li {
  font-size: 0.75rem;
  color: rgba(245, 240, 232, 0.65);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.config-features li::before {
  content: '';
  width: 16px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.config-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  color: var(--gold);
}

.config-price span {
  font-family: 'Jost', sans-serif;
  font-size: 0.65rem;
  color: var(--muted);
}

.config-price-range {
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.2rem;
  letter-spacing: 0.02em;
}

.config-link {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  margin-top: 1rem;
  display: inline-block;
  transition: opacity .2s;
}

.config-link:hover {
  opacity: 0.7;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  max-width: 1050px;
  margin: 0 auto;
}

.about-section {
  background: rgba(201, 169, 110, 0.03);
  border-top: 1px solid rgba(201, 169, 110, 0.1);
}

.about-img-box {
  width: 100%;
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, #2D2418, #3D3020);
  border: 1px solid rgba(201, 169, 110, 0.25);
  overflow: hidden;
  position: relative;
}

.about-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s ease;
}

.about-img-box:hover img {
  transform: scale(1.04);
}

.img-placeholder-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  color: var(--gold);
  opacity: 0.35;
  font-style: italic;
}

.img-placeholder-sub {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.6;
}

.about-body p {
  font-size: 0.88rem;
  line-height: 1.95;
  color: rgba(245, 240, 232, 0.68);
  margin-bottom: 1.1rem;
}

.experience-section {
  border-top: 1px solid rgba(201, 169, 110, 0.1);
}

.exp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid rgba(201, 169, 110, 0.15);
  max-width: 1080px;
  margin: 3rem auto 0;
}

.exp-item {
  padding: 2rem 1.5rem;
  border-right: 1px solid rgba(201, 169, 110, 0.15);
  text-align: center;
}

.exp-item:last-child {
  border-right: none;
}

.exp-item svg {
  width: 24px;
  height: 24px;
  stroke: var(--gold);
  stroke-width: 1.2;
  fill: none;
  margin-bottom: 1rem;
}

.exp-item-title {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.exp-item-desc {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Gallery Tabs */
.gallery-tabs {
  display: inline-flex;
  gap: 0;
  margin-top: 1.5rem;
  border: 1px solid rgba(201, 169, 110, 0.3);
  border-radius: 2rem;
  overflow: hidden;
}

.gallery-tab {
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.6rem 2rem;
  border: none;
  cursor: pointer;
  transition: all 0.35s ease;
  background: transparent;
  color: rgba(245, 240, 232, 0.35);
  position: relative;
}

.gallery-tab:hover {
  color: rgba(245, 240, 232, 0.6);
}

.gallery-tab.active {
  background: rgba(201, 169, 110, 0.15);
  color: var(--gold);
  font-weight: 500;
}

/* Sezione Galleria Appartamento */
.apartment-gallery-section {
  padding: 4rem 2rem;
}

/* Gallery Container – contesto di posizionamento per sovrapporre i pannelli */
.gallery-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

/* Gallery Panels */
.gallery-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  visibility: hidden;
}

.gallery-panel.active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 0;
}

.g-item {
  aspect-ratio: 3/4;
  background: linear-gradient(160deg, #1E1810, #2D2418);
  position: relative;
  overflow: hidden;
}

/* Immagini appartamento nella gallery */
.g-apt img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s ease;
}

.g-apt:hover img {
  transform: scale(1.05);
}

.g-label {
  position: absolute;
  bottom: 1.2rem;
  left: 1.2rem;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.92);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.95);
  background: rgba(26, 22, 18, 0.55);
  padding: 0.35rem 0.8rem;
  backdrop-filter: blur(4px);
  border-radius: 0.2rem;
  font-weight: 400;
  z-index: 2;
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  max-width: 1050px;
  margin: 0 auto;
}

.loc-map {
  max-width: 420px;
  width: 100%;
  justify-self: center;
  background: linear-gradient(135deg, #1C2020, #28281A);
  border: 1px solid rgba(201, 169, 110, 0.2);
  position: relative;
  overflow: hidden;
}

.loc-map img,
.loc-map video {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
}

.loc-map:hover img,
.loc-map:hover video {
  transform: scale(1.04);
}

.loc-map-caption {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.85);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
  white-space: nowrap;
  background: rgba(26, 22, 18, 0.5);
  padding: 0.35rem 0.8rem;
  backdrop-filter: blur(4px);
}

.loc-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.loc-row {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.loc-dash {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: var(--gold);
  opacity: 0.4;
  min-width: 1.5rem;
}

.loc-info strong {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 0.15rem;
}

.loc-info span {
  font-size: 0.78rem;
  color: var(--muted);
}

.booking-section {
  background: rgba(201, 169, 110, 0.04);
  border-top: 1px solid rgba(201, 169, 110, 0.15);
  text-align: center;
}

.booking-inner {
  max-width: 860px;
  margin: 0 auto;
}

.booking-form {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 1fr auto;
  margin-top: 2.5rem;
  border: 1px solid rgba(201, 169, 110, 0.3);
}

.b-field {
  padding: 1.1rem 1.4rem;
  border-right: 1px solid rgba(201, 169, 110, 0.2);
  background: rgba(26, 22, 18, 0.6);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: left;
}

.b-field label {
  font-size: 0.52rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
}

.b-field select,
.b-field input {
  background: none;
  border: none;
  color: var(--cream);
  font-family: 'Jost', sans-serif;
  font-size: 0.82rem;
  outline: none;
  width: 100%;
}

.b-field select option {
  background: #1A1612;
}

.b-submit {
  padding: 1.1rem 2rem;
  background: var(--gold);
  color: var(--dark);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  border: none;
  cursor: pointer;
  font-family: 'Jost', sans-serif;
  white-space: nowrap;
  transition: background .2s;
}

.b-submit:hover {
  background: var(--gold-light);
}

/* --- RIEPILOGO PREZZI DINAMICO --- */
.price-summary-box {
  margin-top: 2.5rem;
  background: rgba(26, 22, 18, 0.8);
  border: 1px solid rgba(201, 169, 110, 0.25);
  padding: 0;
  text-align: left;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  opacity: 0;
  transform: translateY(15px);
  pointer-events: none;
  height: 0;
  overflow: hidden;
}

.price-summary-box.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  height: auto;
  padding: 2rem;
  border: 1px solid rgba(201, 169, 110, 0.25);
}

.summary-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-style: italic;
  color: var(--gold-light);
  margin-bottom: 1.2rem;
  border-bottom: 1px solid rgba(201, 169, 110, 0.15);
  padding-bottom: 0.5rem;
}

.summary-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}

.summary-label {
  color: rgba(245, 240, 232, 0.7);
}

.summary-value {
  color: var(--cream);
  font-weight: 400;
}

.summary-divider {
  height: 1px;
  background: rgba(201, 169, 110, 0.15);
  margin: 0.5rem 0;
}

.summary-row.total {
  font-size: 1.05rem;
  margin-top: 0.2rem;
}

.summary-row.total .summary-label {
  color: var(--cream);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
}

.summary-row.total .summary-value {
  color: var(--gold);
  font-size: 1.4rem;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
}

@media (max-width: 768px) {
  .booking-form {
    grid-template-columns: 1fr;
  }

  .b-field {
    border-right: none;
    border-bottom: 1px solid rgba(201, 169, 110, 0.15);
  }

  .booking-form button.b-submit {
    width: 100%;
    padding: 1.3rem;
  }

  .price-summary-box.active {
    padding: 1.5rem;
  }
}

.booking-note {
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 1.2rem;
}

footer {
  padding: 2.5rem 3rem 1.8rem;
  border-top: 1px solid rgba(201, 169, 110, 0.15);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

/* Riga superiore: logo + contatti + link */
.f-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.f-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
}

.f-logo span {
  color: var(--gold);
}

/* Contatti: email + telefono */
.f-contacts {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.f-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: rgba(245, 240, 232, 0.65);
  text-decoration: none;
  transition: color .2s;
}

.f-contact-item:hover {
  color: var(--gold);
}

.f-contact-item svg {
  width: 13px;
  height: 13px;
  stroke: var(--gold);
  stroke-width: 1.5;
  fill: none;
  flex-shrink: 0;
}

.f-links {
  display: flex;
  gap: 1.8rem;
  align-items: center;
}

.f-links a {
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}

.f-links a:hover {
  color: var(--gold);
}

/* Riga codici legali CIN / CIR */
.f-legal {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(201, 169, 110, 0.08);
  flex-wrap: wrap;
}

.f-legal-item {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: rgba(245, 240, 232, 0.38);
  font-family: 'Jost', sans-serif;
}

.f-legal-item em {
  font-style: normal;
  color: rgba(201, 169, 110, 0.55);
  margin-right: 0.4rem;
  font-weight: 500;
}

.f-legal-sep {
  color: rgba(201, 169, 110, 0.25);
  font-size: 0.7rem;
}

.f-copy {
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: rgba(245, 240, 232, 0.25);
  text-align: center;
}

/* --- BACKGROUND MUSIC WIDGET --- */
.music-toggle-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
  gap: 0.8rem;
}

.music-toggle-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(26, 22, 18, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(201, 169, 110, 0.35);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  outline: none;
}

.music-toggle-btn:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(201, 169, 110, 0.25);
}

.music-toggle-btn:active {
  transform: translateY(-1px);
}

.soundwave {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
  width: auto;
}

.soundwave-bar {
  width: 2px;
  background-color: var(--gold);
  border-radius: 1px;
  height: 100%;
  transform-origin: bottom;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Playing Animation */
.music-toggle-btn.playing .soundwave-bar {
  animation: bounce 1.2s ease-in-out infinite alternate;
}

.music-toggle-btn.playing .soundwave-bar:nth-child(1) {
  animation-delay: 0.1s;
  height: 14px;
}

.music-toggle-btn.playing .soundwave-bar:nth-child(2) {
  animation-delay: 0.45s;
  height: 18px;
}

.music-toggle-btn.playing .soundwave-bar:nth-child(3) {
  animation-delay: 0.25s;
  height: 11px;
}

.music-toggle-btn.playing .soundwave-bar:nth-child(4) {
  animation-delay: 0.6s;
  height: 16px;
}

.music-toggle-btn.playing .soundwave-bar:nth-child(5) {
  animation-delay: 0.35s;
  height: 13px;
}

@keyframes bounce {
  0% {
    transform: scaleY(0.25);
  }

  100% {
    transform: scaleY(1);
  }
}

/* Muted State (Slash Line) */
.music-toggle-btn::after {
  content: '';
  position: absolute;
  width: 60%;
  height: 2px;
  background-color: var(--gold);
  transform: rotate(-45deg) scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: center;
  box-shadow: 0 0 3px rgba(26, 22, 18, 0.9);
}

.music-toggle-btn.muted::after {
  transform: rotate(-45deg) scaleX(1);
}

/* --- LIGHTBOX GALLERY --- */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 22, 18, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 85vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow: auto;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  animation: fadeInZoom 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes fadeInZoom {
  from {
    opacity: 0;
    transform: scale(0.85);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: rgba(201, 169, 110, 0.15);
  border: 1px solid rgba(201, 169, 110, 0.35);
  color: var(--cream);
  font-size: 2.5rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  outline: none;
  z-index: 1;
}

.lightbox-close:hover {
  background: rgba(201, 169, 110, 0.25);
  border-color: var(--gold);
  color: var(--gold);
  transform: rotate(90deg);
}

/* Responsive lightbox */
@media (max-width: 768px) {
  .lightbox-close {
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    font-size: 2rem;
  }

  .lightbox-content {
    max-width: 95vw;
    max-height: 80vh;
    padding: 1rem;
  }
}

.music-toggle-btn.muted .soundwave-bar {
  transform: scaleY(0.2) !important;
  opacity: 0.4;
  animation: none;
}

/* Mute tooltip text */
.music-tooltip {
  background: rgba(26, 22, 18, 0.95);
  border: 1px solid rgba(201, 169, 110, 0.25);
  color: var(--cream);
  font-family: 'Jost', sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.45rem 0.9rem;
  pointer-events: none;
  opacity: 0;
  transform: translateX(8px);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.music-toggle-container:hover .music-tooltip {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 768px) {
  .music-toggle-container {
    bottom: 1.5rem;
    right: 1.5rem;
  }

  .music-toggle-btn {
    width: 45px;
    height: 45px;
  }

  .music-tooltip {
    display: none;
    /* Hide tooltip on mobile to avoid overlap */
  }
}

/* ================================================
   SEZIONE DINTORNI DI PALERMO
   ================================================ */
.dintorni-section {
  padding: 5rem 3rem;
  background: rgba(201, 169, 110, 0.03);
  border-top: 1px solid rgba(201, 169, 110, 0.1);
}

.dintorni-header {
  text-align: center;
  margin-bottom: 3rem;
}

/* Layout: 1 foto grande a sx + 2 foto impilate a dx */
.dintorni-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 6px;
  max-width: 1080px;
  margin: 0 auto;
  height: 520px;
}

.d-main {
  position: relative;
  overflow: hidden;
}

.d-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.7s ease;
}

.d-main:hover img {
  transform: scale(1.04);
}

.d-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
}

.d-item {
  position: relative;
  overflow: hidden;
}

.d-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.7s ease;
}

.d-item:hover img {
  transform: scale(1.05);
}

.d-label {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  font-size: 0.55rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.88);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.95);
  background: rgba(26, 22, 18, 0.45);
  padding: 0.3rem 0.7rem;
  backdrop-filter: blur(3px);
}

/* ================================================
   RESPONSIVE — Dintorni
   ================================================ */
@media (max-width: 768px) {
  .dintorni-grid {
    grid-template-columns: 1fr;
    height: auto;
  }

  .d-main {
    height: 260px;
  }

  .d-side {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    height: 180px;
  }
}

/* ================================================
   RESPONSIVE GLOBALE
   (proporzioni layout su tablet/mobile — nessuna
   modifica ai colori, font o al design desktop)
   ================================================ */

/* --- Tablet grande / 1024px --- */
@media (max-width: 1024px) {
  section {
    padding: 4rem 2rem;
  }

  #posizione {
    padding-top: 5rem;
  }

  .hero-content {
    padding: 5rem 2rem 4rem;
  }

  .configs-grid {
    grid-template-columns: 1fr 1fr;
    max-width: 720px;
  }

  .exp-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 720px;
  }

  .exp-item {
    border-bottom: 1px solid rgba(201, 169, 110, 0.15);
  }

  .exp-item:nth-child(2n) {
    border-right: none;
  }

  .exp-item:nth-child(3),
  .exp-item:nth-child(4) {
    border-bottom: none;
  }

  .gallery-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid,
  .location-grid {
    gap: 3rem;
  }
}

/* --- Tablet / 900px: nav --- */
@media (max-width: 900px) {
  nav {
    flex-wrap: wrap;
    row-gap: 1rem;
    padding: 1.2rem 1.5rem;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.2rem 1.6rem;
  }
}

/* --- Mobile / 768px --- */
@media (max-width: 768px) {
  section {
    padding: 3.5rem 1.5rem;
  }

  #posizione {
    padding-top: 4rem;
  }

  .hero-content {
    padding: 4.5rem 1.5rem 3.5rem;
  }

  .capacity-strip {
    grid-template-columns: 1fr;
  }

  .cap-item {
    border-right: none;
    border-bottom: 1px solid rgba(201, 169, 110, 0.18);
    padding: 1.4rem 1.5rem;
  }

  .cap-item:last-child {
    border-bottom: none;
  }

  .configs-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .config-card {
    padding: 2rem 1.6rem;
  }

  .about-grid,
  .location-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-img-box {
    max-width: 420px;
    margin: 0 auto;
  }

  .loc-map {
    margin: 0 auto;
  }

  .exp-grid {
    max-width: 480px;
  }
}

/* --- Mobile piccolo / 560px --- */
@media (max-width: 560px) {
  .nav-links a {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
  }

  .nav-book {
    padding: 0.55rem 1.2rem;
    font-size: 0.6rem;
  }

  .exp-grid {
    grid-template-columns: 1fr;
  }

  .exp-item {
    border-right: none;
    border-bottom: 1px solid rgba(201, 169, 110, 0.15);
  }

  .exp-item:last-child {
    border-bottom: none;
  }

  .gallery-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }

  .cta-row {
    gap: 1rem;
  }
}