/* Cores principais */
:root {
  --terracota: #e2725b; /* Terracota */
  --sage: #b2beb5;      /* Sage (verde suave) */
  --lavanda: #b9a2d8;   /* Lavanda (roxo suave) */
  --text-color: #333;   /* Cor padrão do texto #333*/
  --background: #f9f9f9; /* Fundo claro */
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: var(--background);
  color: var(--text-color);
}

/* inicio Cabeçalho */
header {
  background-image: url('images/fundo_do_titulo.png'); /* Caminho da imagem */
  background-size: cover; /* Faz a imagem cobrir todo o espaço */
  background-position: center; /* Centraliza a imagem */
  background-repeat: no-repeat;
  height: 250px; /* Ajuste a altura conforme necessário */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: black; /* Cor do texto para garantir contraste */
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5); /* Adiciona um efeito de sombra no texto */
}

header h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
}

header h3 {
  font-size: 1.5em;
  margin-bottom: 20px;
}

nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

nav ul li {
  margin: 0 1rem;
}

nav ul li a {
  color: black;
  text-decoration: none;
}

/* Estilos gerais */
main {
  padding: 2rem;
}

section {
  margin-bottom: 2rem;
}

h2 {
  color: var(--terracota);
}



/* Galeria de fotos */
.gallery img {
  width: 100%;
  border-radius: 10px;
  border: 2px solid var(--sage);
  margin-bottom: 1rem;
}

/* Seção de galeria de fotos */
#galeria-fotos {
  padding: 40px 20px;
  background-color: #fefefe;
}

#galeria-fotos h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 20px;
  color: #6b705c; /* Lavanda */
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery div {
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.gallery img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.thumbnail {
    width: 100px;
    height: 100px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s;
}

.thumbnail:hover {
    transform: scale(1.1);
}

/* Popup (inicialmente escondido) */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.popupImage {
    max-width: 90%;
    max-height: 90%;
    margin: auto;
}

/* Botão de fechamento */
.closeBtn {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

/* Rodapé */
footer {
  text-align: center;
  padding: 1rem;
  background: var(--sage);
  color: white;
}

/* lista de presentes */
/* Estiliza a grade dos presentes para exibir 4 itens por linha */
#grid-presentes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));/*repeat(4, 1fr); 4 colunas por linha */
  gap: 20px; /* Espaço entre os itens */
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Estiliza cada item da grade */
.grid-item {
  background-color: #ffffff;
  object-fit: cover; 
  border: 2px solid #c4b8a9; /* Sage */
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.grid-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

/* Ajuste do tamanho das imagens para serem iguais */
.grid-item img {
  max-width: 240px; /* Ajusta a largura para ocupar todo o espaço disponível */
  max-height: 480px;
  /*height: auto;/*480px;  Define uma altura fixa para todas as imagens */
  object-fit: contain; /* Mantém a proporção da imagem e corta o excesso */
  border-radius: 10px;
  margin-bottom: 10px;
}

/* Estiliza o nome dos produtos */
.grid-item h3 {
  font-size: 1rem;
  font-weight: bold;
  color: #874c3c; /* Terracota */
  margin: 10px 0 5px;
  text-align: center;
}

/* Estiliza o preço */
.grid-item .preco {
  font-size: 1rem;
  font-weight: bold;
  color: #4a4a4a; /* Cinza escuro */
  margin-bottom: 10px;
  text-align: center;
}

/* Garante que a grade se adapte a telas menores */
@media screen and (max-width: 1920px) {
  #grid-presentes {
    grid-template-columns: repeat(4, 1fr); /* 4 itens por linha em telas médias */
  }
}
@media screen and (max-width: 1024px) {
  #grid-presentes {
    grid-template-columns: repeat(3, 1fr); /* 3 itens por linha em telas médias */
  }
}

@media screen and (max-width: 768px) {
  #grid-presentes {
    grid-template-columns: repeat(2, 1fr); /* 2 itens por linha em telas pequenas */
  }
}

@media screen and (max-width: 480px) {/*PARA TELAS DE CELULAR*/
/* ------------ RESPONSIVIDADE PARA A LISTA DE PRESENTES ------------ */
  #grid-presentes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); /* Ajuste dinâmico */
  gap: 15px;
  padding: 15px;
  max-width: 1200px;
  margin: 0 auto;
}

.grid-item img {
  width: 100%;
  height: 125px;
  object-fit: contain;
  border-radius: 10px;
} 
}

/* Estiliza os botões dentro dos produtos */
.grid-item .options {
  display: flex; /* Organiza os botões em linha */
  justify-content: center; /* Centraliza os botões */
  gap: 10px; /* Espaço entre os botões */
  margin-top: 10px;
}

.grid-item button {
  background-color: #874c3c; /* Cor terracota */
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.grid-item button:hover {
  background-color: #6b705c; /* Lavanda */
}


.historia-texto {
  max-width: 800px; /* Define uma largura máxima para melhor leitura */
  margin: 0 auto; /* Centraliza a div na página */
  text-align: justify; /* Deixa o texto mais organizado */
  line-height: 1.8; /* Aumenta o espaçamento entre linhas */
  font-size: 1.2rem; /* Aumenta o tamanho do texto */
  padding: 20px; /* Adiciona espaço ao redor do texto */
}

.historia-texto p {
  margin-bottom: 15px; /* Adiciona um espaço entre os parágrafos */
}


/* Estilos para o alerta personalizado de alert*/

.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

.popup-content {
  background: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.popup-content img {
  width: 200px;
  height: 200px;
}

.alerta-pix {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5); /* Cor de fundo semitransparente */
  z-index: 1000;
}

.alerta-content {
  background-color: white;
  padding: 20px;
  text-align: center;
  border-radius: 10px;
  max-width: 90%;
  width: 300px;
  position: relative;
}

.qrcode-img {
  width: 100%;
  height: auto;
  margin-top: 10px;
}
.fechar {
  position: absolute;
  top: 5px;
  right: 5px;
  cursor: pointer;
  font-size: 25px;
  color: #000;
}
/*--------------------------------------------------------------------------------------------------------------------------------------------*/
/* ------------ CORREÇÃO DO MENU NO CELULAR ------------ */
nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

nav ul li {
  margin: 5px;
}

nav ul li a {
  font-size: 1rem;
  padding: 10px;
  color: white;
  text-decoration: none;
  background-color: var(--terracota);
  border-radius: 5px;
}

nav ul li a:hover {
  background-color: var(--lavanda);
}

/* ------------ AJUSTE DO CABEÇALHO NO CELULAR ------------ */
header {
  background-image: url('images/fundo_do_titulo.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  color: black;
}

header h1 {
  font-size: 2rem;
}


/* ------------ BOTÕES DE COMPRA ALINHADOS ------------ */
.grid-item .options {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.grid-item button {
  width: 100%;
  padding: 8px;
}

/* ------------ FORMULÁRIOS DO GOOGLE RESPONSIVOS ------------ */

iframe {
  max-width: 100%;
  width: 100%;
  height: 1100px;
  object-fit: contain;
}


/* ------------ GALERIA DE FOTOS RESPONSIVA ------------ */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 10px;
  max-width: 100%;
  margin: 0 auto;
}

.gallery img {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
}

/* ------------ CORREÇÃO DO ZOOM AO ABRIR AS FOTOS DA GALERIA ------------ */
.popupImage {
  max-width: 90%;
  max-height: 80vh; /* Limita a altura para não ocupar a tela toda */
}

/* ------------ AJUSTE DO FUNDO NA SEÇÃO "MENSAGEM" ------------ */
#depoimentos {
  background-image: url('images/fundo_mensagem.png'); /* Certifique-se de ter esta imagem no diretório */
  background-size: cover;
  background-position: center;
  color: white;
  padding: 40px 20px;
}


/* ------------ Contagem Regressiva ------------ */
#contador {
  text-align: center;
  padding: 20px;
  background-color: #f8f4f0;
  color: #874c3c; /* Terracota */
  font-size: 1.5rem;
  font-weight: bold;
  border-radius: 10px;
  margin: 20px auto;
  max-width: 650px;
}

#countdown {
  display: flex;
  justify-content: center;
  gap: 15px;
  font-size: 2rem;
  margin-top: 10px;
}

/* Responsividade */
@media screen and (max-width: 768px) {
  #countdown {
    flex-direction: column;
    font-size: 1.5rem;
  }
}