/* -----------------------------------------------------------------------
   Burp — design tokens
   char   : legno bruciato / crosta scura         #241812
   char-2 : leggermente più chiaro, per sezioni    #2F211A
   cream  : semolino / carta da forno              #F6EEDD
   ink    : testo su fondo chiaro                  #2A1D14
   tomato : pomodoro San Marzano                   #C4342B
   gold   : anello del logo / crosta dorata        #D8A93B
   ----------------------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,500;0,8..60,600;1,8..60,400&display=swap');

:root {
  --char: #241812;
  --char-2: #2f211a;
  --cream: #f6eedd;
  --cream-2: #efe4cc;
  --ink: #2a1d14;
  --tomato: #c4342b;
  --tomato-dark: #9c2822;
  --gold: #d8a93b;
  --line-dark: rgba(246, 238, 221, 0.16);
  --line-light: rgba(42, 29, 20, 0.14);
  --font-display: 'Bebas Neue', Impact, sans-serif;
  --font-body: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --radius: 3px;
  --max-width: 780px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

button, input, textarea { font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: 0.01em;
  font-weight: 400;
  margin: 0;
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--char);
  color: var(--cream);
  border-bottom: 1px solid var(--line-dark);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--cream);
}

.brand img { width: 38px; height: 38px; }

.brand-name {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.03em;
  line-height: 1;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  justify-content: space-between;
  width: 100%;
  flex: 1;
}

.main-nav a {
  text-decoration: none;
  color: var(--cream);
  font-size: 15px;
  opacity: 0.85;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.main-nav a:hover { opacity: 1; border-color: var(--gold); }

.lang-toggle {
  display: flex;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  overflow: hidden;
}

.lang-toggle button {
  background: transparent;
  border: none;
  color: var(--cream);
  opacity: 0.55;
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  cursor: pointer;
}

.lang-toggle button.active {
  opacity: 1;
  background: var(--gold);
  color: var(--char);
  font-weight: 600;
}

/* ------------------------------------------------------------------ hero */

.hero {
  background: var(--char);
  color: var(--cream);
  padding: 26px 0 16px;
}

.hero-eyebrow {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 10px;
}

.hero h1 {
  font-size: clamp(56px, 12vw, 92px);
  line-height: 0.92;
  color: var(--cream);
}

.hero h1 span { color: var(--tomato); }

.hero-intro {
  margin-top: 10px;
  max-width: 46ch;
  font-size: 19px;
  color: var(--cream-2);
}

.hero-meta {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px 28px;
  border-top: 1px solid var(--line-dark);
  padding-top: 18px;
}

.hero-meta-item .label {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 4px;
}

.hero-meta-item .value {
  font-size: 16px;
}

.hero-actions {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--tomato);
  color: var(--cream);
}

.btn-primary:hover { background: var(--tomato-dark); }

.btn-outline {
  background: transparent;
  border-color: var(--line-dark);
  color: var(--cream);
}

.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

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

section { padding: 64px 0; }

.section-head { margin-bottom: 34px; }

.section-head h2 {
  font-size: clamp(38px, 7vw, 52px);
  color: var(--ink);
}

.section-head p {
  margin-top: 8px;
  color: rgba(42, 29, 20, 0.72);
  max-width: 52ch;
}

.section-dark {
  background: var(--char);
  color: var(--cream);
}

.section-dark .section-head h2 { color: var(--cream); }
.section-dark .section-head p { color: var(--cream-2); }

/* --------------------------------------------------------------- menu */

.menu-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line-light);
}

.menu-tab {
  background: none;
  border: none;
  padding: 10px 4px;
  margin-right: 22px;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: rgba(42, 29, 20, 0.55);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  position: relative;
  top: 1px;
}

.menu-tab.active {
  color: var(--ink);
  border-bottom-color: var(--tomato);
  font-weight: 600;
}

.menu-list { display: none; }
.menu-list.active { display: block; }

.menu-item {
  padding: 18px 0;
  border-bottom: 1px dashed var(--line-light);
}

.menu-item:last-child { border-bottom: none; }

.menu-item-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.menu-item-name {
  font-size: 19px;
  font-weight: 600;
  white-space: nowrap;
}

.menu-item-leader {
  flex: 1;
  border-bottom: 1px dotted rgba(42, 29, 20, 0.35);
  transform: translateY(-4px);
}

.menu-item-price {
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.menu-item-desc {
  margin-top: 4px;
  font-size: 15px;
  color: rgba(42, 29, 20, 0.65);
  max-width: 60ch;
}

.menu-item-tags {
  margin-top: 6px;
  display: flex;
  gap: 6px;
}

.tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(42, 29, 20, 0.25);
  color: rgba(42, 29, 20, 0.7);
}

.tag-veg { border-color: #5b7a4a; color: #47603a; }
.tag-18 { border-color: var(--tomato); color: var(--tomato); }

/* --------------------------------------------------------- presence card */

.presence-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.presence-layout > a.scroll-hint {
  grid-column: 1 / -1;
}

.qr-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--gold);
  border: 1px solid var(--line-dark);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.qr-note .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.form-field { margin-bottom: 18px; }

.form-field label {
  display: block;
  font-size: 13px;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
  color: var(--cream-2);
}

.form-field input,
.form-field textarea {
  width: 100%;
  background: var(--char-2);
  border: 1px solid var(--line-dark);
  color: var(--cream);
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 16px;
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(246, 238, 221, 0.35); }

.form-field input:focus,
.form-field textarea:focus { border-color: var(--gold); }

.form-error {
  color: #e7a598;
  font-size: 14px;
  margin-top: 10px;
  min-height: 20px;
}

/* ticket / proof-of-visit card */

.proof-card {
  background: var(--cream);
  color: var(--ink);
  border-radius: 6px;
  padding: 30px 26px;
  position: relative;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.proof-card::before,
.proof-card::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  background: var(--char);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}

.proof-card::before { left: -11px; }
.proof-card::after { right: -11px; }

.proof-card .eyebrow {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--tomato);
  margin-bottom: 6px;
}

.proof-card h3 {
  font-size: 30px;
  margin-bottom: 8px;
}

.proof-card p { color: rgba(42, 29, 20, 0.75); font-size: 15px; }

.proof-code {
  margin-top: 18px;
  border-top: 1px dashed var(--line-light);
  padding-top: 18px;
}

.proof-code .label {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(42, 29, 20, 0.55);
  margin-bottom: 6px;
}

.proof-code .code {
  font-family: var(--font-display);
  font-size: 34px;
  letter-spacing: 0.06em;
  color: var(--tomato);
}

.link-btn {
  margin-top: 20px;
  background: none;
  border: none;
  color: var(--ink);
  text-decoration: underline;
  cursor: pointer;
  font-size: 14px;
  padding: 0;
}

/* --------------------------------------------------------------- rating */

.rating {
  display: flex;
  gap: 6px;
}

.rating button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  font-size: 30px;
  line-height: 1;
  color: rgba(42, 29, 20, 0.28);
}

.rating button.filled { color: var(--gold); }

.form-field.light input,
.form-field.light textarea {
  background: #fff;
  border: 1px solid var(--line-light);
  color: var(--ink);
}

.form-field.light label { color: rgba(42, 29, 20, 0.7); }

.feedback-card {
  background: var(--cream);
}

/* --------------------------------------------------------------- footer */

.site-footer {
  background: var(--char);
  color: rgba(246, 238, 221, 0.6);
  padding: 34px 0;
  font-size: 14px;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.site-footer a { color: rgba(246, 238, 221, 0.75); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }

/* --------------------------------------------------------------- utils */

.hidden { display: none !important; }

@media (min-width: 720px) {
  .presence-layout { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
}

@media (max-width: 640px) {
  .site-header .wrap { flex-wrap: nowrap; }
  .main-nav { flex-wrap: nowrap; gap: 8px; width: 100%; }
  .main-nav a { font-size: 13px; }
  .nav-links { gap: 10px; }
  .brand-name { font-size: 18px; }
  .brand img { width: 28px; height: 28px; }
  .lang-toggle button { padding: 5px 8px; font-size: 12px; }
  .menu-item-row { flex-wrap: wrap; }
  .menu-item-leader { display: none; }
  .menu-item-name { white-space: normal; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  color: var(--cream-2);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.08em;
  opacity: 0.7;
  transition: opacity 0.15s ease;
}
.scroll-hint:hover { opacity: 1; color: var(--gold); }
.scroll-hint-arrow {
  font-size: 18px;
  animation: scroll-hint-bounce 1.6s ease-in-out infinite;
}
@keyframes scroll-hint-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.hero-presence-note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--gold);
}
.checkout-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--gold);
  border-top: 1px dashed var(--line-dark);
  padding-top: 14px;
}
.checkout-note.light {
  color: var(--tomato);
  border-top-color: var(--line-light);
}
.menu-presence-nudge {
  margin: -10px 0 24px;
  font-size: 14px;
}
.menu-presence-nudge a {
  color: var(--tomato);
  text-decoration: underline;
}
.footer-presence-reminder {
  display: block;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 6px;
}

.scroll-hint.light {
  color: rgba(42, 29, 20, 0.55);
}
.scroll-hint.light:hover {
  color: var(--tomato);
}
