/* ===========================
   Bar La Playa - home
   Rework Bootstrap mobile-first
=========================== */
:root {
  --gold: #f7c948;
  --gold-strong: #ffd700;
  --cream: #fff5cf;
  --dark: #070707;
  --glass: rgba(8, 8, 8, 0.58);
  --glass-strong: rgba(0, 0, 0, 0.72);
  --line: rgba(255, 255, 255, 0.18);
  --radius-lg: 1.45rem;
  --shadow-soft: 0 1.25rem 3.75rem rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  font-family: 'Raleway', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #fff;
  background: #050505;
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background: url('images/sfondo2.png') center/cover no-repeat;
  z-index: -2;
}

body::after {
  background:
    radial-gradient(circle at top, rgba(255, 215, 0, 0.16), transparent 34rem),
    linear-gradient(180deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.84));
  z-index: -1;
}

a {
  color: var(--gold);
  text-underline-offset: 0.25rem;
}

a:hover {
  color: #fff1a8;
}

img {
  max-width: 100%;
}

/* Splash */
#splash {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.92);
  animation: splashExit 0.9s ease 2.35s forwards;
}

.splash-content {
  text-align: center;
  animation: splashPop 0.8s cubic-bezier(.2, .9, .2, 1.2) both;
}

.splash-logo {
  width: clamp(7rem, 34vw, 10rem);
  filter: drop-shadow(0 1rem 2rem rgba(255, 215, 0, 0.2));
}

.splash-text {
  margin: 1rem 0 0;
  font-size: clamp(1.2rem, 6vw, 1.8rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.08em;
}

@keyframes splashPop {
  from { opacity: 0; transform: translateY(1rem) scale(0.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes splashExit {
  to { opacity: 0; visibility: hidden; }
}

/* Layout */
.site-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.36));
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(1rem);
}

.site-shell::before {
  content: '';
  position: absolute;
  inset: -8rem auto auto -8rem;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background: rgba(255, 215, 0, 0.12);
  filter: blur(0.5rem);
  pointer-events: none;
}

.heading .italic-text,
.italic-text {
  margin: 0 0 1rem;
  text-align: center;
  font-style: italic;
  color: var(--cream);
  letter-spacing: 0.12em;
  text-shadow: 0 0.75rem 1.75rem rgba(0, 0, 0, 0.8);
}

.logo-container {
  margin: 1rem 0 1.4rem;
  text-align: center;
}

.logo-container img,
.logo {
  width: clamp(6.8rem, 34vw, 9.5rem);
  height: auto;
  transition: transform 0.35s ease, filter 0.35s ease;
  filter: drop-shadow(0 1rem 2rem rgba(0, 0, 0, 0.45));
}

.logo-container img:hover,
.logo:focus-visible {
  transform: translateY(-0.2rem) scale(1.04) rotate(-1deg);
  filter: drop-shadow(0 1rem 2.3rem rgba(255, 215, 0, 0.22));
}

.brand-link img {
  width: clamp(3.2rem, 18vw, 4.4rem);
}

.glass-card {
  border: 1px solid var(--line);
  background: var(--glass);
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(0.9rem);
}

/* Sliders */
.slider-card {
  position: relative;
  overflow: hidden;
  margin: 1.2rem 0;
  border-radius: var(--radius-lg);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.slider-track,
.slider-track-2,
.marquee-track {
  display: flex;
  width: max-content;
  gap: 0.75rem;
  padding: 0.75rem;
  will-change: transform;
}

.marquee-track.is-animated {
  animation: marqueeMove 36s linear infinite;
}

.slider-card:hover .marquee-track.is-animated {
  animation-play-state: paused;
}

.slider-img,
.slider-track img,
.slider-track-2 img {
  flex: 0 0 auto;
  width: clamp(10rem, 72vw, 19rem);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 0.85rem 1.75rem rgba(0, 0, 0, 0.38);
  transition: transform 0.35s ease, filter 0.35s ease;
}

.slider-img:hover {
  transform: translateY(-0.28rem) scale(1.02);
  filter: saturate(1.12) contrast(1.04);
}

@keyframes marqueeMove {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Button */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 22rem);
  min-height: 3.2rem;
  margin: 1.5rem auto 2rem;
  border: 1px solid rgba(255, 215, 0, 0.84) !important;
  color: var(--gold) !important;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.14), rgba(255, 255, 255, 0.03)) !important;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.button:hover,
.button:focus-visible {
  color: #151515 !important;
  background: linear-gradient(135deg, var(--gold-strong), #ffe68a) !important;
  transform: translateY(-0.18rem);
  box-shadow: 0 1rem 2rem rgba(255, 215, 0, 0.16) !important;
}

/* Puzzle menu */
.puzzle-layout {
  margin-top: 1rem;
}

.puzzle-sidebar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.category-card {
  position: relative;
  min-height: 100%;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.58) !important;
  color: #fff;
  border-radius: 1.15rem;
  box-shadow: 0 0.8rem 1.9rem rgba(0, 0, 0, 0.34);
  isolation: isolate;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.category-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.9));
}

.category-card img {
  height: clamp(6.6rem, 34vw, 10rem);
  object-fit: cover;
  filter: saturate(0.98) brightness(0.9);
  transition: transform 0.38s ease, filter 0.38s ease;
}

.category-card h3 {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.7rem;
  z-index: 1;
  margin: 0;
  font-size: clamp(0.95rem, 3.8vw, 1.08rem);
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0.65rem 1.25rem rgba(0, 0, 0, 0.9);
}

.category-card:hover,
.category-card:focus-visible,
.category-card.active {
  transform: translateY(-0.25rem);
  box-shadow: 0 1.1rem 2.5rem rgba(0, 0, 0, 0.45), 0 0 0 0.12rem rgba(255, 215, 0, 0.45);
  outline: 0;
}

.category-card:hover img,
.category-card:focus-visible img,
.category-card.active img {
  transform: scale(1.06);
  filter: saturate(1.15) brightness(1.02);
}

.puzzle-content {
  min-height: 0;
}

.menu-panel,
.puzzle-dropdown {
  display: block;
  max-height: 0;
  overflow: hidden;
  padding: 0 1rem;
  border-radius: 1.2rem;
  opacity: 0;
  transform: translateY(-0.5rem);
  transition: max-height 0.55s ease, opacity 0.35s ease, transform 0.35s ease, padding 0.35s ease;
}

.puzzle-dropdown.open {
  max-height: 5000px;
  margin-top: 0.9rem;
  padding: 1rem;
  opacity: 1;
  transform: translateY(0);
}

.puzzle-sidebar .puzzle-dropdown {
  grid-column: 1 / -1;
}

.menu-list {
  display: grid;
  gap: 0.5rem;
}

.menu-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.72rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  line-height: 1.35;
}

.menu-row:last-child {
  border-bottom: 0;
}

.price,
.price-pill {
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--gold-strong);
  font-weight: 900;
  white-space: nowrap;
}

/* Footer */
.logo-container + b p,
.logo-container + b,
.site-shell > b,
.site-shell > p {
  text-align: center;
}

.site-shell > p,
.site-shell > b p {
  margin-bottom: 0.55rem;
}

/* Scroll animation */
.anim-entry {
  opacity: 0;
  transform: translateY(1.4rem);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.anim-entry.show {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 576px) {
  .puzzle-sidebar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .site-shell {
    padding-block: 2.2rem !important;
  }

  .puzzle-sidebar {
    grid-template-columns: 1fr;
  }

  .category-card img {
    height: 7.2rem;
  }

  .puzzle-dropdown.open {
    margin-top: 0;
    padding: 1.25rem;
  }

  .menu-list {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1200px) {
  .site-shell {
    max-width: 1120px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .anim-entry {
    opacity: 1;
    transform: none;
  }

  .marquee-track.is-animated {
    animation: none;
  }
}
