/* Lopes & Sciannelli — complementos ao theme.json */
html { scroll-behavior: smooth; }
::selection { background: var(--wp--preset--color--dourado-claro); }

/* Barra superior */
.ls-topbar { font-size: .8125rem; letter-spacing: .01em; }
.ls-topbar a { color: inherit; text-decoration: none; }
.ls-topbar a:hover { color: var(--wp--preset--color--dourado-claro); }

/* Cabeçalho fixo */
.ls-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--wp--preset--color--linha); }
.admin-bar .ls-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .ls-header { top: 0; } }
.ls-header .wp-block-site-logo img { width: auto; max-height: 56px; }
.ls-header .wp-block-navigation a:hover { color: var(--wp--preset--color--dourado-escuro); }
.ls-header .wp-block-navigation .current-menu-item > a { color: var(--wp--preset--color--dourado-escuro); }

/* Sobretítulo */
.ls-kicker { text-transform: uppercase; letter-spacing: .16em; font-size: .75rem !important; font-weight: 600; color: var(--wp--preset--color--dourado-escuro); }
.ls-fio { width: 56px; height: 2px; background: var(--wp--preset--color--dourado); border: 0; margin-left: 0 !important; }
.has-text-align-center .ls-fio, .ls-fio.aligncenter { margin-left: auto !important; }

/* Hero */
.ls-hero { position: relative; overflow: hidden; }
.ls-hero::after { content: ""; position: absolute; right: -8%; top: -20%; width: 55%; aspect-ratio: 1; border: 1px solid rgba(185,155,9,.25); border-radius: 50%; pointer-events: none; }
.ls-hero > * { position: relative; z-index: 1; }

/* Cartões */
.is-style-cartao { background: #fff; border: 1px solid var(--wp--preset--color--linha); border-radius: 6px; padding: 1.75rem; height: 100%; transition: border-color .2s, transform .2s, box-shadow .2s; }
.is-style-cartao:hover { border-color: var(--wp--preset--color--dourado); transform: translateY(-2px); box-shadow: 0 10px 30px -18px rgba(0,14,71,.35); }
.is-style-cartao h3 a { text-decoration: none; color: inherit; }
.wp-block-columns.ls-grade > .wp-block-column { display: flex; flex-direction: column; }

/* Lista com check */
ul.is-style-check { list-style: none; padding-left: 0; }
ul.is-style-check li { position: relative; padding-left: 1.75rem; margin-bottom: .5rem; }
ul.is-style-check li::before { content: ""; position: absolute; left: 0; top: .55em; width: .95rem; height: .5rem; border-left: 2px solid var(--wp--preset--color--dourado); border-bottom: 2px solid var(--wp--preset--color--dourado); transform: rotate(-45deg); }

/* Números */
.ls-numero { font-family: var(--wp--preset--font-family--serif); font-size: clamp(2.25rem, 5vw, 3.25rem); line-height: 1; color: var(--wp--preset--color--dourado-escuro); margin-bottom: .25rem !important; }

/* Botão contorno */
.wp-block-button.is-style-outline > .wp-block-button__link { border: 1.5px solid currentColor; background: transparent; }
.wp-block-button.ls-btn-whats > .wp-block-button__link { background: var(--wp--preset--color--whatsapp); }
.wp-block-button.ls-btn-whats > .wp-block-button__link:hover { filter: brightness(1.08); }
.wp-block-button.ls-btn-dourado > .wp-block-button__link { background: var(--wp--preset--color--dourado); color: var(--wp--preset--color--marinho); }

/* Blog */
.ls-posts .wp-block-post-featured-image img { aspect-ratio: 16/10; object-fit: cover; border-radius: 4px; }
.ls-posts .wp-block-post-title { font-size: 1.2rem; line-height: 1.35; }
.single .wp-block-post-featured-image img { border-radius: 6px; }
.wp-block-post-content p { margin-block: 0 1.1em; }

/* Rodapé */
.ls-footer a { color: inherit; text-decoration: none; }
.ls-footer a:hover { color: var(--wp--preset--color--dourado-claro); }
.ls-footer .wp-block-site-logo img { max-height: 70px; width: auto; }

/* Aviso de golpe */
.ls-alerta { border-left: 4px solid #C0392B; }

/* Formulário (Contact Form 7) */
.wpcf7 label { display: block; font-size: .875rem; font-weight: 600; color: var(--wp--preset--color--marinho); }
.wpcf7 input:not([type=submit]):not([type=checkbox]), .wpcf7 textarea, .wpcf7 select { width: 100%; box-sizing: border-box; margin-top: .35rem; padding: .8rem .9rem; border: 1px solid var(--wp--preset--color--linha); border-radius: 4px; font: inherit; background: #fff; }
.wpcf7 input:focus, .wpcf7 textarea:focus { outline: 2px solid var(--wp--preset--color--dourado-claro); border-color: var(--wp--preset--color--dourado); }
.wpcf7 textarea { min-height: 130px; }
.wpcf7 input[type=submit] { background: var(--wp--preset--color--marinho); color: #fff; border: 0; border-radius: 4px; padding: .9rem 1.8rem; font-weight: 600; cursor: pointer; }
.wpcf7 input[type=submit]:hover { background: var(--wp--preset--color--marinho-claro); }
.ls-form-escuro .wpcf7 label { color: #fff; }
.ls-form-escuro .wpcf7 input[type=submit] { background: var(--wp--preset--color--dourado); color: var(--wp--preset--color--marinho); }
.wpcf7 .wpcf7-list-item { margin: 0; font-size: .8125rem; font-weight: 400; }

/* FAQ */
.wp-block-details { border-bottom: 1px solid var(--wp--preset--color--linha); padding: 1rem 0; }
.wp-block-details summary { font-weight: 600; color: var(--wp--preset--color--marinho); cursor: pointer; }

/* WhatsApp flutuante */
.ls-whats { position: fixed; right: 20px; bottom: 20px; z-index: 99; display: flex; align-items: center; gap: .5rem; background: var(--wp--preset--color--whatsapp); color: #fff !important; text-decoration: none !important; padding: .7rem 1.1rem .7rem .8rem; border-radius: 999px; box-shadow: 0 8px 24px -8px rgba(0,0,0,.45); font-weight: 600; font-size: .9rem; }
.ls-whats:hover { filter: brightness(1.08); }
@media (max-width: 600px) { .ls-whats span { display: none; } .ls-whats { padding: .8rem; } }

/* Landing page: CTA fixo no celular */
.ls-lp-cta-mobile { display: none; }
@media (max-width: 781px) {
  .ls-lp-cta-mobile { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 99; padding: .6rem .9rem; background: var(--wp--preset--color--marinho); }
  .ls-lp-cta-mobile .wp-block-button, .ls-lp-cta-mobile .wp-block-button__link { width: 100%; }
  body.page-template-page-landing { padding-bottom: 72px; }
}
@media (max-width: 960px) { .ls-hide-mobile { display: none !important; } }
/* Sem vãos entre cabeçalho, conteúdo e rodapé */
.wp-site-blocks > * + * { margin-block-start: 0; }
.wp-block-post-content > .alignfull:last-child { margin-bottom: 0; }
.ls-topbar p { margin: 0; }
.ls-hero-dados { border-left: 1px solid rgba(185,155,9,.45); padding-left: 2rem; }
.ls-hero-dados .ls-numero + p { margin-top: 0 !important; margin-bottom: 1.25rem; }
@media (max-width: 781px) { .ls-hero-dados { border-left: 0; padding-left: 0; display: grid; grid-template-rows: auto auto; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0 1rem; } .ls-hero-dados .ls-numero { font-size: 1.75rem; } }
.ls-form-escuro a { color: var(--wp--preset--color--dourado-claro); }
@media (max-width: 781px) {
  .ls-topbar p:first-child { display: none; }
  .ls-topbar .wp-block-group { justify-content: center; }
  .ls-hero .has-large-font-size { font-size: 1.0625rem !important; }
}

/* Paleta oficial: dourado puro em fundo marinho, dourado escuro em fundo claro */
.has-marinho-background-color .ls-kicker, .has-marinho-background-color .ls-numero,
.ls-form-escuro .ls-kicker { color: var(--wp--preset--color--dourado) !important; }
.ls-fio { background: var(--wp--preset--color--dourado); }
/* Equipe (Quem somos) */
.ls-equipe .ls-foto-equipe img { aspect-ratio: 1.03; object-fit: cover; object-position: top; border-radius: 4px; width: 100%; }
.ls-equipe .ls-foto-equipe { margin-bottom: .75rem; }
.ls-equipe .ls-equipe-nome { margin: 0 !important; color: var(--wp--preset--color--marinho); font-size: .95rem; }
.ls-equipe .ls-equipe-cargo { margin: .1rem 0 0 !important; text-transform: uppercase; letter-spacing: .08em; font-size: .7rem !important; }
@media (max-width: 781px) { .wp-block-columns.ls-equipe { flex-wrap: wrap !important; } .wp-block-columns.ls-equipe > .wp-block-column { flex-basis: calc(50% - 1rem) !important; } }
.ls-socio { margin-bottom: 2rem !important; padding-bottom: 2rem; border-bottom: 1px solid var(--wp--preset--color--linha); }
.ls-socio h3 { margin-top: .25rem; }
/* Bandeira ao lado de títulos */
.ls-bandeira { display: inline-block; height: .62em; width: auto; vertical-align: .02em; margin-left: .1em; border-radius: 3px; box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.ls-kicker .ls-bandeira, .op-kicker .ls-bandeira { height: 1.15em; vertical-align: -.2em; margin-left: .35em; }

/* ===== Espaçamento título -> texto (16/11/2026) =====
   Os parágrafos do conteúdo não têm margem superior; quem cria o respiro é o título.
   Regra geral: o mesmo espaço que existe entre dois parágrafos (~1 linha). */
:where(.wp-site-blocks) :is(h1, h2, h3, h4).wp-block-heading { margin-bottom: 1.1rem; }
:where(.wp-site-blocks) h1.wp-block-heading { margin-bottom: 1.25rem; }
/* Cartões e caixas: um pouco mais compacto, mas sem encostar */
.is-style-cartao :is(h2, h3, h4).wp-block-heading { margin-bottom: .75rem; }
/* Sobretítulo (dourado) -> título */
.ls-kicker { margin-bottom: .5rem !important; }
.ls-kicker + .wp-block-heading { margin-top: 0 !important; }
/* Equipe: nome -> cargo um pouco mais solto */
.ls-equipe .ls-equipe-cargo { margin-top: .3rem !important; }
.ls-socio .ls-equipe-cargo { margin-bottom: .75rem !important; }

/* ===== Escritório em Portugal (23/11/2026) ===== */
.ls-pt { border-left: 3px solid var(--wp--preset--color--dourado); }
.ls-pt .ls-pt-cols { margin-top: .5rem; margin-bottom: 0; }
.ls-pt .ls-pt-cols p { margin-bottom: 0; }
.ls-pt-nome { color: var(--wp--preset--color--cinza); font-size: .875em; }
.ls-footer-pt { font-size: .85rem; color: #C9CEDF; }
.ls-footer-pt strong { color: #fff; }

/* Hero do início no celular: números menores e sem quebra (ex.: "Diversas") — 24/11/2026 */
@media (max-width: 781px) { .ls-hero-dados .ls-numero { font-size: 1.3rem !important; white-space: nowrap; } }

/* ===== Cabeçalho escuro e topo com foto, no estilo da página única (25/11/2026) ===== */
.ls-topo { position: sticky; top: 0; z-index: 100; background: #00092E; transition: background .3s, box-shadow .3s; }
.admin-bar .ls-topo { top: 32px; }
@media (max-width: 782px) { .admin-bar .ls-topo { top: 0; } }
.ls-topo .ls-topbar { background: transparent; color: rgba(255,255,255,.78); border-bottom: 1px solid rgba(255,255,255,.08); }
.ls-topo .ls-header { position: static; background: transparent; backdrop-filter: none; border-bottom: 0; }
.ls-logo img { display: block; height: 52px; width: auto; }
/* Menu: branco, caixa alta, sublinhado dourado (igual à página única) */
.ls-nav, .ls-nav a { color: #fff !important; }
.ls-nav .wp-block-navigation-item__content { font-size: .78rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; padding: .4rem 0; border-bottom: 1px solid transparent; }
.ls-nav .wp-block-navigation-item__content:hover,
.ls-nav .current-menu-item > .wp-block-navigation-item__content { color: var(--wp--preset--color--dourado) !important; border-color: var(--wp--preset--color--dourado); }
.ls-nav .wp-block-navigation__submenu-icon { color: #fff; }
.ls-nav .wp-block-navigation__submenu-container { background: #00092E !important; border: 1px solid rgba(255,255,255,.12) !important; padding: .5rem 0 !important; }
.ls-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: .55rem 1.1rem; text-transform: none; letter-spacing: .02em; font-size: .85rem; border: 0; }
.ls-nav .wp-block-navigation__responsive-container-open svg { fill: #fff; }
.ls-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 1rem; padding: .6rem 0; }

/* Página inicial: cabeçalho transparente sobre a foto; fica sólido ao rolar */
.home .ls-topo { position: fixed; left: 0; right: 0; background: transparent; }
.home .ls-topo.is-solido { background: #00092E; box-shadow: 0 6px 24px -12px rgba(0,0,0,.6); }
.home .ls-topo.is-solido .ls-topbar { display: none; }

/* Topo da página inicial com foto e degradê */
.home .wp-block-post-content > .ls-hero:first-child { background: #00092E !important; min-height: min(92vh, 780px); display: flex; flex-direction: column; justify-content: center; padding-top: 10rem !important; padding-bottom: 4rem !important; }
.home .wp-block-post-content > .ls-hero:first-child::before { content: ""; position: absolute; inset: 0 0 0 38%; background: url(../img/fachada-2.jpg) 50% 45%/cover no-repeat; }
.home .wp-block-post-content > .ls-hero:first-child::after { inset: 0; width: auto; height: auto; aspect-ratio: auto; border: 0; border-radius: 0; background: linear-gradient(90deg, #00092E 0%, #00092E 40%, rgba(0,9,46,.75) 55%, rgba(0,14,71,.3) 100%); }
.home .wp-block-post-content > .ls-hero:first-child > * { width: 100%; }
/* Números sobre a foto: painel escuro translúcido para manter a leitura */
.home .ls-hero-dados { background: rgba(0,9,46,.55); backdrop-filter: blur(6px); border-left: 2px solid var(--wp--preset--color--dourado) !important; padding: 1.5rem 1.75rem !important; }
@media (max-width: 781px) {
  .home .wp-block-post-content > .ls-hero:first-child { padding-top: 11.5rem !important; }
  .home .wp-block-post-content > .ls-hero:first-child::before { inset: 0; opacity: .35; }
  .home .wp-block-post-content > .ls-hero:first-child::after { background: linear-gradient(180deg, rgba(0,9,46,.85), #00092E); }
  .home .ls-hero-dados { background: transparent; backdrop-filter: none; border-left: 0 !important; padding: 0 !important; }
  .ls-logo img { height: 44px; }
}

/* Menu aberto no celular: fundo azul-escuro (25/11/2026) */
.ls-nav .wp-block-navigation__responsive-container.is-menu-open { background: #00092E !important; color: #fff !important; padding: 1.5rem 1.75rem !important; }
.ls-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { background: transparent !important; border: 0 !important; padding: .25rem 0 .5rem !important; }
.ls-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: .25rem !important; }

/* ===== Números em faixa abaixo do topo (25/11/2026) ===== */
.home .ls-hero-txt > * { max-width: 640px; }
.ls-faixa-numeros-sec { background: #00092E !important; border-top: 1px solid rgba(185,155,9,.35); }
.ls-faixa-numeros { gap: 0 !important; margin: 0 !important; }
.ls-faixa-numeros > .wp-block-column + .wp-block-column { border-left: 1px solid rgba(255,255,255,.12); }
.ls-faixa-numeros .ls-numero { margin-bottom: .35rem !important; }
.ls-faixa-numeros p { margin-top: 0 !important; margin-bottom: 0; }
@media (max-width: 781px) {
  .ls-faixa-numeros { flex-wrap: nowrap !important; }
  .ls-faixa-numeros > .wp-block-column { flex-basis: 0 !important; flex-grow: 1; padding: 0 .4rem; }
  .ls-faixa-numeros .ls-numero { font-size: 1.3rem !important; white-space: nowrap; }
  .ls-faixa-numeros p:not(.ls-numero) { font-size: .75rem !important; line-height: 1.4; }
}

/* ===== Celular: foto vertical da fachada no topo (25/11/2026) ===== */
@media (max-width: 781px) {
  .home .wp-block-post-content > .ls-hero:first-child { padding-top: 26rem !important; min-height: 0; }
  .home .wp-block-post-content > .ls-hero:first-child::before { inset: 0 0 auto 0; height: 470px; opacity: 1; background: url(../img/fachada-vertical.jpg) 50% 62%/cover no-repeat; }
  .home .wp-block-post-content > .ls-hero:first-child::after { background: linear-gradient(180deg, rgba(0,9,46,.75) 0, rgba(0,9,46,.3) 130px, rgba(0,9,46,0) 230px, rgba(0,9,46,.25) 340px, #00092E 470px); }
}

/* Menu numa linha só com "Publicações" (25/11/2026) */
@media (min-width: 782px) and (max-width: 1180px) {
  .ls-header .ls-nav .wp-block-navigation__container { gap: 1.05rem !important; }
  .ls-header .ls-nav a { letter-spacing: .04em !important; }
  .ls-header .wp-block-button__link { padding-left: 1.1rem !important; padding-right: 1.1rem !important; }
}
@media (max-width: 1000px) { .ls-header .ls-hide-mobile { display: none !important; } }

/* Aviso de golpe em janela ao abrir o site (25/11/2026) */
.ls-golpe { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 1.25rem; background: rgba(0, 9, 46, .55); opacity: 0; transition: opacity 1s ease; }
.ls-golpe[hidden] { display: none; }
.ls-golpe.is-aberto { opacity: 1; transition-duration: .35s; }
.ls-golpe-caixa { position: relative; max-width: 560px; width: 100%; background: #fff; border-left: 5px solid #C0392B; border-radius: 6px; padding: 1.9rem 2rem 1.6rem; box-shadow: 0 20px 50px rgba(0, 9, 46, .35); overflow: hidden; transform: translateY(12px); transition: transform .35s ease; }
.ls-golpe.is-aberto .ls-golpe-caixa { transform: none; }
.ls-golpe-caixa h2 { margin: 0 2rem .75rem 0; font-size: 1.45rem; color: #000E47; }
.ls-golpe-caixa p { margin: 0; font-size: .95rem; line-height: 1.65; color: #333; }
.ls-golpe-caixa a { color: #000E47; font-weight: 600; }
.ls-golpe-fechar { position: absolute; top: .6rem; right: .7rem; width: 2.2rem; height: 2.2rem; border: 0; background: transparent; font-size: 1.6rem; line-height: 1; color: #666; cursor: pointer; border-radius: 50%; }
.ls-golpe-fechar:hover, .ls-golpe-fechar:focus-visible { background: #f2f2f2; color: #000E47; }
.ls-golpe-barra { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: #B99B09; transform-origin: left; }
.ls-golpe.is-aberto .ls-golpe-barra { animation: ls-golpe-tempo 6s linear forwards; }
.ls-golpe-caixa:hover .ls-golpe-barra, .ls-golpe-caixa:focus-within .ls-golpe-barra { animation-play-state: paused; }
@keyframes ls-golpe-tempo { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (max-width: 600px) { .ls-golpe-caixa { padding: 1.6rem 1.3rem 1.4rem; } .ls-golpe-caixa h2 { font-size: 1.25rem; } }
@media (prefers-reduced-motion: reduce) { .ls-golpe, .ls-golpe-caixa { transition: none; } }
