.container-intro {
  max-width: 350px;
  margin: 0 auto;
  /* padding: 10px; */
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 800px;
}

.section-intro {
 background-image: url("../img/lp-diversidade-bg.webp"); 
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  width: 100%;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.header {
  margin: 1rem 1rem 0rem 0rem;
  display: flex;
  justify-content: start;
  gap: 2rem;
  align-items: center;
}

.header > a {
  width: 250px;
}

.intro-logo {
  width: 100%;
}

.online {
  width: 4rem;
}

.title {
  font-weight: 400;
  letter-spacing: 3px;
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
  margin-top: 5px;
}

.course-type {
  margin: 10px 0px 5px 0px;
  font-size: 1.5rem;
  font-weight: 600;
}

.subsection-course {
  margin-bottom: 30px;
}

.subsection-course h2 {
  color: var(--primary-color);
}

.subsection-course p {
  width: 100%;
  letter-spacing: 1px;
  line-height: 1.5rem;
  scroll-behavior: smooth;
}

/* .subsection-course a:hover {
  color: var(--primary-color);
  transition: 0.2s ease-in-out;
} */

.intro-btn-box{
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.subsection-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 500px;
}

.subsection-info-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.subsection-info-box {
  font-weight: 200;
}

.subsection-info-icons svg {
  margin-right: 15px;
}

.subsection-cta {
  text-align: center;
  margin-bottom: 20px;
}

.subsection-cta-payment {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 1rem;
  padding: 0% 15%;
  margin: 20px 0px;
}

.subsection-cta-payment p {
  margin: 0px;
}

.subsection-cta-payment p:nth-child(2) {
  font-size: 1.3rem;
  color: #e0a42b;
}

.subsection-cta-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.subsection-cta-date {
  font-size: 1.3rem;
  font-weight: 300;
}

.btn-inscrevase {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #009bae;
  padding: 15px;
  border-radius: 25px;
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  width: 100%;
  height: 1.5rem;
  max-width: 180px;
  transition: 0.1s ease-in-out;
}

.btn-inscrevase:hover {
  transform: scale(1.05);
  transition: 0.1s ease-in-out;
}

small {
  font-weight: 100;
}

@media (min-width: 500px) {
  .intro-logo {
    max-width: 280px !important;
  }
  .header {
    justify-content: start;
  }

  .container-intro {
    width: 80%;
    max-width: 1000px;
  }

  .subsection-course p {
    width: 80%;
  }
}

@media (min-width: 768px) {
  .section-intro {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0; /* Mudança 3: adiciona padding */
  }

  .intro-btn-box {
    flex-direction: row;
  }

  .container-intro {
    margin: 0px auto;
    width: 100vw;
  }

  .title {
    font-size: clamp(2.5rem, 5vw, 52px); /* Mudança 4: título responsivo */
  }

  .intro-container {
    width: 100%;
  }

  .subsection-cta-payment {
    text-align: start;
    padding: 0px;
  }

  .subsection-course {
    margin-bottom: 0px;
  }

  .subsection-course p {
    width: 60%;
  }

  .section-intro {
    background-image: none;
  }

  .section-intro::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("../img/lp-diversidade-bg.webp");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: right;
    opacity: 0.6;
    z-index: -1;
  }

  .intro-left {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 4vh, 3rem); /* Mudança 5: gap responsivo por altura */
  }

  .subsection-info-box {
    flex-direction: row;
    gap: 4;
    text-align: start;
  }

  .subsection-cta-box {
    flex-direction: row;
    justify-content: start;
  }
}

/* Mudança 6: Media query para alturas limitadas */
@media (min-width: 768px) and (max-height: 800px) {
  .section-intro {
    min-height: auto;
    padding: 1rem 0;
  }

  .title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
  }

  .intro-left {
    gap: 1rem;
  }

  .subsection-course {
    margin-bottom: -0.5rem;
  }
}

@media (min-width: 1280px) {
  .section-intro {
    background-image: url("../img/lp-diversidade-bg.webp");
    height: 100vh; /* Só força altura em telas grandes */
    display: flex;
    align-items: center;
  }

  .section-intro::after {
    content: none;
  }

  .container-intro {
    max-width: 1000px;
    margin: 0 auto;
  }

  .subsection-cta-date {
    margin-right: 2rem;
  }
}

/* Mudança 7: Para telas grandes mas baixas */
@media (min-width: 1280px) and (max-height: 900px) {
  .section-intro {
    height: auto;
    min-height: 100vh;
    padding: 1rem 0;
  }
}

@media (min-height: 1080px) {
  .container-intro {
    height: 100vh;
    margin: 1rem clamp(1rem, 5vw, 5rem) 0rem clamp(1rem, 5vw, 5rem);
    padding-top: 5rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .intro-logo {
    width: 100%;
  }

  .header > a {
    /* width: 100%; */
  }

  .section-intro {
    min-height: 100vh;
  }

  .intro-left {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: start;
    gap: 4rem;
  }

  .subsection-course {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
  }

  .subsection-info {
    gap: 2rem;
  }
}

@media (min-width: 2560px) and (min-height: 1440px) {
  .subsection-course,
  .subsection-info-box,
  .subsection-cta,
  .subsection-cta-payment,
  .subsection-cta-box,
  .subsection-cta-date {
    font-size: 1.5rem;
  }
  .online {
    width: 8rem;
  }

  .header > a,
  .intro-logo {
    width: 450px;
    max-width: 450px !important;
  }

  .container-intro {
    max-width: 1500px;
  }

  .subsection-course p {
    width: 80%;
    line-height: 3rem;
  }

  .course-type,
  .title {
    font-size: 4rem;
  }

  .subsection-info {
    max-width: 1000px;
  }

  .btn-inscrevase {
    max-width: 360px;
    height: 3rem;
  }
}
