/* [carrossel_categoria] — carrossel de notícias por categoria, cards verticais */

.nv-secao {
	--nv-black: #171717;
	--nv-blue: #1749b0;
	--nv-border: #e5e7eb;
	margin: 28px 0;
	box-sizing: border-box;
}
.nv-secao * {
	box-sizing: border-box;
}

.nv-secao-cabecalho {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 6px 14px;
	margin-bottom: 16px;
}
.nv-secao-titulo {
	font-size: 22px;
	font-weight: 700;
	color: var(--nv-black);
	margin: 0;
}
.nv-mostrar-todas {
	font-size: 14px;
	color: var(--nv-blue);
	text-decoration: underline;
}

.nv-empty {
	color: #6b7280;
}

.nv-carrossel-wrapper {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
}

.nv-trilho-viewport {
	flex: 1;
	min-width: 0;
	overflow-x: auto;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}
.nv-trilho-viewport::-webkit-scrollbar {
	display: none;
}

.nv-trilho {
	display: flex;
	gap: 16px;
}

.nv-card {
	flex: 0 0 auto;
	width: 220px;
	scroll-snap-align: start;
	text-decoration: none;
	color: inherit;
	display: block;
	position: relative;
}

.nv-card-imagem {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	border-radius: 14px;
	overflow: hidden;
	background: #e5e7eb;
}
.nv-card-imagem img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.nv-card-sem-imagem {
	position: absolute;
	inset: 0;
	background: #e5e7eb;
}
.nv-card-imagem::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 55%);
}

.nv-card-titulo {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 16px 14px;
	color: #fff;
	font-weight: 700;
	font-size: 16px;
	line-height: 1.3;
	z-index: 1;
}

.nv-seta {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--nv-border);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: var(--nv-black);
	padding: 0;
}
.nv-seta:hover {
	background: #f4f5f7;
}
.nv-icon {
	flex-shrink: 0;
	width: 18px !important;
	height: 18px !important;
	fill: none !important;
	stroke: currentColor !important;
}
.nv-icon path {
	fill: none !important;
}

@media (max-width: 640px) {
	.nv-card {
		width: calc(50% - 8px);
	}
	.nv-seta {
		width: 34px;
		height: 34px;
	}
}
