/* =============================================
   SINDCOM — estilos.css  |  Base Global
   Modernizado — todas as classes originais
   preservadas para compatibilidade total
   ============================================= */

/* ---- Google Font ---- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Sora:wght@700;800&display=swap');

/* ================================================
   VARIÁVEIS GLOBAIS
   ================================================ */
:root {
  --azul:         #0D3B6E;
  --azul-mid:     #1560A8;
  --azul-claro:   #2E86DE;
  --azul-link:    #1560A8;
  --vermelho:     #E63946;
  --amarelo:      #FFD60A;
  --verde:        #17A35A;
  --cinza-bg:     #F4F6F9;
  --cinza-card:   #FFFFFF;
  --cinza-borda:  #DDE2EC;
  --cinza-texto:  #4A5270;
  --texto:        #1A1E2A;
  --radius:       12px;
  --radius-sm:    8px;
  --sombra-sm:    0 2px 8px rgba(13,59,110,.08);
  --sombra-md:    0 6px 24px rgba(13,59,110,.13);
  --sombra-lg:    0 16px 48px rgba(13,59,110,.18);
  --transition:   .25s cubic-bezier(.4,0,.2,1);
  --fonte:        'Plus Jakarta Sans', 'Outfit', sans-serif;
}

/* ================================================
   RESET & BASE
   ================================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--fonte);
  margin: 0;
  padding: 0;
  background-color: var(--cinza-bg);
  background-image: none;
  color: var(--texto);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ================================================
   LINKS
   ================================================ */
a {
  text-decoration: none;
  color: var(--azul-link);
  transition: color var(--transition);
}
a:hover {
  color: var(--azul-claro);
}

/* ================================================
   BARRA DECORATIVA (topo/rodapé)
   ================================================ */
.barra {
  height: 5px;
  width: 100%;
  background: linear-gradient(90deg, var(--azul) 0%, var(--azul-claro) 55%, var(--amarelo) 100%);
  border: none;
}

/* ================================================
   WRAPPER PRINCIPAL
   ================================================ */
.site {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ================================================
   TIPOGRAFIA
   ================================================ */
h1 {
  font-family: 'Sora', var(--fonte);
  color: var(--azul);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
}

h2 {
  font-family: 'Sora', var(--fonte);
  color: var(--azul);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.25;
  position: relative;
  margin-bottom: 20px;
  padding-bottom: 12px;
}
h2::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--azul-claro);
  border-radius: 3px;
}

h3 {
  color: var(--azul);
  font-size: 1.05rem;
  font-weight: 700;
  position: relative;
  margin-bottom: 16px;
  padding-bottom: 10px;
}
h3::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--cinza-borda);
  border-radius: 2px;
}

hr {
  border: none;
  border-top: 1px solid var(--cinza-borda);
  margin: 20px 0;
}

/* ================================================
   GRIDS — COMPATIBILIDADE TOTAL
   ================================================ */
.conteudo {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.conteudo img {
  max-width: 50%;
  float: left;
  padding: 10px;
  border-radius: var(--radius-sm);
}

.coluna1 {
  display: flex;
  margin-top: 20px;
  margin-bottom: 20px;
  gap: 16px;
}

.colunas2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 10px 0;
  padding: 10px;
}

.pedidos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px 0 10px;
}

.colunas23 {
  display: grid;
  grid-template-columns: 1fr 4fr;
  gap: 10px;
  margin: 10px 0;
}

.colunas24 {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 20px;
  margin-bottom: 10px;
}

.colunas3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin: 20px 0 10px;
}

.colunas4 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 10px;
}

.colunas5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.colunas6 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.colunas42 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 20px 0 10px;
}

.colunas8 {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 20px;
  margin: 20px 0 10px;
}

/* Grid topo header */
.box1 { grid-area: box1; }
.box2 { grid-area: box2; }
.box3 { grid-area: box3; }

.colunas22 {
  display: grid;
  grid-template-rows: auto auto;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    'box1 box2'
    'box1 box3';
  gap: 10px;
  margin: 10px 0;
  align-items: center;
}

/* ================================================
   CORES DE FUNDO (classes utilitárias)
   ================================================ */
.amarelo {
  background-color: #FFFFF0;
  border-left: 3px solid var(--amarelo);
}
.vermelho {
  background-color: #F8F8F8;
}
.branco {
  background-color: #FFFFFF;
}
.cinza {
  background: linear-gradient(135deg, #F0F2F5 0%, #E4E7ED 100%);
}

/* ================================================
   CARDS / BOX
   ================================================ */
.box {
  padding: 14px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--sombra-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  overflow: hidden;
}
.box img {
  max-width: 100%;
  border-radius: var(--radius-sm);
}
.box:hover {
  box-shadow: var(--sombra-md);
  transform: translateY(-2px);
}

.box1 .box, .box2 .box {
  border-radius: var(--radius-sm);
}

/* ================================================
   ÍCONE
   ================================================ */
.icone {
  border: 1.5px dashed var(--cinza-borda);
  padding: 14px;
  text-align: center;
  border-radius: var(--radius-sm);
  color: var(--cinza-texto);
  transition: border-color var(--transition), color var(--transition);
}
.icone:hover {
  border-color: var(--azul-claro);
  color: var(--azul-claro);
}

/* ================================================
   TIPOGRAFIA ESPECIAL
   ================================================ */
.grande {
  font-size: 1.8em;
  font-weight: 700;
  color: var(--azul);
}

.titulogrande {
  font-family: 'Sora', var(--fonte);
  font-size: 1.5em;
  font-weight: 800;
  color: var(--azul);
  line-height: 1.25;
}

.titulomedio {
  font-size: 0.95em;
  font-weight: 700;
  color: var(--texto);
  line-height: 1.35;
}

.sombra {
  text-shadow: 0 2px 6px rgba(0,0,0,.15);
}

/* ================================================
   DESTAQUE / HERO IMAGE
   ================================================ */
.destaque {
  object-fit: cover;
  width: 100%;
  height: 400px;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(13,59,110,.85) 100%);
}

.destaque_subtitulo {
  position: absolute;
  padding: 16px;
  bottom: 0;
  left: 0;
  background: linear-gradient(to top, rgba(13,59,110,.9) 0%, transparent 100%);
  width: 100%;
  border-radius: 0 0 var(--radius) var(--radius);
}

/* ================================================
   CURTIDAS
   ================================================ */
.curtidas {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(6px);
  border-radius: 20px;
  box-shadow: var(--sombra-sm);
}
.curtidas button {
  background: #FFF0F0;
  color: var(--vermelho);
  border: 1.5px solid #FFCDD2;
  border-radius: 16px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  margin: 0;
  transition: var(--transition);
}
.curtidas button:hover {
  background: var(--vermelho);
  color: #fff;
  border-color: var(--vermelho);
}
.curtidas button:disabled {
  background: #E0E0E0;
  color: #999;
  border-color: #ccc;
  cursor: not-allowed;
}
.contador {
  margin-left: 2px;
  font-weight: 700;
  font-size: 13px;
  color: var(--cinza-texto);
}

/* ================================================
   BOTÕES GLOBAIS
   ================================================ */
button {
  font-family: var(--fonte);
  background: var(--azul-mid);
  color: #fff;
  padding: 8px 16px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  margin: 4px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
button:hover {
  background: var(--azul);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13,59,110,.2);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: none;
  background: var(--cinza-texto);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}
.btn-link:hover {
  background: var(--azul);
  color: #fff;
  transform: translateY(-1px);
}

/* ================================================
   BOTÃO VOLTAR AO TOPO
   ================================================ */
.btn-topo {
  position: fixed;
  bottom: 32px;
  right: 32px;
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--azul);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  box-shadow: var(--sombra-md);
  transition: var(--transition);
  z-index: 800;
  margin: 0;
  padding: 0;
}
.btn-topo:hover {
  background: var(--azul-claro);
  transform: translateY(-3px);
  opacity: 1;
}
.btn-topo.visible {
  display: flex;
}

/* ================================================
   BORDA DIREITA (cards de notícia lista)
   ================================================ */
.bordadireita {
  border-left: 4px solid var(--azul-claro);
  border-right: none;
  padding-left: 12px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ================================================
   LOGO
   ================================================ */
.logo {
  max-width: 100%;
  height: auto;
}

/* ================================================
   FOTO NOTÍCIA INTERNA
   ================================================ */
.fotonoticia {
  float: left;
  max-width: 30%;
  padding: 10px 16px 10px 0;
  border-radius: var(--radius-sm);
}

/* ================================================
   RODAPÉ
   ================================================ */
.rodape {
  margin: auto;
}
footer {
  color: var(--cinza-texto);
  width: 100%;
  padding: 24px 0 16px;
  font-size: 13px;
}
.links_rodape a {
  display: block;
  margin: 4px 0;
  color: var(--cinza-texto);
  font-size: 13px;
  transition: color var(--transition), padding-left var(--transition);
}
.links_rodape a:hover {
  color: var(--azul-claro);
  padding-left: 4px;
}

/* ================================================
   REDES SOCIAIS (ícones coloridos utilitários)
   ================================================ */
.linkedin  { color: #0077B5; }
.facebook  { color: #3B5998; }
.instagram { color: #C13584; }
.youtube   { color: #FF0000; }

/* ================================================
   SLIDESHOW / BANNERS
   ================================================ */
#slideshow {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  transition: opacity .8s ease-in-out;
  background-image: url(../banners/01.webp);
}
#slideshow img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#slideshow.fade-in  { opacity: 1; }
#slideshow.fade-out { opacity: 0; }

.banners {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  display: grid;
  width: 100%;
  grid-auto-flow: column;
  gap: 12px;
  padding: 4px 4px 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--azul-mid) var(--cinza-bg);
}

/* ================================================
   CAROUSEL / SCROLL
   ================================================ */
.container {
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: thin;
  scrollbar-color: var(--azul-mid) var(--cinza-bg);
}
.wrapper {
  display: inline-block;
}
.content {
  display: flex;
  gap: 10px;
}
.item {
  flex: 0 0 auto;
  width: 300px;
  height: 300px;
  text-align: center;
  border-radius: var(--radius);
  overflow: hidden;
}

/* ================================================
   VISIBILIDADE
   ================================================ */
.esconde      { display: none !important; }
.mostramobile { display: none; }

/* ================================================
   LEITURA DE NOTÍCIA
   ================================================ */
#lernoticia img {
  padding: 10px;
  max-width: 100%;
  border-radius: var(--radius-sm);
}

/* ================================================
   SCROLLBAR GLOBAL
   ================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--cinza-bg); }
::-webkit-scrollbar-thumb { background: var(--azul-mid); border-radius: 3px; }

/* ================================================
   RESPONSIVO — 768px
   ================================================ */
@media (max-width: 768px) {
  .item {
    width: 100%;
    margin-right: 0;
  }
}

/* ================================================
   RESPONSIVO — 600px (mobile)
   ================================================ */
@media screen and (max-width: 600px) {
  .site {
    width: 100%;
    padding: 0 12px;
  }

  .fotonoticia {
    float: none;
    max-width: 100%;
    padding: 0 0 10px;
  }

  .conteudo {
    grid-template-columns: 1fr;
  }
  .conteudo img {
    max-width: 100%;
    padding: 4px 0;
    float: none;
  }

  .coluna1     { flex-direction: column; }
  .colunas2    { grid-template-columns: 1fr; }
  .colunas23   { grid-template-columns: 1fr; }
  .colunas24   { grid-template-columns: 1fr; }
  .colunas3    { grid-template-columns: 1fr; }
  .colunas4    { grid-template-columns: 1fr 1fr; }
  .colunas5    { grid-template-columns: 1fr; }
  .colunas6    { grid-template-columns: 1fr 1fr 1fr; }
  .colunas42   { grid-template-columns: 1fr 1fr; }
  .colunas8    { grid-template-columns: 1fr 1fr; }

  .colunas22 {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      'box1 box2'
      'box3 box3';
  }

  #slideshow {
    background-image: url(../banners/01_mobile.webp);
  }

  .topo {
    margin-bottom: 0;
    text-align: center;
  }

  .esconde      { display: none !important; }
  .mostramobile { display: block; }

  .logo { max-width: 60%; }

  .destaque { height: 240px; }

  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.2rem; }

  .btn-topo {
    bottom: 20px;
    right: 16px;
    width: 42px;
    height: 42px;
    font-size: 16px;
  }
}