/* ===== DeMolay PR: complementos do tema (o resto é o CSS original do Flatsome e do site) ===== */
:root {
  --bg: #f2f4f7;
  --bg-2: #f9fafb;
  --bg-3: #ffffff;
  --ink: #1d2939;
  --ink-2: #344054;
  --muted: #667085;
  --line: #d0d5dd;
  --accent: #184a9a;
  --accent-hi: #477bc2;
  --accent-ink: #184a9a;
  --accent-rgb: 24 74 154;
  --on-accent: #ffffff;
  --accent-2: #7c0202;
  --accent-2-ink: #7c0202;
  --dark: #184a9a;
  --wa: #25d366;
  --wa-ink: #ffffff;
  --font: 'Inter', sans-serif;
  --font-display: 'Inter', sans-serif;
  --font-2: 'Roboto', sans-serif;
}
[hidden] { display: none !important; }
.svg-inline--fa { display: inline-block; height: 1em; overflow: visible; vertical-align: -.125em; }
.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); height: 1px; overflow: hidden; position: absolute !important; width: 1px; word-wrap: normal !important; }
.skip-link:focus { clip: auto; height: auto; width: auto; z-index: 100000; background: #fff; color: var(--accent); padding: 12px 18px; left: 6px; top: 6px; }
/* título principal do topo das páginas: era <h2> no site antigo; agora é <h1> com a mesma medida */
.bannertop h1 { font-size: 1.6em; }
@media (max-width: 549px) { .bannertop h1 { font-size: 1.2em; } }

/* ---------- Topo da home (Slider Revolution refeito) ---------- */
.dl-hero { position: relative; width: 100%; height: calc(100vh - 60px); overflow: hidden; background: #0b2d63; perspective: 600px; --bw: 1; }
.dl-hero-bg { position: absolute; inset: 0; overflow: hidden; }
.dl-hero-bg img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 50%; }
.dl-hero.is-on .dl-hero-zoom { animation: dl-zoom 10s linear forwards; }
@keyframes dl-zoom { from { transform: scale(1); } to { transform: scale(1.2); } }
.dl-hero-sombra { position: absolute; left: -25%; width: 150%; top: calc(-68px * var(--bw)); height: calc(300px * var(--bw)); background: linear-gradient(rgba(24,74,154,1) 0%, rgba(24,74,154,0) 100%); z-index: 24; pointer-events: none; }
.dl-hero[data-nivel="1"] .dl-hero-sombra { top: calc(-56px * var(--bw)); height: calc(247px * var(--bw)); }
.dl-hero[data-nivel="2"] .dl-hero-sombra { top: calc(-42px * var(--bw)); height: calc(187px * var(--bw)); }
.dl-hero[data-nivel="3"] .dl-hero-sombra { top: calc(-25px * var(--bw)); height: calc(205px * var(--bw)); }
.dl-hero-cam { position: absolute; pointer-events: none; }
.dl-hero-cam .dl-hero-in { width: 100%; height: 100%; transform: translate(var(--de, -110vw), var(--sobe, 0)) rotate(var(--rot, 0deg)); transition: transform var(--dur, 2500ms) cubic-bezier(.165, .84, .44, 1); }
.dl-hero-cam.is-in .dl-hero-in { transform: none; }
.dl-hero-cam img { width: 100%; height: 100%; object-fit: contain; display: block; }
.dl-hero-txt { position: absolute; inset: 0; display: grid; place-items: center; z-index: 20; pointer-events: none; transform-style: preserve-3d; }
.dl-hero-tit, .dl-hero-sub { grid-area: 1 / 1; color: #fff; text-align: center; white-space: nowrap; transform-origin: 50% 50%; }
.dl-hero-tit { font-family: var(--font); font-weight: 700; font-size: calc(100px * var(--bw)); line-height: calc(80px * var(--bw)); margin-top: calc(-40px * var(--bw)); opacity: 0; transform: translateY(-50px) scale(2) rotateX(-45deg); transition: transform 1.5s cubic-bezier(.165, .84, .44, 1), opacity 1.5s cubic-bezier(.165, .84, .44, 1); }
.dl-hero-tit.is-in { opacity: 1; transform: none; }
.dl-hero-tit.is-in.is-out { opacity: 0; transform: translateY(30px) scale(.8) rotateX(45deg); transition: transform .6s cubic-bezier(.455, .03, .515, .955), opacity .6s cubic-bezier(.455, .03, .515, .955); }
.dl-hero-sub { font-family: var(--font-2); font-weight: 100; font-size: calc(30px * var(--bw)); line-height: calc(20px * var(--bw)); letter-spacing: calc(8px * var(--bw)); margin-top: calc(120px * var(--bw)); margin-left: calc(-16px * var(--bw)); opacity: 0; transform: translateY(50px) scale(2) rotateX(45deg); transition: transform 1.5s cubic-bezier(.165, .84, .44, 1), opacity 1.5s cubic-bezier(.165, .84, .44, 1); }
.dl-hero-sub.is-in { opacity: 1; transform: none; }
.dl-hero[data-nivel="3"] .dl-hero-tit { white-space: normal; width: calc(360px * var(--bw)); font-size: calc(60px * var(--bw)); line-height: calc(60px * var(--bw)); margin-top: calc(-60px * var(--bw)); }
.dl-hero[data-nivel="3"] .dl-hero-tit:last-of-type { width: calc(400px * var(--bw)); }
.dl-hero[data-nivel="3"] .dl-hero-sub { white-space: normal; width: calc(360px * var(--bw)); font-weight: 400; font-size: calc(20px * var(--bw)); line-height: calc(30px * var(--bw)); margin-top: calc(120px * var(--bw)); }
.dl-hero-seta { position: absolute; left: 50%; bottom: calc(50px * var(--bw)); width: calc(50px * var(--bw)); height: calc(50px * var(--bw)); margin-left: calc(-25px * var(--bw)); z-index: 23; }
.dl-hero[data-nivel="1"] .dl-hero-seta { bottom: calc(41px * var(--bw)); width: calc(41px * var(--bw)); height: calc(41px * var(--bw)); }
.dl-hero[data-nivel="2"] .dl-hero-seta { bottom: calc(31px * var(--bw)); width: calc(31px * var(--bw)); height: calc(31px * var(--bw)); }
.dl-hero[data-nivel="3"] .dl-hero-seta { bottom: calc(19px * var(--bw)); width: calc(19px * var(--bw)); height: calc(19px * var(--bw)); }
.dl-hero-seta img { width: 100%; height: 100%; display: block; }
@media (prefers-reduced-motion: reduce) {
  .dl-hero.is-on .dl-hero-zoom { animation: none; }
  .dl-hero-cam .dl-hero-in, .dl-hero-tit, .dl-hero-sub { transition: none !important; }
}

/* ---------- Organizações e Galeria de Honra (estilos que ficavam dentro dos modelos PHP) ---------- */
/* igual ao <style> de capitulos.php/castelos.php...: vale para a seção E para a coluna do filtro (as duas têm .lojas-home) */
.org-sec.lojas-home, .org-sec .lojas-home { margin-top: -60px; background: #fff; border-radius: 16px; border: 1px solid #D0D5DD; }
.org-sec.lojas-home .col-inner { padding: 30px 30px !important; }
.lojas-button { background: #168B41; border-radius: 8px; padding: 0px 15px; width: 100%; color: #fff; }
.select-cidade, .select-regiao { border-radius: 8px; border: 1px solid #D0D5DD; padding: 5px 15px; width: 100%; }
@media (max-width: 768px) {
  .lojas-button { margin-left: 27px; }
  .filtrar-titulo { font-size: 1.3rem; margin-left: 20px; }
}
section.lojas-home[id^="section_honra"] { padding-top: 60px; padding-bottom: 60px; min-height: 500px; }
.item-honra { padding: 15px; border: 1px solid #D0D5DD; background-color: #fff; border-radius: 16px; }

/* ---------- Formulário (visual do Contact Form 7) ---------- */
.wpcf7 form .wpcf7-response-output:empty { display: none; }

/* ---------- Rodapé no celular: logo e selos centralizados, sem sair da tela (Hua 25/11; no original ficavam enormes/cortados) ---------- */

@media (max-width: 549px) {
  #section_rodape #row-rd1 { padding-top: 10px; }
  #section_rodape #col-rd2, #section_rodape #col-rd-s1 { flex-basis: 100%; max-width: 100%; }
  #section_rodape #col-rd2 > .col-inner { margin: 24px 0 0 !important; }
  #section_rodape #text-rd-logo p { text-align: center; }
  #section_rodape #text-rd-logo img { width: 180px; height: auto; }
  #section_rodape #col-rd-s1 > .col-inner { margin: 8px 0 0 !important; }
  #section_rodape #image_rd_s1 { width: 170px !important; margin: 0 auto; }
  #section_rodape #image_rd_s1 .img-inner { margin: 0 !important; }
  #section_rodape #col-rd3 > .col-inner { margin: 0 !important; }
  #section_rodape #row-rd3 { justify-content: center; align-items: center; margin: 0 auto; max-width: 360px; }
  #section_rodape #row-rd3 > .col { flex-basis: 33.333%; max-width: 33.333%; padding: 0 8px 20px; }
  #section_rodape #row-rd3 > .col > .col-inner { margin: 0 !important; padding: 0 !important; }
  #section_rodape #row-rd3 .img { width: 100% !important; }
  #section_rodape #row-rd3 .img-inner { margin: 0 !important; }
}


/* ---------- Cards de nomes (lideranças): fonte menor e centralizada (Hua 25/11; no original estourava no celular) ---------- */
.banner.conselhoooverlay .text-box:has(h3) { width: 88% !important; }
.banner.conselhoooverlay .text-inner > .text:has(h3),
.banner.conselhoooverlay .text-inner > .text:has(h3) :is(h3,p,strong) { font-size: 25px !important; line-height: 1.12 !important; letter-spacing: -.01em; white-space: normal !important; }
.banner.conselhoooverlay .text-inner > .text:has(h3) h3 { margin: 0 0 .3em; overflow-wrap: break-word; }
.banner.conselhoooverlay .text-inner > .text:has(h3) p { margin: 0; }
.banner.conselhoooverlay .text-inner > .text:has(h3) p:empty { display: none; }
.banner.conselhoooverlay .text-inner > .text:has(h3) ~ .text,
.banner.conselhoooverlay .text-inner > .text:has(h3) ~ .text * { font-size: 15px !important; line-height: 1.3 !important; text-align: center; white-space: normal !important; }
.banner.conselhoooverlay .text-inner > .text:has(h3) ~ .text p { margin: 0; }
.banner.conselhoooverlay .text-inner > .text:has(h3) ~ .text .q-message-container, .banner.conselhoooverlay .text-inner > .text:has(h3) ~ .text .q-message-container > div { display: block !important; margin: 0 !important; padding: 0 !important; width: auto !important; max-width: 100% !important; flex: none !important; }
@media (max-width: 849px) {
  .banner.conselhoooverlay .text-inner > .text:has(h3),
  .banner.conselhoooverlay .text-inner > .text:has(h3) :is(h3,p,strong) { font-size: 21px !important; }
}
@media (max-width: 549px) {
  .banner.conselhoooverlay .text-box:has(h3) { width: 92% !important; }
  .banner.conselhoooverlay .text-inner > .text:has(h3),
  .banner.conselhoooverlay .text-inner > .text:has(h3) :is(h3,p,strong) { font-size: 17px !important; }
  .banner.conselhoooverlay .text-inner > .text:has(h3) ~ .text,
  .banner.conselhoooverlay .text-inner > .text:has(h3) ~ .text * { font-size: 12px !important; }
}
/* Cards menores com h5 (comissões, secretarias, pasts): altura de linha igual em todos (no original variava de 1.1 a 2.3 e escondia o ID) */
.banner.conselhoooverlay .text-inner > .text:has(h5),
.banner.conselhoooverlay .text-inner > .text:has(h5) h5 { line-height: 1.3 !important; white-space: normal !important; }
.banner.conselhoooverlay .text-inner > .text:has(h5) h5 { margin: 0 0 .45em; overflow-wrap: break-word; }
.banner.conselhoooverlay .text-inner > .text:has(h5) ~ .text,
.banner.conselhoooverlay .text-inner > .text:has(h5) ~ .text * { line-height: 1.3 !important; white-space: normal !important; }
.banner.conselhoooverlay .text-inner > .text:has(h5) ~ .text p { margin: 0; }
.banner.conselhoooverlay .text-box.x50.y0:has(h5) { top: 50% !important; transform: translate(-50%, -50%) !important; }  /* alguns cards vinham no topo e compensavam com altura de linha 2.3 */

/* ---------- Cards com título + botões no celular (Galeria de Honra, Lideranças): título com espaço próprio acima dos botões (Hua 25/11; no original o título ficava por cima do 1º botão) ---------- */
@media (max-width: 549px) {
  .banner:has(.text-box .button.is-outline):has(.text-box h3) { padding-top: 0 !important; height: auto !important; }
  .banner:has(.text-box .button.is-outline):has(.text-box h3) > .banner-inner { position: relative !important; height: auto !important; }
  .banner:has(.text-box .button.is-outline):has(.text-box h3) .banner-layers { position: relative !important; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 22px; min-height: 370px; height: auto !important; padding: 34px 0 30px; overflow: visible; }
  .banner:has(.text-box .button.is-outline):has(.text-box h3) .banner-layers > .banner-link { position: absolute; }
  .banner:has(.text-box .button.is-outline):has(.text-box h3) .banner-layers > .text-box { position: relative !important; top: auto !important; left: auto !important; right: auto !important; bottom: auto !important; transform: none !important; margin: 0 auto !important; width: 84% !important; max-width: 84%; height: auto !important; max-height: none !important; }
  .banner:has(.text-box .button.is-outline):has(.text-box h3) .banner-layers > .text-box:has(h3) { order: -1; }
  .banner:has(.text-box .button.is-outline):has(.text-box h3) .text-box h3 { margin: 0; line-height: 1.1; }
  .banner:has(.text-box .button.is-outline):has(.text-box h3) .text-box .button.is-outline { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 46px; margin: 0 0 12px !important; padding: 8px 12px; font-size: 14px !important; line-height: 1.25; white-space: normal; text-align: center; letter-spacing: .02em; }
  .banner:has(.text-box .button.is-outline):has(.text-box h3) .text-box .button.is-outline:last-child { margin-bottom: 0 !important; }
}

/* ---------- Títulos no celular, site todo: ~15% menores (Hua 25/11: "tá muito grande mesmo"; desktop sem mudança) ---------- */
@media (max-width: 549px) {
  h1 { font-size: 1.2em; }                      /* Flatsome 1.4em */
  h2 { font-size: 1.02em; }                     /* Flatsome 1.2em */
  h4 { font-size: 1em; }                        /* Flatsome 1.125em */
  .bannertop h1 { font-size: 1.02em; }          /* era 1.2em */
  .bannertop .text p { font-size: .85em; }      /* chamadas grandes do topo ("40 anos de história") */
  .banner h1 { font-size: 3em; }
  .banner h2 { font-size: 2.45em; }
  .banner h3 { font-size: 1.7em; }              /* títulos dos cards de seção (era 2em) */
  .banner h4 { font-size: 1.3em; }
  .widget-area .widget-title { font-size: 1.12rem; }   /* títulos da barra lateral do blog (era 1.3rem) */
}
