/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f8f8;
  color: #333;
  line-height: 1.6;
  position: relative;
  min-height: 100vh;
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%; 
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url('imagens/bandeira italia.jpg') no-repeat center center;
  background-size: cover;
  opacity: 0.1;
  z-index: -1;
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    to right,
    #009246 0% 33.33%,
    #FFFFFF 33.33% 66.66%,
    #CE2B37 66.66% 100%
  );
  z-index: 1001;
}

/* Banner simplificado */
.banner {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  /* Aumentei a altura para melhor impacto visual */
  height: 250px; 
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  background-color: #f8f8f8;
}

  .banner img {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover; /* Revertido para 'cover' para preencher 100% em telas grandes */
      display: block;
  }

/* Menu de Navegação */
.menu-navegacao {
  background: #CE2B37;
  border-bottom: 1px solid #e0e0e0;
  transition: all 0.3s ease;
  z-index: 1000;
  position: relative;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.menu-navegacao.sticky {
  position: fixed;
  top: 3px;
  left: 0;
  right: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Busca */
.busca-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    transition: margin 0.3s ease, padding 0.3s ease, background-color 0.3s ease;
}

.busca-container.sticky {
    position: fixed;
    /* O 'top' será definido pelo JavaScript de forma dinâmica */
    left: 0;
    right: 0;
    margin: 0;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 990; 
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);
}

.busca-container.sticky {
    position: fixed;
    top: 50px; /* Abaixo do menu sticky */
    left: 0;
    right: 0;
    margin: 0;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 990; /* Abaixo do menu */
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);
}

#busca-sabor {
  width: 100%;
  padding: 14px 20px;
  font-size: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background-color: #fff;
}

#busca-sabor:focus {
  border-color: #CE2B37;
  box-shadow: 0 0 0 3px rgba(206, 43, 55, 0.1);
}

/* Remove a seção de botões, pois não está sendo usada no HTML */
.botoes-busca {
  display: none; 
}


/* Responsivo busca */
@media (max-width: 768px) {
  .busca-container {
    margin: 20px 10px;
    padding: 0 10px;
  }
  /* Ajuste do banner no mobile */
  .banner {
      height: 150px; /* Altura ajustada para mobile */
  }
  .banner img {
      object-fit: contain; /* Garante que o telefone seja visível em telas pequenas */
  }
  .busca-container.sticky {
      top: 48px; /* Ajuste para o menu menor no mobile */
  }
}

.menu-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.menu-lista {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  padding: 16px 0;
}

.menu-link {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  padding: 8px 16px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.menu-link:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Conteúdo Principal */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Cardápio */
.header-cardapio {
    text-align: center;
    padding: 30px 0 10px;
}

.titulo-cardapio {
    font-size: 2.5em;
    color: #CE2B37;
    border-bottom: 3px solid #009246;
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 0;
}


/* Section Categoria */
.categoria-container {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.1);
  width: 100%;
  padding: 40px;
  margin-bottom: 40px;
}

.categoria-container h2 {
    color: #CE2B37;
    text-align: center;
    font-size: 2em;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

/* Grid de Pizzas */
.pizzas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* Item Sabor (article) */
.sabor {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.3s ease;
    text-decoration: none;
    color: inherit;
    border: 1px solid #eee;
}

.sabor:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.sabor img {
    width: 100%;
    height: 200px; 
    object-fit: cover;
    display: block;
}

.sabor-info {
    padding: 15px;
    flex-grow: 1; /* Permite que o info cresça e empurre o preço para baixo */
}

.sabor-info h3 {
    color: #333;
    font-size: 1.2em;
    margin-bottom: 5px;
}

.sabor-info h4 {
    color: #666;
    font-size: 0.9em;
    font-weight: 400;
    margin-bottom: 10px;
    min-height: 30px; /* Garante altura mínima para alinhamento */
}

.preco {
    padding: 15px;
    border-top: 1px solid #f5f5f5;
    background-color: #fafafa;
    font-size: 1.1em;
    font-weight: bold;
    color: #009246; /* Cor verde para o preço */
}

.preco span {
    color: #CE2B37; /* Cor vermelha para o valor */
    font-size: 1.1em;
}

/* Sobre Nós */
.sobre-nos-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

.sobre-nos-texto {
    flex: 1 1 55%; 
    min-width: 300px;
}

.sobre-nos-imagem {
    flex: 1 1 35%;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sobre-nos-imagem img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.mapa-container {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.mapa-container iframe {
    display: block;
}

.citacao-sjc {
    border-left: 4px solid #CE2B37;
    padding-left: 15px;
    margin: 20px 0;
    color: #555;
    font-style: italic;
}

.contato-info a {
    color: #CE2B37;
    text-decoration: none;
    transition: color 0.2s;
}

.contato-info a:hover {
    color: #009246;
}

/* Footer (Novo) */
.site-footer {
    background: #333;
    color: #f8f8f8;
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
}

.site-footer p {
    margin: 5px 0;
    font-size: 0.9em;
}

/* Botão flutuante */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    width: 60px; /* Tamanho padrão para mobile (será sobrescrito abaixo) */
    height: 60px;
    border-radius: 50%;
    background-color: #25d366;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.whatsapp-button:hover {
    transform: scale(1.1);
}

.whatsapp-button img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    border-radius: 50%;
}

/* Responsividade geral */
@media (max-width: 768px) {
    .pizzas-grid {
        grid-template-columns: 1fr; /* Coluna única no mobile */
    }

    .categoria-container {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .menu-lista {
        gap: 15px;
        flex-wrap: wrap;
        padding: 10px 0;
    }

    .menu-link {
        font-size: 14px;
        padding: 6px 10px;
    }

    .sobre-nos-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .titulo-cardapio {
        font-size: 2em;
    }

    .whatsapp-button {
        width: 100px;
        height: 100px;
        bottom: 15px;
        right: 15px;
    }
}

/* Tamanho maior para telas grandes (desktop) */
@media (min-width: 769px) {
    .whatsapp-button {
        width: 120px; /* Dobro do tamanho padrão (60px * 2) */
        height: 120px;
        bottom: 30px; /* Ajuste a posição para o novo tamanho */
        right: 30px;
    }
    
    .whatsapp-button img {
        width: 120%; /* Ajuste o ícone para preencher melhor */
        height: 120%;
    }
}
        .review-box {
            border: 1px solid #ddd;
            padding: 15px;
            border-radius: 10px;
            margin-bottom: 20px;
            background: #fafafa;
        }
        .review-author {
	            font-weight: bold;
	            font-size: 18px;
	            color: #CE2B37; /* Cor da marca */
	        }
	        .stars {
	            color: #FFD700;
	            font-size: 24px; /* Estrelas maiores */
	            letter-spacing: 2px;
	            display: block;
	            margin: 5px 0;
	        }
	        .review-text {
	            margin: 10px 0;
	            font-style: italic;
	            color: #555;
	        }
	        .review-date {
	            font-size: 0.8em;
	            color: #999;
	            text-align: right;
	        }
	        .aviso-integracao {
	            background-color: #fff3cd;
	            border: 1px solid #ffeeba;
	            color: #856404;
	            padding: 15px;
	            border-radius: 5px;
	            margin-bottom: 20px;
	        }
	        .aviso-integracao p {
	            margin: 5px 0;
	        }