/* =====================================================
   Home — Newsletter
   ===================================================== */

.home-newsletter {
  position: relative;
  width: 100%;
  background-color: #ab0557;
  overflow: hidden;
  min-height: 415px;
  padding: 0;
}

.home-newsletter__inner {
  position: relative;
  z-index: 2;
  max-width: 1920px;
  min-height: 415px;
  margin: 0 auto;
  padding: 74px 215px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 95px;
  box-sizing: border-box;
}

.home-newsletter__icon-wrap {
  position: absolute;
  top: auto;
  right: 0;
  bottom: 0;
  width: min(42vw, 760px);
  height: 100%;
  min-height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.home-newsletter__icon-picture {
  display: block;
  width: 100%;
  height: 100%;
}

.home-newsletter__icon {
  position: absolute;
  right: 0;
  top: 0;
  bottom: auto;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: right center;
  display: block;
}

.home-newsletter__copy {
  flex: 0 0 auto;
  width: 350px;
  max-width: 350px;
  padding-top: 0;
}

.home-newsletter__title {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 60px;
  line-height: 80px;
  text-transform: uppercase;
  color: #f5f2f2;
  margin: 0;
}

.home-newsletter__subtitle {
  margin: 16px 0 0;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 30px;
  text-transform: uppercase;
  color: #f5f2f2;
}

.home-newsletter__form {
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
  padding-top: 15px;
}

/* Form CF7 — ajusta os campos para parecerem do Figma */
.home-newsletter-form {
  margin: 0;
  text-align: left;
}

.home-newsletter-form__field {
  display: block;
  width: 445px;
  max-width: 445px;
  margin-bottom: 10px;
}

.home-newsletter-form__field input[type='text'],
.home-newsletter-form__field input[type='email'],
.home-newsletter-form__field input[type='tel'] {
  height: 40px;
  width: 445px;
  max-width: 445px;
  box-sizing: border-box;
  background: #f5f2f2;
  border: none;
  border-radius: 0;
  color: #291212;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  padding: 0 14px;
  font-size: 16px;
  line-height: 19px;
  text-align: left;
}

.home-newsletter-form__field input::placeholder {
  color: #291212;
  font-size: 16px;
  opacity: 1;
  text-align: left;
}

.home-newsletter-form__acceptance {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin: 0;
  max-width: 445px;
}

.home-newsletter-form__acceptance input[type='checkbox'] {
  appearance: none;
  -webkit-appearance: none;
  border: 1.5px solid #f5f2f2;
  background: transparent;
  width: 24px;
  height: 24px;
  margin: 0;
  flex-shrink: 0;
  cursor: pointer;
}

.home-newsletter-form__acceptance input[type='checkbox']:checked {
  background: #f5f2f2;
}

.home-newsletter-form__acceptance span {
  color: #f5f2f2;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 12px;
  line-height: 15px;
}

.home-newsletter-form__acceptance a {
  color: #f5f2f2;
  text-decoration: underline;
}

.home-newsletter-form__submit {
  display: block;
  margin: 14px 0 0;
  height: 40px;
  width: 114px;
  background: #f5f2f2;
  border: 0;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 26px;
  line-height: 1;
  text-transform: capitalize;
  color: #291212;
  cursor: pointer;
  text-align: center;
}

/* Desktop menor: evita overflow e sobreposição do formulário com a arte */
@media (max-width: 1399px) and (min-width: 992px) {
  .home-newsletter {
    min-height: 350px;
  }

  .home-newsletter__inner {
    min-height: 350px;
    padding: 56px clamp(24px, 4.5vw, 80px);
    gap: clamp(28px, 3vw, 56px);
  }

  .home-newsletter__copy {
    width: min(30vw, 350px);
    max-width: 350px;
  }

  .home-newsletter__title {
    font-size: clamp(42px, 4.6vw, 60px);
    line-height: 1.15;
  }

  .home-newsletter__subtitle {
    font-size: clamp(16px, 1.8vw, 20px);
    line-height: 1.35;
    margin-top: 12px;
  }

  .home-newsletter__form {
    flex: 1 1 auto;
    min-width: 0;
    padding-top: 4px;
  }

  .home-newsletter-form,
  .home-newsletter-form__field,
  .home-newsletter-form__field input[type='text'],
  .home-newsletter-form__field input[type='email'],
  .home-newsletter-form__field input[type='tel'] {
    width: min(100%, 420px);
    max-width: 420px;
  }

  .home-newsletter-form__acceptance {
    max-width: 420px;
  }

  .home-newsletter__icon-wrap {
    width: min(38vw, 520px);
  }
}

/* Notebook (até 1366): estabiliza o bloco e impede sensação de "quebra" */
@media (max-width: 1399px) and (min-width: 1200px) {
  .home-newsletter__inner {
    display: grid;
    grid-template-columns: minmax(260px, 360px) minmax(320px, 420px);
    justify-content: start;
    align-items: start;
    column-gap: clamp(20px, 2.4vw, 40px);
    row-gap: 0;
  }

  .home-newsletter__copy {
    width: 100%;
    max-width: 360px;
  }

  .home-newsletter__form {
    width: 100%;
    max-width: 420px;
  }

  .home-newsletter__icon-wrap {
    width: min(34vw, 440px);
  }

  .home-newsletter__icon {
    height: 100%;
    object-fit: cover;
    object-position: right center;
  }
}

/* 1024–1199: compacta mais (prints enviados) */
@media (max-width: 1199px) and (min-width: 992px) {
  .home-newsletter__inner {
    padding: 42px 24px;
    gap: 22px;
  }

  .home-newsletter__copy {
    width: min(31vw, 300px);
  }

  .home-newsletter__title {
    font-size: 56px;
  }

  .home-newsletter-form,
  .home-newsletter-form__field,
  .home-newsletter-form__field input[type='text'],
  .home-newsletter-form__field input[type='email'],
  .home-newsletter-form__field input[type='tel'] {
    width: min(100%, 360px);
    max-width: 360px;
    height: 36px;
  }

  .home-newsletter-form__submit {
    width: 104px;
    height: 36px;
    font-size: 22px;
  }

  .home-newsletter__icon-wrap {
    width: min(36vw, 420px);
  }

  .home-newsletter__icon {
    height: 100%;
    object-fit: cover;
    object-position: right center;
  }
}

@media (max-width: 767px) {
  .home-newsletter {
    width: 100%;
    max-width: 360px;
    min-height: 801px;
    margin: 0 auto;
    padding: 0;
  }

  .home-newsletter__inner {
    min-height: 950px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    padding: 0 15px;
  }

  .home-newsletter__copy {
    width: 330px;
    max-width: 330px;
    padding-top: 47px;
  }

  .home-newsletter__title {
    font-size: 40px;
    line-height: 60px;
    text-align: center;
  }

  .home-newsletter__subtitle {
    margin-top: 26px;
    font-size: 18px;
    line-height: 28px;
    text-align: center;
  }

  .home-newsletter__icon-wrap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 379px;
    min-height: 379px;
    margin-top: 0;
  }

  .home-newsletter__icon {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
    transform: none;
    object-fit: cover;
    object-position: center top;
    vertical-align: top;
  }

  .home-newsletter-form {
    text-align: center;
    width: 330px;
    max-width: 330px;
    margin-top: 44px;
  }

  .home-newsletter-form__field,
  .home-newsletter-form__field input[type='text'],
  .home-newsletter-form__field input[type='email'],
  .home-newsletter-form__field input[type='tel'] {
    width: 330px;
    max-width: 330px;
    height: 40px;
    font-size: 14px;
    line-height: 17px;
  }

  .home-newsletter-form__field input::placeholder {
    text-align: left;
    font-size: 14px;
    line-height: 17px;
  }

  .home-newsletter-form__acceptance {
    justify-content: flex-start;
    margin: 0;
    max-width: 330px;
    gap: 6px;
  }

  .home-newsletter-form__acceptance span {
    width: 301px;
    text-align: left;
  }

  .home-newsletter-form__submit {
    width: 120px;
    height: 39px;
    margin: 14px auto 0;
    font-size: 16px;
    line-height: 19px;
  }
}

