/* ============================================
   ADVANTAGES SECTION - LP TruScale IaaS
   ============================================
   
   Vantagens para acelerar seus resultados
*/

.advantages {
  position: relative;
  background-color: var(--color-bg-pink-light);
  overflow: hidden;
  min-height: 513px;
}

.advantages__container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 50% 1fr;
  align-items: center;
  min-height: 514px;
}

/* Imagem à esquerda */
.advantages__image-wrapper {
  position: relative;
  height: 514px;
  overflow: hidden;
}

.advantages__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay gradiente */
.advantages__image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(224deg, rgba(17, 24, 79, 0.00) 22.58%, #4D144A 101.05%);
  z-index: 1;
}

/* Conteúdo à direita */
.advantages__content {
  padding: 75px 80px 75px 100px;
  position: relative;
  z-index: 2;
  max-height: 514px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.advantages__title {
  font-family: var(--font-gotham-bold);
  font-size: var(--font-size-title);
  line-height: var(--line-height-title);
  color: #1D1616;
  margin-bottom: var(--margin-lg);
}

/* Lista */
.advantages__list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--margin-lg) 0;
}

.advantages__list-item {
  position: relative;
  padding-left: 27px;
  font-family: var(--font-gotham-book);
  font-size: 18px;
  font-style: normal;
  font-weight: 325;
  line-height: 27px;
  color: #1D1616;
  margin-bottom: var(--margin-sm);
}

.advantages__list-item:last-child {
  margin-bottom: 0;
}

.advantages__list-item::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #1D1616;
  font-size: 20px;
  line-height: 27px;
}

/* Botão CTA */
.advantages__cta {
  margin-top: var(--margin-lg);
}

.advantages__cta-button {
  min-width: 352px;
  height: 40px;
}

/* Responsive */
@media (max-width: 1440px) {
  /* Em telas menores de desktop, usar colunas 50/50 para alinhar imagem e conteúdo
     e eliminar qualquer gap branco entre imagens */
  .advantages__container {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: 0;
  }
  
  .advantages__content {
    padding: 60px 40px 60px 60px;
    max-height: none; /* permite que o conteúdo expanda sem ser cortado */
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .advantages__image-wrapper {
    height: 100%;
    min-height: 400px;
    overflow: hidden;
    align-self: stretch;
  }

  .advantages__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

@media (max-width: 1024px) {
  .advantages {
    min-height: auto;
  }
  
  .advantages__container {
    grid-template-columns: 1fr;
  }
  
  .advantages__image-wrapper {
    height: 400px;
  }
  
  .advantages__content {
    padding: 40px 24px;
  }
  
  .advantages__title {
    font-size: 28px;
    margin-bottom: var(--margin-lg);
  }
  
  .advantages__list-item {
    font-size: var(--font-size-base);
  }
  
  .advantages__cta-button {
    min-width: 100%;
  }
}

@media (max-width: 768px) {
  .advantages__image-wrapper {
    height: 300px;
  }
  
  .advantages__content {
    padding: 32px 16px;
  }
  
  .advantages__title {
    font-size: 24px;
    /* Reduzir espaçamento entre linhas no mobile */
    line-height: 1.08;
    margin-bottom: 12px;
  }
  
  .advantages__list-item {
    font-size: var(--font-size-small);
    line-height: 20px;
  }
}
