/* ═══════════════════════════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text, #1e293b);
  background: #fff;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--acento, var(--primary, #1e3a8a)); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(.94); }
  to   { opacity: 1; transform: scale(1); }
}

/* ═══════════════════════════════════════════════════════════════════════
   UTILITIES
═══════════════════════════════════════════════════════════════════════ */
.container { max-width: 1160px; margin: 0 auto; padding: 0 1.25rem; }
.text-center { text-align: center; }
.text-muted { color: #64748b; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.required { color: #ef4444; }

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--acento, var(--primary, #1e3a8a)); color: var(--btn-text, #fff);
  border: none; padding: .6rem 1.4rem; border-radius: 8px;
  font-size: .95rem; font-weight: 600; cursor: pointer;
  transition: filter .2s, box-shadow .2s;
}
.btn-primary:hover { filter: brightness(.88); text-decoration: none; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--secondary, #3b82f6); color: #fff;
  border: none; padding: .6rem 1.4rem; border-radius: 8px;
  font-size: .95rem; font-weight: 600; cursor: pointer;
  transition: filter .2s;
}
.btn-secondary:hover { filter: brightness(.88); text-decoration: none; }
.btn-outline {
  display: inline-flex; align-items: center; gap: .4rem;
  background: transparent; color: var(--acento, var(--primary, #1e3a8a));
  border: 2px solid var(--acento, var(--primary, #1e3a8a)); padding: .55rem 1.3rem;
  border-radius: 8px; font-size: .95rem; font-weight: 600; cursor: pointer;
  transition: background .2s, color .2s;
}
.btn-outline:hover { background: var(--acento, var(--primary, #1e3a8a)); color: #fff; text-decoration: none; }
.btn-sm { padding: .4rem .9rem; font-size: .85rem; }
.btn-full { width: 100%; justify-content: center; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-loading { pointer-events: none; opacity: .72; }
.btn-loading::before {
  content: ''; display: inline-block;
  width: .85em; height: .85em;
  border: 2px solid currentColor; border-top-color: transparent;
  border-radius: 50%; animation: spin .65s linear infinite;
  vertical-align: middle; flex-shrink: 0;
}

/* Alerts */
.alert {
  display: flex; align-items: flex-start; gap: .5rem;
  padding: .75rem 1rem; border-radius: 8px; margin-bottom: 1rem; font-size: .9rem;
}
.alert .material-icons { font-size: 1.1rem; flex-shrink: 0; margin-top: .05rem; }
.alert-success  { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-danger   { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-warning  { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.alert-info     { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }

/* Badges */
.badge {
  display: inline-block; padding: .2rem .55rem; border-radius: 99px;
  font-size: .72rem; font-weight: 600; line-height: 1.4;
}
.badge-primary   { background: #dbeafe; color: #1e40af; }
.badge-success   { background: #dcfce7; color: #166534; }
.badge-danger    { background: #fee2e2; color: #991b1b; }
.badge-secondary { background: #f1f5f9; color: #475569; }

/* ═══════════════════════════════════════════════════════════════════════
   PUBLIC HEADER
═══════════════════════════════════════════════════════════════════════ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  background: linear-gradient(to right, var(--grad-esq, #fff) var(--grad-pos, 30%), var(--primary, #1e3a8a) calc(var(--grad-pos, 30%) + 22%));
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
  transition: background .3s, box-shadow .3s;
}
.header-inner {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: var(--header-height, 44px);
  padding-top: .2rem;
  padding-bottom: .5rem;
  transition: min-height .15s ease-out, padding .15s ease-out, gap .15s ease-out;
}
.header-brand {
  display: flex; align-items: center; gap: .85rem;
  text-decoration: none; color: inherit; flex-shrink: 0; min-width: 0;
}
.header-brand:hover { text-decoration: none; }
.header-logo {
  transform-origin: left center;
  transition: transform .15s ease-out, opacity .15s ease-out;
  flex-shrink: 0;
}
.header-right {
  margin-left: auto; min-width: 0;
  display: flex; flex-direction: column; align-items: flex-end; gap: .55rem;
  transition: gap .15s ease-out;
}
.header-title {
  color: var(--titulo-cor, var(--menu-text, #fff)); font-size: var(--title-size-desktop, 1.2rem); font-weight: 700;
  line-height: 1.15; max-width: 280px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
  transition: font-size .15s ease-out, max-width .15s ease-out;
}
.header-nav { display: flex; align-items: center; justify-content: flex-end; gap: .25rem; width: 100%; }
.header-nav a {
  color: var(--menu-text, #fff); opacity: .88; padding: .45rem .8rem; border-radius: 6px;
  font-size: .92rem; font-weight: 500; transition: background .2s, color .2s, opacity .2s;
  text-decoration: none;
}
.header-nav a:hover { background: rgba(255,255,255,.15); color: var(--menu-text, #fff); opacity: 1; }
.header-nav a.active:not(.btn-nav) { color: var(--menu-text, #fff); opacity: 1; outline: 2px solid currentColor; outline-offset: -2px; }
.header-nav .btn-nav {
  background: rgba(255,255,255,.2); color: var(--menu-text, #fff); border-radius: 6px;
  font-weight: 600; border: 1px solid rgba(255,255,255,.4); opacity: 1;
}
.header-nav .btn-nav:hover { background: rgba(255,255,255,.35); }
.header-contacts {
  display: flex; align-items: center; justify-content: flex-end; gap: .5rem; flex-wrap: wrap; width: 100%;
}
.hc-link {
  display: flex; align-items: center; gap: .3rem;
  color: var(--menu-text, #fff); opacity: .88; font-size: .875rem; text-decoration: none;
  padding: .3rem .5rem; border-radius: 6px; transition: background .2s, opacity .2s;
}
.hc-link:hover { background: rgba(255,255,255,.15); color: var(--menu-text, #fff); opacity: 1; text-decoration: none; }
.hc-whats { color: #4ade80; }
.hc-social { font-size: 1rem; }
.header-social { display: flex; align-items: center; gap: 0; }
.header-contacts,
.header-social {
  transition: opacity .22s ease, max-height .22s ease, transform .22s ease, margin .22s ease;
}
.site-header.is-condensed {
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.site-header.is-condensed .header-inner {
  min-height: clamp(40px, calc(var(--header-height, 64px) * .5), 68px);
  padding-top: .04rem;
  padding-bottom: .04rem;
  gap: .4rem;
  align-items: center;
}
.site-header.is-condensed .header-brand {
  gap: .35rem;
}
.site-header.is-condensed .header-logo {
  height: clamp(28px, calc(var(--header-height, 64px) * .42), 44px) !important;
  max-height: clamp(28px, calc(var(--header-height, 64px) * .42), 44px) !important;
  width: auto;
  transform: none;
}
.site-header.is-condensed .header-title {
  font-size: 0;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
}
.site-header.is-condensed .header-right {
  gap: 0;
  justify-content: center;
}
.site-header.is-condensed .header-contacts,
.site-header.is-condensed .header-social {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  margin: 0;
}
.site-header.is-condensed .header-nav a {
  padding-top: .12rem;
  padding-bottom: .12rem;
  padding-left: .58rem;
  padding-right: .58rem;
  font-size: .82rem;
}
.nav-toggle {
  display: none; background: transparent; border: none; color: #fff;
  padding: .3rem; cursor: pointer;
}
@media (max-width: 900px) {
  .header-contacts { display: none; }
}
@media (max-width: 700px) {
  .header-inner { gap: .5rem; }
  .header-brand { gap: .6rem; flex-shrink: 1; min-width: 0; max-width: calc(100% - 60px); overflow: hidden; }
  .header-title { font-size: var(--title-size-mobile, 1rem); max-width: 180px; }
  .header-right { display: block; flex: 0 0 0; min-width: 0; margin-left: 0; overflow: visible; }
  .site-header.is-condensed .header-logo {
    height: clamp(28px, calc(var(--header-height, 64px) * .42), 40px) !important;
    max-height: clamp(28px, calc(var(--header-height, 64px) * .42), 40px) !important;
  }
  .site-header.is-condensed .header-title { font-size: var(--title-size-mobile-condensed, .95rem); max-width: 160px; }
  .header-nav {
    display: none; position: absolute; top: var(--header-height, 64px); left: 0; right: 0;
    background: var(--primary, #1e3a8a); flex-direction: column; align-items: stretch;
    padding: .5rem 1rem 1rem; gap: 0;
  }
  .header-nav.open { display: flex; }
  .header-nav a { padding: .75rem 1rem; border-radius: 6px; }
  .site-header.is-condensed .header-nav a { padding: .75rem 1rem; }
  .nav-toggle { display: flex; flex-shrink: 0; margin-left: auto; padding: .45rem .6rem; }
}

/* ═══════════════════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════════════════ */
.hero {
  position: relative; height: 100vh; min-height: 520px;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  padding-top: var(--header-height, 52px);
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.5s ease-in-out;
}
.hero-slide.active { opacity: 1; }
.hero-slide-fallback { background: var(--primary, #1e3a8a); opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.3) 0%, rgba(0,0,0,.55) 100%);
  z-index: 1;
}
.hero-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 2rem; color: #fff;
}
.hero-subtitle {
  font-size: 1rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.8); margin-bottom: .75rem;
}
.hero-title {
  font-size: clamp(2rem, 5.5vw, 4rem); font-weight: 800;
  line-height: 1.1; margin-bottom: 2rem;
  text-shadow: 0 3px 16px rgba(0,0,0,.4);
}
.btn-hero {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--secondary, #3b82f6); color: #fff;
  padding: .85rem 2.2rem; border-radius: 50px; font-size: 1.05rem;
  font-weight: 700; text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
}
.btn-hero:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,.4); text-decoration: none; color: #fff; }
.hero-dots {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: .5rem; z-index: 3;
}
.hero-dot {
  width: 10px; height: 10px; border-radius: 50%; border: 2px solid rgba(255,255,255,.6);
  background: transparent; cursor: pointer; transition: background .2s;
}
.hero-dot.active { background: #fff; border-color: #fff; }
@media (max-width: 768px) {
  .hero { height: 70vh; min-height: 420px; }
  .hero-slide { background-position: top center; }
}

/* ═══════════════════════════════════════════════════════════════════════
   SECTION BASE
═══════════════════════════════════════════════════════════════════════ */
.section-title {
  display: flex; align-items: center; gap: .6rem;
  font-size: 2rem; font-weight: 700; color: var(--acento, var(--primary, #1e3a8a));
  margin-bottom: 2.5rem; justify-content: center;
}
.section-title .material-icons { font-size: 2rem; }

/* ═══════════════════════════════════════════════════════════════════════
   CARROSSEL (público)
═══════════════════════════════════════════════════════════════════════ */
.section-carrossel {
  padding: 5rem 0; background: #f8fafc;
}
.carrossel-wrapper {
  position: relative; display: flex; align-items: center; gap: .75rem;
}
.carrossel-track-outer { overflow: hidden; flex: 1; border-radius: 12px; }
.carrossel-track {
  display: flex; transition: transform .4s ease;
}
.carrossel-item { flex: 0 0 33.333%; padding: 0 .4rem; }
.carrossel-img-wrap {
  position: relative; overflow: hidden; border-radius: 10px;
  aspect-ratio: 4/3; cursor: zoom-in;
  box-shadow: 0 2px 12px rgba(0,0,0,.1);
}
.carrossel-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.carrossel-img-wrap:hover img { transform: scale(1.04); }
.carrossel-legenda {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  color: #fff; padding: .8rem .75rem .5rem; font-size: .82rem;
  border-radius: 0 0 10px 10px;
}
.carrossel-btn {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
  border: none; background: var(--acento, var(--primary, #1e3a8a)); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: filter .2s; z-index: 2;
}
.carrossel-btn:hover { filter: brightness(.88); }
.carrossel-btn:disabled { opacity: .35; cursor: default; }
.carrossel-dots-bar {
  display: flex; justify-content: center; gap: .4rem; margin-top: 1rem;
}
.carrossel-dots-bar button {
  width: 8px; height: 8px; border-radius: 50%; border: none;
  background: #cbd5e1; cursor: pointer; transition: background .2s;
}
.carrossel-dots-bar button.active { background: var(--acento, var(--primary, #1e3a8a)); }
@media (max-width: 768px) {
  .carrossel-item { flex: 0 0 100%; }
}
@media (min-width: 769px) and (max-width: 1023px) {
  .carrossel-item { flex: 0 0 50%; }
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 9990;
  background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center;
}
.lightbox img { max-height: 90vh; max-width: 90vw; border-radius: 6px; }
.lightbox-close {
  position: absolute; top: 1rem; right: 1rem;
  background: rgba(255,255,255,.15); border: none; color: #fff;
  border-radius: 50%; width: 40px; height: 40px; display: flex;
  align-items: center; justify-content: center; cursor: pointer; font-size: 1.5rem; z-index: 1;
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.18); border: none; color: #fff;
  border-radius: 50%; width: 52px; height: 52px; display: flex;
  align-items: center; justify-content: center; cursor: pointer;
  transition: background .2s; z-index: 1;
}
.lightbox-nav:hover { background: rgba(255,255,255,.32); }
.lightbox-prev { left: 1.25rem; }
.lightbox-next { right: 1.25rem; }
.lightbox-nav .material-icons { font-size: 2rem; }

/* ═══════════════════════════════════════════════════════════════════════
   SEÇÕES CUSTOMIZÁVEIS
═══════════════════════════════════════════════════════════════════════ */
.section-custom { padding: 5rem 0; }
.section-custom:nth-child(even) { background: #f8fafc; }
.section-custom.secao-destaque {
  border-top: 4px solid var(--acento, var(--primary, #1e3a8a));
  border-bottom: 4px solid var(--acento, var(--primary, #1e3a8a));
  box-shadow: 0 -2px 0 rgba(30,58,138,.08), 0 2px 0 rgba(30,58,138,.08);
}
.secao-inner {
  display: flex; align-items: stretch; gap: 4rem;
}
.layout-odd  .secao-inner { flex-direction: row; }
.layout-even .secao-inner { flex-direction: row-reverse; }
.secao-foto  { flex: 0 0 45%; min-height: 220px; }
.secao-inner--centralizado { text-align: center; }
.secao-titulo-central {
  font-size: 2rem; font-weight: 700; color: var(--acento, var(--primary, #1e3a8a));
  line-height: 1.2; margin: 0 0 1.5rem;
}
.secao-inner--centralizado .secao-foto { width: 90%; margin: 0 auto; padding-top: 32px; min-height: 0; }
.secao-inner--centralizado .secao-foto img { height: auto; }
.secao-inner--centralizado .btn-secondary { margin-top: 1.5rem; }
.secao-foto--fixo { align-self: flex-start; min-height: 0; }
.secao-foto img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,.12);
  display: block;
}
.secao-texto { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.secao-texto h2 {
  font-size: 2rem; font-weight: 700; color: var(--acento, var(--primary, #1e3a8a));
  margin-bottom: 1rem; line-height: 1.2;
}
.secao-corpo { color: #475569; line-height: 1.8; font-size: 1.05rem; }
.secao-fullwidth { max-width: 720px; margin: 0 auto; }
.secao-fullwidth h2 {
  font-size: 2rem; font-weight: 700; color: var(--acento, var(--primary, #1e3a8a)); margin-bottom: 1rem;
}
@media (max-width: 768px) {
  .secao-inner { flex-direction: column !important; gap: 2rem; }
  .secao-foto  { flex: none; width: 100%; min-height: 200px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   MEMBROS / GESTÃO ATUAL
═══════════════════════════════════════════════════════════════════════ */
.section-membros { padding: 5rem 0; background: #f8fafc; }
.membros-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 200px));
  justify-content: center;
  gap: 2rem;
}
.membro-card {
  text-align: center; padding: 2rem 1.5rem;
  background: #fff; border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
  transition: transform .2s, box-shadow .2s;
}
.membro-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,.12); }
.membro-foto {
  width: 110px; height: 110px; border-radius: 50%;
  object-fit: cover; margin: 0 auto 1.2rem;
  border: 4px solid var(--secondary, #3b82f6);
}
.membro-foto-placeholder {
  width: 110px; height: 110px; border-radius: 50%;
  background: #e2e8f0; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.2rem; border: 4px solid var(--secondary, #3b82f6);
}
.membro-foto-placeholder .material-icons { font-size: 3rem; color: #94a3b8; }
.membro-nome  { font-size: 1rem; font-weight: 700; color: var(--acento, var(--primary, #1e3a8a)); margin-bottom: .3rem; }
.membro-cargo { font-size: .875rem; color: var(--secondary, #3b82f6); font-weight: 600; margin-bottom: .3rem; }
.membro-periodo { font-size: .8rem; color: #94a3b8; }

/* ═══════════════════════════════════════════════════════════════════════
   FORMULÁRIO DE CONTATO
═══════════════════════════════════════════════════════════════════════ */
.section-contato { padding: 5rem 0; }
.contato-wrapper { display: grid; grid-template-columns: 1fr 2fr; gap: 4rem; align-items: start; }
.contato-wrapper--full { grid-template-columns: 1fr; max-width: 720px; margin: 0 auto; }
.contato-info { padding-top: .5rem; display: flex; flex-direction: column; align-items: center; }
.ci-item {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: .5rem; margin-bottom: 1.75rem; font-size: 1rem;
}
.ci-icon {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--acento, var(--primary, #1e3a8a)); color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1rem;
}
.ci-icon--sm { width: 28px; height: 28px; font-size: .85rem; flex-shrink: 0; }
.ci-item a { color: #475569; text-decoration: none; }
.ci-item a:hover { color: var(--acento, var(--primary, #1e3a8a)); }
.ci-horario { width: 100%; border-top: 1px solid #e2e8f0; padding-top: 1.25rem; margin-top: .25rem; }
.ci-horario-titulo { display: flex; align-items: center; gap: .6rem; font-weight: 600; font-size: .9rem; color: #374151; margin-bottom: .75rem; }
.ci-horario-row { display: flex; justify-content: space-between; font-size: .85rem; color: #475569; padding: .2rem 0; border-bottom: 1px solid #f1f5f9; }
.ci-horario-label { font-weight: 500; }
.form-contato .form-group { margin-bottom: 1.25rem; }
.form-contato label { display: block; margin-bottom: .4rem; font-size: .9rem; font-weight: 500; }
.form-contato .form-control {
  width: 100%; border: 1.5px solid #e2e8f0; padding: .65rem .9rem;
  border-radius: 8px; font-size: 1rem; background: #fff; color: var(--text, #1e293b);
  transition: border-color .2s, box-shadow .2s;
}
.form-contato .form-control:focus {
  outline: none; border-color: var(--acento, var(--primary, #1e3a8a));
  box-shadow: 0 0 0 3px rgba(30,58,138,.12);
}
@media (max-width: 768px) {
  .contato-wrapper { grid-template-columns: 1fr; gap: 2rem; }
}

/* ═══════════════════════════════════════════════════════════════════════
   FOOTER PÚBLICO
═══════════════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--acento, var(--primary, #1e3a8a)); color: rgba(255,255,255,.85);
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: flex-start;
  justify-content: space-between; gap: 1.5rem;
}
.footer-inner strong { display: block; color: #fff; margin-bottom: .25rem; }
.footer-cnpj { font-size: .82rem; opacity: .7; display: block; }
.footer-contacts { display: flex; flex-direction: column; gap: .5rem; }
.footer-contacts a { color: rgba(255,255,255,.8); text-decoration: none; font-size: .9rem; }
.footer-contacts a:hover { color: #fff; }
.footer-horario { display: flex; flex-direction: column; gap: .25rem; margin-top: .6rem; }
.footer-horario-titulo {
  font-size: .75rem; font-weight: 600; color: rgba(255,255,255,.55);
  text-transform: uppercase; letter-spacing: .05em; margin-bottom: .15rem;
}
.footer-horario-linha { display: flex; gap: .35rem; font-size: .85rem; color: rgba(255,255,255,.8); }
.footer-horario-dias { font-weight: 600; color: #fff; white-space: nowrap; }
.footer-horario-fechado .footer-horario-val { color: rgba(255,255,255,.45); }
.footer-copy { font-size: .8rem; opacity: .6; align-self: flex-end; }
.footer-social { display: flex; align-items: center; gap: .25rem; }
.footer-social-link {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  color: rgba(255,255,255,.75); text-decoration: none;
  border: 1px solid rgba(255,255,255,.25);
  transition: color .2s, background .2s, border-color .2s;
}
.footer-social-link:hover { color: #fff; background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.5); text-decoration: none; }
@media (max-width: 600px) { .footer-inner { flex-direction: column; } }

/* ═══════════════════════════════════════════════════════════════════════
   BANNER POPUP
═══════════════════════════════════════════════════════════════════════ */
.banner-popup {
  display: none;
}
.banner-popup-inner {
  position: relative; display: flex;
  align-items: center; justify-content: center;
  animation: fadeInScale .3s ease;
  max-width: min(92vw, 900px);
  max-height: 92vh;
}
.banner-popup-img {
  display: block; width: auto; height: auto;
  max-width: 100%; max-height: 88vh;
  border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5);
  object-fit: contain;
}
.banner-popup-close {
  position: absolute; top: -14px; right: -14px;
  width: 34px; height: 34px; border-radius: 50%; border: none;
  background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.3);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.banner-popup-close .material-icons { font-size: 1.1rem; color: #374151; }
@media (max-width: 600px) {
  .banner-popup { padding: .5rem; align-items: flex-end; padding-bottom: 2rem; }
  .banner-popup-inner { max-width: 100%; max-height: 80vh; }
  .banner-popup-img  { max-height: 75vh; border-radius: 8px; }
  .banner-popup-close { top: -12px; right: -4px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   LOGIN PAGE
═══════════════════════════════════════════════════════════════════════ */
.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--acento, var(--primary, #1e3a8a)) 0%, var(--secondary, #3b82f6) 100%);
}
.login-wrap { width: 100%; max-width: 400px; padding: 1.5rem; }
.login-card {
  background: #fff; border-radius: 16px; padding: 2.5rem;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.login-logo { text-align: center; margin-bottom: 2rem; }
.login-logo h1 { font-size: 1.6rem; font-weight: 700; color: var(--acento, var(--primary, #1e3a8a)); margin-top: .5rem; }
.login-logo p { font-size: .9rem; color: #64748b; margin-top: .25rem; }
.login-form .form-group { margin-bottom: 1.25rem; }
.login-form label { display: block; margin-bottom: .4rem; font-size: .9rem; font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════════════
   FORM CONTROLS (GLOBAL)
═══════════════════════════════════════════════════════════════════════ */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; margin-bottom: .4rem; font-size: .875rem; font-weight: 600; color: #374151; }
.form-control {
  width: 100%; border: 1.5px solid #e2e8f0; padding: .6rem .9rem;
  border-radius: 8px; font-size: .9rem; background: #fff;
  color: var(--text, #1e293b); transition: border-color .2s, box-shadow .2s;
}
.form-control:focus {
  outline: none; border-color: var(--acento, var(--primary, #1e3a8a));
  box-shadow: 0 0 0 3px rgba(30,58,138,.1);
}
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M6 8L0 0h12z' fill='%2394a3b8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .75rem center; padding-right: 2.2rem; }
.form-hint { display: block; margin-top: .3rem; font-size: .78rem; color: #94a3b8; }
.form-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.form-row .form-group { min-width: 0; }
.form-actions { display: flex; justify-content: flex-end; gap: .75rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid #f1f5f9; flex-wrap: wrap; }
.input-group { position: relative; display: flex; }
.input-group .form-control { flex: 1; padding-left: 2.4rem; }
.input-group .input-icon {
  position: absolute; left: .75rem; top: 50%; transform: translateY(-50%);
  color: #94a3b8; pointer-events: none;
}
.input-group .toggle-senha {
  background: transparent; border: none; padding: 0 .75rem;
  color: #94a3b8; cursor: pointer; transition: color .2s;
}
.input-group .toggle-senha:hover { color: var(--acento, var(--primary, #1e3a8a)); }
.switch-label { display: flex; align-items: center; gap: .5rem; cursor: pointer; font-size: .875rem; font-weight: 500; }
.switch-label input[type=checkbox] { width: 16px; height: 16px; cursor: pointer; }
.range-input { width: 100%; accent-color: var(--acento, var(--primary, #1e3a8a)); }
.upload-row { display: flex; gap: 1rem; flex-wrap: wrap; align-items: flex-start; }
.current-img { margin-bottom: .75rem; }
.noticia-upload-count { margin-top: .5rem; font-size: .85rem; color: #64748b; }
.noticia-imagens-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(140px, 100%), 1fr));
  gap: .9rem;
  margin-top: 1rem;
}
.noticia-imagem-chip {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .06);
}
.noticia-imagem-chip img { width: 100%; height: 130px; object-fit: cover; }
.noticia-imagem-remove {
  position: absolute;
  top: .45rem;
  right: .45rem;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(127, 29, 29, .35);
}
.noticia-imagem-remove:hover { background: #b91c1c; }
.noticia-imagem-remove .material-icons { font-size: 1rem; }
.noticia-imagem-chip.is-removed { opacity: .38; filter: grayscale(1); }

/* ── Tags input (SEO keywords) ──────────────────────────────────────── */
.tags-field {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: flex-start;
  gap: .35rem;
  padding: .4rem .65rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 6px;
  min-height: 44px;
  background: #fff;
  cursor: text;
  transition: border-color .15s, box-shadow .15s;
}
.tags-field:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  background: #eff6ff;
  color: #1e40af;
  border: 1.5px solid #bfdbfe;
  border-radius: 100px;
  padding: .18rem .5rem .18rem .72rem;
  font-size: .8rem;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.4;
}
.tag-chip-remove {
  background: none;
  border: none;
  color: #93c5fd;
  cursor: pointer;
  padding: 0;
  font-size: 1.1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  transition: color .1s;
}
.tag-chip-remove:hover { color: #1e40af; }
.tags-field-input {
  border: none;
  outline: none;
  box-shadow: none;
  flex: 1 1 120px;
  min-width: 120px;
  width: auto;
  height: 32px;
  font-size: .875rem;
  padding: 0 .25rem;
  background: transparent;
  font-family: inherit;
  color: #1e293b;
}
.tags-field-input::placeholder { color: #94a3b8; }

/* ═══════════════════════════════════════════════════════════════════════
   ADMIN LAYOUT
═══════════════════════════════════════════════════════════════════════ */
.admin-body { background: #f1f5f9; }
.admin-wrapper { display: flex; min-height: 100vh; }

/* Sidebar */
.admin-sidebar {
  width: 240px; min-width: 240px; background: var(--primary, #1e3a8a);
  color: #fff; display: flex; flex-direction: column; padding: 0;
  transition: left .3s; z-index: 800;
}
.sidebar-brand {
  padding: 1.25rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,.12);
  font-size: 1rem; font-weight: 700; color: #fff;
}
.sidebar-nav { flex: 1; padding: .75rem .5rem; overflow-y: auto; }
.sidebar-bottom { padding: .5rem .5rem 1rem; border-top: 1px solid rgba(255,255,255,.12); }
.sidebar-divider { height: 1px; background: rgba(255,255,255,.12); margin: .5rem .75rem; }
.sidebar-version-box {
  margin: .75rem .25rem 0;
  padding: .85rem .9rem 0;
  border-top: 1px solid rgba(255,255,255,.12);
}
.sidebar-version-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.5);
}
.sidebar-version-value {
  margin-top: .2rem;
  font-size: .84rem;
  font-weight: 600;
  color: #fff;
  word-break: break-word;
}
.sidebar-update-retry {
  width: 100%;
  margin-top: .7rem;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: #fff;
  border-radius: 8px;
  padding: .55rem .75rem;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.sidebar-update-retry:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.28);
}
.sidebar-update-status {
  margin-top: .55rem;
  font-size: .76rem;
  line-height: 1.45;
  color: rgba(255,255,255,.72);
}
.nav-link {
  display: flex; align-items: center; gap: .6rem;
  color: var(--menu-text, rgba(255,255,255,.8)); padding: .6rem .75rem; border-radius: 8px;
  font-size: .9rem; font-weight: 500; text-decoration: none;
  margin-bottom: .15rem; transition: background .2s, color .2s;
}
.nav-link:hover { background: rgba(255,255,255,.12); color: var(--menu-text, #fff); text-decoration: none; }
.nav-link.active { background: rgba(255,255,255,.2); color: var(--menu-text, #fff); }
.nav-link .material-icons { font-size: 1.15rem; flex-shrink: 0; }
.nav-link-logout { color: rgba(255,100,100,.85); }
.nav-link-logout:hover { background: rgba(239,68,68,.15); color: #fca5a5; }
.badge-notif {
  background: #ef4444; color: #fff; border-radius: 99px;
  font-size: .65rem; padding: .15rem .45rem; margin-left: auto;
}

/* Main area */
.admin-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.admin-topbar {
  background: #fff; border-bottom: 1px solid #e2e8f0;
  padding: .75rem 1.5rem; display: flex; align-items: center; gap: 1rem;
  position: sticky; top: 0; z-index: 50;
}
.sidebar-toggle {
  display: none; background: transparent; border: none;
  color: #475569; padding: .2rem; cursor: pointer;
}
.topbar-user { margin-left: auto; font-size: .88rem; color: #475569; display: flex; align-items: center; gap: .4rem; }
.nivel-badge {
  display: inline-block; padding: .15rem .45rem; border-radius: 99px;
  font-size: .7rem; font-weight: 600;
}
.nivel-admin { background: #dbeafe; color: #1e40af; }
.nivel-user  { background: #f0fdf4; color: #166534; }
.admin-content { padding: 2rem 1.5rem; flex: 1; }
.sidebar-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 799;
}

/* Mobile sidebar */
@media (max-width: 900px) {
  .admin-sidebar {
    position: fixed; top: 0; left: -240px; height: 100vh;
  }
  .admin-sidebar.open { left: 0; }
  .sidebar-toggle { display: flex; }
  .sidebar-overlay.open { display: block; }
  .admin-content { padding: 1.25rem; }
}

/* ═══════════════════════════════════════════════════════════════════════
   ADMIN COMPONENTS
═══════════════════════════════════════════════════════════════════════ */
.page-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .75rem; margin-bottom: 1.75rem;
}
.page-header h2 {
  display: flex; align-items: center; gap: .5rem;
  font-size: 1.5rem; font-weight: 700; color: #1e293b;
}
.page-header h2 .material-icons { color: var(--acento, var(--primary, #1e3a8a)); font-size: 1.5rem; }
.counter-badge {
  background: #f1f5f9; color: #475569; padding: .3rem .75rem;
  border-radius: 99px; font-size: .82rem; font-weight: 600;
}

/* Card */
.card {
  background: #fff; border-radius: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.06);
  border: 1px solid #e2e8f0;
}
.card-header {
  padding: 1rem 1.25rem; border-bottom: 1px solid #e2e8f0;
  font-weight: 600; display: flex; align-items: center; gap: .5rem; color: #374151;
}
.card-body { padding: 1.25rem; }
.card-body.p-0 { padding: 0; overflow-x: auto; }

/* Stats grid */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 1.25rem; margin-bottom: 2rem; }
.stat-card {
  background: #fff; border-radius: 12px; padding: 1.25rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.06); border: 1px solid #e2e8f0;
  display: flex; align-items: center; gap: 1rem; text-decoration: none;
  transition: box-shadow .2s, transform .2s;
}
.stat-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); transform: translateY(-2px); text-decoration: none; }
.stat-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.stat-icon .material-icons { color: #fff; font-size: 1.4rem; }
.bg-primary   { background: var(--acento, var(--primary, #1e3a8a)); }
.bg-secondary { background: var(--secondary, #3b82f6); }
.stat-value { font-size: 1.75rem; font-weight: 800; color: #1e293b; line-height: 1; }
.stat-label { font-size: .8rem; color: #64748b; margin-top: .2rem; }

/* Quick actions */
.quick-actions { margin-top: .5rem; }
.quick-actions h3 { font-size: 1rem; font-weight: 600; color: #64748b; margin-bottom: 1rem; }
.qa-grid { display: flex; flex-wrap: wrap; gap: .75rem; }
.qa-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #fff; border: 1.5px solid #e2e8f0; border-radius: 8px;
  padding: .6rem 1.1rem; font-size: .875rem; font-weight: 500; color: #374151;
  text-decoration: none; cursor: pointer;
  transition: border-color .2s, box-shadow .2s, color .2s;
}
.qa-btn:hover { border-color: var(--acento, var(--primary, #1e3a8a)); color: var(--acento, var(--primary, #1e3a8a)); box-shadow: 0 2px 8px rgba(0,0,0,.06); text-decoration: none; }
.qa-btn .material-icons { color: var(--acento, var(--primary, #1e3a8a)); font-size: 1.1rem; }

/* Fotos grid (carrossel admin) */
.fotos-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
  gap: 1rem; margin-top: 1rem;
}
.foto-card { background: #fff; border-radius: 10px; overflow: hidden; border: 1px solid #e2e8f0; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.foto-card img { width: 100%; height: 150px; object-fit: cover; display: block; }
.foto-card-body { padding: .6rem .75rem; }
.foto-legenda { font-size: .82rem; color: #475569; margin-bottom: .5rem; }
.foto-card-actions { display: flex; gap: .3rem; justify-content: flex-end; }
.foto-card-drag {
  display: flex; align-items: center; justify-content: center;
  padding: .3rem; background: #f8fafc; cursor: grab; color: #94a3b8;
  border-bottom: 1px solid #f1f5f9; font-size: 1.1rem;
}
.foto-card-drag:active { cursor: grabbing; }
.foto-card-ghost { opacity: .4; }

/* Btn icon */
.btn-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 6px;
  border: 1px solid #e2e8f0; background: #fff;
  color: #475569; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.btn-icon:hover { background: #f1f5f9; border-color: #cbd5e1; color: #1e293b; }
.btn-icon.btn-danger { border-color: #fecaca; color: #ef4444; }
.btn-icon.btn-danger:hover { background: #fee2e2; }

/* List table */
.list-table { display: flex; flex-direction: column; gap: .5rem; }
.list-row {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
  display: flex; align-items: center; gap: 1rem; padding: .75rem 1rem;
  transition: box-shadow .15s;
}
.list-row:hover { box-shadow: 0 2px 10px rgba(0,0,0,.07); }
.list-thumb { width: 54px; flex-shrink: 0; }
.list-thumb img { width: 54px; height: 54px; object-fit: cover; border-radius: 6px; }
.thumb-placeholder {
  width: 54px; height: 54px; background: #f1f5f9; border-radius: 6px;
  display: flex; align-items: center; justify-content: center; color: #94a3b8;
}
.thumb-round, .list-thumb img[style*="border-radius:50%"] { border-radius: 50% !important; }
.list-info { flex: 1; min-width: 0; }
.list-info strong { display: block; font-size: .9rem; }
.list-info p { font-size: .8rem; color: #64748b; margin-top: .15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-info small { font-size: .75rem; color: #94a3b8; }
.list-status { flex-shrink: 0; }
.list-actions { display: flex; gap: .3rem; flex-shrink: 0; }

/* Data table */
.data-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.data-table thead { background: #f8fafc; }
.data-table th { padding: .75rem 1rem; text-align: left; font-weight: 600; color: #64748b; border-bottom: 1px solid #e2e8f0; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.data-table td { padding: .75rem 1rem; border-bottom: 1px solid #f1f5f9; color: #374151; }
.data-table tbody tr:hover { background: #f8fafc; }
.data-table tbody tr:last-child td { border-bottom: none; }

/* Contatos */
.contatos-list { display: flex; flex-direction: column; gap: .75rem; }
.contato-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; }
.contato-novo { border-left: 4px solid var(--acento, var(--primary, #1e3a8a)); }
.contato-header { display: flex; align-items: center; justify-content: space-between; padding: .9rem 1.1rem; background: #f8fafc; flex-wrap: wrap; gap: .5rem; }
.contato-meta { display: flex; align-items: center; gap: 1rem; font-size: .8rem; color: #94a3b8; }
.contato-body { padding: .9rem 1.1rem; }
.contato-info { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-bottom: .75rem; }
.contato-info a { font-size: .85rem; color: #475569; text-decoration: none; }
.contato-info a:hover { color: var(--acento, var(--primary, #1e3a8a)); }
.contato-mensagem { font-size: .9rem; color: #374151; line-height: 1.6; }

/* Empty state */
.empty-state {
  text-align: center; padding: 4rem 2rem; color: #94a3b8;
}
.empty-state .material-icons { font-size: 4rem; margin-bottom: 1rem; }
.empty-state p { font-size: 1rem; }
.empty-state a { color: var(--acento, var(--primary, #1e3a8a)); }

/* Tabs */
.tabs-container { }
.tabs-nav {
  display: flex; gap: .25rem; flex-wrap: nowrap;
  border-bottom: 2px solid #e2e8f0; margin-bottom: 1.5rem; overflow-x: auto; overflow-y: hidden;
  scrollbar-width: thin;
}
.tabs-nav::-webkit-scrollbar { height: 0; width: 0; }
.tab-btn {
  display: flex; align-items: center; gap: .4rem;
  padding: .65rem 1rem; border: none; background: transparent;
  font-size: .85rem; font-weight: 600; color: #64748b; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  white-space: nowrap; transition: color .15s;
}
.tab-btn:hover { color: var(--acento, var(--primary, #1e3a8a)); }
.tab-btn.active { color: var(--acento, var(--primary, #1e3a8a)); border-bottom-color: var(--acento, var(--primary, #1e3a8a)); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Color picker */
.color-picker-group { display: flex; gap: .5rem; align-items: center; }
.color-picker-group input[type=color] { width: 44px; height: 38px; border: 1.5px solid #e2e8f0; border-radius: 6px; cursor: pointer; padding: 2px; }
.color-picker-group .form-control { flex: 1; }
.paletas-grid { display: flex; flex-direction: column; gap: 1rem; margin-top: .75rem; }
.paleta-grupo {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
.paleta-grupo-titulo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .85rem;
  font-size: .95rem;
  font-weight: 700;
  color: #1e293b;
}
.paleta-grupo-desc {
  font-size: .8rem;
  font-weight: 500;
  color: #64748b;
}
.paleta-grupo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.paleta-btn {
  display: flex; align-items: center; gap: .5rem;
  border: 1.5px solid #e2e8f0; background: #fff; border-radius: 8px;
  padding: .4rem .75rem; cursor: pointer; font-size: .8rem; font-weight: 500;
  transition: border-color .15s;
}
.paleta-btn:hover { border-color: var(--acento, var(--primary, #1e3a8a)); }
.paleta-dots { display: flex; gap: 3px; }
.paleta-dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.modal-box {
  background: #fff; border-radius: 16px; width: 100%; max-width: 500px;
  box-shadow: 0 20px 60px rgba(0,0,0,.2); animation: fadeInScale .2s ease;
  max-height: 90vh; overflow-y: auto;
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem; border-bottom: 1px solid #e2e8f0;
}
.modal-header h3 { font-size: 1.1rem; font-weight: 700; }
.modal-box .card-body { padding: 1.5rem; }
.modal-box form { padding: 1.5rem; }

/* Alert for upload msg */
.alert-upload { margin-top: .5rem; }

/* Social links grid in admin config */
.social-form-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: .75rem;
}
.horario-periodos { display: flex; flex-direction: column; gap: .6rem; }
.horario-periodo { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.horario-periodo-label {
  min-width: 165px; font-size: .875rem; font-weight: 600; color: #374151; flex-shrink: 0;
}
.horario-periodo-inputs { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.horario-periodo-inputs .form-control { width: 120px; }
.horario-sep { color: #94a3b8; font-size: .875rem; }
.horario-time:disabled { opacity: .35; cursor: not-allowed; background: #f8fafc; }

.maintenance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 1.25rem;
}
.maintenance-meta {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  font-size: .92rem;
  color: #475569;
}
.maintenance-links {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.maintenance-update-status {
  margin-top: .85rem;
  padding: .85rem .95rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  font-size: .92rem;
  line-height: 1.5;
}
.maintenance-update-status[data-state="success"] {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #166534;
}
.maintenance-update-status[data-state="warning"] {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}
.maintenance-update-status[data-state="error"] {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE EXTRAS
═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 540px) {
  .list-row { flex-wrap: wrap; }
  .list-info { min-width: calc(100% - 54px - 1rem - .3rem); }
  .list-status { margin-left: calc(54px + 1rem); }
  .list-actions { margin-left: auto; }
  .modal-box { border-radius: 10px; }
  .form-row { flex-direction: column; }
  .page-header { flex-direction: column; align-items: flex-start; }
}

.section-noticias {
  padding: 5rem 0;
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
}
.noticia-item { flex: 0 0 33.333%; padding: 0 .4rem; }
.noticia-card {
  display: flex; flex-direction: column; height: 100%;
  background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 6px 24px rgba(15, 23, 42, .08); color: inherit;
  text-decoration: none; transition: transform .2s, box-shadow .2s;
}
.noticia-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(15, 23, 42, .14); text-decoration: none; }
.noticia-card-img {
  width: 100%; height: 220px; object-fit: cover; background: #e2e8f0;
}
.noticia-card-placeholder {
  display: flex; align-items: center; justify-content: center;
  color: #94a3b8;
}
.noticia-card-placeholder .material-icons { font-size: 3rem; }
.noticia-card-body {
  padding: 1.1rem; display: flex; flex-direction: column; gap: .75rem; flex: 1;
}
.noticia-card-body h3 {
  font-size: 1.15rem; line-height: 1.3; color: #0f172a;
}
.noticia-card-body p {
  color: #475569; font-size: .92rem; line-height: 1.65;
}
.noticia-card-link {
  margin-top: auto; font-size: .88rem; font-weight: 700; color: var(--acento, var(--primary, #1e3a8a));
}
.noticia-detalhe-page {
  padding: 8rem 0 5rem;
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 35%);
}
.noticia-breadcrumb {
  display: flex; align-items: center; gap: .4rem;
  margin-bottom: 1.25rem; color: #64748b; font-size: .9rem;
}
.noticia-detalhe-card {
  background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 12px 42px rgba(15, 23, 42, .08);
  max-width: 980px;
  margin: 0 auto;
}
.noticia-galeria { position: relative; background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%); }
.noticia-galeria-viewport { position: relative; overflow: hidden; }
.noticia-galeria-track { display: flex; transition: transform .35s ease; }
.noticia-galeria-slide { flex: 0 0 100%; }
.noticia-detalhe-img {
  width: 100%; max-height: 360px; object-fit: cover; display: block;
}
.noticia-galeria-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .2);
}
.noticia-galeria-prev { left: 1rem; }
.noticia-galeria-next { right: 1rem; }
.noticia-galeria-dots {
  display: flex;
  justify-content: center;
  gap: .45rem;
  padding: .9rem 1rem 1rem;
}
.noticia-galeria-dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,.35);
}
.noticia-galeria-dots button.active { background: #fff; }
.noticia-detalhe-body { padding: 2rem; }
.noticia-detalhe-body h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1; color: #0f172a; margin-bottom: 1rem;
}
.noticia-detalhe-meta {
  display: inline-flex; align-items: center; gap: .35rem;
  color: #92400e; background: #ffedd5; border-radius: 999px;
  padding: .35rem .75rem; margin-bottom: 1.5rem; font-size: .88rem;
}
.noticia-conteudo {
  color: #334155; line-height: 1.8; font-size: 1rem;
}
.noticia-conteudo p,
.noticia-conteudo div,
.noticia-conteudo ul,
.noticia-conteudo ol { margin-bottom: 1rem; }
.noticia-conteudo a { font-weight: 600; }
.noticia-size-sm { font-size: .92rem; }
.noticia-size-md { font-size: 1rem; }
.noticia-size-lg { font-size: 1.2rem; }
.editor-toolbar {
  display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .75rem;
}
.btn-editor {
  width: auto; min-width: 40px; padding: 0 .55rem; gap: .2rem;
}
.editor-size-label {
  font-size: .7rem; font-weight: 700; line-height: 1;
}
.editor-area {
  min-height: 240px; border: 1.5px solid #e2e8f0; border-radius: 10px;
  padding: .9rem 1rem; background: #fff; line-height: 1.7;
}
.editor-area:focus {
  outline: none; border-color: var(--acento, var(--primary, #1e3a8a));
  box-shadow: 0 0 0 3px rgba(30,58,138,.1);
}
.editor-area:empty::before {
  content: "Escreva o conteúdo da notícia aqui...";
  color: #94a3b8;
}
@media (max-width: 768px) {
  .noticia-item { flex: 0 0 100%; }
  .noticia-detalhe-img { max-height: 260px; }
  .noticia-galeria-btn { width: 36px; height: 36px; }
  .noticia-galeria-prev { left: .7rem; }
  .noticia-galeria-next { right: .7rem; }
}
@media (min-width: 769px) and (max-width: 1099px) {
  .noticia-item { flex: 0 0 50%; }
}

/* ─── Documentos ─────────────────────────────────── */
.section-documentos { padding: 4rem 0; }
.documentos-grid { display: flex; flex-direction: column; gap: .75rem; max-width: 760px; margin: 0 auto; }
.doc-card {
  display: flex; align-items: center; gap: 1rem;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
  padding: 1rem 1.25rem; box-shadow: 0 1px 4px rgba(0,0,0,.06);
  transition: box-shadow .15s;
}
.doc-card:hover { box-shadow: 0 3px 12px rgba(0,0,0,.1); }
.doc-card-icon { font-size: 2.2rem; color: #e74c3c; flex-shrink: 0; }
.doc-card-body { flex: 1; min-width: 0; }
.doc-card-titulo { font-size: 1rem; font-weight: 600; margin: 0 0 .2rem; color: var(--text, #1e293b); }
.doc-card-desc { font-size: .875rem; color: #64748b; margin: 0; }
.doc-card-btn {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 8px; flex-shrink: 0;
  background: var(--acento, var(--primary, #1e3a8a)); color: #fff;
  text-decoration: none; transition: opacity .15s;
}
.doc-card-btn:hover { opacity: .82; }
