/* custom.css – Integração do Bootstrap com os estilos originais - v4 */

/* 1. Fontes Modernas */
@font-face { 
  font-family: 'News Cycle'; 
  src: url('../fonts/NewsCycle-Regular.eot'); 
  src: local("News Cycle"), url('../fonts/NewsCycle-Regular.ttf'); 
}

/* 2. Reset básico e tipografia geral */
html, body {
  height: 100%;
  overflow-x: hidden; /* Prevenir scroll horizontal */
}
body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: #333; /* Slightly softer black */
  padding-top: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 3. Containers personalizados */
.container-custom {
  max-width: 100%;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
}

/* 4. Cabeçalho com Montserrat */
header {
  background: linear-gradient(#43A9FF, #0043A8);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  padding: 15px 0;
  position: relative;
  z-index: 10;
  font-family: 'Montserrat', sans-serif;
}
#strapline-info p,
#strapline-info p a {
  word-break: break-word;
  color: #FFF !important;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  letter-spacing: 0.2px;
  margin-bottom: 5px;
}

/* Ajustes de espaçamento e alinhamento no cabeçalho */
header .row.align-items-center {
  margin-bottom: 0;
}

header .col-md-6 {
  padding: 10px 15px;
}

header img.img-fluid {
  max-width: 300px;
  margin: 8px 0;
}

/* 5. Tipografia */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #000;
  letter-spacing: -0.5px;
  margin-bottom: 15px;
  word-wrap: break-word;
  line-height: 1.3;
  font-weight: 600;
}
h1 { font-size: 1.75rem; }
h2 { font-size: 1.65rem; }
h3 { font-size: 1.5rem; }
h4, h5, h6 {
  font-size: 1.25rem;
  color: #000;
}
p {
  padding-bottom: 15px;
  line-height: 1.6;
  font-size: 1rem;
  word-wrap: break-word;
  color: #555;
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* 6. Links */
a, a:hover {
  color: #0056b3; /* Adjusted link color */
  text-decoration: none; /* Remove underline by default */
}
a:hover {
  text-decoration: underline;
}
header a, header a:hover, footer a, footer a:hover, .navbar a, .navbar a:hover {
    color: #FFF !important;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
}
header a:hover, footer a:hover, .navbar a:hover {
    text-decoration: underline;
}

/* 7. Menu de Navegação Bootstrap - Estilo Moderno com Montserrat */
.navbar {
  z-index: 1035 !important;
  position: sticky;
  top: 0;
  background-color: #0043A8 !important;
  border-radius: 0 0 15px 15px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15); /* Sombra mais suave e ampla */
  font-family: 'Montserrat', sans-serif;
  padding: 0;
}
.navbar-nav {
  justify-content: space-between;
  width: 100%;
  max-width: 600px;
}
.navbar-nav .nav-link {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 1.1rem;
  padding: 12px 20px;
  color: rgba(255, 255, 255, 0.9) !important;
  text-align: center;
  transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  margin: 0 2px;
}
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: #fff;
  transform: translateX(-50%);
  transition: width 0.25s ease;
}
.navbar-nav .nav-link:hover, .navbar-nav .active > .nav-link {
  background: transparent;
  color: #fff !important;
  transform: none;
}
.navbar-nav .nav-link:hover::after, .navbar-nav .active > .nav-link::after {
  width: 60%;
}
.navbar-toggler {
  border-color: rgba(255, 255, 255, .3);
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.navbar-collapse {
    background-color: #0043A8;
    border-radius: 0 0 10px 10px;
}

/* 8. Slideshow */
#slideshow {
  position: relative;
  z-index: 5;
  margin-bottom: 30px; /* Increased margin */
  width: 100%;
  overflow: hidden;
}
#slideshow_container {
    width: 100%;
    max-width: 100%;
    height: auto;
    padding-top: 0;
    aspect-ratio: 16 / 5; /* Adjusted aspect ratio */
}
ul.slideshow {
    position: relative;
    width: 100%;
    height: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
}
ul.slideshow li {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
ul.slideshow li.show {
    opacity: 1;
    z-index: 2;
}
ul.slideshow img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 9. Área de Conteúdo e Sidebar - Estilo Terra Mobile */
#site_content {
  overflow: visible;
}

/* Estilo base para os containers de conteúdo */
.content_container_responsive, .sidebar_item_responsive {
  width: 100%; /* Ocupa toda a coluna do Bootstrap */
  background-color: #f8f9fa; /* Fundo leve */
  border: 1px solid #dee2e6; /* Borda sutil */
  border-radius: 8px; /* Bordas arredondadas */
  padding: 20px; /* Padding interno generoso */
  margin-bottom: 25px; /* Espaçamento entre blocos */
  box-shadow: 0 1px 3px rgba(0,0,0,0.1); /* Sombra leve */
  height: auto !important; /* Remover altura fixa/minima */
  display: flex;
  flex-direction: column;
}

.content_container_responsive p, .sidebar_item_responsive p {
   font-size: 0.95rem;
   line-height: 1.6;
   margin-bottom: 15px; /* Espaçamento do parágrafo */
   color: #343a40; /* Cor de texto mais escura */
}

.content_container_responsive img, .sidebar_item_responsive img {
   max-width: 100px;
   height: auto;
   margin-bottom: 15px; /* Espaço abaixo da imagem */
   display: block; /* Para centralizar com margin auto se necessário */
   /* margin-left: auto; 
   margin-right: auto; */ /* Descomentar se quiser centralizar a imagem */
}

.content_container_responsive .mt-auto, .sidebar_item_responsive .mt-auto {
   margin-top: auto; /* Forçar botão para baixo */
   text-align: center; /* Centralizar botão */
}

/* Ajustes específicos para sidebar */
.sidebar_item_responsive h2, .sidebar_item_responsive h3 {
    font-size: 1.3rem; /* Ajustar tamanho título sidebar */
}

/* 10. Botões - Estilo Moderno */
.button_small, .btn-primary, .leia-mais {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 10px 22px;
  background: #0056b3;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  display: inline-block;
  color: #FFF !important;
  text-decoration: none !important;
  border: none;
  text-align: center;
  letter-spacing: 0.3px;
  transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* === FIXO: mantém o texto em <strong> branco dentro dos botões === */
.button_small strong,
.btn-primary strong,
.leia-mais strong {
  color: #ffffff !important;
}

.button_small:hover, .btn-primary:hover, .leia-mais:hover {
    background: #0062cc;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.875rem;
    border-radius: 6px;
}

/* 11. Formulários */
.form_settings input,
.form_settings textarea {
  width: 100%;
  padding: 10px; /* Aumentar padding */
  border: 1px solid #ced4da;
  border-radius: 4px;
  background: #FFF;
  color: #495057;
  margin-bottom: 15px;
}
.form_settings input[type="checkbox"] {
  width: auto;
  margin: 10px 5px 10px 0;
}

/* 12. Botão Flutuante WhatsApp */
#whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  padding: 10px 15px;
  border-radius: 50px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}
#whatsapp-float:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}
#whatsapp-float img {
  width: 50px; /* Ajustar */
  margin-right: 8px;
}
#whatsapp-float span {
  color: #fff;
  font-size: 1rem; /* Ajustar */
  font-weight: bold;
  white-space: nowrap;
}

/* 13. Footer */
footer {
  padding: 30px 0 25px;
  font-weight: bold;
  text-align: center;
  text-shadow: 1px 1px #000;
  color: #FFF;
  background: linear-gradient(#43A9FF, #0043A8);
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.3);
  margin-top: 40px;
}
footer a {
  color: #FFF;
  text-decoration: none;
  word-break: break-word;
}
footer a:hover {
  text-decoration: underline;
}

/* 14. Utilitários */
.img-fluid {
  max-width: 100%;
  height: auto;
}

/* Media Queries */
@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: 10px;
    }
    /* Centralizar blocos de conteúdo no tablet */
    #content.col-lg-8, aside.col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    aside {
        margin-top: 30px !important;
    }
}

@media (max-width: 767.98px) {
  #strapline-info {
    text-align: center !important;
    margin-top: 15px;
  }
  /* Ajustes para blocos de conteúdo no mobile */
  .content_container_responsive, .sidebar_item_responsive {
      padding: 15px; /* Reduzir padding no mobile */
      margin-left: auto; /* Centralizar */
      margin-right: auto; /* Centralizar */
      /* max-width: 95%; */ /* Opcional: limitar largura se necessário */
  }
  .content_container_responsive .d-flex {
      flex-direction: column;
      align-items: center !important;
      text-align: center;
  }
  .content_container_responsive img {
      margin-right: 0 !important;
      margin-bottom: 15px;
      max-width: 80px;
  }
  #whatsapp-float span {
      display: none;
  }
  #whatsapp-float {
      padding: 10px;
  }
   #whatsapp-float img {
      margin-right: 0;
      width: 45px;
  }
  #slideshow_container {
      aspect-ratio: 16 / 9;
  }
}

@media (max-width: 575.98px) {
    h1 { font-size: 1.4rem; }
    h2 { font-size: 1.3rem; }
    h3 { font-size: 1.2rem; }
    p { font-size: 0.9rem; }
    .navbar-nav .nav-link {
        font-size: 1rem;
        padding: 8px 10px;
    }
    .container-custom {
        padding-left: 10px;
        padding-right: 10px;
    }
    .content_container_responsive, .sidebar_item_responsive {
        padding: 10px; /* Reduzir mais o padding */
    }
    #whatsapp-float {
        bottom: 15px;
        right: 15px;
    }
}
