/**
 * BAANNNG Eventos - Events Page Style
 *
 * Shortcode: [bglbc_eventspage]
 *
 * Color Set
 *   Vermelho:   #BA2229
 *   Preto:      #1A1919
 *
 * @package BAANNNG_Eventos
 * @since 5.5.0
 */

/* =======================================
	FONTES
 ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Exo+2:ital,wght@0,100..900;1,100..900&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');


/* =======================================
	CORES
 ======================================== */
:root {
	--the-red: #BA2229;
	--the-black: #1A1919;
	--the-white: #FFFFFF;
	--the-light-gray: #f0f0f0;
	--the-medium-gray: #999999;
	--the-dark-gray: #666666;
}


/* =======================================
   LAYOUT BASE
======================================== */
.bglbc-eventspage-main {
	display: flex;
	max-width: 1579px;
	width: 100%;
	margin: 0 auto;
	column-gap: 3.2rem;
}

/* =======================================
   SIDEBAR
======================================== */
.bglbc-ep-sidebar {
	width: 100%;
	max-width: 320px;
	flex-shrink: 0;
	position: sticky;
	top: 24rem;
	margin-top: 6rem;
	align-self: flex-start;
}

.bglbc-ep-head {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1.6rem;
}

.bglbc-ep-filtros-titulo {
	font-family: "Exo 2", sans-serif!important;
	font-weight: 700;
	font-size: 1.4rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.bglbc-ep-filtros-limpar {
	font-family: "Exo 2", sans-serif!important;
	text-transform: uppercase;
	background: transparent!important;
	border: none!important;
	color: var(--the-black)!important;
	font-size: 1.2rem!important;
	cursor: pointer!important;
	padding: 0!important;
	transition: all 0.3s ease;
}

.bglbc-ep-filtros-limpar:hover {
	color: var(--the-red)!important;
}

/* =======================================
   FILTROS APLICADOS
======================================== */
.bglbc-ep-filtrosaplicados {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.8rem;
	align-items: center;
	margin-bottom: 20px;
}

.bglbc-ep-filtrosaplicados:empty {
	display: none;
}

.bglbc-ep-filtro-tag {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	background: #f5f5f5;
	padding: 0.4rem 0.8rem;
	font-size: 1.2rem;
	border-radius: 0;
}

.bglbc-ep-filtro-tag-remove {
	background: white !important;
	border: 1px solid #1A1919 !important;
	border-radius: 50% !important;
	cursor: pointer !important;
	font-weight: 700;
	font-size: 0.8rem;
	line-height: 0;
	width: 1.4rem !important;
	height: 1.4rem !important;
	min-width: 1.4rem !important;
	max-width: 1.4rem !important;
	min-height: 1.4rem !important;
	max-height: 1.4rem !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	color: #1A1919 !important;
	transition: background 0.3s ease;
	padding: 0 !important;
	margin: 0;
	flex-shrink: 0;
	aspect-ratio: 1 / 1;
	box-sizing: border-box !important;
}

.bglbc-ep-filtro-tag-remove:hover {
	background: #BA2229 !important;
	color: #fff !important;
	border-color: #BA2229 !important;
}

/* =======================================
   CALENDÁRIO - TOGGLE
======================================== */
.bglbc-ep-filtros-calendario {
	border: 1px solid #E5E5E5;
	background: #fff;
	border-radius: 0;
}

.bglbc-ep-f-cal-toggler {
	font-family: "Exo 2", sans-serif!important;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.6rem;
	font-weight: 400;
	font-size: 1.6rem;
	cursor: pointer;
	user-select: none;
	background: #fff;
}

.bglbc-ep-f-cal-arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.3s ease;
	transform: rotate(90deg);
}

.bglbc-ep-f-cal-arrow svg {
	width: 24px;
	height: 24px;
}

.bglbc-ep-filtros-calendario.open .bglbc-ep-f-cal-arrow {
	transform: rotate(-90deg);
}

/* =======================================
   CALENDÁRIO - CONTEÚDO
======================================== */
.bglbc-ep-f-calbox {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
}

.bglbc-ep-filtros-calendario.open .bglbc-ep-f-calbox {
	max-height: 500px;
}

/* Selector de Ano */
.bglbc-ep-f-cal-selector {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.2rem 1.6rem;
	background: #fff;
	border-bottom: 1px solid #E5E5E5;
}

.bglbc-ep-f-cal-previousyear,
.bglbc-ep-f-cal-nextyear {
	display: flex;
	align-items: center;
	justify-content: center;

	background: white!important;
	color: var(--the-black)!important;

	width: 16px!important;
	height: 16px!important;
	padding: 2px!important;

	border: 1px solid var(--the-black)!important;
	border-radius: 50%!important;

	cursor: pointer;

	transition: opacity 0.3s ease;
}

.bglbc-ep-f-cal-previousyear:hover,
.bglbc-ep-f-cal-nextyear:hover {
	border: 1px solid var(--the-red)!important;
	color: var(--the-red)!important;
}

.bglbc-ep-f-cal-previousyear svg,
.bglbc-ep-f-cal-nextyear svg {
	width: 20px;
	height: 20px;
}

.bglbc-ep-f-cal-year {
	font-family: "Exo 2", sans-serif!important;
	font-weight: 700;
	font-size: 1.6rem;
}

/* Grelha de Meses */
.bglbc-ep-f-calmeses {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	background: #fff;
}

.bglbc-ep-f-cal-mes {
	font-family: "Exo 2", sans-serif!important;
	background: #fff !important;
	border: none !important;
	border-top: 1px solid #E5E5E5 !important;
	border-right: 1px solid #E5E5E5 !important;
	border-radius: 0 !important;
	padding: 1.4rem 1.2rem;
	font-size: 1.4rem;
	font-weight: 400;
	color: #BA2229 !important;
	cursor: pointer;
	transition: background 0.3s ease, color 0.3s ease;
}

.bglbc-ep-f-cal-mes:nth-child(2n) {
	border-right: none !important;
}

.bglbc-ep-f-cal-mes:hover {
	background: #f5f5f5 !important;
	color: var(--the-red)!important;
}

.bglbc-ep-f-cal-mes.active {
	background: #BA2229 !important;
	color: #fff !important;
}


/* =======================================
   PAÍSES - TOGGLE
======================================== */
.bglbc-ep-filtros-paises {
	border: 1px solid #E5E5E5;
	background: #fff;
	border-radius: 0;
	margin-top: 1.6rem;
}

.bglbc-ep-f-pai-toggler {
	font-family: "Exo 2", sans-serif!important;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.6rem;
	font-weight: 400;
	font-size: 1.6rem;
	cursor: pointer;
	user-select: none;
	background: #fff;
}

.bglbc-ep-f-pai-arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.3s ease;
	transform: rotate(90deg);
}

.bglbc-ep-f-pai-arrow svg {
	width: 24px;
	height: 24px;
}

.bglbc-ep-filtros-paises.open .bglbc-ep-f-pai-arrow {
	transform: rotate(-90deg);
}

/* =======================================
   PAÍSES - CONTEÚDO
======================================== */
.bglbc-ep-f-paibox {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
}

.bglbc-ep-filtros-paises.open .bglbc-ep-f-paibox {
	max-height: 500px;
	overflow-y: auto;
}

/* Grelha de Países */
.bglbc-ep-f-paises {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	background: #fff;
}

.bglbc-ep-f-paises-vazio {
	grid-column: 1 / -1;
	padding: 1.6rem;
	text-align: center;
	color: var(--the-medium-gray);
	font-size: 1.2rem;
}

.bglbc-ep-f-pai-pais {
	font-family: "Exo 2", sans-serif!important;
	background: #fff !important;
	border: none !important;
	border-top: 1px solid #E5E5E5 !important;
	border-right: 1px solid #E5E5E5 !important;
	border-radius: 0 !important;
	padding: 1.4rem 1.2rem;
	font-size: 1.4rem;
	font-weight: 400;
	color: #BA2229 !important;
	cursor: pointer;
	transition: background 0.3s ease, color 0.3s ease;
}

.bglbc-ep-f-pai-pais:nth-child(2n) {
	border-right: none !important;
}

.bglbc-ep-f-pai-pais:hover {
	background: #f5f5f5 !important;
	color: var(--the-red)!important;
}

.bglbc-ep-f-pai-pais.active {
	background: #BA2229 !important;
	color: #fff !important;
}


/* =======================================
   MAIN
======================================== */
.bglbc-ep-main {
	flex: 1 1 0%;
	min-width: 0;
	width: calc(100vw - 320px - 3.2rem);
}

/* =======================================
   CATEGORIAS
======================================== */
.bglbc-ep-categorias {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 7.3rem;
}

.bglbc-ep-cat-btn {
	font-family: "Exo 2", sans-serif;
	border-radius: 0!important;
	padding: 0.4rem 2rem !important;
	font-size: 1.1rem;
	font-weight: 600!important;
	text-transform: uppercase;
	transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.bglbc-ep-cat-btn:hover,
.bglbc-ep-cat-btn.active {
	background: #1A1919;
	color: #fff;
}

/* =======================================
   ARTIGOS - GRID
======================================== */
.bglbc-ep-artigos {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr) !important;
	column-gap: 3.2rem !important;
	row-gap: 6.4rem !important;
	margin-bottom: 4.8rem;
	width: 100% !important;
	min-width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box;
}

/* =======================================
   CARD - ARTIGO
======================================== */
.bglbc-ep-umartigo {
	display: flex;
	flex-direction: column;
}

.bglbc-ep-featuredimage {
	margin-bottom: 1.6rem;
	overflow: hidden;
	max-width: 370px;
	width: 100%;
	height: 250px;
}

.bglbc-ep-featuredimage img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: scale-down;
	object-position: left top;
}

.bglbc-ep-ua-meta {
	display: flex;
	flex-direction: column;
	align-items: start;
	margin-bottom: 1rem;
}

/* Bloco País + Data (mesma linha) */
.bglbc-ep-uam-paisdata {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	margin-bottom: 0.8rem;
	width: fit-content;
}

.bglbc-ep-uam-pais {
	font-family: "Exo 2", sans-serif;
	font-size: 1.2rem;
	font-weight: 600;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--the-white);
	background-color: var(--the-red);
	padding: 0.5rem 1.2rem;
	display: flex;
	align-items: center;
}

.bglbc-ep-uam-data {
	font-family: "Exo 2", sans-serif;
	font-size: 1.2rem;
	font-weight: 500;
	text-transform: uppercase;
	line-height: 1.4;
	color: var(--the-red);
	background-color: transparent;
	border: 1px solid var(--the-red);
	border-left: none;
	padding: 0.5rem 1.2rem;
	display: flex;
	align-items: center;
}

/* Quando só há data (sem país) */
.bglbc-ep-uam-paisdata .bglbc-ep-uam-data:first-child {
	border-left: 1px solid var(--the-red);
}

.bglbc-ep-uam-categoria {
	font-family: "Exo 2", sans-serif;
	font-size: 1.2rem;
	font-weight: 600;
	line-height: 1.2rem!important;
	color: #ffffff;
	background-color: #ba2229;
	padding: 0.3rem 2rem;
	text-transform: uppercase;
	width: fit-content;
}

.bglbc-ep-uam-titulo {
	font-family: "Exo 2", sans-serif;
	font-weight: 500;
	font-size: 2.4rem;
	line-height: 3.2rem;
	margin-bottom: 1rem;
	flex-grow: 0;
}

.bglbc-ep-uam-titulo a,
.bglbc-ep-uam-titulo a:hover,
.bglbc-ep-uam-titulo a:focus,
.bglbc-ep-uam-titulo a:active {
	font-family: "Exo 2", sans-serif !important;
	font-weight: 600 !important;
	font-size: 2.4rem !important;
	line-height: 3.2rem !important;
	text-decoration: none !important;
}

.bglbc-ep-uam-titulo a {
	color: #1A1919 !important;
	transition: color 0.3s ease;
}

.bglbc-ep-uam-titulo a:hover,
.bglbc-ep-uam-titulo a:focus {
	color: #BA2229 !important;
}

.bglbc-ep-uam-excerto {
	font-family: "Exo 2", sans-serif;
	font-size: 1.6rem;
	/* margin-bottom: 3.2rem; */
}
.bglbc-ep-uam-excerto p {
	line-height: 2em!important;
	margin-block-end: 2rem;
}

.bglbc-ep-uam-sabermais {
	margin-top: auto;
}

a.btn-saber-mais {
	font-size: 1rem!important;
	font-weight: 600;
	text-transform: uppercase;
	padding-bottom: 0.2rem;
	border-bottom: 1px solid var(--the-red);
	transition: all 0.3s ease-in-out;
}
a.btn-saber-mais:hover {
	font-weight: 600;
	border-bottom: 1px solid var(--the-black);
}

/* =======================================
   MENSAGEM SEM ARTIGOS
======================================== */
.bglbc-ep-mensagem-semartigos {
	grid-column: 1 / -1;
	text-align: center;
	padding: 4.8rem 2rem;
	min-height: 400px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 100%;
}

.bglbc-ep-ms-titulo {
	font-size: 2rem;
	font-weight: 700;
	margin-bottom: 1rem;
	color: #1A1919;
}

.bglbc-ep-ms-texto {
	font-size: 1.4rem;
	color: #666;
}

.bglbc-ep-ms-subtexto {
	display: block;
	margin-top: 0.5rem;
	font-size: 1.2rem;
}

/* =======================================
   CONTADOR E BARRA DE PROGRESSO
======================================== */
.bglbc-ep-counter {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.bglbc-ep-counter-txt {
	font-size: 1.4rem;
	color: #1A1919;
	width: fit-content;
}

.bglbc-ep-counter-barra {
	width: 50rem;
	max-width: 100%;
	height: 1rem;
	background: #E5E5E5;
	margin-top: 2.4rem;
	overflow: hidden;
}

.bglbc-ep-counter-barra-progress {
	height: 100%;
	background: #1A1919;
	transition: width 0.3s ease;
}

.bglbc-ep-counter-load-more__button {
	margin-top: 5.6rem;
	background-color: #BA2229;
	color: #fff;
	padding: 1.7rem 2.7rem;
	min-width: 37rem;
	text-align: center;
	text-transform: capitalize;
	font-size: 1.4rem;
	font-weight: 600;
	cursor: pointer;
	border: none;
	transition: background-color 0.3s ease;
}

.bglbc-ep-counter-load-more__button:hover {
	background-color: #1A1919;
}

/* =======================================
   RESPONSIVO - Breakpoints Elementor
======================================== */

/* Portátil */
@media (max-width: 1366px) {
	.bglbc-ep-artigos {
		grid-template-columns: repeat(2, 1fr) !important;
		column-gap: 2.4rem !important;
		row-gap: 5.6rem !important;
	}

	.bglbc-ep-uam-titulo,
	.bglbc-ep-uam-titulo a,
	.bglbc-ep-uam-titulo a:hover,
	.bglbc-ep-uam-titulo a:focus,
	.bglbc-ep-uam-titulo a:active {
		font-size: 2rem !important;
		line-height: 2.8rem !important;
	}

	.bglbc-ep-featuredimage {
		height: 220px;
	}
}

/* Tablet Landscape */
@media (max-width: 1200px) {
	.bglbc-ep-sidebar {
		display: none;
	}

	.bglbc-eventspage-main {
		max-width: 100%;
	}
}

/* Tablet Portrait */
@media (max-width: 1024px) {
	.bglbc-ep-artigos {
		column-gap: 2rem !important;
		row-gap: 4.8rem !important;
	}

	.bglbc-ep-uam-titulo,
	.bglbc-ep-uam-titulo a,
	.bglbc-ep-uam-titulo a:hover,
	.bglbc-ep-uam-titulo a:focus,
	.bglbc-ep-uam-titulo a:active {
		font-size: 1.8rem !important;
		line-height: 2.4rem !important;
	}

	.bglbc-ep-featuredimage {
		height: 200px;
	}
}

/* Mobile Landscape */
@media (max-width: 880px) {
	.bglbc-ep-artigos {
		grid-template-columns: 1fr !important;
		row-gap: 4rem !important;
	}

	.bglbc-ep-categorias {
		gap: 0.8rem;
	}

	.bglbc-ep-cat-btn {
		padding: 0.6rem 1.2rem;
		font-size: 1.2rem;
	}
}

/* Mobile Portrait */
@media (max-width: 767px) {
	.bglbc-ep-uam-titulo,
	.bglbc-ep-uam-titulo a,
	.bglbc-ep-uam-titulo a:hover,
	.bglbc-ep-uam-titulo a:focus,
	.bglbc-ep-uam-titulo a:active {
		font-size: 1.6rem !important;
		line-height: 2.2rem !important;
	}

	.bglbc-ep-featuredimage {
		height: 180px;
	}

	.bglbc-ep-counter-load-more__button {
		width: 100%;
		padding: 1.4rem 2rem;
	}
}
