* {
  box-sizing: border-box;
}

:root {
  --primary: #65c3c8;
  --secondary: #ef9fbc;
  --accent: #eeaf3a;
  --neutral: #291334;
  --base: #faf7f5;
  --info: #3abff8;
  --success: #36d399;
  --warning: #fbbd23;
  --error: #f87272;
}

body {
  background-color: var(--base);
}

header {
  padding-top: 12.5rem;
}

.boxprincipal {
  margin-top: 4.25rem;
  padding: 0 1.5rem;
}

.titulos {
  color: var(--neutral);
  font-family: "Montserrat", sans-serif;
  font-size: 2.0625rem;
  padding-bottom: 2rem;
  max-width: 45rem;
  margin: 0 auto;
}

.slogan {
  font-weight: 700;
  line-height: 3.125rem;
}

.pergunta {
  font-weight: 500;
}

.boxProdutos,
.boxServicos {
  display: flex;
  flex-direction: column;
  font-family: "Montserrat", sans-serif;
  font-style: normal;
  color: var(--neutral);
  text-align: center;
  margin-bottom: 1.25rem;
  padding: 0 1rem;
}

.boxServicos {
  margin-top: 1rem;
}

.boxServicos {
  margin-top: 2rem;
}

.boxProdutos h2,
.boxServicos h2 {
  font-size: 1.5625rem;
  font-weight: 700;
}

.boxProdutos h3,
.boxServicos h3 {
  font-size: 1.125rem;
  font-weight: 500;
}

.boxProdutos ul,
.boxServicos ul {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
}

.boxProdutos li,
.boxServicos li {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  width: 7.9375rem;
  height: 4.33369rem;
  border-radius: 1.5rem;
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
  margin: 0.8rem;
}

.boxProdutos li:hover,
.boxServicos li:hover {
  transform: scale(1.1);
  box-shadow: 11px 10px 31px -8px rgba(0, 0, 0, 0.75);
  -webkit-box-shadow: 11px 10px 31px -8px rgba(0, 0, 0, 0.75);
  -moz-box-shadow: 11px 10px 31px -8px rgba(0, 0, 0, 0.75);
}

.boxProdutos li:nth-child(-n + 2),
.boxServicos li:nth-child(-n + 2) {
  background-color: var(--secondary);
}

.boxProdutos li:nth-child(3),
.boxProdutos li:nth-child(4),
.boxServicos li:nth-child(3),
.boxServicos li:nth-child(4) {
  background-color: var(--primary);
}

.boxProdutos a,
.boxServicos a {
  font-weight: 700;
  text-decoration: none;
  color: var(--neutral);
}

.boxProdutos a {
  font-size: 0.9375rem;
}

.boxServicos a {
  font-size: 0.8125rem;
}

.boxProdutos {
  height: auto;
}

.boxServicos {
  height: auto;
}

.boxServicos li:nth-last-child(-n + 3) {
  background-color: var(--accent);
}

.msgbusca {
  font-family: "Roboto", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--error);
}

@media (max-width: 768px) {
  .titulos h1 {
    font-size: 1.6rem;
  }

  .titulos h2 {
    font-size: 1.2rem;
  }

  .boxProdutos,
  .boxServicos {
    margin-bottom: 1.25rem;
    padding: 0;
  }

  .imgPgInicial img {
    max-width: 80%;
    height: auto;
  }
}

@media (max-width: 576px) {
  .titulos h1 {
    font-size: 1.3rem;
  }

  .titulos h2 {
    font-size: 1rem;
  }

  .boxProdutos,
  .boxServicos {
    margin-bottom: 1rem;
    padding: 0;
  }

  .imgPgInicial img {
    max-width: 100%;
  }
}
