/* ===== Variáveis e reset ===== */
:root {
	--pnc-color-bg: #ffffff;
	--pnc-color-text: #1a1a1a;
	--pnc-color-muted: #6b7280;
	--pnc-color-primary: #E8720C;
	--pnc-color-primary-dark: #B35C0A;
	--pnc-color-secondary: #1656A3;
	--pnc-color-secondary-dark: #0F3E78;
	--pnc-color-border: #e5e7eb;
	--pnc-color-surface: #f9fafb;
	--pnc-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--pnc-radius: 10px;
	--pnc-container-width: 1180px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: var(--pnc-font);
	color: var(--pnc-color-text);
	background: var(--pnc-color-bg);
	line-height: 1.55;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--pnc-color-secondary); text-decoration: none; }
a:hover { text-decoration: underline; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.pnc-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--pnc-color-secondary);
	color: #fff;
	padding: 10px 16px;
	z-index: 1000;
}
.pnc-skip-link:focus { left: 0; }

.pnc-container {
	max-width: var(--pnc-container-width);
	margin: 0 auto;
	padding: 24px 16px 48px;
}
.pnc-container--narrow { max-width: 780px; }

/* ===== Barra de redes sociais ===== */
.pnc-topbar { background: var(--pnc-color-surface); border-bottom: 1px solid var(--pnc-color-border); }
.pnc-topbar__inner {
	max-width: var(--pnc-container-width);
	margin: 0 auto;
	padding: 6px 16px;
	display: flex;
	justify-content: flex-end;
	gap: 8px;
}
.pnc-social {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: transparent;
	transition: background-color .15s ease;
}
.pnc-social svg { width: 15px; height: 15px; }
.pnc-social--facebook svg { fill: #1877F2; }
.pnc-social--instagram svg { fill: #E4405F; }
.pnc-social--whatsapp svg { fill: #25D366; }
.pnc-social:hover { background: var(--pnc-color-border); text-decoration: none; }

/* ===== Header (sticky) ===== */
.pnc-header {
	border-bottom: 1px solid var(--pnc-color-border);
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--pnc-color-bg);
	transition: box-shadow 250ms ease;
}
.pnc-header.is-stuck { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.pnc-header.is-stuck .pnc-banners--topo { display: none; }

.pnc-header__bar {
	max-width: var(--pnc-container-width);
	margin: 0 auto;
	padding: 12px 16px;
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	transition: padding 250ms ease;
}
.pnc-header.is-stuck .pnc-header__bar { padding: 6px 16px; }

.pnc-header__brand { order: 2; flex: 0 0 auto; }
.pnc-header__site-title { font-size: 1.4rem; font-weight: 800; color: var(--pnc-color-text); }
.pnc-header__brand .custom-logo-link { display: block; }
.pnc-header__brand .custom-logo { height: 36px; width: auto; max-width: 160px; object-fit: contain; transition: height 250ms ease; }
.pnc-header.is-stuck .pnc-header__brand .custom-logo { height: 26px; }

@media (min-width: 700px) {
	.pnc-header__brand .custom-logo { height: 48px; max-width: 220px; }
	.pnc-header.is-stuck .pnc-header__brand .custom-logo { height: 32px; }
}

.pnc-nav { order: 1; position: relative; }

.pnc-nav-toggle {
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.pnc-nav-toggle__bar {
	width: 24px; height: 2px;
	background: var(--pnc-color-text);
	display: block;
}

.pnc-nav__list {
	list-style: none;
	margin: 0;
	padding: 8px;
	display: none;
	flex-direction: column;
	gap: 2px;
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	min-width: 220px;
	background: #fff;
	border: 1px solid var(--pnc-color-border);
	border-radius: var(--pnc-radius);
	box-shadow: 0 12px 28px rgba(0,0,0,0.15);
	z-index: 60;
}
.pnc-nav__list a {
	display: block;
	padding: 10px 12px;
	border-radius: 6px;
	color: var(--pnc-color-text);
	font-weight: 600;
	text-decoration: none;
}
.pnc-nav__list a:hover { background: var(--pnc-color-surface); text-decoration: none; }
.pnc-nav.is-open .pnc-nav__list { display: flex; }

.pnc-header__search {
	order: 3;
	flex: 1 1 100%;
	display: flex;
	margin-top: 8px;
}
.pnc-header__search input {
	flex: 1;
	padding: 8px 12px;
	border: 1px solid var(--pnc-color-border);
	border-radius: var(--pnc-radius) 0 0 var(--pnc-radius);
	font-size: 0.95rem;
}
.pnc-header__search button {
	border: 1px solid var(--pnc-color-secondary);
	background: var(--pnc-color-secondary);
	color: #fff;
	padding: 0 14px;
	border-radius: 0 var(--pnc-radius) var(--pnc-radius) 0;
	cursor: pointer;
}

/* ===== Breadcrumb ===== */
.pnc-breadcrumb { font-size: 0.85rem; color: var(--pnc-color-muted); margin-bottom: 16px; }
.pnc-breadcrumb a { color: var(--pnc-color-muted); }

.pnc-page-title { font-size: 1.8rem; margin: 0 0 16px; }

/* ===== Carrossel ===== */
.pnc-carousel {
	position: relative;
	background: #111;
	overflow: hidden;
	margin: 16px;
	border-radius: var(--pnc-radius);
}
@media (min-width: 1240px) {
	.pnc-carousel { max-width: var(--pnc-container-width); margin: 20px auto; }
}
.pnc-carousel__track { position: relative; }
.pnc-carousel__slide[hidden] { display: none; }
.pnc-carousel__link { display: block; position: relative; color: #fff; }
.pnc-carousel__img {
	width: 100%;
	aspect-ratio: 21 / 9;
	max-height: 240px;
	object-fit: cover;
	opacity: 0.8;
}
.pnc-carousel__caption {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	padding: 12px 16px 14px;
	background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
}
.pnc-carousel__category {
	display: inline-block;
	background: var(--pnc-color-primary);
	color: #fff;
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	padding: 3px 8px;
	border-radius: 4px;
	margin-bottom: 6px;
}
.pnc-carousel__title { margin: 0; font-size: 1rem; line-height: 1.3; color: #fff; }

.pnc-carousel__nav {
	position: absolute;
	top: 40%;
	transform: translateY(-50%);
	background: rgba(0,0,0,0.5);
	color: #fff;
	border: none;
	font-size: 1.4rem;
	width: 32px; height: 32px;
	border-radius: 50%;
	cursor: pointer;
	line-height: 1;
}
.pnc-carousel__nav--prev { left: 10px; }
.pnc-carousel__nav--next { right: 10px; }

.pnc-carousel__dots {
	position: absolute;
	bottom: 10px; left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 6px;
}
.pnc-carousel__dot {
	width: 8px; height: 8px;
	border-radius: 50%;
	border: none;
	background: rgba(255,255,255,0.5);
	cursor: pointer;
	padding: 0;
}
.pnc-carousel__dot.is-active { background: #fff; }

/* ===== Banners ===== */
.pnc-banners { display: flex; justify-content: center; padding: 16px; background: var(--pnc-color-surface); }
.pnc-banner img { border-radius: var(--pnc-radius); }
.pnc-banners--lateral { margin-bottom: 24px; }

/* ===== Grid de matérias ===== */
.pnc-section { max-width: var(--pnc-container-width); margin: 0 auto; padding: 32px 16px 8px; }
.pnc-section__header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.pnc-section__title { font-size: 1.4rem; margin: 0; }
.pnc-section__more { font-size: 0.9rem; font-weight: 600; white-space: nowrap; }

.pnc-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}

.pnc-card {
	border: 1px solid var(--pnc-color-border);
	border-radius: var(--pnc-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	background: #fff;
}
.pnc-card__thumb { aspect-ratio: 16/10; background: var(--pnc-color-surface); overflow: hidden; }
.pnc-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pnc-card__body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.pnc-card__category {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--pnc-color-primary);
}
.pnc-card__title { font-size: 1.05rem; margin: 0; line-height: 1.35; }
.pnc-card__title a { color: var(--pnc-color-text); }
.pnc-card__subtitle { font-size: 0.9rem; color: var(--pnc-color-muted); margin: 0; }
.pnc-card__meta { font-size: 0.78rem; color: var(--pnc-color-muted); margin: 4px 0 0; }

/* ===== Lista de notícias (estilo portal, item abaixo do outro) ===== */
.pnc-list {
	display: flex;
	flex-direction: column;
	border-top: 1px solid var(--pnc-color-border);
}

.pnc-list-item {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 20px 0;
	border-bottom: 1px solid var(--pnc-color-border);
}

.pnc-list-item__thumb {
	display: block;
	aspect-ratio: 16/9;
	max-height: 230px;
	overflow: hidden;
	border-radius: var(--pnc-radius);
	background: var(--pnc-color-surface);
	flex-shrink: 0;
}
.pnc-list-item__thumb img { width: 100%; height: 100%; object-fit: cover; }

.pnc-list-item__body { display: flex; flex-direction: column; gap: 8px; }

.pnc-list-item__category {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--pnc-color-primary);
	letter-spacing: 0.02em;
}

.pnc-list-item__title {
	font-size: 1.22rem;
	line-height: 1.3;
	margin: 0;
	font-weight: 800;
}
.pnc-list-item__title a { color: var(--pnc-color-text); }

.pnc-list-item__excerpt {
	font-size: 1rem;
	color: var(--pnc-color-muted);
	margin: 0;
	line-height: 1.5;
}

.pnc-list-item__meta { font-size: 0.8rem; color: var(--pnc-color-muted); margin: 0; }

/* ===== Layout padrão do site: conteúdo principal + barra lateral (usado em várias páginas) ===== */
.pnc-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
	align-items: start;
	max-width: var(--pnc-container-width);
	margin: 0 auto;
	padding: 8px 16px 48px;
}
.pnc-layout__main { min-width: 0; }

.pnc-sidebar { display: flex; flex-direction: column; gap: 24px; }

/*
 * Mobile/tablet: "Nossos Parceiros" precisa aparecer assim que a página abre,
 * sem depender de rolar até o fim da lista de notícias — o parceiro paga para
 * ser visto. "display: contents" remove a <aside> do fluxo (sem afetar a
 * renderização dos filhos) para que cada bloco vire um item independente do
 * grid e possa ser reordenado sozinho. No desktop isso é revertido e a barra
 * lateral volta a ser um único bloco fixo, como antes.
 */
@media (max-width: 1023px) {
	.pnc-sidebar { display: contents; }
	.pnc-layout__main { order: 2; }
	.pnc-sidebar__box--partners { order: 1; }
	.pnc-sidebar__box--related { order: 3; }
	.pnc-sidebar .pnc-banners--lateral { order: 4; }
}

.pnc-sidebar__box {
	border: 1px solid var(--pnc-color-border);
	border-radius: var(--pnc-radius);
	overflow: hidden;
	background: #fff;
	transition: box-shadow 250ms ease;
}
.pnc-sidebar__title {
	margin: 0;
	padding: 16px 18px;
	font-size: 1.1rem;
	font-weight: 800;
	border-bottom: 1px solid var(--pnc-color-border);
}
.pnc-sidebar__list { list-style: none; margin: 0; padding: 0; }
.pnc-sidebar__item {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 18px;
	border-bottom: 1px solid var(--pnc-color-border);
}
.pnc-sidebar__item:last-child { border-bottom: none; }
.pnc-sidebar__item-title {
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.35;
	color: var(--pnc-color-secondary);
	transition: color 200ms ease;
}
.pnc-sidebar__item-thumb {
	flex-shrink: 0;
	width: 80px;
	height: 80px;
	border-radius: 6px;
	overflow: hidden;
	background: var(--pnc-color-surface);
}
.pnc-sidebar__item-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }
.pnc-sidebar__item:hover .pnc-sidebar__item-title { color: var(--pnc-color-secondary-dark); }
.pnc-sidebar__item:hover .pnc-sidebar__item-thumb img { transform: scale(1.05); }

/* ===== Widget de parceiros (carrossel de flyers, até 5) ===== */
.pnc-partners-carousel { position: relative; padding: 18px; }
.pnc-partners-carousel .pnc-carousel__slide[hidden] { display: none; }
.pnc-partners-carousel__nav {
	width: 28px;
	height: 28px;
	font-size: 1.2rem;
	top: 42%;
}
.pnc-partners-carousel__nav.pnc-carousel__nav--prev { left: -4px; }
.pnc-partners-carousel__nav.pnc-carousel__nav--next { right: -4px; }
.pnc-partners-carousel__dots {
	position: static;
	transform: none;
	justify-content: center;
	margin-top: 12px;
}
.pnc-partners-carousel__dots .pnc-carousel__dot { background: var(--pnc-color-border); }
.pnc-partners-carousel__dots .pnc-carousel__dot.is-active { background: var(--pnc-color-primary); }

.pnc-partners__item {
	display: flex;
	flex-direction: column;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid var(--pnc-color-border);
	text-decoration: none;
	transition: box-shadow 250ms ease, transform 250ms ease;
}
.pnc-partners__item:hover {
	text-decoration: none;
	box-shadow: 0 10px 24px rgba(0,0,0,0.12);
	transform: translateY(-2px);
}
.pnc-partners__flyer {
	width: 100%;
	height: auto;
	display: block;
	transition: transform 400ms ease;
}
.pnc-partners__item:hover .pnc-partners__flyer { transform: scale(1.03); }
.pnc-partners__label {
	position: relative;
	top: -30px;
	left: 12px;
	display: inline-block;
	width: fit-content;
	background: var(--pnc-color-primary);
	color: #fff;
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	padding: 4px 9px;
	border-radius: 4px;
}
.pnc-partners__title {
	margin: -20px 14px 14px;
	font-size: 1rem;
	font-weight: 700;
	color: var(--pnc-color-text);
}

@media (min-width: 1024px) {
	.pnc-layout { grid-template-columns: 1fr 380px; }
	.pnc-sidebar {
		position: sticky;
		top: 96px;
		align-self: start;
	}
}

/* ===== Post único ===== */
.pnc-single__category {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--pnc-color-primary);
	margin-bottom: 8px;
}
.pnc-single__title { font-size: 2rem; line-height: 1.25; margin: 0 0 8px; }
.pnc-single__subtitle { font-size: 1.15rem; color: var(--pnc-color-muted); margin: 0 0 12px; }

.pnc-single__meta-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 16px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--pnc-color-border);
}
.pnc-single__meta { font-size: 0.85rem; color: var(--pnc-color-muted); margin: 0; }
.pnc-single__thumb { margin: 20px 0; }
.pnc-single__thumb img { border-radius: var(--pnc-radius); }
.pnc-single__content { font-size: 1.05rem; }
.pnc-single__content img,
.pnc-single__content video,
.pnc-single__content iframe { border-radius: var(--pnc-radius); margin: 20px 0; }
.pnc-single__content h2 { font-size: 1.4rem; margin-top: 32px; }
.pnc-single__content h3 { font-size: 1.2rem; margin-top: 24px; }

/* ===== Compartilhamento ===== */
.pnc-share { position: relative; flex-shrink: 0; }

.pnc-share__toggle {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 0.8rem;
	font-weight: 600;
	padding: 8px 14px;
	border-radius: 999px;
	border: 1px solid var(--pnc-color-border);
	background: transparent;
	color: var(--pnc-color-muted);
	cursor: pointer;
	transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
.pnc-share__toggle svg { width: 15px; height: 15px; flex-shrink: 0; }
.pnc-share__toggle:hover,
.pnc-share.is-open .pnc-share__toggle {
	background: var(--pnc-color-surface);
	color: var(--pnc-color-secondary);
	border-color: var(--pnc-color-secondary);
}

/* Versão compacta (ao lado da data): só o ícone, rótulo acessível apenas a leitor de tela */
.pnc-share--compact .pnc-share__toggle { padding: 8px; border-radius: 50%; }
.pnc-share--compact .pnc-share__toggle-label {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.pnc-share__menu {
	display: none;
	flex-direction: column;
	gap: 2px;
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	min-width: 210px;
	padding: 8px;
	background: #fff;
	border: 1px solid var(--pnc-color-border);
	border-radius: 14px;
	box-shadow: 0 16px 32px rgba(0,0,0,0.14);
	z-index: 60;
	opacity: 0;
	transform: translateY(-6px);
	transition: opacity 200ms ease, transform 200ms ease;
}
.pnc-share-invite .pnc-share__menu,
.pnc-share:not(.pnc-share--compact) .pnc-share__menu { left: 0; right: auto; }
.pnc-share.is-open .pnc-share__menu { display: flex; opacity: 1; transform: translateY(0); }

.pnc-share__btn {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.88rem;
	font-weight: 600;
	padding: 9px 10px;
	border-radius: 8px;
	border: none;
	background: none;
	color: var(--pnc-color-text);
	cursor: pointer;
	text-decoration: none;
	text-align: left;
	width: 100%;
}
.pnc-share__btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.pnc-share__btn:hover { text-decoration: none; background: var(--pnc-color-surface); }
.pnc-share__btn--whatsapp svg { color: #25D366; }
.pnc-share__btn--facebook svg { color: #1877F2; }
.pnc-share__btn--twitter svg { color: #000; }
.pnc-share__btn--telegram svg { color: #229ED9; }
.pnc-share__btn--linkedin svg { color: #0A66C2; }
.pnc-share__btn--native svg,
.pnc-share__btn--copy svg { color: var(--pnc-color-secondary); }
.pnc-share__btn--copied span { color: var(--pnc-color-secondary); }

/* ===== Convite ao compartilhamento (fim da matéria) ===== */
.pnc-share-invite {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 10px;
	margin: 28px 0;
	padding: 24px;
	background: var(--pnc-color-surface);
	border-radius: var(--pnc-radius);
	text-align: center;
}
.pnc-share-invite__text { margin: 0; font-weight: 700; color: var(--pnc-color-text); }
.pnc-share-invite .pnc-share__toggle {
	background: var(--pnc-color-secondary);
	color: #fff;
	border-color: var(--pnc-color-secondary);
	padding: 10px 20px;
}
.pnc-share-invite .pnc-share__toggle:hover { background: var(--pnc-color-secondary-dark); }

/* ===== Busca / 404 ===== */
.pnc-searchform { display: flex; margin-bottom: 24px; max-width: 480px; }
.pnc-searchform input { flex: 1; padding: 10px 14px; border: 1px solid var(--pnc-color-border); border-radius: var(--pnc-radius) 0 0 var(--pnc-radius); }
.pnc-searchform button { border: 1px solid var(--pnc-color-secondary); background: var(--pnc-color-secondary); color: #fff; padding: 0 16px; border-radius: 0 var(--pnc-radius) var(--pnc-radius) 0; cursor: pointer; }
.pnc-404 { text-align: center; padding-top: 64px; }

/* ===== Rodapé ===== */
.pnc-footer { background: var(--pnc-color-surface); border-top: 1px solid var(--pnc-color-border); margin-top: 48px; }
.pnc-footer__inner { max-width: var(--pnc-container-width); margin: 0 auto; padding: 32px 16px; text-align: center; }
.pnc-footer__brand { display: flex; justify-content: center; margin-bottom: 8px; }
.pnc-footer__brand .custom-logo { height: 44px; width: auto; max-width: 200px; object-fit: contain; }
.pnc-footer__list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; padding: 0; margin: 16px 0; }
.pnc-footer__list a { color: var(--pnc-color-text); font-weight: 600; }
.pnc-footer__copy { font-size: 0.85rem; color: var(--pnc-color-muted); }

/* ===== Responsivo: tablet ===== */
@media (min-width: 700px) {
	.pnc-grid { grid-template-columns: repeat(2, 1fr); }
	.pnc-carousel__img { max-height: 280px; }
	.pnc-carousel__title { font-size: 1.2rem; }

	.pnc-header__search { order: 3; flex: 0 1 320px; margin-top: 0; margin-left: auto; }

	.pnc-list-item { flex-direction: row; gap: 24px; padding: 22px 0; }
	.pnc-list-item__thumb { width: 280px; max-height: 175px; }
	.pnc-list-item__body { flex: 1; justify-content: center; }
	.pnc-list-item__title { font-size: 1.35rem; }
}

/* ===== Responsivo: desktop ===== */
@media (min-width: 1024px) {
	.pnc-grid { grid-template-columns: repeat(3, 1fr); }
	.pnc-carousel__img { max-height: 320px; }
	.pnc-carousel__title { font-size: 1.3rem; }
	.pnc-list-item__title { font-size: 1.4rem; }
}
