/* === Seção MIP === */
.mip {
  padding: 4rem 0;
  background: var(--white);
}

/* === Introdução centralizada === */
.mip-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem;
}
.mip-header h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 2rem;
  margin-bottom: 1rem;
  position: relative;
}
.mip-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--red);
  margin: 0.5rem auto 2rem;
}
.mip-header p {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--black);
  text-align: center;
}

/* === Subtítulos de bloco (<h3>) === */
.mip h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.75rem;
  text-align: center;
  margin: 2.5rem 0 1rem;
  position: relative;
}
.mip h3::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--red);
  margin: 0.5rem auto;
}

/* === Vantagens (Desktop padrão) === */
.vantagens-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 3rem;
  max-width: 800px;
  margin: 2rem auto;
}
.vantagem-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  text-align: left;
}
.icon-circle {
  flex: 0 0 4rem;
  width: 4rem;
  height: 4rem;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
}
.vantagem-item .number {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--red);
  margin-right: 0.25rem;
}
.vantagem-item p {
  margin: 0;
  line-height: 1.4;
}

/* === Processo (Desktop padrão) === */
.process-container {
  position: relative;
  margin: 3rem 0;
  padding: 2rem 0;
}
.process-line {
  position: absolute;
  top: 2rem;
  left: 5%;
  right: 5%;
  height: 4px;
  background: var(--red);
  z-index: 1;
}
.process-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}
.step {
  text-align: center;
  width: calc(100% / 6);
}
.step .circle {
  width: 3rem;
  height: 3rem;
  background: var(--white);
  border: 4px solid var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  color: var(--black);
  font-size: 1.25rem;
}
.step .label {
  margin-top: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
}
.step .desc {
  font-size: 0.85rem;
  color: #333;
}

/* === Exemplos de Pragas (Desktop padrão) === */
.examples-header {
  text-align: center;
  max-width: 800px;
  margin: 2.5rem auto 1rem;
}
.examples-header p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--black);
}
.examples-grid {
  display: grid;
  gap: 1rem;
  margin: 0 auto 2rem;
}
@media (min-width: 768px) {
  .examples-grid {
    grid-template-columns: 1fr 1fr;
    max-width: 900px;
  }
}
.example-item {
  position: relative;
  background-size: cover;
  background-position: center;
  height: 180px;
  border-radius: 8px;
  overflow: hidden;
}
.example-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}
.example-title {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  z-index: 2;
}

/* === Overrides MOBILE (<768px) === */
@media (max-width: 768px) {

  /* Vantagens ajustadas */
  .vantagens-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin: 1.5rem auto;
    padding: 0 1rem;
    box-sizing: border-box;
  }
  .vantagem-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    text-align: left;
  }
  .icon-circle {
    display: none;
  }

  /* Processo em grid no mobile */
  .process-container {
    padding: 1.5rem 1rem;
  }
  .process-line {
    display: none;
  }
  .process-steps {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    position: relative;
  }
  .step {
    width: auto !important;
    text-align: center;
    padding-top: 0;
  }
  .step .circle {
    width: 2.5rem !important;
    height: 2.5rem !important;
    font-size: 1.25rem !important;
    margin: 0 auto 0.5rem;
  }
  .step .label {
    font-size: 0.9rem;
    margin-top: 0;
  }
  .step .desc {
    font-size: 0.8rem;
    line-height: 1.3;
    margin-top: 0.25rem;
  }

  /* Galeria de exemplos responsiva */
  .examples-grid {
    grid-template-columns: 1fr;
  }
  .example-item {
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
  }

  /* Garante sem overflow horizontal */
  html, body {
    overflow-x: hidden !important;
  }
}
