.passos {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-5);
  counter-reset: passo;
}

.passo {
  position: relative;
  padding-left: 56px;
  counter-increment: passo;
}

.passo::before {
  content: counter(passo);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border-strong);
  background: var(--color-bg);
  font-weight: 700;
  font-size: var(--text-md);
  line-height: 37px;
  text-align: center;
}

.passo:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 19.25px;
  top: 46px;
  bottom: calc(-1 * var(--space-5) + 6px);
  width: 1.5px;
  background: var(--color-border-control);
}

.passo .ico {
  width: 22px;
  height: 22px;
  color: var(--color-link);
  margin-bottom: var(--space-2);
}

.passo h3 {
  margin-bottom: var(--space-1);
}

.passo p {
  color: var(--color-text-muted);
  max-width: 40ch;
}

.visita {
  margin-top: var(--space-6);
  padding: var(--space-4) var(--space-5);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  max-width: var(--measure);
}

.visita strong {
  display: block;
  margin-bottom: var(--space-1);
}

.visita p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

@media (min-width: 768px) {
  .passos {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
  }

  .passo {
    padding-left: 0;
    padding-top: 56px;
  }

  .passo:not(:last-child)::after {
    left: 52px;
    right: calc(-1 * var(--space-6) + 12px);
    top: 19.25px;
    bottom: auto;
    width: auto;
    height: 1.5px;
  }
}
