/* ── Immagini sovrapposte ── */
.images-overlap-wrapper {
  position: relative;
  height: 420px;
  margin-bottom: 30px;
}

.overlap-img {
  position: absolute;
  object-fit: cover;
  transition:
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.overlap-img-1 {
  width: 68%;
  height: 70%;
  top: 0;
  left: 0;
  z-index: 2;
  box-shadow: 6px 6px 22px rgba(0, 0, 0, 0.22);
  transition:
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.6s ease;
}

.overlap-img-2 {
  width: 63%;
  height: 66%;
  bottom: 0;
  right: 0;
  z-index: 1;
  box-shadow: -4px 6px 22px rgba(0, 0, 0, 0.18);
  transition:
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.6s ease;
}

@media (hover: hover) {
  .images-overlap-wrapper:hover .overlap-img-1,
  .images-overlap-wrapper:hover .overlap-img-2 {
    z-index: 2;
  }

  .overlap-img-1:hover {
    transform: scale(1.04) translate(2px, 2px);
    box-shadow: 10px 10px 32px rgba(0, 0, 0, 0.3);
    z-index: 4 !important;
  }

  .overlap-img-2:hover {
    transform: scale(1.04) translate(-6px, -6px);
    box-shadow: -6px 10px 32px rgba(0, 0, 0, 0.28);
    z-index: 4 !important;
  }
}

@media (max-width: 767px) {
  .images-overlap-wrapper {
    height: 260px;
    margin-bottom: 20px;
  }
  .padding20 h2,
  .padding20 p,
  .menu-category-title {
    text-align: center !important;
  }
  h2.title .small-border {
    margin: 20px auto;
  }
}

/* ── Toast ── */
#toastAlert {
  background: #c0392b;
  border-radius: 10px;
  min-width: 260px;
}

/* ── Menu ── */
.menu-title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #222;
  text-transform: uppercase;
}

.menu-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.menu-card {
  display: flex;
  align-items: stretch;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
  transition:
    box-shadow 0.2s,
    transform 0.2s;
  border: 1.5px solid transparent;
}

.menu-card.selected {
  border-color: #c8862a;
  box-shadow: 0 4px 18px rgba(200, 134, 42, 0.15);
}

.menu-card:hover {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.menu-card-img {
  width: 120px;
  min-width: 90px;
  min-height: 90px;
  overflow: hidden;
  flex-shrink: 0;
  align-self: stretch;
}

.menu-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.menu-card-img--placeholder {
  width: 120px;
  min-width: 90px;
  min-height: 90px;
  background: #f5f0e8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c8862a;
  font-size: 2rem;
  flex-shrink: 0;
  align-self: stretch;
}

.menu-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  padding: 12px 14px;
  gap: 10px;
}

.menu-card-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.menu-card-desc-container {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px;
  font-size: 0.78rem;
  color: #666;
  line-height: 1.4;
}

.menu-card-desc-short,
.menu-card-desc-full {
  font-size: 0.78rem;
  color: #666;
  line-height: 1.4;
}

.menu-card-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
}

.btn-toggle-desc {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #c8862a;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 1px;
  white-space: nowrap;
  line-height: 1.4;
}

.btn-toggle-desc:hover {
  color: #a96d1e;
}

.toggle-arrow {
  font-size: 0.85rem;
  transition: transform 0.25s ease;
  line-height: 1;
}

.toggle-arrow.open {
  transform: rotate(90deg);
}

.toggle-label {
  font-size: 0.75rem;
}

.menu-card-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: #c8862a;
  margin-top: 2px;
}

.menu-card-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-add-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: #c8862a;
  color: #fff;
  border: none;
  padding: 0 14px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.15s;
  white-space: nowrap;
  height: 33px !important;
  min-height: 33px !important;
  max-height: 33px !important;
  overflow: hidden !important;
  line-height: 33px !important;
}

.btn-add-item:hover {
  background: #a96d1e;
  transform: scale(1.04);
}

.btn-add-item .material-symbols-outlined {
  font-size: 1rem;
}

.quantity-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #f9f5ef;
  padding: 0 8px;
  border: 1.5px solid #c8862a;
  height: 33px !important;
  max-height: 33px !important;
  min-height: 33px !important;
  overflow: hidden !important;
  width: fit-content;
}

.qty-btn {
  background: none;
  border: none;
  color: #c8862a;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
  height: 33px !important;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}

.qty-btn:hover {
  color: #a96d1e;
}

.quantity-input {
  width: 28px;
  text-align: center;
  border: none;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1a1a1a;
  pointer-events: none;
  height: 33px !important;
  line-height: 33px !important;
  padding: 0;
}

.btn-conferma-styled {
  background: #c8862a;
  color: #fff;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.15s;
  height: 33px !important;
  max-height: 33px !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100%;
}

.btn-conferma-styled:hover {
  background: #a96d1e;
  transform: translateY(-1px);
}

@media (max-width: 575px) {
  .menu-card {
    flex-direction: column;
  }

  .menu-card-img {
    width: 100%;
    min-width: 100%;
    height: 160px;
    min-height: 160px;
  }

  .menu-card-img--placeholder {
    width: 100%;
    min-width: 100%;
    height: 160px;
    min-height: 160px;
  }

  .menu-card-body {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 12px;
    width: 100%;
  }

  .menu-card-info {
    width: 100%;
    align-items: center;
    text-align: center;
  }

  .menu-card-desc-container {
    justify-content: center;
    text-align: center;
  }

  .menu-card-actions {
    width: 100%;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 8px;
  }

  .btn-add-item {
    width: auto;
  }

  .quantity-wrapper {
    width: auto;
  }
}
.menu-category-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c8862a;
  margin: 20px 0 8px;
  padding-bottom: 6px;
  border-bottom: 1.5px solid #f0e6d3;
}
/*  */
/* #background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-size: cover !important;
  background-position: center center !important;
  background-attachment: scroll !important;
} */
html {
  height: -webkit-fill-available;
}
