/* Modo noturno do site Laureano & Medeiros: botão no canto superior direito + cores da noite.
   Padrão é o diurno (o site como sempre foi); html[data-tema="noite"] vem do botão (tema-lm.js).
   Cores da marca: marinho #18223d, noite #111a2f, marfim #fffffa, ocre #e3b65a. */

/* ---------- botão ---------- */
html body .lm-tema-bt { position: fixed; top: 14px; right: 16px; z-index: 10000; width: 44px; height: 44px; padding: 0; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 250, .45); border-radius: 50%; background: rgba(24, 34, 61, .88); color: #fffffa; cursor: pointer;
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .6); transition: background-color 200ms ease, border-color 200ms ease, transform 140ms ease; }
.lm-tema-bt svg { width: 20px; height: 20px; fill: currentColor; stroke: currentColor; stroke-width: 0; stroke-linecap: round; }
.lm-tema-bt svg path[d^="M12 2.5"] { fill: none; stroke-width: 1.8; }            /* raios do sol */
html body .lm-tema-bt:hover, html body .lm-tema-bt:focus { background: rgba(24, 34, 61, .88); color: #fffffa; }   /* o tema do WordPress pinta todo botão de rosa */
html body .lm-tema-bt:active { transform: scale(.94); }
html body .lm-tema-bt:focus-visible { outline: 2px solid #e3b65a; outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { html body .lm-tema-bt:hover { border-color: #e3b65a; color: #e3b65a; } }
@media (max-width: 767px) { html body .lm-tema-bt { top: 16px; right: 62px; width: 40px; height: 40px; } }   /* no celular o canto é do botão de menu */

/* ---------- noite: páginas do Elementor (artigos, contato, áreas...) ---------- */
html[data-tema="noite"], html[data-tema="noite"] body, html[data-tema="noite"] #content { background-color: #111a2f; color-scheme: dark; }
html[data-tema="noite"] body { color: #e6e4da; }

/* texto dos artigos (cores fixas do tema do WordPress) */
html[data-tema="noite"] .single-post #content :is(h1, h2, h3, h4, h5, h6, strong, b) { color: #fffffa; }
html[data-tema="noite"] .single-post #content :is(p, li, span, td, th, em, blockquote, figcaption, dd, dt) { color: #e6e4da; }
html[data-tema="noite"] .single-post #content a:not(.wp-block-button__link):not(.wp-element-button) { color: #e3b65a; }

/* resumo das avaliações do Google (o widget pinta de preto) */
html[data-tema="noite"] .ti-widget.ti-goog .ti-footer, html[data-tema="noite"] .ti-widget.ti-goog .ti-footer :is(strong, span, a) { color: #fffffa; }

/* elementos do Elementor com fundo claro ou letra escura (gerado por gera-noite.py; não editar à mão) */
/* GERADO-INICIO */
html[data-tema="noite"] .elementor-6740 .elementor-element.elementor-element-b46273c:not(.elementor-motion-effects-element-type-background), html[data-tema="noite"] .elementor-6740 .elementor-element.elementor-element-b46273c > .elementor-motion-effects-container > .elementor-motion-effects-layer { background-color: #111a2f; }
html[data-tema="noite"] .elementor-7502 .elementor-element.elementor-element-33dc1f7c .wpr-grid-filters li { color: #fffffa; }
html[data-tema="noite"] .elementor-7502 .elementor-element.elementor-element-33dc1f7c .wpr-grid-filters li > a { background-color: #111a2f; }
html[data-tema="noite"] .elementor-7502 .elementor-element.elementor-element-33dc1f7c .wpr-grid-filters li > span { background-color: #111a2f; }
html[data-tema="noite"] .elementor-7502 .elementor-element.elementor-element-33dc1f7c .wpr-grid-filters li a { color: #fffffa; }
html[data-tema="noite"] .elementor-7502 .elementor-element.elementor-element-33dc1f7c .wpr-grid-tax-style-2 .wpr-pointer-item:after { background-color: #111a2f; }
html[data-tema="noite"] .elementor-7502 .elementor-element.elementor-element-33dc1f7c .wpr-grid-tax-style-2 .wpr-pointer-item:before { background-color: #111a2f; }
html[data-tema="noite"] .elementor-7502 .elementor-element.elementor-element-33dc1f7c .wpr-pagination-finish { color: #fffffa; }
html[data-tema="noite"] .elementor-94 .elementor-element.elementor-element-36bfa69d .wpr-grid-filters li > .wpr-active-filter { color: #fffffa; background-color: #111a2f; }
html[data-tema="noite"] .elementor-94 .elementor-element.elementor-element-36bfa69d .wpr-grid-filters li > a:hover { color: #fffffa; background-color: #111a2f; }
html[data-tema="noite"] .elementor-94 .elementor-element.elementor-element-36bfa69d .wpr-grid-filters li > span:hover { color: #fffffa; background-color: #111a2f; }
html[data-tema="noite"] .elementor-94 .elementor-element.elementor-element-36bfa69d .wpr-grid-pagination > div > span:not(.wpr-disabled-arrow):hover { color: #fffffa; background-color: #111a2f; }
html[data-tema="noite"] .elementor-94 .elementor-element.elementor-element-36bfa69d .wpr-grid-pagination a:hover { color: #fffffa; background-color: #111a2f; }
html[data-tema="noite"] .elementor-94 .elementor-element.elementor-element-36bfa69d .wpr-grid-pagination span.wpr-grid-current-page { color: #fffffa; background-color: #111a2f; }
html[data-tema="noite"] .elementor-94 .elementor-element.elementor-element-36bfa69d .wpr-grid-tax-style-2 .wpr-pointer-item:after { background-color: #111a2f; }
html[data-tema="noite"] .elementor-94 .elementor-element.elementor-element-36bfa69d .wpr-grid-tax-style-2 .wpr-pointer-item:before { background-color: #111a2f; }
html[data-tema="noite"] .elementor-94 .elementor-element.elementor-element-36bfa69d .wpr-pagination-finish { color: #fffffa; }
html[data-tema="noite"] .elementor-94 .elementor-element.elementor-element-f4841fa .wpr-grid-tax-style-2 .wpr-pointer-item:after { background-color: #111a2f; }
html[data-tema="noite"] .elementor-94 .elementor-element.elementor-element-f4841fa .wpr-grid-tax-style-2 .wpr-pointer-item:before { background-color: #111a2f; }
/* GERADO-FIM */

/* ---------- noite: página inicial (faixas claras viram noite) ---------- */
html[data-tema="noite"] .lmp { --papel: #111a2f; --tinta: #fffffa; --sec-claro: #c3c9d8; }
html[data-tema="noite"] .lmp .avaliacoes { background: #111a2f; }
html[data-tema="noite"] .lmp .artigos .wp-block-latest-posts li { background: #18223d; border-color: rgba(255, 255, 250, .18); }
html[data-tema="noite"] .lmp .claro .placa { background: #fffffa; color: #18223d; }
@media (hover: hover) and (pointer: fine) { html[data-tema="noite"] .lmp .claro .placa:hover { background: #ffffff; } }

/* ---------- dia: página inicial clara (as páginas do Elementor já são claras como sempre foram) ---------- */
html[data-tema="dia"] .lmp { --marinho: #fffffa; --noite: #f1efe6; --marfim: #18223d; --sec: #4a5163;
  --traco: rgba(24, 34, 61, .16); --traco-forte: rgba(24, 34, 61, .45); --ocre: #9a6b12; }
html[data-tema="dia"] .lmp .avaliacoes { background: #ffffff; }
@media (hover: hover) and (pointer: fine) { html[data-tema="dia"] .lmp .placa:hover { background: #22305a; } }   /* a placa vira marinho: no hover, marinho mais claro */
/* topo com a logo 3D e a balança (lm-efeitos.css): peças, letreiro e números em marinho */
html[data-tema="dia"] .lm-trilha, html[data-tema="dia"] .lm-balanca-sec { background: #fffffa; }
html[data-tema="dia"] .lm-palco { --lm-peca: #18223d; }
html[data-tema="dia"] .lm-palco .lm-parado { filter: brightness(.14); }        /* logo parada (sem 3D) é marfim: escurece */
html[data-tema="dia"] .lm-marca .lm-nome { background: #18223d; }
html[data-tema="dia"] .lm-dica { color: rgba(24, 34, 61, .55); }
html[data-tema="dia"] .lm-balanca-sec { --lm-b-fundo: #fffffa; --lm-b-num: #18223d; --lm-b-solto: #9a6b12; }
html[data-tema="dia"] .lm-balanca-rot { color: #9a6b12; }
html[data-tema="dia"] .lm-balanca-rot::before { background: #9a6b12; }

/* troca de cor suave, menos para quem pede menos movimento */
@media (prefers-reduced-motion: no-preference) {
  html body, .lmp, .lmp section, .lm-trilha, .lm-balanca-sec { transition: background-color 200ms ease, color 200ms ease; }
}
