.pagina-atividades {
  background: #f4efe1;
}

.menu a[aria-current="page"] {
  color: #ffffff;
  background: var(--azul);
}

.atividades-hero {
  position: relative;
  overflow: hidden;
  padding: 82px 0 76px;
  color: #ffffff;
  background:
    radial-gradient(circle at 86% 22%, rgba(255, 201, 40, .28), transparent 25%),
    radial-gradient(circle at 12% 88%, rgba(103, 181, 31, .22), transparent 24%),
    linear-gradient(135deg, #052e59, #0876d8);
}

.atividades-hero-conteudo {
  max-width: 900px;
  text-align: center;
}

.link-voltar-atividades {
  display: inline-flex;
  margin-bottom: 26px;
  color: #dceeff;
  font-weight: 900;
  text-decoration: none;
}

.link-voltar-atividades:hover,
.link-voltar-atividades:focus-visible {
  color: var(--amarelo);
}

.atividades-hero h1 {
  margin: 8px 0 20px;
  color: #ffffff;
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  line-height: .96;
}

.atividades-hero-conteudo > p:not(.rotulo) {
  max-width: 760px;
  margin: 0 auto;
  color: #e7f3ff;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.65;
}

.resumo-materiais {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.resumo-materiais span {
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  color: #e6f3ff;
  background: rgba(3, 36, 74, .28);
  font-size: .9rem;
}

.resumo-materiais strong {
  color: var(--amarelo);
}

.secao-materiais {
  background: #f4efe1;
}

.grade-materias {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.quadro-materia {
  min-width: 0;
  min-height: 620px;
  padding: 26px;
  color: #f6f3df;
  border: 12px solid #85552f;
  border-radius: 14px;
  background: #153b32;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, .08),
    inset 0 0 36px rgba(0, 0, 0, .22),
    0 18px 34px rgba(62, 45, 24, .2);
}

.quadro-geografia {
  background: #183d3a;
}

.quadro-historia {
  background: #27392f;
}

.quadro-cabecalho {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-bottom: 18px;
  border-bottom: 2px dashed rgba(255, 255, 255, .34);
}

.simbolo-materia {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 2px solid rgba(255, 255, 255, .72);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, .08);
  font-size: 1.8rem;
}

.quadro-cabecalho p {
  margin: 0 0 3px;
  color: #d4e7d8;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.quadro-cabecalho h2 {
  margin: 0;
  color: #fffef2;
  font: 900 clamp(1.45rem, 2.5vw, 2rem)/1.05 "Segoe Print", "Comic Sans MS", cursive;
}

.quadro-resumo {
  min-height: 78px;
  margin: 18px 0;
  color: #dbe8d9;
  line-height: 1.55;
}

.lista-downloads {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lista-downloads a,
.arquivo-reservado {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 70px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .23);
  border-radius: 12px;
}

.lista-downloads a {
  color: #ffffff;
  background: rgba(255, 255, 255, .08);
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.lista-downloads a:hover,
.lista-downloads a:focus-visible {
  border-color: var(--amarelo);
  background: rgba(255, 255, 255, .15);
  transform: translateY(-2px);
}

.arquivo-tipo {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 9px;
  color: #ffffff;
  background: #d8473d;
  font-size: .7rem;
  font-weight: 1000;
  letter-spacing: .04em;
}

.arquivo-nome {
  min-width: 0;
}

.arquivo-nome strong,
.arquivo-nome small {
  display: block;
}

.arquivo-nome strong {
  overflow-wrap: anywhere;
  font-size: .9rem;
}

.arquivo-nome small {
  margin-top: 3px;
  color: #c9ddcf;
  font-size: .7rem;
}

.icone-download {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #17301f;
  background: var(--amarelo);
  font-size: 1.25rem;
  font-weight: 1000;
}

.materiais-em-preparacao {
  padding: 22px 16px;
  border: 2px dashed rgba(255, 255, 255, .32);
  border-radius: 14px;
  text-align: center;
}

.materiais-em-preparacao > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
  border-radius: 50%;
  color: #17301f;
  background: var(--amarelo);
  font-size: 1.5rem;
  font-weight: 900;
}

.materiais-em-preparacao strong {
  display: block;
  color: #fffef2;
}

.materiais-em-preparacao p {
  margin: 7px 0 0;
  color: #d4e1d5;
  font-size: .82rem;
  line-height: 1.45;
}

.lista-reservada {
  margin-top: 14px;
}

.arquivo-reservado {
  border-style: dashed;
  color: rgba(255, 255, 255, .64);
  background: rgba(255, 255, 255, .035);
}

.arquivo-reservado .arquivo-tipo {
  opacity: .45;
  background: #7d8e84;
}

.arquivo-reservado .arquivo-nome small {
  color: rgba(255, 255, 255, .48);
}

.aviso-educadores {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 920px;
  margin: 38px auto 0;
  padding: 20px 24px;
  border: 1px solid #d9bf7f;
  border-radius: 18px;
  color: #5a461c;
  background: #fff5d4;
}

.aviso-educadores > span {
  font-size: 1.8rem;
}

.aviso-educadores p {
  margin: 0;
}

@media (max-width: 1050px) {
  .grade-materias {
    grid-template-columns: 1fr;
  }

  .quadro-materia {
    min-height: 0;
  }

  .quadro-resumo {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .atividades-hero {
    padding: 62px 0 58px;
  }

  .quadro-materia {
    padding: 18px;
    border-width: 8px;
  }

  .aviso-educadores {
    align-items: flex-start;
  }
}

@media (max-width: 470px) {
  .resumo-materiais {
    align-items: stretch;
    flex-direction: column;
  }

  .quadro-cabecalho {
    align-items: flex-start;
  }

  .simbolo-materia {
    width: 50px;
    height: 50px;
    font-size: 1.45rem;
  }

  .lista-downloads a,
  .arquivo-reservado {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .icone-download {
    grid-column: 2;
    justify-self: start;
  }
}
