/* ===== CORREÇÃO DAS SEÇÕES SOBRE E IMAGENS ===== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

main,
section,
.container,
.sobre__inner,
.sobre__inner > div,
.hero__inner,
.hero__inner > div {
  max-width: 100%;
  min-width: 0;
}

.sobre__inner h2,
.sobre__inner p,
.sobre__inner li,
.hero__title,
.hero__text,
.section__title,
.section__text,
.card__title,
.card__text {
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: normal;
  white-space: normal;
}

.sobre__inner img,
.hero__image-wrapper img,
.contato img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.hero__image-wrapper,
.sobre__inner > div:first-child,
.contato > div {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

/* Impede que textos longos criem largura extra */
.hero__eyebrow,
.section__eyebrow {
  display: inline-block;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: break-word;
}

/* Evita que qualquer textarea ultrapasse a tela */
textarea,
input,
select {
  max-width: 100%;
  min-width: 0;
}

/* Se houver um campo usado apenas para exibir texto */
textarea {
  width: 100%;
  resize: none;
  overflow: hidden;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

/* ===== AJUSTE MOBILE ===== */

@media (max-width: 640px) {
  .container {
    width: 100%;
    max-width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }

  .sobre__inner,
  .hero__inner,
  .contato {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 28px;
  }

  .sobre__inner > div,
  .hero__inner > div,
  .contato > div {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .sobre__inner h2,
  .section__title {
    font-size: clamp(1.65rem, 8vw, 2.2rem);
    line-height: 1.2;
  }

  .hero__title {
    font-size: clamp(2rem, 9vw, 2.8rem);
    line-height: 1.15;
  }

  .sobre__inner p,
  .section__text,
  .hero__text {
    font-size: 1rem;
    line-height: 1.55;
  }

  .sobre__lista {
    width: 100%;
    max-width: 100%;
  }

  .sobre__item {
    width: 100%;
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .sobre__inner img,
  .hero__image-wrapper img {
    width: 100%;
    height: auto;
  }
}