/* HEG Pesquisa — estilos isolados */
.heg-search-open{overflow:hidden!important}
.heg-search-widget .heg-search-trigger{display:inline-flex;align-items:center;justify-content:center;background:transparent;border:0;padding:10px;color:inherit;cursor:pointer;transition:color .2s}
.heg-search-widget .heg-search-trigger:hover{color:#3498db}
.heg-search-overlay[hidden]{display:none!important}
.heg-search-overlay{position:fixed;inset:0;z-index:2147483000;background:rgba(13,31,46,.72);backdrop-filter:blur(5px);display:flex;align-items:center;justify-content:center;padding:20px}
.heg-search-modal{position:relative;background:#fff;color:#27343d;width:min(100%,700px);border-radius:16px;padding:54px 46px;box-shadow:0 20px 75px rgba(0,0,0,.24);font-family:inherit}
.heg-search-modal .heg-search-close{position:absolute;right:20px;top:14px;background:transparent;border:0;color:#64748b;font-size:32px;cursor:pointer;line-height:1.2;padding:6px}
.heg-search-eyebrow,.heg-results-kicker{display:block;color:#3498db;font-size:12px;font-weight:700;letter-spacing:1.4px}
.heg-search-modal h2{font-size:clamp(26px,4vw,38px);color:#263b4b;line-height:1.2;margin:12px 0}
.heg-search-modal p{font-size:16px;color:#667580;margin:0 0 28px}
.heg-search-modal label{display:block;margin-bottom:10px;font-weight:600}
.heg-search-field,.heg-results-form{display:flex;gap:10px}
.heg-search-field input,.heg-results-form input{min-width:0;flex:1;border:1px solid #d5e0e8;border-radius:9px;padding:15px 17px;background:#fff;color:#263b4b;font:inherit}
.heg-search-field input:focus,.heg-results-form input:focus{outline:2px solid #3498db;outline-offset:1px}
.heg-search-field button,.heg-results-form button{border:0;border-radius:9px;padding:14px 25px;background:#3498db;color:#fff;font:inherit;font-weight:700;cursor:pointer}
.heg-search-field button:hover,.heg-results-form button:hover{background:#1975d1}
.heg-results{background:#fff;color:#27343d;font-family:inherit;min-height:60vh}
.heg-results *{box-sizing:border-box}
.heg-results-container{width:min(1140px,calc(100% - 40px));margin:0 auto}
.heg-results-hero{background:#f5f9fc;padding:44px 0 56px}
.heg-breadcrumb{font-size:13px;color:#64748b;margin-bottom:38px}
.heg-breadcrumb a{color:#3498db;text-decoration:none}
.heg-breadcrumb span{padding:0 8px}
.heg-results h1{color:#263b4b;font-size:clamp(30px,4vw,46px);line-height:1.2;margin:12px 0}
.heg-results-hero p{color:#667580;margin:0 0 26px}
.heg-results-form{max-width:800px}
.heg-results-body{padding:48px 0 80px}
.heg-results-summary{margin-bottom:28px}
.heg-results-summary h2{font-size:23px;color:#263b4b;margin:0 0 6px}
.heg-results-summary p{margin:0;color:#64748b}
.heg-results-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.heg-result-card{border:1px solid #e3ebf1;border-radius:12px;background:#fff;overflow:hidden;display:flex;flex-direction:column;transition:box-shadow .2s,transform .2s}
.heg-result-card:hover{box-shadow:0 12px 35px rgba(28,58,82,.09);transform:translateY(-2px)}
.heg-result-image{display:block;aspect-ratio:16/9;overflow:hidden}
.heg-result-image img{display:block;width:100%;height:100%;object-fit:cover}
.heg-result-content{padding:24px;display:flex;flex:1;flex-direction:column;align-items:flex-start}
.heg-result-type{color:#3498db;font-size:12px;font-weight:700;margin-bottom:12px}
.heg-result-content h3{font-size:20px;line-height:1.35;margin:0 0 12px}
.heg-result-content h3 a{color:#263b4b;text-decoration:none}
.heg-result-content h3 a:hover{color:#3498db}
.heg-result-content p{font-size:15px;line-height:1.65;color:#667580;margin:0 0 24px;overflow-wrap:anywhere}
.heg-result-link{margin-top:auto;color:#3498db;font-size:14px;font-weight:700;text-decoration:none}
.heg-result-link:hover{text-decoration:underline}
.heg-results-pagination{margin-top:40px}
.heg-results-pagination ul{display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:0;margin:0}
.heg-results-pagination a,.heg-results-pagination span{display:inline-block;padding:10px 15px;border:1px solid #dce6ed;border-radius:7px;text-decoration:none;color:#263b4b}
.heg-results-pagination .current{background:#3498db;color:#fff;border-color:#3498db}
.heg-results-empty{padding:45px 25px;border:1px solid #e3ebf1;border-radius:12px;text-align:center}
.heg-results-empty h2{color:#263b4b}
.heg-results-empty a{color:#3498db}
@media(max-width:900px){.heg-results-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.heg-search-modal{padding:48px 22px 30px}.heg-search-field,.heg-results-form{flex-direction:column}.heg-search-field button,.heg-results-form button{width:100%}.heg-results-grid{grid-template-columns:1fr}.heg-results-hero{padding:30px 0 40px}.heg-breadcrumb{margin-bottom:25px}}

/* 1.1.0: lupa branca e hover sem fundo ou contorno. */
.heg-search-widget .heg-search-trigger,
.heg-search-widget .heg-search-trigger:hover,
.heg-search-widget .heg-search-trigger:focus,
.heg-search-widget .heg-search-trigger:active {
  background:transparent!important;background-color:transparent!important;
  color:#fff!important;border:0!important;box-shadow:none!important;
  outline-offset:3px;
}
.heg-search-widget .heg-search-trigger svg{stroke:#fff!important;fill:none!important}
/* Cabeçalho escuro na página de resultados, preservando a navegação existente. */
body.search header,body.search #masthead,
body.search .site-header,body.search .elementor-location-header {
  background-color:#101f2c!important;
  background-image:linear-gradient(110deg,#0b1c29 0%,#1c3446 100%)!important;
}
body.search header .elementor-nav-menu a,
body.search .elementor-location-header .elementor-nav-menu a {color:#fff}
body.search .heg-results-hero{background:#f5f9fc}
/* Links discretos sem setas decorativas. */
.heg-result-link::after,.heg-results-form button::after,.heg-search-field button::after{content:none!important}

/* 1.2.0: hero em vídeo integrado ao cabeçalho transparente do site */
body.search{--heg-video-height:510px;--heg-header-height:120px;}
body.search .heg-video-backdrop{position:absolute;top:0;left:0;width:100%;height:var(--heg-video-height);overflow:hidden;background:#10283b url('https://img.youtube.com/vi/Jz3_1Mgdz_A/maxresdefault.jpg') center/cover no-repeat;z-index:0;pointer-events:none;}
body.search .heg-video-frame{position:absolute;inset:0;overflow:hidden;}
body.search .heg-video-frame iframe{position:absolute;top:50%;left:50%;width:max(100%,calc(var(--heg-video-height) * 1.7778));height:max(100%,56.25vw);transform:translate(-50%,-50%);border:0;pointer-events:none;}
body.search .heg-video-shade{position:absolute;inset:0;background:rgba(4,19,31,.66);}
/* Evita que o fundo claro ou o CSS adicional antigo encubram o vídeo */
body.search::before{display:none!important;content:none!important;}
body.search #masthead,body.search header.site-header,body.search .elementor-location-header,
body.search .elementor-location-header > .elementor-element,
body.search header.site-header > .elementor-container,
body.search .elementor-sticky--active{
  background:transparent!important;background-color:transparent!important;background-image:none!important;
}
body.search #masthead,body.search header.site-header,body.search .elementor-location-header{position:relative;z-index:5;}
body.search .heg-results{position:relative;z-index:1;background:transparent;}
body.search .heg-results-hero{height:calc(var(--heg-video-height) - var(--heg-header-height));min-height:390px;padding:36px 0 60px;background:transparent!important;display:flex;align-items:center;}
body.search .heg-results-hero .heg-results-container{width:min(1140px,calc(100% - 40px));}
body.search .heg-results-hero .heg-breadcrumb,body.search .heg-results-hero .heg-breadcrumb a,
body.search .heg-results-hero h1,body.search .heg-results-hero p{color:#fff!important;}
body.search .heg-results-hero .heg-results-kicker{color:#9ed7ff!important;}
body.search .heg-results-hero .heg-breadcrumb{margin-bottom:24px;}
body.search .heg-results-body{background:#fff;position:relative;}
@media(max-width:767px){body.search{--heg-video-height:520px;--heg-header-height:95px;}body.search .heg-results-hero{height:auto;min-height:425px;padding:65px 0 45px;}body.search .heg-video-frame{display:none;}body.search .heg-video-backdrop{background-color:#10283b;} }
@media(prefers-reduced-motion:reduce){body.search .heg-video-frame{display:none;}}
