/* NAV CONTAINER */
.sandwich-nav {
  position: fixed;
  bottom: 0px;
  padding-bottom: 48px;
  left: 0;
  width: 100%;
  height: auto;
  max-height: calc(100dvh - 70px);
  background: var(--surface);
  transform: translateY(110%);
  transition: transform .35s ease;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  opacity: 0.85;
}

.sandwich-nav.active {
  transform: translateY(0);
}

/* SCROLL */
.sandwich-scroll {
  flex: 0 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background-color: var(--bg);
  padding-bottom: 10px;
  padding-top: 10px;
  border-radius: 12px;
  padding-right: 15px;
  padding-left: 15px;
}

/* LISTA */
.sandwich-list {
  margin: 0 0 20px 0;
  padding: 0;
}

/* VOCI */
.sandwich-item {
  border-bottom: 1px solid var(--bg);
  list-style: none !important;
}

.sandwich-link {
  text-decoration: none;
  text-transform:capitalize;
  font-family: var(--font-title);
  display: flex;
  padding: 0px 20px;
  width: 100%;
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
  letter-spacing: 0.03em;
  /* background-color: #ffffff; */
  margin-top: 5px;
  margin-right: 5px;
  /* border-radius: 10px; */
  font-size: 18px;
  /* font-family: var(--font-title) */
  /* box-shadow: 2px 2px 4px 0px #d0d0d0; */
  margin-bottom: 4px;
  align-content: center;
  text-align: left;
  align-items: center;
  justify-content: space-between;
}

.sandwich-link:hover {
  background: #f8f9fa;
  text-decoration: none;
}

/* SOTTOMENU (sfondo uniforme #F6F4F1) */
.sandwich-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  /* background: #F6F4F1; */
  padding: 0;
  margin: 0;
  /* border-radius: 10px; */
}

.sandwich-submenu.active {
  max-height: 1000px;
  padding: 0px 0;
  margin: 0 0px 0px 0;
}

/* (se usi anche i link con classe .sandwich-sublink) */
.sandwich-sublink {
  display: block;
  padding: 12px 20px 12px 40px;
  text-decoration: none;
  color: #555;
}

/* BOTTOM BAR */
.sandwich-bottom-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 60px;
  z-index: 9999;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0,0,0,0.06);
  display: flex;
  justify-content: center;
  /* align-items:center; */
}

/* TOGGLE */
.sandwich-toggle {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  width: 40px;
  height: 40px;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.sandwich-toggle .sandwich-bar {
  display: block !important;
  width: 24px !important;
  height: 2px !important;
  margin: 3px 0 !important;
  background-color: #333 !important;
  border-radius: 2px;
  opacity: 1;
}

.sandwich-toggle.active .sandwich-bar:nth-child(1) {
  transform: rotate(45deg) translate(7px, 5px);
}

.sandwich-toggle.active .sandwich-bar:nth-child(2) {
  opacity: 0;
}

.sandwich-toggle.active .sandwich-bar:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -4px);
}

/* OVERLAY */
.sandwich-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all .3s ease;
  z-index: 999;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.sandwich-overlay.active {
  opacity: 1;
  visibility: visible;
}

@media (min-width: 768px) {
  /* NAV: da destra (desktop/tablet) */
  .sandwich-nav {
    top: 0;
    right: 0;
    bottom: auto;
    left: auto;
    width: min(420px, 32vw);
    height: 100vh;
    max-height: none;
    transform: translateX(100%);
    transition: transform .35s ease;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
  }

  .sandwich-nav.active {
    transform: translateX(0);
  }

  /* DESKTOP: sfondo uniforme fino in fondo */
  .sandwich-scroll {
    flex: 1;
  }
}

/* SOLO pulsanti dentro i submenu */
.sandwich-submenu .sandwich-link {
  font-size: 16px;
  padding: 5px 21px 0px 20px;
  box-shadow: none;
  margin: 4px 6px 4px 10%;
  color: var(--ink) !important;
  /* background-color: #ffffff; */
  width: 90%;
}

/* Hover SOLO submenu */
.sandwich-submenu .sandwich-link:hover {
  background: var(--bg);
}

#menu_livello3.sandwich-submenu a.sandwich-link {
  color: var(--muted) !important;
  background-color: #fdfdfd;
}

#menu_livello3.sandwich-submenu {
  padding-left: 12%;
}

/* Nasconde la scrollbar SOLO su mobile (scroll resta attivo) */
@media (max-width: 767px){
  .sandwich-scroll {
    -ms-overflow-style: none;
    /* IE/Edge legacy */
    scrollbar-width: none;
    /* Firefox */
  }

  .sandwich-scroll::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari/iOS */
  }
}

/* ===================== stili nuovi menu ==================== */
.link_main a,
.link_main button {
  font-size: 22px !important;
  margin-top: 5px !important;
  margin-bottom: 5px !important;
}

.link_secondary a,
.link_secondary button {
  font-size: 18px !important;
  margin-top: 3px !important;
  margin-bottom: 3px !important;
}

.margin_top_20 {
  margin-top: 20px;
}

.margin_bottom_20 {
  margin-bottom: 20px;
}

.sandwich-list > li {
  opacity: 0;
  transform: translateY(-10px);
}

.sandwich-scroll.menu-anim-in .sandwich-list > li {
  animation: sandwichFadeDown 0.1s ease-out forwards;
}

@keyframes sandwichFadeDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ==================== voci menù titoli ==================== */
.menu-titoli-cucine a {
    color: var(--cu);
    background-color: transparent;
    border-radius: 0px;
    box-shadow: unset;
    font-size: 16px;
    font-weight: 600;
    padding-top: 0;
    padding-bottom: 0;
    text-align: left;
    display: block;
}
.menu-titoli-giornonotte a {
    color: var(--gn);
    background-color: transparent;
    border-radius: 0px;
    box-shadow: unset;
    font-size: 16px !important;
    font-weight: 600;
    padding-top: 0;
    padding-bottom: 0;
    text-align: left;
    display: block;
}

.menu-titoli-camerette a {
    color: var(--ca);
    background-color: transparent;
    border-radius: 0px;
    box-shadow: unset;
    font-size: 16px;
    font-weight: 600;
    padding-top: 0;
    padding-bottom: 0;
    text-align: left;
    display: block;
}

.menu-cerca a {
    color: var(--ink);
    font-weight: normal;
    text-align: center;
    border-radius: 0px;
    box-shadow: unset;
    margin-bottom: 15px;
    font-size: 18px !important;
}
