/* Reset global */
* {
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  color: black;
  background-color: #5F634F;
  overflow-x: hidden; /* evita overflow lateral */
}

#fim {
  padding: 50px;
}

#inicio {
  height: auto;
  display: flex;
  justify-content: center;
  width: 100%;
  flex-wrap: wrap;
}

#quadrado {
  text-align: center;
  max-width: 1100px;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
  border-radius: 10px;
}

#titlediv {
  display: flex;
  width: 100%;
  justify-content: center;
}

#titletexto {
  max-width: 800px;
  color: #e9e3d0;
  font-size: 32px;
  font-family: "Georgia", serif;
  margin: 0;
  padding: 20px;
  text-align: center;
}

#nossa {
  padding: 20px;
}

#textocaixa {
  display: flex;
  width: 100%;
  justify-content: center;
  padding: 0 15px;
  box-sizing: border-box;
}

#texto {
  max-width: 1200px;
  font-size: 24px;
  line-height: 1.6;
  font-family: "Georgia", serif;
  color: #e9e3d0;
  text-align: justify;
}

/* imagem  */
.container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  box-sizing: border-box;
  padding-top: 40px;
}

.foto {
  position: relative;
  max-width: 700px;
  min-width: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.imagem {
  border-radius: 10px;
  height: 590px;
  width: 700px;
  object-fit: cover;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
  transition: transform 0.5s cubic-bezier(0.77,0,0.175,1), opacity 0.5s;
  opacity: 1;
}

.imagem.saindo-esquerda {
  transform: translateX(-120px) scale(0.93) rotate(-3deg);
  opacity: 0;
}

.imagem.saindo-direita {
  transform: translateX(120px) scale(0.93) rotate(3deg);
  opacity: 0;
}

.imagem.entrando-esquerda {
  transform: translateX(120px) scale(0.93) rotate(3deg);
  opacity: 0;
}

.imagem.entrando-direita {
  transform: translateX(-120px) scale(0.93) rotate(-3deg);
  opacity: 0;
}

.imagem.ativa {
  transform: translateX(0) scale(1) rotate(0);
  opacity: 1;
}

.seta {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  color: #e9e3d0;
  border: none;
  outline: none;
  font-size: 2.5rem;
  padding: 0 8px;
  cursor: pointer;
  z-index: 2;
  transition: color 0.2s, background 0.2s;
  user-select: none;
  opacity: 0.85;
  height: 100%;
  width: 90px;
}

#setaEsquerda {
  left: 0px;
  color: white;
}

#setaDireita {
  right: 0px;
  color: white;
}

#setaEsquerda:hover {
  background: rgba(233,227,208,0.08);
  color: #fff;
  background: linear-gradient(to right, black, transparent);
}

#setaDireita:hover {
  background: rgba(233,227,208,0.08);
  color: #fff;
  background: linear-gradient(to left, black, transparent);
}

.slide-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s cubic-bezier(0.77,0,0.175,1), opacity 0.5s;
  opacity: 1;
}

.wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 700px;
  width: 700px;
  transition: transform 0.5s cubic-bezier(0.77,0,0.175,1), opacity 0.5s;
  opacity: 1;
}

.animacao {
  position: relative;
  transition: transform 0.5s ease, opacity 0.5s ease;
  opacity: 1;
}

.animacao.saindo-esquerda {
  transform: translateX(-120px) scale(0.93) rotate(-3deg);
  opacity: 0;
}

.animacao.saindo-direita {
  transform: translateX(120px) scale(0.93) rotate(3deg);
  opacity: 0;
}

.animacao.entrando-esquerda {
  transform: translateX(120px) scale(0.93) rotate(3deg);
  opacity: 0;
}

.animacao.entrando-direita {
  transform: translateX(-120px) scale(0.93) rotate(-3deg);
  opacity: 0;
}

.animacao.ativa {
  transform: translateX(0) scale(1) rotate(0);
  opacity: 1;
}

#texto1 {
  width: 100%;
  max-width: 700px;
  padding: 20px;
  box-sizing: border-box;
}

.descricao {
  max-width: 740px;
  margin-top: 15px;
  color: #e9e3d0;
  text-align: center;
  font-size: 23px;
  text-align: justify;
}

.escritas {
  padding: 11px;
  color: #e9e3d0;
  text-align: justify;
  font-size: 22px;
}

#caixatotal0 {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 40px;
}

/* Responsive */
@media screen and (max-width: 768px) {
  #fim {
    padding: 100px 20px;
  }

  #inicio {
    flex-direction: column;
    padding: 0 15px;
    height: auto;
  }

  .container {
    flex-direction: column;
    padding: 20px;
    height: auto;
    width: 100%;
  }

  #titletexto {
    font-size: 24px;
    padding: 10px;
  }

  #texto {
    font-size: 18px;
  }

  .descricao {
    font-size: 18px;
  }

  .escritas {
    font-size: 18px;
  }

  .foto {
    padding-top: 50px;
    width: 100%;
  }
}

@media (max-width: 900px) {
  .container {
    width: 100%;
    max-width: 100vw;
    gap: 10px;
    flex-direction: column;
  }

  #titletexto {
    font-size: 24px;
    padding: 10px;
  }

  #texto {
    font-size: 18px;
  }

  .descricao {
    font-size: 18px;
  }

  .escritas {
    font-size: 18px;
  }

  .foto {
    width: 100%;
  }

  #texto1 {
    width: 100%;
  }

  .imagem {
    border-radius: 10px;
    height: 400px;
    width: 350px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
    transition: transform 0.5s cubic-bezier(0.77,0,0.175,1), opacity 0.5s;
    opacity: 1;
  }
}