/* ==========================================
   BELLA PIZZA - STYLE.CSS COMPLETO
========================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: #fffaf5;
  color: #333;
  line-height: 1.6;
}

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

a {
  text-decoration: none;
}

.container {
  width: min(1200px, 90%);
  margin: 0 auto;
}

.flex {
  display: flex;
  gap: 25px;
  align-items: center;
}

/* HEADER */

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #b91c1c;
  color: #fff;
  padding: 12px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 3px 12px rgba(0,0,0,0.2);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.logo h1,
.logo-text {
  font-size: 1.45rem;
  font-weight: 800;
}

.logo span {
  display: block;
  font-size: 0.8rem;
  opacity: 0.9;
}

.logo-svg {
  width: 42px;
  height: 42px;
  color: #fff;
}

.navbar ul {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 10px;
}

.navbar a {
  color: #fff;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 6px;
  transition: 0.3s;
}

.navbar a:hover,
.navbar a.active {
  background: #f59e0b;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

/* HERO */

#hero {
  min-height: 92vh;
  background:
    linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.75)),
    url('https://images.unsplash.com/photo-1513104890138-7c749659a591?q=80&w=1600&auto=format&fit=crop') center/cover;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 80px 20px;
}

.hero-content h2 {
  font-size: clamp(2.3rem, 6vw, 4rem);
  color: #fff;
  margin-bottom: 15px;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 35px;
}

/* TÍTULOS */

h2,
.titulo-secao {
  text-align: center;
  color: #b91c1c;
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin: 50px 0 30px;
}

h3 {
  color: #b91c1c;
  margin-bottom: 18px;
}

.section-tag {
  display: inline-block;
  color: #f59e0b;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  margin-bottom: 12px;
}

.pagina-topo,
.menu-topo,
.pedido-topo,
.reserva-header {
  text-align: center;
  margin: 45px auto;
  max-width: 850px;
}

/* BOTÕES */

.btn-principal,
.btn-secundario,
.btn-reserva-aniv,
.btn-reserva-final,
.btn-finalizar,
.btn-confirmar,
.btn-bag,
.btn-social,
.btn-submit {
  display: inline-block;
  border: none;
  cursor: pointer;
  font-weight: 800;
  border-radius: 10px;
  transition: 0.3s;
}

.btn-principal,
.btn-reserva-final,
.btn-confirmar {
  background: #f59e0b;
  color: #fff;
  padding: 15px 32px;
}

.btn-secundario {
  border: 2px solid #b91c1c;
  color: #b91c1c;
  padding: 12px 25px;
}

.btn-secundario:hover {
  background: #b91c1c;
  color: #fff;
}

.btn-principal:hover,
.btn-reserva-final:hover,
.btn-confirmar:hover {
  background: #d97706;
  transform: translateY(-2px);
}

/* PROMOÇÕES */

#promocoes {
  padding: 60px 0;
}

.promos-grid {
  justify-content: center;
  align-items: stretch;
}

.promo-item {
  width: 48%;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  border: 1px solid #eee;
  position: relative;
}

.promo-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.promo-content {
  padding: 25px;
  text-align: center;
}

.promo-item h3 {
  font-size: 1.5rem;
}

.badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #f59e0b;
  color: #fff;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
}

/* ANIVERSÁRIO */

#aniversariante {
  margin: 80px auto;
}

.card-aniversario-wrapper {
  position: relative;
}

.card-aniversario {
  position: relative;
  background: linear-gradient(135deg, #1f2937, #111827);
  color: #fff;
  padding: 50px 40px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0,0,0,0.25);
}

.baloes-decorativos {
  position: absolute;
  top: -60px;
  right: -35px;
  width: 220px;
  z-index: 5;
  pointer-events: none;
}

.selo-desconto {
  position: absolute;
  top: 10px;
  left: -40px;
  background: #ef4444;
  color: #fff;
  padding: 10px 55px;
  transform: rotate(-45deg);
  font-weight: 800;
}

.aniv-texto,
.aniv-imagem {
  width: 50%;
}

.aniv-imagem img {
  border-radius: 15px;
}

/* HISTÓRIA */

.historia-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 45px;
  align-items: center;
  padding: 60px 0;
}

.historia-texto h2 {
  text-align: left;
  color: #b91c1c;
  margin-top: 0;
}

.historia-texto h2 span {
  color: #f59e0b;
}

.historia-texto p {
  margin-bottom: 18px;
}

.historia-texto blockquote {
  border-left: 5px solid #f59e0b;
  padding-left: 18px;
  margin: 25px 0;
  font-style: italic;
  color: #555;
}

.historia-imagem img {
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.historia-imagem p {
  text-align: center;
  color: #777;
  margin-top: 10px;
  font-size: 0.9rem;
}

/* CONTACTOS */

.contacto-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 35px;
  align-items: stretch;
  margin-bottom: 60px;
}

.info-contato,
.card-destaque,
.card-pedido,
.form-complexo {
  background: #fff;
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.info-contato ul,
.info-contato ol {
  padding-left: 20px;
  margin: 15px 0;
}

.info-contato li {
  margin-bottom: 12px;
}

.mapa-moldura {
  border-radius: 18px;
  overflow: hidden;
  min-height: 420px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.mapa-moldura iframe {
  width: 100%;
  height: 100%;
}

.redes-sociais {
  text-align: center;
  padding: 35px 0;
}

.social-buttons {
  margin-top: 15px;
}

.btn-social {
  color: #fff;
  background: #b91c1c;
  padding: 12px 24px;
  margin: 8px;
}

.btn-social:first-of-type {
  background: #e1306c;
}

/* MENU / CARDÁPIO */

.table-responsive {
  overflow-x: auto;
  margin-bottom: 60px;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

th,
td {
  padding: 18px;
  border-bottom: 1px solid #eee;
  text-align: left;
}

th {
  background: #1f2937;
  color: #fff;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.categoria-td {
  background: #fff3e0;
  color: #b91c1c;
  font-weight: 800;
  text-align: center;
}

tfoot td {
  background: #fef2f2;
  color: #b91c1c;
  font-weight: 800;
  text-align: center;
}

/* FORMULÁRIOS */

form {
  background: #fff;
}

.form-grid,
.grid-inputs,
.linha-pedido {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

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

label {
  display: block;
  color: #555;
  font-weight: 800;
  margin-bottom: 7px;
}

input,
select,
textarea {
  width: 100%;
  padding: 13px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
}

textarea {
  resize: vertical;
}

fieldset {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 24px;
}

legend {
  color: #b91c1c;
  font-weight: 800;
  padding: 0 10px;
}

.label-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  margin-right: 18px;
}

.radio-group,
.checkbox-group,
.termos {
  background: #f9fafb;
  padding: 14px;
  border-radius: 10px;
  margin: 15px 0;
}

.btn-reserva-final,
.btn-finalizar,
.btn-confirmar {
  width: 100%;
  margin-top: 20px;
}

/* PEDIDOS */

.card-pedido {
  max-width: 850px;
  margin: 0 auto 24px;
}

.card-pedido h3 {
  margin-bottom: 20px;
}

.btn-adicionar,
.btn-bag {
  width: 100%;
  margin-top: 18px;
}

#lista-carrinho,
#lista-bag {
  list-style: none;
  padding: 0;
}

#lista-carrinho li,
#lista-bag li {
  padding: 10px;
  border-bottom: 1px solid #eee;
}

.area-garcom {
  text-align: center;
  margin-bottom: 25px;
}

.btn-garcom {
  background: #f59e0b;
  color: #fff;
  border: none;
  padding: 14px 25px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.pagamento-box {
  background: #fff7ed;
  border: 2px solid #f59e0b;
}

.opcoes-pagamento {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.opcoes-pagamento label {
  background: #fff;
  border: 1px solid #ddd;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
}

/* BAG */

.bag-container {
  background: #fff7ed;
  border: 1px dashed #f59e0b;
  border-radius: 12px;
  padding: 18px;
  margin: 20px 0;
}

.bag-total {
  text-align: right;
  font-weight: 800;
  margin-top: 10px;
}

/* MODAIS */

.modal-sobreposicao,
.modal-confirmacao {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 3000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-garcom,
.modal-box {
  background: #fff;
  color: #333;
  padding: 35px;
  border-radius: 20px;
  text-align: center;
  border: 4px solid #f59e0b;
  max-width: 380px;
}

.modal-garcom h2,
.modal-box h2 {
  color: #f59e0b;
}

.modal-garcom button,
.modal-box button {
  background: #059669;
  color: #fff;
  border: none;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

/* FOOTER */

footer {
  background: #1f2937;
  color: #fff;
  padding: 50px 0 20px;
  margin-top: 60px;
}

footer .flex,
.footer-grid {
  justify-content: space-between;
  align-items: flex-start;
}

.footer-info,
.footer-social {
  width: 48%;
}

footer h3 {
  color: #f59e0b;
}

footer a {
  color: #ddd;
}

.copyright {
  text-align: center;
  border-top: 1px solid #374151;
  margin-top: 30px;
  padding-top: 20px;
  font-size: 0.8rem;
  color: #aaa;
}

/* VOLTAR TOPO */

.voltar-topo {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #b91c1c;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.voltar-topo a {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
}

/* RESPONSIVO */

@media (max-width: 900px) {
  .navbar {
    position: sticky;
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: block;
  }

  #menu {
    display: none;
    width: 100%;
    margin-top: 12px;
  }

  #menu.active {
    display: block;
  }

  #menu ul {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  #menu a {
    display: block;
    width: 100%;
    padding: 12px;
  }

  .flex,
  .historia-section,
  .contacto-grid,
  .form-grid,
  .grid-inputs,
  .linha-pedido {
    display: flex;
    flex-direction: column;
  }

  .promo-item,
  .aniv-texto,
  .aniv-imagem,
  .footer-info,
  .footer-social {
    width: 100%;
  }

  .promos-grid {
    flex-direction: column;
  }

  .card-aniversario {
    padding: 35px 24px;
  }

  .baloes-decorativos {
    width: 150px;
    right: -10px;
    top: -40px;
  }

  .mapa-moldura {
    min-height: 350px;
  }

  .btn-principal,
  .btn-secundario,
  .btn-reserva-aniv,
  .btn-social {
    width: 100%;
    text-align: center;
  }

  .opcoes-pagamento {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .container {
    width: 92%;
  }

  .logo h1,
  .logo-text {
    font-size: 1.2rem;
  }

  #hero {
    min-height: 75vh;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .card-pedido,
  .form-complexo,
  .info-contato {
    padding: 22px;
  }

  th,
  td {
    padding: 12px;
    font-size: 0.85rem;
  }

  .voltar-topo {
    width: 44px;
    height: 44px;
  }
}