/* Removido estilos do layout antigo e ajustado tamanhos dos blocos */
.cssm-diferenciais-container-vertical {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
}

.cssm-bloco-vertical {
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.cssm-bloco-vertical:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Reduzido altura do header de 200px para 160px */
.cssm-bloco-header {
  position: relative;
  height: 160px;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s ease;
}

.cssm-bloco-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.75;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.cssm-bloco-header:hover .cssm-bloco-overlay {
  opacity: 0.65;
}

.cssm-bloco-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
  z-index: 0;
}

.cssm-bloco-header:hover::before {
  transform: scale(1.08);
}

/* Adicionado margin-top: 0px !important para garantir centralização */
.cssm-bloco-titulo-vertical {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  color: #ffffff;
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0;
  margin-top: 0px !important;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  letter-spacing: 1px;
}

/* Reduzido max-height e padding do conteúdo expandido */
.cssm-bloco-content-expandido {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.5s ease;
  background-color: #f8f9fa;
}

.cssm-bloco-vertical.active .cssm-bloco-content-expandido {
  max-height: 1500px;
  padding: 30px 25px;
}

.cssm-bloco-content-inner {
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
}

.cssm-bloco-vertical.active .cssm-bloco-content-inner {
  opacity: 1;
  transform: translateY(0);
}

/* Centralizado título do conteúdo expandido e reduzido tamanho */
.cssm-content-titulo {
  font-size: 24px;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 20px 0;
  text-transform: uppercase;
  text-align: center;
}

/* Corrigido text-align: justify para justificar o texto corretamente */
.cssm-content-texto {
  font-size: 16px;
  line-height: 1.7;
  color: #555;
  margin-bottom: 25px;
  text-align: justify !important;
}

.cssm-content-texto p {
  margin-bottom: 15px;
  text-align: justify !important;
}

/* Adicionado justify-content: center para centralizar imagens */
.cssm-content-imagens {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Adicionado object-position: center para centralizar imagens com cover */
.cssm-content-imagem {
  flex: 1;
  min-width: 250px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  aspect-ratio: 2.16 / 1;
}

.cssm-content-imagem img {
  width: 100%;
  height: 100% !important;
  display: block;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.3s ease;
}

.cssm-content-imagem:hover img {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .cssm-bloco-header {
    height: 140px;
  }

  .cssm-bloco-titulo-vertical {
    font-size: 22px;
  }

  .cssm-bloco-vertical.active .cssm-bloco-content-expandido {
    padding: 25px 20px;
  }

  .cssm-content-titulo {
    font-size: 20px;
  }

  .cssm-content-texto {
    font-size: 15px;
  }

  .cssm-content-imagens {
    gap: 12px;
  }

  .cssm-content-imagem {
    min-width: 100%;
  }
}

@media (max-width: 480px) {
  .cssm-diferenciais-container-vertical {
    padding: 20px 10px;
  }

  .cssm-bloco-header {
    height: 120px;
  }

  .cssm-bloco-titulo-vertical {
    font-size: 18px;
  }

  .cssm-bloco-vertical.active .cssm-bloco-content-expandido {
    padding: 20px 16px;
  }

  .cssm-content-titulo {
    font-size: 18px;
    margin-bottom: 15px;
  }

  .cssm-content-texto {
    font-size: 14px;
    margin-bottom: 20px;
  }
}
