/* Quais são os nossos serviços */
.service_container {
  margin-top: 3rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  width: 100%;
  align-items: center;
  justify-content: center;
}

.service_group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: calc((100% - 5rem) / 3.5);
}

.special_group {
  width: calc(100% / 7);
}

.top_text {
  text-align: left;
  vertical-align: bottom;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-left: 20%;
  height: 150px;
}

.bot_text {
  padding-top: 45px;
  vertical-align: top;
  padding-right: 20%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 200px;
}

.special_text {
  padding-left: 35%;
}

.bot_text h3,
.bot_text p {
  text-align: right !important;
}

.top_text,
.bot_text {
  text-wrap: wrap;
}

/* .top_text h3,
.bot_text h3 {

} */

.top_text p,
.bot_text p {
  padding: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.bold_text {
  font-size: 1rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--color-dominant);
  font-weight: 600;
}

.icons {
  display: flex;
  justify-content: space-between;
  height: 100px;
}

.icon {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.icon img {
  width: 100px;
  height: auto;
}

.icon::before {
  content: "";
  position: absolute;
  width: 2px;
  height: 157px;
  background-color: #b49e76;
  top: -157px;
}

.icon.bottom-line::before {
  top: auto;
  bottom: -70px;
  height: 70px;
}

.icon::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: #b49e76;
  border-radius: 50%;
  top: -161px;
  left: 50%;
  transform: translateX(-50%);
}

.icon.bottom-line::after {
  top: auto;
  bottom: -76px;
}

.top_text,
.bot_text,
.icon {
  opacity: 0;
}

.top_text.anim,
.icon.anim {
  animation: fadeInFromTop 0.5s ease-out forwards;
}

.bot_text.anim,
.bottom-line.anim {
  animation: fadeInFromBottom 0.5s ease-out forwards;
}

@media (max-width: 1199px) {
  .service_group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: calc((100% - 5rem) / 2);
  }

  .special_group {
    width: calc(100% / 4);
  }
}

@media (max-width: 767px) {
  .service_group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 80%;
  }

  .special_group {
    width: 50%;
  }

  .top_text {
    padding-left: 20%;
  }

  .bot_text {
    padding-right: 20%;
  }

  .special_text {
    padding-left: 32%;
  }
}

@media (max-width: 400px) {
  .top_text p, .bot_text p {
    font-size: 0.80rem;
  }
}

@keyframes fadeInFromTop {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInFromBottom {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Legado */

.legado {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 100%;
}

.legado_row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.legado_row > * {
  box-sizing: border-box;
  flex-shrink: 0;
}

.big_circle {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
}

.circle {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #dad2c0;
  width: 75%;
  aspect-ratio: 1 / 1;
}

.circle p {
  text-transform: uppercase;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 550;
}

.legado_text_box {
  display: flex;
  align-items: flex-start;
  align-self: flex-start;
  justify-content: center;
  text-align: center;
}

.legado_text {
  padding: 0 1rem;
  color: #65686a;
  font-size: 1rem;
  text-align: center;
}

.big_circle,
.legado_text_box {
  flex: 0 0 13%;
}

.big_size1,
.big_size2 {
  flex: 0 0 20%;
}

.legado_linha_estilo {
  flex: 0 0 4%;
}

.size1 {
  background-color: #b5aa94;
}

.size2 {
  background-color: #434343;
}

@media (min-width: 992px) and (max-width: 1199px) {
  .circle p {
    font-size: 1.1rem;
  }

  .legado_text {
    font-size: 1rem;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .circle p {
    font-size: 0.8rem;
  }

  .legado_text {
    font-size: 0.75rem;
  }
}

@media (max-width: 767px) {
  .legado {
    flex-direction: row;
  }

  .legado_row {
    flex-direction: column;
  }

  .legado_text_box {
    width: 50%;
    align-items: center;
    justify-content: flex-start;
    aspect-ratio: 1 / 1;
  }

  .legado_text {
    padding: 0;
    color: #65686a;
    font-size: 1rem;
    text-align: left;
  }

  .big_circle {
    width: 50%;
    aspect-ratio: 1 / 1;
  }

  .big_size1 {
    width: 70%;
  }

  .big_size2 {
    width: 60%;
  }

  .circle {
    width: 70%;
    aspect-ratio: 1 / 1;
  }

  .circle p {
    font-size: 0.8rem;
  }

  .legado_text {
    font-size: 0.75rem;
  }
}

@media (max-width: 400px) {
  .circle p {
    font-size: 0.70rem;
  }
}

.connector {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: 0;
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

/* 404 */
.page404 {
  height: 100%;
  margin: 0;
  margin-top: 5px;
  overflow: hidden;
}
.page404 .main-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page404 .footer {
  margin: 0;
}

.page404__section {
  position: relative;
  padding: calc(
      var(--nav-pad-top) + var(--nav-pad-bottom) + var(--nav-logo-h) + 2 *
        var(--pad-unity)
    )
    0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-content: center;
  align-items: center;
  flex-wrap: nowrap;
}
.page404__section h1,
.page404__section p {
  text-align: center;
}
