/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #fff;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 60px 20px;
}

/* ===== BUTTONS ===== */
.btn-pedir {
  padding: 12px 28px;
  background: #5f0505;
  color: #ffffff;
  border: 2px solid #ffffff;
  border-radius: 999px;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;

  transition:
    color 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}

.nav-btn:hover {
  color: rgb(4, 138, 4);
  border-color: rgb(4, 138, 4);
  transform: scale(1.05) !important;
}

.btn-pedir:hover {
  transform: scale(1.05) !important;
}

.btn-shop {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  border: 2px solid #ffffff;
  border-radius: 9px;
  z-index: 1000;
  cursor: pointer;

  /* Transição aprimorada para todas as propriedades animáveis */
  transition: all 0.3s ease;
  /* Ou, se preferir ser mais específico:
  transition: 
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
  */
}

.btn-shop:hover {
  /* Combine as transformações em uma única declaração */
  transform: translateY(-2px) scale(1.05);
  color: rgb(4, 138, 4);
  border-color: rgb(4, 138, 4);
}

.btn-shop:hover span {
  color: rgb(4, 138, 4);
}

.nav-right span {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
}

.icon-shop {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}


/* ===== BOTÃO VOLTAR AO TOPO ===== */
.btn-topo {
  position: fixed;
  bottom: 90px;
  right: 25px;

  width: 50px;
  height: 50px;

  display: flex;
  align-items: center;
  justify-content: center;

  background-color: #8b0000;
  color: #ffffff;

  border: 2px solid #ffffff;
  border-radius: 50%;

  cursor: pointer;
  text-decoration: none;

  opacity: 0;
  pointer-events: none;

  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;

  z-index: 998;
}

.btn-topo.visible svg {
  width: 22px;
  height: 22px;
  display: block;
  transform: translate(10px, 10px) !important;

}

.btn-topo.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.btn-topo:hover {
  background-color: #aa0808;
  transform: translateY(0) scale(1.05);
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-height: 130px;
  background-color: #5f0505;
  padding: 20px;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  align-items: center;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.nav-center,
.nav-right {
  transform: translateY(-20px);
}

.nav-left {
  position: absolute;
  left: 20px;
  padding: 24px;
  display: flex !important;
  align-items: center;
}

.nav-left .btn-pedir {
  white-space: nowrap;
}

.nav-btn {
  display: inline-block;
  transition: all 0.3s ease;
}

.nav-center {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding-left: 10%;
  white-space: nowrap;
}

.nav-menu {
  text-decoration: none;
  padding: 20px;
  font-size: 20px;
  position: relative;
  font-weight: 800;
  color: transparent;
  background-image: linear-gradient(90deg, #ffffff 0%, #ffffff 50%, #036613 50%, #036613 100%);
  background-size: 200% 100%;
  background-position: 0% 0%;
  -webkit-background-clip: text;
  background-clip: text;
  transition: background-position 0.4s ease;
  display: inline-block;
}

.nav-menu::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 0;
  height: 1.7px;
  background-color: #ffffff;
  transition: width 0.3s ease, left 0.3s ease;
}

.nav-menu:hover {
  background-position: -100% 0%;
}

.nav-menu:hover::after {
  width: 100%;
  left: 0;
}

.logo {
  max-width: 190px;
  height: 140px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
  position: absolute;
  right: 60px;
}

.nav-menu-mobile {
  display: none;
}

/* ===== MENU MOBILE ===== */

/* Variaveis */
:root {
  --menu-bg: #0f2a1f;
  --menu-border: #1f4d3a;
  --menu-hover: #6e0a0a;
  --menu-text: #ffffff;
  --menu-muted: #b7d6c8;
}

.menu-mobile {
  position: fixed;
  top: 90px;
  left: -100%;
  width: 85%;
  max-width: 300px;
  height: auto;
  background: var(--menu-bg);
  padding: 20px;
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  transition: left 0.3s ease;
  z-index: 1000;
}

.menu-mobile.active {
  left: 15px;
}

.menu-title {
  color: var(--menu-text);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--menu-border);
  padding-bottom: 10px;
  letter-spacing: 0.5px;
}

.menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.menu-link {
  color: var(--menu-text);
  font-size: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: background 0.25s ease, transform 0.2s ease;
}

.menu-link:hover {
  transform: translateX(4px);
  color: #aa0808;
}

.menu-link:first-child {
  background: #1e6f4f;
  font-weight: 700;
}

.menu-link:first-child:hover {
  background: #278a62;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 999;
}

.menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}


/* ===== BOTÃO PEDIR MOBILE ===== */
.pedido-mobile {
  position: fixed;
  bottom: 25px;
  left: 25px;
  background-color: #8b0000;
  color: #ffffff;
  border: 2px solid #ffffff;
  padding: 12px 22px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  z-index: 999;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pedido-mobile:active {
  transform: scale(0.95);
}



/* ===== HERO SECTION ===== */
.hero {
  background: #1f331c;
  color: #fff;
  text-align: center;
  padding: 140px 20px 40px;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-text {
  margin: 20px 0;
  font-size: 32px;
  max-width: 600px;
}

.hero-btn {
  display: inline-block;
  margin: 20px 0 40px;
  transition: all 0.3s ease;
  z-index: 1;
  position: relative;
}

.hero-btn.hidden {
  opacity: 0;
  pointer-events: none;
}

.banner-img {
  width: 100%;
  border-radius: 20px;
  margin: 40px auto 0;
  max-width: 1000px;
  object-fit: cover;
  margin-bottom: 20px;
}

/* ===== COMO FAZEMOS ===== */
.como-fazemos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "titulo texto"
    "imagens imagens";
  gap: 40px;
  align-items: start;
}

.como-fazemos .texto {
  grid-area: titulo;
  max-width: 600px;
}

.como-fazemos h2 {
  font-size: 32px;
  margin-bottom: 16px;
}

.como-fazemos .texto p {
  font-size: 16px;
  line-height: 1.6;
  margin-top: 8px;
}

.como-fazemos .imagens {
  grid-area: imagens;
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 30px;
}

.como-fazemos .imagens img {
  width: 100%;
  height: 420px;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

/* ===== PIZZAS ===== */
.pizzas {
  background: #1f331c;
  color: #fff;
  padding: 80px 20px;
  text-align: center;
}

.pizzas h2 {
  font-size: 32px;
  color: #aa0808;
  padding-bottom: 20px;
}

.grid-pizzas {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.pizza-item {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  width: 100%;
}

.pizza-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  transition: transform 0.3s ease;
  display: block;
}

.pizza-item:hover img {
  transform: scale(1.03);
}

.pizza-item .sabor {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.pizza-item:hover .sabor {
  opacity: 1;
}

/* ===== COMBOS ===== */
/* ===== COMBOS ===== */
.combos {
  background: #660101;
  text-align: center;
  padding: 80px 20px;
}

.combos h2 {
  font-size: 32px;
  color: #ffffff;
  margin-bottom: 10px;
}

.combos p {
  color: #e0e0e0;
  margin-bottom: 40px;
  font-size: 16px;
}

/* Swiper */
.combos-swiper {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 40px;
}

.combos-swiper .swiper-wrapper {
  align-items: stretch;
}

/* Card do combo */
.combo-item {
  background: #1f331c;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.combo-item:hover {
  transform: translateY(-6px);
}

/* Imagem */
.combo-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

/* Info */
.combo-item .item-info {
  padding: 18px;
  color: #fff;
}

.combo-item .item-info h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

.combo-item .item-info span {
  font-size: 18px;
  font-weight: bold;
  color: #ffcc70;
}

.pizza-swiper {
  width: 100%;
  max-width: 1000px;
  margin-top: 40px;
}

.pizza-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.pizza-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
}

.swiper-button-next,
.swiper-button-prev {
  transition: 0.3s;
  color: #9c9999;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  transition: 0.3s;
  transform: scale(1.05);
  color: #ffffff;
}


/* ===== CTA ===== */
.cta {
  text-align: center;
  padding: 80px 20px;
  background: #f7f7f2;
}

.cta .btn-pedir {
  margin-top: 15px;
}

/* ===== FOOTER ===== */
.footer {
  background: #1f331c;
  color: #fff;
  padding-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.footer-col:first-child {
  justify-self: start;
  text-align: left;
}

.footer-col:last-child {
  justify-self: end;
  text-align: right;
}

.footer-col h3 {
  font-size: 20px;
  margin-bottom: 16px;
  color: #e5e5e5;
}

.footer-text {
  line-height: 1.8;
  font-size: 15px;
  color: #d0d0d0;
}

.footer-redes {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}

.redes {
  width: 42px;
  height: 42px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.redes:hover {
  transform: scale(1.15);
  opacity: 0.85;
}

.footer-bottom {
  margin-top: 50px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
  font-size: 14px;
  color: #bfbfbf;
}

/* ===== WHATSAPP ===== */
.whatsapp-flutuante {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #25D366;
  color: white;
  padding: 12px 22px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 999;
}

.whatsapp-flutuante:hover {
  transform: scale(1.05);
  box-shadow: 0px 6px 18px rgba(0, 0, 0, 0.25);
  text-decoration: none;
  color: white;
}

.whatsapp-flutuante img {
  width: 22px;
}

/* =========================================================
   RESPONSIVIDADE FINAL — VERSÃO ESTÁVEL
   Navbar: Desktop vs Mobile/Tablet (1024px)
========================================================= */

/* ================= DESKTOP ================= */
@media (min-width: 1025px) {
  .pedido-mobile {
    display: none;
  }

  .nav-menu {
    display: inline-block;
  }

  .nav-menu-mobile {
    display: none;
  }
}

/* ================= TABLETS GRANDES ================= */
@media (max-width: 1024px) {
  .container {
    padding: 50px 20px;
  }

  .grid-pizzas {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-text {
    font-size: 26px;
  }

  .nav-left {
    display: none !important;
  }

}


/* ================= MOBILE ================= */
@media (max-width: 768px) {
  .navbar {
    min-height: auto;
    max-height: 80px;
    padding: 10px 15px;
  }

  .nav-container {
    padding: 12px 15px;
  }

  .logo {
    max-width: 115px;
  }

  .hero {
    padding: 120px 15px 30px;
    min-height: auto;
  }

  .hero-text {
    font-size: 22px;
  }

  .pizza-swiper {
    height: 260px;
  }

  .combo-item img {
    height: 220px;
  }

  .combos-swiper {
    padding: 10px 20px;
  }

  /* Esconde menus textuais */
  .nav-menu {
    display: none !important;
  }

  /* Ativa hambúrguer */
  .nav-menu-mobile {
    display: block !important;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
  }

  .menu-hamburger {
    background: none;
    border: none;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
  }

  /* Carrinho fixo à direita */
  .nav-right {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
  }

  .nav-right span {
    display: none;
  }

  .btn-shop {
    padding: 8px;
    border-radius: 10px;
  }

  .icon-shop {
    width: 22px;
    height: 22px;
  }

  .pizza-item .sabor {
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .pizza-item.active .sabor {
    opacity: 1 !important;
  }

  /* Como fazemos */
  .como-fazemos {
    grid-template-columns: 1fr;
    grid-template-areas:
      "titulo"
      "texto"
      "imagens";
  }

  .como-fazemos .imagens {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .como-fazemos .imagens img {
    height: 300px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }

  .footer-col:first-child,
  .footer-col:last-child {
    justify-self: center;
    text-align: center;
  }

  .footer-redes {
    justify-content: center;
  }

  /* WhatsApp */
  .whatsapp-flutuante {
    bottom: 15px;
    right: 15px;
    padding: 10px 16px;
    font-size: 14px;
  }

  .whatsapp-flutuante span {
    display: none;
  }

  .logo {
    height: auto !important;
  }
}

/* ================= MOBILE MÉDIO ================= */
@media (max-width: 600px) {
  .grid-pizzas {
    grid-template-columns: 1fr;
  }

  .logo {
    max-width: 95px;
  }

  .hero-text {
    font-size: 18px;
  }
}

/* ================= MOBILE PEQUENO ================= */
@media (max-width: 420px) {
  .hero-text {
    font-size: 16px;
  }
}

@media (max-width: 1370px) {

  .nav-menu {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}