:root {
    --verde: #14532d;
    --laranja: #f97316;
    --preto: #000000;
    --branco: #ffffff;
    --cinza-claro: #f9f9f9;
    --sombra: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transicao: all 0.3s ease;
}

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

@media (min-width: 768px) {
  #navbarToggleExternalContent3 {
    display: none;
  }

  .navbar.d-md-none {
    display: none;
  }
}

.background {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/pizzaria.png') no-repeat center center;
  background-size: cover;
  z-index: -1;
}

@media (max-width: 768px) {
  .background {
    background: url('../images/pizzaria-mobile.png') no-repeat center center;
    background-size: cover;
  }
}

header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: var(--verde);
  color: var(--branco);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

header .logo {
  width: 120px;
  min-width: 50px;
}

.menu {
  display: flex;
  gap: 1rem;
}

.menu a {
  color: var(--branco);
  text-decoration: none;
  font-weight: 500;
}

.menu a:hover {
  text-decoration: underline;
}

/* Botão hamburguer */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--branco);
  font-size: 2rem;
  cursor: pointer;
}

/* Responsividade */
@media (max-width: 768px) {
  .menu {
    display: none; /* esconde menu no mobile */
    flex-direction: column;
    background: var(--verde);
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  }

  .menu.show {
    display: flex;
  }

  .menu-toggle {
    display: block; /* mostra botão hamburguer */
  }
}

nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    padding: 0.5rem;
    order: 2;
}

nav a {
    color: var(--branco);
    margin: 0 0.75rem;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 110%;
}

@media (min-width: 769px) {
    header {
        flex-wrap: wrap;
        padding: 1rem 2rem;
    }
    nav {
        width: auto;
        order: 1;
        justify-content: flex-end;
    }
    header img {
        width: 5%;
        order: 0;
    }
}

@media (min-width: 768px) {
  #navbarToggleExternalContent3 {
    display: none;
  }

  .navbar.d-md-none {
    display: none;
  }
}

.carousel-inner {
  height: 80vh; /* AJUSTADO: Mesma altura do carrossel antigo */
  position: relative;
  overflow: hidden; /* Garante que nada saia dos limites */
}

/* --- Contêiner que guarda as imagens --- */
.carousel-inner .carroussel--container {
  position: relative;
  width: 100%;
  height: 100%;
}

/* --- Estilo para TODAS as imagens dentro do contêiner --- */
.carousel-inner .carroussel--container > img {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  object-fit: cover; /* AJUSTADO: Faz a imagem preencher o espaço sem distorcer */
  object-position: center; /* Centraliza a imagem */
}

/* --- Deixa a PRIMEIRA imagem visível --- */
.carousel-inner .carroussel--container > img:first-child {
  opacity: 1;
}

/* --- Contêiner do texto e botão, sobreposto às imagens --- */
.carousel-inner .carroussel--text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

/* --- Estilo da chamada de texto --- */
.carousel-inner .carroussel--text__call {
  padding: 5px 10px;
  font-size: 24px;
  color: white;
  font-family: sans-serif;
  background-color: rgba(0, 0, 0, 0.6);
}

/* --- Estilo do botão --- */
.carousel-inner .carroussel--text__btn {
  border: none;
  border-radius: 4px;
  padding: 10px;
  font-size: 24px;
  background-color: red;
  color: white;
}

.carousel-inner .carroussel--text__btn:hover {
  cursor: pointer;
}

section {
    padding: 2rem 1rem;
    max-width: 90%;
    margin: 4rem auto;
}

section h2 {
    text-align: center;
    color: var(--verde);
    margin-bottom: 2rem;
}

.sobre-nos {
  padding: 2rem 1rem;
  background-color: #f9f9f9;
  border-radius: 10px;
  width: 80%;
  margin-top: 4rem;
}

.sobre-nos p {
  width: 800px;
  font-size: 1.5rem;
  margin: 0 auto;
}

#produtos {
  padding: 40px 20px;
  text-align: center;
  border-radius: 10px;
}

#produtos h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: white;
}

.produtos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.produto {
  width: 300px;
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.produto:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.produto::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #ff6b00, #ff9e00);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.produto:hover::before {
  transform: scaleX(1);
}

.produto img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.produto:hover img {
  transform: scale(1.05);
}

.produto h3 {
  font-size: 1.5rem;
  margin: 20px 0 10px;
  color: #333;
}

.produto p {
  padding: 0 20px 20px;
  color: #666;
  line-height: 1.5;
}

/* Deixa a imagem em preto e branco só na classe lasanha */
.produto.lasanha img {
  filter: grayscale(100%);
  opacity: 0.7; /* deixa um pouco esmaecida pra destacar o texto */
}

/* Texto "Em breve" sobre a imagem */
.produto.lasanha .em-breve {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.6); /* fundo semitransparente */
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 8px;
  text-transform: uppercase;
}

.diferenciais-section {
  padding: 2rem 1rem;
  background-color: #f9f9f9;
  margin-bottom: 4rem;
  border-radius: 10px;
}

.diferenciais-container {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.diferenciais-img {
  width: 100%;
  max-width: 400px;
  max-height: 400px;
}

.carousel-img-container {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: var(--sombra);
  overflow: hidden;
}

.carousel-img-container img {
  width: 100%;
  height: 100%;
  transition: filter 0.5s ease;
}

.carousel-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--branco);
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 2;
}

.carousel-img-container::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.carousel-img-container:hover img {
  filter: blur(2px);
}

.carousel-img-container:hover::after,
.carousel-img-container:hover .carousel-overlay {
  opacity: 1;
}

.diferenciais-texto {
  flex: 1 1 500px;
}

.diferenciais-texto h2 {
  color: var(--verde);
  margin-bottom: 1rem;
}

.diferenciais-texto p {
  margin-bottom: 1.5rem;
  color: #333;
  line-height: 1.6;
}

.diferenciais-lista {
  columns: 2;
  list-style: none;
  padding: 0;
}

.diferenciais-lista li {
  margin-bottom: 0.8rem;
  color: #444;
  font-size: 1rem;
}

.diferenciais-lista i {
  color: var(--laranja);
  margin-right: 0.5rem;
}

@media (max-width: 768px) {
  .diferenciais-container {
    flex-direction: column;
  }

  .diferenciais-lista {
    columns: 1;
  }
}

.crostini-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    justify-content: space-between;
    margin: 0 auto 4rem auto; 
    max-width: 90%; 
}


.crostini-text {
    flex: 1;
    width: 100%;
}

.crostini-img {
  display: flex;          
  gap: 0;                 
}

.crostini-img img {
  width: 50%;             
  object-fit: cover;      
  border-radius: 10px;    
}


.crostini-text h2 {
    color: var(--verde);
    margin-bottom: 1rem;
}

.crostini-text p {
    margin-bottom: 1rem;
    color: #333;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .crostini-section {
        flex-direction: row;
        text-align: left;
        margin: 2rem auto;
    }

    .diferenciais-container {
        flex-direction: row;
        align-items: center;
    }

    .crostini-text, .crostini-img {
        flex: 1;
    }

    .crostini-text {
        padding-right: 2rem;
    }
}

.cta {
  text-align: center;
  background-color: var(--laranja);
  color: var(--branco);
  padding: 3rem 1rem;
  border-radius: 10px;
  margin-bottom: 4rem auto;
}

.cta a {
    display: inline-block;
    margin-top: 1rem;
    padding: 1rem 2rem;
    background-color: var(--branco);
    color: var(--laranja);
    font-weight: bold;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s;
}

.cta a:hover {
    background-color: #ffe6d0;
}

.pizza-destaque {
    background-color: #f9f9f9;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    padding: 2rem 1rem;
    margin-bottom: 4rem;
}

.pizza-destque-title {
    width: 100%;
    height: auto;
}

.pizza-destaque-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 1rem;
    justify-items: center;
}

.pizza-destaque-content {
    width: 100%;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: var(--sombra);
    transition: var(--transicao);
}

.pizza-destaque-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.pizza-destaque-content img {
    width: 90%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.pizza-destaque-texto {
    width: 100%;
    padding: 10px;
}

.pizza-destaque-texto h2 {
    margin: 10px 0;
    font-size: 1.2em;
    font-weight: 600;
}

.pizza-destaque-texto p {
    font-size: 1em;
    margin: 5px 0;
    color: orange;
    font-weight: 500;
}

/* Ajuste para telas menores que 768px */
@media (max-width: 768px) {
    .pizza-destaque-container {
        grid-template-columns: repeat(2, 1fr);
        justify-items: center;
    }
}

footer {
    background-color: var(--verde);
    color: var(--branco);
    padding: 4rem 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}
.footer-col {
    display: flex;
    flex-direction: column;
}
.social-icons {
    display: flex;
    gap: 1rem;
    font-size: 1.5rem;
}

.footer-col h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.footer-col p, .footer-col a {
  color: var(--branco);
  font-size: 1rem;
  margin: 0.3rem 0;
  text-decoration: none;
}

.footer-col a:hover {
  text-decoration: underline;
}

.social-icons {
  display: flex;
  gap: 1rem;
  font-size: 1.5rem;
}

.social-icons i {
  font-size: 1.5rem;
  color: var(--branco);
  transition: color 0.3s;
}

.social-icons i:hover {
  color: var(--laranja);
}

.footer-bottom {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #ccc;
    text-align: center; /* <- centraliza horizontalmente */
}

