.ctlpa-section {
	--ctlpa-destaque: #F05A17;
	--ctlpa-secundaria: #08245F;
	--ctlpa-bg-dark: #0C0D15;
	--ctlpa-card-bg: #FFFFFF;
	--ctlpa-card-texto: #0C0D15;
	--ctlpa-container-max: 1400px;
	--ctlpa-cols-desktop: 6;
	--ctlpa-cols-tablet: 4;
	--ctlpa-cols-mobile: 2;
	box-sizing: border-box;
	padding: 56px 24px;
}
.ctlpa-section *, .ctlpa-section *::before, .ctlpa-section *::after {
	box-sizing: border-box;
}

.ctlpa-wrapper {
	max-width: var(--ctlpa-container-max);
	margin: 0 auto;
}

/* ---------- Intro ---------- */
.ctlpa-intro {
	text-align: center;
	margin-bottom: 32px;
}
.ctlpa-title {
	font-size: clamp(24px, 3vw, 34px);
	font-weight: 800;
	margin: 0 0 12px;
	color: var(--ctlpa-secundaria);
}
.ctlpa-subtitle {
	font-size: 16px;
	line-height: 1.6;
	max-width: 720px;
	margin: 0 auto;
	color: #4a4f5c;
}

/* ---------- Busca ---------- */
.ctlpa-search-wrap {
	position: relative;
	max-width: 420px;
	margin: 0 auto 36px;
}
.ctlpa-search-icon {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	width: 18px;
	height: 18px;
	color: #9aa0ac;
	pointer-events: none;
}
.ctlpa-search {
	width: 100%;
	padding: 13px 18px 13px 44px;
	border-radius: 999px;
	border: 1.5px solid #e2e4ea;
	font-size: 15px;
	background: #fff;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.ctlpa-search:focus {
	outline: none;
	border-color: var(--ctlpa-destaque);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--ctlpa-destaque) 15%, transparent);
}
.ctlpa-search::-webkit-search-cancel-button {
	cursor: pointer;
}

/* ---------- Grid ---------- */
.ctlpa-grid {
	display: grid;
	grid-template-columns: repeat(var(--ctlpa-cols-desktop), 1fr);
	gap: 20px;
}

.ctlpa-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	background: var(--ctlpa-card-bg);
	color: var(--ctlpa-card-texto);
	border: 1px solid #ecedf1;
	border-radius: 18px;
	padding: 24px 14px;
	cursor: pointer;
	font: inherit;
	text-align: center;
	box-shadow: 0 2px 8px rgba(12, 13, 21, .05);
	transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.ctlpa-card[hidden] {
	display: none;
}
.ctlpa-card:hover,
.ctlpa-card:focus-visible {
	transform: translateY(-5px) scale(1.03);
	box-shadow: 0 14px 28px rgba(12, 13, 21, .14);
	border-color: var(--ctlpa-destaque);
	outline: none;
}
.ctlpa-card:active {
	transform: translateY(-2px) scale(1.01);
}

.ctlpa-card-icon {
	width: 64px;
	height: 64px;
	border-radius: 16px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f4f5f7;
	flex-shrink: 0;
}
.ctlpa-card-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.ctlpa-card-icon-fallback {
	font-size: 24px;
	font-weight: 700;
	color: var(--ctlpa-secundaria);
}
.ctlpa-card-name {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
}

.ctlpa-empty,
.ctlpa-empty-state {
	text-align: center;
	color: #6b7280;
	font-size: 15px;
	padding: 32px 0;
}
.ctlpa-empty[hidden] {
	display: none;
}

/* ---------- Full-bleed opcional ---------- */
.ctlpa-fullbleed {
	background: var(--ctlpa-bg-dark);
}
.ctlpa-fullbleed .ctlpa-title { color: #fff; }
.ctlpa-fullbleed .ctlpa-subtitle { color: rgba(255,255,255,.72); }
.ctlpa-fullbleed .ctlpa-search { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: #fff; }
.ctlpa-fullbleed .ctlpa-search::placeholder { color: rgba(255,255,255,.5); }
.ctlpa-fullbleed .ctlpa-search-icon { color: rgba(255,255,255,.5); }

/* Elementor / temas de bloco: zera respiro em todos os niveis quando full-bleed */
.elementor-widget-container:has(> .ctlpa-fullbleed),
.elementor-widget:has(> .elementor-widget-container > .ctlpa-fullbleed),
.e-con:has(> .elementor-widget > .elementor-widget-container > .ctlpa-fullbleed),
.elementor-column:has(.ctlpa-fullbleed),
.elementor-section:has(.ctlpa-fullbleed) {
	padding: 0 !important;
	margin: 0 !important;
	max-width: none !important;
	width: 100% !important;
}

/* ---------- Modal ---------- */
.ctlpa-modal[hidden] {
	display: none;
}
.ctlpa-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.ctlpa-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(12, 13, 21, .6);
	backdrop-filter: blur(3px);
	animation: ctlpa-fade .18s ease;
}
.ctlpa-modal-dialog {
	position: relative;
	background: #fff;
	border-radius: 18px;
	width: min(820px, 100%);
	max-height: min(88vh, 1000px);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	box-shadow: 0 30px 70px rgba(0,0,0,.35);
	animation: ctlpa-pop .22s cubic-bezier(.2,.8,.2,1);
}
@keyframes ctlpa-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ctlpa-pop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
	.ctlpa-modal-backdrop, .ctlpa-modal-dialog { animation: none; }
	.ctlpa-card { transition: none; }
}

.ctlpa-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 20px;
	border-bottom: 1px solid #ecedf1;
}
.ctlpa-modal-title {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	color: var(--ctlpa-secundaria);
}
.ctlpa-modal-close {
	appearance: none;
	border: none;
	background: #f4f5f7;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	color: #4a4f5c;
	flex-shrink: 0;
	transition: background .15s ease, color .15s ease;
}
.ctlpa-modal-close:hover {
	background: var(--ctlpa-destaque);
	color: #fff;
}

.ctlpa-modal-body {
	flex: 1;
	min-height: 0;
	background: #f4f5f7;
}
.ctlpa-modal-iframe {
	width: 100%;
	height: 100%;
	min-height: 55vh;
	border: none;
	display: block;
}

.ctlpa-modal-footer {
	display: flex;
	gap: 10px;
	padding: 14px 20px;
	border-top: 1px solid #ecedf1;
	flex-wrap: wrap;
}
.ctlpa-modal-footer a {
	flex: 1 1 auto;
	text-align: center;
	padding: 11px 16px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	transition: filter .15s ease, transform .15s ease;
}
.ctlpa-modal-footer a:hover {
	filter: brightness(1.08);
	transform: translateY(-1px);
}
.ctlpa-modal-open-tab {
	background: var(--ctlpa-destaque);
	color: #fff;
}
.ctlpa-modal-download {
	background: #eef0f4;
	color: var(--ctlpa-secundaria);
}

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
	.ctlpa-grid { grid-template-columns: repeat(var(--ctlpa-cols-tablet), 1fr); }
}
@media (max-width: 600px) {
	.ctlpa-section { padding: 40px 16px; }
	.ctlpa-grid { grid-template-columns: repeat(var(--ctlpa-cols-mobile), 1fr); gap: 14px; }
	.ctlpa-card { padding: 18px 10px; }
	.ctlpa-card-icon { width: 52px; height: 52px; }
	.ctlpa-modal { padding: 0; }
	.ctlpa-modal-dialog { border-radius: 0; width: 100%; height: 100%; max-height: none; }
}
