/* Vitrusfer — site novo: página Catálogos e manuais (/category/catalogos/). Mobile-first; tokens --vf-n-* de base.css.
   Modelo: pacote 05-PAGINA-CATALOGOS. Pílulas (.vf-n-pill) também valem para a galeria (sn-galeria.css repete o bloco). */

.vf-n-cat { padding: 16px 0 32px; background: #fff; }
.vf-n-cat__panel {
	position: relative;
	padding: 24px 16px 16px;
	border: 1px solid var(--vf-n-line);
	border-radius: 20px;
	background: var(--vf-n-soft);
	overflow: hidden;
}

/* ---------- Topo: título, texto e ilustração ---------- */
.vf-n-cat__head { position: relative; display: flex; flex-direction: column; gap: 16px; }
.vf-n-cat__intro { position: relative; z-index: 1; }
.vf-page .vf-n-cat__t {
	display: inline-block;
	margin: 0;
	padding-bottom: 12px;
	color: var(--vf-n-navy);
	font: 800 28px/1.08 var(--vf-font, 'Onest', sans-serif);
	letter-spacing: -.02em;
	background: linear-gradient(var(--vf-n-orange), var(--vf-n-orange)) left bottom / min(100%, 312px) 4px no-repeat;
}
.vf-n-cat__t > span { display: block; }
.vf-page .vf-n-cat__t-hl { color: var(--vf-n-royal-2); }
.vf-n-cat__lead { max-width: 34em; margin: 16px 0 0; color: var(--vf-n-navy); font-size: 16px; font-weight: 400; line-height: 1.5; }
.vf-n-cat__ill {
	display: block;
	width: 100%;
	max-width: 480px;
	height: auto;
	margin-inline: auto;
	mix-blend-mode: multiply; /* o branco da ilustração some no fundo do painel */
}

/* ---------- Filtros em pílula ---------- */
.vf-n-pills { display: flex; flex-wrap: wrap; gap: 8px 12px; margin: 20px 0 0; }
.vf-n-pill {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	margin: 0;
	padding: 6px 10px 6px 18px;
	border: 1px solid var(--vf-n-line);
	border-radius: 999px;
	background: #fff;
	color: var(--vf-n-navy);
	font: 700 16px/1.2 var(--vf-font, 'Onest', sans-serif);
	text-transform: none;
	letter-spacing: 0;
	box-shadow: 0 4px 12px rgba(29, 63, 179, .08);
	cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s;
}
.vf-n-pill:hover { border-color: var(--vf-n-royal); background: #fff; color: var(--vf-n-royal); }
.vf-n-pill__n {
	display: inline-grid;
	place-items: center;
	min-width: 30px;
	height: 26px;
	padding: 0 8px;
	border-radius: 999px;
	background: var(--vf-n-baby);
	color: var(--vf-n-royal);
	font-size: 14px;
	font-weight: 800;
	box-sizing: border-box;
}
.vf-n-pill[aria-pressed="true"] { border-color: var(--vf-n-royal); background: var(--vf-n-royal); color: #fff; }
.vf-n-pill[aria-pressed="true"] .vf-n-pill__n { background: var(--vf-n-royal-2); color: #fff; }
.vf-n-pill:focus-visible { outline: 3px solid var(--vf-n-orange); outline-offset: 2px; }

/* ---------- Cards ---------- */
.vf-n-cat__grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 20px 0 0; padding: 0; list-style: none; }
.vf-n-cat__grid > li { margin: 0; padding: 0; }
.vf-n-cat__grid > li[hidden] { display: none; }
/* Celular: card na horizontal (capa à esquerda, nome e botão à direita) para a lista de 14 não ficar enorme. */
.vf-n-doc {
	display: grid;
	grid-template-columns: 112px 1fr;
	grid-template-areas: "cover t" "btn btn";
	align-items: center;
	column-gap: 14px;
	row-gap: 10px;
	height: 100%;
	padding: 12px;
	border: 1px solid var(--vf-n-line);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(29, 63, 179, .08);
	box-sizing: border-box;
}
.vf-n-doc__cover {
	grid-area: cover;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: 8px;
	background: var(--vf-n-baby);
}
.vf-page .vf-n-doc__cover img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.vf-n-doc__ph { display: grid; place-items: center; height: 100%; color: var(--vf-n-royal); }
.vf-n-doc__ph .vf-ico { width: 40px; height: 40px; }
.vf-page .vf-n-doc__t { grid-area: t; margin: 0; color: var(--vf-n-royal); font: 800 18px/1.25 var(--vf-font, 'Onest', sans-serif); letter-spacing: -.01em; }
.vf-page .vf-n-doc__t a { color: inherit; }
.vf-page .vf-n-doc__t a:hover { color: var(--vf-n-navy); text-decoration: underline; text-underline-offset: 3px; }
.vf-page .vf-n-doc__btn {
	grid-area: btn;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 44px;
	padding: 8px 14px;
	border: 2px solid var(--vf-n-royal);
	border-radius: 8px;
	background: #fff;
	color: var(--vf-n-royal);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	box-sizing: border-box;
	transition: background-color .15s, color .15s;
}
.vf-page .vf-n-doc__btn svg { flex: 0 0 auto; width: 22px; height: 22px; }
.vf-page .vf-n-doc__btn:hover { background: var(--vf-n-royal); color: #fff; }
.vf-n-doc__btn:focus-visible, .vf-n-doc__t a:focus-visible, .vf-n-ask__btn:focus-visible { outline: 3px solid var(--vf-n-orange); outline-offset: 2px; }
.vf-n-cat__empty { margin: 24px 0 0; color: var(--vf-n-gray); }

/* ---------- Faixa "Não achou o que procurava?" ---------- */
.vf-n-ask {
	display: grid;
	grid-template-columns: 56px 1fr;
	align-items: center;
	gap: 12px 14px;
	margin: 24px 0 0;
	padding: 16px;
	border-radius: 16px;
	background: var(--vf-n-baby);
}
.vf-n-ask__ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 12px; background: #fff; box-shadow: 0 4px 12px rgba(29, 63, 179, .08); }
.vf-n-ask__txt p { margin: 0; }
.vf-n-ask__t { color: var(--vf-n-navy); font-size: 18px; font-weight: 700; line-height: 1.3; }
.vf-n-ask__s { margin-top: 2px !important; color: var(--vf-n-gray); font-size: 16px; line-height: 1.5; }
.vf-page .vf-n-ask__btn {
	grid-column: 1 / -1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 24px;
	border-radius: 8px;
	background: var(--vf-n-orange-btn);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	transition: filter .15s;
}
.vf-page .vf-n-ask__btn:hover { color: #fff; filter: brightness(.92); }

/* ---------- 600 px: cards na vertical, 2 por linha ---------- */
@media (min-width: 600px) {
	.vf-n-cat__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
	.vf-n-doc {
		grid-template-columns: 1fr;
		grid-template-rows: auto 1fr auto;
		grid-template-areas: "cover" "t" "btn";
		row-gap: 14px;
		padding: 16px;
	}
	.vf-page .vf-n-doc__btn { width: 100%; }
	.vf-n-ask { grid-template-columns: 56px 1fr auto; padding: 16px 24px; }
	.vf-page .vf-n-ask__btn { grid-column: auto; }
}

/* ---------- 768 px: ilustração à direita do texto ---------- */
@media (min-width: 768px) {
	.vf-n-cat { padding: 24px 0 40px; }
	.vf-n-cat__panel { padding: 32px 32px 24px; border-radius: 24px; }
	.vf-n-cat__head { flex-direction: row; align-items: flex-start; min-height: 220px; }
	.vf-n-cat__intro { flex: 1 1 58%; }
	.vf-n-cat__ill { position: absolute; top: -32px; right: -32px; width: 46%; max-width: 585px; margin: 0; }
	.vf-page .vf-n-cat__t { font-size: 44px; }
	.vf-n-cat__lead { font-size: 18px; max-width: 30em; }
	.vf-n-pills { position: relative; z-index: 1; margin-top: 24px; }
	.vf-n-ask__t { font-size: 20px; }
}

/* ---------- 1024 px: 4 cards por linha, como no modelo ---------- */
@media (min-width: 1024px) {
	.vf-n-cat { padding: 8px 0 40px; }
	.vf-n-cat__panel { padding: 24px 40px 16px; }
	.vf-n-cat__head { min-height: 240px; }
	.vf-n-cat__intro { flex-basis: 52%; }
	.vf-page .vf-n-cat__t { font-size: 64px; line-height: 1; padding-bottom: 16px; background-size: min(100%, 312px) 4px; }
	.vf-n-cat__lead { margin-top: 24px; font-size: 20px; max-width: 28em; }
	.vf-n-pills { margin-top: 28px; gap: 12px 14px; }
	.vf-n-pill { padding: 8px 12px 8px 30px; gap: 14px; min-height: 48px; }
	.vf-n-pill__n { min-width: 40px; height: 28px; }
	.vf-n-cat__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 24px; padding-inline: 8px; }
	.vf-page .vf-n-doc__t { font-size: 20px; }
	.vf-n-ask { margin: 32px 0 8px; padding: 14px 24px 14px 24px; }
	.vf-page .vf-n-ask__btn { padding: 12px 28px; }
}

@media (prefers-reduced-motion: reduce) {
	.vf-n-pill, .vf-page .vf-n-doc__btn, .vf-page .vf-n-ask__btn { transition: none; }
}
