/* ===================================================================
   LOTERJ - Folha de Estilos Principal (main-att.css)
   Versão com Logos BEM MENORES
   =================================================================== */

/* --- 1. Variáveis Globais e Estilos Base --- */
:root {
  --cor-primaria: #0173bc;
  --cor-secundaria: #22b5c8;
  --cor-texto: #212529;
  --cor-texto-claro: #6c757d;
  --cor-fundo-claro: #f8f9fa;
  --cor-branco: #ffffff;
  --largura-max-conteudo: 1200px;
  --espacamento-padrao: 1.5rem;
  --raio-borda: 16px;
  --sombra-padrao: 0 4px 12px rgba(0, 0, 0, 0.1);
  --transicao-padrao: all 0.3s ease-in-out;
}

html, body {
  overflow-x: hidden;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--cor-texto);
  background-color: var(--cor-branco);
  padding-top: 114px !important;
}

/* --- 2. Preloader --- */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--cor-branco);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hide {
  opacity: 0;
  visibility: hidden;
}

.loader {
  text-align: center;
}
.loader img {
  width: 120px;
  animation: fadeInDown 1s ease forwards;
}
.loader .bolha {
  display: block; width: 20px; height: 20px; margin: 20px auto 0;
  border-radius: 50%; background-color: var(--cor-primaria);
  animation: pulse 1.2s infinite ease-in-out;
}
@keyframes fadeInDown {
  0% { transform: translateY(-30px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

/* --- 3. Classes Utilitárias e Estilos Globais --- */
.container-principal {
  width: 100%;
  max-width: var(--largura-max-conteudo);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--espacamento-padrao);
  padding-right: var(--espacamento-padrao);
}

.section-wrapper {
  width: 100%;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.editoria {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2.5rem;
  margin-top: 0;
}

.btn-loterj {
  background: linear-gradient(to right, var(--cor-secundaria), var(--cor-primaria));
  color: var(--cor-branco);
  font-weight: 600;
  border: none;
  border-radius: 50px;
  padding: 12px 28px;
  font-size: 1rem;
  transition: var(--transicao-padrao);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-loterj:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  color: var(--cor-branco);
}

/* --- 4. Componentes Específicos --- */

/* Carrossel */
.carousel-16by9 {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--raio-borda);
  box-shadow: var(--sombra-padrao);
  overflow: hidden;
  background-color: #e0e0e0;
}
.carousel-16by9 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#carouselBanners .carousel-indicators [data-bs-target] {
  width: 10px; height: 10px; border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  margin: 0 6px; border: none; opacity: 1;
}
#carouselBanners .carousel-indicators .active {
  background-color: var(--cor-branco);
}

/* Seção de Notícias */
.noticias-scroll {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  margin-left: calc(-1 * var(--espacamento-padrao));
  margin-right: calc(-1 * var(--espacamento-padrao));
  padding-left: var(--espacamento-padrao);
  padding-right: var(--espacamento-padrao);
  scrollbar-width: none;
}
.noticias-scroll::-webkit-scrollbar { display: none; }
.noticia-card {
  flex: 0 0 280px;
  aspect-ratio: 9 / 15;
  border-radius: var(--raio-borda);
  overflow: hidden;
  position: relative;
  transition: var(--transicao-padrao);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.noticia-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sombra-padrao);
}
.noticia-img-wrapper { width: 100%; height: 100%; }
.noticia-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease-out; }
.noticia-card:hover .noticia-img-wrapper img { transform: scale(1.05); }
.noticia-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.2rem; color: var(--cor-branco);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
}
.noticia-titulo {
  font-size: 1.1rem; font-weight: 600; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}

/* Seção de Projetos Sociais */
.projetos-texto { font-size: 1.1rem; font-weight: 300; max-width: 800px; margin: 0 auto 3rem auto; }
.projetos-container .card {
  border-radius: var(--raio-borda);
  border: none;
  box-shadow: var(--sombra-padrao);
  transition: var(--transicao-padrao);
}
.projetos-container .card:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
.projetos-container .card-img-top { height: 180px; object-fit: cover; border-top-left-radius: var(--raio-borda); border-top-right-radius: var(--raio-borda); }

/* Seção de Licenciadas e Loteria (COM TAMANHO BEM MENOR) */
.logos-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 1.5rem;
  align-items: center;
}
.logos-container > a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
}
.logo-credenciada, .logo-convencional {
  width: auto;
  object-fit: contain;
  transition: var(--transicao-padrao);
  max-width: 100%;
}
.logo-credenciada:hover, .logo-convencional:hover {
  transform: scale(1.1);
}
.logo-credenciada {
  height: 30px; /* <- BEM MENOR */
}
.logo-convencional {
  max-height: 80px; /* <- BEM MENOR para mobile */
}

/* Seção FAQ */
.faq-section { display: flex; flex-direction: column; gap: 1rem; max-width: 800px; margin: 0 auto; }
.faq-section details {
  width: 100%; background-color: var(--cor-branco);
  border-radius: var(--raio-borda); padding: 1.2rem 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  border: 1px solid #eee; transition: var(--transicao-padrao);
}
.faq-section summary { list-style: none; cursor: pointer; font-weight: 700; font-size: 1.05rem; display: flex; align-items: center; justify-content: space-between; }
.faq-section summary::-webkit-details-marker { display: none; }
.faq-section .icon { font-size: 1.5rem; color: var(--cor-primaria); transition: transform 0.3s ease; }
.faq-section details[open] .icon { transform: rotate(45deg); }
.faq-answer {
  padding-top: 1rem; margin-top: 1rem; border-top: 1px solid #eee;
  font-size: 0.95rem; color: var(--cor-texto-claro); line-height: 1.6;
}
.faq-answer a { color: var(--cor-primaria); text-decoration: underline; }

/* --- 5. Estilos Responsivos (Desktop) --- */
@media (min-width: 769px) {
  .editoria { font-size: 2.2rem; }

  .logos-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3.5rem;
  }
  
  .logos-container > a {
    width: auto;
  }
  
  .noticia-card { flex-basis: 280px; }

  .logo-convencional {
    max-height: 110px; /* <- BEM MENOR para desktop */
  }
}
/* ===== VLTs (padronizado) ===== */
#vlt .vlt-sub{ color:var(--texto-suave, #6c757d); max-width:70ch; }

.vlt-card{
  background: var(--card-bg, #fff);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 16px;
  padding: 18px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.vlt-card:hover{ transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.08); }

.vlt-card-icon{
  width: 44px; height: 44px; border-radius: 12px; display:grid; place-items:center; margin-bottom: 10px;
  color:#fff; background: linear-gradient(135deg, #22b5c8, #0173bc);
}
.vlt-card-title{ font-weight: 700; font-size: 1rem; margin: 6px 0; }
.vlt-card-text{ font-size: .95rem; color: var(--texto-suave, #6c757d); margin-bottom: 8px; }
.vlt-link{ font-weight: 600; text-decoration: none; color: #0173bc; }
.vlt-link:hover{ text-decoration: underline; }

/* ======================================================= */
/* === CÓDIGO PARA ADICIONAR AO FINAL DE main-att.css === */
/* ======================================================= */

/* --- Títulos e Botões Globais (Melhorados) --- */
.section-title {
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  color: #212529;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  color: #5a6570;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Estilos para os Novos Cards de Projetos --- */
.projeto-card-home {
  display: block;
  text-decoration: none;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all 0.3s ease-in-out;
}
.projeto-card-home:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}
.projeto-img-wrapper {
  height: 250px;
}
.projeto-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.projeto-titulo {
  font-weight: 700;
  font-size: 1.1rem;
  color: #212529;
  padding: 20px;
  text-align: center;
}

/* --- Seção de Transparência --- */

/* Grid dos botões (Quadrados) */
.transp-grid {
    display: grid;
    /* Cria 3 colunas de tamanho igual */
    grid-template-columns: repeat(3, 1fr); 
    gap: 10px; /* Espaço entre os quadrados */
}

/* Responsividade para o Grid */
@media (max-width: 768px) {
    .transp-grid {
        /* Em celulares, muda para 2 colunas */
        grid-template-columns: repeat(2, 1fr);
    }
}

/* O "Quadrado" individual */
.transp-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa; /* Fundo cinza bem claro */
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px 10px;
    text-align: center;
    text-decoration: none;
    color: var(--cor-secundaria, #333); /* Usa sua cor secundária ou cinza escuro */
    transition: all 0.3s ease;
    aspect-ratio: 1 / 1; /* Força ser um quadrado perfeito */
}

.transp-tile:hover {
    background-color: var(--cor-primaria, #0056b3); /* Cor primária ao passar o mouse */
    color: #fff !important;
    transform: translateY(-3px); /* Leve subida */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: transparent;
}

/* Ícone dentro do quadrado */
.transp-tile i {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

/* Texto dentro do quadrado */
.transp-tile span {
    font-size: 0.8rem;
    line-height: 1.2;
    font-weight: 500;
}

/* Pequeno ajuste no espaçamento de letras para títulos pequenos */
.ls-1 {
    letter-spacing: 1px;
}