@import url('https://fonts.googleapis.com/css2?family=Poppins&family=Roboto&display=swap');

* {
  margin: 0;
  padding: 0;
  font-weight: 300;
}

html{
  /* https://developer.mozilla.org/en-US/docs/Web/CSS/gradient/linear-gradient() */
  background: linear-gradient(#67c2e9, #4b5afa);
  /* min-height: 100%; */
}

body {  
  font-family: "Poppins", sans-serif;
}

main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.faq {
  width: 65%;  
  min-height: 500px;
  box-shadow: 0px 25px 50px #0000004d; /*https://developer.mozilla.org/en-US/docs/Web/CSS/box-shadow*/
  background-color: #ffffff;
  display: flex;
  align-items: center;
  border-radius: 25px;
}

.faq .ilustracao {
  position: relative;
  left: 0px;
  width: 50%;
  margin: 50px 0;
  border-radius: 25px;
}

.faq .conteudo {
  width: 40%;
  padding-bottom: 20px;
}

.faq .conteudo h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 30px;
  margin-block-end: 15px;
  margin-block-start: auto;
}


.faq .items { 
  list-style-type: none;
}

.faq .items .item {
  cursor: pointer;
  background-image: url(../imagens/icone-seta-pra-baixo.png);
  background-repeat: no-repeat;
  background-position: top 8px right 0;
  background-size: 12px;
  border-bottom: 1px solid #ccc;
  margin: 10px 0;
}

/* pseudo classes */
.faq .items .item:last-child {
  border-bottom: none;
}

.faq .items .item .pergunta {
  padding-bottom: 15px;
  transition: 0.2s ease;
  font-size: 18px;
  width: 90%;
}

.item .pergunta:hover {
  color: #e98615;
}

.resposta {
  display: none;
  padding-bottom: 15px;
}

/* ESTILOS DE ITEM DE FAQ ATIVO */
.faq .items .item.ativo h2 {
  font-weight: 700;
}

.faq .items .item.ativo .resposta {
  display: block;
}

.faq .items .item.ativo {
  background-image: url(../imagens/icone-seta-pra-cima.png);
}


/* RESPONSIVO */
@media (max-width: 1140px) {
  .faq {
    flex-direction: column;
    width: 90%;
  }

  .faq .conteudo {
    width: 100%;
  }

  .faq .conteudo h1 {
    font-size: 24px;
    text-align: center;
  }

  .faq .items {
    width: 80%;
    margin: auto;
  }

  .faq .items .item .pergunta { 
    font-size: 16px;
  }

  .faq .ilustracao {
    width: 40%;
    left: 0;
    margin: 30px 0;
  }
}

@media (max-width: 425px) {
  .faq {
    height: 540px;
  }
  
  /* .faq .items {
    overflow-y: hidden;
    max-height: 100%;
  }   */
}