/* ==========================================================================
   Plaza Café — Menu styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   Reset / base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #e5e7eb;
}

html {
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  line-height: 1.5;
  scroll-behavior: smooth;
  font-family:
    ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji',
    'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  padding-bottom: 3rem;
  overflow-x: hidden;
  background-color: #090e11;
  color: #ffffff;
  line-height: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

p,
figure,
blockquote,
dl,
dd,
pre {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: inherit;
}

b,
strong {
  font-weight: bolder;
}

ol,
ul,
menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
optgroup,
select,
textarea {
  margin: 0;
  padding: 0;
  font-family: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
}

button,
select {
  text-transform: none;
}

button,
[type='button'],
[type='reset'],
[type='submit'] {
  -webkit-appearance: button;
  background-color: transparent;
  background-image: none;
  cursor: pointer;
}

button:disabled {
  cursor: default;
}

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  vertical-align: middle;
}

img,
video {
  max-width: 100%;
  height: auto;
}

::selection {
  background-color: #10b981;
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   Helpers
   -------------------------------------------------------------------------- */

.is-hidden {
  display: none;
}

/* --------------------------------------------------------------------------
   Splash screen and background
   -------------------------------------------------------------------------- */

/* Full screen black splash screen (z-40) */
.splash-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  background-color: #070b0e;
  pointer-events: none;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Venue background image with gradient overlay (-z-10) */
.site-background {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -10;
  background-image:
    linear-gradient(
      180deg,
      rgba(6, 10, 13, 0.45) 0%,
      rgba(5, 9, 12, 0.65) 50%,
      rgba(3, 6, 8, 0.88) 100%
    ),
    url('assets/sfondo_menu.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Top bar with language selector & allergens button
   -------------------------------------------------------------------------- */

.top-bar {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 0.625rem 1rem;
  border-color: rgba(255, 255, 255, 0.1);
  border-bottom-width: 1px;
  background-color: rgba(9, 14, 17, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.top-bar.is-visible {
  opacity: 1;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 36rem;
  margin-right: auto;
  margin-left: auto;
}

/* Pulsante Allergeni in alto a sinistra */
.allergens-top-btn {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: 9999px;
  background-color: rgba(245, 158, 11, 0.15);
  color: #fde68a;
  font-size: 0.75rem;
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.allergens-top-btn:hover {
  background-color: rgba(245, 158, 11, 0.25);
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-btn {
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 9999px;
  opacity: 0.6;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.lang-btn-default {
  box-shadow:
    rgba(0, 0, 0, 0) 0 0 0 0,
    rgba(0, 0, 0, 0) 0 0 0 0,
    rgba(0, 0, 0, 0.05) 0 1px 2px 0;
}

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

.lang-btn.is-active {
  border-color: #34d399;
  opacity: 1;
}

.lang-btn:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.lang-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: relative;
  z-index: 50;
  max-width: 36rem;
  margin-right: auto;
  margin-left: auto;
  padding: 1.5rem 1rem 0.5rem;
  text-align: center;
}

.header-logo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 14rem;
  margin-right: auto;
  margin-left: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.95));
  opacity: 0;
}

/* --------------------------------------------------------------------------
   Underlying content (badge, search, categories, footer)
   -------------------------------------------------------------------------- */

.sub-header-content {
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.sub-header-content.is-visible {
  opacity: 1;
}

.time-badge-wrapper {
  max-width: 36rem;
  margin: 0.5rem auto 0.75rem;
  padding: 0 1rem;
}

.time-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.375rem 0.875rem;
  border: 1px solid rgba(16, 185, 129, 0.5);
  border-radius: 1rem;
  background-color: rgba(0, 0, 0, 0.4);
  box-shadow:
    rgba(0, 0, 0, 0) 0 0 0 0,
    rgba(0, 0, 0, 0) 0 0 0 0,
    rgba(0, 0, 0, 0.1) 0 4px 6px -1px,
    rgba(0, 0, 0, 0.1) 0 2px 4px -2px;
  color: #6ee7b7;
  font-size: 0.75rem;
  line-height: 1rem;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.time-badge-label {
  font-weight: 500;
}

.time-badge-clock {
  color: #34d399;
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono',
    'Courier New', monospace;
  font-size: 11px;
}

.search-wrapper {
  max-width: 36rem;
  margin: 0 auto 1rem;
  padding: 0 1rem;
}

.search-field {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 0.875rem;
  width: 1rem;
  height: 1rem;
  color: #d1d5db;
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 0.625rem 2.25rem 0.625rem 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  background-color: rgba(0, 0, 0, 0.35);
  box-shadow:
    rgba(0, 0, 0, 0) 0 0 0 0,
    rgba(0, 0, 0, 0) 0 0 0 0,
    rgba(0, 0, 0, 0.1) 0 10px 15px -3px,
    rgba(0, 0, 0, 0.1) 0 4px 6px -4px;
  color: #ffffff;
  font-size: 0.75rem;
  line-height: 1rem;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.search-input::placeholder {
  color: #d1d5db;
  opacity: 1;
}

.search-input:focus {
  border-color: #34d399;
  background-color: rgba(0, 0, 0, 0.5);
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.search-clear {
  position: absolute;
  right: 0.75rem;
  padding: 0.25rem;
  background: none;
  color: #d1d5db;
}

.search-clear:hover {
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   Menu sections
   -------------------------------------------------------------------------- */

.menu {
  max-width: 36rem;
  margin-right: auto;
  margin-left: auto;
  padding: 0 1rem;
}

.menu > * + * {
  margin-top: 0.875rem;
}

.category-section {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  background-color: rgba(0, 0, 0, 0.35);
  box-shadow:
    rgba(0, 0, 0, 0) 0 0 0 0,
    rgba(0, 0, 0, 0) 0 0 0 0,
    rgba(0, 0, 0, 0.25) 0 25px 50px -12px;
  scroll-margin-top: 7rem;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.category-section:hover {
  background-color: rgba(0, 0, 0, 0.4);
}

.category-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.875rem 1rem;
  background-color: rgba(255, 255, 255, 0.08);
  text-align: left;
  transition-property:
    color, background-color, border-color, text-decoration-color, fill, stroke,
    -webkit-text-decoration-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.category-toggle:hover {
  background-color: rgba(255, 255, 255, 0.14);
}

.category-toggle:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.category-toggle-left {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.category-icon {
  flex-shrink: 0;
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.category-name {
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.05));
}

.category-count {
  color: #9ca3af;
  font-size: 10px;
  font-weight: 500;
}

.category-toggle-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.category-badge {
  padding: 0.125rem 0.5rem;
  border: 1px solid rgba(52, 211, 153, 0.4);
  border-radius: 9999px;
  background-color: rgba(16, 185, 129, 0.25);
  color: #6ee7b7;
  font-size: 10px;
}

.accordion-arrow {
  width: 1rem;
  height: 1rem;
  color: #d1d5db;
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

.accordion-arrow.is-open {
  transform: rotate(180deg);
}

.accordion-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-wrapper.accordion-open {
  grid-template-rows: 1fr;
}

.accordion-inner {
  overflow: hidden;
  min-height: 0;
}

.category-content {
  background-color: rgba(0, 0, 0, 0.25);
}

.category-content-inner {
  padding: 0.875rem;
  padding-top: 0.5rem;
}

.menu-items-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.25rem;
}

@media (min-width: 640px) {
  .menu-items-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  background-color: rgba(0, 0, 0, 0.4);
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.menu-item:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.08);
}

.menu-item-name {
  flex: 1 1 0%;
  min-width: 0;
  overflow: hidden;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.05));
}

.menu-item-price-box {
  flex-shrink: 0;
}

.menu-item-price {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 9999px;
  background-color: rgba(2, 44, 34, 0.7);
  box-shadow:
    rgba(0, 0, 0, 0) 0 0 0 0,
    rgba(0, 0, 0, 0) 0 0 0 0,
    rgba(0, 0, 0, 0.05) 0 1px 2px 0;
  color: #6ee7b7;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1rem;
}

/* Aperitivo banner */
.snack-banner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding: 0.5rem 0.875rem;
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: 0.75rem;
  background-color: rgba(245, 158, 11, 0.2);
  color: #fde68a;
  font-size: 0.75rem;
  line-height: 1rem;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.snack-banner-icon {
  font-size: 1rem;
  line-height: 1.5rem;
}

/* Empty search state */
.no-results {
  padding: 3.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1.5rem;
  background-color: rgba(0, 0, 0, 0.4);
  box-shadow:
    rgba(0, 0, 0, 0) 0 0 0 0,
    rgba(0, 0, 0, 0) 0 0 0 0,
    rgba(0, 0, 0, 0.1) 0 20px 25px -5px,
    rgba(0, 0, 0, 0.1) 0 8px 10px -6px;
  text-align: center;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.no-results-icon {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 2.25rem;
  line-height: 2.5rem;
}

.no-results-text {
  margin-bottom: 0.25rem;
  color: #e5e7eb;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25rem;
}

.no-results-action {
  margin-top: 0.75rem;
  background: none;
  color: #34d399;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1rem;
}

.no-results-action:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  max-width: 36rem;
  margin: 4rem auto 0;
  padding: 2rem 1rem 3rem;
  border-color: rgba(255, 255, 255, 0.15);
  border-top-width: 1px;
  border-radius: 1.5rem 1.5rem 0 0;
  background-color: rgba(0, 0, 0, 0.45);
  box-shadow:
    rgba(0, 0, 0, 0) 0 0 0 0,
    rgba(0, 0, 0, 0) 0 0 0 0,
    rgba(0, 0, 0, 0.25) 0 25px 50px -12px;
  text-align: center;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.footer-title {
  margin-bottom: 0.25rem;
  color: #fde68a;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.25rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-subtitle {
  margin-bottom: 0.5rem;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1rem;
}

.footer-line {
  margin-bottom: 0.5rem;
  color: #d1d5db;
  font-size: 0.75rem;
  line-height: 1rem;
}

.footer-line-phone {
  margin-bottom: 1.25rem;
}

.footer-address-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  transition-property:
    color, background-color, border-color, text-decoration-color, fill, stroke,
    -webkit-text-decoration-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.footer-address-link:hover {
  color: #34d399;
}

.footer-address-icon {
  flex-shrink: 0;
  width: 0.875rem;
  height: 0.875rem;
  color: #34d399;
}

.footer-phone-link {
  color: #34d399;
  font-weight: 600;
}

.footer-phone-link:hover {
  text-decoration: underline;
}

.footer-hours {
  max-width: 28rem;
  margin-right: auto;
  margin-left: auto;
  padding-top: 1rem;
  border-color: rgba(255, 255, 255, 0.1);
  border-top-width: 1px;
  color: #d1d5db;
  font-size: 0.75rem;
  line-height: 1rem;
}

.footer-hours > * + * {
  margin-top: 0.5rem;
}

.footer-hours-title {
  color: #fde68a;
  font-weight: 500;
}

.footer-hours-closed {
  color: #fb7185;
  font-weight: 600;
}

.footer-hours-note {
  color: #9ca3af;
  font-size: 11px;
  line-height: 1.625;
}

/* --------------------------------------------------------------------------
   Modals
   -------------------------------------------------------------------------- */

.modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.modal.is-hidden {
  display: none;
}

.modal-panel {
  position: relative;
  width: 100%;
  max-width: 28rem;
  max-height: 85vh;
  padding: 1.5rem;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1.5rem;
  background-color: #12191d;
  box-shadow:
    rgba(0, 0, 0, 0) 0 0 0 0,
    rgba(0, 0, 0, 0) 0 0 0 0,
    rgba(0, 0, 0, 0.25) 0 25px 50px -12px;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  color: #9ca3af;
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.modal-close:hover {
  color: #ffffff;
}

.modal-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5rem;
}

.modal-body {
  content: "";
  color: #d1d5db;
  font-size: 0.75rem;
  line-height: 1.625;
}

.modal-body > * + * {
  margin-top: 0.75rem;
}

.modal-note {
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  background-color: rgba(255, 255, 255, 0.05);
}

.modal-footnote {
  color: #9ca3af;
  font-size: 11px;
}

.modal-confirm {
  width: 100%;
  margin-top: 1.25rem;
  padding: 0.625rem 0;
  border-radius: 0.75rem;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1rem;
  transition-property:
    color, background-color, border-color, text-decoration-color, fill, stroke,
    -webkit-text-decoration-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.modal-confirm:hover {
  background-color: rgba(255, 255, 255, 0.2);
}