:root {
  --fonte: "Montserrat", "Krona One", "Open Sans", sans-serif;
  --gradiente: linear-gradient(180deg, #e8f5c8 0%, rgb(255, 255, 255) 80%);
  --gradiente-card: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.7) 0%,
    rgba(202, 212, 250, 0.3) 100%
  );
  --verde-claro: #e8f5c8;
  --azul-escuro: #4163da;
  --lilas-claro: #85a0ff;
  --lilas: #cad4fa;
  --lilas-escuro: #0c0421;
  --cinza-claro: #efefef;
  font-size: 62.5%;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: var(--fonte);
}

html {
  scroll-behavior: smooth;
}
html *:focus {
  outline-offset: 3px;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

body {
  font-family: var(--fonte);
}

.cabecalho {
  background: var(--verde-claro);
}

.cabecalho .cabecalho__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 1.6rem;
  padding: 4rem 12rem;
  white-space: nowrap;
}

.cabecalho__nav--logo {
  width: 17.2rem;
  height: 5.6rem;
}

.cabecalho__nav--lista {
  font-size: 1.5rem;
}

.cabecalho .cabecalho__nav .cabecalho__nav--line {
  width: 100%;
  border-bottom: 1px solid black;
}

.cabecalho .cabecalho__nav .cabecalho__nav--lista {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  align-items: center;
}

.cabecalho .cabecalho__nav .cabecalho__nav--lista a {
  color: #0c0421;
  text-decoration: none;
  font-weight: 400;
  line-height: 150%;
  margin: 0.5rem;
}

.cabecalho__lista-item {
  display: flex;
}

.submenu li a:hover {
  font-weight: 700 !important;
}

.cabecalho__lista-item .icone {
  transition: transform 0.5s ease;
  cursor: pointer;
  color: var(--lilas-escuro);
  font-size: 2.2rem;
  align-self: center;
}

.cabecalho__lista-item .icone.active {
  transform: rotate(180deg);
}

.cabecalho__nav--lista .submenu {
  display: none;
  position: absolute;
  border: 1px solid #ddd;
  font-size: 1rem;
  padding: 1.6rem;
  border-top: none;
  border-bottom-left-radius: 0.8rem;
  border-bottom-right-radius: 0.8rem;
  background: var(--cinza-claro);
  box-shadow: 4px 4px 8px 0 rgba(0, 0, 0, 0.1);
  z-index: 1;
  min-width: 16rem;
  border-radius: 0.4rem;
  margin-top: 4rem;
  font-size: 2.2rem;
}

.cabecalho__nav--lista .submenu .submenu {
  left: 100%;
  top: 10px;
}

.submenu li {
  display: flex;
  justify-content: center;
  align-items: center;
  align-content: center;
  text-align: center;
  border-bottom: 2px solid var(--lilas);
  margin: 0.8rem 0.8rem;
  min-width: 17rem;
  height: 4.5rem;
}

.submenu li:first-child {
  margin-top: unset;
}

.submenu li:last-child {
  margin-bottom: unset;
  border-bottom: none;
}

@media screen and (min-width: 768px) {
  .cabecalho__nav--logo {
    width: 27rem;
    height: 8.8rem;
  }

  .cabecalho__nav--lista {
    font-size: 2.2rem;
    cursor: pointer;
  }
}

.acordeao {
  width: 100%;
  margin-top: 4rem;
  margin-bottom: 4rem;
}

.acordeao-item {
  background-color: var(--azul-escuro);
  color: white;
  cursor: pointer;
  border: none;
  padding: 1.6rem;
  transition: background-color 0.5s ease;
  border-radius: 3.2rem;
  margin-bottom: 0.8rem;
  overflow: hidden;
}

.botao-acordeao {
  width: 100%;
  text-align: left;
  font-weight: 700;
  background: transparent;
  color: #fff;
  align-items: center;
  border: none;
  justify-content: space-between;
  display: flex;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 2.2rem;
}

.acordeao-item:hover {
  background: var(--lilas-claro);
  transition: 0.5s;
}

.conteudo-acordeao {
  max-height: 0;
  overflow: hidden;
  position: relative;
  color: #000;
  left: -1.6rem;
  bottom: -1.6rem;
  width: 112%;
  background-color: var(--cinza-claro);
  padding: 0 1.8rem;
  transition: max-height 0.5s ease;
  border-bottom-left-radius: 3.2rem;
  border-bottom-right-radius: 3.2rem;
  z-index: 0;
}

.conteudo-acordeao div {
  padding: 1.6rem;
  width: 95%;
  font-size: 1.5rem;
}

.icone {
  transition: transform 0.5s ease;
  cursor: pointer;
  font-size: 3.2rem;
  outline: none;
}

.botao-acordeao[aria-expanded="true"] .icone {
  transform: rotate(180deg);
}

.conteudo-acordeao.expandido {
  max-height: 25rem;
}

@media screen and (min-width: 1340px) {
  .cabecalho .cabecalho__nav {
    flex-direction: column;
  }

  .botao-acordeao {
    font-size: 2.4rem;
    line-height: 3.6rem;
  }

  .cabecalho .cabecalho__nav .cabecalho__nav--lista {
    gap: 4rem;
  }

  .conteudo-acordeao div {
    font-size: 2.2rem;
  }
}
