/* Site William tRAPo. Medidas copiadas do layout Elementor original:
   desktop a partir de 1025px; de 768 a 1024px o original já usava o layout empilhado (com fontes maiores);
   celular até 767px. */

@font-face { font-family: 'Shadows Into Light'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/shadows-into-light-latin-400.woff2) format('woff2'); }
@font-face { font-family: 'Nanum Gothic'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/nanum-gothic-latin-400.woff2) format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/montserrat-latin-var.woff2) format('woff2'); }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/roboto-latin-var.woff2) format('woff2'); }

:root {
  --preto: #000;
  --creme: #fef8ee;
  --cinza-texto: #dadada;
  --vermelho: #cb3522;
  --fundo-apoio: #f7f7f7;
  --texto-claro: #333;
  --sistema: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { display: flex; flex-direction: column; min-height: 100vh; margin: 0; font-family: var(--sistema); font-size: 16px; line-height: 1.5; color: var(--texto-claro); background: #fff; }
main { flex: 1 0 auto; }
body.escuro { background: var(--preto); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, p, figure { margin: 0; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid #c36; outline-offset: 2px; }

/* ---------- Topo ---------- */
.topo { height: 70px; padding: 9px 0 0 12px; background: var(--preto); }
.topo__nome { font: 600 50px/50px 'Shadows Into Light', cursive; letter-spacing: 4px; color: #fff; }
.topo__nome a { text-decoration: none; }

/* ---------- Página inicial: exposição ---------- */
.exposicao { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; min-height: 100vh; background: var(--preto); }

/* flex: as margens entre título, linha e texto não colapsam (como nas colunas do Elementor) */
.intro { display: flex; flex-direction: column; padding: 10px; margin: -12% 5% 0 0; }
.intro h1 { padding: 5px; margin-bottom: 20px; font: 300 19px/42px 'Nanum Gothic', sans-serif; letter-spacing: .75px; text-transform: uppercase; color: var(--creme); }
.intro__linha { width: 9.75%; margin: 10px 0 30px; border: 0; border-top: 1px solid var(--vermelho); }
.intro p { padding: 5px; margin-bottom: 14.4px; font: 400 16px/26px Montserrat, sans-serif; letter-spacing: .76px; color: var(--cinza-texto); text-align: justify; }

.expo { padding: 10px; }
.expo__capa { position: relative; display: block; margin-bottom: 14px; }
.expo__capa img { width: 100%; }
.expo__titulo { font: 300 25px/25px 'Nanum Gothic', sans-serif; color: #fff; text-align: center; }

/* Dica "EXPOSIÇÃO 1/2" ao passar o mouse, como no original */
@media (hover: hover) {
  .expo__capa::before, .expo__capa::after { position: absolute; left: 50%; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
  .expo__capa::after { content: attr(data-dica); bottom: calc(100% + 10px); transform: translate(-50%, 4px); padding: 6px 16px; border-radius: 3px; background: #333; color: #fff; font: 400 14px/1.4 Roboto, sans-serif; white-space: nowrap; }
  .expo__capa::before { content: ''; bottom: calc(100% + 4px); transform: translate(-50%, 4px); border: 6px solid transparent; border-bottom: 0; border-top-color: #333; }
  .expo__capa:hover::before, .expo__capa:hover::after, .expo__capa:focus-visible::before, .expo__capa:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------- Apoio (logos da Lei Aldir Blanc) ---------- */
.apoio { display: flex; align-items: flex-start; background: var(--fundo-apoio); }
.apoio__col { padding: 10px; }
.apoio__col--federal { flex: 0 0 42.3%; }
.apoio__col--estadual { flex: 0 0 25.07%; }
.apoio__col--texto { flex: 0 0 32.3%; }
.apoio__col--federal img { width: 100%; height: 80px; margin-top: 8px; object-fit: contain; }
.apoio__col--estadual img { width: 100%; height: 92px; object-fit: contain; }
.apoio p { margin: 25px 0 14.4px; font: 500 16px/24px Montserrat, sans-serif; color: #000; text-align: justify; }

/* ---------- Rodapé ---------- */
.rodape { padding: 10px; background: var(--preto); }
.contato { display: flex; flex-wrap: wrap; justify-content: center; margin: 0; padding: 0; list-style: none; }
.contato li { margin: 0 15px; }
.contato a { display: flex; align-items: center; text-decoration: none; }
.contato__icone { flex: none; width: 16px; height: 16px; fill: #fff; }
.contato__texto { padding-left: 5px; font: 400 14px/21px Roboto, sans-serif; color: rgba(255, 255, 255, .8); }
.contato a:hover .contato__texto { color: #fff; }

/* ---------- Política de privacidade (layout do tema Hello Elementor) ---------- */
.texto { width: 100%; max-width: 960px; margin: 0 auto; padding-bottom: 1px; }
.texto h1 { margin: 8px 0 16px; font-size: 40px; line-height: 48px; font-weight: 500; }
.texto h2 { margin: 8px 0 16px; font-size: 32px; line-height: 1.2; font-weight: 500; }
.texto p { margin: 0 0 14.4px; overflow-wrap: anywhere; }

/* ---------- 404 ---------- */
.nao-encontrada { min-height: calc(100vh - 111px); padding: 80px 20px; text-align: center; color: var(--cinza-texto); font: 400 17px/26px Montserrat, sans-serif; }
.nao-encontrada h1 { margin-bottom: 24px; font: 300 25px/1.4 'Nanum Gothic', sans-serif; text-transform: uppercase; letter-spacing: .75px; color: var(--creme); }
.nao-encontrada p + p { margin-top: 12px; }
.nao-encontrada a { color: #fff; }

/* ---------- Galeria em tela cheia (assets/js/galeria.js) ---------- */
html.galeria-aberta { overflow: hidden; }
.galeria { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #000; color: #fff; overflow: hidden; }
.galeria::backdrop { background: #000; }
.galeria__palco { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; touch-action: pan-y; }
.galeria__foto { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; user-select: none; transition: opacity .25s; }
.galeria__foto.carregando { opacity: 0; }
.galeria__botao { position: absolute; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; background: transparent; color: rgba(255, 255, 255, .7); cursor: pointer; transition: color .15s; }
.galeria__botao:hover, .galeria__botao:focus-visible { color: #fff; }
.galeria__botao svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.4; }
.galeria__fechar { top: 10px; right: 10px; width: 44px; height: 44px; padding: 10px; }
.galeria__anterior, .galeria__proxima { top: 50%; width: 54px; height: 64px; margin-top: -32px; padding: 18px 16px; }
.galeria__anterior { left: 20px; }
.galeria__proxima { right: 20px; }
.galeria__legenda { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px; background: rgba(0, 0, 0, .3); font: 400 16px/24px Roboto, sans-serif; color: rgba(255, 255, 255, .7); text-align: center; }

/* ---------- Até 1024px: layout empilhado ---------- */
@media (max-width: 1024px) {
  .exposicao { display: block; min-height: 0; }
  .intro { padding: 0; margin: 0; }
  .intro h1 { padding: 0; margin: 8px 8px 13px; font-size: 18px; line-height: 44px; text-align: center; }
  .intro__linha { display: none; }
  .intro p { padding: 0; margin: 6px 25px 14.4px 23px; font-size: 19px; }
  .expo[data-galeria="tudo-pele"] { padding-bottom: 111px; }

  .rodape { padding: 10px; }
  .contato { display: block; }
  .contato li { margin: 0; }
  .contato li + li { margin-top: 2.5px; }
  .contato li:first-child { padding-bottom: 2.5px; }
  .contato__icone { width: 22.5px; height: 18px; }
  .contato__texto { padding-left: 18px; font-size: 13px; line-height: 19.5px; }
}

/* Política: larguras do tema Hello Elementor */
@media (max-width: 1199px) { .texto { max-width: 800px; } }
@media (max-width: 991px) { .texto { max-width: 600px; } }
@media (max-width: 767px) { .texto { max-width: 500px; } }
@media (max-width: 575px) { .texto { max-width: none; padding: 0 10px 1px; } }

/* ---------- Celular ---------- */
@media (max-width: 767px) {
  .topo { height: 82px; padding: 7px 26px 0 15px; text-align: center; }
  .topo__nome { font-size: 48px; line-height: 48px; letter-spacing: 3px; }

  .intro h1 { margin: 19px 8px 8px; font-size: 19px; line-height: 36px; }
  .intro p { margin: calc(12% + 6px) 15px calc(3% + 29.4px); font-size: 17px; }
  .expo[data-galeria="tudo-pele"] { padding-bottom: 146px; }

  .apoio { display: block; }
  .galeria__anterior { left: 0; }
  .galeria__proxima { right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
