/* ============================================
   ESP-CG | Escola de Saúde Pública de Campo Grande
   Folha de estilos principal - style.css
   ============================================ */

/* ============================================
   SEÇÃO 1: VARIÁVEIS E RESET BASE
   ============================================ */

:root {
  --azul-escuro:#073B66;
  --azul:#0B5C97;
  --azul-claro:#EAF4FB;
  --verde:#1F7A4D;
  --verde-claro:#EAF7EF;
  --cinza:#263442;
  --cinza2:#617486;
  --fundo:#F3F6F9;
  --borda:#D8E1EA;
  --amarelo:#F2B705;
  --dourado:#FFD700;
  --dourado-escuro:#DAA520;
  --branco:#FFFFFF;
  --sombra:0 18px 45px rgba(7,59,102,.12);
}

* { box-sizing:border-box }
html { scroll-behavior:smooth }
body { margin:0;font-family:Arial,Helvetica,sans-serif;color:var(--cinza);line-height:1.5;background:#fff }
a { text-decoration:none;color:inherit }

.skip { position:absolute;left:-999px;top:auto;width:1px;height:1px;overflow:hidden }
.skip:focus { left:16px;top:16px;width:auto;height:auto;background:#fff;color:var(--azul-escuro);border:3px solid var(--amarelo);padding:10px;z-index:999 }

/* ============================================
   SEÇÃO 2: HEADER, TOPBAR E NAVEGAÇÃO
   ============================================ */

.header { position:sticky;top:0;z-index:20;background:rgba(255,255,255,.97);border-bottom:1px solid var(--borda);backdrop-filter:blur(10px) }

/* Topbar azul escura com contato */
.topbar {
  background: linear-gradient(135deg, var(--azul-escuro) 0%, #0a2f6c 100%);
  color:#fff;
  padding: 0 24px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  font-size:11px;
  border-bottom: 2px solid var(--dourado);
  height: 44px;
  min-height: 44px;
}

.topbar-contato {
  display:flex; align-items:center; gap:4px; font-size:10px; height: 44px;
}
.topbar-contato .icon { color:var(--dourado); font-size: 10px; display: inline-block; line-height: 1; }
.topbar-contato span { display:inline-flex; align-items:center; gap:2px; }
.topbar-divider { width:1px; height: 14px; background: rgba(255,255,255,0.3); margin:0 4px; }
.topbar-info { display:flex; align-items:center; gap:6px; flex-wrap:nowrap; height: 44px; }
.topbar-info .icon { color:var(--dourado); font-size: 11px; display: inline-block; line-height: 1; }

.topbar-links-destaque {
  display:flex; gap:8px; align-items:center;
}
.topbar-links-destaque a {
  background: linear-gradient(135deg, var(--dourado) 0%, #FFC107 100%);
  color: var(--azul-escuro);
  padding: 0 16px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 12px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  height: 34px;
  line-height: 34px;
  white-space: nowrap;
}
.topbar-links-destaque a .icon { font-size: 13px; line-height: 1; display: inline-block; }
.topbar-links-destaque a:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(218,165,32,0.4);
  background: linear-gradient(135deg, #FFE44D 0%, var(--dourado) 100%);
}

/* Header principal com logo e navegação */
.header-inner {
  padding:10px 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  flex-wrap:wrap
}

.logos { display:flex; align-items:center; gap:12px; flex-wrap:wrap }
.logo-esp { height:42px; width:auto }

/* Botão hambúrguer - aparece só no mobile/tablet */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--azul-claro);
  color: var(--azul-escuro);
  border: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.2s ease;
}
.menu-toggle:hover { background: var(--azul-escuro); color: #fff; }
.menu-toggle:active { transform: scale(0.95); }

/* Navegação desktop */
.nav { display:flex; gap:4px; font-size:13px; font-weight:700; flex-wrap:wrap }
.nav a { padding:6px 10px; border-radius:10px; color:#32465A }
.nav a:hover,.nav a:focus { background:var(--azul-claro); color:var(--azul-escuro); outline:none }

.actions { display:flex; gap:8px; white-space:nowrap; flex-wrap:wrap }

/* Área restrita label */
.area-restrita-label { display:block; font-size:11px; font-weight:900; text-transform:uppercase; color:var(--verde); letter-spacing:.06em; margin-bottom:1px }


/* ============================================
   SEÇÃO 3: SIDEBAR MOBILE (MENU OFF-CANVAS)
   ============================================ */

/* Overlay escuro quando menu aberto */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(7,59,102,0.6);
  z-index: 25;
  backdrop-filter: blur(4px);
  transition: opacity 0.3s ease;
}
.sidebar-overlay.active { display: block; }

/* Sidebar mobile que desliza da esquerda */
.mobile-sidebar {
  display: none; /* Escondido no desktop */
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  max-width: 85vw;
  background: linear-gradient(180deg, var(--azul-escuro) 0%, #0a2f6c 100%);
  z-index: 30;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  box-shadow: 4px 0 24px rgba(0,0,0,0.3);
}

.mobile-sidebar.open {
  transform: translateX(0);
}

.mobile-sidebar-header {
  padding: 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-sidebar-header img {
  height: 36px;
  width: auto;
}

.mobile-sidebar-header h2 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.mobile-sidebar-nav {
  padding: 12px 10px;
}

.mobile-sidebar-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-sidebar-nav li a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  text-decoration: none;
}

.mobile-sidebar-nav li a:hover,
.mobile-sidebar-nav li a:focus,
.mobile-sidebar-nav li.active a {
  background: rgba(255,255,255,0.12);
  color: #fff;
  outline: none;
}

.mobile-sidebar-nav li a i {
  width: 24px;
  text-align: center;
  font-size: 16px;
}

.mobile-sidebar-nav .nav-section {
  padding: 16px 16px 8px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
}

.mobile-sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  text-align: center;
  margin-top: auto;
}

/* ============================================
   SEÇÃO 4: HERO, BANNERS E SLIDES
   ============================================ */

.hero {
  background:radial-gradient(circle at 90% 10%,rgba(31,122,77,.14),transparent 32%),linear-gradient(135deg,#fff 0%,#f8fbfe 45%,#eaf4fb 100%);
  padding:60px 36px 40px
}

.hero h1 { font-size:42px; line-height:1.08; color:var(--azul-escuro); margin:0 0 15px; letter-spacing:-.035em }
.hero p { font-size:16px; max-width:700px; color:#52677A; margin:0 0 22px }

.hero-grid { max-width:1220px; margin:0 auto; display:grid; grid-template-columns:1fr 1fr; gap:42px; align-items:center }
.hero-actions { display:flex; gap:10px; flex-wrap:wrap }

.kicker { display:inline-flex; padding:6px 12px; border-radius:999px; background:var(--verde-claro); color:var(--verde); font-weight:800; font-size:12px; margin-bottom:15px }

.banner { position:relative; min-height:300px; border-radius:30px; overflow:hidden; box-shadow:var(--sombra); border:1px solid var(--borda); background:#fff }

.slide { position:absolute; inset:0; padding:25px; opacity:0; animation:fade 18s infinite; display:flex; flex-direction:column; justify-content:space-between }
.slide h2 { font-size:28px; line-height:1.12; margin:30px 0 10px }
.slide p { font-size:14px; color:inherit; margin:0 0 15px }

.slide:nth-child(1) {
    background: linear-gradient(
        135deg,
        #FFFFFF 0%,
        #EAF4FB 55%,
        #DCEFFA 100%
    );
    color: #073B66;
}

.slide:nth-child(2) {
    background: linear-gradient(
        135deg,
        #FFFFFF 0%,
        #F2F8FC 55%,
        #E3F0FA 100%
    );
    color: #073B66;
}

.slide:nth-child(3) {
    background: linear-gradient(
        135deg,
        #FFFFFF 0%,
        #EEF7FD 55%,
        #DCEFFA 100%
    );
    color: #073B66;
}

.slide-footer { display:flex; justify-content:space-between; align-items:center; gap:16px }
.slide-label { display:inline-flex; align-self:flex-start; padding:5px 10px; border-radius:999px; background:rgba(255,255,255,.18); font-size:11px; font-weight:900; text-transform:uppercase; letter-spacing:.06em }
.slide-logo { background:#fff; border-radius:16px; padding:6px 10px; max-width:130px }
.slide-logo img { width:100%; height:auto; display:block }

@keyframes fade {
  0%{opacity:0;transform:translateX(14px)}5%{opacity:1;transform:translateX(0)}30%{opacity:1;transform:translateX(0)}36%{opacity:0;transform:translateX(-14px)}100%{opacity:0}
}


/* ============================================
   SEÇÃO 5: CARDS, SEÇÕES E CONTAINERS
   ============================================ */

.quick { max-width:1220px; margin:-22px auto 0; padding:0 36px 35px; position:relative; z-index:3 }
.quick-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px }

.card {
  background:#fff; border:1px solid var(--borda); border-radius:20px; padding:18px;
  box-shadow:0 12px 34px rgba(15,23,42,.08); transition:.2s
}
.card h3 { margin:0 0 6px; color:var(--azul-escuro); font-size:16px }
.card p { margin:0 0 12px; color:#607386; font-size:13px }
.card:hover,.card:focus { transform:translateY(-2px); border-color:#B7D3E8; outline:none }

.card.cadastro { border:2px solid var(--verde); background:linear-gradient(135deg,#fff 0%,#EAF7EF 54%,#DFF3E8 100%); box-shadow:0 18px 42px rgba(31,122,77,.14) }
.card.sistema { border:2px solid var(--azul); background:linear-gradient(135deg,#fff 0%,#EAF4FB 52%,#DCEFFA 100%); box-shadow:0 18px 42px rgba(7,59,102,.16) }

.programa-card { border-top:5px solid var(--azul) }
.programa-card .sigla { display:inline-flex; background:var(--azul-claro); color:var(--azul-escuro); border-radius:999px; padding:4px 8px; font-size:11px; font-weight:900; margin-bottom:8px }

.container { max-width:1220px; margin:0 auto }
.panel { background:#fff; border:1px solid var(--borda); border-radius:24px; padding:20px; box-shadow:0 10px 28px rgba(15,23,42,.06) }
.panel h3 { margin:0 0 8px; color:var(--azul-escuro); font-size:17px }
.panel p { margin:0 0 12px; color:#5D7184; font-size:14px }

section.alt { background:var(--fundo) }
section.area { padding:50px 36px }

.section-title { display:flex; justify-content:space-between; align-items:end; gap:20px; margin-bottom:22px; flex-wrap:wrap }
.section-title h2 { font-size:28px; color:var(--azul-escuro); letter-spacing:-.02em; margin:0 }
.section-title p { margin:6px 0 0; color:var(--cinza2); max-width:760px; font-size:14px }

.grid-2 { display:grid; grid-template-columns:repeat(2,1fr); gap:18px }
.grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:18px }
.grid-4 { display:grid; grid-template-columns:repeat(4,1fr); gap:18px }

/* ============================================
   SEÇÃO 6: COMPONENTES DIVERSOS
   ============================================ */

/* Timeline */
.timeline { display:grid; grid-template-columns:repeat(6,1fr); gap:12px }
.step { background:#fff; border:1px solid var(--borda); border-radius:18px; padding:12px; text-align:center }
.step .num { width:30px; height:30px; border-radius:999px; background:var(--azul); color:#fff; display:grid; place-items:center; margin:0 auto 8px; font-weight:900; font-size:13px }
.step h4 { font-size:13px; margin:0 0 5px; color:var(--azul-escuro) }
.step p { font-size:11px; margin:0; color:#65798A }

/* Eventos */
.event { padding:14px; border-left:4px solid var(--verde); background:#fff; border-radius:14px; margin-bottom:10px; border:1px solid var(--borda); font-size:13px }

/* Badges */
.badge { border-radius:999px; padding:4px 8px; background:var(--azul-claro); color:var(--azul-escuro); font-size:11px; font-weight:800; display:inline-block }
.badge.verde { background:var(--verde-claro); color:var(--verde) }
.role-tag { display:inline-flex; border-radius:999px; background:var(--azul-claro); color:var(--azul-escuro); padding:4px 8px; font-size:10px; font-weight:900; text-transform:uppercase; letter-spacing:.05em; margin-bottom:8px }

/* Ícones */
.icon { width:38px; height:38px; border-radius:14px; background:var(--azul-claro); color:var(--azul-escuro); display:grid; place-items:center; font-weight:900; margin-bottom:10px; font-size:16px }
.icon.cadastro-icon { background:#fff; border:1px solid #BFE3CE; color:#1F7A4D; font-size:18px }

/* Botões */
.btn { display:inline-flex; align-items:center; justify-content:center; border:0; border-radius:13px; padding:6px 12px; font-weight:800; font-size:12px; cursor:pointer }
.btn:focus { outline:3px solid var(--amarelo); outline-offset:2px }
.btn.azul { background:var(--azul); color:#fff }
.btn.branco { background:#fff; color:var(--azul-escuro); border:1px solid #C8E0F2 }
.btn.claro { background:var(--azul-claro); color:var(--azul-escuro); border:1px solid #C8E0F2 }
.btn.neutro { background:var(--fundo); color:#30455A; border:1px solid var(--borda) }
.btn.verde { background:var(--verde); color:#fff }

/* Features */
.feature-mini { background:linear-gradient(180deg,#fff,#F8FBFE); border:1px solid var(--borda); border-radius:18px; padding:15px }
.feature-mini h3 { margin:0 0 6px; color:var(--azul-escuro); font-size:16px }
.feature-mini p { margin:0 0 10px; color:#5D7184; font-size:13px }
.feature-row { display:grid; grid-template-columns:repeat(4,1fr); gap:14px }
.feature-strip { background:#fff; border:1px solid var(--borda); border-radius:26px; box-shadow:0 12px 30px rgba(15,23,42,.06); padding:20px }

/* Documentos */
.doc-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px }
.doc-item { padding:12px; border:1px solid var(--borda); border-radius:14px; background:#fff; display:flex; justify-content:space-between; gap:12px; align-items:center; flex-wrap:wrap; font-size:13px }
.doc-list { display:grid; gap:8px }
.comissao-list { margin:0; padding-left:18px; color:#5D7184; font-size:13px }

/* News */
.news-grid { display:grid; grid-template-columns:1.4fr .6fr; gap:18px }

/* Org */
.org-box { background:linear-gradient(180deg,#fff,#F8FBFE); border:1px solid var(--borda); border-radius:16px; padding:12px; text-align:center; color:#5D7184; font-size:12px }
.org-box strong { display:block; color:var(--azul-escuro); margin-bottom:4px }
.org-flow { display:grid; grid-template-columns:repeat(5,1fr); gap:10px }
.org-mini { margin-top:15px; background:#fff; border:1px solid var(--borda); border-radius:24px; padding:20px }

/* Secretaria */
.secretaria-box { background:linear-gradient(135deg,#073B66,#0B5C97); color:#fff; border-radius:26px; padding:25px; display:grid; grid-template-columns:1fr 1fr; gap:22px; align-items:center; box-shadow:var(--sombra) }
.secretaria-box h2 { margin:0 0 8px; color:#fff; font-size:24px }
.secretaria-box p { color:rgba(255,255,255,.88); margin:0 0 14px; font-size:14px }
.secretaria-title { display:flex; align-items:center; gap:10px; margin-bottom:8px }
.secretaria-title .icon { margin:0; width:45px; height:45px; background:#fff }
.secretaria-actions { display:grid; gap:8px }

/* Minibio */
.minibio { background:var(--fundo); border:1px solid var(--borda); border-radius:14px; padding:10px; margin:10px 0; font-size:12px; color:#52677A }
.minibio strong { color:var(--azul-escuro) }



/* ============================================
   SEÇÃO 7: CARDS DE PESSOAS E EQUIPE
   ============================================ */

/* Person cards */
.person-card { border:1px solid var(--borda); border-radius:20px; padding:15px; background:linear-gradient(180deg,#FFFFFF,#F8FBFE); box-shadow:0 8px 22px rgba(15,23,42,.05) }
.person-card h4 { margin:0 0 3px; color:var(--azul-escuro); font-size:16px }
.person-featured { display:grid; grid-template-columns:100px 1fr; gap:15px; align-items:center; background:linear-gradient(135deg,#FFFFFF,#EAF7EF); border-color:#BFE3CE }
.person-featured .photo-placeholder { margin-bottom:0; width:95px; height:95px }
.person-role { margin:0 0 6px!important; color:var(--verde)!important; font-weight:800; font-size:13px }
.person-bio { margin:0!important; color:#5D7184!important; font-size:12px }

.photo-placeholder { width:80px; height:80px; border-radius:999px; border:2px solid #B7D3E8; background:#FFFFFF; display:flex; align-items:flex-end; justify-content:center; padding-bottom:6px; color:#0B5C97; font-size:10px; font-weight:900; text-transform:uppercase; margin-bottom:10px }

/* Team */
.team-category { padding:20px; border-top:1px solid var(--borda) }
.team-category:first-of-type { border-top:0 }
.team-category-title { display:flex; justify-content:space-between; gap:15px; align-items:flex-end; margin-bottom:14px; flex-wrap:wrap }
.team-category-title h3 { margin:0; font-size:20px; color:var(--azul-escuro) }
.team-category-title p { margin:5px 0 0; color:#5D7184; max-width:780px; font-size:13px }
.team-people-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:15px }

.direction-grid { grid-template-columns:1fr }

/* ============================================
   SEÇÃO 8: FOOTER E MOBILE BAR
   ============================================ */

.footer { background:var(--azul-escuro); color:#fff; padding:40px 36px 20px }
.footer p { color:rgba(255,255,255,.84); font-size:13px; margin:0 0 8px; line-height:1.5 }
.footer h3 { color:#fff; font-size:16px; font-weight:700; margin:0 0 12px }

.footer-grid { max-width:1220px; margin:0 auto; display:grid; grid-template-columns:1.2fr 1fr 1fr; gap:28px }
.footer-logo { max-width:160px; margin-bottom:12px; background:#fff; padding:8px; border-radius:12px }

/* Links do footer — ESTILOS COMPLETOS */
.footer-links { display:grid; gap:8px }
.footer-links a {
  display:block;
  color:rgba(255,255,255,.84);
  font-size:13px;
  text-decoration:none;
  padding:4px 0;
  transition:all 0.2s ease;
  border-bottom:1px solid transparent;
}
.footer-links a:hover,
.footer-links a:focus {
  color:var(--dourado);
  border-bottom-color:var(--dourado);
  outline:none;
}

/* Mobile bar fixa no rodapé */
.mobile-bar {
  display:none;
  position:fixed;
  bottom:0;
  left:0;
  right:0;
  z-index:40;
  background:#fff;
  border-top:1px solid var(--borda);
  padding:8px 10px;
  grid-template-columns:repeat(4,1fr);
  gap:6px
}
.mobile-bar a {
  text-align:center;
  font-size:11px;
  font-weight:800;
  color:var(--azul-escuro);
  padding:8px 4px;
  border-radius:10px;
  background:var(--azul-claro);
  transition: all 0.2s ease;
  text-decoration:none;
}
.mobile-bar a:hover,
.mobile-bar a.active { background: var(--azul-escuro); color: #fff; }
.mobile-bar a i { display: block; font-size: 16px; margin-bottom: 3px; }



/* ============================================
   SEÇÃO 9: MEDIA QUERIES — TABLET E MOBILE
   ============================================ */

/* Tablet (até 1180px) */
@media(max-width:1180px){
  .nav{ display:none }
  .hero-grid{ grid-template-columns:1fr }
  .quick-grid,.grid-2,.grid-3,.grid-4,.feature-row,.team-people-grid{ grid-template-columns:repeat(2,1fr) }
  .timeline{ grid-template-columns:repeat(3,1fr) }
  .secretaria-box{ grid-template-columns:1fr }
  .org-flow{ grid-template-columns:repeat(2,1fr) }
  .news-grid{ grid-template-columns:1fr }
}

/* Tablet pequeno (até 900px) — MOSTRA SIDEBAR E HAMBÚRGUER */
@media(max-width:900px){
  .topbar{
    flex-direction:column;
    gap:6px;
    padding:6px 16px;
    height: auto;
    min-height: auto;
  }
  .topbar-info{ justify-content:center; height: auto; flex-wrap:wrap; }
  .topbar-links-destaque{ justify-content:center; }

  /* Mostra botão hambúrguer e sidebar mobile */
  .menu-toggle { display: flex !important; }
  .mobile-sidebar { display: block; }
}

/* Mobile (até 760px) */
@media(max-width:760px){
  .topbar{
    flex-direction:column;
    align-items:stretch;
    padding:6px 12px;
    height: auto;
    min-height: auto;
  }
  .topbar-info{
    justify-content:center;
    flex-wrap:wrap;
    font-size:9px;
    height: auto;
  }
  .topbar-links-destaque{ justify-content:center; }
  .topbar-links-destaque a{
    padding:0 12px;
    height: 30px;
    font-size: 11px;
    line-height: 30px;
  }
  .topbar-links-destaque a .icon{ font-size: 12px; }

  .header-inner{ padding:8px 15px; flex-direction:column; align-items:stretch }
  .logos{ justify-content:center }
  .actions{ margin-top:8px; overflow-x:auto; padding-bottom:4px; justify-content:center }
  .nav a{ padding:5px 8px; font-size:12px }
  .btn{ padding:5px 10px; font-size:11px }

  .hero{ padding:35px 18px 30px }
  .hero h1{ font-size:30px }
  .hero p{ font-size:14px }
  .banner{ min-height:320px }
  .slide h2{ font-size:22px }

  .quick{ padding:0 18px 25px }
  .quick-grid,.grid-2,.grid-3,.grid-4,.doc-grid,.news-grid,.footer-grid,.timeline,.feature-row,.team-people-grid{ grid-template-columns:1fr }
  section.area{ padding:35px 18px }
  .section-title{ display:block }

  /* Mostra mobile bar no rodapé */
  .mobile-bar{ display:grid }
  body{ padding-bottom:72px }

  .person-featured{ grid-template-columns:1fr; text-align:center }
  .org-flow{ grid-template-columns:1fr }
  .secretaria-box{ padding:20px; border-radius:20px }
  .secretaria-box h2{ font-size:20px }

  /* Ajusta sidebar mobile */
  .mobile-sidebar { width: 85vw; max-width: 300px; }
  .mobile-sidebar-header { padding: 16px; }
  .mobile-sidebar-nav li a { padding: 14px 16px; font-size: 15px; }
  .mobile-sidebar-nav li a i { font-size: 18px; width: 28px; }
}

/* Mobile pequeno (até 480px) */
@media(max-width:480px){
  .hero h1{ font-size:26px }
  .slide h2{ font-size:18px }
  .section-title h2{ font-size:22px }
  .card{ padding:14px; border-radius:16px }
  .panel{ padding:16px; border-radius:20px }
  .footer{ padding:30px 18px 15px }
  .footer-grid{ gap:20px }
  .timeline{ grid-template-columns:1fr }
  .step{ padding:10px }
}



/* ============================================
   SEÇÃO 10: UTILITÁRIOS E AJUSTES FINAIS
   ============================================ */

/* Scrollbar suave */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--fundo); }
::-webkit-scrollbar-thumb { background: var(--borda); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--cinza2); }

/* Previne scroll horizontal no mobile */
html, body { overflow-x: hidden; max-width: 100vw; }

/* Ajusta inputs para não dar zoom no iOS */
input, select, textarea { font-size: 16px; }

/* Remove tap highlight azul no mobile */
@media (hover: none) {
  a, button { -webkit-tap-highlight-color: transparent; }
}

/* Animação suave de entrada */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.card, .panel, .feature-mini { animation: fadeInUp 0.4s ease forwards; }

/* ============================================
   WHATSAPP FLOAT - BOTÃO FLUTUANTE
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
}

/* Botão principal - VERDE WHATSAPP vibrante */
.whatsapp-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff;
    padding: 16px 24px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 15px;
    text-decoration: none;
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
    transition: all 0.3s ease;
    border: 3px solid #fff;
}
.whatsapp-btn:hover {
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 40px rgba(37, 211, 102, 0.6);
}
.whatsapp-btn i {
    font-size: 24px;
}

/* Animação pulse VERDE */
.whatsapp-pulse {
    animation: pulse-verde 2s infinite;
}
@keyframes pulse-verde {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.8); }
    70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Tooltip */
.whatsapp-tooltip {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 12px;
    background: #073B66;
    color: #FFD700;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 2px solid #FFD700;
}
.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 28px;
    border: 8px solid transparent;
    border-top-color: #073B66;
}
.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   WHATSAPP NO FOOTER - BOTÃO DESTACADO
   ============================================ */
.whatsapp-footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #073B66;
    font-weight: 900;
    font-size: 14px;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    border: 2px solid #FFD700;
}
.whatsapp-footer-btn:hover {
    background: linear-gradient(135deg, #FFA500 0%, #FF8C00 100%);
    color: #fff;
    transform: translateX(5px);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.6);
}
.whatsapp-footer-btn i {
    font-size: 20px;
}

/* ============================================
   RESPONSIVO
   ============================================ */
@media (max-width: 760px) {
    .whatsapp-btn {
        padding: 14px;
    }
    .whatsapp-btn span {
        display: none;
    }
    .whatsapp-float {
        bottom: 80px; /* acima da mobile-bar */
        right: 16px;
    }
    .whatsapp-tooltip {
        display: none;
    }
    .whatsapp-footer-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   FIM DO CSS
   ============================================ */

/* =========================================================
   AJUSTE VISUAL GOV.BR / ESP-CG
   Aplicado para padronização visual leve, profissional
   e com fundo azulado institucional.
   ========================================================= */

:root {
    --gov-azul-900: #071d41;
    --gov-azul-800: #0b2f66;
    --gov-azul-700: #1351b4;
    --gov-azul-600: #2670e8;
    --gov-azul-100: #dbe8fb;
    --gov-azul-050: #eef5ff;

    --azul-principal: #1351b4;
    --azul-escuro: #0b2f66;
    --azul-profundo: #071d41;
    --azul-claro: #dbe8fb;
    --azul-hover: #c9def8;
    --azul-card: #f4f8fd;

    --dir-azul-principal: #1351b4;
    --dir-azul-escuro: #0b2f66;
    --dir-azul-profundo: #071d41;
    --dir-azul-claro: #dbe8fb;
    --dir-azul-hover: #c9def8;
    --dir-azul-card: #f4f8fd;

    --amarelo: #d6a447;
    --amarelo-claro: #fff4d7;
    --dir-dourado: #d6a447;
    --dir-dourado-claro: #fff4d7;

    --branco: #ffffff;
    --fundo: #eaf2fb;
    --dir-fundo: #eaf2fb;
    --texto: #1f2937;
    --dir-texto: #1f2937;
    --texto-suave: #4b5563;
    --dir-texto-suave: #4b5563;
    --borda: #d1d9e6;
    --dir-borda: #d1d9e6;

    --sombra: 0 12px 30px rgba(7, 29, 65, 0.13);
    --sombra-suave: 0 8px 22px rgba(7, 29, 65, 0.08);
    --dir-sombra: 0 12px 30px rgba(7, 29, 65, 0.13);
    --dir-sombra-suave: 0 8px 22px rgba(7, 29, 65, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        linear-gradient(135deg, rgba(19, 81, 180, 0.10) 0%, rgba(255, 255, 255, 0.10) 42%),
        radial-gradient(circle at 10% 0%, rgba(38, 112, 232, 0.18), transparent 34%),
        linear-gradient(180deg, #eaf2fb 0%, #f4f8fd 48%, #d9e8f7 100%) !important;
    background-attachment: fixed !important;
    color: #1f2937;
}

/* Topbars institucionais */
.topbar-admin,
.topbar-diretor,
.topbar-residente,
.topbar-coordenador,
.preceptor-topbar,
.topbar,
.header .topbar {
    background: linear-gradient(90deg, #071d41 0%, #0b2f66 45%, #1351b4 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(7, 29, 65, 0.14) !important;
    border-bottom: 3px solid rgba(255, 255, 255, 0.16);
}

.topbar-links a,
.preceptor-menu a,
.topbar-links-destaque a {
    border-radius: 999px;
}

.topbar-links a.ativo,
.preceptor-menu a.ativo {
    background: #ffffff !important;
    color: #0b2f66 !important;
}

.topbar-links a.sair,
.preceptor-menu a.sair {
    background: rgba(255,255,255,.14) !important;
    color: #ffffff !important;
}

.topbar-links a:hover,
.preceptor-menu a:hover {
    background: rgba(255,255,255,.22) !important;
    color: #ffffff !important;
}

/* Containers e painéis */
.container,
.conteudo,
.shell {
    color: #1f2937;
}

.painel,
.welcome-card,
.secao,
.box,
.bloco,
.card-info,
.tabela-box,
.resumo-horas,
.card,
.dashboard-card,
.panel,
.residente-card,
.busca-filtros,
.modal-content,
.table-card,
.chart-card {
    background: rgba(255, 255, 255, 0.96) !important;
    border-color: #d1d9e6 !important;
    box-shadow: 0 8px 22px rgba(7, 29, 65, 0.08) !important;
}

.painel,
.welcome-card,
.secao,
.box,
.bloco,
.card-info,
.tabela-box,
.resumo-horas {
    border-top-color: #1351b4 !important;
}

.card:hover,
.dashboard-card:hover,
.residente-card:hover,
.panel:hover {
    box-shadow: 0 12px 30px rgba(7, 29, 65, 0.13) !important;
}

/* Títulos */
h1,
h2,
h3,
h4,
.painel h2,
.welcome-card h2,
.secao h2,
.residente-nome,
.card-header h3 {
    color: #071d41;
}

/* Cards, KPIs e headers internos */
.card-header {
    background: linear-gradient(135deg, #0b2f66, #1351b4) !important;
    color: #ffffff !important;
}

.card-header.amarelo,
.card-header.neutro {
    background: #dbe8fb !important;
    color: #071d41 !important;
}

.kpi,
.info-box,
.stat-card,
.feature-mini,
.step {
    background: rgba(255,255,255,.96) !important;
    border-color: #d1d9e6 !important;
}

.kpi strong,
.numero,
.valor,
.stat-number,
.stat-card .valor,
.card .numero {
    color: #0b2f66 !important;
}

.stat-card,
.residente-card {
    border-left-color: #1351b4 !important;
}

/* Botões */
.btn,
button,
input[type="submit"],
.view-btn,
.btn-buscar,
.btn-primary,
.acao {
    background: #1351b4 !important;
    border-color: #1351b4 !important;
    color: #ffffff !important;
}

.btn:hover,
button:hover,
input[type="submit"]:hover,
.view-btn:hover,
.btn-buscar:hover,
.btn-primary:hover,
.acao:hover {
    background: #0b2f66 !important;
    border-color: #0b2f66 !important;
    color: #ffffff !important;
}

.btn-cinza,
.btn-secondary,
.btn-limpar,
.btn.neutro,
.btn.claro {
    background: #eef5ff !important;
    border-color: #d1d9e6 !important;
    color: #0b2f66 !important;
}

.btn-amarelo,
.btn-warning {
    background: #fff4d7 !important;
    border-color: #d6a447 !important;
    color: #5f4308 !important;
}

.btn-success,
.btn.verde {
    background: #2f7d5c !important;
    border-color: #2f7d5c !important;
    color: #ffffff !important;
}

.btn-danger {
    background: #8f4a3f !important;
    border-color: #8f4a3f !important;
    color: #ffffff !important;
}

.btn-info {
    background: #2670e8 !important;
    border-color: #2670e8 !important;
    color: #ffffff !important;
}

/* Formulários */
input,
select,
textarea {
    border-color: #d1d9e6 !important;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #1351b4 !important;
    box-shadow: 0 0 0 3px rgba(19, 81, 180, 0.13) !important;
}

/* Tabelas */
th {
    background: #e8f1fc !important;
    color: #071d41 !important;
    border-bottom: 1px solid #d1d9e6 !important;
}

td {
    border-bottom-color: #e5ebf3 !important;
}

tbody tr:nth-child(even) {
    background: #f6f9fe !important;
}

tbody tr:hover {
    background: #eef5ff !important;
}

/* Badges e alertas */
.badge,
.role-tag,
.programa-badge,
.badge-info {
    background: #dbe8fb !important;
    color: #0b2f66 !important;
    border-color: #c9def8 !important;
}

.badge-alerta,
.badge-pendente,
.situacao-badge {
    background: #fff4d7 !important;
    color: #5f4308 !important;
    border-color: #d6a447 !important;
}

.sucesso,
.alerta-sucesso {
    background: #e5f4ed !important;
    color: #2f7d5c !important;
    border-color: #c9e5d6 !important;
}

.erro,
.alerta-erro {
    background: #f9e9e6 !important;
    color: #8f4a3f !important;
    border-color: #efd1ca !important;
}

/* Menu residente e menus internos */
.menu-residente-inner {
    background: rgba(255,255,255,.96) !important;
    border-color: #d1d9e6 !important;
    box-shadow: 0 8px 22px rgba(7, 29, 65, 0.08) !important;
}

.menu-brand,
.menu-residente a:hover,
.menu-residente a.ativo {
    background: #dbe8fb !important;
    color: #0b2f66 !important;
}

.menu-residente a.ativo {
    box-shadow: inset 0 -3px 0 #1351b4 !important;
}

/* Hero e página pública */
.hero {
    background:
        radial-gradient(circle at 90% 10%, rgba(19, 81, 180, .14), transparent 32%),
        linear-gradient(135deg, #ffffff 0%, #f4f8fd 45%, #dbe8fb 100%) !important;
}

.banner {
    box-shadow: 0 12px 30px rgba(7, 29, 65, 0.13) !important;
}

.slide,
.slide:nth-child(1),
.slide:nth-child(2),
.slide:nth-child(3) {
    background: linear-gradient(135deg, #ffffff 0%, #f4f8fd 55%, #dbe8fb 100%) !important;
    color: #071d41 !important;
}

.slide h2,
.slide p,
.slide-label {
    color: #071d41 !important;
}

.slide-label {
    background: #dbe8fb !important;
    border: 1px solid #c9def8 !important;
}

.card.cadastro,
.card.sistema {
    border-color: #1351b4 !important;
    background: linear-gradient(135deg, #ffffff 0%, #f4f8fd 55%, #dbe8fb 100%) !important;
    box-shadow: 0 12px 30px rgba(7,29,65,.10) !important;
}

@media (max-width: 768px) {
    body {
        background:
            linear-gradient(180deg, #eaf2fb 0%, #f4f8fd 60%, #d9e8f7 100%) !important;
    }
}


/* =========================================================
   CORREÇÃO PRODUÇÃO — SLIDES DO TOPO CLAROS
   Mantém todos os cards rotativos do banner com fundo claro.
   ========================================================= */
.banner .slide,
.banner article.slide,
.hero .banner .slide,
.hero .banner article.slide,
.hero .banner .slide:nth-child(1),
.hero .banner .slide:nth-child(2),
.hero .banner .slide:nth-child(3) {
    background: linear-gradient(135deg, #ffffff 0%, #f4f8fd 55%, #dbe8fb 100%) !important;
    color: #071d41 !important;
}

.hero .banner .slide h2,
.hero .banner .slide p,
.hero .banner .slide .slide-label {
    color: #071d41 !important;
}

.hero .banner .slide .slide-label {
    background: #dbe8fb !important;
    border: 1px solid #c9def8 !important;
}

.hero .banner .slide .btn.claro,
.hero .banner .slide .btn.azul,
.hero .banner .slide .btn.verde {
    background: #eef5ff !important;
    border: 1px solid #c9def8 !important;
    color: #0b2f66 !important;
}
