/* ─────────────────────────────────────────────────────────────────────────────
   MINIBAR — Public Website Stylesheet
   ───────────────────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ── Variables ─────────────────────────────────────────────────────────────── */
:root {
  --yellow:      #FFE600;
  --yellow-dark: #E5CE00;
  --purple:      #7B3FAB;
  --purple-dark: #5E2F84;
  --black:       #111111;
  --off-white:   #FAFAF5;
  --white:       #FFFFFF;
  --gray:        #F2F2EC;
  --text:        #111111;
  --text-muted:  #666660;
  --border:      #E0E0D8;
  --radius:      10px;
  --font: 'Space Grotesk', -apple-system, Arial, sans-serif;
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--off-white);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Nav ───────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--black);
  padding: 0 28px;
  height: 58px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--font);
  font-size: 17px; font-weight: 700;
  letter-spacing: 5px; text-transform: uppercase;
  color: #fff;
}
.nav-logo span { color: var(--yellow); }
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-link {
  color: rgba(255,255,255,0.55);
  font-size: 12px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.15s;
  cursor: pointer;
}
.nav-link:hover { color: var(--yellow); }
.lang-toggle {
  display: flex; align-items: center; gap: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: 20px; padding: 3px;
}
.lang-btn {
  padding: 4px 10px; border-radius: 16px;
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer; border: none; background: transparent;
  color: rgba(255,255,255,0.5);
  transition: all 0.2s; font-family: var(--font);
}
.lang-btn.active {
  background: var(--yellow);
  color: var(--black);
}

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  background: var(--yellow);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 80px 24px 60px;
  position: relative; overflow: hidden;
}
/* geometric texture */
.hero::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(
    0deg, rgba(0,0,0,0.03) 0px, rgba(0,0,0,0.03) 1px, transparent 1px, transparent 40px
  ),
  repeating-linear-gradient(
    90deg, rgba(0,0,0,0.03) 0px, rgba(0,0,0,0.03) 1px, transparent 1px, transparent 40px
  );
}
.hero-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 5px; text-transform: uppercase;
  color: rgba(0,0,0,0.45);
  margin-bottom: 20px;
  position: relative;
}
.hero-name {
  font-family: var(--font);
  font-size: clamp(72px, 16vw, 160px);
  font-weight: 700; letter-spacing: 12px; text-transform: uppercase;
  color: var(--black); line-height: 0.95; margin-bottom: 12px;
  position: relative;
}
.hero-tagline {
  font-size: clamp(15px, 2.5vw, 19px); font-weight: 500;
  color: rgba(0,0,0,0.55);
  margin-bottom: 40px;
  position: relative;
}
.hero-address {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,0,0,0.08);
  border-radius: 100px; padding: 8px 20px;
  font-size: 13px; color: rgba(0,0,0,0.6);
  font-weight: 600; letter-spacing: 0.5px;
  margin-bottom: 44px;
  position: relative;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; position: relative; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 100px;
  font-size: 13px; font-weight: 700; font-family: var(--font);
  cursor: pointer; border: none; transition: all 0.15s; letter-spacing: 0.5px;
  text-transform: uppercase;
}
.btn-primary { background: var(--black); color: var(--yellow); }
.btn-primary:hover { background: #2a2a2a; transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--black);
  border: 2px solid rgba(0,0,0,0.3);
}
.btn-outline:hover { background: rgba(0,0,0,0.07); border-color: rgba(0,0,0,0.5); }
.hero-scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  color: rgba(0,0,0,0.3); font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  animation: bounce 2s infinite;
}
.hero-scroll::after { content: '↓'; display: block; font-size: 20px; margin-top: 4px; }
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(6px)} }

/* ── Gallery ──────────────────────────────────────────────────────────────── */
.gallery { background: var(--black); overflow: hidden; }
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 260px 260px;
  gap: 3px;
}
.gallery-item { overflow: hidden; background: #222; }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, filter 0.4s ease;
  filter: saturate(1.05);
}
.gallery-item:hover img { transform: scale(1.04); filter: saturate(1.2); }

/* item 1: occupa 1 colonna, 2 righe */
.gallery-item--tall {
  grid-row: span 2;
}
/* item 4: occupa 2 colonne */
.gallery-item--wide {
  grid-column: span 2;
}

@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 180px 180px 180px;
  }
  .gallery-item--tall  { grid-row: span 1; }
  .gallery-item--wide  { grid-column: span 2; }
}

/* ── Section shared ────────────────────────────────────────────────────────── */
.section { padding: 80px 24px; max-width: 960px; margin: 0 auto; }
.section-label {
  font-size: 10px; font-weight: 700; letter-spacing: 4px; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 8px;
}
.section-title {
  font-size: clamp(26px, 4.5vw, 38px); font-weight: 700;
  color: var(--text); margin-bottom: 48px; line-height: 1.15;
  letter-spacing: -0.5px;
}

/* ── Menu ──────────────────────────────────────────────────────────────────── */
#menu { background: var(--white); padding-top: 80px; padding-bottom: 80px; }
#menu .inner { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.menu-tabs {
  display: flex; gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 48px; overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.menu-tab {
  padding: 12px 28px 14px;
  font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  color: var(--text-muted); cursor: pointer; border: none; background: transparent;
  font-family: var(--font); white-space: nowrap;
  border-bottom: 3px solid transparent; margin-bottom: -2px;
  transition: all 0.2s;
}
.menu-tab.active[data-parent="COLAZIONE"],
.menu-tab.active[data-parent="PRANZO"] {
  color: var(--black);
  border-bottom-color: var(--yellow);
}
.menu-tab.active[data-parent="APERITIVO"] {
  color: var(--purple);
  border-bottom-color: var(--purple);
}
.menu-tab:hover:not(.active) { color: var(--text); }
.menu-panel { display: none; }
.menu-panel.active { display: block; }
.menu-section { margin-bottom: 48px; }
.menu-section-title {
  font-size: 11px; font-weight: 700; letter-spacing: 4px; text-transform: uppercase;
  color: var(--text-muted); padding-bottom: 14px;
  border-bottom: 2px solid var(--black); margin-bottom: 4px;
}
/* Yellow section title for COLAZIONE/PRANZO, purple for APERITIVO */
.tab-col .menu-section-title,
.tab-pra .menu-section-title { border-bottom-color: var(--yellow); }
.tab-ape .menu-section-title  { border-bottom-color: var(--purple); color: var(--purple); }

.menu-items { display: flex; flex-direction: column; }
.menu-item {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 13px 0; border-bottom: 1px solid var(--border);
  gap: 16px;
}
.menu-item:last-child { border-bottom: none; }
.menu-item-left { flex: 1; min-width: 0; }
.menu-item-name {
  font-size: 15px; font-weight: 600; color: var(--text);
}
.menu-item-sub {
  font-size: 12px; color: var(--text-muted); margin-top: 1px;
  line-height: 1.4;
}
.menu-item-price {
  font-size: 15px; font-weight: 700; color: var(--black);
  flex-shrink: 0;
}
.tab-col .menu-item-price,
.tab-pra .menu-item-price { color: var(--black); }
.tab-ape .menu-item-price  { color: var(--purple); }

.menu-item-promo {
  display: inline-block;
  font-size: 9px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  background: var(--yellow); color: var(--black);
  padding: 2px 7px; border-radius: 3px; margin-left: 6px; vertical-align: middle;
}
.menu-loading, .menu-error {
  text-align: center; padding: 60px 20px;
  color: var(--text-muted); font-size: 14px;
}
.menu-error { color: #d44; }

/* ── Info section ──────────────────────────────────────────────────────────── */
#info { background: var(--off-white); }
.info-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 32px; align-items: start;
}
.info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px; border: 1px solid var(--border);
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
}
.info-card-icon { font-size: 26px; margin-bottom: 12px; }
.info-card-title {
  font-size: 20px; font-weight: 700; margin-bottom: 20px; color: var(--text);
  letter-spacing: -0.3px;
}
.hours-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.hours-row:last-child { border-bottom: none; }
.hours-days { color: var(--text-muted); font-weight: 500; }
.hours-time { font-weight: 700; color: var(--text); }
.hours-time.closed { color: #d44; }
.contact-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; font-size: 14px; color: var(--text);
  border-bottom: 1px solid var(--border);
}
.contact-item:last-child { border-bottom: none; }
.contact-item a { color: var(--purple); font-weight: 600; }
.contact-item a:hover { text-decoration: underline; }
.contact-icon { font-size: 18px; flex-shrink: 0; }
.map-embed {
  width: 100%; height: 56px; border-radius: 8px;
  border: 2px solid var(--black); margin-top: 20px;
  display: flex; align-items: center; justify-content: center;
  background: var(--yellow); cursor: pointer;
  text-decoration: none; color: var(--black);
  font-size: 13px; font-weight: 700; gap: 8px;
  text-transform: uppercase; letter-spacing: 1px;
  transition: background 0.15s;
}
.map-embed:hover { background: var(--yellow-dark); }

/* ── Footer ────────────────────────────────────────────────────────────────── */
.footer {
  background: var(--black);
  color: rgba(255,255,255,0.4);
  padding: 48px 24px;
  text-align: center;
}
.footer-name {
  font-size: 20px; font-weight: 700; letter-spacing: 6px; text-transform: uppercase;
  color: var(--yellow); margin-bottom: 6px;
}
.footer-address { font-size: 13px; margin-bottom: 28px; }
.footer-links {
  display: flex; gap: 24px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 24px;
}
.footer-link {
  font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.4); cursor: pointer;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--yellow); }
.footer-copy { font-size: 11px; }

/* ── Loading spinner ───────────────────────────────────────────────────────── */
.spinner {
  width: 32px; height: 32px; margin: 0 auto 12px;
  border: 3px solid var(--border);
  border-top-color: var(--black);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .nav { padding: 0 16px; }
  .nav-link { display: none; }
  .section { padding: 60px 16px; }
  #menu .inner { padding: 0 16px; }
  .info-grid { grid-template-columns: 1fr; }
  .menu-tab { padding: 10px 16px 12px; font-size: 10px; letter-spacing: 2px; }
  .hero { padding: 80px 20px 60px; }
  .hero-name { letter-spacing: 8px; }
}
