/* ============================================
   FESTA PARROCCHIA SS. ANNUNZIATA 2026
   Menù Street Food Style
   ============================================ */

:root {
  --bg-dark: #121415;
  --paper: #1c1f20;
  --ink: #f0f0f0;
  --gold: #dfb256;
  --gold-dark: #b89038;
  --red: #d7263d;
  --teal: #1f7a8c;
  --shadow: rgba(0, 0, 0, 0.6);
  --border-gold: rgba(223, 178, 86, 0.4);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg-dark);
  color: var(--ink);
  font-family: 'Montserrat', sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(223, 178, 86, 0.05) 0, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(31, 122, 140, 0.05) 0, transparent 40%);
  padding: 24px;
  min-height: 100vh;
}

/* ===== PAPER SHEET ===== */
.paper {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--border-gold);
  box-shadow: 0 20px 60px var(--shadow), 0 0 100px rgba(223, 178, 86, 0.05);
  padding: 36px 44px 28px;
  position: relative;
  overflow: hidden;
}

.paper::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, transparent 0 2px, rgba(255,255,255,0.01) 2px 4px);
  pointer-events: none;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  text-align: center;
  padding: 24px 20px 30px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border-gold);
}

.hero-bg {
  position: absolute; inset: 0;
}

.hero-content { position: relative; z-index: 2; }

.kicker {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 6px;
  font-size: 20px;
  color: var(--gold);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(38px, 12vw, 92px);
  line-height: 1;
  color: #fff;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.subtitle {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(18px, 2.5vw, 24px);
  color: #aaa;
  margin-top: 12px;
}

/* ===== AREAS ===== */
.areas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.area {
  position: relative;
}

.area-header { text-align: center; margin-bottom: 24px; }

.badge {
  display: inline-block;
  background: transparent;
  color: var(--gold);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 4px;
  padding: 4px 16px;
  border-radius: 4px;
  border: 1px solid var(--gold);
  text-transform: uppercase;
}

.area-header h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(26px, 3vw, 34px);
  margin-top: 16px;
  color: #fff;
  letter-spacing: 1px;
}

.divider {
  margin-top: 12px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-gold), transparent);
}

/* ===== ITEMS GRID ===== */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, border-color .2s ease;
}
.item:hover { 
  transform: translateY(-4px); 
  border-color: var(--gold); 
}

.item-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
  position: relative;
}
.item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s;
}

.item-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.item-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  letter-spacing: 1px;
  line-height: 1.1;
  color: #fff;
}

.item-desc {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 13px;
  color: #aaa;
  margin-bottom: 8px;
}

.item-price {
  margin-top: auto;
  align-self: flex-start;
  color: var(--gold);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.5px;
}

/* ===== FOOTER ===== */
.foot {
  margin-top: 40px;
  text-align: center;
  padding: 24px 12px;
  border-top: 1px solid var(--border-gold);
}

.foot-main {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(20px, 2.5vw, 28px);
  color: var(--gold);
  margin-bottom: 8px;
}

.foot-sub {
  font-size: 12px;
  color: #888;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .areas { grid-template-columns: 1fr; gap: 30px; }
  .paper { padding: 24px 18px; }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; gap: 16px; }
  .item { flex-direction: row; align-items: center; border: none; border-bottom: 1px solid rgba(255, 255, 255, 0.1); border-radius: 0; background: transparent; padding-bottom: 16px; }
  .item-img { width: 100px; aspect-ratio: 1; flex-shrink: 0; border-radius: 8px; overflow: hidden; margin-right: 16px; }
  .item-body { padding: 0; gap: 4px; }
  .item-name { font-size: 20px; }
  .item-desc { margin-bottom: 4px; font-size: 12px; }
  .hero { margin-bottom: 24px; padding: 16px 10px 20px; }
}
@media (max-width: 480px) {
  body { padding: 0; }
  .paper { border: none; border-radius: 0; box-shadow: none; min-height: 100vh; padding: 16px 12px; }
}

/* ===== PRINT — A3 LANDSCAPE ===== */
@page {
  size: A3 landscape;
  margin: 10mm;
}

/* ===== CONTROLS ===== */
.item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
}

.item-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  padding: 4px 8px;
}

.qty-btn {
  background: transparent;
  border: none;
  color: var(--gold);
  font-size: 18px;
  cursor: pointer;
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.qty-btn:hover {
  background: rgba(223, 178, 86, 0.2);
}

.qty {
  font-weight: 600;
  width: 20px;
  text-align: center;
}

/* ===== CART WIDGET ===== */
.cart-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--paper);
  border-top: 1px solid var(--border-gold);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 -10px 40px var(--shadow);
  z-index: 100;
}

.cart-summary {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: white;
}

#cart-total-price {
  color: var(--gold);
}

.view-cart-btn {
  background: var(--gold);
  color: #000;
  border: none;
  padding: 10px 20px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 1px;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.2s;
}
.view-cart-btn:hover {
  transform: scale(1.05);
}

/* ===== CART MODAL ===== */
.cart-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cart-modal.open {
  display: flex;
}

.cart-modal-content {
  background: var(--paper);
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  width: 100%;
  max-width: 500px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  padding: 24px;
  box-shadow: 0 20px 60px var(--shadow);
}

.cart-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
}

.close-modal {
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}

.cart-items-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.cart-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
  padding-bottom: 12px;
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cart-item-name {
  font-weight: 600;
  font-size: 15px;
}
.cart-item-sub {
  font-size: 12px;
  color: #aaa;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-item-total {
  font-weight: 600;
  color: var(--gold);
  min-width: 60px;
  text-align: right;
}

.cart-footer {
  border-top: 1px solid var(--border-gold);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 20px;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 1px;
}

.clear-cart-btn {
  background: var(--gold);
  color: #000;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 1px;
  transition: transform 0.2s;
}

.clear-cart-btn:hover {
  transform: scale(1.05);
}

@media (max-width: 600px) {
  .item-footer {
    padding-top: 0;
  }
}


@media print {
  html, body {
    background: #fff !important;
    padding: 0 !important;
    color: #000 !important;
  }
  body { background-image: none !important; }

  .paper {
    background: #fff !important;
    border: none !important;
    box-shadow: none !important;
    padding: 10mm 15mm !important;
  }

  .title, .item-name, .area-header h2 { color: #000 !important; }
  .subtitle, .item-desc, .foot-sub { color: #444 !important; }
  
  .badge { color: #000 !important; border-color: #000 !important; }
  .kicker, .item-price, .foot-main { color: #000 !important; border: 1px solid #000 !important; padding: 4px 10px !important;}
  .item-price { border: none !important; padding: 0 !important;}
  
  .item {
    background: #fff !important;
    border: 1px dotted #888 !important;
  }
  
  .hero { border-bottom: 2px solid #000 !important; }
  .divider { background: #ccc !important; }

  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}
