.ric-atv {
  position: relative;
  padding: 68px 24px;
  background-color: var(--ric-atv-bg, #c80010);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--ric-atv-text, #fff);
  overflow: hidden;
}

/* overlay leve para contraste quando tem imagem */
.ric-atv__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.14);
  pointer-events: none;
}

.ric-atv__inner {
  position: relative;
  width: min(1280px, 100%);
  margin: 0 auto;

  /* ✅ DUAS LINHAS (stack) */
  display: flex;
  flex-direction: column;
  gap: 34px;
}

/* Linha 1 (texto) */
.ric-atv__left {
  min-width: 0;
}

.ric-atv__title {
  margin: 0 0 40px;
  font-weight: 400;
  font-size: clamp(28px, 3vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-align: left;
}

.ric-atv__subtitle {
  margin: 0 0 40px;
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.55;
  text-align: left;
  opacity: .95;
}

/* ✅ BOXES ocupando toda a largura da linha */
.ric-atv__boxes {
  width: 100%;
  display: flex;
  gap: 22px;
  margin: 0 0 40px;
  justify-content: stretch;
  align-items: stretch;
}

.ric-atv__box {
  width: 100%;
  background: var(--ric-atv-box-bg, #d60010);
  border-radius: 10px;
  min-height: 190px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 24px 18px;
  text-align: center;
}

.ric-atv__boxText {
  color: var(--ric-atv-box-text, #fff);
  font-size: clamp(16px, 1.35vw, 22px);
  line-height: 1.6;
  letter-spacing: -0.02em;
  white-space: pre-wrap;
}

/* Texto inferior */
.ric-atv__bottom {
  font-size: 18px;
  line-height: 1.65;
  opacity: .95;
  max-width: 760px;
}

.ric-atv__bottom p { margin: 0 0 12px; }
.ric-atv__bottom p:last-child { margin-bottom: 0; }

/* Linha 2 (imagem) */
.ric-atv__right {
  display: flex;
  justify-content: flex-end; /* imagem “pra direita” na linha 2 */
  align-items: flex-end;
}

.ric-atv__sideImg {
  width: 100%;
  height: auto;
  display: block;
  /* não fixe max-width aqui, deixa o inline controlar */
}

/* Responsivo */
@media (max-width: 1100px) {
  .ric-atv__boxes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ric-atv__box {
    min-height: 170px;
  }

  .ric-atv__sideImg {
    max-width: 560px;
  }
}

@media (max-width: 782px) {
  .ric-atv__inner {
    gap: 24px;
  }

  .ric-atv__boxes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
  }

  .ric-atv__right {
    justify-content: center; /* no mobile centraliza */
  }

  .ric-atv__sideImg {
    max-width: 360px;
  }

  .ric-atv__bottom {
    max-width: none;
  }
}

@media (max-width: 520px) {
  .ric-atv__boxes {
    display: grid;
    grid-template-columns: 1fr;
  }
}
