/* =========================================
   STILI PAGINA MENU – LA CASCINA
   Layout "book" con frecce e toggle set
   ========================================= */

/* sfondo solo per il body con classe menu-page */
body.menu-page {
  background: var(--bg-page);
}

/* Sezione principale */
.menu-section {
  padding-top: 110px;
  padding-bottom: 40px;
}

.menu-wrapper {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

/* Back button nell'header della pagina menu */
.back-btn {
  background: #000;
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.25s ease;
  white-space: nowrap;
}

.back-btn:hover {
  background: #333;
  transform: translateY(-2px);
}

/* Sottotitolo centrato (se usi la classe) */
.menu-subtitle {
  margin: 10px auto 22px;
  max-width: 600px;
  text-align: center;
}

/* ===========================
   BOTTONI SET MENU (Classico / Natale / Capodanno)
   =========================== */

.menu-toggle-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 620px;
  margin: 0 auto 22px;
  padding: 0 10px;
}

.menu-toggle-btn {
  flex: 1;
  padding: 10px 6px;
  font-size: 12px;
  border-radius: 999px;
  text-align: center;
  border: none;
  cursor: pointer;

  background: var(--accent);
  color: #2b2b2b;
  white-space: normal;
  line-height: 1.1;

  min-width: 0;
  overflow: hidden;
  transition: background 0.25s ease, color 0.25s ease,
              box-shadow 0.25s ease, transform 0.2s ease;
}

.menu-toggle-btn.active {
  background: #000;
  color: #fff;
  box-shadow: 0 10px 26px rgba(0,0,0,0.16);
  transform: translateY(-1px);
}

/* ===========================
   BOOK VIEWER
   =========================== */

.menu-book-wrapper {
  position: relative;
  margin: 0 auto;
  margin-top: 12px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  border: 1px solid rgba(0,0,0,0.06);

  width: 100%;
  max-width: 900px;
  height: min(80vh, 640px);

  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.menu-book {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Pagine (immagini del menu) */
.menu-book-page {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;

  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.7s ease, transform 0.9s cubic-bezier(.77,0,.18,1);
  border-radius: 14px;
}

.menu-book-page.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

/* Frecce di navigazione */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  cursor: pointer;

  background: rgba(255,255,255,0.75);
  color: #1b2638;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 8px 22px rgba(0,0,0,0.18);
  backdrop-filter: blur(8px);
  z-index: 5;
  transition: transform 0.25s ease, background 0.25s ease;
}

.arrow.left  { left: 14px; }
.arrow.right { right: 14px; }

.arrow:hover {
  background: rgba(255,255,255,0.95);
  transform: translateY(-50%) scale(1.08);
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 900px) {
  .menu-section {
    padding-top: 100px;
    padding-bottom: 28px;
  }

  .menu-wrapper {
    padding: 0 14px;
  }

  .menu-book-wrapper {
    height: 70vh;
    box-shadow: 0 14px 40px rgba(0,0,0,0.14);
  }

  .arrow {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }
}

@media (max-width: 600px) {
  .menu-book-wrapper {
    height: 65vh;
  }

  .menu-toggle-bar {
    gap: 4px;
    padding: 0;
  }

  .menu-toggle-btn {
    font-size: 11px;
    padding: 9px 4px;
  }
}
