/* =====================================================
   Home — CONTEÚDOS (carrossel ~1625×678, cards 445px, setas 34px)
   Título = mesma tipografia/cor que .home-destaques__title
   ===================================================== */

.home-conteudos {
  padding: 3rem 0 3.5rem;
  background-color: #fff;
  overflow-x: visible;
}

/* Largura do bloco no artboard (~1625px); sobrepõe o max-width do .container Bootstrap */
.home-conteudos .container {
  max-width: 1625px;
  position: relative;
  overflow: visible;
}

/* Igual a Destaques: Oswald 60 / 90, vermelho #FC2E36 */
.home-conteudos__title {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 60px;
  line-height: 90px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #fc2e36;
  margin: 0 0 2rem;
  max-width: 315px;
}

/* Só o Swiper no fluxo: a primeira imagem alinha com o título (as setas não empurram o carrossel) */
.home-conteudos__row {
  position: relative;
  margin-bottom: 2.5rem;
}

.home-conteudos__nav {
  position: absolute;
  top: 138px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s ease;
  transform: translateY(-50%);
}

.home-conteudos__nav:hover,
.home-conteudos__nav:focus-visible {
  opacity: 0.85;
}

.home-conteudos__nav:focus-visible {
  outline: 2px solid #291212;
  outline-offset: 3px;
}

.home-conteudos__nav-icon.is-prev {
  transform: matrix(-1, 0, 0, 1, 0, 0);
}

.home-conteudos__nav.swiper-button-disabled {
  opacity: 0.2;
  cursor: default;
  pointer-events: none;
}

/* Figma: setas à esquerda da faixa de conteúdo; fora do .container em desktop largo */
.home-conteudos__nav--prev {
  left: 0;
}

.home-conteudos__nav--next {
  right: 0;
}

@media (min-width: 1200px) {
  .home-conteudos__nav--prev {
    left: -48px;
  }

  .home-conteudos__nav--next {
    right: -48px;
  }
}

.swiper-conteudos-home {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  margin: 0;
}

.swiper-conteudos-home .swiper-wrapper {
  align-items: stretch;
}

.swiper-conteudos-home .swiper-slide {
  display: flex;
  width: 100%;
  max-width: 445px;
  height: auto;
  box-sizing: border-box;
}

@media (min-width: 1200px) {
  .swiper-conteudos-home .swiper-slide {
    width: 445px;
  }
}

/* —— Card —— */
.home-conteudos-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: 445px;
  margin: 0;
  min-height: 0;
  flex: 1 1 auto;
  height: 100%;
}

.home-conteudos-card__media {
  position: relative;
  display: block;
  width: 100%;
  max-width: 445px;
  aspect-ratio: 445 / 276;
  overflow: hidden;
  background-color: #e8e4e4;
  color: inherit;
  text-decoration: none !important;
}

.home-conteudos-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.home-conteudos-card__tag {
  position: absolute;
  left: 20px;
  bottom: 21px;
  min-width: 0;
  max-width: calc(100% - 40px);
  min-height: 30px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 28px;
  text-align: center;
  color: #291212;
  background-color: rgba(245, 242, 242, 0.75);
  border-radius: 30px;
}

.home-conteudos-card__date {
  display: block;
  width: 100%;
  margin-top: 13px;
  margin-bottom: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 12px;
  line-height: 28px;
  color: #fc2e36;
}

.home-conteudos-card__headline {
  flex: 1 1 auto;
  margin: 0.35rem 0 0;
  padding: 0;
  width: 100%;
  max-width: 438px;
  min-height: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 28px;
  color: #291212;
}

.home-conteudos-card__headline a {
  color: inherit;
  text-decoration: none !important;
}

.home-conteudos-card__headline a:hover,
.home-conteudos-card__headline a:focus-visible {
  text-decoration: underline !important;
}

/* ~3 linhas como no layout */
.home-conteudos-card__headline a {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-conteudos__cta-wrap {
  margin: 0;
  text-align: center;
}

.home-conteudos__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 311px;
  min-height: 79px;
  padding: 10px 1.5rem;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 26px;
  line-height: 31px;
  text-align: center;
  text-transform: capitalize;
  text-decoration: none !important;
  color: #291212 !important;
  background-color: #f5f2f2;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.home-conteudos__cta:hover,
.home-conteudos__cta:focus-visible {
  background-color: #e8e4e4;
  color: #291212 !important;
}

.home-conteudos__cta:focus-visible {
  outline: 2px solid #291212;
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .home-conteudos {
    padding: 2.5rem 0 2rem;
  }

  .home-conteudos__title {
    font-size: clamp(2rem, 9vw, 40px);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    max-width: none;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .home-conteudos__row {
    margin-bottom: 2rem;
  }

  .home-conteudos__nav {
    top: min(22vw, 120px);
  }

  .home-conteudos__nav--prev {
    left: 4px;
  }

  .home-conteudos__nav--next {
    right: 4px;
  }

  .home-conteudos-card {
    margin-left: auto;
    margin-right: auto;
  }

  .home-conteudos-card__headline {
    font-size: clamp(18px, 4.5vw, 22px);
    line-height: 1.3;
  }

  .home-conteudos__cta {
    min-width: 0;
    width: 100%;
    max-width: 311px;
    font-size: 18px;
    line-height: 1.3;
    min-height: 56px;
  }
}
