/*
 * .alesfe-destaques — componente isolado.
 */

.alesfe-destaques {
	--alesfe-vermelho: #a5222b;
	--alesfe-vermelho-escuro: #8a1c24;
	--alesfe-dourado: #c9a24b;
	--alesfe-azul-texto: #1b2a4a;
	--alesfe-cinza-texto: #5b6472;
	--alesfe-borda: #e7e9ec;
	--alesfe-fundo-card: #ffffff;
	--alesfe-link: #3b5bdb;
	--alesfe-tag-bg: #eef2fb;

	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--alesfe-azul-texto);
	box-sizing: border-box;
	max-width: 1320px;
	width: 100%;
	margin: 0 auto;
	padding: 32px 20px;
	overflow-x: hidden;
}

.alesfe-destaques *,
.alesfe-destaques *::before,
.alesfe-destaques *::after {
	box-sizing: border-box;
}

.alesfe-destaques a {
	text-decoration: none;
	color: inherit;
}

.alesfe-destaques__grid {
	display: grid;
	grid-template-columns: 1.55fr 1fr;
	gap: 40px;
	align-items: start;
	width: 100%;
}

.alesfe-destaques__grid > * {
	min-width: 0;
}

.alesfe-destaques__heading {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 20px;
}

.alesfe-destaques__heading::before {
	content: "";
	width: 34px;
	height: 2px;
	background: var(--alesfe-dourado);
	flex-shrink: 0;
}

.alesfe-destaques__heading span {
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--alesfe-dourado);
	text-transform: uppercase;
}

.alesfe-destaques__slider-wrap {
	position: relative;
	min-width: 0;
}

.alesfe-destaques-swiper {
	border: 1px solid var(--alesfe-borda);
	border-radius: 20px;
	overflow: hidden;
	width: 100%;
	min-width: 0;
	/* evita subpixel clipping da borda direita em alguns browsers */
	background-clip: padding-box;
}

.alesfe-destaques-swiper .swiper-wrapper,
.alesfe-destaques-swiper .swiper-slide {
	min-width: 0;
}

.alesfe-destaques-swiper .swiper-slide {
	height: 550px;
}

.alesfe-slide {
	background: var(--alesfe-fundo-card);
	border: none;
	border-radius: 20px;
	overflow: hidden;
	height: 100%;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

/* Banner com altura travada — sem padding, radius alinhado ao card. */
.alesfe-slide__banner {
	flex: 0 0 auto;
	min-width: 0;
	height: 250px;
	padding: 0;
	overflow: hidden;
	display: block;
}

.alesfe-slide__banner-photo,
.alesfe-destaques .alesfe-slide__banner img.alesfe-slide__banner-photo {
	width: 100% !important;
	min-width: 0;
	max-width: 100% !important;
	height: 250px !important;
	max-height: 250px !important;
	object-fit: cover !important;
	object-position: center center;
	display: block;
	border-radius: 20px !important;
	background: #ddd;
}

.alesfe-slide__body {
	padding: 18px 24px 20px;
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.alesfe-slide__tag-row {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
	flex-shrink: 0;
}

.alesfe-slide__tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--alesfe-tag-bg);
	color: var(--alesfe-link);
	font-size: 12px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 20px;
}

.alesfe-slide__tag svg {
	width: 13px;
	height: 13px;
	flex-shrink: 0;
}

.alesfe-slide__date {
	font-size: 12px;
	color: var(--alesfe-cinza-texto);
}

.alesfe-slide__title {
	font-size: 26px;
	font-weight: 800;
	line-height: 1.2;
	margin: 0 0 10px;
	color: #14161a;
	overflow-wrap: break-word;
	word-break: break-word;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
	text-overflow: ellipsis;
	flex: 0 0 auto;
	max-height: calc(1.2em * 2);
}

.alesfe-slide__title a {
	color: inherit;
	text-decoration: none;
}

.alesfe-slide__title a:hover {
	text-decoration: underline;
}

.alesfe-slide__desc {
	font-size: 14px;
	line-height: 1.55;
	color: var(--alesfe-cinza-texto);
	margin: 0 0 16px;
	overflow-wrap: break-word;
	word-break: break-word;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	overflow: hidden;
	text-overflow: ellipsis;
	flex: 0 1 auto;
	max-height: calc(1.55em * 3);
}

.alesfe-slide__link {
	font-size: 14px;
	font-weight: 600;
	color: var(--alesfe-link);
	margin-top: auto;
	flex-shrink: 0;
}

.alesfe-slide__link:hover {
	text-decoration: underline;
}

.alesfe-destaques .swiper-pagination {
	position: relative;
	bottom: auto;
	left: auto;
	margin-top: 24px;
	display: flex;
	justify-content: center;
}

.alesfe-destaques .swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	background: #c7cad1;
	opacity: 1;
	margin: 0 4px;
	transition: background 0.2s ease;
}

.alesfe-destaques .swiper-pagination-bullet-active {
	background: var(--alesfe-dourado);
}

.alesfe-noticias__lista {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.alesfe-noticia {
	display: flex;
	gap: 16px;
	align-items: center;
	background: var(--alesfe-fundo-card);
	border: 1px solid var(--alesfe-borda);
	border-radius: 6px;
	padding: 14px;
	height: 132px;
	min-width: 0;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.alesfe-noticia:hover {
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
	transform: translateY(-1px);
}

.alesfe-noticia__thumb,
.alesfe-destaques .alesfe-noticia img.alesfe-noticia__thumb {
	width: 104px !important;
	min-width: 104px !important;
	max-width: 104px !important;
	height: 104px !important;
	max-height: 104px !important;
	border-radius: 8px !important;
	object-fit: cover !important;
	object-position: center center;
	flex-shrink: 0;
	display: block;
	background: #ddd;
}

.alesfe-noticia__conteudo {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
	height: 100%;
	min-width: 0;
}

.alesfe-noticia__data {
	font-size: 11px;
	color: var(--alesfe-cinza-texto);
}

.alesfe-noticia__titulo {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	color: #14161a;
	margin: 0;
	overflow-wrap: break-word;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}

.alesfe-noticia__link {
	font-size: 13px;
	font-weight: 600;
	color: var(--alesfe-link);
	margin-top: 2px;
}

.alesfe-noticia__link:hover {
	text-decoration: underline;
}

.alesfe-noticias__ver-todas {
	display: block;
	text-align: right;
	margin-top: 18px;
	font-size: 14px;
	font-weight: 600;
	color: var(--alesfe-link);
}

.alesfe-noticias__ver-todas:hover {
	text-decoration: underline;
}

.alesfe-destaques__empty {
	padding: 24px;
	border: 1px dashed var(--alesfe-borda);
	border-radius: 6px;
	color: var(--alesfe-cinza-texto);
	font-size: 14px;
}

@media (max-width: 960px) {
	.alesfe-destaques__grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}
}

@media (max-width: 560px) {
	.alesfe-destaques {
		padding: 20px 14px;
	}

	.alesfe-destaques-swiper .swiper-slide {
		height: 490px;
	}

	.alesfe-slide__banner {
		height: 200px;
	}

	.alesfe-slide__banner-photo,
	.alesfe-destaques .alesfe-slide__banner img.alesfe-slide__banner-photo {
		height: 200px !important;
		max-height: 200px !important;
		border-radius: 20px !important;
	}

	.alesfe-slide__title {
		font-size: 20px;
	}

	.alesfe-noticia {
		height: 108px;
	}

	.alesfe-noticia__thumb,
	.alesfe-destaques .alesfe-noticia img.alesfe-noticia__thumb {
		width: 80px !important;
		min-width: 80px !important;
		max-width: 80px !important;
		height: 80px !important;
		max-height: 80px !important;
		border-radius: 8px !important;
	}
}
