/* Estilos gerais */
body {
    margin: 0;
     font-family: "ivyora-display", serif;
    font-weight: 400;
    font-style: normal;
    background-color: rgba(154, 164, 133, 0.7);
    background-image: url('backy.jpeg');
    color: #333;
}

* {
    box-sizing: border-box;
}
/* Nova seção simplificada */
.nossa-historia-simples {
  padding: 50px 20px;
  max-width: 1200px;
  margin: auto;
}

.nossa-historia-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.nossa-historia-texto {
  flex: 1 1 400px;
  text-align: center;
  color: white;
}

.nossa-historia-texto .title {
  font-size: 2.5rem;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
  font-family: "ivyora-display", serif;
}

.nossa-historia-texto .subtitle {
  font-size: 1rem;
  line-height: 1.6;
  margin-top: 20px;
  text-align: justify;
  text-justify: inter-word; /* garante espaçamento uniforme entre palavras */
  line-height: 1.6; /* deixa o texto mais confortável de ler */
}

.nossa-historia-imagem {
  flex: 1 1 350px;
  text-align: center;
}

.nossa-historia-imagem img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Responsividade */
@media (max-width: 768px) {
  .nossa-historia-wrapper {
    flex-direction: column;
    text-align: center;
  }
  .nossa-historia-texto {
    order: 1;
  }
  .nossa-historia-imagem {
    order: 2;
  }
}

@media (max-width: 768px) {
 .timeline-item {
    flex-direction: column !important;
    padding: 0 20px;
    text-align: center;
  }
  .content.text {
    padding: 300px 25px 40px !important; /* top | sides | bottom */
  }
   .timeline-item::before {
    display: none;
  }

  /* Remove as ordens específicas no mobile */
  .timeline-item .text,
  .timeline-item .image {
    order: unset !important;
    padding: 0 !important;
    margin: 0 auto 20px;
  }

  .timeline-item .text {
    text-align: center !important;
  }

  .timeline-item::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .content.image img {
    max-width: 100%;
    height: auto;
  }
}

    

.timeline-container {
  padding: 50px 20px;
  max-width: 1200px;
  margin: auto;
}

.title {
     font-size: 2.5rem;
text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
font-family: "ivyora-display", serif;
font-weight: 400;
font-style: normal;
  color: #ffffff;
  margin: auto;
    margin-bottom: 1rem;
    margin-top:0;
  text-align: center;

}

.subtitle {
  text-align: center;
  font-size: 1.2em;
  margin-bottom: 3em;
  color: white;
}

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 60px;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background-color: #dbe0d3;
  transform: translateX(-50%);
  z-index: -2;
}

.timeline::before {
  height: calc(100% + 120px); /* "empurra" a linha além do final da seção */
  bottom: auto; /* remova o bottom */
}
.timeline-item {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 60px; /* espaçamento das bordas */
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  background-color: #495b29;
  border: 4px solid #fff;
  border-radius: 50%;
  z-index: -1;
}

.timeline-item.left,
.timeline-item.right {
  flex-direction: row;
}

.timeline-item.left .text {
  order: 1;
  padding-right: 60px;
  text-align: right;
}



.timeline-item.left .image {
  order: 2;
}

.timeline-item.right .text {
  order: 2;
  padding-left: 60px;
  text-align: left;
}

.timeline-item.right .image {
  order: 1;
}

.content {
  flex: 1;
  min-width: 280px;
}

.content.text {
  background-color: #fafaf6;
  padding: 30px !important;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 2px solid #495b29;
}

.content.text p{
    font-size:15px;
}

.content.text h2 {
  color: #4b552e;
  margin-top: 0;
}

.content.text .date {
  display: block;
  margin-top: 15px;
  color: #7c8450;
  font-weight: bold;
}

.content.image img {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}


.historia-container {
  position: relative;
  background-color: #bfc5b1;
  padding: 10px 6px;
  text-align: center;
}

.folha {
  position: absolute;
  top: 50%;
  width: 100px; /* ajuste conforme necessário */
  transform: translateY(-50%);
  opacity: 0.6; /* aparência aquarela mais leve */
  pointer-events: none; /* evita clique acidental */
}

.folha.esquerda {
  left: 0;
}

.folha.direita {
  right: 0;
  transform: translateY(-50%) scaleX(-1); /* espelha horizontalmente */
}



/* HERO */
.hero {
    position: relative;
    background-image: url('casal.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero h1 {
    position: relative;
    z-index: 2;
     font-family: "ivyora-display", serif;
    font-weight: 400;
    font-style: normal;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
    color: white;
    font-size: 4rem;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
    
}

.hero-texto {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-top: -40px; /* Move tudo para cima */
}

.hero-texto h1 {
    font-family: "ivyora-display", serif;
    font-weight: 400;
    font-style: normal;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
    margin-bottom: 0.5rem;
    font-size: 4rem;
}

.hero-texto h2 {
    font-size: 2rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    font-family: "beloved-script", sans-serif;
font-weight: 400;
font-style: normal;
  color: #ffffff;
}



.hero-texto h3{
      text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
    font-size: 1.2rem;;
     font-family: "ivyora-display", serif;
    font-weight: 400;
    font-style: normal;
  color: #ffffff;
}

/* Versículo */
.versiculo {
    padding: 5rem;
    background-color: transparent;
    text-align: center;
    margin-bottom: -80px;
}

.texto-versiculo {
    font-size:  1.5rem;
    font-style: italic;
    color: #ffffff;
}

/* Nossa História */
.nossa-historia {
    padding: 2rem;
    max-width: 1200px;
    margin: auto;
    text-align: center;
}

.nossa-historia h2 {
   font-size: 3rem;
font-family: "ivyora-display", serif;
text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
font-weight: 400;
font-style: normal;
  color: rgba(255, 255, 255, 0.95);
  margin: 100px auto; font-size: 3rem;
    margin-bottom: 1rem;
font-weight: 400;
font-style: normal;
}

.nossa-historia-conteudo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6.2rem;
    flex-wrap: wrap;
  margin-bottom: 2rem;
}

.nossa-historia-texto {
    flex: 1 1 300px;
    max-width: 600px;      /* Controla a largura máxima */
    margin: 0 auto;        /* Centraliza dentro do container pai */
    text-align: justify;
    line-height: 1.6;
    font-size: 1rem;
    color: white;
}



.nossa-historia-imagem {
    flex: 1 1 300px;
    text-align: center;
}

.nossa-historia-imagem img {
    max-width: 550px;
    height: 300px;
    width: 400px;
    border-radius: 15px;
}


.nossa-historia-conteudo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.nossa-historia-texto,
.nossa-historia-imagem {
  flex: 1;
}

/* Responsivo: no celular, empilhar e corrigir ordem */
@media (max-width: 768px) {
  .nossa-historia-conteudo {
    flex-direction: column;
  }

  /* Primeiro bloco (já está texto-imagem, então mantemos) */
  .nossa-historia-conteudo:nth-of-type(1) .nossa-historia-texto {
    order: 1;
  }
  .nossa-historia-conteudo:nth-of-type(1) .nossa-historia-imagem {
    order: 2;
  }

  /* Segundo bloco (está imagem-texto, invertemos para texto-imagem) */
  .nossa-historia-conteudo:nth-of-type(2) .nossa-historia-imagem {
    order: 2;
  }
  .nossa-historia-conteudo:nth-of-type(2) .nossa-historia-texto {
    order: 1;
  }

  .nossa-historia h2{
    font-size: 30px;
  }
  .contador-container h1{
    font-size: 30px;
  }
.nossa-historia-texto{
   margin-left: 30px;
   margin-right: 30px;
  }
}




/* Nossa História */
.dia {
    position: relative;
    text-align: center;
    background-image: url("maos.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center 40%;
    width: 100%;
    height: 400px;
    padding:0;
    color: white;
    z-index: 0;
}

.dia::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Escurece */
    z-index: 1;
}

.dia * {
    position: relative;
    z-index: 2; /* Garante que o conteúdo fique acima do escurecimento */
}



.dia h2 {
   font-size: 2.5rem;
text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
font-family: "ivyora-display", serif;
font-weight: 400;
font-style: normal;
  color: #ffffff;
  margin: auto;
    margin-bottom: 1rem;
    margin-top:0;
}

.dia-conteudo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6.2rem;
    flex-wrap: wrap;
}

.dia-texto {
    flex: 1 1 300px;
    text-align: justify; /* Melhor alinhamento visual */
    line-height: 1.6;     /* Melhora a leitura */
    font-size: 0.9rem;     /* Tamanho confortável */
    color: white;
}


  .dia-layout {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
  }



/* Presentes */
.presentes {
    
    position: relative;
    background-image: url("azulejo.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center 50%;
    padding: 1.5rem;
    text-align: center;
    color: rgb(255, 255, 255);
    z-index: 0;
    
}

.presentes::before{
      content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Escurece */
    z-index: 1;
}

.presentes * {
    position: relative;  /* para ficarem acima do ::before */
    z-index: 2;
}

.presentes h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-family: "beloved-script", sans-serif;
font-weight: 400;
font-style: normal;
  color: #ffffff;
}

.botao {
    background-color: #495b29;
    color: white;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 8px;
    display: inline-block;
    margin-top: 1rem;
    transition: all 0.3s ease;
    transition: background-color 0.4s ease, color 0.4s ease, transform 0.3s ease, box-shadow 0.3s ease;

}

.botao:hover {
    background-color: rgba(255, 255, 255, 0.95);
    transform: scale(1.03);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: rgb(0, 0, 0);
}


.galeria h2 {
    text-align: center;
    margin-bottom: 1rem;
}

/* Galeria com rolagem infinita */
.fotos-scroll-wrapper {
    display: flex;
    width: 100%;
    overflow: hidden; /* Impede a barra de rolagem */
}

.fotos-scroll {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    animation: rolarGaleria 30s linear infinite; /* Animação para rolar as imagens */
}

@keyframes rolarGaleria {
    0% {
        transform: translateX(0); /* Começa na posição inicial */
    }
    100% {
        transform: translateX(-50%); /* Move para a esquerda até o fim */
    }
}

.fotos-scroll img {
    height: 200px;
    border-radius: 10px;
    flex-shrink: 0; /* Garante que as imagens não encolham */
}

/* Responsividade */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .texto-versiculo {
        font-size: 1.2rem;
    }
    .fotos-scroll img {
        height: 150px;
    }
     .card-dia {
        padding: 1.5rem;
        margin: 1rem;
        
    }

    .dia h2 {
        font-size: 2rem;
    }

    .nossa-historia-imagem img{
        width: 300px;
        height: 200px;
    }

    .contador-box{
        width:50px ;
    }
    .contador-box span {
  font-size: 20px !important;

}
   

}
.fotos-scroll img:last-child {
    margin-right: 1rem; /* Ajuste o valor conforme necessário */
}


/* Animação ao rolar */
.scroll-fade {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.scroll-fade.visivel {
    opacity: 1;
    transform: translateY(0);
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.menu-toggle {
    font-size: 2rem;
    color: white;
    cursor: pointer;
    user-select: none;
    z-index: 10001; /* Fica acima do menu */
    padding: 1px;
    position: fixed; /* Importante: permanece visível ao abrir o menu */
    top: 20px;
    right: 5px;
}

/* Menu lateral */
.menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 70%;
    max-width: 300px;
    background-color: rgba(154, 164, 133, 0.95);
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
    padding: 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 5rem 1.5rem;
    z-index: 10000;
}

.menu {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.menu-footer {
  padding: 10px;
  font-size: 15px;
  text-align: center;
  color: #c6c6c6;
}

/* Links do menu */
.menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu li {
    margin: 1.5rem 0;
    opacity: 0;
    transform: translateX(30px);
    animation: linkFadeIn 0.4s forwards;
}

.menu.ativo li:nth-child(1) {
    animation-delay: 0.1s;
}

.menu.ativo li:nth-child(2) {
    animation-delay: 0.2s;
}

.menu.ativo li:nth-child(3) {
    animation-delay: 0.3s;
}

/* Links */
.menu a {
    color: white;
    text-decoration: none;
    font-size: 1.6rem;
    font-family: "ivyora-display", serif;
    font-weight: 400;
    font-style: normal;
    transition: color 0.3s ease, transform 0.3s ease;
}

.menu a:hover {
    color: #495b29;
    transform: translateX(10px);
}

.menu.ativo {
    transform: translateX(0);
}

/* Animação de entrada dos links */
@keyframes linkFadeIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.menu a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
     font-family: "ivyora-display", serif;
    font-weight: 400;
    font-style: normal;
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
}


.contador {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 100px;
  margin-bottom: 100px;
  flex-wrap: wrap;
}

.contador-container{
 text-align: center;
  margin: 40px 0;
}
.contador-titulo {
 font-size: 2rem;
font-family: "ivyora-display", serif;
text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
font-weight: 400;
font-style: normal;
  color: rgba(255, 255, 255, 0.95);
  margin: 100px auto;
    margin-bottom: 2px;
font-weight: 400;
font-style: normal;
}

.contador-box {
  background-color: #fff;
  color: #333;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  min-width: 70px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  font-family: 'Cinzel', serif;
}

.contador-box span {
  font-size: 32px;
  font-weight: bold;
  display: block;
}

.contador-box p {
  margin: 0;
  font-size: 14px;
}


.informacoes-cerimonia {
  text-align: center;
  padding: 20px;
  font-size: 1.1rem;
  color: #ffffff;
  max-width: 700px;
  margin: 0 auto;
}

.bloco-informacao {
  display: inline-block;
  text-align: left;
  margin: 0 auto;
}


.bloco-informacao strong{
  text-align: center;
  padding: 20px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.95);
}

.informacoes-cerimonia h3 {
  font-size: 1.6rem;
  margin-bottom: 15px;
  color: #ffffff;
}

.fotos-local {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 50px;
}

.fotos-local img {
  width: 300px;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Responsividade */
@media (max-width: 768px) {
  .fotos-local img {
    width: 90%;
  }

  .informacoes-cerimonia {
    font-size: 1rem;
  }
}

.alinhado-esquerda {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 500px;
  margin: 0 auto;
}

.bloco-informacao p {
  margin: 0.5rem 0;
  font-size: 1rem;

}

.texto-extra {
  margin-top: 1rem;
  font-size: 1rem;
  text-align: center;
}



