.servicos {
  padding-top: 50px;
}

.servicos-grid {
  max-width: 1200px;
  display: grid;
  margin-left: auto;
  margin-right: auto;
  grid-template-columns: 1fr 1fr 1fr;
  justify-content: center;
}

.servicos-grid a {
  height: 400px;
  max-width: 400px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.3s;
}
.servicos-grid a h2 {
  transition: 0.3s;
}

.servicos-grid a:hover h2 {
  opacity: 0.9;
}

.servicos-grid a:hover .arrow {
  animation: movearrow 3s ease-in infinite;
}

.servicos-grid a:hover {
  box-shadow: 10px 0 0 0 #fc0202 inset;
}

@keyframes movearrow {
  0% {
    transform: translate(0);
  }
  25% {
    transform: translate(-5px);
  }
  50% {
    transform: translate(0);
  }
  75% {
    transform: translate(5px);
  }
  100% {
    transform: translate(0);
  }
}

.servicos-grid h2 {
  text-align: center;
  font-size: 2.25rem;
  line-height: 1.1em;
  padding-left: 10px;
  padding-right: 10px;
  font-family: "Fira Sans Condensed", sans-serif;
  opacity: 0.5;
  color: #fefefe;
}

.arrow {
  position: absolute;
  right: 20px;
  bottom: 20px;
  max-width: 30px;
}

.servicos-content {
  display: flex;
  grid-gap: 10px;
  bottom: 10px;
  justify-items: end;
}

.servicos-grid a:nth-child(1) {
  background: url(/img/items.webp) no-repeat center center;
  background-size: cover;
}

.servicos-grid a:nth-child(2) {
  background: url(/img/servicos.webp) no-repeat center center;
  background-size: cover;
}

.servicos-grid a:nth-child(3) {
  background: url(/img/estoque.webp) no-repeat center center;
  background-size: cover;
}

@media only screen and (min-width: 826px) and (max-width: 1100px) {
  .servicos-grid {
    grid-template-columns: 1fr 1fr;
    max-width: 1000px;
  }

  .servicos-grid a {
    max-width: 500px;
    border-left: 10px solid #fc0202;
  }

  .servicos-grid h2 {
    opacity: 1;
  }
}

@media only screen and (max-width: 825px) {
  .servicos-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }

  .servicos-grid a {
    max-width: 500px;
    border-left: 10px solid #fc0202;
    margin-top: 40px;
  }

  .servicos-grid h2 {
    opacity: 1;
  }
}
