/* =========================================================
   La Cucina di Musina — Estilo inspirado en el flyer oficial
   Paleta: crema cálida, rojo carmín, oliva, dorado
   ========================================================= */
:root {
  --cream:       #F6EFDD;
  --cream-2:     #FBF5E6;
  --ink:         #2A1E14;
  --red:         #B12A2A;
  --red-dark:    #8E1F1F;
  --olive:       #6B7B3F;
  --olive-dark:  #4E5A2E;
  --gold:        #B08946;
  --muted:       #7a6f60;
  --shadow:      0 6px 20px rgba(80,40,20,.10);
  --radius:      14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
}
.hidden { display: none !important; }
a { color: var(--red); text-decoration: none; }

/* ---------- HEADER ---------- */
.site-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 24px;
  background: rgba(251, 245, 230, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--gold);
  position: sticky; top: 0; z-index: 50;
  box-shadow: var(--shadow);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-flag { font-size: 28px; }
.brand-name {
  font-family: 'Great Vibes', 'Playfair Display', cursive;
  font-size: 1.8rem;
  color: var(--red);
  line-height: 1;
  font-weight: 400;
}
.brand-tag { font-size: .78rem; color: var(--muted); font-style: italic; }
.header-actions { display: flex; align-items: center; gap: 10px; }
#lang-switch {
  padding: 8px 10px; border-radius: 8px;
  border: 1px solid var(--gold); background: #fff; cursor: pointer;
  font-weight: 500; color: var(--ink);
}
.cart-btn {
  position: relative;
  background: var(--red); color: #fff;
  border: none; padding: 10px 16px; border-radius: 10px;
  font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 6px;
  transition: transform .15s;
}
.cart-btn:hover { transform: translateY(-1px); background: var(--red-dark); }
.cart-count {
  background: #fff; color: var(--red);
  border-radius: 999px; padding: 2px 8px; font-size: .78rem; font-weight: 700;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  background: var(--cream);
  padding: 60px 24px 50px;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(176,137,70,.2);
}
.hero-olive {
  position: absolute; top: 18px;
  width: 92px; height: auto;
  opacity: .72;
  filter: saturate(.92);
}
.hero-olive-left  { left: 22px;  transform: rotate(-18deg); }
.hero-olive-right { right: 22px; transform: rotate(18deg) scaleX(-1); }
.hero-brand {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(3rem, 8vw, 5.5rem);
  color: var(--ink);
  line-height: .95;
  font-weight: 400;
}
.hero-brand em { color: var(--ink); font-style: normal; }
.hero-divider { color: var(--red); margin: 8px 0 20px; letter-spacing: .5em; }
.hero-question {
  color: var(--red); font-weight: 700;
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  font-family: 'Playfair Display', serif;
}
.hero-cursive {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--ink);
  margin-bottom: 12px;
}
.hero-sub {
  max-width: 640px; margin: 0 auto 22px;
  color: var(--muted); font-size: .98rem; line-height: 1.6;
}

.btn {
  display: inline-block; padding: 12px 28px; border-radius: 999px;
  font-weight: 600; text-decoration: none; cursor: pointer; border: none;
  transition: all .2s; font-size: .95rem;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-secondary { background: #e6dcc4; color: var(--ink); }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-block { width: 100%; }

/* ---------- NOTICE BAR ---------- */
.notice-bar {
  background: var(--red); color: #fff;
  text-align: center; padding: 10px 16px;
  font-size: .95rem;
}

/* ---------- MENU ---------- */
.menu-section { max-width: 1100px; margin: 0 auto; padding: 50px 24px; }
.menu-context-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 34px;
  padding: 14px 16px;
  background: #fffaf0;
  border: 1px solid rgba(176,137,70,.28);
  border-left: 4px solid var(--olive);
  border-radius: 10px;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.45;
}
.menu-context-ico {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  object-fit: contain;
  margin-top: -3px;
}
.category { margin-bottom: 44px; }
.cat-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; color: var(--red);
  font-weight: 800;
}
.cat-line {
  width: 60px; height: 3px; background: var(--gold);
  margin: 4px 0 22px; border-radius: 2px;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}
.dish-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .2s;
  border: 1px solid rgba(176,137,70,.15);
}
.dish-card:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(80,40,20,.14); }
.dish-img {
  width: 100%; height: 180px; object-fit: cover;
  background: linear-gradient(135deg, var(--olive), var(--red));
}
.dish-body { padding: 16px; flex-grow: 1; display: flex; flex-direction: column; }
.dish-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; color: var(--red); font-weight: 700;
}
.dish-desc { color: var(--muted); font-size: .88rem; margin: 6px 0 12px; flex-grow: 1; }
.dish-details {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid rgba(176,137,70,.18);
  border-radius: 8px;
  background: #fffaf0;
}
.dish-detail-title {
  color: var(--olive-dark);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.ingredient-list,
.wine-list {
  list-style: none;
  display: grid;
  gap: 4px;
}
.ingredient-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink);
  font-size: .8rem;
}
.ingredient-list strong {
  color: var(--red);
  font-weight: 700;
  white-space: nowrap;
}
.wine-list li {
  display: grid;
  gap: 2px;
  color: var(--ink);
  font-size: .8rem;
}
.wine-list small {
  color: var(--muted);
  line-height: 1.35;
}
.dish-foot { display: flex; justify-content: space-between; align-items: center; }
.dish-price {
  font-weight: 700; font-size: 1.1rem; color: var(--olive-dark);
  font-family: 'Playfair Display', serif;
}
.dish-price small { font-size: .75rem; color: var(--muted); }
.qty-controls { display: flex; align-items: center; gap: 8px; }
.qty-btn {
  width: 32px; height: 32px; border-radius: 8px; border: none;
  background: var(--red); color: #fff; font-size: 1.1rem;
  cursor: pointer; font-weight: bold;
  transition: background .15s;
}
.qty-btn:hover { background: var(--red-dark); }
.qty-val { min-width: 20px; text-align: center; font-weight: 600; }

/* Special: precio "consultar" */
.dish-price.ask { font-size: .85rem; color: var(--gold); font-style: italic; }

/* Speciale della Settimana box */
.speciale-box {
  background: linear-gradient(180deg, #fff9ea, transparent);
  padding: 20px; border-radius: var(--radius);
  border: 2px dashed var(--gold);
}
.speciale-box .cat-title { color: var(--gold); }

/* Combos box */
.combos-box {
  background: linear-gradient(180deg, #fbeeee, transparent);
  padding: 20px; border-radius: var(--radius);
  border: 2px solid var(--red);
}
.combos-title { text-align: center; }
.combos-box .cat-line { margin-left: auto; margin-right: auto; }

/* ---------- INFO STRIP ---------- */
.info-strip {
  background: #fff;
  border-top: 1px solid rgba(176,137,70,.25);
  border-bottom: 1px solid rgba(176,137,70,.25);
  padding: 30px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  max-width: 1100px; margin: 0 auto;
}
.info-card { text-align: center; }
.info-ico { font-size: 2rem; margin-bottom: 8px; }
.info-card h4 { color: var(--red); font-family: 'Playfair Display', serif; margin-bottom: 4px; }
.info-card p { color: var(--muted); font-size: .92rem; }

/* ---------- CART DRAWER ---------- */
.cart-drawer {
  position: fixed; top: 0; right: 0; width: 400px; max-width: 100%;
  height: 100vh; background: var(--cream-2); z-index: 100;
  box-shadow: -10px 0 30px rgba(0,0,0,.15);
  transform: translateX(100%); transition: transform .3s ease;
  display: flex; flex-direction: column; overflow-y: auto;
}
.cart-drawer.open { transform: translateX(0); }
.cart-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 20px; border-bottom: 2px solid var(--gold);
  background: #fff;
}
.cart-header h3 { font-family: 'Playfair Display', serif; color: var(--red); }
.icon-btn { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--ink); }
.cart-items { padding: 16px 20px; flex-grow: 1; }
.cart-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid #e8ddc4; gap: 10px;
}
.cart-item-name { flex-grow: 1; font-weight: 500; font-size: .95rem; }
.cart-item-qty { color: var(--muted); font-size: .85rem; }
.cart-item-price { font-weight: 600; color: var(--olive-dark); }
.cart-summary { padding: 16px 20px; background: #fff; border-top: 1px solid #e8ddc4; }
.cart-summary .row {
  display: flex; justify-content: space-between; font-size: 1.15rem;
  font-family: 'Playfair Display', serif;
}

.checkout-form { padding: 16px 20px 32px; display: flex; flex-direction: column; gap: 12px; }
.checkout-form h4 {
  font-family: 'Playfair Display', serif; color: var(--red);
  margin-top: 8px;
}
.checkout-form label { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; font-weight: 500; }
.checkout-form input, .checkout-form textarea {
  padding: 10px; border: 1px solid #d8c8a0; border-radius: 8px; font-family: inherit; font-size: .95rem;
  background: #fff;
}
.checkout-form input:focus, .checkout-form textarea:focus {
  outline: 2px solid var(--olive); border-color: var(--olive);
}
.pickup-rule-help {
  margin: -4px 0 2px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fbf5e6;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.35;
}
.pickup-rule-help.error {
  background: #fef2f2;
  color: #991b1b;
}
fieldset { border: 1px solid #d8c8a0; padding: 10px 12px; border-radius: 8px; background: #fff; }
legend { font-size: .85rem; font-weight: 600; color: var(--muted); padding: 0 6px; }
.radio { flex-direction: row !important; align-items: center; gap: 8px; margin: 4px 0; cursor: pointer; }
.radio input { width: auto; }

/* ---------- OVERLAY & MODAL ---------- */
.overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 90;
}
.modal {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  z-index: 200; padding: 20px;
  background: rgba(0,0,0,.55);
}
.modal-content {
  background: var(--cream-2); padding: 36px 28px; border-radius: 16px;
  max-width: 460px; width: 100%; text-align: center;
  box-shadow: var(--shadow);
  border-top: 6px solid var(--olive);
  border-bottom: 6px solid var(--red);
}
.thanks-emoji { font-size: 3rem; margin-bottom: 8px; }
.modal-content h2 {
  font-family: 'Great Vibes', cursive; color: var(--red);
  font-size: 3rem; margin-bottom: 12px; font-weight: 400;
}
.italian-msg { color: var(--ink); margin-bottom: 16px; line-height: 1.7; }
.italian-msg em { color: var(--olive-dark); font-weight: 600; }
.order-ref { color: var(--muted); font-size: .9rem; margin-bottom: 16px; }
.modal .btn { margin: 6px 4px; }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--ink); color: var(--cream);
  text-align: center;
  padding: 30px 24px; font-size: .9rem;
}
.footer-quote {
  font-family: 'Great Vibes', cursive;
  font-size: 1.3rem;
  color: #f6d78a;
  margin-bottom: 8px;
}
.site-footer p { margin: 4px 0; }
.visits { opacity: .7; font-size: .82rem; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 640px) {
  .brand-name { font-size: 1.4rem; }
  .brand-tag { font-size: .7rem; }
  .site-header { padding: 12px 14px; }
  .cart-btn span:not(.cart-count) { display: none; }
  .hero { padding: 40px 16px 30px; }
  .hero-olive { width: 58px; top: 10px; }
  .cart-drawer { width: 100%; }
  .menu-section { padding: 30px 16px; }
  .cat-title { font-size: 1.6rem; }
}
