/* step-section.css */

.step-section {
  /* mesmo gradiente da sessão “_Tudo em apenas um lugar.” */
  background: radial-gradient(ellipse at center, #1AA53F 0%, #028036 100%);
  padding: 60px 0;
}

.step-headline {
  text-align: center;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 80px;
}

.step-wrapper {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;    /* faz os passos começarem pelo topo */
  padding: 0 10%;
}

/* LINHA ENTRE OS PASSOS */
.step-wrapper::before {
  content: '';
  position: absolute;
  top: 80px;                   /* 60px (diâmetro do círculo) + 20px (margin-bottom do circle-number) */
  left: 22%;                   /* 10% (padding) + metade da largura do passo (12%) */
  right: 22%;                  /* mesma margem do lado direito */
  height: 2px;
  background-color: #fff;
  z-index: 1;
}

.step {
  position: relative;
  width: 30%;
  text-align: center;
  z-index: 2; /* acima da linha */
}

/* CÍRCULOS */
.circle-number {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;         /* 20px de espaço abaixo do círculo */
  border: 2px solid #fff;
  border-radius: 50%;
  line-height: 60px;
  font-size: 24px;
  font-weight: bold;
  color: #fff;
  position: relative;
  z-index: 2;
  background: transparent;
}

/* 2) Bolinha (dot) centralizada verticalmente na linha */
.circle-line {
  position: absolute;
  /* 60px (diâmetro do círculo) + 20px (margin-bottom do .circle-number) */
  /* +1px (metade da altura da linha) => centraliza no meio da linha */
  top: calc(60px + 20px + 1px);
  left: 50%;
  width: 12px;
  height: 12px;
  background-color: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

/* EMPURRA O TÍTULO PARA FICAR ABAIXO DA LINHA */
.step-title {
  color: #fff;           /* cor branca */
  margin-top: 60px;      /* aumenta o espaço entre a bolinha e o título */
}

.step-text {
  color: #fff;
  font-size: 15px;
  line-height: 1.4em;
  max-width: 320px;
  margin: 0 auto;
}

.step-headline-link {
  color: #fff;
  text-decoration: none;
}

.step-headline-link:hover {
  text-decoration: underline;
}

.step-headline-sub {
  text-align: center;
  color: #fff;
  font-size: 16px;
  margin-top: -60px;
  margin-bottom: 60px;
}

.step-cta {
  margin-top: 60px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  color: #fff;
  font-size: 16px;
  line-height: 1.5;
}

.cta-button {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  background-color: #fff;
  color: #028036;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #eee;
}

.step-link {
  display: block;
  color: #fff;
  text-align: center;
  font-size: 16px;
  text-decoration: none;
  margin-top: -40px;
  margin-bottom: 60px;
  line-height: 1.6;
  transition: all 0.3s ease;
}

.step-link:hover {
  text-decoration: underline;
  opacity: 0.9;
}


@media screen and (min-width: 1025px) {
  .step-wrapper {
    display: flex;
    justify-content: space-between;
    padding: 0; /* sem padding lateral no wrapper */
  }

  .step {
    width: 33.33%;
    padding: 0 30px; /* espaçamento interno em todos os blocos */
    box-sizing: border-box; /* garante que o padding não estoure a largura */
  }

  .step-title {
    margin-bottom: 16px;
  }

  .step-text {
    font-size: 14px;
    line-height: 1.6em;
    text-align: justify;
  }

  .step-wrapper::before {
    left: calc(10% + 50px);
    right: calc(10% + 50px);
  }
}

.step {
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.step-wrapper {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 60px !important; /* ou o valor que quiser de espaço ENTRE os blocos */
}
