/*
Theme Name: Veredinha 2026
Theme URI: https://novo.veredinha.mg.gov.br
Author: Prefeitura Municipal de Veredinha
Description: Tema institucional moderno para o portal da Prefeitura de Veredinha / MG.
Version: 0.2.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
License: GPL v2 or later
Text Domain: veredinha-2026
*/

:root {
  --primary: #1E40AF;
  --primary-dark: #0F1E4D;
  --primary-light: #3B82F6;
  --primary-soft: #DBEAFE;
  --accent: #FBBF24;
  --accent-dark: #D97706;
  --green: #16A34A;
  --green-soft: #DCFCE7;
  --red: #DC2626;
  --red-soft: #FEE2E2;
  --purple: #7C3AED;
  --purple-soft: #EDE9FE;
  --orange: #EA580C;
  --orange-soft: #FFEDD5;
  --teal: #0D9488;
  --teal-soft: #CCFBF1;

  --bg: #ffffff;
  --bg-alt: #F8FAFC;
  --bg-dark: #0B1124;
  --text: #0F172A;
  --text-muted: #475569;
  --text-light: #94A3B8;
  --border: #E2E8F0;

  --radius: 12px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --shadow-sm: 0 1px 3px rgba(15,23,42,.06);
  --shadow: 0 8px 24px rgba(15,23,42,.08);
  --shadow-lg: 0 30px 60px rgba(15,23,42,.18);

  --container: 1240px;
  --header-h: 88px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem; line-height: 1.55;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { color: var(--text); line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.65rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg-dark); color: #fff; }
.section--dark h2 { color: #fff; }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; margin-bottom: 44px; }
.section__title { margin: 0; }
.section__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 12px;
}
.section__eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--accent); display: inline-block; }
.section--dark .section__eyebrow { color: var(--accent); }
.section__sub { color: var(--text-muted); margin: 0; font-size: 1.05rem; max-width: 640px; }
.section--dark .section__sub { color: rgba(255,255,255,.7); }
.section__link { font-weight: 700; color: var(--primary); white-space: nowrap; font-size: .95rem; }
.section__link::after { content: ' →'; transition: transform .2s; display: inline-block; margin-left: 4px; }
.section__link:hover::after { transform: translateX(4px); }
.section--dark .section__link { color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  border: 0; cursor: pointer; transition: all .2s; text-decoration: none;
}
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--accent { background: var(--accent); color: var(--bg-dark); }
.btn--accent:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--ghost { background: rgba(255,255,255,.14); color: #fff; backdrop-filter: blur(6px); border: 1.5px solid rgba(255,255,255,.32); }
.btn--ghost:hover { background: rgba(255,255,255,.24); color: #fff; }
.btn--outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn--outline:hover { background: var(--primary); color: #fff; }

/* ============ HEADER ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.site-header__top {
  background: var(--primary-dark); color: rgba(255,255,255,.85);
  font-size: .82rem; padding: 8px 0;
}
.site-header__top-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.site-header__top a { color: #fff; }
.site-header__top a:hover { color: var(--accent); }
.site-header__top-left { display: flex; gap: 24px; flex-wrap: wrap; }
.site-header__top-left span { display: inline-flex; align-items: center; gap: 6px; }
.site-header__top-right { display: flex; gap: 16px; }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}
.site-brand { display: flex; align-items: center; gap: 14px; color: var(--text); }
.site-brand img { height: 64px; width: auto; }
.site-brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.site-brand__eyebrow { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }
.site-brand__name { font-size: 1.15rem; font-weight: 800; color: var(--primary); letter-spacing: -.01em; }
.site-brand__tag { font-size: .72rem; color: var(--text-muted); font-style: italic; }

.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  display: inline-block; padding: 10px 14px; color: var(--text);
  font-weight: 500; font-size: .92rem; border-radius: 8px;
}
.main-nav a:hover { background: var(--primary-soft); color: var(--primary); }
.main-nav .nav-cta { background: var(--accent); color: var(--bg-dark); margin-left: 10px; padding: 10px 20px; font-weight: 700; border-radius: 999px; }
.main-nav .nav-cta:hover { background: var(--accent-dark); color: #fff; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: .2s; }

/* ============ HERO ============ */
.hero {
  position: relative; overflow: hidden; color: #fff;
  min-height: 720px;
  display: flex; flex-direction: column; justify-content: center;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  transform: scale(1.05);
}
.hero__bg::before {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(15,30,77,.94) 0%, rgba(30,64,175,.78) 45%, rgba(59,130,246,.45) 100%);
}
.hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 32px 32px;
}
.hero__inner { position: relative; z-index: 2; padding: 80px 0 120px; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.24);
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #fff; backdrop-filter: blur(8px); margin-bottom: 28px;
}
.hero__eyebrow .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(251,191,36,.25); animation: pulse 2s infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(251,191,36,.25); }
  50% { box-shadow: 0 0 0 10px rgba(251,191,36,.08); }
}
.hero__title {
  color: #fff; max-width: 880px;
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  font-weight: 800; letter-spacing: -.025em;
  margin: 0 0 22px;
  text-shadow: 0 4px 24px rgba(0,0,0,.2);
}
.hero__title span { color: var(--accent); }
.hero__sub { max-width: 640px; font-size: 1.18rem; color: rgba(255,255,255,.92); margin: 0 0 36px; line-height: 1.55; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero__search {
  display: flex; gap: 0; max-width: 580px;
  background: #fff; border-radius: 999px; padding: 8px;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
  margin-bottom: 48px;
}
.hero__search input {
  flex: 1; border: 0; outline: 0; padding: 14px 24px; border-radius: 999px;
  font-size: 1rem; color: var(--text); background: transparent;
}
.hero__search button {
  background: var(--primary); color: #fff; border: 0; padding: 14px 28px;
  border-radius: 999px; font-weight: 700; cursor: pointer; transition: background .2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.hero__search button:hover { background: var(--primary-dark); }

.hero__stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px; max-width: 820px;
}
.hero__stat {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius); padding: 20px 22px; backdrop-filter: blur(12px);
  transition: all .2s;
}
.hero__stat:hover { background: rgba(255,255,255,.14); transform: translateY(-3px); }
.hero__stat strong { display: block; font-size: 1.85rem; color: #fff; font-weight: 800; letter-spacing: -.02em; }
.hero__stat span { font-size: .82rem; color: rgba(255,255,255,.72); display: flex; align-items: center; gap: 6px; }

/* ============ QUICK SERVICES ============ */
.services { padding: 96px 0 64px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.service-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  padding: 28px 24px;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); color: var(--text);
  transition: all .25s;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--c, var(--primary)); transform: scaleX(0); transform-origin: left;
  transition: transform .3s;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--c, var(--primary-light)); }
.service-card__icon {
  width: 52px; height: 52px; display: grid; place-items: center;
  background: var(--cs, var(--primary-soft)); color: var(--c, var(--primary));
  border-radius: 14px;
  transition: all .3s;
}
.service-card:hover .service-card__icon { background: var(--c, var(--primary)); color: #fff; transform: rotate(-6deg) scale(1.06); }
.service-card h3 { font-size: 1.02rem; margin: 0; color: inherit; }
.service-card p { font-size: .87rem; color: var(--text-muted); margin: 0; }
.service-card[data-c="blue"]    { --c: var(--primary);  --cs: var(--primary-soft); }
.service-card[data-c="green"]   { --c: var(--green);    --cs: var(--green-soft); }
.service-card[data-c="orange"]  { --c: var(--orange);   --cs: var(--orange-soft); }
.service-card[data-c="purple"]  { --c: var(--purple);   --cs: var(--purple-soft); }
.service-card[data-c="red"]     { --c: var(--red);      --cs: var(--red-soft); }
.service-card[data-c="teal"]    { --c: var(--teal);     --cs: var(--teal-soft); }

/* ============ FULL-WIDTH BANNER ============ */
.banner-full {
  position: relative; overflow: hidden;
  min-height: 460px; color: #fff;
  display: flex; align-items: center;
  margin: 32px 0;
}
.banner-full__bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
}
.banner-full__bg::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(95deg, rgba(15,30,77,.92) 30%, rgba(15,30,77,.55) 70%, transparent 100%);
}
.banner-full__inner { position: relative; z-index: 2; max-width: 620px; padding: 64px 0; }
.banner-full h2 { color: #fff; margin: 16px 0; }
.banner-full p { color: rgba(255,255,255,.88); font-size: 1.1rem; max-width: 540px; }

/* ============ NEWS ============ */
.news-mosaic {
  display: grid; gap: 24px;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.news-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; background: #fff;
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  color: var(--text); transition: all .25s;
  min-height: 280px;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--text); }
.news-card--hero { grid-row: 1 / 3; min-height: 580px; color: #fff; border: 0; }
.news-card--hero .news-card__media { flex: 1; }
.news-card--hero .news-card__body { position: absolute; bottom: 0; left: 0; right: 0; padding: 32px; background: linear-gradient(to top, rgba(11,17,36,.95) 0%, rgba(11,17,36,.7) 50%, transparent 100%); }
.news-card--hero .news-card__title { color: #fff; font-size: 1.6rem; }
.news-card--hero .news-card__excerpt { color: rgba(255,255,255,.85); }
.news-card--hero .news-card__date { color: rgba(255,255,255,.7); }
.news-card__media {
  aspect-ratio: 16/9;
  background:
    linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  background-size: cover; background-position: center;
  position: relative;
}
.news-card__cat {
  position: absolute; top: 14px; left: 14px;
  background: #fff; color: var(--primary);
  font-size: .7rem; font-weight: 800;
  padding: 6px 12px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .06em;
  box-shadow: var(--shadow-sm);
}
.news-card__body { padding: 22px 24px 26px; }
.news-card__date { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--text-muted); margin-bottom: 10px; }
.news-card__title { font-size: 1.1rem; line-height: 1.3; margin: 0 0 8px; font-weight: 700; }
.news-card__excerpt { font-size: .9rem; color: var(--text-muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ============ SECRETARIAS ============ */
.dep-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.dep-card {
  display: flex; align-items: center; gap: 16px; padding: 22px 24px;
  background: #fff; border-radius: var(--radius);
  border: 1px solid var(--border);
  color: var(--text); transition: all .25s; position: relative; overflow: hidden;
}
.dep-card::after {
  content: '→'; position: absolute; right: 22px; opacity: 0;
  color: var(--c, var(--primary)); font-weight: 700; transition: all .25s;
  transform: translateX(-8px);
}
.dep-card:hover { border-color: var(--c, var(--primary)); transform: translateY(-3px); color: var(--text); box-shadow: var(--shadow); padding-right: 40px; }
.dep-card:hover::after { opacity: 1; transform: translateX(0); }
.dep-card__icon {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center; background: var(--cs, var(--primary-soft)); color: var(--c, var(--primary));
  transition: all .3s;
}
.dep-card:hover .dep-card__icon { background: var(--c, var(--primary)); color: #fff; transform: scale(1.06); }
.dep-card__name { font-size: 1rem; font-weight: 700; color: inherit; }
.dep-card[data-c="green"]   { --c: var(--green);   --cs: var(--green-soft); }
.dep-card[data-c="orange"]  { --c: var(--orange);  --cs: var(--orange-soft); }
.dep-card[data-c="purple"]  { --c: var(--purple);  --cs: var(--purple-soft); }
.dep-card[data-c="red"]     { --c: var(--red);     --cs: var(--red-soft); }
.dep-card[data-c="teal"]    { --c: var(--teal);    --cs: var(--teal-soft); }
.dep-card[data-c="blue"]    { --c: var(--primary); --cs: var(--primary-soft); }
.dep-card[data-c="accent"]  { --c: var(--accent-dark); --cs: #FEF3C7; }

/* ============ A CIDADE ============ */
.city-about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.city-about__media {
  position: relative;
  aspect-ratio: 4/3; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.city-about__media img { width: 100%; height: 100%; object-fit: cover; }
.city-about__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(220deg, transparent 60%, rgba(30,64,175,.25));
}
.city-about__media-tag {
  position: absolute; top: 20px; left: 20px;
  background: rgba(255,255,255,.94); backdrop-filter: blur(8px);
  padding: 8px 16px; border-radius: 999px;
  font-size: .78rem; font-weight: 700; color: var(--primary);
  letter-spacing: .04em;
}
.city-about__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 28px 0; }
.city-about__stat {
  background: #fff; border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  padding: 18px 20px; border-radius: 10px;
}
.city-about__stat strong { display: block; font-size: 1.65rem; color: var(--primary); font-weight: 800; }
.city-about__stat span { font-size: .85rem; color: var(--text-muted); }

/* ============ GALERIA MOSAIC ============ */
.gallery {
  display: grid; gap: 16px;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 280px 280px;
}
.gallery__item {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  cursor: pointer;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,17,36,.55), transparent 60%);
}
.gallery__caption {
  position: absolute; bottom: 20px; left: 22px; z-index: 2; color: #fff;
  font-weight: 700; font-size: 1rem;
}
.gallery__item--lg { grid-column: span 2; grid-row: span 2; }
.gallery__item--md { grid-column: span 1; }

/* ============ CTA banner ============ */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: #fff; padding: 72px 0; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; top: -50%; right: -10%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(251,191,36,.18), transparent 60%);
}
.cta-banner__inner {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
  position: relative; z-index: 2;
}
.cta-banner h2 { color: #fff; margin: 0 0 14px; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.cta-banner p { color: rgba(255,255,255,.88); font-size: 1.1rem; margin: 0; max-width: 540px; }
.cta-banner__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-end; }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--bg-dark); color: rgba(255,255,255,.78); padding: 72px 0 0;
  position: relative; overflow: hidden;
}
.site-footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--green), var(--red), var(--purple));
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 48px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.site-footer h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 20px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; font-size: .9rem; }
.site-footer a { color: rgba(255,255,255,.72); transition: color .2s; }
.site-footer a:hover { color: var(--accent); }
.footer-brand img { height: 70px; margin-bottom: 18px; filter: brightness(0) invert(1); opacity: .92; }
.footer-brand p { font-size: .92rem; max-width: 340px; color: rgba(255,255,255,.65); margin: 0 0 16px; }
.footer-social { display: flex; gap: 10px; margin-top: 8px; }
.footer-social a {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
}
.footer-social a:hover { background: var(--accent); color: var(--bg-dark); border-color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 28px 0; font-size: .82rem; color: rgba(255,255,255,.5); }

/* ============ PAGE HERO (interna) ============ */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff; padding: 56px 0 64px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 26px 26px;
}
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; margin: 8px 0 12px; font-size: clamp(2rem, 3.5vw, 2.75rem); }
.page-hero p { color: rgba(255,255,255,.85); max-width: 760px; font-size: 1.05rem; margin: 0; }
.breadcrumb { color: rgba(255,255,255,.75); font-size: .85rem; margin: 0 0 16px; }
.breadcrumb a { color: rgba(255,255,255,.9); }
.breadcrumb a:hover { color: var(--accent); }

/* ============ LICITAÇÕES ============ */
.licit-filters {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px 24px;
  box-shadow: var(--shadow-sm); margin-bottom: 32px;
}
.licit-filters__row {
  display: grid; grid-template-columns: 1.2fr 1.2fr .8fr 1.6fr auto;
  gap: 16px; align-items: end;
}
.licit-filters label { display: block; }
.licit-filters span { display: block; font-size: .78rem; font-weight: 700; color: var(--text-muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .08em; }
.licit-filters select,
.licit-filters input[type="search"] {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: 10px;
  font-size: .92rem; background: #fff; color: var(--text);
  outline: 0; transition: border-color .2s, box-shadow .2s;
}
.licit-filters select:focus,
.licit-filters input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.licit-filters__actions { display: flex; gap: 8px; align-items: center; }

.licit-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; }
.licit-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.licit-table th {
  background: var(--bg-alt); padding: 14px 18px; text-align: left;
  font-size: .76rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-muted); font-weight: 700; border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.licit-table td { padding: 16px 18px; border-bottom: 1px solid var(--border); vertical-align: top; }
.licit-table tr:last-child td { border-bottom: 0; }
.licit-table tr:hover td { background: #FAFBFD; }
.licit-table__title { color: var(--text); font-weight: 600; }
.licit-table__title:hover { color: var(--primary); }
.licit-table small { display: block; color: var(--text-muted); font-size: .8rem; margin-top: 2px; }
.licit-table__arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary); font-weight: 700;
  transition: all .2s;
}
.licit-table__arrow:hover { background: var(--primary); color: #fff; transform: translateX(3px); }

.licit-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 999px;
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  background: var(--bg-alt); color: var(--text-muted);
}
.licit-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.licit-badge--lg { font-size: .82rem; padding: 6px 16px; }
.licit-badge[data-sit="aberta"]            { background: #ECFDF5; color: #047857; }
.licit-badge[data-sit="em-andamento"]      { background: #EFF6FF; color: #1E40AF; }
.licit-badge[data-sit="em-julgamento"]     { background: #FEF3C7; color: #A16207; }
.licit-badge[data-sit="suspensa"]          { background: #FEE2E2; color: #B91C1C; }
.licit-badge[data-sit="encerrada"]         { background: #F1F5F9; color: #475569; }
.licit-badge[data-sit="adjudicada"]        { background: #EDE9FE; color: #6D28D9; }
.licit-badge[data-sit="homologada"]        { background: #DCFCE7; color: #15803D; }
.licit-badge[data-sit="cancelada"]         { background: #FEE2E2; color: #991B1B; }
.licit-badge[data-sit="deserta"]           { background: #FED7AA; color: #C2410C; }
.licit-badge[data-sit="fracassada"]        { background: #FECACA; color: #991B1B; }

.licit-pagination { display: flex; justify-content: center; gap: 4px; margin-top: 32px; }
.licit-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 10px; border-radius: 10px;
  border: 1px solid var(--border); color: var(--text); font-weight: 600;
}
.licit-pagination .page-numbers.current { background: var(--primary); color: #fff; border-color: var(--primary); }
.licit-pagination .page-numbers:hover { border-color: var(--primary); color: var(--primary); }
.licit-pagination .page-numbers.current:hover { color: #fff; }

.licit-empty { text-align: center; padding: 56px 24px; background: var(--bg-alt); border-radius: var(--radius-lg); }
.licit-empty h3 { color: var(--text-muted); }

.licit-single { display: grid; grid-template-columns: 1fr 360px; gap: 40px; }
.licit-single__body h2 { margin-top: 32px; font-size: 1.35rem; }
.licit-single__body h2:first-child { margin-top: 0; }
.article-content { font-size: 1.05rem; line-height: 1.7; }
.article-content img { border-radius: 12px; margin: 14px 0; box-shadow: var(--shadow-sm); }

.licit-files { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.licit-files a {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  color: var(--text); transition: all .2s;
}
.licit-files a:hover { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); transform: translateX(3px); }
.licit-files__icon {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px;
  background: var(--red-soft); color: var(--red);
  display: grid; place-items: center;
}
.licit-files a:hover .licit-files__icon { background: var(--primary); color: #fff; }
.licit-files__label { flex: 1; font-weight: 600; }
.licit-files__action { font-size: .85rem; color: var(--text-muted); font-weight: 600; }
.licit-files a:hover .licit-files__action { color: var(--primary); }

.licit-info {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px 24px;
}
.licit-info + .licit-info { margin-top: 16px; }
.licit-info h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin: 0 0 14px; }
.licit-info dl { margin: 0; display: grid; gap: 12px; }
.licit-info dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); font-weight: 600; }
.licit-info dd { margin: 2px 0 0; font-size: .95rem; font-weight: 600; color: var(--text); }

/* ============ DOCUMENTOS ============ */
.doc-cats {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px; margin-bottom: 36px;
}
.doc-cat-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 22px; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  color: var(--text); transition: all .2s;
}
.doc-cat-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow); color: var(--primary); }
.doc-cat-card__icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--primary-soft); color: var(--primary);
  display: grid; place-items: center;
  transition: all .25s;
}
.doc-cat-card:hover .doc-cat-card__icon { background: var(--primary); color: #fff; }
.doc-cat-card__name { font-weight: 700; font-size: 1rem; color: inherit; }
.doc-cat-card__count { font-size: .82rem; color: var(--text-muted); }
.doc-cat-card:hover .doc-cat-card__count { color: rgba(30,64,175,.7); }

.doc-table tr td:last-child { text-align: center; }
.doc-download {
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .15s;
}
.doc-download:hover { transform: scale(1.08); }
.doc-ext {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 6px 10px; border-radius: 8px;
  font-size: .68rem; font-weight: 800; letter-spacing: .04em;
  background: var(--bg-alt); color: var(--text-muted);
  min-width: 48px;
}
.doc-ext--pdf { background: #FEE2E2; color: #B91C1C; }
.doc-ext--zip { background: #FEF3C7; color: #A16207; }
.doc-ext--doc, .doc-ext--docx { background: #DBEAFE; color: #1E40AF; }
.doc-ext--xls, .doc-ext--xlsx { background: #DCFCE7; color: #15803D; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .news-mosaic { grid-template-columns: 1fr 1fr; }
  .news-card--hero { grid-column: 1 / 3; grid-row: auto; min-height: 380px; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
  .gallery__item--lg { grid-column: span 2; grid-row: auto; aspect-ratio: 16/9; }
}
@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 16px; border-bottom: 1px solid var(--border);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: all .2s;
  }
  .main-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .city-about { grid-template-columns: 1fr; gap: 40px; }
  .cta-banner__inner { grid-template-columns: 1fr; }
  .cta-banner__actions { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-header__top { display: none; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero { min-height: 620px; }
  .hero__inner { padding: 56px 0 80px; }
  .news-mosaic { grid-template-columns: 1fr; }
  .news-card--hero { grid-column: auto; min-height: 320px; }
  .gallery { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .site-brand__text { display: none; }
  .site-brand img { height: 52px; }
  .licit-filters__row { grid-template-columns: 1fr 1fr; }
  .licit-filters__search { grid-column: 1 / -1; }
  .licit-filters__actions { grid-column: 1 / -1; }
  .licit-single { grid-template-columns: 1fr; }
  .licit-table th:nth-child(3),
  .licit-table td:nth-child(3),
  .licit-table th:nth-child(4),
  .licit-table td:nth-child(4) { display: none; }
}

/* ============ NOTÍCIA / SINGLE ============ */
.post-hero { position: relative; overflow: hidden; color: #fff; padding: 76px 0; background: var(--primary-dark); }
.post-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.04); }
.post-hero__bg::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,17,36,.95) 0%, rgba(11,17,36,.62) 55%, rgba(11,17,36,.45) 100%);
}
.post-hero .container { position: relative; z-index: 2; }
.post-hero h1 { color: #fff; max-width: 920px; margin: 14px 0 18px; text-shadow: 0 4px 24px rgba(0,0,0,.28); }
.post-cat-badge {
  display: inline-block; background: var(--accent); color: var(--bg-dark);
  font-weight: 800; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em;
  padding: 6px 14px; border-radius: 999px;
}
.post-hero__meta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; color: rgba(255,255,255,.85); font-size: .9rem; }
.post-hero__meta span { display: inline-flex; align-items: center; gap: 7px; }

.share-btns { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 44px 0 0; padding-top: 28px; border-top: 1px solid var(--border); }
.share-btns > span { font-weight: 700; color: var(--text-muted); font-size: .85rem; }
.share-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px;
  border-radius: 999px; border: 1px solid var(--border); background: #fff; color: var(--text);
  font-weight: 600; font-size: .85rem; font-family: inherit; cursor: pointer; transition: all .2s;
}
.share-btn:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.share-btn--wa:hover { border-color: #25D366; color: #128C7E; }
.share-btn.is-copied { border-color: var(--green); color: var(--green); }

.related-grid,
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.licit-info dl a { color: var(--primary); font-weight: 600; }
@media (max-width: 900px) { .related-grid, .news-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .related-grid, .news-grid { grid-template-columns: 1fr; } }

/* ============ e-SIC ============ */
.sic-layout { display: grid; grid-template-columns: 1fr 340px; gap: 44px; align-items: start; }
.sic-main h2 { font-size: 1.6rem; margin: 0 0 8px; }
.sic-lead { color: var(--text-muted); margin: 0 0 22px; }
.sic-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.sic-form { display: grid; gap: 16px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.sic-form--inline { margin-top: 16px; }
.sic-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sic-field { display: block; }
.sic-field > span { display: block; font-size: .8rem; font-weight: 700; color: var(--text-muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; }
.sic-field input, .sic-field select, .sic-field textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px;
  font-size: .95rem; font-family: inherit; color: var(--text); background: #fff; outline: 0;
  transition: border-color .2s, box-shadow .2s;
}
.sic-field input:focus, .sic-field select:focus, .sic-field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.sic-field textarea { resize: vertical; }
.sic-check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--text-muted); line-height: 1.5; }
.sic-check input { margin-top: 3px; flex-shrink: 0; }

.sic-alert { padding: 16px 20px; border-radius: 12px; margin-bottom: 24px; font-size: .95rem; }
.sic-alert--ok { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.sic-alert--err { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }

.sic-result { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.sic-result__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.sic-result__prot { font-weight: 800; font-size: 1.15rem; color: var(--primary); }
.sic-result__meta { display: flex; gap: 32px; margin: 18px 0 0; }
.sic-result__meta dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); font-weight: 700; }
.sic-result__meta dd { margin: 2px 0 0; font-weight: 600; }
.sic-result__resp { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.sic-result__resp h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin: 0 0 8px; }

.sic-status { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--bg-alt); color: var(--text-muted); white-space: nowrap; }
.sic-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.sic-status--recebido   { background: #EFF6FF; color: #1E40AF; }
.sic-status--em-analise { background: #FEF3C7; color: #A16207; }
.sic-status--prorrogado { background: #FFEDD5; color: #C2410C; }
.sic-status--respondido { background: #DCFCE7; color: #15803D; }
.sic-status--indeferido { background: #FEE2E2; color: #B91C1C; }

.sic-steps { margin: 0; padding-left: 18px; font-size: .92rem; color: var(--text-muted); line-height: 1.6; }
.sic-steps li { margin-bottom: 8px; }

@media (max-width: 980px) { .sic-layout { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 560px) { .sic-form__row { grid-template-columns: 1fr; } }

/* ============ e-SIC (melhorias 2026-05-27) ============ */
.sic-help { display: block; font-size: .78rem; color: var(--text-muted); margin-top: 4px; }
.sic-field--err input, .sic-field--err select, .sic-field--err textarea { border-color: #dc2626; box-shadow: 0 0 0 3px #fee2e2; }
.sic-field--err > span:first-child { color: #b91c1c; }
.sic-check--err { color: #b91c1c; }
.sic-check--err input { outline: 2px solid #dc2626; outline-offset: 2px; }
.sic-recurso summary { padding: 12px 16px; background: #FFEDD5; border-radius: 10px; border: 1px solid #FDBA74; }
.sic-recurso[open] summary { background: #FFE4C7; }

/* Página estatísticas */
.sic-kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 32px; }
.sic-kpi { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 18px; box-shadow: var(--shadow-sm); text-align: center; display: flex; flex-direction: column; gap: 6px; }
.sic-kpi__n { font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1; }
.sic-kpi span:last-child { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); font-weight: 600; }

.sic-stats__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.sic-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.sic-card h2 { font-size: 1.15rem; margin: 0 0 18px; }
.sic-card--full { grid-column: 1 / -1; }

.sic-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sic-bars li { display: grid; grid-template-columns: 140px 1fr 50px; gap: 12px; align-items: center; font-size: .9rem; }
.sic-bars__l { color: var(--text-muted); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sic-bars__t { height: 14px; background: var(--bg-alt); border-radius: 999px; overflow: hidden; }
.sic-bars__f { display: block; height: 100%; background: var(--primary); border-radius: 999px; transition: width .4s ease; }
.sic-bars__n { font-weight: 700; text-align: right; }

.sic-donut { width: 180px; height: 180px; border-radius: 50%; margin: 0 auto 18px; position: relative; }
.sic-donut::after { content: ''; position: absolute; inset: 28px; background: #fff; border-radius: 50%; }
.sic-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: .88rem; }
.sic-legend li { display: grid; grid-template-columns: 14px 1fr auto; gap: 10px; align-items: center; }
.sic-legend__sw { width: 12px; height: 12px; border-radius: 3px; }
.sic-legend__n { font-weight: 700; color: var(--text-muted); }

@media (max-width: 980px) {
  .sic-kpis { grid-template-columns: repeat(2, 1fr); }
  .sic-stats__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .sic-kpis { grid-template-columns: 1fr 1fr; }
  .sic-bars li { grid-template-columns: 90px 1fr 40px; font-size: .82rem; }
}

/* ============ HERO — scroll indicator ============ */
.hero__scroll {
  position: absolute; left: 50%; bottom: 64px;
  transform: translateX(-50%);
  z-index: 3;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.78);
  border-radius: 50%;
  transition: color .25s ease, background .25s ease, transform .25s ease;
}
.hero__scroll:hover, .hero__scroll:focus-visible {
  color: #fff; background: rgba(255,255,255,.12); outline: none;
}
.hero__scroll svg { animation: heroScrollBounce 1.8s ease-in-out infinite; }
@keyframes heroScrollBounce {
  0%, 100% { transform: translateY(0); opacity: .85; }
  50%      { transform: translateY(6px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__scroll svg { animation: none; }
}
html { scroll-behavior: smooth; }

/* ============ HERO — polimento visual (2026-05-27) ============ */

/* Dot pattern mais discreto: opacidade menor + grão maior */
.hero__bg::after {
  background-image: radial-gradient(circle, rgba(255,255,255,.035) 1px, transparent 1.4px);
  background-size: 40px 40px;
}

/* Ken Burns: zoom infinito sutil no background */
.hero__bg { animation: heroKenBurns 24s ease-in-out infinite alternate; }
@keyframes heroKenBurns {
  0%   { transform: scale(1.05) translate(0, 0); }
  100% { transform: scale(1.12) translate(-1.2%, -1%); }
}

/* Spotlight radial — adiciona profundidade atrás do conteúdo */
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 80% 60% at 28% 42%, rgba(251,191,36,.18) 0%, rgba(251,191,36,0) 55%);
}

/* Título: gradiente + glow no span amarelo */
.hero__title span {
  background: linear-gradient(120deg, #fde68a 0%, #fbbf24 45%, #f59e0b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: 0 0 28px rgba(251,191,36,.35);
  filter: drop-shadow(0 2px 12px rgba(251,191,36,.25));
}

/* Search bar — interação visual no foco */
.hero__search { transition: transform .25s ease, box-shadow .25s ease; }
.hero__search:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 24px 60px rgba(0,0,0,.32), 0 0 0 4px rgba(251,191,36,.35);
}

/* Stats: barrinha de acento + tabular-nums + leve gradient no card */
.hero__stat {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,.05) 100%);
}
.hero__stat::before {
  content: ''; position: absolute; top: 0; left: 22px; width: 28px; height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--accent), #fde68a);
}
.hero__stat strong { font-variant-numeric: tabular-nums; }
.hero__stat:hover::before { width: 44px; transition: width .25s ease; }

/* Wave divider no rodapé da hero */
.hero__wave {
  position: absolute; left: 0; right: 0; bottom: -1px;
  width: 100%; height: 50px; z-index: 2;
  pointer-events: none;
  color: var(--bg);
}
.hero__wave svg { width: 100%; height: 100%; display: block; }

/* Entrada em cascata */
.hero__eyebrow,
.hero__title,
.hero__sub,
.hero__search,
.hero__actions,
.hero__stats {
  opacity: 0; transform: translateY(18px);
  animation: heroFadeUp .9s cubic-bezier(.22,.61,.36,1) forwards;
}
.hero__eyebrow { animation-delay: .05s; }
.hero__title   { animation-delay: .15s; }
.hero__sub     { animation-delay: .28s; }
.hero__search  { animation-delay: .40s; }
.hero__actions { animation-delay: .50s; }
.hero__stats   { animation-delay: .60s; }
@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__bg { animation: none; }
  .hero__eyebrow, .hero__title, .hero__sub,
  .hero__search, .hero__actions, .hero__stats {
    opacity: 1; transform: none; animation: none;
  }
  .hero__title span { text-shadow: none; filter: none; }
}

/* ============ Acessibilidade — skip links, barra fixa, alto contraste, fonte ============ */

/* Skip links: invisíveis até foco */
.skip-link {
  position: absolute; left: 8px; top: 8px;
  z-index: 10000;
  background: var(--accent); color: var(--primary-dark);
  padding: 10px 16px; border-radius: 8px;
  font-weight: 700; font-size: .9rem;
  transform: translateY(-200%);
  transition: transform .2s ease;
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}
.skip-link:focus { transform: translateY(0); outline: 3px solid var(--primary-dark); outline-offset: 2px; }
.skip-link kbd {
  background: rgba(15,30,77,.18); color: var(--primary-dark);
  padding: 1px 6px; border-radius: 4px; font-size: .75rem;
}

/* Barra de acessibilidade */
.a11y-bar {
  background: #0F1E4D; color: #fff;
  font-size: .82rem;
  position: relative; z-index: 200;
}
.a11y-bar__inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
  padding-top: 6px; padding-bottom: 6px;
}
.a11y-bar__skips { display: flex; gap: 4px; flex-wrap: wrap; }
.a11y-bar__skips a {
  color: rgba(255,255,255,.85); padding: 4px 10px; border-radius: 6px;
  text-decoration: none; font-weight: 600;
  transition: background .15s, color .15s;
}
.a11y-bar__skips a:hover, .a11y-bar__skips a:focus-visible {
  background: rgba(255,255,255,.12); color: #fff;
}
.a11y-bar__skips a span { opacity: .55; font-weight: 500; margin-left: 4px; }

.a11y-bar__tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.a11y-fz { display: inline-flex; gap: 2px; }
.a11y-btn {
  background: rgba(255,255,255,.08); color: #fff;
  border: 1px solid rgba(255,255,255,.16);
  padding: 4px 12px; border-radius: 6px;
  font: inherit; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.a11y-btn:hover, .a11y-btn:focus-visible { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.32); }
.a11y-btn[aria-pressed="true"] { background: var(--accent); color: var(--primary-dark); border-color: var(--accent); }
.a11y-fz .a11y-btn { padding: 4px 10px; min-width: 36px; justify-content: center; }
.a11y-fz .a11y-btn:first-child { border-radius: 6px 2px 2px 6px; }
.a11y-fz .a11y-btn:last-child  { border-radius: 2px 6px 6px 2px; }
.a11y-fz .a11y-btn:not(:first-child):not(:last-child) { border-radius: 2px; }

/* Foco visível global forte */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.btn:focus-visible, .a11y-btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* Escala de fonte via data-fz no <html> */
html[data-fz="sm"] { font-size: 87.5%; }
html[data-fz="lg"] { font-size: 112.5%; }
html[data-fz="xl"] { font-size: 125%; }

/* Alto contraste — sobrescreve variáveis de tema */
html[data-contrast="high"] {
  --bg: #000;
  --bg-alt: #000;
  --bg-dark: #000;
  --text: #fff;
  --text-muted: #fff;
  --text-light: #ccc;
  --border: #fff;
  --primary: #ffff00;
  --primary-dark: #ffff00;
  --primary-light: #ffff00;
  --primary-soft: #1a1a00;
  --accent: #ffff00;
  --accent-dark: #ffff00;
  --green: #00ff00;
  --green-soft: #003300;
  --red: #ff5555;
  --red-soft: #330000;
  --purple: #ff66ff;
  --purple-soft: #220033;
  --orange: #ffaa00;
  --orange-soft: #2a1a00;
  --teal: #00ffff;
  --teal-soft: #002a2a;
  --shadow-sm: none; --shadow: none; --shadow-lg: none;
}
html[data-contrast="high"] body,
html[data-contrast="high"] .site-header,
html[data-contrast="high"] .site-footer,
html[data-contrast="high"] .section,
html[data-contrast="high"] .hero,
html[data-contrast="high"] .services,
html[data-contrast="high"] .sic-card,
html[data-contrast="high"] .sic-kpi,
html[data-contrast="high"] .sic-result,
html[data-contrast="high"] .sic-form,
html[data-contrast="high"] .licit-info,
html[data-contrast="high"] .service-card,
html[data-contrast="high"] .news-card,
html[data-contrast="high"] .hero__stat,
html[data-contrast="high"] input,
html[data-contrast="high"] select,
html[data-contrast="high"] textarea {
  background: #000 !important;
  color: #fff !important;
  border-color: #fff !important;
}
html[data-contrast="high"] a,
html[data-contrast="high"] a:hover,
html[data-contrast="high"] h1,
html[data-contrast="high"] h2,
html[data-contrast="high"] h3,
html[data-contrast="high"] h4 { color: #ffff00 !important; }
html[data-contrast="high"] .hero__bg,
html[data-contrast="high"] .hero__bg::before,
html[data-contrast="high"] .hero__bg::after,
html[data-contrast="high"] .hero::before,
html[data-contrast="high"] .hero__wave svg { display: none !important; }
html[data-contrast="high"] .hero { background: #000 !important; min-height: auto; }
html[data-contrast="high"] .hero__title,
html[data-contrast="high"] .hero__title span,
html[data-contrast="high"] .hero__sub { color: #fff !important; text-shadow: none !important; -webkit-text-fill-color: #fff !important; background: none !important; filter: none !important; }
html[data-contrast="high"] .btn { background: #ffff00 !important; color: #000 !important; border: 2px solid #ffff00 !important; }
html[data-contrast="high"] .btn:hover { background: #fff !important; color: #000 !important; }
html[data-contrast="high"] img { opacity: .85; }

/* VLibras: escondido por padrão; mostra apenas se html.vlibras-on; posiciona bottom-right */
html:not(.vlibras-on) div[vw] { display: none !important; }
html.vlibras-on div[vw] { display: block !important; top: auto !important; left: auto !important; right: 10px !important; bottom: 10px !important; z-index: 2147483645 !important; }
html.vlibras-on div[vw].active { margin-top: 10px !important; }

@media (max-width: 760px) {
  .a11y-bar__inner { gap: 4px; padding-top: 4px; padding-bottom: 4px; }
  .a11y-bar__skips a span { display: none; }
  .a11y-btn { padding: 3px 8px; font-size: .75rem; }
  .a11y-vlibras span, .a11y-contrast span { /* já é texto */ }
}

html[data-contrast="high"] .a11y-btn[aria-pressed="true"] { background: #ffff00 !important; color: #000 !important; border-color: #ffff00 !important; }
html[data-contrast="high"] .a11y-bar { background: #000 !important; border-bottom: 1px solid #fff !important; }
html[data-contrast="high"] .a11y-bar__skips a { color: #ffff00 !important; }
html[data-contrast="high"] .a11y-btn { background: #000 !important; color: #fff !important; border: 1px solid #fff !important; }

/* ============ Portal da Transparência — hub ============ */

/* CTA destaque */
.pt-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; text-decoration: none;
  padding: 38px 44px; border-radius: var(--radius-lg);
  margin: 0 0 56px; position: relative; overflow: hidden;
  box-shadow: 0 20px 50px rgba(15,30,77,.25);
  transition: transform .25s ease, box-shadow .25s ease;
}
.pt-cta::before {
  content: ''; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px;
  border-radius: 50%; background: radial-gradient(circle, rgba(251,191,36,.22) 0%, rgba(251,191,36,0) 70%);
  pointer-events: none;
}
.pt-cta:hover { transform: translateY(-3px); box-shadow: 0 28px 60px rgba(15,30,77,.35); color: #fff; }
.pt-cta__eyebrow {
  display: inline-block; background: rgba(251,191,36,.22); color: var(--accent);
  padding: 5px 14px; border-radius: 999px; font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px;
}
.pt-cta h2 { color: #fff; margin: 0 0 10px; font-size: 1.85rem; line-height: 1.15; }
.pt-cta p  { color: rgba(255,255,255,.85); margin: 0; max-width: 640px; font-size: 1.02rem; line-height: 1.55; }
.pt-cta__arrow {
  width: 70px; height: 70px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.24);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s;
}
.pt-cta:hover .pt-cta__arrow { background: var(--accent); color: var(--primary-dark); transform: rotate(-8deg); }

/* Section titles */
.pt-section-title { font-size: 1.55rem; margin: 0 0 6px; }
.pt-section-sub   { color: var(--text-muted); margin: 0 0 26px; }

/* Grid de categorias */
.pt-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.pt-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  box-shadow: var(--shadow-sm);
}
.pt-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--primary-light); }
.pt-card__link { text-decoration: none; color: inherit; display: block; }
.pt-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 14px;
}
.pt-card h3 {
  font-size: 1.08rem; margin: 0 0 6px; color: var(--text);
  display: inline-flex; align-items: center; gap: 6px;
}
.pt-card__ext { opacity: .4; flex-shrink: 0; }
.pt-card p { color: var(--text-muted); margin: 0; font-size: .9rem; line-height: 1.5; }
.pt-card__sub {
  margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid var(--border);
  list-style: none; display: flex; flex-direction: column; gap: 4px;
}
.pt-card__sub a {
  font-size: .85rem; color: var(--text-muted); padding: 2px 0;
  display: block; text-decoration: none; transition: color .15s;
}
.pt-card__sub a:hover { color: var(--primary); }

/* Variações de cor por categoria */
.pt-card--blue   .pt-card__icon { background: #EFF6FF; color: #1E40AF; }
.pt-card--green  .pt-card__icon { background: var(--green-soft); color: var(--green); }
.pt-card--red    .pt-card__icon { background: var(--red-soft); color: var(--red); }
.pt-card--purple .pt-card__icon { background: var(--purple-soft); color: var(--purple); }
.pt-card--orange .pt-card__icon { background: var(--orange-soft); color: var(--orange); }
.pt-card--teal   .pt-card__icon { background: var(--teal-soft); color: var(--teal); }

/* Recursos locais (versão mais compacta) */
.pt-grid--locais { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.pt-local {
  display: block; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; position: relative; transition: transform .2s, box-shadow .2s, border-color .2s;
  box-shadow: var(--shadow-sm);
}
.pt-local::before {
  content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px;
  border-radius: 0 4px 4px 0;
}
.pt-local--blue::before   { background: var(--primary); }
.pt-local--green::before  { background: var(--green); }
.pt-local--red::before    { background: var(--red); }
.pt-local--purple::before { background: var(--purple); }
.pt-local--orange::before { background: var(--orange); }
.pt-local--teal::before   { background: var(--teal); }
.pt-local:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--primary-light); }
.pt-local h3 { font-size: 1rem; margin: 0 0 4px; }
.pt-local p  { color: var(--text-muted); margin: 0; font-size: .88rem; line-height: 1.45; }
.pt-local__arrow {
  position: absolute; right: 18px; top: 18px;
  color: var(--text-light); font-weight: 700; font-size: 1.1rem;
  transition: transform .2s, color .2s;
}
.pt-local:hover .pt-local__arrow { color: var(--primary); transform: translateX(3px); }

/* Base legal */
.pt-base-legal {
  margin-top: 56px; padding: 22px 26px;
  background: var(--bg-alt); border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.pt-base-legal h3 { margin: 0 0 8px; font-size: 1rem; color: var(--primary); }
.pt-base-legal p  { margin: 0; font-size: .92rem; line-height: 1.55; color: var(--text-muted); }

@media (max-width: 760px) {
  .pt-cta { flex-direction: column; align-items: flex-start; padding: 28px; gap: 20px; }
  .pt-cta h2 { font-size: 1.4rem; }
  .pt-cta__arrow { width: 54px; height: 54px; }
}

/* ============ Página /acessibilidade/ ============ */
.ac-toc {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 26px; margin: 0 0 36px;
}
.ac-toc h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin: 0 0 12px; }
.ac-toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.ac-toc a { color: var(--primary); font-weight: 600; }
.ac-toc a::before { content: '→ '; opacity: .5; }

.ac-section { margin: 0 0 44px; scroll-margin-top: 100px; }
.ac-section h2 { font-size: 1.55rem; color: var(--primary); margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--primary-soft); }
.ac-section p { margin: 0 0 14px; line-height: 1.7; }
.ac-section ul { line-height: 1.85; padding-left: 18px; }

.ac-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 20px; }
.ac-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow-sm);
}
.ac-card h3 { font-size: 1.05rem; margin: 0 0 8px; color: var(--primary); }
.ac-card p  { font-size: .92rem; line-height: 1.55; color: var(--text-muted); margin: 0; }
.ac-card kbd {
  background: var(--bg-alt); border: 1px solid var(--border); padding: 1px 6px;
  border-radius: 4px; font-size: .82rem; font-family: ui-monospace, monospace; color: var(--text);
}

.ac-table {
  width: 100%; border-collapse: collapse; margin: 14px 0 0;
  background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.ac-table th, .ac-table td { padding: 12px 18px; text-align: left; border-bottom: 1px solid var(--border); }
.ac-table th { background: var(--bg-alt); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.ac-table tr:last-child td { border-bottom: 0; }
.ac-table kbd {
  background: var(--primary); color: #fff; padding: 3px 9px;
  border-radius: 4px; font-size: .85rem; font-family: ui-monospace, monospace;
  margin: 0 1px;
}

.ac-section--accent {
  background: var(--primary-soft); border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 28px 30px; margin: 44px 0;
}
.ac-section--accent h2 { color: var(--primary-dark); border: 0; padding: 0; margin: 0 0 10px; }
.ac-section--accent p  { color: var(--text); }

.ac-contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 18px; }
.ac-contact {
  background: #fff; padding: 16px 20px; border-radius: var(--radius);
  text-decoration: none; color: inherit;
  border: 1px solid var(--border); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.ac-contact:hover { transform: translateY(-2px); border-color: var(--primary-light); box-shadow: var(--shadow); }
.ac-contact h3 { font-size: 1rem; color: var(--primary); margin: 0 0 4px; }
.ac-contact p  { font-size: .85rem; color: var(--text-muted); margin: 0; line-height: 1.45; }

/* ============ A11y tools dentro do site-header__top (consolidado) ============ */
.a11y-bar { display: none !important; } /* barra antiga fora de uso */
.site-header__top-right .a11y-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.site-header__top-right .a11y-btn {
  font-size: .78rem; padding: 3px 10px; line-height: 1.4;
  background: rgba(255,255,255,.10); color: #fff;
  border: 1px solid rgba(255,255,255,.20); border-radius: 6px;
  cursor: pointer; font-weight: 600;
  display: inline-flex; align-items: center; gap: 5px;
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.site-header__top-right .a11y-btn:hover,
.site-header__top-right .a11y-btn:focus-visible { background: rgba(255,255,255,.20); border-color: rgba(255,255,255,.36); color: #fff; }
.site-header__top-right .a11y-btn[aria-pressed="true"] { background: var(--accent); color: var(--primary-dark); border-color: var(--accent); }
.site-header__top-right .a11y-fz { display: inline-flex; gap: 1px; }
.site-header__top-right .a11y-fz .a11y-btn { padding: 3px 8px; min-width: 32px; justify-content: center; border-radius: 0; }
.site-header__top-right .a11y-fz .a11y-btn:first-child { border-radius: 6px 0 0 6px; }
.site-header__top-right .a11y-fz .a11y-btn:last-child  { border-radius: 0 6px 6px 0; }
.site-header__top-right .a11y-link { background: transparent; border-color: transparent; padding: 3px 6px; }
.site-header__top-right .a11y-link:hover { background: transparent; border-color: transparent; color: var(--accent); text-decoration: underline; }
@media (max-width: 760px) {
  .site-header__top-inner { gap: 6px; padding-top: 4px; padding-bottom: 4px; }
  .site-header__top-left { font-size: .72rem; gap: 12px; }
  .site-header__top-right .a11y-btn { font-size: .72rem; padding: 2px 7px; }
  .site-header__top-right .a11y-fz .a11y-btn { padding: 2px 6px; min-width: 26px; }
  .site-header__top-right .a11y-btn svg { display: none; }
}

/* ==================== GESTÃO MUNICIPAL ==================== */
.gestao-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 880px;
  margin: 0 auto;
}
.gestao-card {
  background: #fff;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 6px rgba(0,0,0,.04);
  transition: transform .25s ease, box-shadow .25s ease;
}
.gestao-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}
.gestao-card__photo {
  aspect-ratio: 4 / 5;
  background: #f3f4f6;
  overflow: hidden;
  position: relative;
}
.gestao-card__photo img,
.gestao-card__photo picture {
  width: 100%;
  height: 100%;
  display: block;
}
.gestao-card__photo img {
  object-fit: cover;
  object-position: center top;
}
.gestao-card__body {
  padding: 22px 22px 26px;
  text-align: center;
  border-top: 4px solid var(--primary, #0a3a82);
}
.gestao-card__role {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent, #e8a500);
  font-weight: 700;
  margin-bottom: 6px;
}
.gestao-card__name {
  font-size: 1.25rem;
  line-height: 1.25;
  margin: 0 0 6px;
  color: var(--primary, #0a3a82);
}
.gestao-card__mandate {
  margin: 0;
  font-size: .9rem;
  color: var(--muted, #6b7280);
}
@media (max-width: 640px) {
  .gestao-grid { grid-template-columns: 1fr; gap: 20px; max-width: 420px; }
  .gestao-card__name { font-size: 1.1rem; }
}

/* ==================== PÁGINA PREFEITURA — CONTATO ==================== */
.prefeitura-contato {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: stretch;
}
.prefeitura-contato__info .section__title { margin-bottom: 24px; }
.prefeitura-contato__list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 18px;
}
.prefeitura-contato__list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  padding: 16px 18px;
}
.prefeitura-contato__list li svg {
  flex-shrink: 0;
  color: var(--primary, #0a3a82);
  margin-top: 2px;
}
.prefeitura-contato__list li strong {
  display: block;
  font-size: .82rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted, #6b7280);
  margin-bottom: 4px;
  font-weight: 700;
}
.prefeitura-contato__list li > div { line-height: 1.5; color: var(--text, #111827); }
.prefeitura-contato__list li a { color: var(--primary, #0a3a82); font-weight: 600; }
.prefeitura-contato__list li a:hover { color: var(--accent, #e8a500); }
.prefeitura-contato__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.prefeitura-contato__map {
  border-radius: 16px;
  overflow: hidden;
  min-height: 380px;
  border: 1px solid var(--border, #e5e7eb);
  background: #f3f4f6;
}
.prefeitura-contato__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
@media (max-width: 860px) {
  .prefeitura-contato { grid-template-columns: 1fr; gap: 28px; }
  .prefeitura-contato__map { min-height: 320px; }
  .prefeitura-contato__map iframe { min-height: 320px; }
}
