:root {
  --black: #14100d;
  --panel: #241c17;
  --panel-soft: #1c1613;
  --cream: #f3ead9;
  --text-muted: #b8a992;
  --gold: #c9922f;
  --gold-bright: #e0ae52;
  --red: #c8262b;
  --border: rgba(243, 234, 217, 0.14);

  --font: "Inter", "Segoe UI", sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
  --container-width: 1320px;
  --radius: 4px;
  --ease: cubic-bezier(0.16, 0.84, 0.44, 1);
}

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

html { scroll-behavior: smooth; }

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

body {
  background: var(--black);
  color: var(--cream);
  font-family: var(--font);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background-image:
    radial-gradient(rgba(243, 234, 217, 0.025) 1px, transparent 1px);
  background-size: 3px 3px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

main img,
.about-visual img,
.ambiente-bg img { filter: sepia(0.1) saturate(1.08) contrast(1.03); }

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) { [data-reveal] { transition: none; } }

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

.section { padding: 108px 0; position: relative; }
.section-alt { background: var(--panel-soft); }

.eyebrow {
  display: inline-block;
  color: var(--gold);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

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

h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  max-width: 680px;
  margin-bottom: 18px;
}

.lead {
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 18px;
  font-size: 1.05rem;
}

.text-accent { color: var(--gold-bright); font-style: italic; }

/* Ornamental divider */
.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 180px;
  margin: 0 auto 44px;
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.divider span {
  color: var(--gold);
  font-size: 0.7rem;
  transform: rotate(45deg);
  border: 1px solid var(--gold);
  width: 7px;
  height: 7px;
  display: block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-lg { padding: 15px 34px; }

.btn-primary { background: var(--red); color: var(--cream); }
.btn-primary:hover { background: #a91f24; }

.btn-ghost {
  border-color: var(--border);
  background: transparent;
  color: var(--cream);
}

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

.btn-block { width: 100%; margin-top: 8px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(20, 16, 13, 0.92);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, padding 0.3s ease;
}

.site-header.scrolled { border-bottom-color: var(--border); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  transition: padding 0.3s ease;
}

.site-header.scrolled .nav { padding: 12px 0; }

.logo-wordmark { height: 32px; width: auto; }

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

.nav-links a { position: relative; padding-bottom: 4px; transition: color 0.2s ease; }

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.25s var(--ease);
}

.nav-links a:hover, .nav-links a.active { color: var(--cream); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-actions { display: flex; gap: 10px; align-items: center; }

/* Hero */
.hero { position: relative; padding: 150px 0 0; overflow: hidden; }

.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 16, 13, 0.55) 0%, rgba(20, 16, 13, 0.82) 60%, var(--black) 100%),
    linear-gradient(90deg, rgba(20, 16, 13, 0.6) 0%, transparent 65%);
}

.hero-content { position: relative; z-index: 1; padding-bottom: 90px; text-align: left; }

.hero-mascot {
  position: absolute;
  right: 4%;
  top: 60px;
  width: 200px;
  z-index: 1;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.5));
}

.pill {
  display: inline-block;
  background: rgba(201, 146, 47, 0.14);
  color: var(--gold-bright);
  border: 1px solid rgba(201, 146, 47, 0.4);
  padding: 7px 18px;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  margin-bottom: 26px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  margin: 0 0 22px;
  line-height: 1.14;
  max-width: 740px;
}

.hero-content p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 0 34px;
  font-size: 1.05rem;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  background: rgba(20, 16, 13, 0.85);
}

.hero-stat {
  padding: 26px 24px;
  text-align: center;
  border-right: 1px solid var(--border);
}

.hero-stat:last-child { border-right: none; }

.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--gold-bright);
  margin-bottom: 4px;
}

.hero-stat span { color: var(--text-muted); font-size: 0.84rem; }

/* About / A Trattoria — flush split layout */
.trattoria-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.trattoria-text {
  padding: 100px 64px 100px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.trattoria-text .container-inner { max-width: 500px; margin-left: auto; }

.trattoria-photo { position: relative; min-height: 480px; }
.trattoria-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }

.about-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin: 20px 0 28px; }
.about-list li { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 0.95rem; }
.check-icon { color: var(--gold); font-weight: 700; }

/* History timeline */
.history-strip { background: var(--panel-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.history-row { display: grid; grid-template-columns: repeat(3, 1fr); }

.history-item {
  padding: 44px 32px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.history-item:last-child { border-right: none; }

.history-item strong {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.9rem;
  color: var(--gold-bright);
  margin-bottom: 8px;
}

.history-item span { color: var(--text-muted); font-size: 0.9rem; }

/* Dishes */
.dishes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 44px; }

.dish-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-top: 2px solid var(--gold);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease, border-color 0.3s ease;
}

.dish-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 34px -22px rgba(0, 0, 0, 0.6);
}

.dish-photo { aspect-ratio: 4 / 3; overflow: hidden; }
.dish-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.dish-card:hover .dish-photo img { transform: scale(1.04); }

.dish-card h3 { font-size: 1.1rem; margin: 20px 22px 8px; }
.dish-card p { color: var(--text-muted); font-size: 0.9rem; margin: 0 22px 22px; }

.menu-cta { text-align: center; margin-top: 48px; }

/* Ambiente — immersive background + inset detail photo */
.ambiente-section { position: relative; padding: 0; overflow: hidden; }

.ambiente-bg { position: absolute; inset: 0; z-index: 0; }
.ambiente-bg img { width: 100%; height: 100%; object-fit: cover; }

.ambiente-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,16,13,0.55) 0%, rgba(20,16,13,0.86) 68%, var(--panel) 100%);
}

.ambiente-inner { position: relative; z-index: 1; padding: 128px 0 90px; }

.ambiente-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; margin-top: 44px; }

.ambiente-detail img {
  width: 100%;
  border: 1px solid var(--border);
}

.ambiente-note p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--cream);
  line-height: 1.5;
}

.ambiente-note cite {
  display: block;
  margin-top: 14px;
  color: var(--gold);
  font-style: normal;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Booking */
.booking-card {
  text-align: left;
  max-width: 720px;
  margin: 44px auto 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}

.booking-field { margin-bottom: 22px; }
.booking-field > label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 10px; }
.optional-tag { color: var(--text-muted); font-weight: 400; }
.booking-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.booking-field input, .booking-field textarea {
  width: 100%;
  background: var(--panel-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--cream);
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: var(--font);
  resize: vertical;
}

.booking-field input::placeholder, .booking-field textarea::placeholder { color: rgba(243, 234, 217, 0.4); }
.booking-field input:focus, .booking-field textarea:focus { outline: none; border-color: var(--gold); }

.date-input { color-scheme: dark; cursor: pointer; }
.date-input::-webkit-calendar-picker-indicator { filter: invert(0.8) sepia(1) saturate(3) hue-rotate(0deg); cursor: pointer; }

.option-row { display: flex; flex-wrap: wrap; gap: 10px; }

.option-chip {
  background: var(--panel-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--cream);
  padding: 12px 18px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.option-chip.small { padding: 9px 16px; font-size: 0.86rem; }
.option-chip:hover { border-color: var(--gold); }
.option-chip.active { border-color: var(--gold); background: rgba(201, 146, 47, 0.16); color: var(--gold-bright); }
.option-chip.disabled, .option-chip:disabled { opacity: 0.3; cursor: not-allowed; }
.option-chip.disabled:hover, .option-chip:disabled:hover { border-color: var(--border); }

.booking-hint { color: var(--text-muted); font-size: 0.86rem; }

.booking-error {
  background: rgba(200, 38, 43, 0.14);
  border: 1px solid rgba(200, 38, 43, 0.4);
  color: #f0a3a3;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.booking-disclaimer { text-align: center; color: var(--text-muted); font-size: 0.78rem; margin-top: 14px; }

.my-bookings { max-width: 720px; margin: 32px auto 0; }
.my-bookings h3 { font-size: 1.1rem; margin-bottom: 16px; }
.bookings-empty { color: var(--text-muted); font-size: 0.9rem; }

.booking-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 10px;
}

.booking-item strong { display: block; font-family: var(--font-display); margin-bottom: 4px; }
.booking-item span { color: var(--text-muted); font-size: 0.85rem; }

.booking-item-actions { display: flex; gap: 8px; flex-shrink: 0; }

.booking-edit,
.booking-cancel {
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.booking-edit:hover { border-color: var(--gold); color: var(--gold-bright); }
.booking-cancel:hover { border-color: #e8a48c; color: #e8a48c; }

/* FAQ */
.faq-list { max-width: 760px; margin-top: 32px; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  padding: 22px 0;
  cursor: pointer;
  text-align: left;
}

.faq-icon { flex-shrink: 0; color: var(--gold); font-size: 1.3rem; line-height: 1; transition: transform 0.25s ease; }
.faq-item.open .faq-icon { transform: rotate(180deg); }

.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s var(--ease); }
.faq-answer p { color: var(--text-muted); padding-bottom: 22px; font-size: 0.94rem; max-width: 640px; }

/* CTA */
.cta-outer { padding: 100px 0; }

.cta-card {
  position: relative;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-top: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 70px 32px;
}

.cta-card h2 { margin: 0 auto 16px; }
.cta-card p { color: var(--text-muted); max-width: 520px; margin: 0 auto 32px; }
.cta-card .hero-actions { justify-content: center; }

/* Footer */
.site-footer { background: var(--panel); border-top: 1px solid var(--border); padding: 56px 0 32px; }

.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 36px; margin-bottom: 40px; }

.footer-logo { height: 60px; width: auto; margin-bottom: 16px; }
.footer-brand p { color: var(--text-muted); font-size: 0.88rem; max-width: 300px; }
.footer-social { display: flex; gap: 14px; margin-top: 16px; }
.footer-social a { color: var(--text-muted); font-size: 0.85rem; border: 1px solid var(--border); padding: 6px 12px; border-radius: var(--radius); transition: border-color 0.2s ease, color 0.2s ease; }
.footer-social a:hover { border-color: var(--gold); color: var(--gold-bright); }

.footer-col { display: flex; flex-direction: column; }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-col a, .footer-col span { display: block; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 10px; }
.footer-col a { transition: color 0.2s ease; }
.footer-col a:hover { color: var(--gold-bright); }

.footer-legal { border-top: 1px solid var(--border); padding-top: 24px; }
.footer-legal p { color: var(--text-muted); font-size: 0.8rem; }

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--gold-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s, border-color 0.3s ease;
  z-index: 90;
}

.back-to-top svg { width: 18px; height: 18px; }
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { border-color: var(--gold); }

/* Responsive */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .trattoria-split { grid-template-columns: 1fr; }
  .trattoria-text { padding: 64px 24px; order: 2; }
  .trattoria-text .container-inner { max-width: 100%; margin: 0; }
  .trattoria-photo { min-height: 320px; order: 1; }
  .history-row { grid-template-columns: 1fr; }
  .history-item { border-right: none; border-bottom: 1px solid var(--border); }
  .history-item:last-child { border-bottom: none; }
  .dishes-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats-row { grid-template-columns: 1fr; }
  .hero-stat { border-right: none; border-bottom: 1px solid var(--border); }
  .hero-stat:last-child { border-bottom: none; }
  .hero-mascot { display: none; }
  .nav-links { display: none; }
  .booking-grid-2 { grid-template-columns: 1fr; }
  .ambiente-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section, .cta-outer { padding: 64px 0; }
  .hero { padding: 120px 0 0; }
  .dishes-grid { grid-template-columns: 1fr; }
  .nav-actions .btn-ghost { display: none; }
  .back-to-top { right: 18px; bottom: 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-card { padding: 48px 24px; }
  .booking-card { padding: 26px 20px; }
  .ambiente-inner { padding: 90px 0 64px; }
}

/* ===== Cardápio page ===== */
.menu-hero {
  padding: 150px 0 56px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.menu-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 14px; }
.menu-hero p { color: var(--text-muted); max-width: 560px; margin: 0 auto 22px; }
.menu-pdf-link { color: var(--gold); font-size: 0.86rem; border-bottom: 1px solid rgba(201, 146, 47, 0.4); padding-bottom: 2px; }
.menu-pdf-link:hover { color: var(--gold-bright); }

.menu-subnav {
  position: sticky;
  top: 0;
  z-index: 95;
  background: rgba(20, 16, 13, 0.96);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.menu-subnav::-webkit-scrollbar { display: none; }

.menu-subnav-inner { display: inline-flex; gap: 6px; padding: 14px 24px; }

.menu-subnav a {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.menu-subnav a:hover { border-color: var(--gold); color: var(--gold-bright); }

.menu-category { padding: 76px 0; border-bottom: 1px solid var(--border); scroll-margin-top: 70px; }
.menu-category:nth-child(even) { background: var(--panel-soft); }
.menu-category-head { margin-bottom: 12px; }
.menu-category-head h2 { margin-bottom: 6px; }
.menu-category-sub { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 32px; }

.menu-note {
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold-bright);
  font-size: 0.92rem;
  margin-bottom: 36px;
  border-bottom: 1px dashed var(--border);
  padding-bottom: 10px;
}

.menu-fillings {
  list-style: none;
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.menu-fillings li { color: var(--text-muted); font-size: 0.88rem; }
.menu-fillings strong { color: var(--cream); font-family: var(--font-display); font-weight: 600; }

.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 48px; }

.menu-item { padding: 18px 0; border-bottom: 1px solid var(--border); }
.menu-item-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.menu-item-num { color: var(--gold); font-size: 0.72rem; letter-spacing: 0.03em; flex-shrink: 0; }
.menu-item-head h4 { font-family: var(--font-display); font-size: 1.02rem; font-weight: 600; flex: 1; }
.menu-item-price { color: var(--gold-bright); font-size: 0.92rem; white-space: nowrap; }
.menu-item-desc { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 4px; }
.menu-item-tag { color: var(--text-muted); font-size: 0.76rem; font-style: italic; opacity: 0.75; }

.menu-simple-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 48px; }
.menu-simple-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.menu-simple-item span:first-child { color: var(--cream); }
.menu-simple-item span:last-child { color: var(--gold-bright); white-space: nowrap; }

.menu-dessert-photo { margin: 12px 0 36px; max-width: 420px; }
.menu-dessert-photo img { width: 100%; border: 1px solid var(--border); }
.menu-dessert-photo span { display: block; margin-top: 10px; color: var(--text-muted); font-size: 0.82rem; font-style: italic; text-align: center; }

@media (max-width: 720px) {
  .menu-grid, .menu-simple-grid { grid-template-columns: 1fr; }
  .menu-hero { padding: 120px 0 40px; }
}
