/* MPMA – Conteúdo da Home. Tudo fica dentro de .mpma-home para não afetar o resto do tema. */
.mpma-home {
	--mp-azul: #004b87;
	--mp-azul-escuro: #003366;
	--mp-vermelho: #c1272d;
	--bg-cinza: #f8f9fa;
	--texto: #333;
	--texto-2: #666;
	font-family: 'Open Sans', sans-serif;
	color: var(--texto);
	background: var(--bg-cinza);
	width: 100vw;
	margin-left: calc(50% - 50vw);
	padding-bottom: 64px;
}
.mpma-home * { box-sizing: border-box; }
.mpma-wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* Faixa azul */
.mpma-hero {
	background: linear-gradient(180deg, var(--mp-azul-escuro), var(--mp-azul));
	border-bottom: 4px solid var(--mp-vermelho);
	color: #fff;
	text-align: center;
	padding: 64px 0 110px;
}
.mpma-hero h1 {
	font-family: 'Poppins', sans-serif;
	font-weight: 700;
	font-size: clamp(28px, 4vw, 42px);
	color: #fff;
	margin: 0 0 16px;
}
.mpma-hero p { max-width: 680px; margin: 0 auto; font-size: 18px; line-height: 1.6; opacity: .92; }

/* Cards de atalho */
.mpma-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 20px;
	margin-top: -70px;
	position: relative;
}
.mpma-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
	background: #fff;
	border-radius: 8px;
	border-top: 4px solid var(--mp-azul);
	padding: 24px 24px 40px;
	box-shadow: 0 6px 20px rgba(0, 51, 102, .10);
	text-decoration: none !important;
	color: inherit;
	transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
a.mpma-card:hover, a.mpma-card:focus-visible {
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(0, 51, 102, .18);
	border-top-color: var(--mp-vermelho);
	outline: none;
}
.mpma-card-title { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 18px; color: var(--mp-azul); line-height: 1.3; }
.mpma-card-desc { font-size: 14px; color: var(--texto-2); line-height: 1.5; }
.mpma-card-arrow { position: absolute; right: 20px; bottom: 14px; color: var(--mp-vermelho); font-size: 20px; transition: transform .15s ease; }
a.mpma-card:hover .mpma-card-arrow { transform: translateX(4px); }

/* Identidade Estratégica */
.mpma-identidade { margin-top: 72px; text-align: center; }
.mpma-identidade h2 {
	font-family: 'Poppins', sans-serif;
	font-weight: 700;
	font-size: clamp(24px, 3vw, 32px);
	color: var(--mp-azul);
	margin: 0 0 40px;
}
.mpma-identidade h2::after { content: ''; display: block; width: 60px; height: 3px; background: var(--mp-vermelho); margin: 16px auto 0; }
.mpma-id-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.mpma-id-card { background: #fff; border: 1px solid #e6e9ee; border-radius: 8px; padding: 32px 28px; }
.mpma-id-card h3 {
	font-family: 'Poppins', sans-serif;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--mp-azul);
	font-size: 20px;
	margin: 0 0 14px;
}
.mpma-id-card p { margin: 0; color: var(--texto-2); line-height: 1.7; font-size: 15.5px; }

@media (max-width: 600px) {
	.mpma-hero { padding: 44px 0 96px; }
	.mpma-hero p { font-size: 16px; }
}

/* Notícias na home */
.mpma-destaques { margin-top: 56px; }
.mpma-ultimas { margin-top: 64px; }
.mpma-secao-topo { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 8px; }
.mpma-secao-topo h2 {
	font-family: 'Poppins', sans-serif; font-weight: 700; font-size: clamp(22px, 2.6vw, 28px);
	color: var(--mp-azul); margin: 0;
}
.mpma-secao-topo h2::after { content: ''; display: block; width: 60px; height: 3px; background: var(--mp-vermelho); margin-top: 12px; }
.mpma-ver-todas { color: var(--mp-azul) !important; font-weight: 600; text-decoration: none !important; border-bottom: 2px solid transparent; }
.mpma-ver-todas:hover { border-bottom-color: var(--mp-vermelho); }
.mpma-ultimas .mpma-news { margin-top: 20px; }

/* Efeito ao passar o mouse (vale para card com ou sem link) */
.mpma-card { transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease; }
.mpma-card .mpma-card-title, .mpma-card .mpma-card-desc, .mpma-card .mpma-card-arrow { transition: color .18s ease; }
.mpma-card:hover, a.mpma-card:focus-visible {
	background: var(--mp-azul);
	border-top-color: var(--mp-vermelho);
	transform: translateY(-4px);
	box-shadow: 0 14px 30px rgba(0, 51, 102, .25);
}
.mpma-card:hover .mpma-card-title,
.mpma-card:hover .mpma-card-desc,
.mpma-card:hover .mpma-card-arrow,
a.mpma-card:focus-visible .mpma-card-title,
a.mpma-card:focus-visible .mpma-card-desc,
a.mpma-card:focus-visible .mpma-card-arrow { color: #fff; }

.mpma-id-card { transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease; border-top: 4px solid transparent; }
.mpma-id-card h3, .mpma-id-card p { transition: color .18s ease; }
.mpma-id-card:hover {
	background: var(--mp-azul); border-color: var(--mp-azul); border-top-color: var(--mp-vermelho);
	transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0, 51, 102, .25);
}
.mpma-id-card:hover h3, .mpma-id-card:hover p { color: #fff; }

@media (prefers-reduced-motion: reduce) {
	.mpma-card, .mpma-id-card { transition: none; }
	.mpma-card:hover, .mpma-id-card:hover { transform: none; }
}
