/* Menu ISO SUSHI - Card style ispirato a CodePen product cards */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&family=Playfair+Display:wght@600;700&display=swap');

:root {
  --menu-bg: #0f0f0f;
  --card-bg: #1a1a1a;
  --card-border: rgba(255,255,255,0.06);
  --accent: #C59C7E;
  --accent-soft: rgba(197, 156, 126, 0.15);
  --text: #f5f5f5;
  --text-muted: #9ca3af;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

body.menu-page {
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  background: var(--menu-bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

/* Header sito sopra la pagina menu */
.menu-page-site-header {
  background: rgba(15, 15, 15, 0.98);
  border-bottom: 1px solid var(--card-border);
  padding: 0 1.5rem;
}

/* Header semplice: logo + Torna alla Home */
.menu-page-site-header .header-menu-simple__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 0;
  gap: 1rem;
}

.menu-page-site-header .header-menu-simple__logo {
  display: block;
}

.menu-page-site-header .header-menu-simple__logo img {
  max-height: 50px;
  width: auto;
  display: block;
}

.menu-page-site-header .header-menu-simple__btn {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

.menu-page-site-header .header-menu-simple__btn:hover {
  background: var(--accent);
  color: #0f0f0f;
}

.menu-page-site-header .elementor-section.elementor-element-2be2f103 .elementor-container {
  max-width: 1400px;
  margin: 0 auto;
}

.menu-page-site-header .elementor-section.elementor-element-2be2f103 {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.menu-page-site-header .elementor-section.elementor-element-2be2f103 .elementor-icon-list-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.menu-page-site-header .elementor-section.elementor-element-2be2f103 a {
  color: inherit;
  text-decoration: none;
}

.menu-page-site-header .elementor-section.elementor-element-2be2f103 .elementor-icon-list-icon {
  margin-right: 0.35rem;
}

.menu-page-site-header .elementor-section.elementor-element-2be2f103 .elementor-icon-list-icon svg {
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  fill: currentColor;
}

.menu-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.menu-header {
  text-align: center;
  margin-bottom: 3rem;
}

.menu-header-logo {
  display: block;
  margin: 0 auto 0.5rem;
  max-width: 180px;
  height: auto;
  object-fit: contain;
}

.menu-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: 0.02em;
}

.menu-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin: 0;
}

/* Tab bar sezioni */
.menu-tabbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--card-border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.menu-tab {
  flex: 0 0 auto;
  padding: 0.6rem 1.2rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.menu-tab:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.15);
}

.menu-tab.is-active {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: var(--accent);
}

.menu-tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Sotto-tab bar categorie */
.menu-category-tabbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--card-border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.menu-category-tab {
  flex: 0 0 auto;
  padding: 0.4rem 0.9rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.menu-category-tab:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.15);
}

.menu-category-tab.is-active {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: var(--accent);
}

.menu-category-tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.menu-category[hidden] {
  display: none !important;
}

/* Pannelli sezione: nascondi quando non attivi */
.menu-section-panel[hidden],
#menu-sections > [data-tab-index][hidden] {
  display: none !important;
}

/* Tassonomia: Sezione > Categoria */
.menu-section {
  margin-bottom: 4rem;
}

.menu-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--card-border);
  letter-spacing: 0.03em;
}

.menu-category {
  margin-bottom: 2.5rem;
}

.menu-category-title {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

/* Griglia card */
.menu-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Card singola - stile CodePen */
.menu-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.menu-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.menu-card-image-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #252525;
}

.menu-card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.menu-card:hover .menu-card-image-wrap img {
  transform: scale(1.05);
}

.menu-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.menu-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  line-height: 1.3;
}

.menu-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.menu-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
}

.menu-card-price {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--accent);
}

.menu-card-allergeni {
  font-size: 0.75rem;
  color: var(--text-muted);
  max-width: 50%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Placeholder se manca immagine */
.menu-card-image-wrap img[src=""],
.menu-card-image-wrap img:not([src]) {
  opacity: 0.4;
}

.menu-card-image-wrap .no-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Placeholder caricamento sezioni (AJAX) */
.menu-section-placeholder {
  margin-bottom: 3rem;
  min-height: 80px;
}

.menu-section-loading {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 1rem 0;
}
