* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Alegreya Sans", serif;
  font-weight: 400;
  font-style: normal;
  font-size: 20px;
}

html,
body {
  height: 100%;

}

body {
  display: grid;
  grid-template-rows: 120px 1fr 70px;
  background: url('images/bck.jpg') no-repeat center center fixed;
  background-size: cover;
  color: #fff;
  width: 100%;
}

header,
footer {
  flex: 0 0 auto;
  width: 100%;
  text-align: center;
  background-color: rgba(65, 33, 114, 0.7);
  color: #fff;
  padding: 10px 0;
  left: 0;
}

header {
  top: 0px;
}

footer {
  bottom: 0px;
  padding: 8px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.header-container {
  padding-left: 150px;
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  width: 90%;
  max-width: 1000px;
  margin-inline: auto;
}

.logotipo {
  position: absolute;
  width: 150px;
  height: auto;
  top: 10px;
  left: 10px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

.header-content {
  flex: 1;
  justify-content: center;
  align-self: center;
}

.header-content h1 {
  font-family: "Alegreya Sans SC", serif;
  font-size: 30px;
  letter-spacing: 5%;
}

nav ul {
  display: flex;
  justify-content: space-around;
  gap: 10px;
  flex-wrap: wrap;
  list-style: none;
}

nav {
  margin-top: 10px;
  text-align: center;
}

nav a {
  display: block;
  text-decoration: none;
  color: #fff;
  /* margin: 10px 15px; */
  font-size: 18px;
  min-width: 100px;
  border: #fff 1px solid;
  border-radius: 5px;
  padding: 5px;

}

nav a:hover {
  background-color: rgba(65, 33, 114, 1);
}


main {
  flex: 1 0 auto;
  overflow-y: auto;
  padding: 0px 20px 0px 20px;

  /* Espaçamento para evitar sobreposição */
}

main .conteudo {
  padding: 70px 30px 30px 30px;
  color: rgb(50, 30, 80);
  background-color: rgba(230, 220, 245, 0.5);
  max-width: 1000px;
  margin-inline: auto;
  min-height: 100%;
}

main .conteudo p {
  margin-bottom: 10px;

}

main .conteudo .titulo {
  padding-left: 200px;
  font-family: "Alegreya Sans SC", serif;
  font-size: 30px;
  margin-bottom: 30px;

}

main .conteudo .subtitulo {
  padding-left: 200px;
  font-family: "Alegreya Sans SC", serif;
  font-size: 20px;
  font-style: italic;
  margin-top: -30px;
  margin-bottom: 30px;

}

main .conteudo h1 {
  font-family: 'Alegreya Sans SC', serif;
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 5%;
}

main .conteudo .ilustracao {
  margin: 8px;
  width: 200px;
  height: auto;
  float: right;
}

main .servico {
  margin-top: 20px;
  margin-bottom: 20px;
  padding: 10px;
  border-top: 2px solid #fff;
}

main .servico p {
  font-size: 18px;
  font-style: italic;
  margin-bottom: 5px;
}

main .servico h1 {
  font-family: 'Alegreya Sans SC', serif;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 5%;
}

footer .contatos {
  display: flex;
  width: auto;
  flex-direction: row;
  font-size: 14px;
  margin-inline: auto;
  justify-content: center;
  align-items: center;
  gap: 20px;
  /* border: red 1px solid; */

}

.whatsapp {
  font-size: 14px;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: center;
  text-align: left;
}

.whatsapp img {
  width: 30px;
  height: 30px;
  margin-right: 8px;
}

.insta {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: center;
  text-align: left;
}

.insta img {
  width: 30px;
  height: 30px;
  margin-right: 8px;
}

.insta a {
  font-size: 14px;
  color: #fff;
  text-decoration: none;
}


/* ---------------- inicio media query ------------ */

@media (max-width: 768px) {
  body {
    grid-template-rows: 130px 1fr 70px;
  }

  header {
    padding: 5px;
  }

  .header-content h1 {
    font-size: 30px;
  }

  nav a {
    /* margin-top: 0px; */
    font-size: 15px;
    /* line-height: 30px; */
  }

  .logotipo {
    position: fixed;
    width: 90px;
    height: auto;
    top: 20px;
    left: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
  }

  .header-container {
    padding-left: 100px;
    width: 100%;
    max-width: 100%;
  }

  main .conteudo {
    padding: 30px 30px 30px 30px;
    color: rgb(50, 30, 80);
    background-color: rgba(230, 220, 245, 0.8);
  }

  main .conteudo .ilustracao {
    width: 120px;
    height: auto;

  }

  main .conteudo p {
    font-size: 17px;
  }

  main .conteudo .titulo {
    padding-left: 0px;
    margin-bottom: 30px;
  }

  main .conteudo .subtitulo {
    padding-left: 0px;
    margin-top: -30px;
    margin-bottom: 20px;
  }

  main .servico p {
    line-height: 18px;
  }

  .whatsapp {
    font-size: 13px;
  }

  .insta a {
    font-size: 13px;
  }
}