/* Fundação Core — complementos ao design feito no Elementor (classes globais do kit). */
html { scroll-behavior: smooth; }
body { background: #fff; color: #2f2e2e; font-family: 'DM Sans', Arial, sans-serif; }
::selection { color: #fff; background: #0081a7; }
:focus-visible { outline: 3px solid rgba(0, 175, 185, .45); outline-offset: 3px; }

/* Palavras em destaque nos títulos: selecione o texto no Elementor e aplique itálico. */
h1 em, h2 em, h3 em { color: #e66d43; font-style: normal; }
.secao-escura h1 em, .secao-escura h2 em, .faixa-cta h2 em { color: #ffb195; }

/* Carrosséis (classe global "rolagem-horizontal") */
.rolagem-horizontal::-webkit-scrollbar { display: none; }
.rolagem-horizontal > * { scroll-snap-align: start; min-width: 0; }
.fll-carrossel-controles { display: flex; align-items: center; gap: 14px; margin-top: 24px; font-family: Poppins, sans-serif; font-weight: 700; font-size: 14px; color: #004f66; }
.fll-carrossel-controles button { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid currentColor; background: transparent; color: inherit; font-size: 18px; line-height: 1; cursor: pointer; transition: background .2s, color .2s; }
.fll-carrossel-controles button:hover { background: #004f66; color: #fff; }
.fll-carrossel-controles.is-claro { color: #fff; }
.fll-carrossel-controles.is-claro button:hover { background: #fff; color: #004f66; }

/* Abas (classe global "aba") */
.aba[aria-selected="true"], .aba.e--selected { background: #0081a7 !important; border-color: #0081a7 !important; color: #fff !important; }
.aba[aria-selected="true"] *, .aba.e--selected * { color: #fff !important; }

/* Cards de números (classe global "cartao-numero") — fundo branco puro, entrada em sequência e ícone animado. */
.cartao-numero { position: relative; overflow: hidden; }
.cartao-numero:not(.cartao-numero-escuro) { background: #fff !important; background-image: none !important; }

/* Variante sobre fundo azul (classe "cartao-numero-escuro"): vidro translúcido, brilho que segue o mouse. */
.cartao-numero-escuro { background: rgba(255,255,255,.06) !important; border: 1px solid rgba(255,255,255,.14) !important; box-shadow: 0 20px 50px rgba(0,0,0,.18) !important; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); isolation: isolate; }
.cartao-numero-escuro .fll-brilho { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .35s ease;
	background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(230,109,67,.35), transparent 60%); }
.cartao-numero-escuro:hover .fll-brilho { opacity: 1; }
.js-fll .cartao-numero-escuro.is-visivel:hover { border-color: rgba(255,177,149,.6) !important; box-shadow: 0 30px 70px rgba(0,0,0,.3) !important; }
.cartao-numero-escuro .contador { color: #fff !important; }
.cartao-numero-escuro .icone-numero { background-color: rgba(230,109,67,.18) !important; color: #ffb195 !important; }
.cartao-numero-escuro:hover .icone-numero { background-color: #e66d43 !important; color: #fff !important; }
/* Barrinha que cresce sob o número */
.cartao-numero-escuro .contador::after { content: ''; display: block; width: 0; height: 3px; margin-top: 14px; border-radius: 3px; background: linear-gradient(90deg, #e66d43, #ffb195); transition: width .9s cubic-bezier(.2,.8,.2,1) .5s; }
.cartao-numero-escuro.is-visivel .contador::after { width: 48px; }
.cartao-numero-escuro:hover .contador::after { width: 96px; transition-delay: 0s; }

/* Seção de impacto (classe "secao-impacto"): luzes suaves em movimento no fundo azul. */
.secao-impacto { position: relative; overflow: hidden; isolation: isolate; }
.secao-impacto::after { content: ''; position: absolute; inset: -40%; z-index: -1; pointer-events: none;
	background: radial-gradient(closest-side at 30% 40%, rgba(0,175,185,.35), transparent), radial-gradient(closest-side at 75% 65%, rgba(230,109,67,.28), transparent);
	animation: fll-luzes 18s ease-in-out infinite alternate; }
@keyframes fll-luzes { 0% { transform: translate(-6%, -4%) rotate(0deg); } 100% { transform: translate(6%, 5%) rotate(25deg); } }
.js-fll .cartao-numero { opacity: 0; transform: translateY(48px) scale(.97) !important; transition: opacity .7s ease, transform .8s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease !important; }
.js-fll .cartao-numero.is-visivel { opacity: 1; transform: none !important; }
.js-fll .cartao-numero.is-visivel:hover { transform: translateY(-8px) !important; box-shadow: 0 30px 70px rgba(16,54,62,.18) !important; }
.cartao-numero .icone-numero { transition: background-color .35s ease, color .35s ease, transform .45s cubic-bezier(.2,.8,.2,1); }
.cartao-numero:hover .icone-numero { background-color: #e66d43 !important; color: #fff !important; transform: rotate(-8deg) scale(1.08); }
.cartao-numero .icone-numero svg { width: 100%; height: 100%; display: block; }

/* Linha do tempo (classes "linha-tempo-loop", "linha-tempo", "marco", "marco-icone", "marco-texto")
   Barra azul central; marcos alternam acima/abaixo; arraste, setas e teclado para navegar. */
.linha-tempo-loop { position: relative; }
.linha-tempo {
	display: grid !important; grid-auto-flow: column !important; grid-template-columns: none !important;
	grid-auto-columns: 250px !important; gap: 0 !important; height: 520px; padding: 0 96px !important;
	overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; scrollbar-width: none; cursor: grab;
	background: linear-gradient(#0081a7, #0081a7) 0 50% / 100% 14px no-repeat; background-attachment: local;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
	        mask-image: linear-gradient(90deg, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
}
.linha-tempo::-webkit-scrollbar { display: none; }
.linha-tempo.is-arrastando { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.linha-tempo.is-arrastando * { pointer-events: none; }
.linha-tempo:focus-visible { outline: 3px solid rgba(0,175,185,.5); outline-offset: 6px; }
.linha-tempo > * { position: relative; height: 100%; scroll-snap-align: start; overflow: visible; }

/* Haste que liga o círculo à barra: desenhada como fundo do marco (o ::before dos containers é do Elementor). */
.marco { position: relative; height: 100%; background-image: linear-gradient(#e66d43, #e66d43) !important; background-repeat: no-repeat !important; background-size: 2px 0 !important; transition: background-size .6s cubic-bezier(.2,.8,.2,1) .15s; }
.linha-tempo > *:nth-child(odd) .marco { background-position: 45px 92px !important; }
.linha-tempo > *:nth-child(even) .marco { background-position: 45px 260px !important; }
.marco.is-visivel, html:not(.js-fll) .marco { background-size: 2px 168px !important; }
/* Ponto sobre a barra */
.marco::after { content: ''; position: absolute; left: 38px; right: auto; bottom: auto; top: calc(50% - 8px); width: 16px !important; height: 16px !important; opacity: 1 !important; border-radius: 50%; background: #fff; border: 3px solid #e66d43; box-sizing: border-box; z-index: 2; transition: transform .3s ease, background-color .3s ease; }
.marco .marco-icone { position: absolute !important; left: 0; width: 92px !important; height: 92px !important; padding: 22px !important; border-radius: 50%; background: #e66d43; color: #fff; box-shadow: 0 14px 30px rgba(230,109,67,.35); z-index: 2; transition: transform .45s cubic-bezier(.2,.8,.2,1), background-color .3s ease, box-shadow .3s ease; }
.marco .marco-icone svg { width: 100%; height: 100%; display: block; }
.marco .marco-texto { position: absolute !important; left: 60px; width: 300px; padding: 0 !important; transition: transform .45s cubic-bezier(.2,.8,.2,1); }

/* Ímpares: círculo em cima, texto acima da barra */
.linha-tempo > *:nth-child(odd) .marco-icone { top: 0; }
.linha-tempo > *:nth-child(odd) .marco-texto { top: 106px; }
/* Pares: círculo embaixo, texto logo abaixo da barra */
.linha-tempo > *:nth-child(even) .marco-icone { bottom: 0; }
.linha-tempo > *:nth-child(even) .marco-texto { top: calc(50% + 30px); }

/* Entrada: os marcos aparecem conforme a barra rola */
.js-fll .marco .marco-icone { opacity: 0; transform: scale(.4); }
.js-fll .marco .marco-texto { opacity: 0; transform: translateY(12px); transition: opacity .5s ease .25s, transform .5s ease .25s; }
.js-fll .marco.is-visivel .marco-icone { opacity: 1; transform: scale(1); }
.js-fll .marco.is-visivel .marco-texto { opacity: 1; transform: none; }

/* Interação ao passar o mouse */
.marco:hover .marco-icone { transform: scale(1.1) rotate(-6deg) !important; background: #0081a7; box-shadow: 0 18px 36px rgba(0,129,167,.35); }
.marco:hover::after { transform: scale(1.35); background: #e66d43; }
.marco:hover .marco-ano { color: #e66d43; }
.marco:hover .marco-texto { transform: translateX(4px); }
.marco .marco-ano { transition: color .3s ease; }

/* Setas quadradas nas pontas da barra */
.linha-tempo-loop .fll-carrossel-controles { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); margin: 0; justify-content: space-between; pointer-events: none; z-index: 3; }
.linha-tempo-loop .fll-carrossel-controles .fll-contador { display: none; }
.linha-tempo-loop .fll-carrossel-controles button { pointer-events: auto; width: 52px; height: 52px; border-radius: 10px; border: 0; background: #0081a7; color: #fff; font-size: 22px; box-shadow: 0 10px 24px rgba(0,79,102,.25); }
.linha-tempo-loop .fll-carrossel-controles button:hover { background: #e66d43; color: #fff; }
.linha-tempo-dica { font-family: Poppins, sans-serif; font-size: 13px; color: #6f7473; text-align: center; margin-top: 8px; }

@media (max-width: 767px) {
	.linha-tempo { grid-auto-columns: 210px !important; height: 500px; padding: 0 56px !important;
		-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
		        mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%); }
	.linha-tempo-loop { padding-bottom: 68px !important; }
	.linha-tempo-loop .fll-carrossel-controles { top: auto; bottom: 0; transform: none; justify-content: center; gap: 12px; }
	.marco .marco-texto { width: 230px; }
	.marco .marco-icone { width: 76px !important; height: 76px !important; padding: 18px !important; }
	.marco::after { left: 30px; }
	.linha-tempo > *:nth-child(odd) .marco { background-position: 37px 76px !important; }
	.linha-tempo > *:nth-child(even) .marco { background-position: 37px 250px !important; }
	.marco.is-visivel, html:not(.js-fll) .marco { background-size: 2px 174px !important; }
	.linha-tempo > *:nth-child(odd) .marco-texto { top: 90px; }
	.marco .marco-texto { left: 50px; }
	.linha-tempo-loop .fll-carrossel-controles button { width: 42px; height: 42px; }
}

/* Mosaico de fotos (classes "mosaico" e "mosaico-item") + visualizador ampliado */
.mosaico-item { position: relative; overflow: hidden; border-radius: 6px; background: #eef8f7; }
.mosaico-item a, .mosaico-item img { display: block; width: 100% !important; height: 100% !important; }
.mosaico-item img { object-fit: cover; transition: transform .7s cubic-bezier(.2,.8,.2,1), filter .4s ease; }
.mosaico-item a { cursor: zoom-in; }
.mosaico-item::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s ease;
	background: rgba(0,79,102,.35) 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'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5M11 8v6M8 11h6'/%3E%3C/svg%3E") center / 44px no-repeat; }
.mosaico-item:hover img { transform: scale(1.06); }
.mosaico-item:hover::after { opacity: 1; }
.js-fll .mosaico-item { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.js-fll .mosaico-item.is-visivel { opacity: 1; transform: none; }

html.fll-lb-aberto { overflow: hidden; }
.fll-lightbox { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 24px 80px; background: rgba(8, 28, 36, .94); opacity: 0; transition: opacity .25s ease; }
.fll-lightbox.is-aberto { opacity: 1; }
.fll-lightbox[hidden] { display: none; }
.fll-lb-figura { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; max-height: 100%; }
.fll-lb-figura img { max-width: min(1200px, 100%); max-height: calc(100vh - 110px); width: auto; height: auto; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.5); opacity: 0; transform: scale(.97); transition: opacity .3s ease, transform .35s ease; }
.fll-lb-figura img.is-pronta { opacity: 1; transform: none; }
.fll-lb-contador { font-family: Poppins, sans-serif; font-weight: 700; font-size: 14px; color: #fff; letter-spacing: .08em; }
.fll-lightbox button { flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.6); background: transparent; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.fll-lightbox button:hover { background: #e66d43; border-color: #e66d43; }
.fll-lb-fechar { position: absolute; top: 20px; right: 20px; font-size: 30px !important; }
@media (max-width: 767px) {
	.fll-lightbox { padding: 64px 12px 24px; }
	.fll-lb-prev, .fll-lb-next { position: absolute; bottom: 20px; width: 46px !important; height: 46px !important; }
	.fll-lb-prev { left: calc(50% - 56px); }
	.fll-lb-next { right: calc(50% - 56px); }
	.fll-lb-figura img { max-height: calc(100vh - 170px); }
}

/* Balanço patrimonial (classes "balanco-card", "balanco-ano", "balanco-link"): o card inteiro abre o PDF. */
.balanco-card { transition: transform .35s cubic-bezier(.2,.8,.2,1), background-color .3s ease, border-color .3s ease, box-shadow .35s ease; }
.balanco-card .balanco-link::after { content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.balanco-card .balanco-link { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.balanco-card .balanco-link::before { content: ''; width: 16px; height: 16px; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z'/%3E%3Cpath d='M14 3v6h6M12 12v6M9 15l3 3 3-3'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z'/%3E%3Cpath d='M14 3v6h6M12 12v6M9 15l3 3 3-3'/%3E%3C/svg%3E") center / contain no-repeat; }
.balanco-card:hover { transform: translateY(-6px); background-color: #e66d43 !important; border-color: #e66d43 !important; box-shadow: 0 22px 48px rgba(0,0,0,.25); }
.balanco-card:hover .balanco-link { color: #fff !important; }
.balanco-card:focus-within { outline: 3px solid rgba(255,255,255,.6); outline-offset: 3px; }

/* Rodapé */
.elementor-location-footer input::placeholder { color: #6f7473; opacity: 1; }
.elementor-location-footer input:focus { outline: none; }
.elementor-location-footer form:focus-within { box-shadow: 0 0 0 3px rgba(255,255,255,.45); }
.elementor-location-footer a { text-decoration: none; }

/* Carrossel de largura total (classe global "banner-largo"): setas sobre o slide, alinhadas ao conteúdo. */
.banner-largo .fll-carrossel-controles { position: absolute; z-index: 3; bottom: 36px; right: max(20px, calc((100vw - 1240px) / 2)); margin: 0; color: #fff; }
.banner-largo .fll-carrossel-controles button:hover { background: #fff; color: #004f66; }
@media (max-width: 767px) { .banner-largo .fll-carrossel-controles { bottom: 20px; right: 16px; } }

/* Menu principal (widget clássico do Elementor): estados em laranja */
.elementor-location-header .elementor-nav-menu--main .elementor-item { font-family: Poppins, sans-serif; color: #2f2e2e; }
.elementor-location-header .elementor-nav-menu--main .elementor-item:hover,
.elementor-location-header .elementor-nav-menu--main .elementor-item:focus,
.elementor-location-header .elementor-nav-menu--main .elementor-item.elementor-item-active { color: #e66d43 !important; }
.elementor-location-header .elementor-nav-menu--main .elementor-item:before,
.elementor-location-header .elementor-nav-menu--main .elementor-item:after { background-color: #e66d43 !important; }
.elementor-location-header .elementor-nav-menu--dropdown a:hover,
.elementor-location-header .elementor-nav-menu--dropdown a.elementor-item-active { background-color: #fff7f0 !important; color: #e66d43 !important; }
.elementor-location-header .elementor-menu-toggle:hover { color: #e66d43; }

/* Conteúdo dos modelos de post (texto digitado pelo cliente no editor do WordPress) */
.conteudo-post { font-size: 17px; line-height: 1.8; color: #2f2e2e; }
.conteudo-post h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 2.2em 0 .6em; color: #0081a7; }
.conteudo-post h3 { font-size: 1.35rem; margin: 1.8em 0 .5em; color: #0081a7; }
.conteudo-post p, .conteudo-post ul, .conteudo-post ol { margin: 0 0 1.2em; }
.conteudo-post a { color: #e66d43; }
.conteudo-post img { border-radius: 22px; height: auto; }
.conteudo-post blockquote { margin: 2em 0; padding: 1.2em 1.6em; border-left: 4px solid #e66d43; background: #fff7f0; border-radius: 0 14px 14px 0; }

/* Imagem dinâmica sem arquivo (ex.: publicação sem capa): mostra o fundo/capa provisória. */
img:not([src]), img[src=""] { display: none !important; }

/* Esconde campos dinâmicos vazios (ex.: botão sem link, ano não preenchido) */
/* Botão do Elementor sem link vira <button>: com a classe "ocultar-vazio" ele some. */
.ocultar-vazio:empty, button.ocultar-vazio:not([type="submit"]), a.ocultar-vazio:not([href]), a.ocultar-vazio[href=""], a.ocultar-vazio[href="#"] { display: none !important; }
