/* ============================================ */
/* SEZIONE: COME FUNZIONA - STEP BY STEP         */
/* ============================================ */

.come-funziona-section {
  background: #cecece3b;
  padding: 100px 20px;
  font-family: 'Inter', sans-serif;
  position: relative;
}

.come-funziona-section .container {
  max-width: 1100px;
  margin: 0 auto;
}

/* ============================================ */
/* CABEÇALHO                                    */
/* ============================================ */

.come-funziona-header {
  text-align: center;
  margin-bottom: 60px;
}

.come-funziona-tag {
  display: inline-block;
  font-size: 15px;
  font-weight: 800;
  color:  #EB0028 ;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding: 5px 12px;
  border-radius: 4px;
}

.come-funziona-header h2 {
  font-size: 38px;
  font-weight: 600;
  color: #000000;
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.come-funziona-subtitle {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.7;
  margin: 0;
}

/* ============================================ */
/* STEPS GRID - LADO A LADO                     */
/* ============================================ */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 60px;
  position: relative;
}

/* ============================================ */
/* STEP CARD                                    */
/* ============================================ */

.step-card {
  background: #ffffff;
  border: 1px solid #edf2f7;
  border-radius: 12px;
  padding: 28px 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background:  #0033A1 ;
  border-radius: 0 3px 3px 0;
  transition: height 0.3s ease;
}

.step-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.step-card:hover::before {
  height: 100%;
}

/* Ícone do step */
.step-icon {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.step-icon i {
  font-size: 26px;
  color:  #0033A1;
  transition: transform 0.3s ease;
}

.step-card:hover .step-icon i {
  transform: scale(1.15);
}

/* Título */
.step-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #000000;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
  line-height: 1.3;
}

/* Descrição */
.step-card p {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.5;
  margin: 0;
}

/* ============================================ */
/* FOOTER - CTA                                 */
/* ============================================ */

.come-funziona-footer {
  text-align: center;
  padding-top: 20px;
}

/* Botão CTA */
.btn-consulenza {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background:  #EB0028;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 25px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  letter-spacing: 0.3px;
}

.btn-consulenza i {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.btn-consulenza:hover {
  background:  #EB0028;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(229, 62, 62, 0.25);
}

.btn-consulenza:hover i {
  transform: scale(1.15);
}

/* ============================================ */
/* RESPONSIVO - TABLET                          */
/* ============================================ */

@media (max-width: 991px) {
  .come-funziona-section {
    padding: 80px 20px;
  }
  
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .come-funziona-header h2 {
    font-size: 2.3rem;
  }
}

/* ============================================ */
/* RESPONSIVO - MOBILE                          */
/* ============================================ */

@media (max-width: 768px) {
  .come-funziona-section {
    padding: 60px 20px;
  }
  
  .come-funziona-header {
    margin-bottom: 40px;
  }
  
  .come-funziona-header h2 {
    font-size: 2rem;
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .step-card {
    padding: 24px 20px;
  }
  
  .btn-consulenza {
    width: 100%;
    justify-content: center;
    padding: 12px 22px;
    font-size: 13px;
  }
}

@media (max-width: 576px) {
  .come-funziona-header h2 {
    font-size: 1.7rem;
  }
  
  .come-funziona-subtitle {
    font-size: 0.95rem;
  }
  
  .step-card h3 {
    font-size: 1rem;
  }
  
  .step-card p {
    font-size: 0.85rem;
  }
  
  .step-icon i {
    font-size: 24px;
  }
  
  .btn-consulenza {
    font-size: 13px;
    padding: 12px 20px;
  }
}

/* ============================================ */
/* TELAS GRANDES                                */
/* ============================================ */

@media (min-width: 1400px) {
  .come-funziona-section .container {
    max-width: 1200px;
  }
  
  .come-funziona-header h2 {
    font-size: 3rem;
  }
  
  .come-funziona-subtitle {
    font-size: 1.1rem;
  }
  
  .steps-grid {
    gap: 24px;
  }
  
  .step-card {
    padding: 32px 28px;
  }
  
  .step-icon i {
    font-size: 28px;
  }
  
  .btn-consulenza {
    font-size: 15px;
    padding: 10px 30px;
  }
}

/* ============================================ */
/* ANIMAÇÕES                                    */
/* ============================================ */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-card:nth-child(1) { animation: fadeUp 0.5s ease forwards; }
.step-card:nth-child(2) { animation: fadeUp 0.5s ease 0.1s forwards; opacity: 0; }
.step-card:nth-child(3) { animation: fadeUp 0.5s ease 0.2s forwards; opacity: 0; }
.step-card:nth-child(4) { animation: fadeUp 0.5s ease 0.3s forwards; opacity: 0; }