/* ============================
   TOKENS & RESET
   ============================ */
:root {
  /* Paleta extraída do design original (Canva/FireShot) */
  --clr-yellow: #f8e752;
  --clr-yellow-mid: #ffde59;
  --clr-yellow-dark: #e0c800;
  --clr-yellow-pale: #fffde8;
  --clr-green: #f97316;
  /* laranja principal */
  --clr-green-dark: #c2410c;
  /* laranja escuro */
  --clr-green-light: #ffedd5;
  /* laranja bem fraco e claro */
  --clr-wpp: #25D366;
  --clr-wpp-dark: #128C7E;

  --clr-bg: #f9f9f6;
  --clr-surface: #ffffff;
  --clr-border: #ece8c8;
  --clr-text: #1a1a1a;
  --clr-text-muted: #666666;
  --clr-text-light: #999999;

  --radius-sm: .5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;

  --shadow-xs: 0 1px 3px rgba(0, 0, 0, .06);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .08), 0 1px 3px rgba(0, 0, 0, .04);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, .10), 0 2px 6px rgba(0, 0, 0, .05);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, .12), 0 4px 10px rgba(0, 0, 0, .06);
  --shadow-yellow: 0 4px 20px rgba(248, 231, 82, .5);

  --transition: .24s cubic-bezier(.4, 0, .2, 1);

  --font-main: 'Inter', system-ui, sans-serif;
  --font-display: 'Quicksand', system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ============================
   LAYOUT
   ============================ */
.container {
  max-width: 100%;
  margin-inline: auto;
  padding-inline: 2.5rem;
}

/* ============================
   HEADER
   ============================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 2px solid var(--clr-yellow);
  box-shadow: 0 2px 12px rgba(248, 231, 82, .18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 72px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: .85rem;
}

.logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.logo-divider {
  width: 1px;
  height: 36px;
  background: #d1d5db;
  flex-shrink: 0;
  margin-inline: .25rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.logo-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--clr-text);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.logo-sub {
  font-size: .68rem;
  color: var(--clr-text-muted);
  letter-spacing: .02em;
  font-weight: 400;
  text-transform: uppercase;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: .35rem;
}

.nav-link {
  padding: .45rem .9rem;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 600;
  color: var(--clr-text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  transition: all var(--transition);
}

.nav-link:hover {
  background: var(--clr-yellow-pale);
  color: var(--clr-text);
}

.nav-wpp {
  display: flex;
  align-items: center;
  gap: .4rem;
  background: var(--clr-wpp);
  color: #fff !important;
  padding: .48rem 1.1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .04em;
  transition: all var(--transition);
}

.nav-wpp:hover {
  background: var(--clr-wpp-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 211, 102, .35);
}

/* ============================
   HERO — gradiente amarelo/branco como original
   ============================ */
.hero {
  position: relative;
  min-height: 250px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, #fff9e6 0%, #ffffff 120px);
  /* Branco puro logo no início para total clareza */
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: 7.5rem 3.5rem;
  /* Aumentado de 6rem para 7.5rem para afastar mais do topo */
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Logo mark ocultada no hero conforme solicitado */
.hero-logo-mark {
  display: none;
}

.hero-header {
  text-align: center;
  margin-bottom: 3.5rem;
  animation: slideUp 0.5s ease both;
}

.hero-municipio {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(2rem, 8vw, 3.8rem);
  font-weight: 900;
  color: #1e293b;
  letter-spacing: 0.5em;
  /* Espaçamento majestoso */
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 2rem;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.header-line {
  width: 80px;
  height: 4px;
  background: #f8e752;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(248, 231, 82, 0.4);
}

/* == NOVOS CARDS DE INFORMAÇÃO (ÓRGÃO E AÇÃO) == */
.info-hero-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  margin-top: 1rem;
  animation: slideUp 0.5s ease both 0.2s;
}

.info-hero-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 20px;
  padding: 1.5rem 2rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: all 0.4s ease;
  position: relative;
}

.info-hero-card:hover {
  transform: translateY(-10px) scale(1.02);
  /* Efeito de escala e elevação mais acentuado */
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.15);
}

/* Destaque especial para o card de Ação/Doação */




.info-hero-badge {
  font-size: 1.15rem;
  /* Aumentado de 0.85rem */
  font-weight: 900;
  letter-spacing: 0.15em;
  padding: 0.8rem 1.8rem;
  /* Aumentado para dar mais corpo ao botão */
  border-radius: 50px;
  width: fit-content;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.info-hero-badge--gold {
  background: #fffbeb;
  color: #b45309;
}

.info-hero-badge--green {
  background: #fff7ed;
  color: #c2410c;
}

.info-hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3.5vw, 1.6rem);
  font-weight: 900;
  color: #0f172a;
  line-height: 1.25;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.info-hero-title--gold {
  color: #d4af37;
}

.info-hero-text {
  font-size: 1.05rem;
  color: #64748b;
  line-height: 1.5;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}



.hero-value-desc {
  font-size: .8rem;
  font-weight: 400;
  color: #64748b;
  letter-spacing: .01em;
  text-transform: none;
  line-height: 1.4;
}

/* == BOTÃO CHECKLIST == */
.hero-actions {
  margin-top: 3rem;
  animation: slideUp .5s ease both .3s;
}

.btn-checklist {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  background: #ffffff;
  color: #334155;
  padding: 1rem 2.5rem;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.btn-checklist svg {
  color: #d4af37;
  animation: pulse-gold 2s infinite;
}

@keyframes pulse-gold {
  0% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(212, 175, 55, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
  }
}

.btn-checklist:hover {
  background: #ffffff;
  border-color: #d4af37;
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.2), 0 4px 10px rgba(0, 0, 0, 0.05);
  color: #1e293b;
}

/* ============================
   OVERVIEW CARDS (Fases)
   ============================ */
.overview {
  padding-block: 2.5rem 1rem;
}

.phase-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.phase-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--clr-surface);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.phase-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--clr-yellow);
}

.phase-card--2::before {
  background: linear-gradient(90deg, var(--clr-yellow), var(--clr-green));
}

.phase-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--clr-yellow-mid);
}

.phase-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--clr-yellow-dark);
  line-height: 1;
  min-width: 60px;
  letter-spacing: -.03em;
}

.phase-info {
  flex: 1;
  min-width: 0;
}

.phase-info h3 {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: .2rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.phase-info p {
  font-size: .78rem;
  color: var(--clr-text-muted);
  letter-spacing: .02em;
}

.phase-status {
  margin-left: auto;
  flex-shrink: 0;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .75rem;
  border-radius: 100px;
}

.status-ok {
  background: var(--clr-green-light);
  color: var(--clr-green-dark);
  animation: pulse-green-intense 2s infinite;
  position: relative;
  z-index: 1;
}

@keyframes pulse-green-intense {
  0% {
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7), 0 0 0 0 rgba(249, 115, 22, 0);
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(249, 115, 22, 0), 0 0 0 20px rgba(249, 115, 22, 0);
    transform: scale(1);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0), 0 0 0 0 rgba(249, 115, 22, 0);
    transform: scale(1);
  }
}

.status-pending {
  background: #fff8e1;
  color: #a16207;
}

/* ============================
   SECTION
   ============================ */
.section {
  padding-block: 3rem 2rem;
}

.section--alt {
  background: linear-gradient(160deg, var(--clr-yellow-pale) 0%, #ffffff 70%);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding-inline: 2rem;
  margin-block: .5rem;
}

.section-header {
  margin-bottom: 1.75rem;
}

.section-phase-badge {
  display: inline-block;
  background: var(--clr-yellow);
  color: #000;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .3rem .85rem;
  border-radius: 100px;
  margin-bottom: .8rem;
  box-shadow: 0 2px 8px rgba(248, 231, 82, .5);
}

.section-phase-badge--2 {
  background: linear-gradient(90deg, var(--clr-yellow), var(--clr-green));
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3.5vw, 1.9rem);
  font-weight: 800;
  color: var(--clr-text);
  margin-bottom: .45rem;
  letter-spacing: -.01em;
  text-transform: uppercase;
}

.section-desc {
  font-size: .92rem;
  color: var(--clr-text-muted);
  max-width: 620px;
  line-height: 1.75;
}

.inline-link {
  color: var(--clr-green-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.inline-link:hover {
  color: var(--clr-green);
}

/* ============================
   DIVIDER
   ============================ */
.divider {
  height: 2px;
  background: linear-gradient(90deg, var(--clr-yellow), var(--clr-yellow-mid), transparent);
  border-radius: 2px;
  margin-block: 2rem;
  opacity: .6;
}

/* ============================
   DOCUMENT LIST
   — estilo fiel ao original: faixas amarelas + ícone verde
   ============================ */
.doc-list {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.doc-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(90deg, #fff8cc 0%, #fffef5 35%, #ffffff 100%);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: .9rem 1rem .9rem 1rem;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition);
  position: relative;
}

.doc-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--clr-yellow-dark);
  border-radius: 4px 0 0 4px;
}

.doc-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
  border-color: var(--clr-yellow-mid);
}

.doc-item--highlight {
  background: linear-gradient(90deg, var(--clr-green-light) 0%, #fff2e6 30%, #ffffff 100%);
  border-color: var(--clr-green);
}

.doc-item--highlight::before {
  background: var(--clr-green);
}

.doc-number {
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 800;
  color: #555;
  min-width: 40px;
  text-align: center;
  flex-shrink: 0;
  letter-spacing: .03em;
}

.doc-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .1rem;
}

.doc-name {
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 700;
  color: var(--clr-text);
  text-transform: uppercase;
  letter-spacing: .03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.doc-date {
  font-size: .75rem;
  color: var(--clr-text-muted);
  letter-spacing: .02em;
}

.doc-actions {
  flex-shrink: 0;
  margin-left: auto;
}

/* Ícone de documento verde (como no original) */
.btn-doc {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--clr-surface);
  color: var(--clr-green-dark);
  border: 1.5px solid var(--clr-green);
  font-size: .78rem;
  font-weight: 700;
  padding: .48rem 1rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.btn-doc svg {
  color: var(--clr-green);
  flex-shrink: 0;
}

.btn-doc:hover {
  background: var(--clr-green);
  color: #1a1a1a;
  border-color: var(--clr-green);
  box-shadow: 0 4px 14px rgba(249, 115, 22, .4);
  transform: translateY(-1px);
}

.btn-doc:hover svg {
  color: #1a1a1a;
}

.btn-doc--primary {
  background: var(--clr-yellow);
  color: #000;
  border-color: var(--clr-yellow-dark);
}

.btn-doc--primary svg {
  color: #333;
}

.btn-doc--primary:hover {
  background: var(--clr-yellow-dark);
  color: #000;
  border-color: var(--clr-yellow-dark);
  box-shadow: var(--shadow-yellow);
}

.dl-all-wrapper {
  margin-top: 3.5rem;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 5;
  animation: slideUp 0.8s ease both 0.6s;
}

.btn-dl-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  background: var(--clr-surface);
  color: var(--clr-text);
  padding: 1rem 2.5rem;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1.5px solid var(--clr-green);
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.btn-dl-all svg {
  color: var(--clr-green);
  transition: all var(--transition);
}

.btn-dl-all:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(249, 115, 22, 0.2);
  background: var(--clr-green);
  color: #1a1a1a;
  border-color: var(--clr-green);
}

.btn-dl-all:hover svg {
  color: #1a1a1a;
}

.badge-no-link {
  display: inline-flex;
  align-items: center;
  font-size: .73rem;
  color: var(--clr-text-light);
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  padding: .42rem .85rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  letter-spacing: .03em;
}

/* ============================
   CONTATO
   ============================ */
.section-contact {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  margin-top: 3rem;
  padding-block: 3.5rem;
  position: relative;
  overflow: hidden;
}

.section-contact::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 220px;
  height: 220px;
  background: var(--clr-yellow);
  border-radius: 50%;
  opacity: .07;
}

.section-contact::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 280px;
  height: 280px;
  background: var(--clr-green);
  border-radius: 50%;
  opacity: .06;
}

.contact-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.contact-text h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: .4rem;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.contact-text p {
  font-size: .92rem;
  color: rgba(255, 255, 255, .65);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  background: var(--clr-wpp);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: .875rem 2rem;
  border-radius: var(--radius-md);
  letter-spacing: .03em;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(37, 211, 102, .3);
  white-space: nowrap;
}

.btn-whatsapp:hover {
  background: var(--clr-wpp-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, .45);
}

/* ============================
   FOOTER
   ============================ */
.footer {
  background: #fff;
  padding-block: 2rem 2.5rem;
  border-top: 2px solid #eee;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

/* Linha de logos: ícone + foto */
.footer-logos {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.footer-logo-icon {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

/* Foto circular com badge WhatsApp */
.footer-photo-link {
  position: relative;
  display: inline-block;
  line-height: 0;
}

.footer-photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e0e0e0;
  transition: border-color var(--transition), transform var(--transition);
}

.footer-wpp-badge {
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 22px;
  height: 22px;
  background: var(--clr-wpp);
  border-radius: 50%;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.footer-copy {
  font-size: .82rem;
  color: #aaa;
  letter-spacing: .02em;
}

.footer-photo-link:hover .footer-photo {
  border-color: var(--clr-wpp);
  transform: scale(1.06);
}

.fab-wpp:hover .fab-logo {
  transform: scale(1.1) rotate(-4deg);
  border-color: var(--clr-wpp);
  box-shadow: 0 8px 30px rgba(37, 211, 102, .5);
}

.fab-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--clr-yellow);
  animation: pulse-ring 2.5s infinite;
  z-index: 1;
}

/* ============================
   BUSCA DE DOCUMENTOS
   ============================ */
.search-bar-wrapper {
  padding-block: 1.5rem .5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: #fff;
  border: 1.5px solid var(--clr-border);
  border-radius: 100px;
  padding: .6rem 1.2rem;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-sm);
  transition: border-color .25s ease, box-shadow .25s ease;
}

.search-bar:focus-within {
  border-color: #c8960c;
  box-shadow: 0 0 0 3px rgba(200, 150, 12, .12), var(--shadow-sm);
}

.search-bar svg {
  flex-shrink: 0;
  color: #aaa;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: .9rem;
  color: var(--clr-text);
  background: transparent;
  font-family: var(--font-body);
}

.search-input::placeholder {
  color: #bbb;
}

.search-clear {
  background: none;
  border: none;
  cursor: pointer;
  color: #aaa;
  padding: 2px;
  display: flex;
  align-items: center;
  transition: color .2s ease;
}

.search-clear:hover {
  color: #555;
}

.search-count {
  font-size: .78rem;
  color: var(--clr-text-muted);
  letter-spacing: .04em;
  min-height: 1.2em;
}

.doc-item--hidden {
  display: none !important;
}

/* ============================
   BOTÃO VOLTAR AO TOPO
   ============================ */
.btn-backtop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--clr-border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #334155;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease,
    background .2s ease, border-color .2s ease,
    box-shadow .2s ease;
}

.btn-backtop.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.btn-backtop:hover {
  background: #f8f9fa;
  border-color: #c8960c;
  box-shadow: 0 6px 24px rgba(200, 150, 12, .2);
  color: #c8960c;
}

/* ============================
   ANIMATIONS
   ============================ */
@keyframes fadeIn {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(22px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@keyframes bounce {

  0%,
  100% {
    transform: rotate(45deg) translateY(0)
  }

  50% {
    transform: rotate(45deg) translateY(6px)
  }
}

@keyframes pulse-ring {
  0% {
    opacity: .8;
    transform: scale(1)
  }

  70% {
    opacity: 0;
    transform: scale(1.4)
  }

  100% {
    opacity: 0;
    transform: scale(1.4)
  }
}

/* Scroll-reveal defaults */
.doc-item,
.phase-card {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .45s ease, transform .45s ease,
    box-shadow var(--transition), border-color var(--transition),
    background var(--transition);
}

.doc-item.visible,
.phase-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 768px) {
  .header-inner {
    height: auto;
    padding-block: 1.5rem 2rem;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    border-bottom: 3px solid #f8e752;
  }

  .header-logo {
    display: grid !important;
    grid-template-areas:
      "img title"
      "sub sub";
    grid-template-columns: auto auto;
    align-items: center;
    justify-content: center;
    gap: 0.8rem 1.5rem;
    width: 100%;
  }

  .logo-img {
    grid-area: img;
    width: 65px;
    /* Aumentado para acompanhar o plano horizontal */
    height: 65px;
    margin-bottom: 0;
  }

  .logo-text {
    display: contents !important;
    /* Permite que o título e subtítulo virem itens diretos do grid */
  }

  .logo-title {
    grid-area: title;
    font-size: clamp(1.45rem, 6vw, 2.3rem);
    letter-spacing: 0.38em;
    font-weight: 300;
    color: #334155;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .logo-sub {
    grid-area: sub;
    font-size: clamp(0.95rem, 4.4vw, 1.35rem) !important;
    line-height: 1.3;
    letter-spacing: 0.02em;
    font-weight: 800 !important;
    color: #1e293b !important;
    text-transform: uppercase;
    text-align: center;
    width: 100%;
    margin-top: 0.5rem;
  }

  .logo-divider {
    display: none;
    /* Removido para centralizar melhor */
  }

  .nav-link:not(.nav-wpp) {
    display: none;
  }

  .hero {
    min-height: 340px;
  }

  .hero-content {
    padding-block: 5rem 2rem;
  }

  .section--alt {
    padding-inline: 1rem;
    border-radius: var(--radius-lg);
  }

  .doc-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    box-sizing: border-box;
  }

  .doc-info {
    flex: 1 1 auto;
    width: 100%;
    word-break: break-word;
  }

  .doc-name {
    white-space: normal;
    font-size: 1.15rem !important;
    line-height: 1.4;
  }

  .doc-actions {
    margin-left: 0;
    width: 100%;
  }

  .btn-doc,
  .badge-no-link {
    width: 100%;
    justify-content: center;
  }

  .contact-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-info {
    align-items: center;
  }

  .footer-brand {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .doc-item,
  .phase-card {
    padding: 1rem !important;
    margin-inline: 0;
    width: 100%;
  }

  .hero-header {
    margin-bottom: 3rem;
  }

  .hero-municipio {
    font-size: clamp(1.8rem, 10vw, 2.4rem);
    /* Maior destaque no mobile */
    letter-spacing: 0.35em;
    font-weight: 800;
  }

  .info-hero-grid {
    margin-top: 1.5rem;
    /* Espaço para o branco aparecer antes dos cards */
    gap: 1rem;
  }

  .info-hero-card {
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 1.5rem 1.25rem;
    width: 100%;
    box-sizing: border-box;
  }

  .info-hero-title,
  .info-hero-text {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .doc-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--clr-yellow);
    color: #000;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 0.85rem;
    min-width: unset;
    margin-bottom: 0.2rem;
    box-shadow: 0 4px 10px rgba(248, 231, 82, 0.4);
  }

  .phase-cards {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .phase-card {
    padding: 1rem 1.25rem;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .phase-num {
    font-size: 1.8rem;
    min-width: unset;
    margin-right: 0.5rem;
  }

  .phase-info {
    flex: 1;
  }

  .phase-info h3 {
    font-size: 0.85rem;
    line-height: 1.25;
  }

  .phase-info p {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    margin-top: 0.15rem;
  }

  .phase-status {
    width: 100%;
    margin-top: 0.5rem;
    text-align: center;
    order: 3;
    padding-block: 0.4rem;
  }

  .hero-info-block {
    border-radius: 12px;
  }

  .hero-info-row {
    grid-template-columns: 85px 1fr;
    /* Mais espaço para o valor, menos para o rótulo */
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    text-align: left;
  }

  .hero-label {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
  }

  .hero-value {
    font-size: 1rem;
    line-height: 1.25;
  }

  .hero-info-row:first-child .hero-value {
    font-size: 1.15rem;
  }

  .hero-value-desc {
    font-size: 0.98rem;
    /* Aumentado para tamanho de título conforme solicitado */
    line-height: 1.4;
    font-weight: 500;
  }

  .btn-checklist {
    width: 100%;
    justify-content: center;
    padding: 0.95rem 1.5rem;
    font-size: 0.88rem;
  }

  .container {
    padding-inline: 0.75rem;
    /* Margens mínimas para aproveitar a tela lateralmente */
  }

  /* Aproveitamento total de tela para os cards */


  .phase-info p,
  .hero-value-desc {
    font-size: 1.15rem !important;
    /* Tamanho de título para descrições */
    font-weight: 700 !important;
    color: #1e293b !important;
    margin-top: 0.35rem;
    line-height: 1.4;
  }

  .doc-date {
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    color: #64748b !important;
    margin-top: 0.2rem;
  }

  .phase-info h3,
  .doc-name {
    font-size: 1.25rem;
    /* Ajustando o título principal para manter harmonia */
    margin-bottom: 0.2rem;
  }

  .hero {
    background: linear-gradient(180deg, #fff9e6 0%, #ffffff 80px) !important;
    /* Branco absoluto imediato no mobile */
    min-height: auto;
  }

  .hero-content {
    padding-block: 6.5rem 2.5rem;
    /* Aumentado no mobile também */
  }

  .hero-header {
    margin-bottom: 3rem;
  }

  .info-hero-badge {
    font-size: 0.95rem;
    padding: 0.6rem 1.4rem;
  }

  .info-hero-card:hover {
    transform: translateY(-5px) scale(1.01);
  }
}

@media (max-width: 480px) {
  .hero-municipio {
    font-size: 1.55rem;
    /* Aumentado consideravelmente */
    letter-spacing: 0.12em;
    /* Reduzido para caber em uma linha */
    margin-bottom: 2rem;
  }

  .section-title {
    font-size: 1.1rem;
    /* Ajustado para caber em uma linha no mobile */
    letter-spacing: -0.02em;
  }

  .hero-info-row {
    grid-template-columns: 75px 1fr;
    padding: 0.9rem 1rem;
  }

  .logo-divider {
    display: none;
    /* Remove o divisor em telas minúsculas para dar espaço ao texto */
  }

  .logo-title {
    font-size: 1rem;
    /* Aumentado de 0.85rem */
  }

  .logo-sub {
    font-size: 0.6rem;
    /* Aumentado de 0.52rem */
    max-width: 100%;
  }

  .phase-cards {
    grid-template-columns: 1fr;
  }

  .hero-cta-row {
    flex-direction: column;
  }

  .btn-process {
    width: 100%;
    justify-content: center;
  }
}