/* =====================================================================
   Visual do site da 7ª Região Tradicionalista (v2 – "galpão moderno")
   Cores da tradição gaúcha: vermelho, verde e amarelo da bandeira do RS,
   sobre tons de couro, madeira e papel antigo (os mesmos do banner).
   Sem bibliotecas externas: fontes guardadas no próprio site (recursos/fontes),
   então funciona offline e não envia dados de visitantes a terceiros (LGPD).
   ===================================================================== */

/* ---------- Fontes (licença livre SIL OFL – ver fontes/LICENCA-fontes.txt) ---------- */
@font-face { font-family: "Playfair Display"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("fontes/playfair-display-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("fontes/playfair-display-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 400; font-style: italic; font-display: swap;
  src: url("fontes/playfair-display-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("fontes/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("fontes/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("fontes/inter-latin-700-normal.woff2") format("woff2"); }

/* ---------- Cores e medidas ---------- */
:root {
  --vermelho: #8b1e1e;          /* vermelho da bandeira / do site original */
  --vermelho-escuro: #6e1515;
  --verde: #2f6b2f;
  --verde-claro: #3f8a3f;
  --ouro: #c9a227;              /* amarelo-ouro da bandeira */
  --ouro-claro: #e2c25a;
  --madeira: #2a1c12;           /* tons do banner (madeira e couro) */
  --couro: #5a3b24;
  --fundo: #f1eadf;             /* papel antigo, um pouco mais claro que o original */
  --papel: #fffdf8;
  --texto: #2b2118;
  --suave: #6b5d4f;
  --borda: #e2d6c3;
  --sombra: 0 1px 2px rgba(42, 28, 18, .06), 0 8px 24px rgba(42, 28, 18, .08);
  --sombra-forte: 0 2px 4px rgba(42, 28, 18, .08), 0 18px 40px rgba(42, 28, 18, .16);
  --raio: 14px;
  --largura: 1180px;
  --titulo: "Playfair Display", Georgia, "Times New Roman", serif;
  --corpo: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  --faixa-rs: linear-gradient(90deg, var(--verde) 0 33.3%, var(--vermelho) 33.3% 66.6%, var(--ouro) 66.6%);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; color: var(--texto); font-family: var(--corpo); font-size: 17px; line-height: 1.7;
  background:
    radial-gradient(1200px 500px at 50% -200px, rgba(201, 162, 39, .10), transparent 70%),
    var(--fundo);
}
img { max-width: 100%; height: auto; }
a { color: var(--vermelho); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--verde); }
h1, h2, h3 { font-family: var(--titulo); font-weight: 700; line-height: 1.2; color: var(--madeira); }
:focus-visible { outline: 3px solid var(--ouro); outline-offset: 2px; border-radius: 4px; }
.largura { max-width: var(--largura); margin: 0 auto; padding: 0 16px; }

/* Link "pular para o conteúdo" (aparece só ao navegar pelo teclado) */
.pular { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--papel); padding: 8px 14px;
  border-radius: 8px; box-shadow: var(--sombra); }
.pular:focus { top: 8px; }

/* ---------- Faixa superior (cores do RS + MTG) ---------- */
.barra-mtg {
  background: var(--madeira); color: #e9dcc6; font-size: 13px; letter-spacing: .3px;
  border-top: 5px solid transparent; border-image: var(--faixa-rs) 1;
}
.barra-mtg .largura { display: flex; justify-content: space-between; align-items: center; gap: 12px;
  min-height: 36px; flex-wrap: wrap; }
.barra-mtg a { color: var(--ouro-claro); text-decoration: none; font-weight: 600; }
.barra-mtg a:hover { color: #fff; }

/* ---------- Cabeçalho com o banner ---------- */
.topo {
  padding: 22px 16px 26px; text-align: center;
  background:
    linear-gradient(180deg, rgba(42, 28, 18, .92), rgba(90, 59, 36, .88)),
    repeating-linear-gradient(90deg, #3a2618 0 2px, #2f1f14 2px 7px, #352315 7px 11px);
}
.link-banner { display: inline-block; max-width: 960px; width: 100%; transition: transform .3s ease; }
.link-banner:hover { transform: translateY(-2px); }
.banner { display: block; width: 100%; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.banner-texto { font-family: var(--titulo); font-size: 2.2rem; color: #fff; margin: 0; }
.mtg { display: none; }   /* versão antiga do link do MTG (agora fica na faixa superior) */

/* ---------- Menu (preso no alto ao rolar) ----------
   Computador: barra vinho com letras espaçadas, sublinhado dourado animado e submenus em
   "cartão" com um ícone para cada página. Celular: gaveta lateral que desliza da direita. */
.menu {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(180deg, var(--vermelho), var(--vermelho-escuro));
  box-shadow: inset 0 -1px 0 rgba(226, 194, 90, .55), 0 6px 18px rgba(42, 28, 18, .18);
  transition: background .3s ease, box-shadow .3s ease;
}
.menu-barra { max-width: var(--largura); margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 8px; min-height: 64px; }
.menu .menu-marca { display: flex; width: auto; align-items: center; gap: 12px; color: #fff; text-decoration: none; padding: 8px 0;
  font-family: var(--titulo); font-weight: 700; font-size: 20px; letter-spacing: 0; text-transform: none; flex: 0 0 auto; margin-right: auto; }
.menu-marca img { width: 44px; height: 44px; padding: 3px; background: var(--papel); border-radius: 50%;
  box-shadow: 0 0 0 2px var(--ouro), 0 4px 10px rgba(0, 0, 0, .25); transition: transform .4s ease; }
.menu .menu-marca:hover { color: var(--ouro-claro); }
.menu .menu-marca:hover img { transform: rotate(-8deg) scale(1.05); }
.menu-barra > ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; }
.menu li { position: relative; }
.menu a, .menu button {
  display: flex; align-items: center; gap: 6px; padding: 22px 14px; font: inherit; font-size: 13px; font-weight: 600;
  letter-spacing: 1.3px; text-transform: uppercase; color: #f6e6d2; text-decoration: none; background: none; border: 0;
  cursor: pointer; position: relative; transition: color .2s ease;
}
.menu a:hover, .menu button:hover, .menu li.aberto > button { color: #fff; }
/* setinha do submenu (desenhada; gira ao abrir) */
.menu .tem-sub > button span { font-size: 0; width: 7px; height: 7px; margin: -3px 0 0 2px; border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .25s ease; opacity: .85; }
.menu li.aberto > button span, .menu li.tem-sub:hover > button span { transform: rotate(-135deg); margin-top: 4px; }
/* sublinhado dourado que cresce do centro; fica fixo na seção da página atual */
.menu-barra > ul > li > a::after, .menu-barra > ul > li > button::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 14px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--ouro), var(--ouro-claro)); transform: scaleX(0); transition: transform .3s ease;
}
.menu-barra > ul > li > a:hover::after, .menu-barra > ul > li > button:hover::after, .menu li.aberto > button::after,
.menu-barra > ul > li.atual > a::after, .menu-barra > ul > li.atual > button::after { transform: scaleX(1); }
.menu-barra > ul > li.atual > a, .menu-barra > ul > li.atual > button { color: var(--ouro-claro); }
/* submenu em "cartão", com uma pontinha apontando para o item */
.menu li ul {
  display: none; list-style: none; margin: 0; padding: 10px; position: absolute; left: 50%; top: calc(100% - 6px);
  min-width: 270px; background: var(--papel); border-radius: 16px; transform: translateX(-50%);
  box-shadow: 0 24px 48px rgba(42, 28, 18, .22), 0 0 0 1px rgba(201, 162, 39, .35); animation: surgir .22s ease;
}
.menu li ul::before { content: ""; position: absolute; top: -7px; left: 50%; width: 14px; height: 14px; margin-left: -7px;
  background: var(--papel); transform: rotate(45deg); box-shadow: -1px -1px 0 rgba(201, 162, 39, .35); border-radius: 3px 0 0 0; }
.menu li ul::after { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }  /* ponte: o mouse não "cai" no vão */
.menu li ul a {
  color: var(--texto); font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none; padding: 9px 12px; gap: 12px;
  border-radius: 10px; transition: background .2s ease, color .2s ease, transform .2s ease;
}
.menu li ul a::before {
  content: ""; flex: none; width: 34px; height: 34px; border-radius: 10px;
  background: #f5ecdc var(--icone, none) center / 18px no-repeat; transition: background-color .2s ease;
}
.menu li ul a:hover, .menu li ul a[aria-current="page"] { background: #f7efe1; color: var(--vermelho); transform: translateX(3px); }
.menu li ul a:hover::before { background-color: #f0dfc0; }
.menu li.tem-sub:hover > ul, .menu li.aberto > ul { display: block; }
.abrir-menu, .gaveta-topo { display: none !important; }
.menu.preso { box-shadow: inset 0 -1px 0 rgba(226, 194, 90, .55), 0 10px 26px rgba(42, 28, 18, .28); }
/* ao rolar, no computador, a barra fica levemente translúcida (efeito vidro) */
@media (min-width: 901px) {
  @supports (backdrop-filter: blur(1px)) {
    .menu.preso { background: rgba(110, 21, 21, .9); backdrop-filter: saturate(1.4) blur(10px); }
  }
}
@keyframes surgir { from { opacity: 0; translate: 0 -8px; } to { opacity: 1; translate: 0 0; } }
/* ícone de cada página nos submenus */
.menu li ul a[href*="nossa-historia/"], .menu li ul a[data-pagina="nossa-historia"] { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b1e1e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.menu li ul a[href*="artistico/"], .menu li ul a[data-pagina="artistico"] { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b1e1e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18V5l12-2v13'/%3E%3Ccircle cx='6' cy='18' r='3'/%3E%3Ccircle cx='18' cy='16' r='3'/%3E%3C/svg%3E"); }
.menu li ul a[href*="campeiro/"], .menu li ul a[data-pagina="campeiro"] { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b1e1e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3v9a6 6 0 0 0 12 0V3'/%3E%3Cpath d='M6 7h2M16 7h2M6 11h2M16 11h2'/%3E%3C/svg%3E"); }
.menu li ul a[href*="cultural/"], .menu li ul a[data-pagina="cultural"] { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b1e1e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 4h6a4 4 0 0 1 4 4v13a3 3 0 0 0-3-3H2z'/%3E%3Cpath d='M22 4h-6a4 4 0 0 0-4 4v13a3 3 0 0 1 3-3h7z'/%3E%3C/svg%3E"); }
.menu li ul a[href*="esportivo/"], .menu li ul a[data-pagina="esportivo"] { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b1e1e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 21h8M12 17v4M7 4h10v5a5 5 0 0 1-10 0z'/%3E%3Cpath d='M17 5h3v2a3 3 0 0 1-3 3M7 5H4v2a3 3 0 0 0 3 3'/%3E%3C/svg%3E"); }
.menu li ul a[href*="cavalgadas/"], .menu li ul a[data-pagina="cavalgadas"] { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b1e1e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1z'/%3E%3Cpath d='M4 22v-7'/%3E%3C/svg%3E"); }
.menu li ul a[href*="regulamentos/"], .menu li ul a[data-pagina="regulamentos"] { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b1e1e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6M16 13H8M16 17H8M10 9H8'/%3E%3C/svg%3E"); }
.menu li ul a[href*="cartao-tradicionalista/"], .menu li ul a[data-pagina="cartao-tradicionalista"] { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b1e1e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Cpath d='M2 10h20M6 15h4'/%3E%3C/svg%3E"); }
.menu li ul a[href*="entidades-filiadas/"], .menu li ul a[data-pagina="entidades-filiadas"] { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b1e1e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.9M16 3.1a4 4 0 0 1 0 7.8'/%3E%3C/svg%3E"); }
.menu li ul a[href*="eventos-filiados/"], .menu li ul a[data-pagina="eventos-filiados"] { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b1e1e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E"); }

/* ---------- Conteúdo ---------- */
.conteudo { max-width: var(--largura); margin: 0 auto; padding: 36px 16px 64px; }
.texto {
  background: var(--papel); padding: 40px 48px; border-radius: var(--raio); overflow-wrap: anywhere;
  max-width: 960px; margin: 0 auto;   /* linhas não muito longas: leitura mais confortável */
  box-shadow: var(--sombra); border: 1px solid var(--borda); position: relative; overflow: hidden;
}
.texto::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--faixa-rs); }
.texto h1 { margin: 0 0 10px; font-size: clamp(28px, 4vw, 40px); }
/* Enfeite sob o título: faixa com as cores do RS seguida de um fio dourado */
.texto h1::after {
  content: ""; display: block; width: 130px; height: 4px; margin-top: 16px;
  background:
    var(--faixa-rs) left center / 54px 4px no-repeat,
    linear-gradient(var(--ouro), var(--ouro)) 62px center / 68px 1px no-repeat;
}
.texto h2 { font-size: 26px; margin: 32px 0 10px; }
.texto h3 { font-size: 21px; }
.data { color: var(--suave); margin-top: 4px; font-size: 15px; font-weight: 600; letter-spacing: .3px; }
.destaque { display: block; margin: 8px auto 24px; border-radius: 12px; box-shadow: var(--sombra); }
.texto img { display: block; margin: 16px auto; border-radius: 8px; }
.texto iframe { max-width: 100%; border-radius: 10px; }
.texto blockquote { margin: 20px 0; padding: 12px 20px; border-left: 4px solid var(--ouro); background: #faf4e8;
  border-radius: 0 10px 10px 0; font-family: var(--titulo); font-style: italic; font-size: 19px; }
.tabela { overflow-x: auto; border-radius: 10px; border: 1px solid var(--borda); margin: 16px 0; }
table { border-collapse: collapse; width: 100%; font-size: 15px; background: #fff; }
td, th { border-bottom: 1px solid var(--borda); padding: 10px 12px; vertical-align: top; text-align: left; }
th { background: var(--madeira); color: #f3e7d3; font-weight: 600; }
tr:nth-child(even) td { background: #fbf7f0; }
.aviso { background: #fff3cd; padding: 14px 16px; border-radius: 10px; border-left: 4px solid var(--ouro); }
.voltar { margin-top: 40px; }
.voltar a { font-weight: 600; text-decoration: none; }

/* Títulos de seção da página inicial e da lista de notícias */
.titulo-secao, .conteudo > h1, .conteudo > h2 {
  display: flex; align-items: center; gap: 14px; font-size: clamp(26px, 3.4vw, 34px); margin: 48px 0 22px;
}
.titulo-secao::after, .conteudo > h2::after {
  content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, var(--ouro), transparent);
}
.conteudo > h1 { margin-top: 0; }

/* ---------- Página inicial: destaque com fotos ---------- */
.hero { position: relative; border-radius: 20px; overflow: hidden; box-shadow: var(--sombra-forte); background: var(--madeira); }
.carrossel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0; }
.carrossel::-webkit-scrollbar { display: none; }
.carrossel img { flex: 0 0 100%; width: 100%; aspect-ratio: 16 / 7; object-fit: cover; scroll-snap-align: start; display: block; }
.hero-texto {
  position: absolute; inset: auto 0 0 0; padding: 80px 48px 40px; color: #fff; pointer-events: none;
  background: linear-gradient(0deg, rgba(25, 15, 8, .88) 0%, rgba(25, 15, 8, .55) 55%, transparent 100%);
}
.hero-texto > * { pointer-events: auto; }
.sobretitulo { display: inline-block; margin: 0 0 10px; padding: 4px 12px; border-radius: 999px; font-size: 13px;
  font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; background: rgba(201, 162, 39, .92); color: var(--madeira); }
.hero-texto h1 { color: #fff; margin: 0 0 8px; font-size: clamp(30px, 5vw, 54px); text-shadow: 0 2px 16px rgba(0, 0, 0, .5); }
.hero-texto .lema { margin: 0 0 22px; max-width: 640px; font-family: var(--titulo); font-style: italic; font-size: clamp(16px, 2vw, 20px);
  color: #f3e7d3; }
.hero-botoes { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-pontos { position: absolute; right: 24px; bottom: 24px; display: flex; gap: 8px; }
.hero-pontos button { width: 12px; height: 12px; padding: 0; border-radius: 999px; border: 2px solid #fff; background: transparent;
  cursor: pointer; transition: width .25s ease, background .25s ease; }
.hero-pontos button[aria-current="true"] { width: 30px; background: var(--ouro-claro); border-color: var(--ouro-claro); }

/* ---------- Página inicial: atalhos (eventos e participação) ---------- */
.atalhos-grade { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.atalho {
  display: flex; align-items: center; gap: 14px; padding: 16px 40px 16px 16px; min-height: 84px;
  background: var(--papel); border: 1px solid var(--borda); border-radius: var(--raio); text-decoration: none; color: var(--texto);
  box-shadow: var(--sombra); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; position: relative; overflow: hidden;
}
.atalho::after { content: "→"; position: absolute; right: 16px; top: 50%; margin-top: -13px; color: var(--ouro); font-weight: 700;
  transition: transform .2s ease; }
.atalho:hover { transform: translateY(-4px); box-shadow: var(--sombra-forte); border-color: var(--ouro); color: var(--vermelho); }
.atalho:hover::after { transform: translateX(4px); }
.atalho svg { flex: none; width: 46px; height: 46px; padding: 9px; border-radius: 12px; color: #fff; background: var(--vermelho);
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.atalho:nth-child(3n+2) svg { background: var(--verde); }
.atalho:nth-child(3n+3) svg { background: var(--ouro); color: var(--madeira); }
.atalho strong { font-family: var(--titulo); font-size: 18px; line-height: 1.25; }

/* ---------- Cartões de notícia ---------- */
.grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }
.cartao {
  background: var(--papel); border-radius: var(--raio); overflow: hidden; display: flex; flex-direction: column;
  border: 1px solid var(--borda); box-shadow: var(--sombra); position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
}
.cartao:hover { transform: translateY(-5px); box-shadow: var(--sombra-forte); }
.cartao img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; transition: transform .5s ease; }
.cartao:hover img { transform: scale(1.04); }
.cartao > div { padding: 18px 20px 22px; background: var(--papel); position: relative; z-index: 1; flex: 1; }
.cartao > .sem-foto {
  aspect-ratio: 16 / 9; padding: 0; display: flex; align-items: center; justify-content: center; flex: none;
  font-family: var(--titulo); font-size: 40px; font-weight: 700; color: #fff8e8; letter-spacing: 2px;
  background: var(--faixa-rs); text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}
.cartao time { display: inline-block; color: var(--verde); font-size: 13px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; }
.cartao h3 { margin: 6px 0 8px; font-size: 20px; line-height: 1.3; }
.cartao h3 a { color: var(--madeira); text-decoration: none; }
.cartao h3 a::before { content: ""; position: absolute; inset: 0; z-index: 2; }  /* o cartão inteiro vira link */
.cartao h3 a:hover { color: var(--vermelho); }
.cartao p { margin: 0; font-size: 15px; color: var(--suave); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* Na página inicial, a notícia mais recente aparece em destaque (maior) */
@media (min-width: 901px) {
  .grade.com-destaque > .cartao:first-child { grid-column: span 2; grid-row: span 2; }
  /* a foto ocupa a altura que sobrar, para o cartão grande não ficar com espaço vazio */
  .grade.com-destaque > .cartao:first-child img, .grade.com-destaque > .cartao:first-child .sem-foto { aspect-ratio: auto; flex: 1; min-height: 300px; }
  .grade.com-destaque > .cartao:first-child > div { flex: none; }
  .grade.com-destaque > .cartao:first-child h3 { font-size: 28px; }
  .grade.com-destaque > .cartao:first-child p { -webkit-line-clamp: 5; font-size: 16px; }
}
.mais { text-align: center; margin-top: 36px; }

/* ---------- Botões ---------- */
.botao {
  display: inline-flex; align-items: center; gap: 8px; background: var(--vermelho); color: #fff; padding: 12px 26px;
  border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 15px; letter-spacing: .3px; border: 2px solid var(--vermelho);
  box-shadow: 0 6px 16px rgba(139, 30, 30, .28); transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.botao:hover { background: var(--verde); border-color: var(--verde); color: #fff; transform: translateY(-2px); }
.botao.claro { background: transparent; border-color: rgba(255, 255, 255, .85); color: #fff; box-shadow: none; }
.botao.claro:hover { background: #fff; color: var(--madeira); border-color: #fff; }

/* ---------- Acervo de documentos ---------- */
details { background: var(--papel); border: 1px solid var(--borda); border-radius: 12px; margin: 10px 0; padding: 12px 18px; box-shadow: var(--sombra); }
details[open] { border-color: var(--ouro); }
summary { cursor: pointer; font-weight: 700; font-family: var(--titulo); font-size: 18px; }
summary::marker { color: var(--vermelho); }
.docs { columns: 2 300px; font-size: 15px; }

/* ---------- Galeria de fotos das notícias ---------- */
.galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-top: 28px; }
.galeria a { display: block; border-radius: 10px; overflow: hidden; box-shadow: var(--sombra); }
.galeria img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0; margin: 0; transition: transform .35s ease; }
.galeria a:hover img { transform: scale(1.06); }
.anexos { list-style: none; padding: 0; }
.anexos a { display: inline-block; padding: 8px 14px; margin: 4px 0; border-radius: 10px; background: #f5ecdc; text-decoration: none; font-weight: 600; }

/* ---------- Rodapé ---------- */
.rodape {
  margin-top: 24px; padding: 56px 16px 28px; font-size: 15px; color: #e9dcc6; position: relative;
  background:
    radial-gradient(800px 300px at 15% 0%, rgba(201, 162, 39, .12), transparent 70%),
    linear-gradient(180deg, #2f2015, var(--madeira));
}
.rodape::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: var(--faixa-rs); }
.rodape .colunas { max-width: var(--largura); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 40px; }
.rodape h2 { font-size: 20px; margin: 0 0 14px; color: var(--ouro-claro); }
.rodape section > h2:not(:first-child) { margin-top: 28px; }
.rodape p { margin: 0 0 12px; }
.rodape strong { color: #fff; }
.rodape a { color: #f3e7d3; }
.rodape a:hover { color: var(--ouro-claro); }
.rodape blockquote { margin: 0 0 18px; font-family: var(--titulo); font-style: italic; font-size: 19px; line-height: 1.5; color: #fff; }
.rodape cite { display: block; font-family: var(--corpo); font-style: normal; font-size: 13px; color: #bfae94; margin-top: 8px; }
/* Botão do WhatsApp (telefone) */
.rodape a[href^="https://wa.me/"] {
  display: inline-flex; align-items: center; gap: 8px; margin: 4px 0; padding: 7px 16px 7px 12px; border-radius: 999px;
  background: #1f8f4e; color: #fff; font-weight: 700; text-decoration: none; transition: background .2s ease;
}
.rodape a[href^="https://wa.me/"]::before {
  content: ""; width: 18px; height: 18px; flex: none;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21l1.7-5A8.5 8.5 0 1 1 8 19.3z'/%3E%3Cpath d='M9 9.5c.3 2 1.8 3.8 4 4.6l1.2-1.1 2 .9-.4 1.6c-3.4.2-7.1-3.2-7.3-6.6l1.6-.4.9 2z' fill='white' stroke='none'/%3E%3C/svg%3E");
}
.rodape a[href^="https://wa.me/"]:hover { background: #25a35b; color: #fff; }
.links-rodape a { white-space: nowrap; }
.pequeno { color: #bfae94; font-size: 13px; text-align: center; margin: 40px auto 0 !important; padding-top: 22px;
  border-top: 1px solid rgba(233, 220, 198, .15); max-width: var(--largura); }

/* Botão "voltar ao topo" (criado pelo site.js) */
.ao-topo {
  position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: var(--vermelho); color: #fff; font-size: 20px; cursor: pointer; box-shadow: var(--sombra-forte);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s ease, transform .25s ease;
}
.ao-topo.visivel { opacity: 1; transform: none; pointer-events: auto; }
.ao-topo:hover { background: var(--verde); }

/* Aparecer suave ao rolar (só com JavaScript ligado e sem "reduzir movimento") */
.js .revelar { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .revelar.visto { opacity: 1; transform: none; }

/* ---------- Celular e tablet ---------- */
@media (max-width: 1060px) and (min-width: 901px) {
  .menu-marca span { display: none; }
  .menu a, .menu button { padding: 22px 9px; letter-spacing: .8px; font-size: 12.5px; }
  .menu-barra > ul > li > a::after, .menu-barra > ul > li > button::after { left: 9px; right: 9px; }
}
@media (max-width: 900px) {
  .atalhos-grade { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  body { font-size: 16px; }
  .barra-mtg .largura { justify-content: center; text-align: center; min-height: 32px; font-size: 12px; }
  .barra-mtg span { display: none; }
  .topo { padding: 12px 10px 14px; }
  .banner { border-radius: 8px; }
  .menu-barra { min-height: 60px; }
  .menu-marca span { display: inline; font-size: 18px; }
  .menu-marca img { width: 40px; height: 40px; }
  /* botão Menu: três tracinhos que viram um "X" */
  .menu .gaveta-topo { display: flex !important; }
  .menu .abrir-menu { display: inline-flex !important; width: auto; gap: 10px; padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; font-size: 13px; letter-spacing: 1.5px; color: #fff; }
  .hamburguer, .hamburguer::before, .hamburguer::after { display: block; width: 18px; height: 2px; background: currentColor;
    border-radius: 2px; position: relative; transition: transform .3s ease, background .3s ease; }
  .hamburguer::before, .hamburguer::after { content: ""; position: absolute; left: 0; }
  .hamburguer::before { top: -6px; } .hamburguer::after { top: 6px; }
  .menu.aberto .hamburguer { background: transparent; }
  .menu.aberto .hamburguer::before { transform: translateY(6px) rotate(45deg); }
  .menu.aberto .hamburguer::after { transform: translateY(-6px) rotate(-45deg); }
  /* fundo escurecido atrás da gaveta (tocar nele fecha o menu) */
  .menu::before { content: ""; position: fixed; inset: 0; z-index: 1; background: rgba(20, 12, 6, .55); opacity: 0;
    visibility: hidden; transition: opacity .3s ease, visibility .3s; }
  .menu.aberto::before { opacity: 1; visibility: visible; }
  /* gaveta lateral que desliza da direita */
  .menu-barra > ul {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 2; width: min(86vw, 360px); display: flex; flex-direction: column;
    flex-wrap: nowrap; justify-content: flex-start; padding: 14px 18px 28px; overflow-y: auto; overscroll-behavior: contain;
    background: radial-gradient(400px 260px at 100% 0%, rgba(201, 162, 39, .18), transparent 70%), linear-gradient(180deg, #3a2618, var(--madeira));
    box-shadow: -20px 0 40px rgba(0, 0, 0, .35);
    border-left: 4px solid; border-image: linear-gradient(180deg, var(--verde) 0 33.3%, var(--vermelho) 33.3% 66.6%, var(--ouro) 66.6%) 1;
    transform: translateX(105%); visibility: hidden; transition: transform .35s cubic-bezier(.2, .8, .2, 1), visibility .35s;
  }
  .menu.aberto .menu-barra > ul { transform: none; visibility: visible; }
  .menu-barra > ul > li { border-bottom: 1px solid rgba(233, 220, 198, .12); }
  /* topo da gaveta: logo + botão "Fechar" (criados pelo site.js) */
  .menu-barra > ul > li.gaveta-topo { display: flex; align-items: center; justify-content: space-between; padding: 4px 0 16px;
    margin-bottom: 8px; border-bottom: 1px solid rgba(226, 194, 90, .35); }
  .gaveta-topo img { width: 44px; height: 44px; padding: 3px; background: var(--papel); border-radius: 50%; box-shadow: 0 0 0 2px var(--ouro); }
  .menu .fechar-menu { width: auto; font-family: var(--corpo); font-weight: 700; padding: 10px 14px; gap: 8px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px;
    font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: #fff; }
  .menu-barra > ul > li > a, .menu-barra > ul > li > button {
    width: 100%; justify-content: space-between; padding: 16px 6px; font-family: var(--titulo); font-size: 21px; font-weight: 600;
    letter-spacing: 0; text-transform: none; color: #f6e6d2; text-align: left;
  }
  .menu-barra > ul > li > a::after, .menu-barra > ul > li > button::after { display: none; }
  .menu-barra > ul > li.atual > a, .menu-barra > ul > li.atual > button { color: var(--ouro-claro); }
  .menu .tem-sub > button span { width: 9px; height: 9px; }
  /* submenus viram "sanfona" dentro da gaveta */
  .menu li ul { position: static; transform: none; min-width: 0; padding: 0 0 12px; background: none; box-shadow: none;
    border-radius: 0; animation: none; }
  .menu li ul::before, .menu li ul::after { display: none; }
  .menu li ul a { color: #e9dcc6; font-size: 16px; padding: 8px 6px; }
  .menu li ul a::before { width: 32px; height: 32px; background-color: rgba(246, 230, 210, .92); }
  .menu li ul a:hover, .menu li ul a[aria-current="page"] { background: rgba(255, 255, 255, .07); color: #fff; }
  /* No celular não existe "passar o mouse": o submenu abre só ao tocar.
     (mesma força de regra que o :hover, e vem depois, por isso vence) */
  .menu li.tem-sub:hover > ul { display: none; }
  .menu li.tem-sub.aberto > ul { display: block; }
  .menu li.tem-sub:hover > button span { transform: rotate(45deg); margin-top: -3px; }
  .menu li.tem-sub.aberto > button span { transform: rotate(-135deg); margin-top: 4px; }
  html.menu-aberto { overflow: hidden; }   /* a página não rola por trás da gaveta */
  .conteudo { padding: 20px 12px 48px; }
  .texto { padding: 26px 18px; border-radius: 12px; }
  .hero { border-radius: 14px; }
  .carrossel img { aspect-ratio: 16 / 9; }
  .hero-texto { position: static; padding: 18px 18px 22px; background: linear-gradient(180deg, #3a2618, var(--madeira)); }
  .hero-texto h1 { font-size: 30px; }
  .hero-texto .lema { display: none; }
  .sobretitulo { font-size: 10px; letter-spacing: .4px; padding: 4px 10px; }
  .hero-botoes { gap: 10px; }
  .hero-botoes .botao { flex: 1; justify-content: center; text-align: center; white-space: nowrap; padding: 11px 12px; font-size: 14px; }
  .hero-pontos { right: 14px; bottom: auto; top: 14px; }
  .botao { padding: 10px 20px; }
  .atalhos-grade { gap: 10px; }
  .atalho { flex-direction: column; align-items: flex-start; gap: 10px; min-height: 112px; padding: 14px; }
  .atalho::after { top: auto; bottom: 10px; margin-top: 0; }
  .atalho strong { font-size: 16px; }
  .rodape { padding-top: 44px; }
  .rodape .colunas { gap: 28px; }
}

/* Celular (tela estreita): foto do destaque mais alta */
@media (max-width: 600px) {
  .carrossel img { aspect-ratio: 4 / 3; }
}

/* Quem pediu ao sistema para reduzir animações não vê movimento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .revelar { opacity: 1; transform: none; }
}
