/* MAEFP shared header: emblem + title bar, yellow nav, and the static
   inner-page hero banner. Used site-wide (home page included). */

.maefp-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.maefp-wrap, .maefp-wrap * { box-sizing: border-box; }

.maefp-topbar { background: #ffffff; border-bottom: 1px solid #eee; }
.maefp-topbar .maefp-wrap { display: flex; align-items: center; gap: 20px; padding-top: 18px; padding-bottom: 18px; }
.maefp-topbar img.emblem { height: 78px; width: auto; }
.maefp-topbar h1 {
	font-size: 26px;
	line-height: 1.25;
	margin: 0;
	font-weight: 700;
	color: #1a1a1a;
	font-family: 'Source Sans Pro', Arial, sans-serif;
}
.maefp-topbar h1 a { color: inherit; text-decoration: none; }

.maefp-nav { background: #f6b800; }
.maefp-nav ul.maefp-menu { list-style: none; display: flex; margin: 0; padding: 0; flex-wrap: wrap; }
.maefp-nav .maefp-menu li { position: relative; }
.maefp-nav a,
.maefp-nav a:link,
.maefp-nav a:visited,
.maefp-nav a:hover,
.maefp-nav a:active,
.maefp-nav a:focus {
	display: block;
	padding: 16px 24px;
	font-weight: 600;
	color: #1a1a1a !important;
	border-bottom: 3px solid transparent;
	text-decoration: none;
	font-family: 'Source Sans Pro', Arial, sans-serif;
}
.maefp-nav li.current,
.maefp-nav li.current-menu-item {}
.maefp-nav li.current > a,
.maefp-nav li.current-menu-item > a,
.maefp-nav a:hover { border-bottom-color: #1a7a45; }

/* Sub-menu (ex: categorias de noticias sob "Notícias") */
.maefp-nav .maefp-menu li.menu-item-has-children > a:after {
	content: "\25BE";
	margin-left: 6px;
	font-size: 11px;
}
.maefp-nav .maefp-menu ul.sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	background: #fff;
	list-style: none;
	margin: 0;
	padding: 8px 0;
	box-shadow: 0 10px 24px rgba(0,0,0,.15);
	z-index: 50;
}
.maefp-nav .maefp-menu li:hover > ul.sub-menu { display: block; }
.maefp-nav .maefp-menu ul.sub-menu li a {
	padding: 10px 20px;
	color: #14532d !important;
	border-bottom: 0;
	font-weight: 500;
}
.maefp-nav .maefp-menu ul.sub-menu li a:hover { background: #f6f9f7; }

/* Static hero banner for inner pages/posts (home page uses its own slider instead) */
.maefp-static-hero { position: relative; background: #111; overflow: hidden; height: 220px; }
.maefp-static-hero img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .5; }
.maefp-static-hero .maefp-static-hero-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 0 20px;
	background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.45));
}
.maefp-static-hero h1 {
	color: #fff;
	font-size: 32px;
	margin: 0;
	font-family: 'Source Sans Pro', Arial, sans-serif;
	text-shadow: 0 2px 10px rgba(0,0,0,.6);
}

@media (max-width: 600px) {
	.maefp-topbar h1 { font-size: 20px; }
	.maefp-topbar img.emblem { height: 56px; }
	.maefp-nav a { padding: 12px 16px; font-size: 14px; }
	.maefp-static-hero { height: 150px; }
	.maefp-static-hero h1 { font-size: 22px; }
}
