:root {
	--chm-blue: #092a4b;
	--chm-blue-2: #0f3a63;
	--chm-blue-3: #06203a;
	--chm-gold: #87783d;
	--chm-gold-text: #6d6130;
	--chm-gold-light: #d9ca8f;
	--chm-gold-fill: #c8b768;
	--chm-paper: #f6f3ea;
	--chm-line: #e3dfd2;
	--chm-ink: #1d2733;
	--chm-muted: #566170;
	--chm-serif: Georgia, "Times New Roman", serif;
	--chm-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.chm-page {
	margin: 0;
	background: var(--chm-paper);
	color: var(--chm-ink);
	font-family: var(--chm-sans);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

.chm-page *,
.chm-page *::before,
.chm-page *::after { box-sizing: border-box; }

.chm-page img { display: block; max-width: 100%; height: auto; }
.chm-page a { color: inherit; text-decoration: none; }
.chm-page ul { list-style: none; margin: 0; padding: 0; }
.chm-page h1, .chm-page h2, .chm-page h3, .chm-page p { margin: 0; }
.chm-page button, .chm-page input { font: inherit; }
.chm-page [hidden] { display: none !important; }

.chm-page :focus-visible {
	outline: 3px solid var(--chm-gold-fill);
	outline-offset: 2px;
}

.chm-wrap { width: min(100% - 48px, 1320px); margin-inline: auto; }
.chm-icon { width: 1.25em; height: 1.25em; flex: none; }

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

.chm-skip {
	position: absolute;
	left: 16px;
	top: -60px;
	z-index: 100;
	padding: 10px 16px;
	border-radius: 6px;
	background: #fff;
	color: var(--chm-blue) !important;
	font-weight: 700;
}
.chm-skip:focus { top: 8px; }

/* Barra superior */
.chm-topbar { position: relative; z-index: 30; background: var(--chm-blue); color: #fff; }
.chm-topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; }
.chm-menu-toggle { display: none; }
.chm-nav > ul { display: flex; align-items: center; gap: 2px; }
.chm-nav > ul > li { position: relative; }
.chm-nav > ul > li > a,
.chm-nav > ul > li > button {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	min-height: 64px;
	padding: 0 14px;
	border: 0;
	background: none;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: inset 0 -3px 0 transparent;
	transition: box-shadow .15s ease, color .15s ease;
}
.chm-nav > ul > li > a[aria-current="page"],
.chm-nav > ul > li > a:hover,
.chm-nav > ul > li > button:hover,
.chm-nav > ul > li > button[aria-expanded="true"] {
	color: var(--chm-gold-light);
	box-shadow: inset 0 -3px 0 var(--chm-gold-fill);
}
.chm-nav .chm-icon { width: 15px; height: 15px; transition: transform .15s ease; }
.chm-nav button[aria-expanded="true"] .chm-icon { transform: rotate(180deg); }

.chm-nav .has-sub > ul {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 270px;
	padding: 8px;
	border-top: 3px solid var(--chm-gold-fill);
	border-radius: 0 0 8px 8px;
	background: #fff;
	color: var(--chm-ink);
	box-shadow: 0 18px 40px rgba(6, 32, 58, .25);
}
.chm-nav .has-sub > button[aria-expanded="true"] + ul { display: block; }
@media (hover: hover) and (min-width: 1101px) {
	.chm-nav .has-sub:hover > ul { display: block; }
	.chm-nav .has-sub:hover > button { color: var(--chm-gold-light); box-shadow: inset 0 -3px 0 var(--chm-gold-fill); }
}
.chm-nav .has-sub li > a,
.chm-nav .has-sub li > span { display: block; padding: 9px 12px; border-radius: 5px; font-size: 15px; }
.chm-nav .has-sub li > a:hover { background: var(--chm-paper); color: var(--chm-blue); }

.chm-nav .has-sub .chm-subgroup { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--chm-line); }
.chm-nav .has-sub .chm-subgroup > span { padding: 7px 12px 3px; color: var(--chm-gold-text); font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }

.is-soon { color: var(--chm-muted); cursor: default; }
.is-soon small { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }

.chm-social { display: flex; align-items: center; gap: 6px; }
.chm-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 6px;
	color: #fff;
	transition: background .15s ease;
}
.chm-social a:hover { background: var(--chm-blue-2); }

/* Marca e busca */
.chm-header { background: #fff; }
.chm-brandbar { display: grid; grid-template-columns: auto minmax(240px, 480px) auto; align-items: center; justify-content: space-between; gap: 28px; padding-block: 16px; }
.chm-logo { display: inline-flex; align-items: center; gap: 13px; color: var(--chm-blue) !important; }
.chm-logo img { width: 74px; height: 69px; }
.chm-logo span { display: flex; flex-direction: column; line-height: 1; }
.chm-logo small { color: var(--chm-gold-text); font-family: var(--chm-serif); font-size: 15px; font-style: italic; }
.chm-logo strong { margin-top: 5px; font-family: var(--chm-serif); font-size: 31px; font-weight: 700; letter-spacing: .035em; text-transform: uppercase; }

.chm-search { display: flex; align-items: center; gap: 9px; height: 48px; padding: 0 5px 0 15px; border: 1px solid var(--chm-line); border-radius: 8px; background: var(--chm-paper); color: var(--chm-muted); }
.chm-search:focus-within { border-color: var(--chm-gold); background: #fff; }
.chm-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--chm-ink); }
.chm-search button { height: 38px; padding: 0 16px; border: 0; border-radius: 6px; background: var(--chm-blue); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; }
.chm-search button:hover { background: var(--chm-blue-2); }

.chm-brandbar__actions { display: flex; align-items: stretch; gap: 10px; }
.chm-radar, .chm-access { display: inline-flex; align-items: center; gap: 9px; min-height: 48px; padding: 6px 14px; border-radius: 8px; font-size: 13px; line-height: 1.2; }
.chm-radar { max-width: 180px; border: 1px solid var(--chm-line); color: var(--chm-blue) !important; }
.chm-radar strong { display: block; font-family: var(--chm-serif); font-size: 17px; }
.chm-radar:hover { border-color: var(--chm-gold); }
.chm-access { max-width: 150px; background: var(--chm-gold-fill); color: var(--chm-blue-3) !important; font-weight: 700; }
.chm-access:hover { background: var(--chm-gold-light); }

/* Hero */
.chm-hero { position: relative; height: clamp(300px, 34vw, 500px); overflow: hidden; background: var(--chm-blue-3); isolation: isolate; }
.chm-hero > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100% !important; object-fit: cover; object-position: 50% 38%; }
.chm-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 32, 58, .1) 25%, rgba(6, 32, 58, .68) 100%); }
.chm-hero__text { position: absolute; left: 50%; bottom: 24%; width: min(100% - 40px, 900px); color: #fff; text-align: center; transform: translateX(-50%); text-shadow: 0 2px 16px rgba(0, 0, 0, .55); }
.chm-hero__text p { display: inline-block; padding-bottom: 5px; border-bottom: 2px solid var(--chm-gold-fill); font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.chm-hero__text h1 { margin-top: 10px; color: #fff; font-family: var(--chm-serif); font-size: clamp(25px, 3.1vw, 44px); font-weight: 700; line-height: 1.12; }
.chm-hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(44px, 6vw, 90px); }
.chm-hero__wave .w1 { fill: var(--chm-gold-fill); }
.chm-hero__wave .w2 { fill: var(--chm-paper); }

/* Serviços */
.chm-services { padding: 28px 0 58px; }
.chm-services__head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-bottom: 20px; }
.chm-services h2, .chm-section-head h2 { font-family: var(--chm-serif); font-size: clamp(26px, 2.5vw, 34px); font-weight: 700; line-height: 1.15; }
.chm-services h2 { color: var(--chm-blue); }
.chm-tabs { display: inline-flex; padding: 4px; border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px var(--chm-line); }
.chm-tabs button { min-width: 96px; min-height: 40px; padding: 0 16px; border: 0; border-radius: 6px; background: transparent; color: var(--chm-blue); font-size: 15px; font-weight: 700; cursor: pointer; }
.chm-tabs button[aria-selected="true"] { background: var(--chm-blue); color: #fff; }
.chm-more { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; }
.chm-services .chm-more { justify-self: end; color: var(--chm-blue); }
.chm-more:hover { text-decoration: underline; text-underline-offset: 4px; }
.chm-more .chm-icon { color: var(--chm-gold); }

.chm-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--chm-line); border-radius: 10px; background: var(--chm-line); gap: 1px; box-shadow: 0 12px 30px rgba(9, 42, 75, .07); }
.chm-grid--servidor { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.chm-service { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 10px; min-height: 142px; padding: 24px 10px 16px; background: #fff; color: var(--chm-blue) !important; text-align: center; transition: background .15s ease, color .15s ease; }
.chm-service .chm-icon { width: 34px; height: 34px; color: var(--chm-gold); transition: color .15s ease, transform .15s ease; }
.chm-service__label { font-size: 14.5px; font-weight: 700; line-height: 1.22; }
a.chm-service:hover { background: var(--chm-blue); color: #fff !important; }
a.chm-service:hover .chm-icon { color: var(--chm-gold-light); transform: translateY(-2px); }
.chm-service:focus-visible { z-index: 1; outline-offset: -4px; }
.chm-service.is-soon { color: var(--chm-muted) !important; }
.chm-service.is-soon .chm-icon { color: #9aa2ad; }
.chm-service.is-soon small { position: absolute; bottom: 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }

/* Notícias e vereadores */
.chm-dark { background: var(--chm-blue); color: #fff; }
.chm-news { padding: 54px 0 46px; }
.chm-section-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.chm-section-head h2 { color: inherit; }
.chm-dark .chm-more, .chm-videos .chm-more { color: var(--chm-gold-light); }
.chm-dark .chm-more .chm-icon, .chm-videos .chm-more .chm-icon { color: inherit; }

.chm-page time { color: var(--chm-gold-light); font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.chm-lead { display: grid; grid-template-columns: 2fr 3fr; align-items: center; gap: 42px; }
.chm-lead h3 { margin-top: 10px; font-family: var(--chm-serif); font-size: clamp(25px, 2.5vw, 36px); line-height: 1.16; }
.chm-lead h3 a:hover, .chm-news-row h3 a:hover { color: var(--chm-gold-light); }
.chm-lead p { margin-top: 15px; color: #d6dee7; font-size: 16.500px; }
.chm-lead > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }

.chm-news-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.chm-thumb { aspect-ratio: 3 / 2; overflow: hidden; margin-bottom: 11px; border-radius: 7px; background: var(--chm-blue-2); }
.chm-thumb img { width: 100%; height: 100% !important; object-fit: cover; transition: transform .25s ease; }
article:hover .chm-thumb img { transform: scale(1.04); }
.chm-news-row h3 { display: -webkit-box; margin-top: 5px; overflow: hidden; font-size: 15px; font-weight: 700; line-height: 1.32; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }

.chm-vereadores { padding: 18px 0 64px; scroll-margin-top: 16px; }
.chm-section-head--intro { justify-content: flex-start; }
.chm-section-head--intro p { max-width: 390px; padding-left: 18px; border-left: 3px solid var(--chm-gold-fill); color: #d6dee7; font-size: 14.5px; line-height: 1.35; }
.chm-ver-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 16px; }
.chm-ver-grid a { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 8px; background: #fff; color: var(--chm-blue) !important; text-align: center; transition: transform .15s ease, box-shadow .15s ease; }
.chm-ver-grid a:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(0, 0, 0, .3); }
.chm-ver-photo { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #dfe4ea; }
.chm-ver-photo img { width: 100%; height: 100% !important; object-fit: cover; object-position: 50% 15%; }
.chm-ver-photo em { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 3px; background: var(--chm-gold-fill); color: var(--chm-blue-3); font-size: 11.5px; font-style: normal; font-weight: 800; line-height: 1.2; }
.chm-ver-grid strong { padding: 9px 6px 0; font-size: 14px; line-height: 1.2; }
.chm-ver-grid small { padding: 2px 6px 10px; color: var(--chm-muted); font-size: 12px; }

/* Vídeos */
.chm-videos { padding: 54px 0 62px; background: var(--chm-blue-3); color: #fff; }
.chm-videos > .chm-wrap > p a { color: var(--chm-gold-light); text-decoration: underline; }
.chm-video-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.chm-video-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; margin-bottom: 12px; border-radius: 8px; background: var(--chm-blue-2); }
.chm-video-thumb img { width: 100%; height: 100% !important; object-fit: cover; }
.chm-video-thumb i { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(6, 32, 58, .25); color: #fff; transition: background .15s ease; }
.chm-video-thumb .chm-icon { width: 48px; height: 48px; }
.chm-video-grid a:hover .chm-video-thumb i { background: rgba(6, 32, 58, .05); }
.chm-video-grid h3 { margin-top: 5px; font-size: 15.5px; font-weight: 700; line-height: 1.32; }
.chm-video-grid a:hover h3 { color: var(--chm-gold-light); }

/* Rodapé */
.chm-footer { padding-top: 54px; background: var(--chm-blue); color: #e5ebf1; font-size: 14.5px; }
.chm-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 42px; }
.chm-footer__contact > p { display: flex; gap: 9px; margin-top: 10px; overflow-wrap: anywhere; }
.chm-footer__contact .chm-icon { margin-top: 2px; color: var(--chm-gold-light); }
.chm-footer__contact a:hover, .chm-footer li a:hover { color: var(--chm-gold-light); text-decoration: underline; }
.chm-social--boxed { margin-bottom: 18px; }
.chm-social--boxed a { background: var(--chm-gold-fill); color: var(--chm-blue-3); }
.chm-social--boxed a:hover { background: var(--chm-gold-light); }
.chm-footer h2 { margin-bottom: 14px; padding-left: 12px; border-left: 3px solid var(--chm-gold-fill); color: #fff; font-family: var(--chm-serif); font-size: 19px; line-height: 1.2; }
.chm-footer li { margin-bottom: 7px; padding-left: 15px; }
.chm-footer .is-soon { color: #b9c5d1; }
.chm-footer__bottom { padding-block: 17px; border-top: 1px solid rgba(255, 255, 255, .16); color: #c8d3de; font-size: 13px; }

@media (max-width: 1240px) {
	.chm-nav > ul > li > a, .chm-nav > ul > li > button { padding-inline: 10px; font-size: 14px; }
	.chm-brandbar { grid-template-columns: auto minmax(200px, 1fr) auto; gap: 20px; }
	.chm-radar { display: none; }
	.chm-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.chm-grid--servidor { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.chm-news-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.chm-ver-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.chm-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.chm-footer__contact { grid-column: 1 / -1; }
}

@media (max-width: 1100px) {
	.chm-topbar__in { min-height: 56px; }
	.chm-menu-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 10px 0 0; border: 0; background: none; color: #fff; font-weight: 700; cursor: pointer; }
	.chm-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - 56px); overflow-y: auto; background: var(--chm-blue); box-shadow: 0 18px 30px rgba(6, 32, 58, .35); }
	.chm-nav.is-open { display: block; }
	.chm-nav > ul { display: block; padding: 6px 24px 18px; }
	.chm-nav > ul > li { border-bottom: 1px solid rgba(255, 255, 255, .13); }
	.chm-nav > ul > li > a, .chm-nav > ul > li > button { width: 100%; min-height: 50px; justify-content: space-between; padding: 0; font-size: 16px; box-shadow: none !important; }
	.chm-nav .has-sub > ul { position: static; min-width: 0; margin-bottom: 10px; padding: 4px; border-top: 0; border-radius: 6px; box-shadow: none; }
}

@media (max-width: 820px) {
	.chm-wrap { width: min(100% - 32px, 1320px); }
	.chm-brandbar { grid-template-columns: 1fr auto; gap: 12px; padding-block: 12px; }
	.chm-logo img { width: 56px; height: 52px; }
	.chm-logo small { font-size: 13px; }
	.chm-logo strong { font-size: 23px; }
	.chm-search { grid-column: 1 / -1; grid-row: 2; }
	.chm-access { max-width: 118px; min-height: 44px; padding: 5px 9px; font-size: 12px; }
	.chm-hero { height: 270px; }
	.chm-hero > img { object-position: 62% 40%; }
	.chm-hero__text { bottom: 22%; }
	.chm-hero__text p { font-size: 12px; }
	.chm-services { padding: 18px 0 42px; }
	.chm-services__head { grid-template-columns: 1fr auto; }
	.chm-services h2 { grid-column: 1; }
	.chm-services .chm-more { grid-column: 2; grid-row: 1; }
	.chm-tabs { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
	.chm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.chm-grid--servidor { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.chm-grid--servidor > :last-child:nth-child(odd) { grid-column: 1 / -1; }
	.chm-service { min-height: 118px; padding: 18px 8px 16px; }
	.chm-service .chm-icon { width: 30px; height: 30px; }
	.chm-lead { grid-template-columns: 1fr; gap: 18px; }
	.chm-lead > img { grid-row: 1; }
	.chm-news-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
	.chm-news-row > :last-child:nth-child(odd) { grid-column: 1 / -1; }
	.chm-ver-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
	.chm-section-head--intro { display: block; }
	.chm-section-head--intro p { margin-top: 10px; }
	.chm-video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
	.chm-footer__grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
}

@media (max-width: 480px) {
	.chm-video-grid { grid-template-columns: 1fr; }
	.chm-footer__grid { grid-template-columns: 1fr; }
	.chm-ver-grid strong { font-size: 12.500px; }
	.chm-ver-photo em { font-size: 10px; }
}

@media (max-width: 430px) {
	.chm-brandbar { grid-template-columns: minmax(0, 1fr) auto; }
	.chm-logo { gap: 8px; min-width: 0; }
	.chm-logo img { width: 46px; height: 43px; }
	.chm-logo small { font-size: 11.5px; }
	.chm-logo strong { font-size: 19px; }
	.chm-access { max-width: 96px; padding-inline: 7px; font-size: 11px; }
	.chm-search { min-width: 0; }
}

@media (max-width: 340px) {
	.chm-access { width: 44px; padding: 0; justify-content: center; }
	.chm-access span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
	.chm-page *, .chm-page *::before, .chm-page *::after { transition: none !important; }
	article:hover .chm-thumb img, .chm-ver-grid a:hover, a.chm-service:hover .chm-icon { transform: none; }
}

@media print {
	.chm-topbar, .chm-search, .chm-brandbar__actions, .chm-hero__wave { display: none; }
}
