:root {
  --clr-primary: #000117ff;
  --clr-secondary: #232885ff;
  --clr-accent: #a0ddfeff;
  --clr-neutral: #f7fdfe;

  --clr-detail: #c1d4df;
  --vh: 1vh;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  text-decoration: none;
}

li {
  list-style: none;
}

html {
  scroll-behavior: smooth;
}

hr {
  border: 0;
  height: 2px;
  background-color: var(--clr-detail);
  margin-inline: auto;
  transition: 1000ms 500ms;
}

body {
  background-color: var(--clr-neutral);
  width: 100%;
  color: var(--clr-primary);
  font-family: 'Roboto';
  font-size: 1rem;
}

.place-on-center {
  display: grid;
  place-items: center;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 2.5rem;
  padding: 0.5rem;
  z-index: 1;
}

header #logo-header-basic {
  display: none;
}

header #logo-header-white {
  display: block;
}

header.on-scroll {
  background-color: var(--clr-neutral);
  border-bottom: 0.1rem solid var(--clr-primary);
  color: var(--clr-primary);
}

header.on-scroll #logo-header-basic {
  display: block;
}

header.on-scroll #logo-header-white {
  display: none;
}

header.hidden {
  transition: 500ms;
  top: -100%;
}

header img {
  width: auto;
  height: 100%;
}

nav {
  width: min(95%, 70rem);
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

header ul {
  display: flex;
  gap: 1rem;
}

section:not(#banner) {
  padding-top: 1.875rem;
  padding-bottom: 1.875rem;
  width: min(90%, 70rem);
  margin-inline: auto;
}

#banner {
  --banner-sz-content: min(35rem, 95%);
  --banner-font-weight: 600;
  --banner-color: var(--clr-neutral);
  --banner-height: calc(var(--vh, 1vh) * 97);

  width: 100%;
  height: var(--banner-height);
  overflow: hidden;
}

#banner #banner-fundo {
  width: 100%;
  height: var(--banner-height);
  object-fit: cover;
  object-position: center;
}

#banner .content {
  filter: drop-shadow(0 0 13px #000000ae);
  position: absolute;
  inset: 0;
  height: var(--banner-height);
  width: min(70rem, 90%);
  margin-inline: auto;
  gap: 0.75rem;
  color: var(--banner-color);
  font-weight: var(--banner-font-weight);
}

#banner .content h1 {
  font-family: 'Roboto Condensed';
  text-transform: uppercase;
  font-size: min(6rem, 25vw);
  line-height: 0.8;
  text-align: center;
}

#banner .content p {
  width: var(--banner-sz-content);
  font-weight: var(--banner-font-weight);
}

.content.place-on-bottom {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding-bottom: 2rem;
  font-size: 1.3rem;
}

.line {
  width: calc(var(--banner-sz-content) / 2.5);
  background-color: var(--banner-color);
  height: 1.5px;
}

.reference-link {
  width: -moz-fit-content;
  width: fit-content;
  border: 0;
  text-align: start;
  background-color: transparent;
  font-size: 1.4rem;
  cursor: pointer;
  font-family: 'Roboto Condensed';
  text-transform: uppercase;
  color: var(--banner-color);
  font-weight: var(--banner-font-weight);
  line-height: 100%;
}

.flex-column-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.section-title {
  font-size: 2rem;
  color: var(--clr-secondary);
  line-height: 2rem;
}

.section-description {
  font-size: 1.2rem;
  width: min(95%, 60rem);
  font-weight: 500;
  line-height: 100%;
}

#trabalhos {
  margin-top: 0.75rem;
}

.itens-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.trabalhos-itens {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
}

.icon-wrapper {
  width: 5rem;
  height: 5rem;
  background-color: var(--clr-accent);
  border-radius: 50%;
  outline: 0.15rem solid var(--clr-secondary);
  padding: 1rem;
}

.itens-values {
  font-size: 1rem;
  font-weight: bold;
}

.icon {
  width: 100%;
  height: 100%;
  fill: var(--clr-secondary);
}

#quote {
  font-size: 1.5em;
  font-weight: 500;
}

#autor {
  font-size: 1.2rem;
}

#posts-wrapper {
  width: min(100%, 60rem);
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(3, 1fr);
}

.post img {
  width: 100%;
  object-fit: cover;
  transition: 500ms;
}

.post {
  aspect-ratio: 1 / 1;
  border-radius: 0.3rem;
  overflow: hidden;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
}

.post:hover {
  background-color: var(--clr-secondary);
}

.post:hover img {
  transform: scale(1.05);
}

.button {
  font-family: 'Roboto Condensed';
  color: var(--clr-accent);
  text-transform: uppercase;
  padding: 0.255rem 0.5rem;
  border-radius: 0.3rem;
  background-color: var(--clr-secondary);
  font-size: 1rem;
  border: 0;
  cursor: pointer;
  transition: 300ms ease-in-out;
}

.button:hover {
  box-shadow: 0 0 0.5rem var(--clr-accent);
}

.topic {
  font-weight: 700;
  font-size: 1.35rem;
}

.contatos-wrapper {
  width: 100%;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(25ch, 1fr));
  text-align: left;
}

.contato .title {
  font-size: 1.25rem;
}

.contato * {
  overflow: hidden;
  text-overflow: ellipsis;
}

.contato .icon {
  min-width: 1rem;
  max-width: 1rem;
  fill: var(--clr-primary);
}

.contato .row {
  margin-top: 0.5rem;
  display: flex;
  fill: var(--clr-primary);
  gap: 0.3rem;
  color: var(--clr-primary);
}

.contato a {
  color: var(--clr-primary);
  font-weight: 500;
  cursor: pointer;
}

#logo-footer {
  width: 7rem;
}

@media screen and (max-width: 75rem) {
  .itens-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 35rem) {
  .itens-wrapper {
    grid-template-columns: 1fr;
  }
}
