/**
 * Página do evento (agenda-guiawp/templates/single-evento.php): etapa 4 do redesign.
 *
 * Tela: design_handoff_morro_guia/telas/Pagina de Evento Morro Guia.dc.html. Fonte Inter, cores do
 * manual, tokens de guiawp/assets/css/gcep-casca.css. Classes mg-* porque o Tailwind do site é
 * pré-compilado. Carregado só no single do evento (AGW_Assets), versão por filemtime.
 *
 * Contraste: verde de botão com texto branco é #13804f (o #22b573 fica em 2,6:1); laranja de texto
 * é #8a4200.
 *
 * @package Agenda_GuiaWP
 * @since   0.8.4 - Valoar - 2026-09-14
 */

.mg-ev {
	font-family: Inter, system-ui, sans-serif;
	color: #33496b;
	background: #f6f8fb;
	padding-block: 14px 40px;
}
.mg-ev *, .mg-ev *::before, .mg-ev *::after { box-sizing: border-box; }

/* A migalha acompanha a largura da casca nesta tela (no header ela para em 1280px). */
body.single-agw_evento .gcep-migalha { max-width: 1440px; padding: 12px 16px 0; }
@media (min-width: 768px) { body.single-agw_evento .gcep-migalha { padding-inline: 24px; } }
@media (min-width: 1440px) { body.single-agw_evento .gcep-migalha { padding-inline: 44px; } }

.mg-ev-ico {
	width: 18px; height: 18px;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.mg-ev-ico--cheio { fill: currentColor; stroke: none; }

/* ── Botões ─────────────────────────────────────────────────────────────── */

.mg-ev-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid transparent;
	border-radius: var(--mg-raio-botao, 10px); /* correção E5: 9 -> 10 */
	font: 700 14px/1.1 Inter, system-ui, sans-serif;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: filter .15s ease, background-color .15s ease;
}
.mg-ev-btn:focus-visible { outline: 2px solid #0d2b5c; outline-offset: 2px; }
.mg-ev-btn--verde { background: #13804f; color: #fff; }
.mg-ev-btn--verde:hover { filter: brightness(1.08); color: #fff; }
.mg-ev-btn--azul { background: #1266d6; color: #fff; }
.mg-ev-btn--azul:hover { background: #0d47a6; color: #fff; }
.mg-ev-btn--suave { background: #eef5fe; color: #0d4fa8; border-color: #d3e3f8; }
.mg-ev-btn--suave:hover { background: #e1edfc; color: #0d47a6; }
.mg-ev-btn--linha { background: #fff; color: #1266d6; border-color: #d3e3f8; }
.mg-ev-btn--linha:hover { background: #f4f8fd; color: #0d47a6; }
.mg-ev-btn--branco { background: #fff; color: #0d2b5c; }
.mg-ev-btn--branco:hover { background: #eaf2fc; color: #0d2b5c; }
.mg-ev-btn--branco-linha { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.mg-ev-btn--branco-linha:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.mg-ev-btn--branco:focus-visible, .mg-ev-btn--branco-linha:focus-visible { outline-color: #fff; }
.mg-ev-btn--largo { width: 100%; }
.mg-ev-btn--mini { min-height: 44px; padding: 0 14px; font-size: 13px; }

/* ── Capa ───────────────────────────────────────────────────────────────── */

.mg-ev-capa {
	position: relative;
	min-height: 220px;
	aspect-ratio: 16 / 9;
	max-height: 420px;
	width: 100%;
	border-radius: 16px;
	overflow: hidden;
	/* Correção T2: fundo liso da capa sem foto (o véu sobre a foto continua). */
	background: var(--mg-marinho, #0d2b5c);
}
.mg-ev-capa__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mg-ev-capa__veu {
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(8, 18, 30, .35) 0%, rgba(8, 18, 30, 0) 30%, rgba(8, 18, 30, 0) 60%, rgba(8, 18, 30, .55) 100%);
}
.mg-ev-capa--sem-foto { aspect-ratio: auto; min-height: 150px; }

.mg-ev-capa__selos { position: absolute; top: 12px; left: 12px; right: 112px; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; }
.mg-ev-selo {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 7px 11px;
	border-radius: 99px;
	font-size: 12px; font-weight: 700; line-height: 1;
	background: #fff; color: #0d2b5c;
}
.mg-ev-selo .mg-ev-ico { width: 14px; height: 14px; }
.mg-ev-selo--confirmado { background: #e9f7f0; color: #0a6b42; }
.mg-ev-selo--adiado { background: #fff0e0; color: #8a4200; }
.mg-ev-selo--cancelado { background: #b42318; color: #fff; }
.mg-ev-selo--encerrado { background: #3d4f6b; color: #fff; }
.mg-ev-selo--cat { background: #1266d6; color: #fff; }

.mg-ev-capa__acoes { position: absolute; top: 10px; right: 10px; z-index: 2; display: flex; gap: 8px; }
.mg-ev-capa__btn {
	width: 44px; height: 44px;
	display: inline-flex; align-items: center; justify-content: center;
	border: 0; border-radius: 99px;
	background: rgba(255, 255, 255, .95);
	color: #1266d6;
	cursor: pointer;
}
.mg-ev-capa__btn:hover { background: #fff; color: #0d47a6; }
.mg-ev-capa__btn:focus-visible, .mg-ev-capa .mg-salvar--icone:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px #1266d6; }

.mg-ev-capa__data {
	position: absolute; left: 12px; bottom: 12px; z-index: 2;
	display: flex; flex-direction: column; align-items: center; gap: 4px;
	margin: 0;
	padding: 9px 12px;
	border-radius: 10px;
	background: rgba(13, 22, 36, .88);
	color: #fff;
	line-height: 1;
}
.mg-ev-capa__data strong { font-size: 17px; font-weight: 800; color: #ffd6a8; }
.mg-ev-capa__data span { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; }

.mg-ev-capa__fotos {
	position: absolute; right: 12px; bottom: 12px; z-index: 2;
	display: inline-flex; align-items: center; gap: 7px;
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid rgba(255, 255, 255, .35);
	border-radius: 99px;
	background: rgba(13, 22, 36, .78);
	color: #fff;
	font: 700 12.5px/1 Inter, system-ui, sans-serif;
	cursor: pointer;
}
.mg-ev-capa__fotos:hover { background: rgba(13, 22, 36, .92); }
.mg-ev-capa__fotos:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.mg-ev-capa__fotos .mg-ev-ico { width: 16px; height: 16px; }

@media (max-width: 479px) {
	.mg-ev-capa { aspect-ratio: 4 / 3; }
	.mg-ev-capa__fotos { padding: 0 12px; font-size: 12px; }
}
@media (min-width: 768px) {
	.mg-ev-capa { border-radius: 16px; aspect-ratio: 21 / 8; max-height: 440px; }
	.mg-ev-capa__selos { top: 18px; left: 18px; }
	.mg-ev-capa__acoes { top: 16px; right: 16px; gap: 10px; }
	.mg-ev-capa__data { left: 18px; bottom: 18px; padding: 11px 15px; }
	.mg-ev-capa__data strong { font-size: 20px; }
	.mg-ev-capa__fotos { right: 18px; bottom: 18px; }
}

/* ── Identidade ─────────────────────────────────────────────────────────── */

.mg-ev-id, .mg-ev-card {
	background: #fff;
	border: 1px solid var(--mg-borda-campo, #e1e8f2);
	border-radius: 16px; /* correção E5: 13 -> 16 */
	box-shadow: var(--mg-sombra-card, 0 1px 3px rgba(13, 43, 92, .05));
}
.mg-ev-id { margin-top: 14px; padding: 18px; }
.mg-ev-id__h1 {
	margin: 0 0 12px;
	font-size: 23px; font-weight: 800; line-height: 1.25; letter-spacing: -.02em;
	color: #0d2b5c;
	text-wrap: balance;
	overflow-wrap: anywhere;
}
.mg-ev-id__meta { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.mg-ev-id__meta li { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; line-height: 1.45; color: #52678a; }
.mg-ev-id__meta .mg-ev-ico { width: 16px; height: 16px; margin-top: 1px; color: #1266d6; }
.mg-ev-id__meta strong { color: #0d2b5c; font-weight: 700; }
.mg-ev-id__acoes {
	display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px;
	margin-top: 16px; padding-top: 16px;
	border-top: 1px solid #edf1f6;
}
.mg-ev-id__acoes > * { min-width: 0; }
@media (min-width: 560px) {
	.mg-ev-id__acoes { display: flex; flex-wrap: wrap; gap: 10px; }
}
@media (min-width: 768px) {
	.mg-ev-id { margin-top: 16px; padding: 22px 26px; }
	.mg-ev-id__h1 { font-size: 28px; } /* correção E6: 30/34 -> 28 (celular continua 23) */
	.mg-ev-id__meta { flex-direction: row; flex-wrap: wrap; gap: 8px 22px; }
}

/* Menu "Adicionar à agenda" */
.mg-ev-menu { position: relative; }
.mg-ev-menu > summary { list-style: none; width: 100%; }
.mg-ev-menu > summary::-webkit-details-marker { display: none; }
.mg-ev-menu__lista {
	position: absolute; left: 0; top: calc(100% + 6px); z-index: 30;
	width: max(100%, 250px);
	max-width: calc(100vw - 32px);
	padding: 6px;
	background: #fff;
	border: 1px solid #e1e8f2;
	border-radius: 10px;
	box-shadow: 0 6px 20px rgba(13, 43, 92, .12);
}
.mg-ev-menu__lista a {
	display: flex; align-items: center;
	min-height: 44px;
	padding: 0 12px;
	border-radius: 7px;
	font-size: 14px; font-weight: 600;
	color: #0d2b5c;
	text-decoration: none;
}
.mg-ev-menu__lista a:hover { background: #f1f5fa; color: #1266d6; }
.mg-ev-menu__lista a:focus-visible { outline: 2px solid #1266d6; outline-offset: -2px; }
.mg-ev-menu__nota { margin: 4px 12px 6px; font-size: 12px; line-height: 1.45; color: #52678a; }

/* ── Abas âncora ────────────────────────────────────────────────────────── */

/* Correção E3: grudam logo abaixo do cabeçalho fixo (98 no celular, 110 a partir de 768), como as
   do anúncio. A barra fixa do celular (z 900) continua por cima. */
.mg-ev-abas {
	position: sticky;
	top: 98px;
	z-index: 30;
	margin-top: 14px;
	background: #fff;
	border: 1px solid var(--mg-borda-campo, #e1e8f2);
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(13, 43, 92, .06);
}
@media (min-width: 768px) { .mg-ev-abas { top: 110px; } }
.mg-ev-abas ul {
	display: flex; gap: 4px;
	margin: 0; padding: 0 8px;
	list-style: none;
	overflow-x: auto;
	/* Grudada, a barra de rolagem fina aparecia embaixo das abas no celular: some, como no anúncio. */
	scrollbar-width: none;
}
.mg-ev-abas ul::-webkit-scrollbar { display: none; }
.mg-ev-abas a {
	display: inline-flex; align-items: center;
	min-height: 46px;
	padding: 0 10px;
	border-bottom: 2px solid transparent;
	font-size: 13.5px; font-weight: 600;
	color: #52678a;
	text-decoration: none;
	white-space: nowrap;
}
.mg-ev-abas a:hover, .mg-ev-abas a[aria-current="true"] { color: #1266d6; border-bottom-color: #1266d6; }
.mg-ev-abas a[aria-current="true"] { font-weight: 700; }
.mg-ev-abas a:focus-visible { outline: 2px solid #1266d6; outline-offset: -4px; border-radius: 6px; }
.mg-ev-abas a:active { color: var(--mg-marinho, #0d2b5c); background: var(--mg-ativo-fundo, #e4eefc); }

/* Cabeçalho + abas grudadas: a seção citada na âncora não fica por baixo (mesmos valores do anúncio). */
.mg-ev [id] { scroll-margin-top: 166px; }
@media (min-width: 768px) { .mg-ev [id] { scroll-margin-top: 178px; } }

/* ── Grade ──────────────────────────────────────────────────────────────── */

.mg-ev-grade {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 16px;
	margin-top: 16px;
}
.mg-ev-principal, .mg-ev-lado { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-content: start; min-width: 0; }
@media (min-width: 1024px) {
	.mg-ev-grade { grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
}
@media (min-width: 1280px) {
	.mg-ev-grade { grid-template-columns: minmax(0, 1fr) 360px; }
}

.mg-ev-card { padding: 18px; min-width: 0; }
@media (min-width: 768px) { .mg-ev-card { padding: 22px 24px; } }
.mg-ev-card__topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.mg-ev-card__topo .mg-ev-h2 { margin: 0; }

.mg-ev-h2 { margin: 0 0 14px; font-size: 19px; font-weight: 800; line-height: 1.25; letter-spacing: -.015em; color: #0d2b5c; }
.mg-ev-h2--lado { font-size: 16px; color: #0d4fa8; }
.mg-ev-h3 { margin: 18px 0 10px; font-size: 14.5px; font-weight: 700; color: #0d2b5c; }
.mg-ev-h3:first-child { margin-top: 0; }

.mg-ev-mais {
	display: inline-flex; align-items: center; gap: 6px;
	min-height: 44px; padding: 0 4px;
	border: 0; background: none;
	font: 700 13px/1 Inter, system-ui, sans-serif;
	color: #1266d6;
	cursor: pointer;
}
.mg-ev-mais .mg-ev-ico { width: 15px; height: 15px; }
.mg-ev-mais:focus-visible { outline: 2px solid #1266d6; outline-offset: 2px; border-radius: 4px; }
.mg-ev-mais:hover { color: var(--mg-azul-hover, #0d47a6); text-decoration: underline; }
.mg-ev-mais:active { color: var(--mg-marinho, #0d2b5c); }
/* "Ver mais" do Sobre (E2): mesmo botão do anúncio (.mg-an-mais). */
.mg-ev-mais--texto { padding: 0 2px; margin-top: 4px; font-size: 14px; color: #0d4fa8; }
.mg-ev-mais--texto[hidden] { display: none; }

/* ── Sobre ──────────────────────────────────────────────────────────────── */

.mg-ev-texto { font-size: 15px; line-height: 1.8; color: #33496b; overflow-wrap: anywhere; }
.mg-ev-texto p { margin: 0 0 1em; }
.mg-ev-texto > :last-child { margin-bottom: 0; }
.mg-ev-texto a { color: #0d4fa8; text-decoration: underline; }
.mg-ev-texto a:hover { color: var(--mg-azul-hover, #0d47a6); text-decoration-thickness: 2px; }
.mg-ev-texto a:focus-visible { outline: 2px solid #1266d6; outline-offset: 2px; border-radius: 3px; }
.mg-ev-texto a:active { color: var(--mg-marinho, #0d2b5c); }
/* E2: texto longo recolhido na mesma altura do anúncio (7 linhas de 1.8). O JS só recolhe quando sobra
   mais de 30px; sem JS o texto fica inteiro. A máscara é o esmaecido do fim, não enfeite. */
.mg-ev-texto.is-recolhido {
	max-height: 12.6em;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(#000 65%, transparent);
	mask-image: linear-gradient(#000 65%, transparent);
}
.mg-ev-mais--texto + .mg-ev-destaques { margin-top: 12px; }
.mg-ev-texto strong { color: #0d2b5c; }

.mg-ev-destaques {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
	margin: 18px 0 0; padding: 0; list-style: none;
}
.mg-ev-texto + .mg-ev-destaques { margin-top: 18px; }
.mg-ev-destaques:first-child { margin-top: 0; }
@media (min-width: 768px) { .mg-ev-destaques { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mg-ev-destaque {
	display: flex; flex-direction: column; gap: 4px;
	padding: 13px;
	border: 1px solid #e6ecf4;
	border-radius: 11px;
	min-width: 0;
}
.mg-ev-destaque .mg-ev-ico { width: 20px; height: 20px; margin-bottom: 4px; color: #13804f; }
.mg-ev-destaque__rotulo { font-size: 11.5px; font-weight: 600; color: #52678a; }
.mg-ev-destaque__valor { font-size: 13.5px; font-weight: 700; line-height: 1.35; color: #0d2b5c; overflow-wrap: anywhere; }

/* ── Programação ────────────────────────────────────────────────────────── */

.mg-ev-dias__abas { display: flex; gap: 8px; margin: 0 0 16px; padding-bottom: 2px; overflow-x: auto; scrollbar-width: thin; }
.mg-ev-dias__aba {
	flex: none;
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid #e1e8f2;
	border-radius: var(--mg-raio-botao, 10px);
	background: var(--mg-suave, #f1f5fa);
	font: 600 13px/1 Inter, system-ui, sans-serif;
	color: #33496b;
	cursor: pointer;
}
.mg-ev-dias__aba:hover { border-color: #b9cfee; color: #0d47a6; }
.mg-ev-dias__aba[aria-selected="true"] { background: #1266d6; border-color: #1266d6; color: #fff; }
.mg-ev-dias__aba:focus-visible { outline: 2px solid #0d2b5c; outline-offset: 2px; }
/* Sem JS as abas não fazem nada e todos os dias ficam à mostra. */
.mg-ev-dias:not(.mg-ev-dias--js) .mg-ev-dias__abas { display: none; }
.mg-ev-dias:not(.mg-ev-dias--js) .mg-ev-dias__painel + .mg-ev-dias__painel { margin-top: 20px; }
.mg-ev-dias--js .mg-ev-dias__painel > .mg-ev-h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

.mg-ev-linha { margin: 0; padding: 0; list-style: none; }
.mg-ev-linha__item {
	position: relative;
	display: grid;
	grid-template-columns: 62px minmax(0, 1fr);
	gap: 10px;
	padding: 12px 0 12px 22px;
	border-bottom: 1px solid #edf1f6;
}
.mg-ev-linha__item:last-child { border-bottom: 0; }
.mg-ev-linha__item::before {
	content: "";
	position: absolute; left: 0; top: 15px;
	width: 11px; height: 11px;
	border: 2.5px solid #1266d6;
	border-radius: 99px;
	background: #fff;
}
.mg-ev-linha__hora { font-size: 13.5px; font-weight: 700; color: #0d2b5c; font-variant-numeric: tabular-nums; }
.mg-ev-linha__txt strong { display: block; font-size: 14px; font-weight: 700; line-height: 1.4; color: #0d2b5c; overflow-wrap: anywhere; }
.mg-ev-linha__txt p { margin: 3px 0 0; font-size: 13px; line-height: 1.5; color: #52678a; }
@media (min-width: 768px) { .mg-ev-linha__item { grid-template-columns: 80px minmax(0, 1fr); } }

.mg-ev-resumo { margin: 0 0 6px; font-size: 16px; font-weight: 700; color: #0d2b5c; }
.mg-ev-resumo span { display: block; margin-top: 4px; font-size: 13px; font-weight: 500; color: #52678a; }
.mg-ev-datas { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.mg-ev-datas li { padding: 8px 11px; border: 1px solid #e1e8f2; border-radius: 8px; font-size: 13px; color: #33496b; }
.mg-ev-todas { margin-top: 16px; }
.mg-ev-todas summary { display: inline-flex; align-items: center; min-height: 44px; font-size: 13.5px; font-weight: 700; color: #1266d6; cursor: pointer; }
.mg-ev-todas summary:focus-visible { outline: 2px solid #1266d6; outline-offset: 2px; border-radius: 4px; }
.mg-ev-todas summary:hover { color: var(--mg-azul-hover, #0d47a6); text-decoration: underline; }
.mg-ev-todas summary:active { color: var(--mg-marinho, #0d2b5c); }
.mg-ev-todas .mg-ev-datas { margin-top: 8px; }

/* ── Ingressos (as classes agw-* dos parciais seguem valendo) ──────────── */

.mg-ev-ingressos .agw-gratis, .mg-ev-ingressos .agw-preco-unico { font-size: 20px; color: #0d2b5c; }
.mg-ev-ingressos .agw-ingresso__nome { color: #33496b; }
.mg-ev-ingressos .agw-ingresso__preco { color: #0d2b5c; }
.mg-ev-ingressos .agw-grupo__nome { color: #0d2b5c; }
.mg-ev-ingressos .agw-capacidade, .mg-ev-ingressos .agw-entrada-obs { font-size: 13px; color: #52678a; }
.mg-ev-ingressos .agw-ingressos__nota { font-size: 12px; color: #52678a; }
.mg-ev-ingressos .agw-sem-ingresso { color: #52678a; }
.mg-ev-ingressos .agw-fase-vigente strong { color: #0d4fa8; }
.mg-ev-ingressos .mg-ev-btn--largo { margin-top: 14px; }
@media (min-width: 560px) { .mg-ev-ingressos .mg-ev-btn--largo { width: auto; } }
.mg-ev-ingressos .agw-campo select { min-height: 32px; }
.mg-ev-ingressos .agw-ponto { border-color: #e1e8f2; border-radius: 10px; }
.mg-ev-ingressos .agw-ponto__end, .mg-ev-ingressos .agw-ponto__escopo { color: #52678a; }
.mg-ev-ingressos .agw-ponto__info strong { color: #0d2b5c; }

/* ── Galeria ────────────────────────────────────────────────────────────── */

.mg-ev-galeria { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 560px) { .mg-ev-galeria { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 768px) { .mg-ev-galeria { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; } }
.mg-ev-galeria__btn {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	padding: 0;
	border: 0;
	border-radius: 10px;
	overflow: hidden;
	background: #eef5fe;
	cursor: zoom-in;
}
.mg-ev-galeria__btn img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.mg-ev-galeria__btn:hover img { transform: scale(1.04); }
.mg-ev-galeria__btn:focus-visible { outline: 3px solid #1266d6; outline-offset: 2px; }
.mg-ev-galeria__resto {
	position: absolute; inset: 0;
	display: flex; align-items: center; justify-content: center;
	background: rgba(13, 22, 36, .6);
	color: #fff;
	font-size: 20px; font-weight: 800;
}

/* ── Localização ────────────────────────────────────────────────────────── */

.mg-ev-local__linha { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 14px; font-size: 14px; line-height: 1.5; color: #52678a; }
.mg-ev-local__linha .mg-ev-ico { width: 17px; height: 17px; margin-top: 1px; color: #1266d6; }
.mg-ev-local__linha strong { color: #0d2b5c; margin-right: 4px; }
.mg-ev-local { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.mg-ev-local__mapa { height: 240px; border: 1px solid #e1e8f2; border-radius: 11px; overflow: hidden; background: #eef2f7; z-index: 0; }
.mg-ev-local__mapa img { max-width: none !important; }
.mg-ev-local__botoes { display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; align-content: start; }
@media (min-width: 560px) { .mg-ev-local__botoes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 768px) {
	.mg-ev-local { grid-template-columns: minmax(0, 1fr) 210px; }
	.mg-ev-local--sem-mapa { grid-template-columns: minmax(0, 1fr); }
	.mg-ev-local:not(.mg-ev-local--sem-mapa) .mg-ev-local__botoes { grid-template-columns: minmax(0, 1fr); }
	.mg-ev-local--sem-mapa .mg-ev-local__botoes { display: flex; flex-wrap: wrap; }
}

/* ── Perguntas frequentes ───────────────────────────────────────────────── */

.mg-ev-faq { display: grid; gap: 8px; }
.mg-ev-faq__item { border: 1px solid #e1e8f2; border-radius: 10px; background: #fff; }
.mg-ev-faq__pergunta {
	position: relative;
	display: flex; align-items: center;
	min-height: 48px;
	padding: 12px 44px 12px 14px;
	font-size: 14px; font-weight: 700; line-height: 1.4;
	color: #0d2b5c;
	cursor: pointer;
	list-style: none;
}
.mg-ev-faq__pergunta::-webkit-details-marker { display: none; }
.mg-ev-faq__pergunta::after {
	content: "";
	position: absolute; right: 18px; top: 50%;
	width: 8px; height: 8px;
	border-right: 2px solid #52678a;
	border-bottom: 2px solid #52678a;
	transform: translateY(-70%) rotate(45deg);
	transition: transform .15s ease;
}
.mg-ev-faq__item[open] > .mg-ev-faq__pergunta::after { transform: translateY(-30%) rotate(-135deg); }
.mg-ev-faq__pergunta:focus-visible { outline: 2px solid #1266d6; outline-offset: -2px; border-radius: 10px; }
.mg-ev-faq__pergunta:hover { color: #1266d6; }
.mg-ev-faq__pergunta:hover::after { border-color: #1266d6; }
.mg-ev-faq__pergunta:active { background: var(--mg-ativo-fundo, #e4eefc); border-radius: 10px; }
.mg-ev-faq__resposta { padding: 0 14px 14px; font-size: 14px; line-height: 1.7; color: #33496b; overflow-wrap: anywhere; }

/* ── Notícias (card "lista" do blog) ────────────────────────────────────── */

.mg-ev-noticias { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.mg-ev-noticias .mg-pcard--lista { border: 1px solid #e1e8f2; background: #fff; }
/* Correção E7: categoria do card 10 -> 10,5px. */
.mg-ev-noticias .mg-pcard .mg-pchip { font-size: 10.5px; }
@media (min-width: 768px) { .mg-ev-noticias { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 768px) and (max-width: 1279px) {
	.mg-ev-noticias .mg-pcard--lista { flex-direction: column; align-items: stretch; }
	.mg-ev-noticias .mg-pcard--lista .mg-pcard__foto { width: 100%; height: 110px; }
}

/* ── Lateral ────────────────────────────────────────────────────────────── */

.mg-ev-info { display: grid; gap: 12px; margin: 0; }
.mg-ev-info__linha { display: grid; grid-template-columns: 18px minmax(0, 1fr); column-gap: 10px; align-items: start; }
.mg-ev-info__linha .mg-ev-ico { grid-row: span 2; width: 17px; height: 17px; margin-top: 1px; color: #1266d6; }
.mg-ev-info dt { font-size: 12.5px; font-weight: 700; color: #0d2b5c; }
.mg-ev-info dd { margin: 2px 0 0; font-size: 13px; line-height: 1.45; color: #52678a; overflow-wrap: anywhere; }

.mg-ev-situacao {
	display: flex; gap: 10px; align-items: flex-start;
	margin-top: 16px;
	padding: 12px;
	border-radius: 10px;
	font-size: 12.5px; line-height: 1.5;
}
.mg-ev-situacao p { margin: 0; }
.mg-ev-situacao strong { display: block; font-size: 13px; }
.mg-ev-situacao .mg-ev-ico { width: 18px; height: 18px; margin-top: 1px; }
.mg-ev-situacao--confirmado { background: #e9f7f0; color: #0a5c39; border: 1px solid #c6ead8; }
.mg-ev-situacao--adiado { background: #fff4e8; color: #7a3a00; border: 1px solid #fbd9b3; }
.mg-ev-situacao--cancelado { background: #fdecec; color: #9b1c13; border: 1px solid #f6c7c3; }
.mg-ev-situacao--encerrado { background: #f1f5fa; color: #33496b; border: 1px solid #e1e8f2; }

.mg-ev-realiza { display: grid; gap: 12px; }
.mg-ev-realiza .mg-ev-h2 { margin-bottom: 2px; }
.mg-ev-realiza__quem { display: flex; align-items: center; gap: 12px; }
.mg-ev-realiza__logo { width: 64px; height: 64px; flex: none; object-fit: contain; border: 1px solid #e1e8f2; border-radius: 12px; background: #fff; }
.mg-ev-realiza__inicial {
	width: 56px; height: 56px; flex: none;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 12px;
	background: #0d2b5c; color: #fff;
	font-size: 22px; font-weight: 800;
}
.mg-ev-realiza__nome { margin: 0; font-size: 14.5px; font-weight: 700; line-height: 1.35; color: #0d2b5c; overflow-wrap: anywhere; }

.mg-ev-redes { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
/* Correção E8: redes com ícone de traço em currentColor, todas no mesmo botão claro (sem o degradê do
   Instagram nem a cor de cada marca). */
.mg-ev-redes__btn {
	width: 44px; height: 44px;
	display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid var(--mg-borda-azul, #dce8f8);
	border-radius: var(--mg-raio-botao, 10px);
	color: #1266d6;
	background: var(--mg-fundo-azul, #eef5fe);
	transition: background-color .15s ease, color .15s ease;
}
.mg-ev-redes__btn .mg-ev-ico { width: 19px; height: 19px; }
.mg-ev-redes__btn:hover { background: var(--mg-azul-suave, #e4eefc); border-color: var(--mg-borda-hover, #b9cfee); color: var(--mg-azul-hover, #0d47a6); }
.mg-ev-redes__btn:focus-visible { outline: 2px solid #0d2b5c; outline-offset: 2px; }
.mg-ev-redes__btn:active { transform: scale(var(--mg-ativo-escala, .97)); color: var(--mg-marinho, #0d2b5c); }

.mg-ev-contato > summary { list-style: none; }
.mg-ev-contato > summary::-webkit-details-marker { display: none; }
.mg-ev-contato__form { display: grid; gap: 10px; margin-top: 12px; }
.mg-ev-contato__form label { display: grid; gap: 4px; font-size: 12.5px; font-weight: 600; color: #33496b; }
.mg-ev-contato__form input, .mg-ev-contato__form textarea {
	width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid #c9d6e6;
	border-radius: var(--mg-raio-botao, 10px);
	font: 400 14px/1.4 Inter, system-ui, sans-serif;
	color: #0d2b5c;
	background: #fff;
}
.mg-ev-contato__form input:focus, .mg-ev-contato__form textarea:focus { outline: 2px solid #1266d6; outline-offset: 0; border-color: #1266d6; }
.mg-ev-contato__form .agw-hp { position: absolute; left: -9999px; width: 1px; height: 1px; min-height: 0; opacity: 0; }

.mg-ev-share__redes { display: flex; flex-wrap: wrap; gap: 10px; }
.mg-ev-share__btn {
	width: 44px; height: 44px;
	display: inline-flex; align-items: center; justify-content: center;
	border: 0;
	border-radius: 99px;
	color: #fff;
	cursor: pointer;
}
.mg-ev-share__btn .mg-ev-ico { width: 19px; height: 19px; }
.mg-ev-share__btn:hover { filter: brightness(1.1); }
.mg-ev-share__btn:focus-visible { outline: 2px solid #0d2b5c; outline-offset: 2px; }
.mg-ev-share__btn--wa { background: #13804f; }
.mg-ev-share__btn--fb { background: #1266d6; }
.mg-ev-share__btn--link { background: #f1f5fa; color: #33496b; }
.mg-ev-share__btn--link:hover { filter: none; background: #e4ebf4; }
/* Botão nativo que o redes-guiawp injeta ao lado do "copiar link": mesma forma. */
.mg-ev-share .rgw-share-native { width: 44px; height: 44px; border: 0; border-radius: 99px; background: var(--mg-fundo-azul, #eef5fe); color: #0d4fa8; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color .15s ease; }
.mg-ev-share .rgw-share-native:hover { background: var(--mg-azul-suave, #e4eefc); color: var(--mg-azul-hover, #0d47a6); }
.mg-ev-share .rgw-share-native:focus-visible { outline: 2px solid #0d2b5c; outline-offset: 2px; }
.mg-ev-share .rgw-share-native:active { transform: scale(var(--mg-ativo-escala, .97)); }
.mg-ev-share .rgw-share-native[hidden] { display: none; }
.mg-ev-share:focus { outline: none; }
.mg-ev-share:focus-visible { outline: 2px solid #1266d6; outline-offset: 2px; }
.mg-ev-share__aviso { min-height: 18px; margin: 8px 0 0; font-size: 12.5px; font-weight: 600; color: #0a6b42; }
.mg-ev-share__aviso:empty { margin: 0; min-height: 0; }

.mg-ev-rel { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.mg-ev-rel li + li { border-top: 1px solid #edf1f6; }
.mg-ev-rel__link { display: flex; gap: 12px; align-items: center; min-height: 64px; padding: 8px 0; text-decoration: none; }
.mg-ev-rel__link:focus-visible { outline: 2px solid #1266d6; outline-offset: 2px; border-radius: 6px; }
.mg-ev-rel__foto { width: 56px; height: 48px; flex: none; border-radius: 8px; overflow: hidden; background: #eef5fe; }
.mg-ev-rel__foto img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mg-ev-rel__txt { min-width: 0; display: grid; gap: 3px; }
.mg-ev-rel__txt strong { font-size: 13.5px; font-weight: 700; line-height: 1.35; color: #0d2b5c; overflow-wrap: anywhere; }
.mg-ev-rel__link:hover strong { color: #1266d6; }
.mg-ev-rel__txt span { font-size: 12px; color: #52678a; }

.mg-ev-guardar {
	padding: 20px;
	border-radius: 16px;
	/* Correção T2: fundo liso, sem o degradê. */
	background: var(--mg-marinho, #0d2b5c);
	color: #eaf2fc;
}
.mg-ev-guardar__h2 { margin: 0 0 6px; font-size: 18px; font-weight: 800; color: #fff; }
.mg-ev-guardar p { margin: 0 0 14px; font-size: 13.5px; line-height: 1.5; }
.mg-ev-guardar__botoes { display: grid; gap: 9px; }

/* No celular e no tablet a lateral vem depois do conteúdo; a partir de 640px ela abre em duas
   colunas, com as informações e o "Guarde a data" (alvo da barra fixa) na largura toda. */
@media (min-width: 640px) and (max-width: 1023px) {
	.mg-ev-lado { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mg-ev-lado > .mg-ev-card:first-child { grid-column: 1 / -1; }
	.mg-ev-guardar { grid-column: 1 / -1; }
}

/* ── Barra fixa do celular ──────────────────────────────────────────────── */

.mg-ev-barra { display: none; }
@media (max-width: 1023px) {
	.mg-ev-barra {
		position: fixed;
		left: 0; right: 0; bottom: 0;
		z-index: 900;
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		gap: 9px;
		padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
		background: #fff;
		box-shadow: 0 -2px 14px rgba(13, 43, 92, .12);
	}
	.mg-ev-barra--dois { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
	.mg-ev-barra .mg-ev-btn { min-height: 48px; padding: 0 12px; }
	/* Espaço no fim da página para a barra não cobrir o rodapé. */
	body:has(.mg-ev-barra) { padding-bottom: 72px; }
}
/* Abaixo de 768px a faixa fica logo acima da barra de abas do core (etapa 9 do redesign). */
@media (max-width: 767px) {
	body.mg-com-abas .mg-ev-barra { bottom: calc(var(--mg-abas-h, 64px) + env(safe-area-inset-bottom, 0px)); padding-bottom: 10px; }
	body.mg-com-abas:has(.mg-ev-barra) { padding-bottom: calc(var(--mg-abas-h, 64px) + 68px + env(safe-area-inset-bottom, 0px)); }
}

/* ── Lightbox ───────────────────────────────────────────────────────────── */

.mg-ev-lb {
	position: fixed; inset: 0; z-index: 99999;
	display: flex; align-items: center; justify-content: center;
	padding: 56px 12px;
	background: rgba(8, 14, 24, .94);
}
.mg-ev-lb[hidden] { display: none; }
.mg-ev-lb img { max-width: min(92vw, 1400px); max-height: 80vh; border-radius: 8px; object-fit: contain; }
.mg-ev-lb button { border: 0; cursor: pointer; color: #fff; }
.mg-ev-lb button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.mg-ev-lb__fechar { position: absolute; top: 8px; right: 10px; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 99px; background: none; }
.mg-ev-lb__fechar .mg-ev-ico { width: 26px; height: 26px; stroke-width: 2.2; }
.mg-ev-lb__fechar:hover { background: rgba(255, 255, 255, .18); }
.mg-ev-lb__fechar:active, .mg-ev-lb__nav:active { transform: scale(var(--mg-ativo-escala, .97)); background: rgba(255, 255, 255, .3); }
.mg-ev-lb__nav {
	position: absolute; top: 50%; transform: translateY(-50%);
	width: 48px; height: 48px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 99px;
	background: rgba(255, 255, 255, .18);
}
.mg-ev-lb__nav svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.mg-ev-lb__nav:hover { background: rgba(255, 255, 255, .3); }
.mg-ev-lb__nav--prox:active { transform: translateY(-50%) scale(var(--mg-ativo-escala, .97)); }
.mg-ev-lb__nav--ant:active { transform: translateY(-50%) scale(var(--mg-ativo-escala, .97)); }
.mg-ev-lb__nav--ant { left: 8px; }
.mg-ev-lb__nav--prox { right: 8px; }
.mg-ev-lb__conta { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); padding: 5px 12px; border-radius: 99px; background: rgba(255, 255, 255, .18); color: #fff; font-size: 13px; font-weight: 700; }

/* ── Correção T5: estado de toque (:active) nos clicáveis que não tinham ──── */

.mg-ev-btn:active, .mg-ev-capa__btn:active, .mg-ev-capa__fotos:active, .mg-ev-share__btn:active,
.mg-ev-dias__aba:active, .mg-ev-galeria__btn:active { transform: scale(var(--mg-ativo-escala, .97)); }
.mg-ev-btn--suave:active, .mg-ev-btn--linha:active, .mg-ev-dias__aba:not([aria-selected="true"]):active { background: var(--mg-ativo-fundo, #e4eefc); }
.mg-ev-menu__lista a:active, .mg-ev-rel__link:active { background: var(--mg-ativo-fundo, #e4eefc); }
.mg-ev-rel__link:hover .mg-ev-rel__foto { box-shadow: 0 0 0 2px var(--mg-borda-hover, #b9cfee); }
.mg-ev-capa__fotos:hover .mg-ev-ico, .mg-ev-capa__btn:hover .mg-ev-ico { transform: none; }

@media (prefers-reduced-motion: reduce) {
	.mg-ev-btn, .mg-ev-galeria__btn img, .mg-ev-faq__pergunta::after, .mg-ev-redes__btn { transition: none; }
	.mg-ev-btn:active, .mg-ev-capa__btn:active, .mg-ev-capa__fotos:active, .mg-ev-share__btn:active, .mg-ev-dias__aba:active,
	.mg-ev-galeria__btn:active, .mg-ev-redes__btn:active, .mg-ev-lb__fechar:active, .mg-ev .rgw-share-native:active { transform: none; }
	.mg-ev-galeria__btn:hover img { transform: none; }
}
@media print {
	.mg-ev-barra, .mg-ev-capa__acoes, .mg-ev-share, .mg-ev-guardar, .mg-ev-abas, .mg-ev-id__acoes { display: none !important; }
}
