/* FC Menu e Cabeçalho 1.1 */
.fcmc-oldhdr { display: none !important; }
.fcmc-oldwrap { position: static !important; transform: none !important; }

.fcmc-header,
.fcmc-header *,
.fcmc-drawer,
.fcmc-drawer * { box-sizing: border-box; }

.fcmc-header {
	position: sticky;
	top: 0;
	z-index: 99990;
	width: 100%;
	background: var(--fcmc-bg, #0a4ea0);
	color: var(--fcmc-tx, #fff);
	font-family: inherit;
	line-height: 1.2;
	transition: transform .28s ease, box-shadow .2s ease;
	will-change: transform;
}
body.admin-bar .fcmc-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .fcmc-header { top: 46px; } }

.fcmc-header[data-mode="static"] { position: relative; top: auto; }
.fcmc-header.is-hidden { transform: translateY(-120%); }
.fcmc-header.is-scrolled { box-shadow: 0 2px 14px rgba(0, 0, 0, .28); }

.fcmc-wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ---------- Barra azul ---------- */
.fcmc-bar-in {
	display: flex;
	align-items: center;
	gap: 20px;
	min-height: 56px;
}

.fcmc-brand {
	display: inline-flex;
	align-items: center;
	color: inherit;
	text-decoration: none;
	flex: 0 0 auto;
}
.fcmc-logo { display: block; height: var(--fcmc-logo-d, 40px); width: auto; max-width: 240px; }
.fcmc-logo:not([src]) { display: none; }
.fcmc-brand-text { display: none; font-weight: 800; font-size: 20px; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
.fcmc-brand.no-logo .fcmc-logo { display: none; }
.fcmc-brand.no-logo .fcmc-brand-text { display: block; }

/* No layout "bars" a marca só aparece quando a barra está grudada no topo (após rolar). */
.fcmc-header .fcmc-bar-in > .fcmc-brand {
	max-width: 0;
	margin-right: -20px;
	opacity: 0;
	overflow: hidden;
	pointer-events: none;
	transition: max-width .3s ease, opacity .25s ease, margin .3s ease;
}
.fcmc-header.is-scrolled .fcmc-bar-in > .fcmc-brand {
	max-width: 280px;
	margin-right: 0;
	opacity: 1;
	pointer-events: auto;
}

/* Menu */
.fcmc-nav { flex: 1 1 auto; min-width: 0; }
.fcmc-menu,
.fcmc-menu ul,
.fcmc-strip-menu,
.fcmc-drawer-menu,
.fcmc-drawer-menu ul { list-style: none; margin: 0; padding: 0; }

.fcmc-menu { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px; }
.fcmc-menu > li { position: relative; }
.fcmc-menu a {
	display: block;
	padding: 16px 16px;
	color: var(--fcmc-tx, #fff);
	text-decoration: none;
	font-size: 17px;
	font-weight: 600;
	border-radius: 6px;
	white-space: nowrap;
	transition: background .15s, color .15s;
}
.fcmc-menu a:hover,
.fcmc-menu a:focus-visible { background: rgba(255, 255, 255, .14); color: var(--fcmc-ac, #f5c518); outline: none; }
.fcmc-menu .current-menu-item > a,
.fcmc-menu .current-menu-ancestor > a,
.fcmc-menu .current-menu-parent > a { color: var(--fcmc-ac, #f5c518); box-shadow: inset 0 -3px 0 var(--fcmc-ac, #f5c518); border-radius: 6px 6px 0 0; }

.fcmc-menu .sub-menu {
	position: absolute;
	left: 0;
	top: 100%;
	min-width: 220px;
	background: var(--fcmc-bg, #0a4ea0);
	border-radius: 0 0 8px 8px;
	box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
	padding: 6px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .15s, transform .15s, visibility .15s;
}
.fcmc-menu li:hover > .sub-menu,
.fcmc-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.fcmc-menu .sub-menu a { white-space: normal; }

/* Busca e hambúrguer */
.fcmc-search-btn,
.fcmc-burger,
.fcmc-close {
	background: transparent;
	border: 0;
	color: inherit;
	cursor: pointer;
	padding: 8px;
	border-radius: 6px;
	line-height: 0;
}
.fcmc-search-btn { margin-left: auto; }
.fcmc-search-btn:hover,
.fcmc-burger:hover { background: rgba(255, 255, 255, .14); }
.fcmc-burger { display: none; width: 42px; height: 42px; flex: 0 0 auto; position: relative; }
.fcmc-burger span { display: block; position: absolute; left: 9px; right: 9px; height: 2.5px; background: currentColor; border-radius: 2px; }
.fcmc-burger span:nth-child(1) { top: 13px; }
.fcmc-burger span:nth-child(2) { top: 20px; }
.fcmc-burger span:nth-child(3) { top: 27px; }

.fcmc-search { background: rgba(0, 0, 0, .18); padding: 12px 0; }
.fcmc-search[hidden] { display: none; }
.fcmc-search form { display: flex; gap: 8px; }
.fcmc-search input[type="search"] { flex: 1 1 auto; padding: 11px 14px; border: 0; border-radius: 6px; font-size: 16px; min-width: 0; }
.fcmc-search button[type="submit"] {
	border: 0;
	border-radius: 6px;
	padding: 0 20px;
	font-weight: 700;
	cursor: pointer;
	background: var(--fcmc-ac, #f5c518);
	color: var(--fcmc-stx, #0b2a5c);
}

/* ---------- Faixa amarela ---------- */
.fcmc-strip { background: var(--fcmc-sbg, #ffc800); color: var(--fcmc-stx, #0b2a5c); font-size: 12.5px; }
.fcmc-strip-in { display: flex; align-items: center; gap: 14px; min-height: 34px; }

.fcmc-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	flex: 0 0 auto;
	background: #e60012;
	color: #fff;
	font-weight: 800;
	font-size: 11px;
	letter-spacing: .03em;
	text-transform: uppercase;
	padding: 3px 8px;
	border-radius: 4px;
	line-height: 1.2;
}

.fcmc-strip-label { font-weight: 800; letter-spacing: .06em; white-space: nowrap; }
.fcmc-strip-menu { display: flex; align-items: center; gap: 4px 18px; overflow-x: auto; scrollbar-width: none; }
.fcmc-strip-menu::-webkit-scrollbar { display: none; }
.fcmc-strip-menu a { color: inherit; text-decoration: none; font-weight: 600; white-space: nowrap; padding: 8px 0; display: block; }
.fcmc-strip-menu a:hover { text-decoration: underline; }
.fcmc-strip-right { margin-left: auto; white-space: nowrap; opacity: .9; flex: 0 0 auto; }

/* Ticker de últimas notícias */
.fcmc-ticker {
	flex: 1 1 auto;
	min-width: 0;
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 22px), transparent 100%);
	-webkit-mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 22px), transparent 100%);
}
.fcmc-ticker::-webkit-scrollbar { display: none; }
.fcmc-ticker-track { display: flex; width: max-content; }
.fcmc-ticker-set { display: flex; align-items: center; flex: 0 0 auto; }
.fcmc-tk-item {
	display: inline-flex;
	align-items: baseline;
	gap: 8px;
	padding: 7px 26px 7px 8px;
	color: inherit;
	text-decoration: none;
	white-space: nowrap;
	font-weight: 400;
	font-size: 12.5px;
}
.fcmc-tk-item:hover .fcmc-tk-title { text-decoration: underline; }
.fcmc-tk-cat { font-weight: 400; text-transform: uppercase; font-size: 11px; letter-spacing: .04em; opacity: .7; }
.fcmc-tk-item::after { content: "•"; margin-left: 18px; opacity: .45; }

/* Rolagem automática */
.fcmc-ticker.is-marquee { overflow: hidden; }
.fcmc-ticker.is-marquee .fcmc-ticker-track { animation: fcmc-marquee var(--fcmc-tk-dur, 40s) linear infinite; }
.fcmc-ticker.is-marquee:hover .fcmc-ticker-track,
.fcmc-ticker.is-marquee:focus-within .fcmc-ticker-track,
.fcmc-ticker.is-paused .fcmc-ticker-track { animation-play-state: paused; }
@keyframes fcmc-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Anúncio realocado (layout "full") */
.fcmc-topad { text-align: center; padding: 10px 12px; }
.fcmc-topad img { max-width: 100%; height: auto; }

/* ---------- Gaveta (modo hambúrguer) ---------- */
.fcmc-overlay { position: fixed; inset: 0; z-index: 99995; background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .25s; }
.fcmc-overlay[hidden] { display: none; }
.fcmc-overlay.is-open { opacity: 1; }

.fcmc-drawer {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	z-index: 100000;
	width: min(86vw, 340px);
	background: var(--fcmc-bg, #0a4ea0);
	color: var(--fcmc-tx, #fff);
	overflow-y: auto;
	transform: translateX(-102%);
	transition: transform .28s ease;
	padding: 0 0 24px;
	visibility: hidden;
}
.fcmc-drawer.is-open { transform: none; visibility: visible; box-shadow: 8px 0 30px rgba(0, 0, 0, .35); }
.fcmc-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.fcmc-drawer .fcmc-logo { height: var(--fcmc-logo-m, 32px); }
.fcmc-close { font-size: 34px; line-height: 1; padding: 4px 10px; }
.fcmc-drawer-menu a { display: block; padding: 15px 20px; color: var(--fcmc-tx, #fff); text-decoration: none; font-size: 17px; font-weight: 600; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.fcmc-drawer-menu a:hover { background: rgba(255, 255, 255, .1); }
.fcmc-drawer-menu .current-menu-item > a { color: var(--fcmc-ac, #f5c518); border-left: 4px solid var(--fcmc-ac, #f5c518); }
.fcmc-drawer-menu .sub-menu a { padding-left: 38px; font-size: 15px; font-weight: 500; }
.fcmc-drawer-foot { margin: 18px 20px 0; font-size: 13px; opacity: .8; }

body.fcmc-lock { overflow: hidden; }

/* ---------- Celular ---------- */
@media (max-width: 900px) {
	.fcmc-wrap { padding: 0 12px; }
	.fcmc-logo { height: var(--fcmc-logo-m, 32px); }
	.fcmc-strip-right { display: none; }
	.fcmc-strip-in { min-height: 36px; gap: 10px; }

	/* Menu azul rolando na horizontal */
	.fcmc-header[data-mobile="scroll"] .fcmc-bar-in { min-height: 50px; gap: 10px; }
	.fcmc-header[data-mobile="scroll"] .fcmc-nav { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
	.fcmc-header[data-mobile="scroll"] .fcmc-nav::-webkit-scrollbar { display: none; }
	.fcmc-header[data-mobile="scroll"] .fcmc-menu { flex-wrap: nowrap; width: max-content; padding-right: 12px; }
	.fcmc-header[data-mobile="scroll"] .fcmc-menu .sub-menu { display: none; }
	.fcmc-header[data-mobile="scroll"] .fcmc-menu a { padding: 14px 12px; font-size: 14.5px; }
	.fcmc-header[data-mobile="scroll"] .fcmc-search-btn { display: none; }

	/* Gaveta com hambúrguer */
	.fcmc-header[data-mobile="drawer"] .fcmc-nav { display: none; }
	.fcmc-header[data-mobile="drawer"] .fcmc-burger { display: block; }
	.fcmc-header[data-mobile="drawer"] .fcmc-bar-in { min-height: 56px; gap: 8px; }
	.fcmc-header[data-mobile="drawer"] .fcmc-brand { margin-right: auto; }
	.fcmc-header[data-mobile="drawer"] .fcmc-search-btn { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
	.fcmc-header, .fcmc-drawer, .fcmc-overlay { transition: none; }
	.fcmc-ticker.is-marquee { overflow-x: auto; }
	.fcmc-ticker.is-marquee .fcmc-ticker-track { animation: none; }
}


/* ======================= v1.2: topo completo ======================= */
.fcmc-top { background: #fff; color: #0b2a5c; position: relative; z-index: 1; }
.fcmc-top *, .fcmc-top { box-sizing: border-box; }
.fcmc-top-in { display: flex; align-items: center; gap: 32px; padding-top: 18px; padding-bottom: 18px; }
.fcmc-toplogo { display: block; flex: 0 0 auto; }
.fcmc-toplogo img { display: block; height: var(--fcmc-toplogo-d, 150px); width: auto; max-width: none; }
.fcmc-toplogo img:not([src]) { display: none; }
.fcmc-topbanner { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: center; text-align: center; }
.fcmc-topbanner img { max-width: 100%; height: auto; }
.fcmc-topbanner.has-ad .fcmc-topad { padding: 0; }
.fcmc-topright { flex: 0 0 auto; display: flex; align-items: center; gap: 16px; }
.fcmc-topagenda { display: block; }
.fcmc-topagenda img { display: block; height: var(--fcmc-agenda-d, 80px); width: auto; max-width: none; }

.fcmc-topburger {
	display: none;
	flex-direction: column;
	align-items: center;
	gap: 5px;
	background: transparent;
	border: 0;
	border-left: 1px solid #cfd6e4;
	padding: 4px 0 4px 16px;
	cursor: pointer;
	color: var(--fcmc-bg, #0a4aa0);
}
.fcmc-topburger em { font-style: normal; font-size: 12px; line-height: 1; color: #6b7280; letter-spacing: .02em; }
.fcmc-topburger span { display: block; width: 30px; height: 3px; background: currentColor; border-radius: 1px; }

@media (min-width: 901px) {
	.fcmc-top-in { padding-left: 40px; padding-right: 40px; }
	.fcmc-strip-in, .fcmc-bar-in { padding-left: 40px; padding-right: 40px; }
}

/* ======================= v1.2: celular ======================= */
@media (max-width: 900px) {
	.fcmc-top-in { flex-wrap: wrap; gap: 10px 12px; padding: 14px 14px 12px; }
	.fcmc-toplogo { order: 1; margin-right: auto; }
	.fcmc-toplogo img { height: var(--fcmc-toplogo-m, 105px); }
	.fcmc-topright { order: 2; gap: 14px; }
	.fcmc-topagenda img { height: var(--fcmc-agenda-m, 50px); }
	.fcmc-topburger { display: flex; }
	.fcmc-topbanner { order: 3; flex: 1 1 100%; }

	/* menu azul: maior e alinhado à esquerda, rolando na horizontal */
	.fcmc-header[data-mobile="scroll"] .fcmc-menu { justify-content: flex-start; }
	.fcmc-header[data-mobile="scroll"] .fcmc-menu a { padding: 16px 13px; font-size: 16px; }
	.fcmc-header[data-mobile="scroll"] .fcmc-bar-in { min-height: 52px; }

	/* faixa amarela menor que a azul */
	.fcmc-strip { font-size: 11.5px; }
	.fcmc-strip-in { min-height: 26px; gap: 8px; }
	.fcmc-badge { font-size: 10px; padding: 2px 7px; }
	.fcmc-tk-item { padding: 4px 20px 4px 6px; font-size: 11.5px; }
	.fcmc-tk-cat { font-size: 10px; }
}


/* ======================= v1.2.1: banner no tamanho certo ======================= */
.fcmc-topbanner { align-self: center; }
.fcmc-topbanner > * { width: 100% !important; max-width: 790px !important; min-width: 0 !important; margin-left: auto !important; margin-right: auto !important; }
.fcmc-topbanner img,
.fcmc-topbanner picture,
.fcmc-topbanner iframe { max-width: 100% !important; }
.fcmc-topbanner img { width: 100% !important; height: auto !important; display: block; margin: 0 auto; }
@media (max-width: 900px) {
	.fcmc-topbanner > * { max-width: 100% !important; }
}


/* ======================= v1.2.2: barra fixa por JS (funciona no celular) ======================= */
.fcmc-hwrap { position: relative; z-index: 99990; width: 100%; }
.fcmc-header,
body.admin-bar .fcmc-header { position: relative; top: auto; }
.fcmc-header.is-fixed,
body.admin-bar .fcmc-header.is-fixed { position: fixed; left: 0; right: 0; width: 100%; }
.fcmc-header.is-fixed { top: 0; }
body.admin-bar .fcmc-header.is-fixed { top: 32px; }
@media (max-width: 782px) { body.admin-bar .fcmc-header.is-fixed { top: 46px; } }
.fcmc-header[data-mode="static"] { position: relative; }
.fcmc-header { display: block !important; }

/* Ticker: só o título, texto pequeno e sem negrito */
.fcmc-header .fcmc-ticker .fcmc-tk-item,
.fcmc-header .fcmc-ticker .fcmc-tk-title {
	font-size: 12px !important;
	font-weight: 400 !important;
	line-height: 1.3 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
}
@media (max-width: 900px) {
	.fcmc-header .fcmc-ticker .fcmc-tk-item,
	.fcmc-header .fcmc-ticker .fcmc-tk-title { font-size: 11px !important; }
}


/* ======================= v1.2.3: alinhamento, espaçamentos e links ======================= */

/* Links: sem sublinhado em nenhum estado, sem realce ao tocar */
.fcmc-header a,
.fcmc-header a:hover,
.fcmc-header a:focus,
.fcmc-header a:active,
.fcmc-header a:visited,
.fcmc-header a *,
.fcmc-drawer a,
.fcmc-drawer a:hover,
.fcmc-drawer a:focus,
.fcmc-drawer a:active,
.fcmc-drawer a:visited,
.fcmc-top a,
.fcmc-top a:hover { text-decoration: none !important; }
.fcmc-header a,
.fcmc-header button,
.fcmc-drawer a,
.fcmc-top a,
.fcmc-top button { -webkit-tap-highlight-color: transparent; }
.fcmc-header a:focus:not(:focus-visible),
.fcmc-drawer a:focus:not(:focus-visible) { outline: none; }

/* Barra azul mais fina (sempre mais grossa que a amarela) */
.fcmc-header .fcmc-bar-in { min-height: 50px; }
.fcmc-header .fcmc-menu a { padding: 13px 16px; }

/* Topo no computador: banner e agenda alinhados pela base do logo */
@media (min-width: 901px) {
	.fcmc-top-in { align-items: flex-end; padding-bottom: 14px; }
	.fcmc-topbanner { align-self: flex-end; align-items: flex-end; }
	.fcmc-topright { align-items: flex-end; align-self: flex-end; }
}

/* Banner sem folgas extras (herdadas do tema) */
.fcmc-topbanner { font-size: 0; line-height: 0; }
.fcmc-topbanner * { margin-top: 0 !important; margin-bottom: 0 !important; padding-top: 0 !important; }
.fcmc-topbanner,
.fcmc-topbanner > * { padding-bottom: 0 !important; min-height: 0 !important; }

@media (max-width: 900px) {
	/* distâncias mínimas entre logo, banner e barra azul */
	.fcmc-top-in { padding: 6px 12px 4px; gap: 2px 12px; }
	.fcmc-topbanner { margin: 0 !important; }

	/* menu azul mais compacto, como no Muita Informação */
	.fcmc-header[data-mobile="scroll"] .fcmc-menu { gap: 0; padding-right: 8px; }
	.fcmc-header[data-mobile="scroll"] .fcmc-menu a { padding: 12px 9px; font-size: 16px; }
	.fcmc-header[data-mobile="scroll"] .fcmc-bar-in { min-height: 44px; }
}


/* ======================= v1.2.5: largura controlável da faixa azul ======================= */
.fcmc-header { background: transparent; pointer-events: none; }
.fcmc-blue,
.fcmc-strip,
.fcmc-search { pointer-events: auto; }
.fcmc-blue { background: var(--fcmc-bg, #0a4aa0); color: var(--fcmc-tx, #fff); }
.fcmc-search { background: var(--fcmc-bg, #0a4aa0); border-top: 1px solid rgba(255, 255, 255, .18); }
.fcmc-header.is-scrolled { box-shadow: none; }
.fcmc-header.is-scrolled .fcmc-bar { filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .28)); }


/* ======================= v1.2.7: lupa ao lado do botão "menu" no celular ======================= */
.fcmc-topsearch {
	display: none;
	background: transparent;
	border: 0;
	padding: 6px;
	margin: 0;
	cursor: pointer;
	color: var(--fcmc-bg, #0a4aa0);
	line-height: 0;
	border-radius: 6px;
	-webkit-tap-highlight-color: transparent;
}
@media (max-width: 900px) {
	.fcmc-topsearch { display: flex; align-items: center; justify-content: center; }
	.fcmc-topright { gap: 8px; }
	/* a lupa da barra azul some no celular (fica só a do topo) */
	.fcmc-header[data-layout="full"] .fcmc-search-btn { display: none; }
}


/* ======================= v1.2.8: blindagem contra o CSS do tema (páginas de notícia) ======================= */
.fcmc-top,
.fcmc-header,
.fcmc-drawer { text-align: left; }
.fcmc-top .fcmc-top-in { display: flex !important; }

.fcmc-top .fcmc-toplogo img,
.fcmc-top .fcmc-topagenda img,
.fcmc-header .fcmc-brand img,
.fcmc-drawer .fcmc-brand img {
	width: auto !important;
	max-width: none !important;
	max-height: none !important;
	min-width: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	display: block !important;
}
.fcmc-top .fcmc-toplogo img { height: var(--fcmc-toplogo-d, 150px) !important; }
.fcmc-top .fcmc-topagenda img { height: var(--fcmc-agenda-d, 80px) !important; }
.fcmc-header .fcmc-brand img { height: var(--fcmc-logo-d, 40px) !important; max-width: 240px !important; }
.fcmc-drawer .fcmc-brand img { height: var(--fcmc-logo-m, 32px) !important; }
.fcmc-top .fcmc-toplogo img:not([src]),
.fcmc-header .fcmc-brand img:not([src]),
.fcmc-drawer .fcmc-brand img:not([src]) { display: none !important; }
.fcmc-top .fcmc-toplogo,
.fcmc-top .fcmc-topagenda { flex: 0 0 auto !important; width: auto !important; max-width: none !important; }

/* Botões e ícones do topo */
.fcmc-topsearch svg { width: 26px !important; height: 26px !important; display: block !important; }
.fcmc-topburger span { display: block !important; width: 30px !important; height: 3px !important; }

@media (max-width: 900px) {
	.fcmc-top .fcmc-toplogo img { height: var(--fcmc-toplogo-m, 105px) !important; }
	.fcmc-top .fcmc-topagenda img { height: var(--fcmc-agenda-m, 50px) !important; }
	.fcmc-header .fcmc-brand img { height: var(--fcmc-logo-m, 32px) !important; }
}
