/* 
 * Estilos para o carrossel de notícias
 * Solução simplificada
 */

/* Container principal */
#noticias {
  padding: 60px 0;
  background-color: #8a8d83; /* Cinzento original */
}

#noticias .container {
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
  padding: 0 10px; /* Reduzido de 15px para 10px */
}

#noticias h2 {
  margin-bottom: 40px;
  text-align: center;
  font-family: 'Libre Baskerville', serif;
  font-weight: 700;
  color: #fff;
}

/* Wrapper do carrossel - controla o overflow */
.noticias-carousel-wrapper {
  overflow: hidden;
  margin-bottom: 30px;
  padding: 10px 0;
}

/* Container do carrossel */
.noticias-carousel {
  display: flex !important;
  gap: 12px !important; /* Espaçamento moderado - meio termo */
  transition: transform 0.5s ease;
  width: fit-content !important;
  overflow-x: visible !important;
  padding-bottom: 0 !important;
}

/* Itens individuais - sem definição fixa de width (agora é calculada pelo JS) */
.noticia-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  background-color: white !important;
  transition: transform 0.3s ease;
  flex: none !important; /* Remove flex fixo do custom.css */
  width: auto !important; /* Remove largura fixa do custom.css */
  padding: 7px !important; /* Reduzido de 8px para 7px - ganha 6px no total */
}

.noticia-item:hover {
  transform: translateY(-5px);
}

/* Imagem da notícia */
.noticia-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-radius: 6px !important; /* Restaura os cantos arredondados */
}

/* Título da notícia */
.noticia-title {
  padding: 0 12px 12px 12px; /* Meio termo entre o original e o muito reduzido */
  margin: 0;
  font-family: 'PT Serif', serif;
  font-size: 18px;
  color: #333;
  line-height: 1.4;
}

/* Botão ver mais */
.btn-ver {
  position: relative;
  display: block; /* Mudado de inline-block para block */
  margin: 10px auto; /* Auto nas laterais para centralizar */
  background-color: #ba2929;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 50px;
  font-family: 'Libre Baskerville', serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: background-color 0.3s;
  text-align: center; /* Centraliza o texto dentro do botão */
  width: fit-content; /* Largura ajusta-se ao conteúdo */
}

.btn-ver:hover {
  background-color: #991f1f;
  color: white;
  text-decoration: none;
}

/* Navegação do carrossel */
.noticias-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.nav-prev,
.nav-next {
  background-color: #ba2929;
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.3s, opacity 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-prev:hover,
.nav-next:hover {
  background-color: #991f1f;
}

.nav-prev.disabled,
.nav-next.disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

/* Responsividade - simplificada */
@media (max-width: 991px) {
  /* O JavaScript ajusta o número de itens visíveis para 2 */
  
  .noticia-title {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  /* O JavaScript ajusta o número de itens visíveis para 1 */
  
  .noticia-title {
    font-size: 16px;
  }
}
