/*
 * Eventos — calendário público, página do evento e widget "Próximos eventos".
 * Tudo escopado em .brc-ev: as páginas usam o cabeçalho e o rodapé do site
 * (Elementor) e não podem vazar para ele nem herdar o que não devem.
 * Tokens do DESIGN.md: Lora navy nos títulos, Inter na interface, tricolor só
 * como assinatura (barra do card), nunca como cor de texto.
 */
.brc-ev {
	--ev-navy: #1d3260;
	--ev-navy-700: #142241;
	--ev-ink: #191919;
	--ev-muted: #4d4d4d;
	--ev-line: #e6e6e6;
	--ev-subtle: #e8ebef;
	--ev-surface: #f4f4f4;
	--ev-green: #009444;
	--ev-yellow: #fcb030;
	--ev-blue: #00aeef;
	--ev-warn: #8a5a00;
	--ev-warn-bg: #fff6e5;
	--ev-ok: #0b5d34;
	--ev-ok-bg: #e7f6ee;
	--ev-err: #b42318;
	--ev-err-bg: #fdecea;
	--ev-radius: 20px;
	--ev-serif: Lora, Georgia, "Times New Roman", serif;
	--ev-sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	font-family: var(--ev-sans);
	color: var(--ev-ink);
	font-size: 16px;
	line-height: 1.55;
	background: #fff;
}
.brc-ev *, .brc-ev *::before, .brc-ev *::after { box-sizing: border-box; }

.brc-ev__wrap {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}
.brc-ev__narrow { max-width: 720px; padding-top: var(--ev-header-space); padding-bottom: 80px; }
.brc-ev__empty-page { padding-top: var(--ev-header-space); padding-bottom: 96px; }

/* ---- Títulos e texto ---- */
.brc-ev .brc-ev__eyebrow {
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ev-muted);
}
.brc-ev .brc-ev__h1 {
	margin: 0 0 14px;
	font-family: var(--ev-serif);
	font-weight: 500;
	font-size: clamp(30px, 3.2vw + 12px, 44px);
	line-height: 1.18;
	color: var(--ev-navy);
	text-wrap: balance;
}
.brc-ev .brc-ev__h2 {
	margin: 40px 0 14px;
	font-family: var(--ev-serif);
	font-weight: 500;
	font-size: 26px;
	line-height: 1.3;
	color: var(--ev-navy);
}
.brc-ev .brc-ev__h3 {
	margin: 28px 0 10px;
	font-family: var(--ev-sans);
	font-size: 15px;
	font-weight: 600;
	color: var(--ev-ink);
}
.brc-ev .brc-ev__lead {
	margin: 0 0 18px;
	max-width: 68ch;
	font-size: 18px;
	line-height: 1.6;
	color: var(--ev-muted);
}
.brc-ev .brc-ev__text { max-width: 70ch; font-size: 17px; line-height: 1.7; }
.brc-ev .brc-ev__text p { margin: 0 0 1em; }
.brc-ev a { color: var(--ev-navy); }

/* O cabeçalho do site flutua sobre o topo da página (como nas páginas do
   Elementor): o primeiro bloco reserva esse espaço. */
.brc-ev-main { display: block; width: 100%; }
.brc-ev { --ev-header-space: 176px; }

/* ---- Hero do calendário ---- */
.brc-ev__hero {
	padding: var(--ev-header-space) 0 40px;
	background: var(--ev-subtle);
	position: relative;
}
.brc-ev__hero::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 6px;
	background: linear-gradient(90deg, var(--ev-green) 0 33.33%, var(--ev-yellow) 33.33% 66.66%, var(--ev-blue) 66.66% 100%);
}

/* ---- Barra de filtros ---- */
.brc-ev__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin: 32px 0 24px;
}
.brc-ev__tabs { display: inline-flex; gap: 6px; padding: 4px; background: var(--ev-subtle); border-radius: 999px; }
.brc-ev .brc-ev__tab {
	padding: 9px 18px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 500;
	color: var(--ev-ink);
	text-decoration: none;
	transition: background-color .15s ease, color .15s ease;
}
.brc-ev .brc-ev__tab:hover { background: rgba(255, 255, 255, .7); }
.brc-ev .brc-ev__tab.is-on { background: var(--ev-navy); color: #fff; }
.brc-ev .brc-ev__tab:focus-visible { outline: 2px solid var(--ev-blue); outline-offset: 2px; }
.brc-ev__filter select {
	min-height: 44px;
	padding: 8px 40px 8px 16px;
	border: 1px solid var(--ev-line);
	border-radius: 999px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23191919' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 14px center;
	appearance: none;
	font: 500 15px/1.2 var(--ev-sans);
	color: var(--ev-ink);
	cursor: pointer;
}

/* ---- Grade de cards ---- */
.brc-ev__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
	gap: 24px;
	margin: 0 0 40px;
	padding: 0;
	list-style: none;
}
.brc-ev__grid > li { margin: 0; padding: 0; display: flex; }
.brc-ev__card {
	display: flex;
	flex-direction: column;
	width: 100%;
	background: #fff;
	border: 1px solid var(--ev-line);
	border-radius: var(--ev-radius);
	overflow: hidden;
	transition: box-shadow .2s ease, transform .2s ease;
}
.brc-ev__card:hover { box-shadow: 0 18px 50px rgba(20, 34, 65, .12); transform: translateY(-2px); }
.brc-ev__card.is-cancelled { opacity: .72; }
.brc-ev__cover {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	background: var(--ev-navy) center / cover no-repeat;
	background-image: linear-gradient(135deg, var(--ev-navy) 0%, var(--ev-navy-700) 100%);
}
/* Sem capa: faixa curta da marca, em vez de um bloco grande vazio. */
.brc-ev__cover.is-empty { aspect-ratio: auto; height: 104px; }
.brc-ev__cover::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 6px;
	background: linear-gradient(90deg, var(--ev-green) 0 33.33%, var(--ev-yellow) 33.33% 66.66%, var(--ev-blue) 66.66% 100%);
}
.brc-ev__date {
	position: absolute;
	top: 16px;
	left: 16px;
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 64px;
	padding: 8px 10px 7px;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 4px 14px rgba(13, 24, 48, .18);
	color: var(--ev-navy);
	line-height: 1;
}
.brc-ev__day { font-family: var(--ev-serif); font-size: 28px; font-weight: 600; }
.brc-ev__mon { margin-top: 4px; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--ev-muted); }
.brc-ev__body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; flex: 1; }
.brc-ev .brc-ev__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 0;
	font-size: 13px;
	font-weight: 500;
	color: var(--ev-muted);
}
.brc-ev__lock {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 9px;
	border-radius: 999px;
	background: var(--ev-subtle);
	color: var(--ev-navy);
	font-weight: 600;
}
.brc-ev .brc-ev__title { margin: 2px 0 0; font-family: var(--ev-serif); font-size: 21px; font-weight: 500; line-height: 1.3; }
.brc-ev .brc-ev__title a { color: var(--ev-navy); text-decoration: none; }
.brc-ev .brc-ev__title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.brc-ev .brc-ev__title a:focus-visible { outline: 2px solid var(--ev-blue); outline-offset: 2px; border-radius: 4px; }
.brc-ev .brc-ev__when { margin: 0; font-size: 14px; font-weight: 600; color: var(--ev-ink); }
.brc-ev .brc-ev__sum {
	margin: 0;
	font-size: 15px;
	color: var(--ev-muted);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.brc-ev .brc-ev__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: auto 0 0; padding-top: 8px; }
.brc-ev__tag {
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--ev-surface);
	font-size: 12px;
	font-weight: 600;
	color: var(--ev-ink);
}
.brc-ev__tag.is-warn { background: var(--ev-warn-bg); color: var(--ev-warn); }

.brc-ev__empty {
	margin: 0 0 48px;
	padding: 40px 28px;
	border-radius: var(--ev-radius);
	background: var(--ev-surface);
	text-align: center;
	color: var(--ev-muted);
}
.brc-ev__empty p { margin: 0; }
.brc-ev .brc-ev__langswitch { margin: 0 0 56px; font-size: 14px; }

/* ---- Página do evento ---- */
.brc-ev--single { padding: var(--ev-header-space) 0 24px; }
.brc-ev--widget { --ev-header-space: 0; }
.brc-ev .brc-ev__crumbs { margin: 0 0 20px; font-size: 14px; font-weight: 600; }
.brc-ev .brc-ev__crumbs a { text-decoration: none; }
.brc-ev .brc-ev__crumbs a:hover { text-decoration: underline; }
.brc-ev__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 48px;
	align-items: start;
	margin-bottom: 40px;
}
.brc-ev__hero-img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: var(--ev-radius);
	margin: 0 0 24px;
}
.brc-ev__main .brc-ev__meta { margin-bottom: 10px; }
.brc-ev .brc-ev__facts { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 8px; }
.brc-ev .brc-ev__facts li { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-size: 16px; font-weight: 500; }
.brc-ev .brc-ev__facts svg { flex: none; margin-top: 3px; color: var(--ev-navy); }

.brc-ev__side { position: sticky; top: 110px; }
.brc-ev__box {
	position: relative;
	padding: 28px 24px 24px;
	background: #fff;
	border: 1px solid var(--ev-line);
	border-radius: var(--ev-radius);
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(20, 34, 65, .06);
}
.brc-ev__box::before {
	content: "";
	position: absolute;
	left: 0; right: 0; top: 0;
	height: 6px;
	background: linear-gradient(90deg, var(--ev-green) 0 33.33%, var(--ev-yellow) 33.33% 66.66%, var(--ev-blue) 66.66% 100%);
}
.brc-ev__box p { margin: 0 0 14px; font-size: 15px; }
.brc-ev .brc-ev__boxtitle {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	font-family: var(--ev-serif);
	font-size: 22px;
	font-weight: 500;
	color: var(--ev-navy);
}
.brc-ev .brc-ev__boxtitle.is-ok { color: var(--ev-ok); }
.brc-ev .brc-ev__price { font-size: 26px; font-weight: 700; color: var(--ev-ink); margin-bottom: 4px; }
.brc-ev .brc-ev__price span { display: block; margin-top: 4px; font-size: 13px; font-weight: 500; color: var(--ev-muted); }
.brc-ev .brc-ev__seats { font-size: 14px; font-weight: 600; color: var(--ev-navy); }
.brc-ev .brc-ev__small { font-size: 13px; color: var(--ev-muted); line-height: 1.5; }

.brc-ev__form { display: grid; gap: 6px; margin-top: 8px; }
.brc-ev__form label { margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--ev-ink); }
.brc-ev__form input[type="text"],
.brc-ev__form input[type="email"] {
	width: 100%;
	min-height: 48px;
	padding: 10px 16px;
	border: 1px solid var(--ev-line);
	border-radius: 14px;
	background: var(--ev-surface);
	font: 400 16px/1.3 var(--ev-sans);
	color: var(--ev-ink);
}
.brc-ev__form input:focus { outline: 2px solid var(--ev-blue); outline-offset: 1px; background: #fff; }
.brc-ev__form .brc-ev__btn { margin-top: 12px; width: 100%; }
.brc-ev__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.brc-ev .brc-ev__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 26px;
	border: 0;
	border-radius: 999px;
	background: var(--ev-navy);
	color: #fff;
	font: 600 15px/1.2 var(--ev-sans);
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s ease;
}
.brc-ev .brc-ev__btn:hover { background: var(--ev-navy-700); color: #fff; }
.brc-ev .brc-ev__btn:focus-visible { outline: 2px solid var(--ev-blue); outline-offset: 2px; }
.brc-ev .brc-ev__btn--ghost { background: var(--ev-subtle); color: var(--ev-navy); }
.brc-ev .brc-ev__btn--ghost:hover { background: #dde2e8; color: var(--ev-navy); }
.brc-ev .brc-ev__link { font-weight: 600; color: var(--ev-navy); text-decoration: none; }
.brc-ev .brc-ev__link:hover { text-decoration: underline; }
.brc-ev .brc-ev__link--btn { background: none; border: 0; padding: 0; font: 600 14px/1.4 var(--ev-sans); color: var(--ev-err); cursor: pointer; }

.brc-ev__note {
	margin: 0 0 20px;
	padding: 14px 18px;
	border-radius: 14px;
	font-size: 15px;
	background: var(--ev-surface);
}
.brc-ev__note.is-ok { background: var(--ev-ok-bg); color: var(--ev-ok); }
.brc-ev__note.is-warn { background: var(--ev-warn-bg); color: var(--ev-warn); }
.brc-ev__note.is-error { background: var(--ev-err-bg); color: var(--ev-err); }

/* ---- Depois do evento ---- */
.brc-ev__after { margin-top: 8px; border-top: 1px solid var(--ev-line); }
.brc-ev__video { position: relative; aspect-ratio: 16 / 9; margin: 20px 0; border-radius: var(--ev-radius); overflow: hidden; background: #000; }
.brc-ev__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.brc-ev .brc-ev__mats { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.brc-ev .brc-ev__mats li { margin: 0; }
.brc-ev .brc-ev__mats a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	border-radius: 14px;
	background: var(--ev-surface);
	font-weight: 600;
	text-decoration: none;
}
.brc-ev .brc-ev__mats a:hover { background: var(--ev-subtle); }
.brc-ev__matkind { padding: 2px 8px; border-radius: 999px; background: #fff; font-size: 12px; color: var(--ev-muted); }
.brc-ev .brc-ev__photos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.brc-ev .brc-ev__photos li { margin: 0; }
.brc-ev .brc-ev__photos img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }

.brc-ev .brc-ev__dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin: 24px 0; }
.brc-ev .brc-ev__dl dt { font-weight: 600; color: var(--ev-muted); }
.brc-ev .brc-ev__dl dd { margin: 0; }

/* ---- Widget "Próximos eventos" ---- */
.brc-ev--widget { background: transparent; }
.brc-ev__whead { margin: 0 0 28px; text-align: center; }
.brc-ev .brc-ev__wtitle {
	margin: 0;
	font-family: var(--ev-serif);
	font-weight: 500;
	font-size: clamp(26px, 2vw + 14px, 36px);
	line-height: 1.25;
	color: var(--ev-navy);
}
.brc-ev .brc-ev__wintro { max-width: 64ch; margin: 10px auto 0; font-size: 17px; color: var(--ev-muted); }
.brc-ev--widget .brc-ev__grid { margin-bottom: 24px; }
.brc-ev--widget .brc-ev__more { text-align: center; margin: 0; }

/* ---- Responsivo ---- */
@media (max-width: 1024px) {
	.brc-ev { --ev-header-space: 132px; }
	.brc-ev__layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.brc-ev__side { position: static; order: -1; }
	.brc-ev--single .brc-ev__side { order: 0; }
}
@media (max-width: 600px) {
	.brc-ev { --ev-header-space: 112px; }
	.brc-ev__wrap { padding: 0 16px; }
	.brc-ev__hero { padding-bottom: 28px; }
	.brc-ev__bar { flex-direction: column; align-items: stretch; }
	.brc-ev__tabs { justify-content: center; }
	.brc-ev__filter select { width: 100%; }
	.brc-ev__box { padding: 24px 18px 20px; }
}
@media (prefers-reduced-motion: reduce) {
	.brc-ev__card, .brc-ev .brc-ev__tab, .brc-ev .brc-ev__btn { transition: none; }
	.brc-ev__card:hover { transform: none; }
}
