﻿/* =========================================================
   GUIA DE MANUTENCAO DO CSS
   ---------------------------------------------------------
   CAMADAS DO ARQUIVO
   1. Base compartilhada do site no inicio
   2. Blocos migrados por pagina: procure por "PAGINA: ..."
   3. Ajustes consolidados mais novos no meio/fim
   4. Ajustes finais e mobile no final do arquivo

   REGRAS PARA FUTURAS EDICOES
   - Preferir editar os blocos mais novos, perto do fim
   - Nao duplicar regra antiga se um override final resolver
   - Comentar sempre o objetivo do bloco novo
   - Para pagina especifica, usar escopo ex.: .page-index

   MARCADORES IMPORTANTES
   - "PAGINA: ..." = estilos migrados por pagina
   - "RESPONSIVIDADE CONSOLIDADA" = ajustes mobile gerais
   - "AJUSTES FINAIS" = overrides recentes e manutencao
   - "FOOTER MOBILE: EDITE AQUI" = ponto oficial do footer mobile
   ========================================================= */

/* ===== RESET & BASE ===== */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

html,
    body {
      width: 100%;
      max-width: 100%;
      overflow-x: hidden;
    }

.nav {
      background: rgba(0, 0, 0, 0.94);
      backdrop-filter: blur(14px);
      border-top: 0px solid #444;
      padding: 8px 0;
      position: sticky;
      top: 0;
      z-index: 1000;
      box-shadow: 0 10px 28px rgba(0,0,0,0.18);
      transition: background 0.25s ease, box-shadow 0.25s ease;
    }

.nav .container {
      position: relative;
    }

.nav li a {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 11px 13px;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 0.55px;
      text-transform: uppercase;
      color: #fff;
      transition: color 0.25s ease, transform 0.25s ease, background 0.25s ease;
      white-space: nowrap;
      position: relative;
      border-radius: 12px;
    }

.nav li a:hover,
    .nav li a.active {
      color: #e02020;
      background: rgba(255,255,255,0.03);
      transform: translateY(-1px);
    }

.nav li a::after {
      display: none;
    }

.nav li a .arrow {
      font-size: 9px;
      transition: transform 0.28s ease;
    }

.menu-toggle {
      display: none;
      background: rgba(255,255,255,0.05);
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 14px;
      color: #fff;
      font-size: 24px;
      cursor: pointer;
      padding: 10px 16px;
      transition: transform 0.24s ease, background 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
      position: relative;
      z-index: 1001;
    }

.menu-toggle:hover {
      background: rgba(255,255,255,0.09);
      border-color: rgba(255,255,255,0.16);
      transform: translateY(-1px);
      box-shadow: 0 10px 20px rgba(0,0,0,0.18);
    }

.menu-toggle.is-active {
      background: #e02020;
      border-color: #e02020;
      box-shadow: 0 12px 22px rgba(176, 20, 20, 0.32);
    }

/* Garante que o menu abra corretamente em desktop */

.nav ul {
      display: flex;
      flex-wrap: nowrap;
      justify-content: center;
      align-items: center;
      gap: 2px;
    }

/* ===== AGENDA ===== */

.agenda-section {
      padding: 34px 0;
      background: linear-gradient(180deg, #f4f5f6 0%, #eef0f2 100%);
    }

.agenda-section-top {
      display: flex;
      align-items: flex-start;
      justify-content: flex-start;
      gap: 12px;
      margin-bottom: 12px;
      flex-wrap: wrap;
    }

.agenda-popup-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 8px;
      padding-bottom: 8px;
      border-bottom: 1px solid #eceef1;
    }

.agenda-popup-kicker {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 1.1px;
      text-transform: uppercase;
      color: #111;
      text-shadow: 0 1px 0 rgba(255,255,255,0.55), 0 4px 10px rgba(0,0,0,0.08);
    }

.agenda-popup-kicker::before {
      content: "";
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #e02020;
      display: inline-block;
      flex-shrink: 0;
    }

.agenda-edit-access {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      min-height: 28px;
      padding: 5px 10px;
      border-radius: 999px;
      background: #f6f7f8;
      color: #555;
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 1.1px;
      text-transform: uppercase;
      border: 1px solid #e5e7ea;
      box-shadow: 0 4px 10px rgba(0,0,0,0.04);
      transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    }

.agenda-edit-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 16px;
      height: 16px;
      border-radius: 50%;
      background: #e02020;
      color: #fff;
      font-size: 10px;
      line-height: 1;
      flex-shrink: 0;
    }

.agenda-edit-access:hover {
      background: #fff;
      border-color: #d6d9dd;
      color: #333;
      transform: translateY(-1px);
      box-shadow: 0 8px 16px rgba(0,0,0,0.08);
    }

.agenda-edit-access:hover .agenda-edit-icon {
      background: #b91c1c;
    }

.agenda-grid {
      display: grid;
      grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
      gap: 14px;
      align-items: start;
    }

.agenda-calendar-card,
    .agenda-popup-card {
      background: #fff;
      border-radius: 20px;
      border: 1px solid rgba(15, 23, 42, 0.06);
      box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
    }

.agenda-calendar-card {
      padding: 12px;
    }

.agenda-calendar-kicker {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      margin-bottom: 6px;
      color: #111;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 1.1px;
      text-transform: uppercase;
      text-shadow: 0 1px 0 rgba(255,255,255,0.55), 0 4px 10px rgba(0,0,0,0.08);
    }

.agenda-calendar-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #e02020;
    }

.agenda-calendar-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 6px;
    }

.agenda-month {
      font-size: 16px;
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: 0.7px;
      color: #1f1f1f;
      text-align: center;
      flex: 1;
    }

.agenda-nav-btn {
      width: 34px;
      height: 34px;
      border: none;
      border-radius: 12px;
      background: linear-gradient(180deg, #f25252 0%, #c81919 100%);
      color: #fff;
      font-size: 20px;
      cursor: pointer;
      box-shadow: 0 10px 20px rgba(0,0,0,0.12);
      transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    }

.agenda-nav-btn:hover {
      background: linear-gradient(180deg, #dd3f3f 0%, #a91515 100%);
      transform: translateY(-1px);
      box-shadow: 0 14px 22px rgba(0,0,0,0.16);
    }

.agenda-weekdays,
    .agenda-days {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      gap: 6px;
    }

.agenda-weekdays {
      margin-bottom: 8px;
    }

.agenda-weekdays span {
      text-align: center;
      font-size: 10px;
      font-weight: 700;
      text-transform: uppercase;
      color: #777;
      letter-spacing: 0.7px;
    }

.agenda-day,
    .agenda-day-empty {
      aspect-ratio: 1;
      border-radius: 12px;
    }

.agenda-day-empty {
      background: transparent;
    }

.agenda-day {
      border: none;
      background: #eef1f4;
      color: #222;
      font-size: 13px;
      font-weight: 700;
      cursor: pointer;
      position: relative;
      min-height: 38px;
      overflow: hidden;
      transition: transform 0.2s ease, background 0.22s ease, color 0.2s ease, box-shadow 0.22s ease;
    }

.agenda-day:not(.has-event):not(.has-proof) {
      background: transparent;
      color: #222;
      cursor: default;
      box-shadow: none;
    }

.agenda-day:hover,
    .agenda-day.is-active {
      background: #111;
      color: #fff;
      transform: translateY(-1px);
      box-shadow: 0 10px 18px rgba(15, 23, 42, 0.18);
    }

.agenda-day:not(.has-event):not(.has-proof):hover,
    .agenda-day:not(.has-event):not(.has-proof).is-active {
      background: transparent;
      color: #222;
      transform: none;
      box-shadow: none;
    }

.agenda-day.is-weekend:not(.has-event):not(.has-proof) {
      color: #c81919;
    }

.agenda-day.is-weekend:not(.has-event):not(.has-proof):hover,
    .agenda-day.is-weekend:not(.has-event):not(.has-proof).is-active {
      color: #c81919;
    }

.agenda-day.has-event {
      background: #fff4f4;
      color: #c01818;
      box-shadow: inset 0 0 0 1px rgba(224, 32, 32, 0.14);
    }

.agenda-day.has-proof {
      background: #f3f4f6;
      color: #222;
      cursor: pointer;
      box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.08);
    }

.agenda-day.has-proof::before {
      content: "PROVA";
      position: absolute;
      top: 5px;
      left: 5px;
      font-size: 7px;
      font-weight: 800;
      line-height: 1;
      letter-spacing: 0.2px;
      color: #111;
      pointer-events: none;
    }

.agenda-day.has-event::after {
      content: "";
      position: absolute;
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: #e02020;
      bottom: 6px;
      left: 50%;
      transform: translateX(-50%);
      transition: transform 0.22s ease, opacity 0.22s ease, background 0.22s ease;
    }

.agenda-day.has-event:hover,
    .agenda-day.has-event.is-active {
      background: linear-gradient(180deg, #f25252 0%, #c81919 100%);
      color: #fff;
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.18),
        0 12px 20px rgba(70, 70, 70, 0.22);
    }

.agenda-day.has-event:hover::after,
    .agenda-day.has-event.is-active::after {
      background: rgba(255,255,255,0.92);
      transform: translateX(-50%) scale(1.15);
    }

.agenda-day.has-proof:hover,
    .agenda-day.has-proof.is-active {
      background: #e5e7eb;
      color: #111;
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.12),
        0 10px 18px rgba(15, 23, 42, 0.18);
    }

.agenda-day.has-proof:hover::before,
    .agenda-day.has-proof.is-active::before {
      color: #111;
    }

.agenda-day.has-event.has-proof::before {
      color: #111;
    }

.agenda-day.has-event.has-proof {
      background: #fff4f4;
      color: #c01818;
      box-shadow: inset 0 0 0 1px rgba(224, 32, 32, 0.14);
    }

.agenda-day.has-event.has-proof:hover,
    .agenda-day.has-event.has-proof.is-active {
      background: linear-gradient(180deg, #f25252 0%, #c81919 100%);
      color: #fff;
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.18),
        0 12px 20px rgba(70, 70, 70, 0.22);
    }

.agenda-day.today {
      outline: 2px solid #111;
      outline-offset: -2px;
    }

.agenda-calendar-legend {
      display: flex;
      align-items: center;
      gap: 14px;
      flex-wrap: wrap;
      margin-top: 12px;
      padding-top: 12px;
      border-top: 1px solid #eceef1;
    }

.agenda-legend-item {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      color: #6b7280;
      font-size: 11px;
      font-weight: 700;
    }

.agenda-today-shortcut {
      border: none;
      background: transparent;
      padding: 0;
      cursor: pointer;
      transition: color 0.2s ease, transform 0.2s ease;
    }

.agenda-today-shortcut:hover {
      color: #111;
      transform: translateY(-1px);
    }

.agenda-legend-swatch {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: #d1d5db;
      display: inline-block;
    }

.agenda-legend-swatch.has-event {
      background: #e02020;
    }

.agenda-legend-swatch.today {
      background: #111;
    }

.agenda-popup-card {
      min-height: 100%;
      padding: 18px;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      position: relative;
      background:
        radial-gradient(circle at top right, rgba(120,120,120,0.06), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f7f7f7 100%);
    }

.agenda-popup-date {
      font-size: 18px;
      font-weight: 900;
      color: #111;
      margin-bottom: 10px;
      line-height: 1.2;
    }

.agenda-popup-text {
      font-size: 13px;
      color: #555;
      line-height: 1.55;
    }

.agenda-popup-events {
      display: grid;
      gap: 8px;
      margin-top: 2px;
    }

.agenda-popup-event {
      background: linear-gradient(180deg, #ffffff 0%, #f8f8f8 100%);
      border: 1px solid #ececec;
      border-left: 3px solid #e02020;
      border-radius: 12px;
      padding: 10px 12px;
      box-shadow: 0 8px 16px rgba(0,0,0,0.04);
    }

.agenda-popup-event-title {
      font-size: 12px;
      font-weight: 900;
      color: #111;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-bottom: 6px;
    }

.agenda-popup-event-text {
      font-size: 12px;
      color: #555;
      line-height: 1.55;
    }

.agenda-popup-event-meta {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      margin-top: 8px;
      padding: 4px 8px;
      border-radius: 999px;
      background: #efefef;
      color: #666;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.4px;
    }

.agenda-popup-event.is-proof {
      border-left-color: #111;
    }

.downloads {
  padding: 50px 0 60px;
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

.downloads .titulo-secao {
  color: #1a1a1a;
  margin-top: 10px;
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 1px;
}

.downloads-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.download-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #fff;
  padding: 32px 24px;
  border-radius: 16px;
  border: 2px solid transparent;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  text-align: center;
  align-items: center;
  justify-content: center;
}

.download-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  border-color: #e02020;
  background: #fafafa;
}

.download-card .card-icon {
  font-size: 48px;
  text-align: center;
  transition: transform 0.3s ease;
  width: 100%;
}

.download-card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
}

.download-card .card-content {
  flex: 1;
  width: 100%;
  text-align: center;
}

.download-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  text-align: center;
}

.download-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin: 0;
  text-align: center;
}

.download-card .card-action {
  display: inline-block;
  padding: 10px 20px;
  background: #e02020;
  color: #fff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
  margin-top: 8px;
  width: 100%;
  box-sizing: border-box;
}

.download-card:hover .card-action {
  background: #c41818;
  transform: scale(1.05);
}

.download-card.musica {
  cursor: default;
}

.download-card.musica:hover {
  cursor: default;
  transform: translateY(-8px);
}

.download-card .card-audio:focus {
  outline: none;
}

/* PLAYER NATIVO */

.download-card .card-audio {
  width: 100%;
  margin-top: 12px;
  border-radius: 6px;
  max-height: 50px;
}

@media(max-width: 1024px) {
  .downloads-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media(max-width: 768px) {
  .downloads-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media(max-width: 600px) {
  .downloads {
    padding: 40px 0 50px;
  }
  
  .downloads .titulo-secao {
    font-size: 1.6rem;
  }
  
  .downloads-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }
  
  .download-card {
    padding: 24px 20px;
  }
  
  .download-card .card-icon {
    font-size: 40px;
  }
  
  .download-card h3 {
    font-size: 16px;
  }
  
  /* PLAYER NO MOBILE - CENTRALIZADO */
  .download-card .card-content {
    display: flex !important;
    flex-direction: column;
    align-items: center !important;
    width: 100%;
  }
  
  .download-card .card-audio {
    width: 90%;
    max-width: 300px;
    margin: 10px auto 0 auto !important;
    max-height: 40px;
    height: 40px;
    display: block !important;
  }
  
  .download-card .card-action {
    width: 100%;
  }
}

.footer-logo-circle img {
  width: 100%; /* ðŸ”¥ aumenta a logo */
  max-width: 250px; /* ðŸ”¥ controla pra nao estourar */
  height: auto;
  object-fit: contain;
}

.footer-bottom {
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid #444;

  display: flex;
  flex-direction: column; /*  joga um em cima do outro */
  align-items: center; /*  tudo alinhado Ã  esquerda */

  gap: 6px; /* espaÃ§o entre as linhas */

  font-size: 12px;
  color: #888;
}

.footer-bottom .quote,

.footer-bottom .creditos {
  white-space: nowrap; /*  impede quebra dentro da linha */
}

@media (max-width: 900px) {
      .acesso-grid {
        grid-template-columns: repeat(2, 1fr);
      }
      .diretor-grid {
        grid-template-columns: 1fr;
      }
      .agenda-grid {
        grid-template-columns: 1fr;
      }

      .agenda-section-top {
        flex-direction: column;
        align-items: stretch;
      }
      .agenda-calendar-card,
      .agenda-popup-card {
        padding: 14px;
      }
      .agenda-popup-card {
        min-height: auto;
      }
      .agenda-day {
        min-height: 36px;
        font-size: 12px;
      }
      .agenda-month {
        font-size: 15px;
      }
      .downloads-grid {
        grid-template-columns: repeat(2, 1fr);
      }
      .contato-grid {
        grid-template-columns: 1fr;
      }
      .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
      }
      .hero-content h2 {
        font-size: 50px;
      }
      .hero-content .hero-slogan {
        font-size: 28px;
      }
    }

@media (max-width: 600px) {
      .agenda-section {
        padding: 28px 0;
      }
      .agenda-grid {
        gap: 10px;
      }
      .agenda-calendar-card,
      .agenda-popup-card {
        border-radius: 16px;
        padding: 12px;
      }
      .agenda-weekdays,
      .agenda-days {
        gap: 4px;
      }
      .agenda-weekdays span {
        font-size: 9px;
      }
      .agenda-day {
        min-height: 32px;
        font-size: 11px;
        border-radius: 8px;
      }
      .agenda-nav-btn {
        width: 32px;
        height: 32px;
        font-size: 18px;
      }
      .agenda-popup-top {
        margin-bottom: 8px;
        padding-bottom: 6px;
      }
      .agenda-popup-date {
        font-size: 16px;
      }
      .header .container {
        flex-direction: row;
        gap: 0;
      }
      .nav ul {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        position: absolute;
        top: calc(100% + 12px);
        left: 20px;
        right: 20px;
        padding: 14px;
        border-radius: 18px;
        background: rgba(0, 0, 0, 0.96);
        border: 1px solid rgba(255,255,255,0.08);
        box-shadow: 0 22px 44px rgba(0,0,0,0.3);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px) scale(0.98);
        transform-origin: top center;
        pointer-events: none;
        transition: opacity 0.24s ease, visibility 0.24s ease, transform 0.24s ease;
      }
      .nav ul.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
        pointer-events: auto;
        overflow: visible; /* Permite que o submenu apareï¿½a ï¿½ direita */
      }
      .menu-toggle {
        display: block;
        margin-left: auto;
      }
      .nav li {
        width: 100%;
      }
      .nav li a {
        width: 100%;
        justify-content: space-between;
        padding: 14px 16px;
        border-radius: 14px;
        background: rgba(255,255,255,0.03);
      }
      .nav li a::after {
        left: 16px;
        right: 16px;
        bottom: 8px;
      }
      .nav .submenu {
        position: static;
        display: none;
        background: rgba(0, 0, 0, 0.95);
        margin-top: 6px;
        border-radius: 8px;
        padding: 8px 0;
        list-style: none;
      }
      .nav .submenu.open {
        display: block;
      }
      /* Roda a seta indicadora quando o submenu estï¿½ aberto no mobile */
      .dropdown.active-mobile .arrow {
        transform: rotate(180deg);
      }
      .nav .submenu li a {
        display: block;
        padding: 12px 20px;
        font-size: 13px;
        font-weight: 600;
        color: #fff;
        background: transparent;
        transition: all 0.2s ease;
        text-align: left;
        width: 100%;
        box-sizing: border-box;
      }
      .nav .submenu li a:hover {
        background: rgba(255,255,255,0.1);
        color: #e02020;
        padding-left: 24px;
      }
      .acesso-grid {
        grid-template-columns: 1fr;
      }
      .downloads-grid {
        grid-template-columns: 1fr;
      }
      .diretor-card {
        flex-direction: column;
        text-align: center;
      }
      .hero-content {
        padding: 0 24px;
      }
      .hero-content h2 {
        font-size: 40px;
      }
      .hero-content .hero-slogan {
        font-size: 22px;
      }
      .footer-bottom {
        flex-direction: column;
        text-align: center;
      }
      .footer-bottom .quote {
        text-align: center;
      }
    }

.submenu {
      position: absolute;
      top: 100%;
      left: 50%;
      transform: translateX(-50%) translateY(10px) scale(0.98);
      transform-origin: top center;
      background: transparent;
      backdrop-filter: none;
      width: max-content;
      min-width: 185px;
      border-radius: 0;
      box-shadow: none;
      border: none;
      display: flex;
      flex-direction: column;
      gap: 6px;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.24s ease, visibility 0.24s ease, transform 0.24s ease;
      z-index: 1100;
      overflow: visible;
    }

.dropdown:hover .submenu {
      opacity: 1;
      visibility: visible;
      transform: translateX(-50%) translateY(0) scale(1);
    }

.submenu li {
      width: 100%;
      border-bottom: none;
    }

.submenu li a {
      display: block;
      width: 100%;
      padding: 12px 16px;
      font-size: 12px;
      font-weight: 700;
      font-family: 'Segoe UI', Arial, sans-serif;
      letter-spacing: 0.55px;
      text-transform: uppercase;
      line-height: 1.2;
      color: #fff;
      text-align: left;
      background: rgba(255,255,255,0.01);
      transition: all 0.22s ease;
    }

.submenu li a:hover,
    .submenu li a.active {
      background: rgba(255,255,255,0.08);
      color: #e02020;
      transform: translateX(4px);
    }

.nav .submenu {
      background: transparent;
      backdrop-filter: none;
      width: max-content;
      min-width: 200px;
      max-width: none;
      border-radius: 0;
      box-shadow: none;
      border: none;
      padding: 0;
      gap: 6px;
      overflow: visible;
    }

.nav .submenu li {
      width: 100%;
      border-bottom: none;
      flex: 0 0 auto;
    }

.nav .submenu li a {
      display: block;
      width: 100%;
      padding: 9px 12px;
      font-size: 12px;
      font-weight: 700;
      font-family: 'Segoe UI', Arial, sans-serif;
      letter-spacing: 0.55px;
      text-transform: uppercase;
      line-height: 1.2;
      text-align: center;
      color: #fff;
      background: rgba(8, 8, 8, 0.93);
      backdrop-filter: blur(14px);
      border: 1px solid rgba(255,255,255,0.06);
      border-radius: 12px;
      box-sizing: border-box;
      transition: all 0.22s ease;
    }

.nav .submenu li a:hover,
    .nav .submenu li a.active {
      background: rgba(255,255,255,0.08);
      color: #e02020;
      transform: translateX(4px);
      box-shadow: 0 14px 30px rgba(0,0,0,0.16);
    }

.normas-menu {
      --mega-links-width: 0px;
      position: absolute;
      top: 100%;
      left: 0;
      transform: translateY(10px) scale(0.985);
      transform-origin: top left;
      width: max-content;
      min-width: unset;
      min-height: auto;
      background: transparent;
      display: flex;
      box-shadow: none;
      border-top: none;
      border-bottom: none;
      border-radius: 0;
      overflow: visible;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: opacity 0.24s ease, visibility 0.24s ease, transform 0.24s ease;
      z-index: 1200;
    }

.mega-dropdown > a:hover + .normas-menu,
    .mega-dropdown .normas-menu:hover {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      transform: translateY(0) scale(1);
    }

.normas-menu .categorias {
      width: 185px;
      background: transparent;
      backdrop-filter: none;
      border-right: none;
      border-bottom: none;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

.mega-tab {
      background: rgba(8, 8, 8, 0.93);
      backdrop-filter: blur(14px);
      border: none;
      border: 1px solid rgba(255,255,255,0.06);
      border-radius: 12px;
      text-align: left;
      padding: 12px 16px;
      width: 100%;
      cursor: pointer;
      transition: all 0.22s ease;
      font-family: 'Segoe UI', Arial, sans-serif;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 0.55px;
      text-transform: uppercase;
      line-height: 1.2;
      color: #fff;
    }

.mega-tab:hover,
    .mega-tab.active {
      background: rgba(255,255,255,0.08);
      color: #e02020;
      transform: translateX(4px);
      box-shadow: 0 14px 30px rgba(0,0,0,0.16);
    }

.normas-menu .links {
      width: var(--mega-links-width, 0px);
      background: transparent;
      backdrop-filter: none;
      position: relative;
      overflow: hidden;
      transition: width 0.24s ease, background 0.24s ease, opacity 0.24s ease;
      border-bottom: none;
      opacity: 0;
      border-radius: 0;
      margin-left: 6px;
    }

.normas-menu.com-submenu .links {
      opacity: 1;
    }

.mega-panel {
      display: none;
      flex-direction: column;
      padding: 0;
      width: max-content;
      min-width: 210px;
      gap: 6px;
    }

.mega-panel a {
      display: block;
      padding: 12px 16px;
      border: 1px solid rgba(255,255,255,0.06);
      border-radius: 12px;
      transition: all 0.22s ease;
      font-family: 'Segoe UI', Arial, sans-serif;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 0.55px;
      text-transform: uppercase;
      line-height: 1.2;
      color: #fff;
      background: rgba(8, 8, 8, 0.93);
      backdrop-filter: blur(14px);
    }

.mega-panel a:hover {
      background: rgba(255,255,255,0.08);
      color: #e02020;
      transform: translateX(4px);
      box-shadow: 0 14px 30px rgba(0,0,0,0.16);
    }

.historico-circle {
  animation: historicoImageFloatIn 0.75s ease-out;
}

@keyframes historicoImageFloatIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.historico-circle {
  width: 100%;
  aspect-ratio: 1;
  max-width: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 8px;
  justify-self: center;
  align-self: center;
  transition: transform 0.35s ease, filter 0.35s ease;
  position: relative;
  overflow: visible;
}

.historico-circle::before,
.historico-circle::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-repeat: no-repeat;
  opacity: 0.85;
}

.historico-circle::before {
  background-image:
    radial-gradient(circle, rgba(255,255,255,1) 0 32%, rgba(255,255,255,0.55) 33%, transparent 62%),
    radial-gradient(circle, rgba(255,255,255,0.96) 0 30%, rgba(255,255,255,0.42) 31%, transparent 60%),
    radial-gradient(circle, rgba(255,255,255,0.92) 0 28%, rgba(255,255,255,0.38) 29%, transparent 58%),
    radial-gradient(circle, rgba(255,255,255,0.95) 0 28%, rgba(255,255,255,0.4) 29%, transparent 58%);
  background-size: 18px 18px, 12px 12px, 14px 14px, 10px 10px;
  background-position: 12% 18%, 82% 14%, 76% 76%, 18% 80%;
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.85));
  animation: historicoStarsEnter 1.2s ease-out, historicoStarsRotate 10s linear infinite;
  transform-origin: center center;
}

.historico-circle::after {
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.98) 0 30%, rgba(255,255,255,0.44) 31%, transparent 60%),
    radial-gradient(circle, rgba(255,255,255,0.9) 0 28%, rgba(255,255,255,0.35) 29%, transparent 58%),
    radial-gradient(circle, rgba(255,255,255,0.94) 0 28%, rgba(255,255,255,0.36) 29%, transparent 58%);
  background-size: 11px 11px, 15px 15px, 9px 9px;
  background-position: 26% 10%, 90% 50%, 8% 60%;
  filter: drop-shadow(0 0 7px rgba(255,255,255,0.8));
  animation: historicoStarsEnter 1.6s ease-out, historicoStarsRotateReverse 12s linear infinite;
  transform-origin: center center;
}

@keyframes historicoStarsEnter {
  from {
    opacity: 0;
    transform: scale(0.82) rotate(-18deg);
  }
  to {
    opacity: 0.85;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes historicoStarsRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes historicoStarsRotateReverse {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-360deg);
  }
}

.historico-circle img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  margin-top: 0;
  display: block;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.14));
  transition: transform 0.4s ease, filter 0.4s ease;
  position: relative;
  z-index: 1;
}

.historico-circle:hover {
  transform: translateY(-4px);
}

.historico-circle:hover img {
  transform: scale(1.02);
  filter: drop-shadow(0 24px 34px rgba(0, 0, 0, 0.18));
}

@media (max-width: 980px) {
  .historico-grid {
    grid-template-columns: 1fr;
  }

  .historico-circle img {
    margin-top: 0;
  }
}

@media (max-width: 768px) {
  .page-historico .historico-grid {
    position: relative;
    gap: 0;
  }

  .page-historico .historico-circle {
    display: none;
  }

  .page-historico .historico-text {
    position: relative;
    isolation: isolate;
    padding: 24px 18px;
    border-radius: 20px;
    overflow: hidden;
    background:
      linear-gradient(180deg, rgba(255,255,255,0.88) 0%, rgba(248,248,248,0.9) 100%),
      url('./icon-historico.png') center center / min(82%, 300px) no-repeat;
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
  }

  .page-historico .historico-text::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 18px;
    background: url('./icon-historico.png') center center / min(82%, 300px) no-repeat;
    opacity: 0.08;
    filter: grayscale(1) contrast(1.05);
    z-index: -1;
    pointer-events: none;
  }

  .page-historico .historico-text::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.72) 0%, rgba(255,255,255,0.82) 100%);
    z-index: 0;
    pointer-events: none;
  }

  .page-historico .historico-text h2,
  .page-historico .historico-text p,
  .page-historico .historico-text .btn-red {
    position: relative;
    z-index: 1;
  }
}

/* =========================================================
   PAGINA: admin-login.html
   ========================================================= */
/* ===== Migrated from admin-login.html ===== */
.admin-shell {
      min-height: 100vh;
      background: linear-gradient(180deg, #f2f3f5 0%, #e7eaee 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 24px;
    }

.admin-card {
      width: min(460px, 100%);
      background: #fff;
      border-radius: 22px;
      padding: 32px;
      box-shadow: 0 24px 50px rgba(0,0,0,0.12);
    }

.admin-card h1 {
      font-size: 28px;
      margin-bottom: 10px;
      color: #111;
    }

.admin-card p {
      color: #666;
      line-height: 1.42;
      margin-bottom: 24px;
    }

.admin-form {
      display: grid;
      gap: 16px;
    }

.admin-form label {
      display: block;
      font-size: 13px;
      font-weight: 700;
      color: #333;
      margin-bottom: 6px;
      text-transform: uppercase;
      letter-spacing: 0.8px;
    }

.admin-input {
      width: 100%;
      padding: 14px 16px;
      border: 1px solid #d7d9dd;
      border-radius: 14px;
      font-size: 15px;
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

.admin-input:focus {
      outline: none;
      border-color: #e02020;
      box-shadow: 0 0 0 3px rgba(224,32,32,0.1);
    }

.admin-btn {
      border: none;
      border-radius: 999px;
      padding: 12px 16px;
      background: #111;
      color: #fff;
      font-size: 13px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 1px;
      cursor: pointer;
      transition: transform 0.2s ease, background 0.2s ease;
    }

.admin-btn:hover {
      background: #e02020;
      transform: translateY(-1px);
    }

.admin-note {
      margin-top: 18px;
      font-size: 13px;
      color: #888;
    }

.admin-error {
      min-height: 20px;
      color: #c01818;
      font-size: 13px;
      font-weight: 700;
    }

/* =========================================================
   PAGINA: agenda-admin.html
   ========================================================= */
/* ===== Migrated from agenda-admin.html ===== */
.agenda-admin-page {
      min-height: 100vh;
      background: linear-gradient(180deg, #f1f3f6 0%, #e8ebef 100%);
      padding: 28px 16px 40px;
    }

.agenda-admin-container {
      max-width: 1180px;
      margin: 0 auto;
    }

.agenda-admin-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      flex-wrap: wrap;
      margin-bottom: 24px;
    }

.agenda-admin-top h1 {
      font-size: 30px;
      color: #111;
      margin-bottom: 6px;
    }

.agenda-admin-top p {
      color: #666;
      line-height: 1.42;
    }

.agenda-admin-actions {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
    }

.agenda-admin-btn,
    .agenda-admin-link {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 44px;
      padding: 12px 18px;
      border-radius: 999px;
      border: none;
      background: #111;
      color: #fff;
      font-size: 13px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 1px;
      cursor: pointer;
      transition: transform 0.2s ease, background 0.2s ease;
    }

.agenda-admin-btn:hover,
    .agenda-admin-link:hover {
      background: #e02020;
      transform: translateY(-1px);
    }

.agenda-admin-btn.secondary {
      background: #5c626a;
    }

.agenda-admin-btn.secondary:hover {
      background: #3f444a;
    }

.agenda-admin-grid {
      display: grid;
      grid-template-columns: minmax(320px, 380px) 1fr;
      gap: 22px;
    }

.agenda-admin-panel {
      background: #fff;
      border-radius: 20px;
      box-shadow: 0 20px 40px rgba(0,0,0,0.08);
      padding: 24px;
    }

.agenda-admin-panel h2 {
      font-size: 20px;
      color: #111;
      margin-bottom: 8px;
    }

.agenda-admin-panel p {
      color: #666;
      line-height: 1.42;
      margin-bottom: 10px;
    }

.agenda-admin-form {
      display: grid;
      gap: 16px;
    }

.agenda-admin-field label {
      display: block;
      font-size: 12px;
      font-weight: 800;
      color: #333;
      margin-bottom: 6px;
      text-transform: uppercase;
      letter-spacing: 0.8px;
    }

.agenda-admin-input,
    .agenda-admin-textarea {
      width: 100%;
      padding: 14px 16px;
      border: 1px solid #d7d9dd;
      border-radius: 14px;
      font-size: 15px;
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
      background: #fff;
    }

.agenda-admin-input:focus,
    .agenda-admin-textarea:focus {
      outline: none;
      border-color: #e02020;
      box-shadow: 0 0 0 3px rgba(224,32,32,0.1);
    }

.agenda-admin-textarea {
      min-height: 140px;
      resize: vertical;
    }

.agenda-date-picker {
      position: relative;
    }

.agenda-date-hint {
      margin-top: 6px;
      font-size: 12px;
      color: #888;
      line-height: 1.5;
    }

.agenda-date-display {
      width: 100%;
      padding: 14px 16px;
      border: 1px solid #d7d9dd;
      border-radius: 14px;
      font-size: 15px;
      background: #fff;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

.agenda-date-display:hover,
    .agenda-date-display.is-open {
      border-color: #e02020;
      box-shadow: 0 0 0 3px rgba(224,32,32,0.1);
    }

.agenda-date-display-text {
      width: 100%;
      border: none;
      outline: none;
      background: transparent;
      color: #222;
      font-weight: 600;
      font-size: 15px;
    }

.agenda-date-display-icon {
      width: 30px;
      height: 30px;
      border: none;
      border-radius: 50%;
      background: #e02020;
      color: #fff;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 13px;
      flex-shrink: 0;
      box-shadow: 0 8px 16px rgba(0,0,0,0.12);
      cursor: pointer;
    }

.agenda-date-popover {
      position: absolute;
      top: calc(100% + 10px);
      left: 0;
      width: min(320px, 100%);
      background: #fff;
      border: 1px solid #e1e4e8;
      border-radius: 18px;
      box-shadow: 0 22px 44px rgba(0,0,0,0.14);
      padding: 16px;
      z-index: 30;
      display: none;
    }

.agenda-date-popover.open {
      display: block;
    }

.agenda-date-popover-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 6px;
      margin-bottom: 10px;
    }

.agenda-date-popover-month {
      font-size: 13px;
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: 0.8px;
      color: #111;
      text-align: center;
      flex: 1;
    }

.agenda-date-nav {
      width: 34px;
      height: 34px;
      border: none;
      border-radius: 50%;
      background: #111;
      color: #fff;
      font-size: 18px;
      cursor: pointer;
      transition: background 0.2s ease, transform 0.2s ease;
    }

.agenda-date-nav:hover {
      background: #e02020;
      transform: translateY(-1px);
    }

.agenda-date-weekdays,
    .agenda-date-days {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      gap: 6px;
    }

.agenda-date-weekdays {
      margin-bottom: 8px;
    }

.agenda-date-weekdays span {
      text-align: center;
      font-size: 11px;
      font-weight: 800;
      color: #888;
      text-transform: uppercase;
    }

.agenda-date-day,
    .agenda-date-empty {
      aspect-ratio: 1;
      border-radius: 10px;
    }

.agenda-date-empty {
      background: transparent;
    }

.agenda-date-day {
      border: none;
      background: #f2f3f5;
      color: #222;
      font-size: 13px;
      font-weight: 700;
      cursor: pointer;
      transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    }

.agenda-date-day:hover {
      background: #111;
      color: #fff;
      transform: translateY(-1px);
    }

.agenda-date-day.is-selected {
      background: #e02020;
      color: #fff;
    }

.agenda-date-day.is-today {
      box-shadow: inset 0 0 0 2px #111;
    }

.agenda-admin-message {
      min-height: 20px;
      color: #0d6b34;
      font-size: 13px;
      font-weight: 700;
    }

.agenda-admin-photo-box {
      margin-top: 8px;
      padding: 16px;
      border-radius: 16px;
      border: 1px solid #e5e7eb;
      background: linear-gradient(180deg, #fafafa 0%, #f3f4f6 100%);
    }

.agenda-admin-photo-preview {
      width: 100%;
      max-width: 220px;
      height: 280px;
      object-fit: cover;
      border-radius: 16px;
      display: block;
      margin-bottom: 10px;
      box-shadow: 0 16px 28px rgba(0,0,0,0.08);
      background: #ddd;
    }

.agenda-admin-photo-actions {
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
      margin-bottom: 8px;
    }

.agenda-admin-photo-note {
      font-size: 12px;
      color: #777;
      line-height: 1.42;
    }

.agenda-admin-list {
      display: grid;
      gap: 14px;
    }

.agenda-admin-item {
      border: 1px solid #e1e4e8;
      border-radius: 18px;
      padding: 18px;
      background: linear-gradient(180deg, #fff 0%, #f8f8f8 100%);
    }

.agenda-admin-item-top {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 10px;
    }

.agenda-admin-date {
      font-size: 12px;
      font-weight: 800;
      letter-spacing: 1px;
      text-transform: uppercase;
      color: #e02020;
      margin-bottom: 6px;
    }

.agenda-admin-title {
      font-size: 18px;
      font-weight: 800;
      color: #111;
      margin-bottom: 8px;
    }

.agenda-admin-text {
      font-size: 13px;
      color: #555;
      line-height: 1.42;
    }

.agenda-admin-item-actions {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }

.agenda-admin-mini {
      border: none;
      border-radius: 999px;
      background: #111;
      color: #fff;
      padding: 8px 12px;
      font-size: 12px;
      font-weight: 800;
      text-transform: uppercase;
      cursor: pointer;
      transition: background 0.2s ease, transform 0.2s ease;
    }

.agenda-admin-mini:hover {
      background: #e02020;
      transform: translateY(-1px);
    }

.agenda-admin-empty {
      color: #777;
      font-size: 13px;
      line-height: 1.42;
      padding: 20px 0;
    }

@media (max-width: 900px) {
      .agenda-admin-grid {
        grid-template-columns: 1fr;
      }
    }

/* ===== Migrated from cia1.html ===== */

/* SUBMENU ESPECÃFICO - INSTITUCIONAL */

.submenu-institucional {
  width: 210px;
  min-width: 210px;
}

/* SUBMENU ESPECÃFICO - SUBORDINADAS */

.submenu-subordinadas {
  width: 180px;
  min-width: 180px;
}

.submenu li a {
  display: block;
  padding: 14px 20px;

  font-size: 13px;
  font-weight: 600;

  color: #fff;
  text-align: center;

  background: #000;
  transition: all 0.2s ease;

  /* ðŸ”¥ ESSENCIAL */
  white-space: nowrap;
}

.companhia-card {
      background: #fff;
      border-radius: 0 0 12px 12px;
      overflow: hidden;
      box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
      border-top: 4px solid #ffd700;
    }

.companhia-header {
      background: linear-gradient(135deg, #ffd700, #e6c200);
      color: #000;
      padding: 22px 30px;
    }

.bloco-info {
      background: #fff;
      border: 1px solid #ececec;
      border-left: 4px solid #ffd700;
      border-radius: 12px;
      padding: 28px 30px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    }

.red-divider {
      height: 4px;
      background: #ffd700;
      width: 100%;
      margin: 4px 0 6px 0;
    }

.fc-icon {
      width: 13px;
      height: 13px;
      flex-shrink: 0;
    }

.fc-label {
      font-weight: 13px;
      font-size: 13px;
      color: #fff;
    }

/* ===== Migrated from cia2.html ===== */

.companhia-section {
      padding: 0;
      background: #fff;
    }

.companhia-card {
      background: #fff;
      border-radius: 0 0 12px 12px;
      overflow: hidden;
      box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
      border-top: 4px solid #2a6432;
    }

.companhia-header {
      background: linear-gradient(135deg, #2a6432, #2a6432);
      color: #000;
      padding: 22px 30px;
    }

.companhia-body {
      display: grid;
     grid-template-columns: 650px 1fr;
      gap: 40px;
      padding: 40px;
      align-items: center;
    }

.brasao-box {
  background: #f8f8f8;
  border-radius: 14px;
  padding: 40px 24px;
  border: 1px solid #ececec;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.brasao-box img {
  transform: scale(1.3);
}

.brasao-box {
  background: #f8f8f8;
  border-radius: 14px;
  padding: 40px 24px; /* ðŸ”¥ aumenta espaÃ§o interno */
  border: 1px solid #ececec;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.brasao-box .forca {
      margin-top: 18px;
      font-size: 18px;
      font-weight: 900;
      color: #000;
      letter-spacing: 1px;
      text-transform: uppercase;
      text-align: center;
    }

.bloco-info {
      background: #fff;
      border: 1px solid #ececec;
      border-left: 4px solid #2a6432;
      border-radius: 12px;
      padding: 28px 30px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    }

.bloco-info h3 {
      font-size: 13px;
      text-transform: uppercase;
      letter-spacing: 1.5px;
      color: #000;
      margin-bottom: 10px;
      font-weight: 800;
    }

.brado strong {
      color: #000;
    }

.red-divider {
      height: 4px;
      background: #2a6432;
      width: 100%;
      margin: 4px 0 6px 0;
    }

.btn-voltar {
      display: inline-block;
      background: #000;
      color: #fff;
      padding: 12px 28px;
      border-radius: 6px;
      font-weight: 700;
      text-transform: uppercase;
      margin-top: 0;
      transition: opacity 0.2s;
    }

@media (max-width: 900px) {
      .header .container {
        flex-direction: column;
        gap: 6px;
      }

      .header-text h1 {
        font-size: 24px;
      }

      .companhia-body {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 28px 22px;
      }

      .companhia-aside {
        max-width: 480px;
        margin: 0 auto;
        width: 100%;
      }

      .companhia-content {
        width: 100%;
      }

      .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
      }

      .footer-contact-item {
        justify-content: center;
      }
    }

@media (max-width: 600px) {
      .companhia-header .cia-nome {
        font-size: 24px;
      }

      .companhia-body {
        padding: 20px;
      }

      .bloco-info {
        padding: 18px;
      }

      .brado {
        font-size: 22px !important;
        line-height: 2 !important;
      }

      .footer-bottom {
        flex-direction: column;
        text-align: center;
      }

      .footer-bottom .quote {
        text-align: center;
      }
    }

/* ===== Migrated from cia3.html ===== */

.nav-placeholder.active {
  display: block;
}.nav {
  background: #000;
  border-top: 0;
  padding: 8px;
  position: relative;
  z-index: 1000;
}

.companhia-card {
      background: #fff;
      border-radius: 0 0 12px 12px;
      overflow: hidden;
      box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
      border-top: 4px solid #0482c1;
    }

.companhia-header {
      background: linear-gradient(135deg, #0482c1, #0482c1);
      color: #000;
      padding: 22px 30px;
    }

.brasao-box img {
      width: 100%;
      max-width: 340px;
      height: auto;
      margin: 0 auto 18px;
      filter: drop-shadow(0 10px 22px rgba(0,0,0,0.18));
    }

.bloco-info {
      background: #fff;
      border: 1px solid #ececec;
      border-left: 4px solid #0482c1;
      border-radius: 12px;
      padding: 28px 30px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    }

.red-divider {
      height: 4px;
      background: #0482c1;
      width: 100%;
      margin: 4px 0 6px 0;
    }

/* ===== Migrated from cia4.html ===== */

.companhia-card {
      background: #fff;
      border-radius: 0 0 12px 12px;
      overflow: hidden;
      box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
      border-top: 4px solid #cb0d0d;
    }

.companhia-header {
      background: linear-gradient(135deg, #cb0d0d, #cb0d0d);
      color: #000;
      padding: 22px 30px;
    }

.brasao-box {
      background: #f8f8f8;
      border-radius: 14px;
      padding: 28px 24px;
      border: 1px solid #ececec;
      width: 100%;
      max-width: 480px;
      margin: 0 auto;
      box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    }

.brasao-box .forca {
      margin-top: 18px;
      font-size: 18px;
      font-weight: 900;
      color: #000000;
      letter-spacing: 1px;
      text-transform: uppercase;
      text-align: center;
    }

.bloco-info {
      background: #fff;
      border: 1px solid #ececec;
      border-left: 4px solid #d43205;
      border-radius: 12px;
      padding: 28px 30px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    }

.red-divider {
      height: 4px;
      background: #cb0d0d;
      width: 100%;
      margin: 4px 0 6px 0;
    }

/* ===== Migrated from cia5.html ===== */

.section-title {
      font-size: 36px;
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: 2px;
      margin-bottom: 10px;
      color: #222;
      text-align: center;
    }

.section-subtitle {
      font-size: 18px;
      color: #666;
      margin-bottom: 40px;
      text-align: center;
    }

.companhia-header .cia-label {
      font-size: 13px;
      text-transform: uppercase;
      letter-spacing: 1px;
      opacity: 0.95;
    }

.brasao-box .texto-apoio {
      margin-top: 10px;
      font-size: 13px;
      color: #666;
      line-height: 1.42;
      text-align: center;
    }

/* AJUSTE DE DISTÃ‚NCIA ATÃ‰ O RODAPÃ‰ */

.footer-bottom {
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid #444;

  display: flex;
  flex-direction: column; /* ðŸ”¥ uma linha em cima da outra */
  align-items: center;

  gap: 6px;

  font-size: 12px;
  color: #888;
}

.footer-bottom .quote,
.footer-bottom .creditos {
  white-space: nowrap; /* ðŸ”¥ nao quebra dentro da frase */
}

@media (max-width: 600px) {
      .section-title {
        font-size: 24px;
      }

      .section-subtitle {
        font-size: 15px;
      }

      .companhia-header .cia-nome {
        font-size: 24px;
      }

      .companhia-body {
        padding: 20px;
      }

      .bloco-info {
        padding: 18px;
      }

      .brado {
        font-size: 22px !important;
        line-height: 2 !important;
      }

      .footer-bottom {
        flex-direction: column;
        text-align: center;
      }

      .footer-bottom .quote {
        text-align: center;
      }
    }

/* ===== Migrated from comandante.html ===== */

/* =========================
       CONTEÃšDO
    ========================= */

    .hero-comandante {
      background: linear-gradient(135deg, #1b1b1b, #2a2a2a);
      padding: 70px 0;
      color: #fff;
      border-bottom: 5px solid #e02020;
    }

.hero-grid {
      display: grid;
      grid-template-columns: 360px 1fr;
      gap: 50px;
      align-items: center;
    }

.hero-foto {
      text-align: center;
    }

.hero-foto img {
      width: 100%;
      max-width: 360px;
      border-radius: 12px;
      box-shadow: 0 12px 30px rgba(0,0,0,0.35);
    }

.hero-info .cargo-topo {
      font-size: 13px;
      font-weight: 700;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: #e02020;
      margin-bottom: 10px;
    }

.hero-info h1 {
      font-size: 40px;
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: 2px;
      margin-bottom: 10px;
      line-height: 1.15;
    }

.hero-info .subtitulo {
      font-size: 20px;
      font-weight: 700;
      text-transform: uppercase;
      margin-bottom: 22px;
    }

.hero-info p {
      font-size: 16px;
      line-height: 1.9;
      color: #f1f1f1;
      margin-bottom: 10px;
      text-align: justify;
    }

.conteudo-comandante {
      padding: 60px 0 80px;
    }

.section-title {
      font-size: 26px;
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: 1px;
      margin-bottom: 8px;
      color: #222;
    }

.bloco-institucional {
      background: #fff;
      border-radius: 12px;
      padding: 28px;
      box-shadow: 0 6px 22px rgba(0,0,0,0.08);
      border-left: 5px solid #e02020;
      margin-bottom: 26px;
    }

.bloco-institucional p {
      font-size: 16px;
      line-height: 1.85;
      color: #444;
      text-align: justify;
    }

.formacao-academica {
      padding: 0;
      overflow: hidden;
    }

.formacao-lista {
      display: grid;
      grid-template-columns: 1fr;
    }

.formacao-item {
      padding: 22px 28px;
      border-left: 5px solid #e02020;
      border-bottom: 1px solid #ececec;
      background: #fff;
    }

.formacao-item:last-child {
      border-bottom: 0;
    }

.formacao-nivel {
      display: inline-block;
      margin-bottom: 7px;
      font-size: 12px;
      font-weight: 900;
      letter-spacing: 0.8px;
      text-transform: uppercase;
      color: #e02020;
    }

.formacao-item h3 {
      margin: 0 0 5px;
      font-size: 18px;
      line-height: 1.35;
      color: #222;
    }

.formacao-item p {
      margin: 0;
      font-size: 15px;
      line-height: 1.6;
      color: #666;
      text-align: left;
    }

.timeline {
      display: grid;
      gap: 18px;
      margin-top: 10px;
    }

.timeline-item {
      background: #fff;
      border-radius: 12px;
      padding: 22px 24px;
      box-shadow: 0 6px 18px rgba(0,0,0,0.07);
      border-left: 5px solid #e02020;
    }

.timeline-item .ano {
      font-size: 13px;
      font-weight: 800;
      color: #e02020;
      text-transform: uppercase;
      letter-spacing: 1px;
      margin-bottom: 6px;
    }

.timeline-item .cargo {
      font-size: 18px;
      font-weight: 800;
      color: #222;
      margin-bottom: 6px;
    }

.timeline-item .unidade {
      font-size: 15px;
      color: #666;
      line-height: 1.42;
    }

.comandamentos-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 18px;
      margin-top: 10px;
    }

.comandamento-card {
      background: #fff;
      border-radius: 12px;
      padding: 24px;
      box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
      border-top: 4px solid #e02020;
    }

.comandamento-status {
      display: inline-block;
      margin-bottom: 10px;
      font-size: 12px;
      font-weight: 900;
      letter-spacing: 0.8px;
      text-transform: uppercase;
      color: #e02020;
    }

.comandamento-card h3 {
      margin: 0 0 10px;
      font-size: 18px;
      line-height: 1.35;
      color: #222;
    }

.comandamento-card p {
      margin: 0;
      font-size: 15px;
      line-height: 1.6;
      color: #666;
    }

.unidades-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 20px;
      margin-top: 6px;
    }

.unidade-card {
      background: linear-gradient(135deg, #1c1c1c, #111);
      color: #fff;
      padding: 26px;
      border-radius: 12px;
      box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
      transition: all 0.25s ease;
      border-top: 3px solid #e02020;
    }

.unidade-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
    }

.unidade-card h3 {
      color: #e02020;
      font-size: 16px;
      font-weight: 800;
      text-transform: uppercase;
      margin-bottom: 10px;
      letter-spacing: 1px;
      line-height: 1.4;
    }

.unidade-card p {
      font-size: 13px;
      line-height: 1.7;
      color: #f2f2f2;
      text-align: justify;
    }

.acoes-finais {
      text-align: center;
      margin-top: 36px;
    }

.btn-voltar {
      display: inline-block;
      background: #e02020;
      color: #fff;
      padding: 12px 30px;
      border-radius: 6px;
      font-weight: 700;
      text-transform: uppercase;
      transition: opacity 0.2s;
    }

/* =========================
       FOOTER PADRÃƒÆ’O
    ========================= */

   .footer {
      background: #222;
      color: #fff;
      padding: 18px 0 0;
      margin-top: 8px;
    }

.footer-menu li a {
      font-size: 13px;
      transition: color 0.2s;
      color: #fff;
    }

/* =========================
       RESPONSIVO
    ========================= */

    @media (max-width: 980px) {
      .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
      }

      .hero-info p {
        text-align: justify;
      }

      .unidades-grid {
        grid-template-columns: 1fr;
      }

      .comandamentos-grid {
        grid-template-columns: 1fr;
      }

      .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
      }

      .footer-contact-item {
        justify-content: center;
      }
    }

@media (max-width: 768px) {
      .menu-toggle {
        display: block;
      }

      .nav ul {
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 0;
      }

      .nav ul.open {
        display: flex;
      }

      .nav li {
        width: 100%;
        text-align: center;
      }

      .nav li a {
        justify-content: center;
        width: 100%;
      }

      .submenu,
      .normas-menu {
        position: static;
        transform: none !important;
        width: 100%;
        min-height: auto;
        opacity: 1;
        visibility: visible;
        display: none;
        box-shadow: none;
        border-radius: 0;
      }

      .dropdown.open .submenu,
      .mega-dropdown.open .normas-menu {
        display: flex;
      }

      .normas-menu {
        flex-direction: column;
      }

      .normas-menu .categorias,
      .normas-menu .links {
        width: 100%;
      }

      .header .container {
        flex-direction: column;
        gap: 6px;
      }

      .header-text h1 {
        font-size: 24px;
      }

      .hero-info h1 {
        font-size: 30px;
      }

      .hero-info .subtitulo {
        font-size: 17px;
      }
    }

@media (max-width: 600px) {
      .conteudo-comandante {
        padding-top: 40px;
      }

      .hero-comandante {
        padding: 50px 0;
      }

      .section-title {
        font-size: 22px;
      }

      .footer-bottom {
        flex-direction: column;
        text-align: center;
      }

      .footer-bottom .quote {
        text-align: center;
      }
    }

/* ===== Migrated from contato.html ===== */

*{
      margin:0;
      padding:0;
      box-sizing:border-box;
    }

body{
      font-family:'Segoe UI', Arial, sans-serif;
      background:#f4f4f4;
      color:#222;
    }

a{
      text-decoration:none;
      color:inherit;
    }

ul, li{
      list-style:none;
    }

img{
      max-width:100%;
      display:block;
    }

.container{
      max-width:1200px;
      margin:0 auto;
      padding:0 20px;
    }

/* espaÃ§o do conteÃºdo principal */

.pagina-titulo{
      background:#111;
      color:#fff;
      text-align:center;
      padding:22px 20px;
      border-bottom:4px solid #e02020;
    }

.pagina-titulo h1{
      margin:0;
      letter-spacing:2px;
      font-size:28px;
      text-transform:uppercase;
    }

.conteudo{
      max-width:1100px;
      margin:30px auto;
      padding:0 20px;
    }

table{
      width:100%;
      border-collapse:collapse;
      background:#fff;
      box-shadow:0 5px 20px rgba(0,0,0,0.1);
      border-radius:10px;
      overflow:hidden;
    }

th{
      background:#000;
      color:#fff;
      padding:12px;
      font-size:14px;
      text-transform:uppercase;
    }

td{
      padding:10px;
      font-size:14px;
      border-bottom:1px solid #ddd;
    }

tr:hover{
      background:#f1f1f1;
    }

.ramal{
      font-weight:bold;
      color:#e02020;
    }

.atualizacao{
      text-align:center;
      margin:18px 0 10px;
      font-size:14px;
      font-weight:700;
      color:#444;
    }

.red-divider{
      height:4px;
      background:#e02020;
      width:100%;
      margin:30px 0 6px 0;
    }

/* FOOTER PADRÃƒÆ’O */

.footer-final{
      background:#222;
      color:#fff;
      padding:18px 0 0;
      margin-top:8px;
      text-align:left;
    }

.footer {
      background: #222;
      color: #fff;
      padding: 18px 0 0;
      margin-top: 8px;
    }

.footer-final h3{
      color:#e02020;
      font-style:italic;
      font-size:17px;
      margin-bottom:16px;
      text-align:left;
    }

.footer-menu li{
      margin-bottom:8px;
    }

.footer-menu li a{
      font-size:14px;
      color:#fff;
      transition:color 0.2s;
    }

.footer-menu li a:hover{
      color:#e02020;
    }

.footer-contact-item{
      display:flex;
      align-items:flex-start;
      gap:12px;
      margin-bottom:16px;
    }

.fc-icon{
      width:50px;
      height:50px;
      flex-shrink:0;
    }

.fc-label{
      font-weight:700;
      font-size:13px;
      color:#fff;
      margin:0 0 2px 0;
    }

.fc-text{
      font-size:13px;
      color:#fff;
      margin:0;
    }

.footer-bottom{
      margin-top:40px;
      padding:20px 0;
      border-top:1px solid #444;
      display:flex;
      flex-direction:column;
      align-items:center;
      gap:10px;
      font-size:12px;
      color:#888;
      text-align:center;
    }

/* CSS DO HEADER.HTML / MENU */

.header{
      background:#222;
      color:#fff;
      padding:50px 0;
    }

.header .container{
      display:flex;
      align-items:center;
      justify-content:space-between;
    }

.header-logo img{
      height:150px;
      width:auto;
    }

.logo-essd img{
      height:200px;
      width:auto;
    }

.logo-pm img{
      height:170px;
      width:auto;
    }

.header-logo{
      display:flex;
      align-items:center;
      justify-content:center;
      font-weight:bold;
      font-size:14px;
      letter-spacing:2px;
      flex-shrink:0;
    }

.header-text{
      text-align:center;
      flex:1;
      padding:0 20px;
    }

.header-text p{
      font-size:17px;
      letter-spacing:3px;
      text-transform:uppercase;
      margin-top:5px;
      color:#fff;
    }

.header-text h1{
      font-size:35px;
      letter-spacing:2px;
      text-transform:uppercase;
      margin-top:4px;
      color:#fff;
    }

.nav ul{
      display:flex;
      flex-wrap:nowrap;
      justify-content:center;
      align-items:center;
    }

.nav li{
      position:relative;
    }

.nav li a{
      display:inline-flex;
      align-items:center;
      gap:4px;
      padding:14px 18px;
      font-size:15px;
      font-weight:700;
      letter-spacing:1px;
      text-transform:uppercase;
      color:#fff;
      transition:color 0.2s;
      white-space:nowrap;
    }

.nav li a:hover,
    .nav li a.active{
      color:#e02020;
    }

.arrow{
      transition:transform 0.3s;
      font-size:10px;
    }

.dropdown:hover .arrow,
    .mega-dropdown:hover .arrow{
      transform:rotate(180deg);
    }

.menu-toggle{
      display:none;
      background:none;
      border:none;
      color:#fff;
      font-size:28px;
      cursor:pointer;
      padding:10px 18px;
      margin:0 auto;
    }

.dropdown:hover .submenu{
      opacity:1;
      visibility:visible;
      transform:translateX(-50%) translateY(0);
    }

.submenu li{
      width:100%;
      border-bottom:1px solid #1a1a1a;
    }

.submenu li:last-child{
      border-bottom:none;
    }

.submenu li a{
      display:block;
      width:100%;
      padding:14px 20px;
      font-size:14px;
      font-weight:600;
      color:#fff;
      text-align:center;
      background:#000;
      transition:all 0.2s ease;
    }

.submenu li a:hover,
    .submenu li a.active{
      background:#111;
      color:#e02020;
      padding-left:26px;
    }

.mega-dropdown{
      position:relative;
    }

.normas-menu{
      position:absolute;
      top:100%;
      left:0;
      transform:translateY(8px);
      width:max-content;
      min-width:unset;
      min-height:auto;
      background:transparent;
      display:flex;
      box-shadow:0 14px 34px rgba(0,0,0,0.45);
      border-top:1px solid #111;
      border-bottom:none;
      border-radius:0 0 6px 6px;
      overflow:visible;
      opacity:0;
      visibility:hidden;
      pointer-events:none;
      transition:opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
      z-index:1200;
    }

.mega-dropdown > a:hover + .normas-menu,
    .mega-dropdown .normas-menu:hover{
      opacity:1;
      visibility:visible;
      pointer-events:auto;
      transform:translateY(0);
    }

.normas-menu .categorias{
      width:250px;
      background:#050505;
      border-right:1px solid #1a1a1a;
      border-bottom:3px solid #e02020;
      display:flex;
      flex-direction:column;
    }

.mega-tab{
      background:#050505;
      border:none;
      border-bottom:1px solid #1a1a1a;
      text-align:left;
      padding:18px 22px;
      width:100%;
      cursor:pointer;
      transition:all 0.2s ease;
      font-family:'Segoe UI', Arial, sans-serif;
      font-size:15px;
      font-weight:700;
      letter-spacing:0.5px;
      text-transform:uppercase;
      color:#fff;
    }

.mega-tab:hover,
    .mega-tab.active{
      background:#111;
      color:#e02020;
    }

.normas-menu .links{
      width:0;
      background:transparent;
      position:relative;
      overflow:hidden;
      transition:width 0.25s ease, background 0.25s ease;
      border-bottom:3px solid transparent;
    }

.normas-menu.com-submenu .links{
      width:320px;
      background:#000;
      border-bottom:3px solid #e02020;
    }

.normas-menu:has(.mega-panel.active) .links{
      width:55%;
      background:#000;
    }

.mega-panel{
      display:none;
      flex-direction:column;
      padding:0;
    }

.mega-panel.active{
      display:flex;
    }

.mega-panel a{
      display:block;
      padding:18px 22px;
      border-bottom:1px solid #1a1a1a;
      transition:all 0.2s ease;
      font-family:'Segoe UI', Arial, sans-serif;
      font-size:15px;
      font-weight:700;
      letter-spacing:0.5px;
      text-transform:uppercase;
      color:#fff;
      background:#000;
    }

.mega-panel a:hover{
      background:#111;
      color:#e02020;
      padding-left:28px;
    }

@media(max-width:900px){
      .footer-grid{
        grid-template-columns:1fr;
        text-align:center;
      }

      .footer-contact-item{
        justify-content:center;
      }
    }

@media(max-width:768px){
      .menu-toggle{
        display:block;
      }

      .nav ul{
        display:none;
        flex-direction:column;
        align-items:center;
        gap:0;
      }

      .nav ul.open{
        display:flex;
      }

      .nav li{
        width:100%;
        text-align:center;
      }

      .nav li a{
        justify-content:center;
        width:100%;
      }

      .submenu,
      .normas-menu{
        position:static;
        transform:none !important;
        width:100%;
        min-height:auto;
        opacity:1;
        visibility:visible;
        display:none;
        box-shadow:none;
        border-radius:0;
      }

      .dropdown.open .submenu,
      .mega-dropdown.open .normas-menu{
        display:flex;
      }

      .normas-menu{
        flex-direction:column;
      }

      .normas-menu .categorias,
      .normas-menu .links{
        width:100%;
      }

      .header .container{
        flex-direction:column;
        gap:10px;
      }

      .header-text h1{
        font-size:24px;
      }
    }

.table-scroll {
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      border-radius: 10px;
      box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    }

.table-scroll table {
      box-shadow: none;
      border-radius: 0;
      min-width: 520px; /* desktop: garante largura mÃ­nima */
    }

@media(max-width:700px){
      .table-scroll table {
        min-width: unset;
        width: 100%;
      }
    }

@media(max-width:700px){
      .conteudo {
        padding: 0 12px;
      }

      th {
        font-size: 12px;
        padding: 10px 8px;
        white-space: nowrap;
      }

      td {
        font-size: 12px;
        padding: 8px;
        white-space: nowrap;
      }

      /* oculta coluna "Local do Aparelho" no mobile */
      table th:nth-child(4),
      table td:nth-child(4) {
        display: none;
      }
    }

@media(max-width:480px){
      th {
        font-size: 11px;
        padding: 9px 6px;
      }

      td {
        font-size: 11px;
        padding: 7px 6px;
      }
    }

@media(max-width:600px){
      .pagina-titulo h1{
        font-size:22px;
      }

      .footer-bottom{
        flex-direction:column;
        text-align:center;
      }

      .footer-bottom .quote{
        text-align:center;
      }
    }

/* ===== Migrated from historico-1.html ===== */

/* =========================
       HEADER / NAV GLOBAL
    ========================= */

    .header {
      background: #222;
      color: #fff;
      padding: 50px 0;
    }

.header-text {
      text-align: center;
      flex: 1;
      padding: 0 20px;
    }

#header-container {
      position: relative;
      z-index: 1000;
    }

.nav-placeholder {
      display: none;
    }

.nav-placeholder.active {
      display: block;
    }

.nav li a {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 12px 16px;
      font-size: 15px;
      font-weight: 700;
      letter-spacing: 1px;
      text-transform: uppercase;
      color: #fff;
      transition: color 0.2s;
      white-space: nowrap;
    }

.arrow {
      transition: transform 0.3s;
      font-size: 10px;
    }

.dropdown:hover .arrow,
    .mega-dropdown:hover .arrow {
      transform: rotate(180deg);
    }

.menu-toggle {
      display: none;
      background: none;
      border: none;
      color: #fff;
      font-size: 28px;
      cursor: pointer;
      padding: 10px 18px;
      margin: 0 auto;
    }

/* submenu padrÃ£o */

/* =========================
       CONTEÃšDO DA COMPANHIA
    ========================= */

    .companhia-section {
      padding: 0;
      background: #fff;
    }

.companhia-card {
      background: #fff;
      border-radius: 0 0 12px 12px;
      overflow: hidden;
      box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
      border-top: 4px solid #2c2c2c;
    }

.companhia-header {
      background: linear-gradient(135deg, #2c2c2c, #2c2c2c);
      color: #fff;
      padding: 22px 30px;
    }

.companhia-header .cia-nome {
      font-size: 32px;
      font-weight: 900;
      margin-top: 4px;
      text-transform: uppercase;
    }

.companhia-body {
      display: grid;
      grid-template-columns: 500px 1fr;
      gap: 40px;
      padding: 40px;
      align-items: center;
    }

.companhia-aside {
      display: flex;
      justify-content: center;
      align-items: center;
    }

.brasao-box {
      background: #f8f8f8;
      border-radius: 14px;
      padding: 28px 24px;
      border: 1px solid #ececec;
      width: 100%;
      max-width: 400px;
      margin: 0 auto;
      box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    }

.brasao-box img {
      width: 100%;
      max-width: 420px;
      height: auto;
      margin: 0 auto 18px;
      filter: drop-shadow(0 5px 6px rgba(255,255,255,0.16)) drop-shadow(9px -11px 2px rgba(0,0,0,0.16)) drop-shadow(13px -15px 8px rgba(0,0,0,0.14));
    }

.brasao-box .forca {
      margin-top: 18px;
      font-size: 18px;
      font-weight: 800;
      color: #000000;
      letter-spacing: 1px;
      text-transform: uppercase;
      text-align: center;
    }

.companhia-content {
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 20px;
    }

.bloco-info {
      background: #fff;
      border: 1px solid #ececec;
      border-left: 4px solid #2c2c2c;
      border-radius: 12px;
      padding: 28px 30px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    }

.bloco-info h3 {
      font-size: 13px;
      text-transform: uppercase;
      letter-spacing: 1.5px;
      color: #000000;
      margin-bottom: 10px;
      font-weight: 800;
    }

.bloco-info p {
      font-size: 15px;
      line-height: 1.8;
      color: #444;
    }

.brado {
      text-align: left;
      white-space: pre-line;
      font-size: 30px;
      line-height: 1.9;
      color: #333;
    }

.brado strong {
      color: #000000;
    }

.red-divider {
      height: 4px;
      background: #2c2c2c;
      width: 100%;
      margin: 4px 0 6px 0;
    }

.btn-voltar {
      display: inline-block;
      background: #000000;
      color: #fff;
      padding: 12px 28px;
      border-radius: 6px;
      font-weight: 700;
      text-transform: uppercase;
      margin-top: 0;
      transition: opacity 0.2s;
    }

.btn-voltar:hover {
      opacity: 0.85;
    }

center {
      margin: 0;
      padding: 0;
    }

/* =========================
       FOOTER
    ========================= */

    .footer {
      background: #222;
      color: #fff;
      padding: 18px 0 0;
      margin-top: 8px;
    }

.footer h3 {
      color: #fff;
      font-style: italic;
      font-size: 17px;
      margin-bottom: 10px;
    }

.footer-menu li {
      margin-bottom: 8px;
    }

.footer-menu li a {
      font-size: 13px;
      color: #fff;
      transition: color 0.2s;
    }

.fc-icon {
      width: 50px;
      height: 50px;
      flex-shrink: 0;
    }

.fc-label {
      font-weight: 700;
      font-size: 13px;
      color: #fff;
    }

.fc-text {
      font-size: 13px;
      margin-top: 2px;
      color: #fff;
    }

.footer-bottom {
      margin-top: 40px;
      padding: 20px 0;
      border-top: 1px solid #444;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 6px;
      font-size: 12px;
      color: #888;
    }

.footer-bottom .quote,
    .footer-bottom .creditos {
      white-space: nowrap;
    }

/* =========================
       RESPONSIVO
    ========================= */

    @media (max-width: 900px) {
      .header .container {
        flex-direction: column;
        gap: 6px;
      }

      .header-text h1 {
        font-size: 24px;
      }

      .companhia-body {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 28px 22px;
      }

      .companhia-aside {
        max-width: 480px;
        margin: 0 auto;
        width: 100%;
      }

      .companhia-content {
        width: 100%;
      }

      .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
      }

      .footer-contact-item {
        justify-content: center;
      }
    }

@media (max-width: 768px) {
      .menu-toggle {
        display: block;
      }

      .nav ul {
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 0;
      }

      .nav ul.open {
        display: flex;
      }

      .nav li {
        width: 100%;
        text-align: center;
      }

      .nav li a {
        justify-content: center;
        width: 100%;
      }

      .submenu,
      .normas-menu {
        position: static;
        transform: none !important;
        width: 100%;
        min-height: auto;
        opacity: 1;
        visibility: visible;
        display: none;
        box-shadow: none;
        border-radius: 0;
      }

      .dropdown.open .submenu,
      .mega-dropdown.open .normas-menu {
        display: flex;
      }

      .normas-menu {
        flex-direction: column;
      }

      .normas-menu .categorias,
      .normas-menu .links {
        width: 100%;
      }
    }

@media (max-width: 600px) {
      .companhia-header .cia-nome {
        font-size: 24px;
      }

      .companhia-body {
        padding: 20px;
      }

      .bloco-info {
        padding: 18px;
      }

      .brado {
        font-size: 22px !important;
        line-height: 2 !important;
      }

      .footer-bottom {
        flex-direction: column;
        text-align: center;
      }

      .footer-bottom .quote {
        text-align: center;
      }
    }/* ===== HISTORICO ===== */
    .historico {
      padding: 60px 0;
    }

/* ===== Migrated from historico.html ===== */

@keyframes cardEntry {
      from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
      }
      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }

@keyframes fadeIn {
      from {
        opacity: 0;
        backdrop-filter: blur(0px);
      }
      to {
        opacity: 1;
        backdrop-filter: blur(2px);
      }
    }

@keyframes slideUp {
      from {
        opacity: 0;
        transform: translate(-50%, -60px) scale(0.9);
      }
      to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
      }
    }

.historico-gallery {
      position: relative;
      overflow: hidden;
      padding: 28px 0 52px;
      background: linear-gradient(180deg, #ffffff 0%, #f6f6f6 100%);
    }

.historico-gallery::before {
      content: "";
      position: absolute;
      inset: 0;
      background-image: radial-gradient(circle at 16% 24%, rgba(224, 32, 32, 0.04) 0%, transparent 34%), radial-gradient(circle at 84% 74%, rgba(0, 0, 0, 0.03) 0%, transparent 30%);
      pointer-events: none;
    }

.historico-gallery-shell {
      position: relative;
      z-index: 1;
    }

.historico {
      position: relative;
      padding-top: 20px;
      padding-bottom: 40px;
      background: linear-gradient(180deg, #ebebeb 0%, #dddddd 100%);
    }

.historico::after {
      content: "";
      position: absolute;
      left: 50%;
      bottom: 0;
      width: min(1120px, calc(100% - 48px));
      height: 3px;
      transform: translateX(-50%);
      background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(70, 70, 70, 0.22) 16%, rgba(224, 32, 32, 0.72) 50%, rgba(70, 70, 70, 0.22) 84%, rgba(0, 0, 0, 0) 100%);
      box-shadow: 0 1px 10px rgba(224, 32, 32, 0.18);
    }

.historico .container,
    .historico-gallery .container {
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
    }

.historico-grid {
      gap: 28px;
      align-items: start;
    }

.historico-grid > .historico-circle {
      justify-self: center;
      align-self: center;
    }

.historico-text h2,
    .historico-gallery-title {
      font-family: 'Playfair Display', serif;
      color: #151515;
      font-size: clamp(1.6rem, 3vw, 2.2rem);
      font-weight: 700;
      letter-spacing: -0.02em;
      margin-top: 5px;
      margin-bottom: 20px;
      line-height: 1.12;
      text-transform: uppercase;
      text-align: center;
    }

.historico-gallery-subtitle {
      font-family: 'Inter', sans-serif;
      color: #5f5f5f;
      font-size: 0.95rem;
      font-weight: 400;
      letter-spacing: 0.2px;
      margin-top: 0;
      margin-bottom: 0;
    }

.historico-text p {
      font-family: 'Inter', sans-serif;
      color: #5f5f5f;
      font-size: 0.84rem;
      line-height: 1.7;
      text-align: justify;
      text-wrap: pretty;
      margin-bottom: 8px;
    }

.historico-gallery-divider {
      width: 52px;
      height: 2px;
      background: #e02020;
      margin: 16px auto 0;
    }

.gallery-stage {
      position: relative;
      max-width: 620px;
      margin: 0 auto;
      padding: 18px 12px 0;
    }

.gallery-viewport {
      position: relative;
      overflow: hidden;
      border-radius: 22px;
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 248, 248, 0.96) 100%);
      border: 1px solid rgba(0, 0, 0, 0.06);
      box-shadow: 0 18px 42px rgba(0, 0, 0, 0.08);
      width: 100%;
    }

.gallery-viewport::before,
    .gallery-viewport::after {
      content: "";
      position: absolute;
      top: 0;
      bottom: 0;
      width: 54px;
      z-index: 6;
      pointer-events: none;
    }

.gallery-viewport::before {
      left: 0;
      background: linear-gradient(90deg, rgba(248, 248, 248, 0.98) 0%, rgba(248, 248, 248, 0) 100%);
    }

.gallery-viewport::after {
      right: 0;
      background: linear-gradient(270deg, rgba(248, 248, 248, 0.98) 0%, rgba(248, 248, 248, 0) 100%);
    }

.gallery-track {
      display: flex;
      gap: 14px;
      padding: 22px 58px;
      transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
      user-select: none;
      will-change: transform;
      cursor: grab;
    }

.photo-card {
      width: clamp(96px, 12vw, 138px);
      aspect-ratio: 0.8;
      flex-shrink: 0;
      border-radius: 14px;
      overflow: hidden;
      position: relative;
      cursor: pointer;
      transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
      filter: grayscale(0.15) sepia(0.2) contrast(0.98) brightness(0.98);
      box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
      animation: cardEntry 0.6s ease-out backwards;
      background: rgba(255, 255, 255, 0.72);
      border: 1px solid rgba(0, 0, 0, 0.06);
      opacity: 0.45;
      transform: scale(0.86);
    }

.photo-card:nth-child(1) { animation-delay: 0.05s; }

.photo-card:nth-child(2) { animation-delay: 0.1s; }

.photo-card:nth-child(3) { animation-delay: 0.15s; }

.photo-card:hover {
      filter: grayscale(0.05) sepia(0.1) contrast(1.04) brightness(1.04);
      box-shadow: 0 18px 34px rgba(0, 0, 0, 0.14);
      transform: translateY(-4px) scale(0.96);
      opacity: 0.88;
    }

.photo-card.is-active {
      opacity: 1;
      transform: translateY(-8px) scale(1.16);
      border-color: rgba(224, 32, 32, 0.3);
      box-shadow: 0 22px 40px rgba(0, 0, 0, 0.18);
      z-index: 3;
    }

.photo-inner {
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
    }

.photo-card .caption {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      padding: 10px;
      background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
      color: #f5f5f5;
      font-family: 'Playfair Display', serif;
      font-size: 0.68rem;
      opacity: 0;
      transition: opacity 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
      transform: translateY(10px);
    }

.photo-card:hover .caption {
      opacity: 1;
      transform: translateY(0);
    }

.vintage-scene {
      width: 100%;
      height: 100%;
    }

.gallery-nav-btn {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      z-index: 10;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      border: none;
      background: linear-gradient(180deg, #ef2d2d 0%, #cf1f1f 100%);
      color: #ffffff;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
      box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
    }

.gallery-nav-btn:hover {
      background: linear-gradient(180deg, #e02020 0%, #b91919 100%);
      transform: translateY(-50%) scale(1.08);
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }

.gallery-nav-btn:active {
      transform: translateY(-50%) scale(0.95);
    }

.gallery-nav-btn.left {
      left: 12px;
    }

.gallery-nav-btn.right {
      right: 12px;
    }

.gallery-nav-btn i {
      width: 20px;
      height: 20px;
      stroke-width: 2;
    }

.dot-indicators {
      display: flex;
      gap: 7px;
      justify-content: center;
      margin-top: 14px;
      flex-wrap: wrap;
      padding: 0 16px;
    }

.dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: #b8b8b8;
      cursor: pointer;
      transition: all 0.3s ease;
    }

.dot.active {
      background: #e02020;
      transform: scale(1.25);
    }

.dot:hover {
      background: #8d8d8d;
    }

.gallery-meta {
      margin: 14px auto 0;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 14px;
      width: min(100%, 460px);
      padding: 12px 14px;
      border-radius: 16px;
      background: rgba(255, 255, 255, 0.82);
      border: 1px solid rgba(0, 0, 0, 0.06);
      box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
      backdrop-filter: blur(12px);
    }

.gallery-meta-copy {
      min-width: 0;
    }

.gallery-meta-label {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 0;
      color: #5a5a5a;
      font-size: 0.68rem;
      font-weight: 700;
      letter-spacing: 1px;
      text-transform: uppercase;
    }

.gallery-meta-label::before {
      content: "";
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #e02020;
      box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
    }

.gallery-meta-title {
      color: #161616;
      font-family: 'Playfair Display', serif;
      font-size: 1rem;
      line-height: 1.25;
      text-transform: uppercase;
    }

#gallery-modal-overlay {
      animation: fadeIn 0.35s ease;
      background: rgba(7, 7, 7, 0.58);
      backdrop-filter: blur(10px);
    }

#gallery-modal.active {
      animation: slideUp 0.38s cubic-bezier(0.22, 1, 0.36, 1);
    }

.gallery-modal-shell {
      width: 100vw;
      height: 100dvh;
      border-radius: 0;
      overflow: hidden;
      background: linear-gradient(180deg, rgba(16,16,16,0.9) 0%, rgba(8,8,8,0.92) 100%);
      border: none;
      box-shadow: none;
      backdrop-filter: blur(18px);
      display: flex;
      flex-direction: column;
    }

.gallery-modal-media {
      position: relative;
      width: 100%;
      flex: 1;
      background:
        radial-gradient(circle at top, rgba(255,255,255,0.08) 0%, transparent 32%),
        linear-gradient(180deg, rgba(32,32,32,0.96) 0%, rgba(12,12,12,0.98) 100%);
    }

#gallery-modal-content {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 78px 88px 34px;
      overflow: hidden;
    }

.gallery-modal-zoom-layer {
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: grab;
      touch-action: none;
    }

.gallery-modal-zoom-inner {
      width: 100%;
      height: 100%;
      transform-origin: center center;
      transition: transform 0.22s ease;
      will-change: transform;
    }

.gallery-modal-zoom-layer.is-dragging {
      cursor: grabbing;
    }

#gallery-modal-content .vintage-scene {
      width: 100%;
      height: 100%;
      max-width: 100%;
      max-height: 100%;
      object-fit: contain;
      filter: drop-shadow(0 24px 40px rgba(0,0,0,0.35));
    }

.gallery-modal-toolbar {
      position: absolute;
      top: 18px;
      left: 20px;
      display: flex;
      align-items: center;
      gap: 12px;
      z-index: 20;
    }

.gallery-zoom-slider-wrap {
      height: 144px;
      width: 42px;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,0.12);
      background: rgba(255,255,255,0.05);
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 8px 18px rgba(0,0,0,0.18);
      backdrop-filter: blur(12px);
      padding: 10px 0;
    }

.gallery-zoom-slider {
      -webkit-appearance: slider-vertical;
      appearance: slider-vertical;
      width: 16px;
      height: 110px;
      background: transparent;
      writing-mode: bt-lr;
      cursor: pointer;
      accent-color: #e02020;
    }

.gallery-zoom-slider::-webkit-slider-runnable-track {
      width: 4px;
      border-radius: 999px;
      background: rgba(255,255,255,0.18);
    }

.gallery-zoom-slider::-webkit-slider-thumb {
      -webkit-appearance: none;
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background: linear-gradient(180deg, #ffffff 0%, #f2f2f2 100%);
      border: 1.5px solid #e02020;
      box-shadow: 0 2px 8px rgba(0,0,0,0.18);
      margin-top: -4px;
    }

.gallery-zoom-slider::-moz-range-track {
      width: 4px;
      border-radius: 999px;
      background: rgba(255,255,255,0.18);
    }

.gallery-zoom-slider::-moz-range-thumb {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background: linear-gradient(180deg, #ffffff 0%, #f2f2f2 100%);
      border: 1.5px solid #e02020;
      box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    }

.gallery-modal-tool {
      width: 42px;
      height: 42px;
      border-radius: 50%;
      border: 1px solid rgba(255,255,255,0.22);
      background: rgba(255,255,255,0.08);
      color: #ffffff;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      box-shadow: 0 12px 26px rgba(0,0,0,0.24);
      backdrop-filter: blur(12px);
      transition: transform 0.2s ease, background 0.2s ease;
    }

.gallery-modal-tool:hover {
      transform: scale(1.06);
      background: rgba(255,255,255,0.14);
    }

.gallery-modal-close {
      position: absolute;
      top: 18px;
      right: 20px;
      width: 46px;
      height: 46px;
      border: 1px solid rgba(255,255,255,0.22);
      background: rgba(255,255,255,0.08);
      color: #ffffff;
      border-radius: 50%;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 20;
      transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
      box-shadow: 0 12px 26px rgba(0,0,0,0.24);
      backdrop-filter: blur(12px);
    }

.gallery-modal-close:hover {
      transform: scale(1.06);
      background: rgba(255,255,255,0.14);
      box-shadow: 0 14px 28px rgba(0,0,0,0.28);
    }

.gallery-modal-caption-wrap {
      padding: 18px 24px 24px;
      text-align: center;
      border-top: 1px solid rgba(255,255,255,0.08);
      background: linear-gradient(180deg, rgba(18,18,18,0.72) 0%, rgba(8,8,8,0.84) 100%);
      backdrop-filter: blur(14px);
    }

#gallery-modal-caption {
      color: #ffffff;
      font-family: 'Playfair Display', serif;
      font-size: clamp(1rem, 1.8vw, 1.2rem);
      font-weight: 700;
      letter-spacing: 0.02em;
      text-transform: uppercase;
      margin: 0;
    }

.gallery-modal-prev,
    .gallery-modal-next {
      background: rgba(255,255,255,0.08);
      border: 1px solid rgba(255,255,255,0.2);
      box-shadow: 0 14px 30px rgba(0,0,0,0.22);
      backdrop-filter: blur(12px);
    }

.gallery-modal-prev:hover,
    .gallery-modal-next:hover {
      background: rgba(255,255,255,0.14);
    }

.gallery-modal-prev {
      left: 20px;
    }

.gallery-modal-next {
      right: 20px;
    }

@media (max-width: 768px) {
      .historico {
        padding-top: 18px;
        padding-bottom: 34px;
      }

      .historico-gallery {
        padding: 24px 0 44px;
      }

      .gallery-stage {
        padding: 12px 0 4px;
      }

      .gallery-viewport {
        border-radius: 16px;
      }

      .gallery-viewport::before,
      .gallery-viewport::after {
        width: 40px;
      }

      .gallery-track {
        gap: 12px;
        padding: 18px 46px;
      }

      .gallery-nav-btn {
        width: 36px;
        height: 36px;
      }

      .photo-card {
        width: clamp(86px, 28vw, 112px);
      }

      .gallery-meta {
        width: 100%;
        padding: 11px 12px;
      }

      .gallery-modal-shell {
        width: 100vw;
        height: 100dvh;
        border-radius: 0;
      }

      .gallery-modal-media {
        flex: 1;
      }

      #gallery-modal-content {
        padding: 74px 22px 24px;
      }

      .gallery-modal-toolbar {
        top: 10px;
        left: 10px;
      }

      .gallery-modal-tool {
        width: 38px;
        height: 38px;
      }

      .gallery-zoom-slider-wrap {
        height: 128px;
        width: 38px;
        padding: 10px 0;
      }

      .gallery-zoom-slider {
        height: 96px;
      }

      .gallery-modal-prev {
        left: 10px;
      }

      .gallery-modal-next {
        right: 10px;
      }

      .gallery-modal-close {
        top: 10px;
        right: 10px;
        width: 38px;
        height: 38px;
      }
    }

@media (max-width: 480px) {
      .historico-gallery-title {
        font-size: 1.45rem;
      }

      .historico-gallery-subtitle {
        font-size: 0.82rem;
      }

      .gallery-track {
        padding: 16px 42px;
      }

      .gallery-meta {
        padding: 10px 12px;
      }

      .gallery-meta-title {
        font-size: 0.84rem;
      }
    }

/* ===== Migrated from index (2).html ===== */

.musica-stack {
    position: relative;
    grid-column: span 1;
  }

.musica-floating-line {
    position: fixed;
    top: var(--musica-float-top, 78px);
    right: 18px;
    z-index: 1200;
    width: min(360px, calc(100vw - 36px));
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(179, 18, 23, 0.24);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(8px);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 220ms ease, transform 220ms ease;
    pointer-events: none;
    text-align: center;
  }

.musica-stack.is-open .musica-floating-line {
    opacity: 1;
    transform: translateY(0);
  }

.musica-floating-kicker {
    display: block;
    margin-bottom: 2px;
    color: #b31217;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

.musica-floating-text {
    margin: 0;
    color: #222;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    text-transform: uppercase;
  }

.musica-inline-line {
    display: none;
  }

.musica-inline-line[hidden] {
    display: none !important;
  }

.nav-music-item {
  display: none;
}

.page-index .nav-music-item {
    display: flex;
    align-items: center;
    width: 0;
    min-width: 0;
    overflow: visible;
  }

.page-index .nav-music-shell {
    position: relative;
    display: block;
    width: 0;
    min-width: 0;
    padding: 0;
    overflow: visible;
  }

.page-index .nav-music-shell .musica-floating-line {
    position: absolute;
    top: 50%;
    left: 12px;
    right: auto;
    width: min(310px, 48vw);
    z-index: 7000;
    transform: translateY(-50%) translateX(10px);
  }

.page-index .nav-music-shell.is-open .musica-floating-line {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }

@media(max-width: 900px) {
  .downloads-grid {
      grid-template-columns: 1fr;
    }

  .download-card.musica .musica-content {
      flex-direction: column;
      align-items: flex-start;
    }

  .musica-floating-line {
      top: auto;
      right: 12px;
      bottom: 16px;
      width: min(92vw, 440px);
    }

  .download-card.musica audio {
      width: 100%;
      min-width: 0;
      max-width: none;
    }

  .page-index .nav-music-item {
      display: none;
    }

  .page-index .downloads-grid .musica-inline-line {
      display: block;
      grid-column: 1 / -1;
      width: 100%;
      margin: -2px 0 4px;
      padding: 8px 12px;
      border-radius: 10px;
      background: rgba(255, 255, 255, 0.95);
      border: 1px solid rgba(179, 18, 23, 0.24);
      box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
      text-align: center;
    }
    }

.ct-value {
  color: #fff;
  font-size: 15px;
}

/* ===== Migrated from index.backup.html ===== */

/* ===== RESET & BASE ===== */

* {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

.footer .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 240px;
  border-radius: 4px;

  margin: 0;
  padding: 0;
  list-style: none;

  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0,0,0,0.35);

  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s ease;
}

/* abrir submenu */

.dropdown:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* itens */

.submenu li {
  display: block;
  border-bottom: 1px solid #1a1a1a;
}

.nav .submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #000;
  width: max-content;
  min-width: 180px;
  max-width: 210px;
  border-radius: 6px;

  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  flex-direction: column;

  box-shadow: 0 10px 25px rgba(0,0,0,0.35);

  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.dropdown:hover .submenu {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

.nav .submenu li {
  display: block;
  width: 100%;
  border-bottom: 1px solid #1a1a1a;
  flex: 0 0 auto;
}

.nav .submenu li:last-child {
  border-bottom: none;
}

.submenu li a {
  display: block;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: #000;
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.nav .submenu li a {
  display: block;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: #000;
  transition: all 0.2s ease;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.nav .submenu li a:hover {
  background: #111;
  color: #e02020;
  padding-left: 24px;
}

/* hover elegante */

.submenu li a:hover {
  background: #111;
  color: #e02020;
  padding-left: 24px;
}

.diretor-section {
      background: #bebebe;
      padding: 120px 0;
    }

.diretor-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 100px;
      column-gap: 250px;
    }

.diretor-card {
      display: flex;
      align-items: center;
      gap: 24px;
    }

.diretor-card .info h3 {
      color: #222;
      font-size: 20px;
      font-weight: 700;
    }

/* ===== HISTORICO ===== */

.historico {
      padding: 60px 0;
    }

.historico-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 50px;
      align-items: center;
    }

.historico-circle {
      width: 100%;
      aspect-ratio: 1;
      max-width: 600px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto;
    }

.historico-circle img {
      width: 95%;
      height: auto;
      object-fit: contain;
      margin-top: -80px;
    }

.historico-circle span {
      font-size: 60px;
      font-weight: 900;
      color: rgba(0,0,0,0.1);
    }

.historico-text h2 {
      color: #e02020;
      font-size: 24px;
      font-weight: 700;
      margin-bottom: 10px;
    }

.historico-text p {
      font-size: 15px;
      line-height: 1.7;
      margin-bottom: 10px;
    }

.historico-text .btn-red {
      margin-top: 16px;
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }

.download-card audio {
  width: 100%;
  margin-top: 10px;
}

.contato-cards {
  padding: 60px 0;
}

.contato-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.ct-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
  opacity: .9;
}

.ct-value {
  font-size: 15px;
  margin-top: 4px;
  font-weight: 600;
}

.ct-value.red {
  color: #ff2d2d;
}

.contato-card:hover .ct-value.red {
  color: #ff3b3b;
}

.red-divider {
      height: 4px;
      background: #e02020;
      width: 35%;
    }

.footer-grid {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 40px;
      
    }

.footer-logo {
      display: flex;
      justify-content: center;
    }

.footer-logo-circle img {
  width: 42%;
  height: auto;
  object-fit: contain;
}

.mapa-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  visibility: hidden;
  transition: all .35s ease;

  z-index: 9999;
}

.mapa-modal.ativo {
  opacity: 1;
  visibility: visible;
}

.submenu {
      position: absolute;
      top: 100%;
      left: 50%;
      transform: translateX(-50%) translateY(8px);
      background: #000;
      width: 180px;
      min-width: 180px;
      border-radius: 8px;
      box-shadow: 0 15px 35px rgba(0,0,0,0.4);
      display: flex;
      flex-direction: column;
      opacity: 0;
      visibility: hidden;
      transition: all 0.25s ease;
      z-index: 1100;
      overflow: hidden;
    }

.normas-menu .categorias {
      width: 230px;
      background: #050505;
      border-right: 1px solid #1a1a1a;
      border-bottom: 3px solid #e02020;
      display: flex;
      flex-direction: column;
    }

/* =========================================================
   PAGINA: index.html
   ========================================================= */
/* ===== Migrated from index.html ===== */
/* ===== RESET & BASE ===== */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

body {
      font-family: 'Segoe UI', Arial, sans-serif;
      color: #222;
      background: #fff;
    }

ul {
      list-style: none;
    }

/* ===== HEADER ===== */

.header {
      background: #222;
      color: #fff;
      padding: clamp(10px, 3vw, 50px) 0;
    }

.header-logo img {
      height: clamp(60px, 12vw, 150px);
      width: auto;
    }

.logo-essd img {
      height: clamp(70px, 14vw, 200px);
      width: auto;
    }

.logo-pm img {
      height: clamp(60px, 12vw, 170px);
      width: auto;
    }

.header-logo {
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: bold;
      font-size: 13px;
      letter-spacing: 2px;
      flex-shrink: 0;
    }

.header-text {
      flex: 4;
      text-align: center;
      min-width: 0;
      padding: 0 clamp(4px, 1.5vw, 16px);
    }

.header-text p {
      font-size: clamp(10px, 1.8vw, 17px);
      letter-spacing: 0.18em;
      text-transform: uppercase;
      margin-top: 5px;
    }

.header-text h1 {
      font-size: clamp(15px, 3.5vw, 35px);
      letter-spacing: 0.06em;
      text-transform: uppercase;
      margin-top: 4px;
    }

.nav {
      background: #000000;
      border-top: 0px solid #444;
      padding: 8px;
      position: sticky;
      top: 0;
      z-index: 1000;
    }

.nav ul {
      display: flex;
      flex-wrap: nowrap;
      justify-content: center;
    }

/* ===== SUBMENU ===== */

/* Submenu styles are defined later in this stylesheet */

/* animaÃ§Ã£o da seta */

.dropdown:hover .arrow {
    transform: rotate(180deg);
  }

.arrow {
    transition: transform 0.3s;
    }

.nav li a {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 12px 16px;
      font-size: 15px;
      font-weight: 700;
      letter-spacing: 1px;
      text-transform: uppercase;
      color: #fff;
      transition: color 0.2s;
      white-space: nowrap; /* ðŸ”¥ impede quebra de linha */
    }

.nav li a:hover,
    .nav li a.active {
      color: #e02020;
    }

.nav li a .arrow {
      font-size: 10px;
    }

/* ===== MOBILE MENU ===== */

.menu-toggle {
      display: none;
      background: none;
      border: none;
      color: #fff;
      font-size: 28px;
      cursor: pointer;
      padding: 10px 18px;
    }

/* ===== HERO ===== */

.hero {
      position: relative;
      aspect-ratio: 3 / 2;
      background: #111;
      overflow: hidden;
    }

.hero-slider {
      position: absolute;
      inset: 0;
      background-size: cover;
      background-position: center center;
      transition: background-image 0.8s ease-in-out;
    }

.hero-overlay {
      display: none;
    }

.hero-nav {
      position: absolute;
      top: 50%;
      width: 100%;
      display: flex;
      justify-content: space-between;
      align-items: center;
      z-index: 3;
      padding: 0 20px;
      transform: translateY(-50%);
      pointer-events: none;
    }

.hero-arrow {
      background: rgba(255, 255, 255, 0.5);
      color: #fff;
      border: none;
      width: 50px;
      height: 50px;
      border-radius: 50%;
      font-size: 24px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s ease;
      pointer-events: auto;
    }

.hero-arrow:hover {
      background: rgba(255, 255, 255, 0.9);
      color: #222;
    }

.hero-dots {
      position: absolute;
      bottom: 20px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      gap: 6px;
      z-index: 3;
    }

.dot {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.5);
      cursor: pointer;
      transition: all 0.3s ease;
    }

.dot.active {
      background: #e02020;
      width: 30px;
      border-radius: 6px;
    }

.hero-content {
      display: none;
    }

/* ===== SECTION TITLE ===== */

.section-title {
      font-size: 22px;
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: 1px;
      margin-bottom: 8px;
    }

.section-title-bar {
      width: 90px;
      height: 4px;
      background: #e02020;
      margin-bottom: 30px;
    }

/* ===== ACESSO RAPIDO ===== */

.acesso-rapido {
      padding: 50px 0;
    }

.acesso-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 16px;
    }

.acesso-card {
      border: 1px solid #ddd;
      border-radius: 10px;
      padding: 24px;
      display: flex;
      align-items: center;
      gap: 14px;
      transition: box-shadow 0.2s;
      cursor: pointer;
      background: #fff;
    }

.acesso-card:hover {
      box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    }

.acesso-card .icon {
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

.acesso-card .icon img {
      width: 60px;
      height: auto;
    }

.acesso-card .card-title {
      font-weight: 700;
      font-size: 19px;
    }

.acesso-card {
      display: flex;
      align-items: center;
      gap: 15px;
    }

.escala-card input {
      width: 100%;
      border: 1px solid #ddd;
      border-radius: 6px;
      padding: 10px 12px;
      font-size: 13px;
    }

.btn-red {
      background: #e02020;
      color: #fff;
      border: none;
      padding: 10px 24px;
      border-radius: 6px;
      font-weight: 700;
      font-size: 13px;
      cursor: pointer;
      text-transform: uppercase;
      transition: opacity 0.2s;
    }

.btn-red:hover {
      opacity: 0.85;
    }

.btn-red-pill {
      background: #e02020;
      color: #fff;
      border: none;
      padding: 10px 28px;
      border-radius: 50px;
      font-weight: 600;
      font-size: 13px;
      cursor: pointer;
      transition: opacity 0.2s;
      margin-top: 20px;
      display: inline-block;
    }

.btn-red-pill:hover {
      opacity: 0.85;
    }

/* ===== DIRETOR / POLICIAL ===== */

.diretor-section {
      background: #bebebe;
      padding: 50px 0;
    }

.diretor-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 40px;
      column-gap: 80px;
    }

.diretor-card {
  display: flex;
  flex-direction: column; /* ðŸ”¥ joga pra baixo */
  align-items: center;   /* centraliza */
  text-align: center;    /* centraliza texto */
  gap: 16px;
}

.diretor-card img {
      width: 280px;
      height: 380px;
      object-fit: cover;
      border-radius: 10px;
      box-shadow: 0 4px 20px rgba(0,0,0,0.15);
      background: #ddd;
    }

.diretor-card .info h3 {
      color: #e02020;
      font-size: 20px;
      font-weight: 700;
    }

.diretor-card .info .subtitle {
      color: #e02020;
      font-weight: 1000;
      letter-spacing: 3px;
      font-size: 18px;
      text-transform: uppercase;
      margin-top: 4px;
    }

.diretor-card .info .name {
      color: #222;
      font-weight: 700;
      font-size: 16px;
      margin-top: 4px;
    }

.diretor-card .info p {
      font-size: 18px;
      color: #fff;
      margin-top: 10px;
      line-height: 1.5;
    }

.diretor-card .info button {
      margin-top: 16px;
    }

/* ===== DOWNLOADS ===== */

.downloads-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.download-card {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #dfe3e8;
  padding: 20px;
  border-radius: 12px;
  transition: 0.3s;
}

.download-card:hover {
  background: #cfd5db;
  transform: translateY(-3px);
}

.download-card h3 {
  font-size: 16px;
  font-weight: bold;
}

.download-card p {
  font-size: 13px;
  color: #444;
}

.download-card .icon {
  font-size: 20px;
  color: red;
}

.download-card.musica .musica-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}

.download-card.musica .musica-text {
  min-width: 0;
}

.download-card.musica audio {
  width: 180px;
  min-width: 180px;
  max-width: 180px;
  margin-top: 0;
  flex: 0 0 auto;
}

.titulo-secao {
  margin-top: 40px;
  margin-bottom: 24px;
}

/* PLAYER */

.download-card:not(.musica) audio {
  width: 100%;
  margin-top: 10px;
}

@media(max-width: 900px) {
  .downloads-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== CONTATO CARDS ===== */

/* BLOCO CONTATO */

/* GRID DOS CARDS */

.contato-cards {
  padding: 40px 0;
}

/* GRID */

.contato-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* CARD */

.contato-card {
  background: linear-gradient(135deg,#1c1c1c,#111);
  color: #fff;

  border-radius: 14px;
  padding: 32px;

  display: flex;
  align-items: center;
  gap: 22px;

  text-decoration: none;

  height: 140px; /* todos ficam iguais */

  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  transition: all .25s ease;
}

/* ÃCONE */

.ct-icon {
  font-size: 46px;
  opacity: .9;
}

/* TEXTO */

.ct-label {
  color: #e02020;
  font-size: 12px;
  letter-spacing: 2px;
}

.ct-value {
  color: #fff;
  font-size: 17px;
}

/* HOVER */

.contato-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.45);
  background: linear-gradient(135deg,#242424,#151515);
}

.contato-card:hover .ct-value.red {
  color: #e02020
}

/* ===== RED DIVIDER ===== */

.red-divider {
      height: 4px;
      background: #e02020;
      width: 100%;
    }

/* ===== FOOTER ===== */

.footer {
      background: #222;
      color: #fff;
      padding: 50px 0 0;
    }

.footer-grid {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 16px;
    }

.footer-logo {
      display: flex;
      justify-content: left;
    }

.footer-logo-circle {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-logo-circle img {
  width: 100%; /* ðŸ”¥ aumenta a logo */
  max-width: 220px; /* ðŸ”¥ controla pra nao estourar */
  height: auto;
  object-fit: contain;
}

.footer h3 {
      color: #e02020;
      font-style: italic;
      font-size: 17px;
      margin-bottom: 10px;
    }

.footer-menu li {
      position: relative;
      list-style: none;
      margin-bottom: 8px;
    }

.footer-menu li a {
      font-size: 13px;
      transition: color 0.2s;
    }

.footer-menu li a:hover {
      color: #e02020;
    }

.footer-contact-item {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      margin-bottom: 10px;
    }

.footer-contact-item .fc-icon {
      width: 32px;
      height: 32px;
      object-fit: contain;
      flex-shrink: 0;
    }

.footer-contact-item .fc-label {
      font-weight: 700;
      font-size: 13px;
    }

.footer-contact-item .fc-text {
      font-size: 13px;
      margin-top: 2px;
    }

.footer-bottom {
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid #444;

  display: flex;
  flex-direction: column; /* ðŸ”¥ joga um em cima do outro */
  align-items: center; /* ðŸ”¥ tudo alinhado Ã  esquerda */

  gap: 6px; /* espaÃ§o entre as linhas */

  font-size: 12px;
  color: #888;
}

.footer-bottom .quote,

.footer-bottom .creditos {
  white-space: nowrap; /* ðŸ”¥ impede quebra dentro da linha */
}

/* CARDS REDE-SOCIAL */

/* ===== SOCIAL FLOAT ===== */

.social-float {
  position: fixed;
  bottom: 30px;
  left: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

/* botÃ£o redondo */

.social-btn {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 5px 14px rgba(0,0,0,0.30);
  transition: all 0.25s ease;
}

/* efeito hover elegante */

.social-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 18px rgba(0,0,0,0.40);
}

/* Ã­cone */

.social-btn img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

/* cores */

.social-btn.facebook {
  background: #1877f2;
}

.social-btn.instagram {
  background: radial-gradient(circle at 30% 107%, 
    #fdf497 0%, 
    #fdf497 5%, 
    #fd5949 45%, 
    #d6249f 60%, 
    #285AEB 90%);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 900px) {
      .acesso-grid {
        grid-template-columns: repeat(2, 1fr);
      }
      .diretor-grid {
        grid-template-columns: 1fr;
      }
      .historico-grid {
        grid-template-columns: 1fr;
      }
      .downloads-grid {
        grid-template-columns: repeat(2, 1fr);
      }
      .contato-grid {
        grid-template-columns: 1fr;
      }
      .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
      }
      .hero-content h2 {
        font-size: 50px;
      }
      .hero-content .hero-slogan {
        font-size: 28px;
      }
    }

@media (max-width: 600px) {
      .header .container {
        flex-direction: row;
        gap: 0;
      }
      .nav ul {
        display: none;
        flex-direction: column;
        align-items: center;
      }
      .nav ul.open {
        display: flex;
      }
      .menu-toggle {
        display: block;
      }
      .acesso-grid {
        grid-template-columns: 1fr;
      }
      .downloads-grid {
        grid-template-columns: 1fr;
      }
      .diretor-card {
        flex-direction: column;
        text-align: center;
      }
      .hero-content {
        padding: 0 24px;
      }
      .hero-content h2 {
        font-size: 40px;
      }
      .hero-content .hero-slogan {
        font-size: 22px;
      }
      .footer-bottom {
        flex-direction: column;
        text-align: center;
      }
      .footer-bottom .quote {
        text-align: center;
      }
    }

/* POPUP MAPA PREMIUM ESSD */

/* ================================= */

.btn-localizacao{
background:none;
border:none;
color:#fff;
cursor:pointer;
font-size:13px;
text-align:left;
padding:0;
}

.btn-localizacao:hover{
color:#ff2d2d;
}

.mapa-modal{

position:fixed;
inset:0;

background:rgba(0,0,0,.65);
backdrop-filter:blur(8px);

display:flex;
align-items:center;
justify-content:center;

opacity:0;
visibility:hidden;

transition:.35s;

z-index:9999;

}

.mapa-modal.ativo{
opacity:1;
visibility:visible;
}

.mapa-container{

width:92%;
max-width:900px;

background:#fff;

border-radius:14px;

overflow:hidden;

box-shadow:0 25px 60px rgba(0,0,0,.5);

transform:scale(.9);

transition:.35s;

}

.mapa-modal.ativo .mapa-container{
transform:scale(1);
}

.mapa-topo{

display:flex;
justify-content:space-between;
align-items:center;

padding:14px 18px;

background:#111;
color:#fff;

font-weight:600;
letter-spacing:1px;

}

.mapa-fechar{

background:none;
border:none;

color:#fff;

font-size:22px;

cursor:pointer;

}

.mapa-fechar:hover{
color:#ff2d2d;
}

.mapa-corpo iframe{

width:100%;

height:420px;

border:0;

}

.mapa-footer{

display:flex;

justify-content:center;

padding:16px;

background:#f4f4f4;

}

.btn-maps{

background:#e02020;

color:#fff;

padding:10px 28px;

border-radius:30px;

font-size:14px;

font-weight:600;

transition:.2s;

}

.btn-maps:hover{

background:#c51818;

transform:translateY(-2px);

}

@media (max-width:600px){

.mapa-corpo iframe{
height:300px;
}

}

/* caixa do mapa */

.mapa-box {
  width: 90%;
  max-width: 850px;
  background: #fff;
  border-radius: 14px;

  overflow: hidden;

  transform: scale(.9);
  transition: transform .35s ease;

  box-shadow: 0 20px 60px rgba(0,0,0,.45);
}

.mapa-modal.ativo .mapa-box {
  transform: scale(1);
}

.mapa-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 12px 16px;

  background: #111;
  color: #fff;
  font-weight: 600;
  letter-spacing: 1px;
}

.fechar-mapa {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

/* mapa */

.mapa-body iframe {
  width: 100%;
  height: 420px;
  border: none;
}

@media (max-width:600px){

.mapa-body iframe{
height:300px;
}

}

/* YOUTUBE WIDGET PMESP */

/* =============================== */

.youtube-widget {
position:fixed;
bottom: 30px;
right:30px;
cursor: grab;
width:340px;
background:#111;
border-radius:14px;
overflow:hidden;
box-shadow:0 20px 50px rgba(0,0,0,.45);
z-index:9998;
animation:youtubeEntrada .6s ease;
}

@keyframes youtubeEntrada{

from{
transform:translateY(40px);
opacity:0;
}

to{
transform:translateY(0);
opacity:1;
}

}

/* topo */

.youtube-topo {
display:flex;
justify-content:space-between;
align-items:center;
background:#e02020;
padding:10px 14px;
color:#fff;
font-weight:700;
font-size:14px;
}

/* botÃ£o fechar */

.youtube-fechar {
background:none;
border:none;
color:#fff;
font-size:18px;
cursor:pointer;
}

/* vÃ­deo */

.youtube-video iframe {
width:100%;
height:190px;
border:0;
}

/* rodapÃ© */

.youtube-footer {
padding:12px;
text-align:center;
background:#1a1a1a;
}

.youtube-footer a {
display:inline-block;
background:#e02020;
color:#fff;
padding:8px 18px;
border-radius:20px;
font-size:13px;
font-weight:600;
transition:.2s;
}

.youtube-footer a:hover {
background:#c01818;
}

/* botÃ£o flutuante quando fechar */

.youtube-botao {
position:fixed;
bottom:30px;
right:30px;
width:60px;
height:60px;
background:#e02020;
border-radius:50%;
display:flex;
align-items:center;
justify-content:center;
cursor:pointer;
box-shadow:0 10px 25px rgba(0,0,0,.45);
z-index:9998;
}

.youtube-botao img {
width:26px;
filter:brightness(0) invert(1);
}

/* responsivo */

@media(max-width:600px){

.youtube-widget{
width:90%;
right:5%;
}

}

.cert-player{
position:fixed;
bottom:30px;
right:30px;
width:340px;
background:#111;
border-radius:14px;
overflow:hidden;
box-shadow:0 20px 50px rgba(0,0,0,.45);
z-index:9999;
display:none;
}

.cert-player.ativo{
display:block;
}

.cert-header{
display:flex;
justify-content:space-between;
align-items:center;
background:#e02020;
color:#fff;
padding:10px 14px;
font-weight:700;
cursor:move;
}

.cert-header button{
background:none;
border:none;
color:#fff;
font-size:18px;
cursor:pointer;
}

.cert-player video{
  width:100%;
  height:auto;
  max-height:200px;
  object-fit:contain;
  background:#000;
}

.cert-footer{
padding:12px;
text-align:center;
background:#1a1a1a;
}

/* MENU NORMAS (SUBMENU 2) */

/* ========================= */

/* agora abre PARA BAIXO */

.submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);

  background: #000;

  /* ðŸ”¥ ESSENCIAL */
  width: auto;
  min-width: max-content;

  border-radius: 8px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);

  display: flex;
  flex-direction: column;

  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;

  z-index: 1100;
}

.dropdown:hover .submenu {
      opacity: 1;
      visibility: visible;
      transform: translateX(-50%) translateY(0);
    }

.submenu li {
      width: 100%;
      border-bottom: 1px solid #1a1a1a;
    }

.submenu li:last-child {
      border-bottom: none;
    }

.submenu li a {
      display: block;
      width: 100%;
      padding: 14px 20px;
      font-size: 13px;
      font-weight: 600;
      color: #fff;
      text-align: center;
      background: #000;
      transition: all 0.2s ease;
    }

.submenu li a:hover,
    .submenu li a.active {
      background: #111;
      color: #e02020;
      padding-left: 26px;
    }

/* mega menu normas */

.mega-dropdown {
      position: relative;
    }

.normas-menu {
      position: absolute;
      top: 100%;
      left: 0;
      transform: translateY(8px);
      width: max-content;
      min-width: unset;
      min-height: auto;
      background: transparent;
      display: flex;
      box-shadow: 0 14px 34px rgba(0,0,0,0.45);
      border-top: 1px solid #111;
      border-bottom: none;
      border-radius: 0 0 6px 6px;
      overflow: visible;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
      z-index: 1200;
    }

.mega-dropdown > a:hover + .normas-menu,
    .mega-dropdown .normas-menu:hover {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      transform: translateY(0);
    }

.normas-menu .categorias {
      width: 250px;
      background: #050505;
      border-right: 1px solid #1a1a1a;
      border-bottom: 3px solid #e02020;
      display: flex;
      flex-direction: column;
    }

.mega-tab {
      background: #050505;
      border: none;
      border-bottom: 1px solid #1a1a1a;
      text-align: left;
      padding: 18px 22px;
      width: 100%;
      cursor: pointer;
      transition: all 0.2s ease;
      font-family: 'Segoe UI', Arial, sans-serif;
      font-size: 15px;
      font-weight: 700;
      letter-spacing: 0.5px;
      text-transform: uppercase;
      color: #fff;
    }

.mega-tab:hover,
    .mega-tab.active {
      background: #111;
      color: #e02020;
    }

.normas-menu .links {
      width: 0;
      background: transparent;
      position: relative;
      overflow: hidden;
      transition: width 0.25s ease, background 0.25s ease;
      border-bottom: 3px solid transparent;
    }

.normas-menu.com-submenu .links {
      width: 320px;
      background: #000;
      border-bottom: 3px solid #e02020;
    }

.normas-menu:has(.mega-panel.active) .links {
      width: 55%;
      background: #000;
    }

.mega-panel {
      display: none;
      flex-direction: column;
      padding: 0;
    }

.mega-panel.active {
      display: flex;
    }

.mega-panel a {
      display: block;
      padding: 18px 22px;
      border-bottom: 1px solid #1a1a1a;
      transition: all 0.2s ease;
      font-family: 'Segoe UI', Arial, sans-serif;
      font-size: 15px;
      font-weight: 700;
      letter-spacing: 0.5px;
      text-transform: uppercase;
      color: #fff;
      background: #000;
    }

.mega-panel a:hover {
      background: #111;
      color: #e02020;
      padding-left: 28px;
    }

/* mobile */

@media (max-width: 768px) {
      .normas-menu {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%) translateY(8px);
        width: 560px;
        min-height: 320px;
        background: #000;
        display: flex;
        box-shadow: 0 14px 34px rgba(0,0,0,0.45);
        border-top: 1px solid #111;
        border-bottom: 3px solid #e02020;
        border-radius: 0 0 6px 6px;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: all 0.25s ease;
        z-index: 1200;
        margin-top: 0;
      }

      .mega-dropdown .normas-menu {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateX(-50%) translateY(8px);
      }

      .mega-dropdown > a:hover + .normas-menu,
      .mega-dropdown .normas-menu:hover {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0);
      }

      .normas-menu .categorias {
        width: 45%;
        background: #050505;
        border-right: 1px solid #1a1a1a;
        display: flex;
        flex-direction: column;
      }

      .normas-menu .links {
        width: 0;
        background: transparent;
        position: relative;
        overflow: hidden;
      }

      .normas-menu.com-submenu .links {
        width: 55%;
        background: #000;
      }

      .mega-tab,
      .mega-panel a {
        background: #000;
        color: #fff;
      }

      .mega-tab.active,
      .mega-tab:hover,
      .mega-panel a:hover {
        background: #111;
        color: #e02020;
      }
    }

/* =========================================================
   PAGINA: pdm-vigentes.html
   ========================================================= */
/* ===== Migrated from pdm-vigentes.html ===== */
.documents-page,
    .documents-page * {
      box-sizing: border-box;
      font-family: 'Poppins', sans-serif;
    }

.documents-page {
      background: #ececec;
      padding: 32px 0 48px;
    }

.documents-wrapper {
      width: min(1200px, calc(100% - 32px));
      margin: 0 auto;
      background: #ececec;
      border-radius: 18px;
      overflow: hidden;
      box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
    }

.documents-area-header {
      background:
        radial-gradient(circle at top left, rgba(120, 120, 120, 0.08), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f6f6f6 100%);
      padding: 1.6rem 1.5rem 1.3rem;
      color: #333;
      text-align: center;
      border-bottom: 1px solid #e8e8e8;
    }

.header-title {
      font-size: 1.8rem;
      font-weight: 700;
      margin: 0;
      color: #333;
    }

.header-subtitle {
      color: #888;
      margin: 0.3rem 0 0;
      font-size: 0.84rem;
    }

.documents-topbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      flex-wrap: wrap;
      margin-bottom: 1rem;
    }

.documents-stats {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 0.65rem 0.9rem;
      background: rgba(255, 255, 255, 0.75);
      border: 1px solid #dfdfdf;
      border-radius: 999px;
      color: #444;
      font-size: 0.84rem;
      font-weight: 600;
      box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
    }

.documents-stats strong {
      color: #b91c1c;
      font-size: 0.84rem;
    }

.content-area {
      min-height: 70vh;
      padding: 1.5rem;
      position: relative;
    }

.search-toolbar {
      position: relative;
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

.search-box {
      position: absolute;
      top: calc(100% - 58px);
      left: 0;
      z-index: 50;
      background: white;
      padding: 0.75rem;
      border-radius: 0.5rem;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
      width: 440px;
      max-width: 0;
      overflow: hidden;
      opacity: 0;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

.search-box.active {
      max-width: 440px;
      opacity: 1;
    }

.search-input {
      width: 100%;
      padding: 0.5rem 0.6rem;
      border: 1px solid #e0e0e0;
      border-radius: 0.4rem;
      font-size: 0.85rem;
      transition: all 0.2s ease;
    }

.search-input:focus {
      outline: none;
      border-color: #dc2626;
      box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
    }

.search-label {
      display: none;
      font-weight: 500;
      color: #555;
      margin-bottom: 0.4rem;
      font-size: 0.85rem;
    }

.search-toggle-btn {
      position: relative;
      width: fit-content;
      padding: 0.75rem 1rem;
      background: linear-gradient(180deg, #ffffff 0%, #f3f3f3 100%);
      border: 1px solid #dddddd;
      border-radius: 999px;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      color: #555;
      font-weight: 500;
      font-size: 0.84rem;
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
      transition: all 0.2s ease;
    }

.search-toggle-btn:hover {
      background: #fafafa;
      border-color: #dc2626;
      color: #dc2626;
    }

.search-toggle-btn.active {
      background: #efefef;
      border-color: #dc2626;
      color: #dc2626;
    }

.search-clear-btn {
      border: none;
      background: transparent;
      color: #777;
      font-size: 0.82rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      cursor: pointer;
      padding: 0.4rem 0.2rem;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.2s ease, color 0.2s ease;
    }

.search-clear-btn.visible {
      opacity: 1;
      pointer-events: auto;
    }

.search-clear-btn:hover {
      color: #b91c1c;
    }

.search-toggle-icon {
      width: 18px;
      height: 18px;
      transition: transform 0.3s ease;
    }

.search-toggle-btn.active .search-toggle-icon {
      transform: rotate(180deg);
    }

.pulse-dot {
      display: inline-block;
      width: 8px;
      height: 8px;
      background: #dc2626;
      border-radius: 50%;
      animation: pulse 2s infinite;
      margin-left: 0.3rem;
    }

@keyframes pulse {
      0%, 100% {
        opacity: 1;
        transform: scale(1);
      }
      50% {
        opacity: 0.5;
        transform: scale(0.8);
      }
    }

.documents-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
      gap: 1rem;
      animation: fadeIn 0.3s ease;
    }

@keyframes fadeIn {
      from {
        opacity: 0;
        transform: translateY(5px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

.document-card {
      position: relative;
      background: linear-gradient(180deg, #ffffff 0%, #f8f8f8 100%);
      border-radius: 14px;
      padding: 1rem;
      box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
      transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
      cursor: pointer;
      border-left: 3px solid #dc2626;
      overflow: hidden;
      animation: cardEntrance 0.35s ease both;
    }

.document-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 18px 32px rgba(0, 0, 0, 0.14);
    }

.document-card::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(120deg, rgba(110, 110, 110, 0.08), transparent 40%);
      opacity: 0;
      transition: opacity 0.25s ease;
      pointer-events: none;
    }

.document-card:hover::before {
      opacity: 1;
    }

@keyframes cardEntrance {
      from {
        opacity: 0;
        transform: translateY(8px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

.card-header {
      display: flex;
      align-items: flex-start;
      gap: 0.75rem;
      justify-content: space-between;
    }

.card-icon {
      color: #dc2626;
      flex-shrink: 0;
      margin-top: 0.1rem;
      transition: transform 0.25s ease, color 0.25s ease;
    }

.document-card:hover .card-icon {
      transform: scale(1.08);
      color: #b91c1c;
    }

.card-title {
      font-weight: 600;
      color: #222;
      font-size: 0.82rem;
      line-height: 1.25;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      margin-bottom: 0.2rem;
    }

.card-footer {
      display: none;
    }

.download-btn {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: #dc2626;
      border: none;
      color: white;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 8px 16px rgba(80, 80, 80, 0.22);
      transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    }

.download-btn:hover {
      background: #b91c1c;
      transform: scale(1.05);
      box-shadow: 0 12px 22px rgba(70, 70, 70, 0.28);
    }

.download-btn:active {
      transform: scale(0.95);
    }

.pdf-modal {
      position: fixed;
      inset: 0;
      background: rgba(8, 8, 8, 0.72);
      backdrop-filter: blur(8px);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 24px;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.28s ease, visibility 0.28s ease;
      z-index: 9999;
    }

.pdf-modal.active {
      opacity: 1;
      visibility: visible;
    }

.pdf-modal-content {
      width: min(980px, 100%);
      height: min(88vh, 820px);
      background: #fff;
      border-radius: 22px;
      overflow: hidden;
      box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
      display: flex;
      flex-direction: column;
      transform: translateY(22px) scale(0.97);
      transition: transform 0.28s ease;
      border: 1px solid rgba(255, 255, 255, 0.2);
    }

.pdf-modal.active .pdf-modal-content {
      transform: translateY(0) scale(1);
    }

.pdf-modal-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding: 18px 22px;
      background: linear-gradient(135deg, #121212 0%, #1d1d1d 100%);
      color: #fff;
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

.pdf-modal-title {
      font-size: 0.84rem;
      font-weight: 700;
      text-transform: uppercase;
      line-height: 1.3;
      letter-spacing: 0.06em;
      max-width: 80%;
    }

.pdf-modal-header-main {
      display: flex;
      align-items: center;
      gap: 12px;
      min-width: 0;
      flex: 1;
    }

.pdf-nav-btn {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      border: none;
      background: rgba(255, 255, 255, 0.08);
      color: #fff;
      font-size: 1rem;
      font-weight: 700;
      cursor: pointer;
      transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
      flex-shrink: 0;
    }

.pdf-nav-btn:hover {
      background: rgba(255, 255, 255, 0.16);
      transform: translateY(-1px);
    }

.pdf-nav-btn:disabled {
      opacity: 0.35;
      cursor: not-allowed;
      transform: none;
    }

.pdf-modal-close {
      border: none;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.08);
      color: #fff;
      font-size: 1.35rem;
      line-height: 1;
      cursor: pointer;
      transition: background 0.2s ease, transform 0.2s ease;
    }

.pdf-modal-close:hover {
      background: rgba(255, 255, 255, 0.16);
      transform: rotate(90deg);
    }

.pdf-modal-body {
      flex: 1;
      background:
        radial-gradient(circle at top left, rgba(120, 120, 120, 0.08), transparent 25%),
        linear-gradient(180deg, #ececec 0%, #dcdcdc 100%);
      padding: 14px;
      position: relative;
    }

.pdf-modal-frame {
      width: 100%;
      height: 100%;
      border: 0;
      background: #fff;
      border-radius: 14px;
    }

.pdf-loading {
      position: absolute;
      inset: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      gap: 14px;
      border-radius: 14px;
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(247, 247, 247, 0.96) 100%);
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.2s ease, visibility 0.2s ease;
      z-index: 2;
    }

.pdf-loading.active {
      opacity: 1;
      visibility: visible;
    }

.pdf-loading-spinner {
      width: 52px;
      height: 52px;
      border-radius: 50%;
      border: 4px solid rgba(220, 38, 38, 0.15);
      border-top-color: #dc2626;
      animation: pdfSpin 0.9s linear infinite;
    }

.pdf-loading-text {
      font-size: 0.86rem;
      font-weight: 700;
      color: #555;
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }

@keyframes pdfSpin {
      from {
        transform: rotate(0deg);
      }
      to {
        transform: rotate(360deg);
      }
    }

.pdf-modal-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 14px 20px;
      background: linear-gradient(180deg, #f7f7f7 0%, #ececec 100%);
      border-top: 1px solid #dfdfdf;
    }

.pdf-modal-hint {
      font-size: 0.82rem;
      color: #666;
      font-weight: 500;
    }

.pdf-download-link {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 12px 20px;
      border-radius: 999px;
      background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
      color: #fff;
      font-size: 0.84rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      box-shadow: 0 12px 24px rgba(220, 38, 38, 0.22);
      transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    }

.pdf-download-link:hover {
      background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
      transform: translateY(-1px);
      box-shadow: 0 16px 28px rgba(185, 28, 28, 0.28);
    }

.empty-state {
      text-align: center;
      padding: 2rem;
      color: #999;
    }

.empty-state-icon {
      width: 60px;
      height: 60px;
      margin: 0 auto 1rem;
      color: #ddd;
    }

.empty-state-text {
      font-size: 1rem;
      color: #aaa;
    }

.results-info {
      display: none;
      color: #888;
      font-size: 0.85rem;
      margin-top: 0.4rem;
    }

@media (max-width: 768px) {
      .documents-page {
        padding: 20px 0 32px;
      }

      .documents-wrapper {
        width: min(100%, calc(100% - 20px));
      }

      .content-area {
        padding: 1rem;
      }

      .search-toolbar {
        display: flex;
        width: 100%;
        align-items: stretch;
        flex-direction: column;
      }

      .search-toggle-btn {
        width: 100%;
        justify-content: center;
      }

      .search-clear-btn {
        align-self: flex-end;
      }

      .search-box {
        width: 100%;
      }

      .search-box.active {
        max-width: 100%;
      }

      .pdf-modal {
        padding: 12px;
      }

      .pdf-modal-content {
        height: min(86vh, 720px);
        border-radius: 18px;
      }

      .pdf-modal-header,
      .pdf-modal-footer {
        padding: 14px;
      }

      .pdf-modal-header-main {
        gap: 8px;
      }

      .pdf-modal-footer {
        flex-direction: column;
        align-items: stretch;
      }

      .pdf-download-link {
        width: 100%;
      }

      .documents-topbar {
        flex-direction: column;
        align-items: stretch;
      }

      .documents-stats {
        justify-content: center;
      }
    }

/* =========================================================
   PAGINA: policial-mes.html
   ========================================================= */
/* ===== Migrated from policial-mes.html ===== */

/* =========================================================
   AJUSTES CONSOLIDADOS MAIS NOVOS
   Daqui em diante ficam os refinamentos visuais mais recentes.
   Para manutencao, prefira editar primeiro esta faixa.
   ========================================================= */
* {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

body {
      font-family: 'Segoe UI', Arial, sans-serif;
      color: #222;
      background: #f5f5f5;
    }

a {
      text-decoration: none;
      color: inherit;
    }

ul, li {
      list-style: none;
    }

img {
      max-width: 100%;
      display: block;
    }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== HEADER PADRÃƒÆ’O ===== */

.header {
  background: #222;
  color: #fff;
  padding: 50px 0;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo img {
  height: 150px;
  width: auto;
}

.logo-essd img {
  height: 200px;
  width: auto;
}

.logo-pm img {
  height: 170px;
  width: auto;
}

.header-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 13px;
  letter-spacing: 2px;
}

.header-text {
  flex: 5;
  min-width: 0;
  text-align: center;
  padding: 0 10px;
}

.header-text p {
  font-size: 17px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 5px;
  color: #fff;
}

.header-text h1 {
  font-size: 35px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 4px;
  color: #fff;
}

/* ===== NAV ===== */

.nav {
  background: #000;
  border-top: 0;
  padding: 8px;
  position: relative;
  z-index: 1000;
}

.nav.nav-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
}

.nav-placeholder {
  height: 0;
}

.nav ul {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
}

.nav li {
  position: relative;
}

.nav li a {
  white-space: nowrap;
  color: #fff;
  background: rgba(8, 8, 8, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
  transition: transform 0.22s ease, box-shadow 0.22s ease, color 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.nav li a:hover,
.nav li a.active {
  color: #ff4a4a;
  background: #111;
  border-color: rgba(255, 74, 74, 0.18);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.24);
  transform: translateY(-2px);
}

.nav li a .arrow {
  color: inherit;
}

.menu-toggle {
  background: rgba(8, 8, 8, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
}

.menu-toggle:hover,
.menu-toggle.is-active {
  background: #111;
  color: #ff4a4a;
  border-color: rgba(255, 74, 74, 0.18);
}

.submenu,
.nav .submenu,
.normas-menu,
.normas-menu .categorias,
.normas-menu .links,
.mega-panel {
  background: transparent !important;
  box-shadow: none;
  border: none;
  backdrop-filter: none;
}

.submenu {
  gap: 8px;
  min-width: 220px;
}

.submenu li,
.nav .submenu li {
  border-bottom: none;
  background: transparent;
}

.submenu li a,
.nav .submenu li a {
  white-space: nowrap;
  min-height: 52px;
}

.submenu li a:hover,
.submenu li a.active,
.nav .submenu li a:hover,
.nav .submenu li a.active,
.mega-tab:hover,
.mega-tab.active,
.normas-menu .categorias > a:hover,
.mega-panel a:hover {
  background: rgba(32, 32, 32, 0.98);
  color: #ff4a4a;
  border-color: rgba(255, 74, 74, 0.22);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.26);
  transform: translateX(4px);
}

.normas-menu .links {
  margin-left: 8px;
  width: 300px;
  min-width: 300px;
}

@media (max-width: 980px) {
  .nav ul {
    background: rgba(8, 8, 8, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.24);
  }

  .nav li a {
    background: #111;
  }

  .submenu li a,
  .nav .submenu li a,
  .mega-tab,
  .normas-menu .categorias > a,
  .mega-panel a {
    background: rgba(20, 20, 20, 0.94);
  }
}

.nav .normas-menu {
  gap: 8px !important;
}

.nav .normas-menu .links {
  margin-left: 8px !important;
}

.nav .normas-menu .mega-tab,
.nav .normas-menu .categorias > a,
.nav .normas-menu .mega-panel a,
.nav .normas-menu .link-direto {
  background-color: rgba(20, 20, 20, 0.94) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  border-radius: 14px !important;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.20) !important;
  white-space: nowrap !important;
  opacity: 1 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0.7px !important;
  line-height: 1.3 !important;
  min-height: 52px !important;
}

.nav .normas-menu .mega-tab:hover,
.nav .normas-menu .mega-tab.active,
.nav .normas-menu .categorias > a:hover,
.nav .normas-menu .categorias > a.active,
.nav .normas-menu .mega-panel a:hover,
.nav .normas-menu .mega-panel a.active,
.nav .normas-menu .link-direto:hover,
.nav .normas-menu .link-direto.active {
  background-color: rgba(32, 32, 32, 0.98) !important;
  color: #ff4a4a !important;
  border-color: rgba(255, 74, 74, 0.22) !important;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.26) !important;
  opacity: 1 !important;
}

/* ===== Menu Uniformity ===== */

.nav {
  background: linear-gradient(180deg, rgba(18,18,18,0.98) 0%, rgba(8,8,8,0.96) 100%) !important;
  backdrop-filter: blur(12px) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18) !important;
  padding: 8px 0 !important;
}

.nav .container,
.nav ul {
  background: transparent !important;
}

.nav ul {
  gap: 6px !important;
}

.nav li > a,
.nav .submenu li a,
.nav .mega-dropdown > a,
.nav .normas-menu .mega-tab,
.nav .normas-menu .categorias > a,
.nav .normas-menu .mega-panel a,
.nav .normas-menu .link-direto {
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0.7px !important;
  line-height: 1.2 !important;
  color: #fff !important;
  background-color: rgba(20, 20, 20, 0.94) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  border-radius: 14px !important;
  opacity: 1 !important;
  backdrop-filter: blur(10px) !important;
  box-sizing: border-box !important;
  transform: none !important;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease !important;
}

.nav li > a {
  padding: 10px 16px !important;
  min-height: 42px !important;
  box-shadow: none !important;
}

.nav .submenu li a,
.nav .normas-menu .mega-tab,
.nav .normas-menu .categorias > a,
.nav .normas-menu .mega-panel a,
.nav .normas-menu .link-direto {
  padding: 10px 14px !important;
  min-height: 48px !important;
  white-space: nowrap !important;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18) !important;
}

.nav li > a:hover,
.nav li:hover > a,
.nav li > a.active,
.nav .submenu li a:hover,
.nav .submenu li a.active,
.nav .normas-menu .mega-tab:hover,
.nav .normas-menu .mega-tab.active,
.nav .normas-menu .categorias > a:hover,
.nav .normas-menu .categorias > a.active,
.nav .normas-menu .mega-panel a:hover,
.nav .normas-menu .mega-panel a.active,
.nav .normas-menu .link-direto:hover,
.nav .normas-menu .link-direto.active {
  background-color: rgba(32, 32, 32, 0.98) !important;
  color: #ff4a4a !important;
  border-color: rgba(255, 74, 74, 0.22) !important;
  opacity: 1 !important;
  transform: none !important;
}

.nav li > a:hover,
.nav li:hover > a,
.nav li > a.active {
  box-shadow: none !important;
}

.nav .submenu li a:hover,
.nav .submenu li a.active,
.nav .normas-menu .mega-tab:hover,
.nav .normas-menu .mega-tab.active,
.nav .normas-menu .categorias > a:hover,
.nav .normas-menu .categorias > a.active,
.nav .normas-menu .mega-panel a:hover,
.nav .normas-menu .mega-panel a.active,
.nav .normas-menu .link-direto:hover,
.nav .normas-menu .link-direto.active {
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18) !important;
}

/* ===== Normas Hard Fix ===== */

.nav .normas-menu,
.nav .normas-menu .categorias,
.nav .normas-menu .links,
.nav .normas-menu .mega-panel {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

.nav .normas-menu {
  gap: 6px !important;
}

.nav .normas-menu .links {
  margin-left: 6px !important;
}

/* ===== Menu Width Fixes ===== */

.nav .mega-dropdown .normas-menu {
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
}

.nav .mega-dropdown .normas-menu .categorias {
  width: 230px !important;
  min-width: 230px !important;
  max-width: 230px !important;
  flex: 0 0 230px !important;
}

.nav .mega-dropdown .normas-menu .links {
  width: 230px !important;
  min-width: 230px !important;
  max-width: 230px !important;
  flex: 0 0 230px !important;
}

.nav .mega-dropdown .normas-menu .mega-panel {
  width: 230px !important;
  min-width: 230px !important;
  max-width: 230px !important;
}

.nav #navMenu > li:nth-child(5) > .submenu {
  width: 250px !important;
  min-width: 250px !important;
  max-width: 250px !important;
}

/* ===== Header Refresh ===== */

.header {
  position: relative !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 74, 74, 0.18) 0%, rgba(255, 74, 74, 0) 24%),
    radial-gradient(circle at 82% 28%, rgba(70, 130, 255, 0.18) 0%, rgba(70, 130, 255, 0) 26%),
    linear-gradient(135deg, #1b1b1d 0%, #242426 42%, #111214 100%) !important;
  color: #fff !important;
  padding: 28px 0 !important;
}

.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 18%, rgba(255,255,255,0.04) 50%, rgba(255,255,255,0) 78%, rgba(255,255,255,0.03) 100%);
  pointer-events: none;
}

.header::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0) 100%);
  opacity: 0.6;
  pointer-events: none;
}

.header .container {
  position: relative !important;
  z-index: 1 !important;
  min-height: 160px !important;
  gap: 24px !important;
}

.header-logo img {
  height: 124px !important;
  width: auto !important;
}

.logo-essd img {
  height: 160px !important;
  width: auto !important;
}

.logo-pm img {
  height: 138px !important;
  width: auto !important;
}

.header-logo {
  flex: 1 !important;
  min-width: 0 !important;
}

.header-text {
  flex: 5 !important;
  min-width: 0 !important;
  padding: 0 10px !important;
}

.header-text p {
  font-size: 15px !important;
  letter-spacing: 4px !important;
}

.header-text h1 {
  font-size: 28px !important;
  letter-spacing: 1.8px !important;
  margin-top: 6px !important;
}

@media (max-width: 980px) {
  .header {
    padding: 22px 0 !important;
  }

  .header .container {
    min-height: 0 !important;
    gap: 18px !important;
  }

  .logo-essd img {
    height: 132px !important;
  }

  .logo-pm img {
    height: 116px !important;
  }

  .header-text p {
    font-size: 13px !important;
    letter-spacing: 3px !important;
  }

  .header-text h1 {
    font-size: 24px !important;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 18px 0 !important;
  }

  .header .container {
    gap: 14px !important;
  }

  .logo-essd img {
    height: 104px !important;
  }

  .logo-pm img {
    height: 92px !important;
  }

  .header-text p {
    font-size: 11px !important;
    letter-spacing: 2px !important;
  }

  .header-text h1 {
    font-size: 19px !important;
    letter-spacing: 1.2px !important;
  }
}

/* ===== Footer Refresh ===== */

.footer {
  position: relative !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at 16% 20%, rgba(255, 74, 74, 0.14) 0%, rgba(255, 74, 74, 0) 24%),
    radial-gradient(circle at 84% 26%, rgba(70, 130, 255, 0.14) 0%, rgba(70, 130, 255, 0) 24%),
    linear-gradient(135deg, #17181a 0%, #202124 46%, #101114 100%) !important;
  color: #fff !important;
  padding: 38px 0 0 !important;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0) 20%, rgba(255,255,255,0.03) 52%, rgba(255,255,255,0) 80%, rgba(255,255,255,0.02) 100%);
  pointer-events: none;
}

.footer .container,
.footer .footer-grid,
.footer .footer-bottom {
  position: relative !important;
  z-index: 1 !important;
}

.footer-grid {
  gap: 12px !important;
}

.footer-logo-circle img {
  max-width: 190px !important;
}

.footer h3 {
  margin-bottom: 12px !important;
  font-size: 16px !important;
}

.footer-menu li {
  margin-bottom: 6px !important;
}

.footer-menu li a {
  font-size: 13px !important;
}

.footer-contact-item {
  gap: 10px !important;
  margin-bottom: 12px !important;
}

.footer-contact-item .fc-label,
.footer-contact-item .fc-text {
  font-size: 12px !important;
}

.footer-bottom {
  margin-top: 28px !important;
  padding: 16px 0 14px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.14) !important;
}

@media (max-width: 980px) {
  .footer {
    padding: 30px 0 0 !important;
  }

  .footer-logo-circle img {
    max-width: 160px !important;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 24px 0 0 !important;
  }

  .footer-grid {
    gap: 16px !important;
  }

  .footer-logo-circle img {
    max-width: 138px !important;
  }

  .footer h3 {
    font-size: 15px !important;
  }
}

/* ===== Sticky Nav ===== */

.nav {
  position: sticky !important;
  top: 0 !important;
  z-index: 5000 !important;
}

/* ===== Sticky Nav Hard Fix ===== */

.nav.nav-fixed {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 6000 !important;
}

.nav-sticky-spacer {
  display: block;
  height: 0;
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.nav-portal-desktop {
  display: none !important;
}

/* ===== Subordinadas: Cores Editaveis por HTML ===== */

.companhia-header {
  background: var(--cia-top-bg, linear-gradient(135deg, #ffd700, #e6c200)) !important;
}

.bloco-info {
  border-left-color: var(--cia-vertical-line-color, #ffd700) !important;
}

.red-divider {
  background: var(--cia-bottom-line-color, #ffd700) !important;
}

/* ===== Social Buttons Mini Animation ===== */

@keyframes socialVideoBreath {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
  }
}

.social-float .social-btn,
.social-float .youtube-botao {
  width: 60px;
  height: 60px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
  animation: socialVideoBreath 3.2s ease-in-out infinite;
}

.social-float .social-btn img,
.social-float .youtube-botao img {
  width: 26px;
  height: 26px;
}

.social-float .social-btn:hover,
.social-float .youtube-botao:hover {
  animation-play-state: paused;
}

/* ===== Contact Cards Text Fix ===== */

.contato-card .ct-value,
.contato-card .ct-value.red {
  color: #ffffff !important;
}

/* ===== Ajuste de Largura dos Cards de Contato da Home ===== */

.page-index .contato-cards .contato-grid {
  max-width: 1480px;
  margin: 0 auto;
  grid-template-columns: repeat(3, minmax(0, 420px));
  justify-content: center;
}

.page-index .contato-cards .contato-card {
  width: 100%;
}

@media (max-width: 1400px) {
  .page-index .contato-cards .contato-grid {
    max-width: 1280px;
    grid-template-columns: repeat(3, minmax(0, 360px));
  }
}

/* ===== Policial do Mes ===== */

.hero-policial {
  background: linear-gradient(135deg, #1b1b1b, #2a2a2a);
  padding: 48px 0;
  color: #fff;
  border-bottom: 4px solid #e02020;
}

.hero-policial h1 {
  font-size: 30px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  text-align: center;
}

.hero-policial p {
  font-size: 18px;
  line-height: 1.7;
  text-align: center;
  color: #f1f1f1;
  max-width: 760px;
  margin: 0 auto;
}

.policiais-section {
  padding: 45px 0 60px;
}

.policiais-section .section-title {
  font-size: 22px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  color: #222;
}

.policiais-section .section-title-bar {
  width: 75px;
  height: 4px;
  background: #e02020;
  margin-bottom: 26px;
}

.policiais-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 21px;
}

.policiais-grid .policial-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border-top: 4px solid #e02020;
}

.policiais-grid .policial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.policiais-grid .card-header {
  background: linear-gradient(135deg, #e02020, #c01818);
  color: #fff;
  padding: 14px 16px;
  text-align: left;
}

.policiais-grid .mes {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.95;
  font-weight: 700;
}

.policiais-grid .card-image {
  width: 100%;
  height: 500px;
  background: #efefef;
  overflow: hidden;
}

.policiais-grid .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.policiais-grid .card-body {
  padding: 18px;
}

.policiais-grid .rank {
  font-size: 11px;
  text-transform: uppercase;
  color: #e02020;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 6px;
  min-height: 14px;
}

.policiais-grid .nome {
  font-size: 16px;
  font-weight: 900;
  color: #222;
  margin-bottom: 10px;
  text-transform: uppercase;
  min-height: 20px;
}

.policiais-grid .descricao {
  font-size: 13px;
  line-height: 1.45;
  color: #666;
  min-height: 96px;
  white-space: normal;
}

.acoes-finais {
  text-align: center;
}

@media (max-width: 980px) {
  .policiais-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .hero-policial h1 {
    font-size: 26px;
  }

  .hero-policial p {
    font-size: 13px;
  }

  .policiais-grid .card-image {
    height: 260px;
  }
}

@media (max-width: 600px) {
  .policiais-grid {
    grid-template-columns: 1fr;
  }

  .policiais-section .section-title {
    font-size: 20px;
  }
}

/* ===== Policial do Mes Divider Fix ===== */

.policiais-section .red-divider-footer {
  background: #e02020 !important;
  margin: 34px 0 0 !important;
}

.policiais-section {
  padding-bottom: 0 !important;
}

.policiais-section .acoes-finais {
  margin-bottom: 34px;
}

/* ===== Index Calendario Quick Access Refresh ===== */

.page-index-calendario .acesso-card .card-title {
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.28;
  color: #101828;
}

.page-index-calendario .escala-card {
  gap: 14px;
}

.page-index-calendario .escala-card input {
  border: 1px solid #d7dde6;
  border-radius: 10px;
  min-height: 38px;
  padding: 0 14px;
  font-family: "Segoe UI", sans-serif;
  font-size: 13px;
  color: #243042;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.75);
}

.page-index-calendario .escala-card input::placeholder {
  color: #7a8799;
}

.page-index-calendario .btn-red {
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid rgba(137, 20, 24, 0.16);
  border-radius: 12px;
  background: linear-gradient(135deg, #b71c1c 0%, #e53935 52%, #ff6b57 100%);
  color: #fff;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 10px 20px rgba(183, 28, 28, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.page-index-calendario .btn-red:hover {
  transform: translateY(-1px);
  filter: saturate(1.05);
  box-shadow: 0 14px 24px rgba(183, 28, 28, 0.28);
}

.page-index-calendario .btn-red:active {
  transform: translateY(0);
}

/* ===== Index Quick Access Refresh ===== */

.page-index .acesso-card .card-title {
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.28;
  color: #101828;
}

.page-index .escala-card {
  gap: 14px;
}

.page-index .escala-card input {
  border: 1px solid #d7dde6;
  border-radius: 10px;
  min-height: 38px;
  padding: 0 14px;
  font-family: "Segoe UI", sans-serif;
  font-size: 13px;
  color: #243042;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.75);
}

.page-index .escala-card input::placeholder {
  color: #7a8799;
}

.page-index .btn-red {
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid rgba(137, 20, 24, 0.16);
  border-radius: 12px;
  background: linear-gradient(135deg, #b71c1c 0%, #e53935 52%, #ff6b57 100%);
  color: #fff;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 10px 20px rgba(183, 28, 28, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.page-index .btn-red:hover {
  transform: translateY(-1px);
  filter: saturate(1.05);
  box-shadow: 0 14px 24px rgba(183, 28, 28, 0.28);
}

.page-index .btn-red:active {
  transform: translateY(0);
}

/* ===== Index Hero Full Image Blend ===== */

.page-index .hero {
  background: linear-gradient(135deg, #111 0%, #1a1a1a 100%);
  height: 470px;
}

.page-index .hero-slider {
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
}

.page-index .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.18) 0%, rgba(17, 17, 17, 0.04) 14%, rgba(17, 17, 17, 0.04) 86%, rgba(17, 17, 17, 0.18) 100%),
    linear-gradient(180deg, rgba(17, 17, 17, 0.14) 0%, rgba(17, 17, 17, 0.02) 24%, rgba(17, 17, 17, 0.18) 100%);
  pointer-events: none;
  z-index: 1;
}

.page-index .hero-nav,
.page-index .hero-dots {
  z-index: 2;
}

@media (max-width: 768px) {
  .page-index .hero {
    height: 380px;
  }
}

/* ===== Footer Contact Title Fix ===== */

.footer .footer-contact-title {
  color: #ffffff !important;
  text-transform: uppercase !important;
}

/* ===== Gallery Fullscreen Layer Fix ===== */

#gallery-modal-overlay,
#gallery-modal {
  z-index: 8000 !important;
}

.gallery-modal-shell,
#gallery-modal-content,
.gallery-modal-toolbar,
.gallery-modal-close,
.gallery-modal-prev,
.gallery-modal-next,
.gallery-modal-caption-wrap {
  z-index: 8100 !important;
}

/* ===== Gallery Fullscreen Size Restore ===== */

#gallery-modal,
#gallery-modal-overlay {
  position: fixed !important;
  inset: 0 !important;
}

.gallery-modal-shell {
  width: 100vw !important;
  height: 100vh !important;
  min-height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
}

.gallery-modal-media {
  width: 100% !important;
  flex: 1 1 auto !important;
}

#gallery-modal-content {
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
}

#gallery-modal-content .vintage-scene,
.gallery-modal-zoom-layer,
.gallery-modal-zoom-inner {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
}

/* ===== Subordinadas Photo Uniform Fix ===== */

.page-cia {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.page-cia .companhia-section {
  flex: 1 0 auto;
}

.page-cia #site-footer {
  display: block;
  margin-top: auto;
}

.companhia-aside {
  align-self: stretch;
}

.brasao-box {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 440px !important;
  min-height: 470px;
  margin: 0 auto !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.brasao-box img {
  width: 100% !important;
  max-width: 420px !important;
  max-height: 320px !important;
  height: 320px !important;
  object-fit: contain !important;
  margin: 0 auto !important;
}

.brasao-box > br {
  display: none !important;
}

.brasao-box > .forca-break {
  display: block !important;
  height: 12px !important;
}

.brasao-box .forca {
  width: 100%;
  margin-top: 0 !important;
}

@media (max-width: 768px) {
  .brasao-box {
    min-height: 320px;
    max-width: 340px !important;
  }

  .brasao-box img {
    max-width: 320px !important;
    max-height: 240px !important;
    height: 240px !important;
  }
}

/* ===== Policial do Mes Auto Hide ===== */

.policial-card[hidden] {
  display: none !important;
}

/* ===== Historico Footer Width Fix ===== */

.page-historico {
  overflow-x: hidden;
}

.page-historico main,
.page-historico .historico,
.page-historico .historico-gallery,
.page-historico .gallery-stage,
.page-historico .footer {
  max-width: 100%;
}

/* ===== Ramais Title Alignment Fix ===== */

.page-ramais .pagina-titulo-ramais h1 {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: left;
}

@media (max-width: 600px) {
  .page-ramais .pagina-titulo-ramais h1 {
    text-align: center;
  }
}

/* ===== Ramais Table Header Alignment ===== */

.page-ramais table th {
  text-align: left;
}

/* ===== Brasao de Armas: libera sticky nos ancestrais ===== */

body.page-brasao,
body.page-brasao main,
body.page-brasao .brasao-page,
body.page-brasao .brasao-shell,
body.page-brasao .brasao-layout,
body.page-brasao .brasao-visual-column {
  overflow: visible !important;
}

body.page-brasao {
  overflow-x: visible !important;
}

/* =========================================================
   RESPONSIVIDADE CONSOLIDADA
   Use esta faixa para ajustes mobile gerais antes de criar
   novos overrides pontuais no fim do arquivo.
   ========================================================= */
/* ===== RESPONSIVIDADE MELHORADA PARA MOBILE ===== */

@media (max-width: 980px) {
  .header {
    padding: clamp(8px, 2.5vw, 30px) 0;
  }

  .hero-slider {
    background-size: cover !important;
    background-repeat: no-repeat !important;
  }

  .page-index .hero-slider {
    background-position: center center !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
  }

  .header .container {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
  }

  .header-text {
    flex: 1;
    padding: 0 clamp(4px, 1vw, 12px);
  }

  .header-text p {
    font-size: clamp(9px, 1.5vw, 14px);
  }

  .header-text h1 {
    font-size: clamp(13px, 2.5vw, 26px);
  }

  .header-logo {
    flex-shrink: 0;
  }

  .header-logo img {
    height: clamp(50px, 10vw, 120px);
  }

  .nav ul {
    gap: 1px;
    flex-wrap: wrap;
  }

  .nav li a {
    padding: 9px 10px;
    font-size: 11px;
    letter-spacing: 0.4px;
  }

  .nav .submenu li a {
    padding: 10px 16px;
    font-size: 12px;
  }

  .container {
    padding: 0 16px;
  }

  .acesso-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .acesso-card {
    padding: 16px;
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .acesso-card .icon img {
    width: 45px;
  }

  .acesso-card .card-title {
    font-size: 15px;
  }

  .diretor-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    column-gap: 0;
  }

  .diretor-card {
    flex-direction: column;
    gap: 16px;
  }

  .diretor-card img {
    width: 100%;
    max-width: 250px;
    height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-foto {
    text-align: center;
  }

  .hero-foto img {
    width: 100%;
    max-width: 280px;
    height: auto;
  }

  .agenda-grid {
    grid-template-columns: 1fr;
  }

  .agenda-calendar-card {
    width: 100%;
  }

  .downloads-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .download-card {
    flex-direction: column;
    text-align: center;
    padding: 16px;
    gap: 10px;
  }

  .contato-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contato-card {
    height: auto;
    padding: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer h3 {
    font-size: 15px;
  }

  .footer-menu li a {
    font-size: 12px;
  }

  .hero,
  .page-index .hero {
    height: auto;
  }

  .hero-arrow {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}

/* RESTAURAR MENU EM DESKTOP */

@media (min-width: 981px) {
  .nav ul {
    display: flex !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 0 !important;
  }

  .nav ul.open {
    max-height: none;
    padding: 0;
  }

  .nav .submenu {
    display: none;
  }

  .dropdown:hover .submenu {
    display: flex;
  }
}

@media (max-width: 980px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero-slider {
    background-size: cover !important;
    background-repeat: no-repeat !important;
  }

  .page-index .hero-slider {
    background-position: center top !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
  }

  .nav ul {
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 50%;
    background: rgba(0, 0, 0, 0.95);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    gap: 0;
    padding: 0;
    z-index: 999;
  }

  .nav ul.open,
  .nav ul.active {
    max-height: 500px;
    padding: 10px 0;
  }

  .nav li {
    width: 100%;
  }

  .nav li a {
    display: flex;
    justify-content: flex-start;
    padding: 12px 20px;
    border-radius: 0;
    font-size: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .dropdown {
    position: relative;
  }

  .nav .submenu {
    position: absolute;
    left: 100%;
    top: 0;
    width: 50vw;
    max-height: 100vh;
    overflow-y: auto;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    background: rgba(0, 0, 0, 0.95);
    margin: 0;
    padding: 8px 0;
    box-shadow: -2px 4px 12px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
  }

  .nav .submenu.open {
    opacity: 1;
    visibility: visible;
  }

  .dropdown:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav .submenu li a {
    padding: 10px 20px;
    font-size: 11px;
    text-align: left;
    background: rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav .submenu li a:hover {
    padding-left: 25px;
  }

  .header {
    padding: clamp(8px, 2vw, 24px) 0;
  }

  .header .container {
    gap: 6px;
  }

  .header-logo img {
    height: clamp(45px, 8vw, 100px);
  }

  .header-text {
    padding: 0 clamp(3px, 0.5vw, 8px);
  }

  .header-text p {
    font-size: clamp(8px, 1.2vw, 12px);
    margin-top: 2px;
  }

  .header-text h1 {
    font-size: clamp(12px, 2.2vw, 22px);
    margin-top: 2px;
  }

  .container {
    padding: 0 12px;
  }

  .section-title {
    font-size: 18px;
  }

  .section-title-bar {
    width: 70px;
    margin-bottom: 20px;
  }

  .acesso-rapido {
    padding: 30px 0;
  }

  .acesso-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .acesso-card {
    padding: 12px;
    gap: 8px;
  }

  .acesso-card .icon img {
    width: 40px;
  }

  .acesso-card .card-title {
    font-size: 13px;
  }

  .diretor-section {
    padding: 60px 0;
  }

  .diretor-card img {
    width: 100%;
  }

  .hero-foto img {
    width: 100%;
    max-width: 100%;
  }

  .diretor-card .info h3 {
    font-size: 18px;
  }

  .diretor-card .info .subtitle {
    font-size: 14px;
  }

  .diretor-card .info .name {
    font-size: 14px;
  }

  .diretor-card .info p {
    font-size: 14px;
  }

  .agenda-section {
    padding: 24px 0;
  }

  .agenda-grid {
    gap: 10px;
  }

  .agenda-calendar-card {
    padding: 10px;
  }

  .agenda-month {
    font-size: 14px;
  }

  .agenda-day,
  .agenda-day-empty {
    min-height: 32px;
  }

  .agenda-weekdays span {
    font-size: 9px;
  }

  .agenda-popup-card {
    padding: 14px;
  }

  .agenda-popup-date {
    font-size: 16px;
  }

  .agenda-popup-text {
    font-size: 12px;
  }

  .agenda-popup-event {
    padding: 8px 10px;
  }

  .agenda-popup-event-title {
    font-size: 11px;
  }

  .downloads {
    padding: 24px 0 34px;
  }

  .downloads-grid {
    gap: 12px;
    margin-top: 20px;
  }

  .download-card {
    padding: 14px;
  }

  .download-card h3 {
    font-size: 14px;
  }

  .download-card p {
    font-size: 12px;
  }

  .contato-cards {
    padding: 40px 0;
  }

  .contato-grid {
    gap: 12px;
  }

  .contato-card {
    padding: 16px;
    height: auto;
    gap: 12px;
  }

  .ct-icon {
    font-size: 36px;
  }

  .ct-label {
    font-size: 11px;
  }

  .ct-value {
    font-size: 14px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-logo-circle img {
    max-width: 180px;
  }

  .footer h3 {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .footer-menu li a {
    font-size: 11px;
  }

  .footer-contact-item {
    gap: 10px;
    margin-bottom: 8px;
  }

  .footer-contact-item .fc-icon {
    font-size: 18px;
  }

  .footer-contact-item .fc-label {
    font-size: 11px;
  }

  .footer-contact-item .fc-value {
    font-size: 12px;
  }

  .unidades-grid {
    grid-template-columns: 1fr;
  }

  .hero,
  .page-index .hero {
    height: 250px;
  }

  .hero-arrow {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .header-logo img {
    height: clamp(40px, 7vw, 90px);
  }

  .hero-slider {
    background-size: cover !important;
    background-repeat: no-repeat !important;
  }

  .page-index .hero-slider {
    background-position: center top !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
  }

  .header-text h1 {
    font-size: clamp(11px, 2vw, 20px);
  }

  .header-text p {
    font-size: clamp(7px, 1vw, 11px);
  }

  .nav ul {
    width: 50%;
  }

  .nav li {
    width: 100%;
  }

  .nav li a {
    padding: 10px 20px;
    font-size: 10px;
  }

  .dropdown {
    position: relative;
  }

  .nav .submenu {
    position: absolute;
    left: 100%;
    top: 0;
    width: 50vw;
    max-height: 100vh;
    overflow-y: auto;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    background: rgba(0, 0, 0, 0.95);
    margin: 0;
    padding: 8px 0;
    box-shadow: -2px 4px 12px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
  }

  .nav .submenu.open {
    opacity: 1;
    visibility: visible;
  }

  .nav .submenu li a {
    padding: 10px 20px;
    font-size: 10px;
    text-align: left;
    background: rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav .submenu li a:hover {
    padding-left: 25px;
  }

  .container {
    padding: 0 10px;
  }

  .section-title {
    font-size: 16px;
  }

  .section-title-bar {
    width: 60px;
    margin-bottom: 16px;
  }

  .acesso-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .acesso-card {
    padding: 10px;
  }

  .acesso-card .icon img {
    width: 35px;
  }

  .acesso-card .card-title {
    font-size: 12px;
  }

  .diretor-card img {
    width: 100%;
  }

  .hero-foto img {
    width: 100%;
    max-width: 100%;
  }

  .diretor-card .info h3 {
    font-size: 16px;
  }

  .diretor-card .info p {
    font-size: 13px;
  }

  .agenda-calendar-card {
    padding: 8px;
  }

  .agenda-month {
    font-size: 12px;
  }

  .agenda-nav-btn {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }

  .agenda-day,
  .agenda-day-empty {
    min-height: 28px;
  }

  .download-card {
    padding: 12px;
  }

  .download-card h3 {
    font-size: 13px;
  }

  .contato-card {
    padding: 12px;
  }

  .ct-icon {
    font-size: 28px;
  }

  .ct-label {
    font-size: 10px;
  }

  .ct-value {
    font-size: 12px;
  }

  .footer-logo-circle img {
    max-width: 150px;
  }

  .footer h3 {
    font-size: 13px;
  }

  .footer-menu li a {
    font-size: 10px;
  }

  .footer-contact-item .fc-icon {
    font-size: 16px;
  }

  .footer-contact-item .fc-label {
    font-size: 10px;
  }

  .footer-contact-item .fc-value {
    font-size: 11px;
  }

  .hero,
  .page-index .hero {
    height: 200px;
  }

  .hero-arrow {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }

  .hero-dots {
    bottom: 12px;
    gap: 4px;
  }

  .dot {
    width: 10px;
    height: 10px;
  }

  .dot.active {
    width: 24px;
  }
}

/* Ajuste final do submenu mobile:
   mantï¿½m os links dentro do fluxo do menu para evitar falhas de toque em celulares. */
@media (max-width: 600px) {
  .nav ul,
  .nav ul.open,
  .nav ul.active {
    overflow: visible !important;
  }

  .nav .submenu {
    position: absolute !important;
    left: 100% !important;
    top: 0 !important;
    width: 50vw !important;
    max-height: 100vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    margin: 0 !important;
    padding: 8px 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: none !important;
    box-shadow: none !important;
    background: transparent !important;
    z-index: 1000 !important;
    pointer-events: none !important;
  }

  .nav .submenu.open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .dropdown:hover .submenu {
    transform: none !important;
  }

  .nav .submenu li a {
    display: block !important;
    width: 100% !important;
    padding: 12px 20px 12px 36px !important;
    text-align: left !important;
    touch-action: manipulation;
  }
}

/* Uniformiza o visual dos links do submenu com o menu principal. */

.nav .submenu li {
  border-bottom: none !important;
  padding: 2px 8px !important;
}

.nav .submenu li a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  width: 100% !important;
  padding: 11px 13px !important;
  border-radius: 12px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.55px !important;
  text-transform: uppercase !important;
  color: #fff !important;
  background: rgba(0, 0, 0, 0.95) !important;
  border-bottom: none !important;
  transition: color 0.25s ease, transform 0.25s ease, background 0.25s ease !important;
}

.nav .submenu li a:hover,
.nav .submenu li a.active {
  background: rgba(0, 0, 0, 0.95) !important;
  color: #e02020 !important;
  transform: translateY(-1px) !important;
  padding-left: 13px !important;
}

@media (max-width: 600px) {
  .nav .submenu li {
    padding: 2px 8px !important;
  }

  .nav .submenu li a {
    justify-content: flex-start !important;
    padding: 12px 20px !important;
    font-size: 11px !important;
  }

  .nav .submenu li a:hover,
  .nav .submenu li a.active {
    padding-left: 20px !important;
  }
}

/* Home: cards de contato e footer com acabamento responsivo. */

.page-index .contato-cards {
  padding: clamp(30px, 6vw, 60px) 0 !important;
}

.page-index .contato-cards .contato-grid {
  max-width: 1120px !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px !important;
}

.page-index .contato-cards .contato-card {
  min-width: 0;
  min-height: 136px;
  height: 100%;
  padding: 22px 24px !important;
  gap: 16px !important;
  align-items: center !important;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 22px !important;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22) !important;
}

.page-index .contato-cards .ct-icon {
  flex: 0 0 52px;
  width: 52px;
  text-align: center;
  font-size: 38px !important;
  line-height: 1;
}

.page-index .contato-cards .contato-card > div:last-child {
  min-width: 0;
  flex: 1 1 auto;
}

.page-index .contato-cards .ct-label {
  margin: 0 0 8px !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  letter-spacing: 2.2px !important;
  color: #f04b4b !important;
}

.page-index .contato-cards .ct-value,
.page-index .contato-cards .ct-value.red {
  margin: 0 !important;
  font-size: clamp(15px, 1.7vw, 18px) !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  color: #fff !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.footer .footer-contact-column {
  min-width: 0;
}

.footer .footer-map-button {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  text-align: left;
  padding: 0;
  font: inherit;
  line-height: inherit;
  max-width: 100%;
}

.footer-bottom {
  align-items: center !important;
  text-align: center !important;
  margin-top: 8px !important;
  padding: 6px 0 8px !important;
  border-top: none !important;
}

.footer-bottom .creditos,
.footer-bottom .quote {
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}

.footer-bottom .footer-copyright {
  display: block;
  margin-top: 2px;
}

@media (max-width: 900px) {
  .page-index .contato-cards .contato-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    max-width: 520px !important;
  }

  .page-index .contato-cards .contato-card {
    min-height: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .footer-logo,
  .footer-contact-column {
    justify-content: center !important;
    text-align: center !important;
  }

  .footer-spacer {
    display: none !important;
  }

  .footer-contact-item {
    align-items: flex-start !important;
    justify-content: center !important;
  }
}

@media (max-width: 600px) {
  .page-index .contato-cards .contato-grid {
    max-width: 100% !important;
    padding: 0 14px !important;
    gap: 12px !important;
  }

  .page-index .contato-cards .contato-card {
    padding: 18px 18px !important;
    border-radius: 20px !important;
    gap: 14px !important;
  }

  .page-index .contato-cards .ct-icon {
    flex-basis: 44px;
    width: 44px;
    font-size: 32px !important;
  }

  .page-index .contato-cards .ct-label {
    font-size: 11px !important;
    letter-spacing: 1.8px !important;
    margin-bottom: 6px !important;
  }

  .page-index .contato-cards .ct-value,
  .page-index .contato-cards .ct-value.red {
    font-size: 13px !important;
  }

  .footer {
    padding-top: 26px !important;
  }

  .footer .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .footer-grid {
    gap: 14px !important;
  }

  .footer-logo {
    justify-content: center !important;
  }

  .footer-logo-circle img {
    max-width: 150px !important;
  }

  .footer-contact-title {
    font-size: 14px !important;
    text-align: left !important;
    margin-bottom: 8px !important;
  }

  .footer-contact-column {
    width: min(100%, 280px);
    margin: 0 auto;
    text-align: left !important;
  }

  .footer-contact-item {
    display: grid !important;
    grid-template-columns: 22px minmax(0, 1fr);
    column-gap: 8px !important;
    row-gap: 0 !important;
    margin-bottom: 5px !important;
    justify-content: flex-start !important;
    align-items: start !important;
  }

  .footer-contact-item .fc-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
    margin: 0;
    align-self: start;
  }

  .footer-contact-item .fc-label {
    font-size: 11px !important;
    margin-bottom: 0 !important;
    line-height: 1.1 !important;
  }

  .footer-contact-item > div {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    align-self: start;
  }

  .footer-contact-item .fc-label,
  .footer-contact-item .fc-text {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  .footer-contact-item .fc-text,
  .footer .footer-map-button {
    font-size: 10px !important;
    line-height: 1.2 !important;
  }

  .footer-bottom {
    margin-top: 20px !important;
    padding: 14px 0 18px !important;
    gap: 8px !important;
  }

  .footer-bottom .creditos {
    font-size: 9px !important;
    line-height: 1.4 !important;
  }

  .footer-bottom .quote {
    font-size: 9px !important;
    line-height: 1.45 !important;
  }
}

/* Home mobile: traz redes sociais e video para a barra superior junto ao menu. */

@media (max-width: 980px) {
  .nav {
    padding: 3px 0 !important;
  }

  .nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 36px;
    padding-top: 2px;
    padding-bottom: 2px;
  }

  .menu-toggle {
    margin-left: 0 !important;
    flex: 0 0 auto;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    border-radius: 10px !important;
    font-size: 21px !important;
    line-height: 1 !important;
  }

  .nav li,
  .dropdown {
    overflow: visible !important;
  }

  .nav .submenu {
    left: 100% !important;
    top: 0 !important;
  }

  .nav ul {
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
  }

  .nav #navMenu .nav-portal-item {
    display: none !important;
  }

  .nav-mobile-utilities {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
  }

  .page-index .nav-mobile-utilities .social-float {
    position: static !important;
    inset: auto !important;
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 8px;
    margin: 0;
    z-index: auto !important;
  }

  .page-index .nav-mobile-utilities .social-btn,
  .page-index .nav-mobile-utilities .youtube-botao {
    position: static !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px;
    border-radius: 10px !important;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18) !important;
    animation: none !important;
  }

  .page-index .nav-mobile-utilities .social-btn img {
    width: 15px !important;
    height: 15px !important;
  }

  .page-index .nav-mobile-utilities .youtube-botao {
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 15px;
    z-index: auto !important;
  }

  .nav-mobile-utilities .portal-aluno-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 10px;
    background: rgba(20, 20, 20, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
  }

  .page-index .nav-mobile-utilities .social-btn:hover,
  .page-index .nav-mobile-utilities .youtube-botao:hover,
  .nav-mobile-utilities .portal-aluno-mobile:hover {
    transform: translateY(-1px) !important;
  }
}

/* Paginas das companhias: tipografia mobile unificada. */

@media (max-width: 980px) {
  .companhia-content,
  .bloco-info {
    font-size: 14px !important;
    line-height: 1.55 !important;
  }

  .bloco-info p,
  .bloco-info .brado,
  .bloco-info strong,
  .bloco-info br {
    font-size: inherit !important;
    line-height: inherit !important;
  }

  .bloco-info p {
    margin: 0 !important;
  }

  .bloco-info h3 {
    font-size: 13px !important;
    line-height: 1.2 !important;
    margin-bottom: 8px !important;
  }

  .companhia-header .cia-nome {
    font-size: 24px !important;
    line-height: 1.1 !important;
  }
}

/* Enxoval: preserva o preview flutuante no mobile. */

body.page-aluno,
body.page-aluno main,
body.page-aluno .aluno-page,
body.page-aluno .aluno-shell,
body.page-aluno .aluno-card,
body.page-aluno .enxoval-stage,
body.page-aluno .enxoval-layout {
  overflow: visible !important;
}

/* Header: manter sempre imagem | texto | imagem na proporcao 1 / 5 / 1. */

.header .container {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 5fr) minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 0 !important;
}

.header-logo {
  min-width: 0 !important;
}

.header-text {
  min-width: 0 !important;
}

.logo-essd,
.logo-pm {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.header .logo-essd {
  grid-column: 1 !important;
}

.header .header-text {
  grid-column: 2 !important;
}

.header .logo-pm {
  grid-column: 3 !important;
}

@media (max-width: 980px) {
  .header .container {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 5fr) minmax(0, 1fr) !important;
    gap: 0 !important;
  }

  .header-text {
    padding: 0 10px !important;
  }

  .header-text p {
    font-size: clamp(8px, 1.45vw, 12px) !important;
    letter-spacing: 0.14em !important;
  }

  .header-text h1 {
    font-size: clamp(12px, 2.35vw, 24px) !important;
    letter-spacing: 0.04em !important;
  }

  .logo-essd img {
    height: clamp(56px, 10vw, 108px) !important;
    width: auto !important;
  }

  .logo-pm img {
    height: clamp(52px, 9vw, 98px) !important;
    width: auto !important;
  }
}

/* Footer: imagem a esquerda e texto ao lado em proporcao compacta 2 / 4. */

.footer-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 2fr) minmax(0, 4fr) !important;
  align-items: center !important;
  gap: 12px !important;
}

.footer-spacer {
  display: none !important;
}

.footer-logo {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  min-width: 0 !important;
}

.footer-contact-column {
  min-width: 0 !important;
  text-align: left !important;
  justify-self: stretch !important;
}

.footer-logo-circle img {
  max-width: 126px !important;
}

.footer-contact-title {
  margin-bottom: 8px !important;
}

.footer-contact-item {
  margin-bottom: 8px !important;
  gap: 8px !important;
}

.footer-contact-item .fc-icon {
  width: 18px !important;
  height: 18px !important;
}

.footer-contact-item .fc-label,
.footer-contact-item .fc-text,
.footer .footer-map-button {
  font-size: 11px !important;
  line-height: 1.35 !important;
}

.footer-bottom {
  margin-top: 16px !important;
  padding: 12px 0 12px !important;
}

@media (min-width: 981px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr !important;
    align-items: start !important;
    gap: 12px !important;
  }

  .footer-spacer {
    display: block !important;
  }

  .footer-logo {
    justify-content: center !important;
  }

  .footer-contact-column {
    justify-self: stretch !important;
    text-align: left !important;
  }

  .footer-logo-circle img {
    max-width: 190px !important;
  }

  .footer-contact-title {
    margin-bottom: 12px !important;
  }

  .footer-contact-item {
    margin-bottom: 12px !important;
    gap: 10px !important;
  }

  .footer-contact-item .fc-icon {
    width: 32px !important;
    height: 32px !important;
    object-fit: contain !important;
  }

  .footer-contact-item .fc-label,
  .footer-contact-item .fc-text,
  .footer .footer-map-button {
    font-size: 12px !important;
    line-height: 1.4 !important;
  }

  .footer-bottom {
    margin-top: 28px !important;
    padding: 16px 0 14px !important;
  }
}

@media (max-width: 980px) {
  .footer-grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 4fr) !important;
    gap: 10px !important;
  }

  .footer-logo-circle img {
    max-width: 110px !important;
  }

  .footer-contact-title {
    font-size: 14px !important;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 4fr) !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .footer-logo {
    justify-content: center !important;
  }

  .footer-logo-circle img {
    max-width: 92px !important;
  }

  .footer-contact-column {
    text-align: left !important;
    align-self: center !important;
  }

  .footer-contact-title {
    font-size: 13px !important;
    margin-bottom: 6px !important;
  }

  .footer-contact-item {
    margin-bottom: 6px !important;
    gap: 6px !important;
  }

  .footer-contact-item .fc-icon {
    width: 16px !important;
    height: 16px !important;
  }

  .footer-contact-item .fc-label,
  .footer-contact-item .fc-text,
  .footer .footer-map-button {
    font-size: 10px !important;
    line-height: 1.25 !important;
  }
}

/* =========================================================
   AJUSTES FINAIS
   Daqui para baixo ficam correcoes recentes e overrides
   preferenciais para manutencao rapida.
   ========================================================= */
/* ===== Texto justificado: Historico, Historico Completo e Patrono ===== */

.page-historico .historico-text p,
.page-historico-completo p,
.page-patrono .patrono-content-card p {
  text-align: justify;
}

@media (max-width: 600px) {
  .page-index .diretor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    column-gap: 12px;
    align-items: start;
  }

  .page-index .diretor-card {
    gap: 10px;
  }

  .page-index .diretor-card img {
    width: 100%;
    max-width: 100%;
    height: 220px;
  }

  .page-index .diretor-card .info h3 {
    font-size: 15px;
  }

  .page-index .diretor-card .info .name {
    font-size: 12px;
    line-height: 1.3;
  }
}

/* Footer: aproxima os creditos do bloco principal */

.footer .footer-bottom {
  margin-top: 6px !important;
  padding-top: 4px !important;
  padding-bottom: 6px !important;
  border-top: none !important;
}

.footer .footer-map-button {
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  color: inherit !important;
  cursor: pointer !important;
  text-align: left !important;
  font: inherit !important;
  line-height: inherit !important;
}

@media (min-width: 981px) {
  .footer .footer-bottom {
    margin-top: 8px !important;
    padding-top: 6px !important;
    padding-bottom: 8px !important;
  }
}

/* =========================================================
   FOOTER MOBILE: EDITE AQUI
   Este Ã© o bloco final que prevalece sobre os anteriores.
   Se quiser ajustar o "FALE CONOSCO" no celular, use estas regras.
   ========================================================= */
@media (max-width: 600px) {
  .footer-contact-title {
    font-size: 13px !important;
    margin-bottom: 6px !important;
  }

  .footer-contact-item {
    margin-bottom: 6px !important;
    gap: 6px !important;
  }

  .footer-contact-item .fc-icon {
    width: 16px !important;
    height: 16px !important;
  }

  .footer-contact-item .fc-label,
  .footer-contact-item .fc-text,
  .footer .footer-map-button {
    font-size: 10px !important;
    line-height: 1.25 !important;
  }

  .footer .footer-bottom {
    margin-top: 6px !important;
    padding-top: 4px !important;
    padding-bottom: 6px !important;
    border-top: none !important;
  }
}

@media (max-width: 980px) {
  .nav #navMenu,
  .nav #navMenu.open,
  .nav #navMenu.active {
    align-items: stretch !important;
    justify-content: flex-start !important;
  }

  .nav #navMenu > li {
    display: block !important;
    width: 100% !important;
    text-align: left !important;
  }

  .nav #navMenu > li > a {
    display: flex !important;
    width: 100% !important;
    justify-content: flex-start !important;
    align-items: center !important;
    text-align: left !important;
    padding: 12px 20px !important;
    margin: 0 !important;
  }

  .nav #navMenu > li > a .arrow {
    margin-left: auto !important;
  }
}

.page-index .contato-cards .ct-value,
.page-index .contato-cards .ct-value.red {
  font-size: 14px !important;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

@media (max-width: 600px) {
  .page-index .downloads {
    padding: 28px 0 36px;
  }

  .page-index .downloads .titulo-secao {
    font-size: 1.35rem;
  }

  .page-index .downloads-grid {
    gap: 14px;
    margin-top: 20px;
  }

  .page-index .download-card {
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: 12px 14px;
    gap: 12px;
    border-radius: 12px;
  }

  .page-index .download-card .card-icon {
    width: 42px;
    min-width: 42px;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .page-index .download-card .card-content {
    align-items: flex-start !important;
    text-align: left;
    flex: 1;
  }

  .page-index .download-card h3 {
    font-size: 14px;
    margin-bottom: 2px;
    text-align: left;
  }

  .page-index .download-card p {
    font-size: 12px;
    line-height: 1.35;
    text-align: left;
  }

  .page-index .download-card .card-action {
    display: none;
  }

  .page-index .download-card .card-audio {
    width: 100%;
    max-width: 220px;
    max-height: 34px;
    height: 34px;
    margin: 8px 0 0 !important;
  }

  .page-index .download-card.musica {
    cursor: pointer;
  }

  .page-index .download-card.musica:focus-visible {
    outline: 2px solid #e02020;
    outline-offset: 2px;
  }
}

/* =========================================================
   MOBILE UNIFICADO
   Mantem apenas dois comportamentos reais:
   - desktop acima de 980px
   - mobile ate 980px, incluindo celular em paisagem
   ========================================================= */
@media (max-width: 980px) {
  .page-index {
    --index-card-photo-w: clamp(140px, 26vw, 220px);
    --index-card-photo-h: calc(var(--index-card-photo-w) * 1.25);
  }

  .page-index .diretor-section {
    padding: 34px 0 !important;
  }

  .page-index .hero {
    height: clamp(220px, 48vh, 380px) !important;
  }

  .page-index .diretor-card {
    align-items: center !important;
    justify-items: center !important;
    text-align: center !important;
    width: 100% !important;
  }

  .page-index .diretor-card img,
  .page-index #policial img,
  .page-index #policialMesFoto {
    display: block !important;
    width: var(--index-card-photo-w) !important;
    min-width: var(--index-card-photo-w) !important;
    max-width: var(--index-card-photo-w) !important;
    height: var(--index-card-photo-h) !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center center !important;
    background: rgba(255,255,255,0.08) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    border-radius: 18px !important;
    -webkit-clip-path: inset(0 round 18px);
    clip-path: inset(0 round 18px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
    margin-inline: auto !important;
  }

  .page-index .diretor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    justify-items: center !important;
    gap: clamp(12px, 3vw, 18px) !important;
    column-gap: clamp(12px, 3vw, 18px) !important;
    align-items: start !important;
  }

  .page-index .diretor-card {
    gap: 10px !important;
  }

  .page-index .diretor-card .info {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  .page-index .diretor-card .info h3 {
    font-size: 15px !important;
    text-align: center !important;
  }

  .page-index .diretor-card .info .name {
    font-size: 12px !important;
    line-height: 1.3 !important;
    text-align: center !important;
  }

  .page-index .downloads {
    padding: 28px 0 36px !important;
  }

  .page-index .downloads .titulo-secao {
    font-size: 1.35rem !important;
  }

  .page-index .downloads-grid {
    gap: 14px !important;
    margin-top: 20px !important;
  }

  .page-index .download-card {
    flex-direction: row !important;
    align-items: center !important;
    text-align: left !important;
    padding: 12px 14px !important;
    gap: 12px !important;
    border-radius: 12px !important;
  }

  .page-index .download-card .card-icon {
    width: 42px !important;
    min-width: 42px !important;
    font-size: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .page-index .download-card .card-content {
    align-items: flex-start !important;
    text-align: left !important;
    flex: 1 !important;
  }

  .page-index .download-card h3 {
    font-size: 14px !important;
    margin-bottom: 2px !important;
    text-align: left !important;
  }

  .page-index .download-card p {
    font-size: 12px !important;
    line-height: 1.35 !important;
    text-align: left !important;
  }

  .page-index .download-card .card-action {
    display: none !important;
  }

  .page-index .download-card .card-audio {
    width: 100% !important;
    max-width: 220px !important;
    max-height: 34px !important;
    height: 34px !important;
    margin: 8px 0 0 !important;
  }

  .page-index .contato-cards .contato-grid {
    max-width: 100% !important;
    padding: 0 14px !important;
    gap: 12px !important;
  }

  .page-index .contato-cards .contato-card {
    padding: 18px 18px !important;
    border-radius: 20px !important;
    gap: 14px !important;
  }

  .page-index .contato-cards .ct-icon {
    flex-basis: 44px !important;
    width: 44px !important;
    font-size: 32px !important;
  }

  .page-index .contato-cards .ct-label {
    font-size: 11px !important;
    letter-spacing: 1.8px !important;
    margin-bottom: 6px !important;
  }

  .page-index .contato-cards .ct-value,
  .page-index .contato-cards .ct-value.red {
    font-size: 13px !important;
  }
}

@media (max-width: 600px) {
  .page-index .diretor-section {
    padding: 24px 0 !important;
  }
}

@media (max-width: 980px), (hover: none) and (pointer: coarse) and (max-height: 500px) {
  :root {
    --mobile-safe-top: max(0px, env(safe-area-inset-top, 0px));
    --mobile-safe-right: max(0px, env(safe-area-inset-right, 0px));
    --mobile-safe-bottom: max(0px, env(safe-area-inset-bottom, 0px));
    --mobile-safe-left: max(0px, env(safe-area-inset-left, 0px));
  }

  html,
  body {
    width: 100vw !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  .container {
    width: 100% !important;
    max-width: none !important;
    padding-left: var(--mobile-safe-left) !important;
    padding-right: var(--mobile-safe-right) !important;
  }

  .header,
  .nav,
  .hero,
  .diretor-section,
  .agenda-section,
  .downloads,
  .contato-cards,
  .footer {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
  }

  .menu-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
  }

  .menu-toggle .menu-toggle-text {
    position: absolute;
    left: calc(100% + 6px);
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1;
    color: #fff;
    white-space: nowrap;
  }

  .header {
    padding: clamp(8px, 2vw, 24px) 0 !important;
    padding-top: calc(clamp(8px, 2vw, 24px) + var(--mobile-safe-top)) !important;
    padding-left: var(--mobile-safe-left) !important;
    padding-right: var(--mobile-safe-right) !important;
  }

  .header .container {
    gap: 6px !important;
  }

  .header-text {
    padding: 0 clamp(3px, 0.5vw, 8px) !important;
  }

  .header-text p {
    font-size: clamp(8px, 1.2vw, 12px) !important;
    margin-top: 2px !important;
  }

  .header-text h1 {
    font-size: clamp(12px, 2.2vw, 22px) !important;
    margin-top: 2px !important;
  }

  .header-logo img {
    height: clamp(45px, 8vw, 100px) !important;
  }

  .nav {
    padding: 3px 0 !important;
    padding-left: var(--mobile-safe-left) !important;
    padding-right: var(--mobile-safe-right) !important;
  }

  .nav .container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    min-height: 36px !important;
    padding-top: 2px !important;
    padding-bottom: 2px !important;
  }

  .nav ul {
    flex-direction: column !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    width: min(calc(33.333vw + 45px), 365px) !important;
    max-width: calc(100vw - var(--mobile-safe-left) - var(--mobile-safe-right) - 24px) !important;
    background: transparent !important;
    max-height: 0 !important;
    overflow: hidden !important;
    transition: none !important;
    gap: 0 !important;
    padding: 0 !important;
    z-index: 999 !important;
  }

  .nav ul.open,
  .nav ul.active {
    max-height: 500px !important;
    padding: 10px 0 !important;
    overflow: visible !important;
  }

  .nav li,
  .dropdown {
    width: 100% !important;
    overflow: visible !important;
  }

  .nav li {
    padding: 0 8px 4px !important;
  }

  .nav li a {
    display: flex !important;
    justify-content: flex-start !important;
    padding: 10px 14px 10px 18px !important;
    border-radius: 10px !important;
    font-size: 11px !important;
    text-align: left !important;
    background: rgba(0, 0, 0, 0.95) !important;
    border-bottom: none !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    line-height: 1.25 !important;
    min-height: 44px !important;
    align-items: center !important;
  }

  .dropdown {
    position: relative !important;
  }

  .dropdown.active-mobile {
    z-index: 1200 !important;
  }

  .nav .submenu {
    position: absolute !important;
    left: 100% !important;
    top: 0 !important;
    width: min(calc(33.333vw + 40px), 360px) !important;
    max-width: calc(100vw - var(--mobile-safe-left) - var(--mobile-safe-right) - 24px) !important;
    max-height: 100vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
    background: transparent !important;
    margin: 0 !important;
    padding: 8px 0 !important;
    box-shadow: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: none !important;
    z-index: 1000 !important;
    pointer-events: none !important;
  }

  .nav .submenu.open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .nav .submenu li {
    position: relative !important;
    z-index: 1001 !important;
  }

  .dropdown:hover .submenu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  .nav .submenu li a {
    display: block !important;
    position: relative !important;
    z-index: 1002 !important;
    width: 100% !important;
    padding: 10px 20px !important;
    font-size: 11px !important;
    text-align: left !important;
    background: rgba(0, 0, 0, 0.95) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    line-height: 1.25 !important;
    min-height: 44px !important;
    align-items: center !important;
    touch-action: manipulation !important;
  }

  .nav .submenu li a:hover {
    padding-left: 25px !important;
  }

  .nav #navMenu .nav-portal-item {
    display: none !important;
  }

  .nav-mobile-utilities {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    flex-wrap: nowrap !important;
  }

  .page-index .nav-mobile-utilities .social-float {
    position: static !important;
    inset: auto !important;
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
    z-index: auto !important;
  }

  .page-index .nav-mobile-utilities .social-btn,
  .page-index .nav-mobile-utilities .youtube-botao {
    position: static !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    border-radius: 10px !important;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18) !important;
    animation: none !important;
  }

  .page-index .nav-mobile-utilities .social-btn img {
    width: 15px !important;
    height: 15px !important;
  }

  .page-index .nav-mobile-utilities .youtube-botao {
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    font-size: 15px !important;
    z-index: auto !important;
  }

  .nav-mobile-utilities .portal-aluno-mobile {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 32px !important;
    padding: 0 10px !important;
    border-radius: 10px !important;
    background: rgba(20, 20, 20, 0.94) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18) !important;
  }

  .footer .container {
    width: 100% !important;
    max-width: none !important;
    padding-left: calc(var(--mobile-safe-left) + 4px) !important;
    padding-right: calc(var(--mobile-safe-right) + 4px) !important;
    padding-bottom: calc(var(--mobile-safe-bottom) + 4px) !important;
  }

  .footer-bottom,
  .footer-bottom .creditos,
  .footer-bottom .quote,
  .footer-bottom .footer-copyright,
  .footer-bottom .creditos span {
    font-size: 7px !important;
    line-height: 1.1 !important;
  }

  .footer-bottom .creditos,
  .footer-bottom .quote {
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  .footer-bottom {
    margin-top: 4px !important;
    padding: 2px 0 4px !important;
  }
}

@media (max-width: 980px) and (hover: none) and (pointer: coarse) and (orientation: portrait) {
  .nav .submenu {
    left: 100% !important;
    top: 0 !important;
    width: min(calc(33.333vw + 40px), 360px) !important;
    max-width: calc(100vw - var(--mobile-safe-left) - var(--mobile-safe-right) - 24px) !important;
    padding-top: 8px !important;
    z-index: 1200 !important;
    pointer-events: none !important;
  }

  .nav .submenu.open {
    pointer-events: auto !important;
  }

  .nav .submenu li a {
    min-height: 44px !important;
    font-size: 11px !important;
  }
}

@media (min-width: 769px) and (max-width: 899px) {
  .page-historico .historico {
    padding-top: 18px;
    padding-bottom: 34px;
  }

  .page-historico .historico-grid {
    position: relative;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .page-historico .historico-circle {
    display: none;
  }

  .page-historico .historico-text {
    position: relative;
    isolation: isolate;
    padding: 24px 18px;
    border-radius: 20px;
    overflow: hidden;
    background:
      linear-gradient(180deg, rgba(255,255,255,0.88) 0%, rgba(248,248,248,0.9) 100%),
      url('./icon-historico.png') center center / min(82%, 300px) no-repeat;
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
  }

  .page-historico .historico-text::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 18px;
    background: url('./icon-historico.png') center center / min(82%, 300px) no-repeat;
    opacity: 0.08;
    filter: grayscale(1) contrast(1.05);
    z-index: -1;
    pointer-events: none;
  }

  .page-historico .historico-text::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.72) 0%, rgba(255,255,255,0.82) 100%);
    z-index: 0;
    pointer-events: none;
  }

  .page-historico .historico-text h2,
  .page-historico .historico-text p,
  .page-historico .historico-text .btn-red {
    position: relative;
    z-index: 1;
  }

  .page-historico .historico-gallery {
    padding: 24px 0 44px;
  }

  .page-historico .gallery-stage {
    padding: 12px 0 4px;
  }

  .page-historico .gallery-viewport {
    border-radius: 16px;
  }

  .page-historico .gallery-viewport::before,
  .page-historico .gallery-viewport::after {
    width: 40px;
  }

  .page-historico .gallery-track {
    gap: 12px;
    padding: 18px 46px;
  }

  .page-historico .gallery-nav-btn {
    width: 36px;
    height: 36px;
  }

  .page-historico .photo-card {
    width: clamp(86px, 18vw, 112px);
  }

  .page-historico .gallery-meta {
    width: 100%;
    padding: 11px 12px;
  }
}

/* Mobile menu hit area fix:
   amplia a area interativa do menu para a tela inteira sem alterar a largura
   visual dos botoes nem o submenu lateral. */
@media (max-width: 980px), (hover: none) and (pointer: coarse) and (max-height: 500px) {
  .nav {
    --mobile-menu-width: min(calc(33.333vw + 45px), 365px);
    --mobile-submenu-width: min(calc(33.333vw + 40px), 360px);
  }

  .nav #navMenu,
  .nav #navMenu.open,
  .nav #navMenu.active {
    width: 100vw !important;
    max-width: 100vw !important;
    left: 0 !important;
    right: auto !important;
    overflow: visible !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    pointer-events: none !important;
  }

  .nav #navMenu {
    overflow: hidden !important;
  }

  .nav #navMenu.open,
  .nav #navMenu.active {
    overflow: visible !important;
  }

  .nav #navMenu > li {
    width: var(--mobile-menu-width) !important;
    max-width: calc(100vw - var(--mobile-safe-left, 0px) - var(--mobile-safe-right, 0px) - 24px) !important;
    pointer-events: auto !important;
  }

  .nav #navMenu > li > a {
    width: 100% !important;
    pointer-events: auto !important;
  }

  .nav #navMenu .dropdown {
    position: relative !important;
    overflow: visible !important;
  }

  .nav #navMenu .submenu {
    left: calc(100% - 8px) !important;
    width: var(--mobile-submenu-width) !important;
    max-width: calc(100vw - var(--mobile-safe-left, 0px) - var(--mobile-safe-right, 0px) - 24px) !important;
    pointer-events: none !important;
  }

  .nav #navMenu .submenu.open {
    pointer-events: auto !important;
  }

  .nav #navMenu .submenu li,
  .nav #navMenu .submenu li a {
    pointer-events: auto !important;
  }
}

/* Menu mobile paisagem: reduz apenas a largura dos botoes em 50px. */
@media (max-width: 980px) and (orientation: landscape),
       (hover: none) and (pointer: coarse) and (max-height: 500px) and (orientation: landscape) {
  .nav {
    --mobile-menu-width: min(calc(33.333vw - 35px), 285px);
    --mobile-submenu-width: min(calc(33.333vw - 40px), 280px);
  }
}

/* Menu mobile: reduz 5px da altura dos botoes em retrato e paisagem. */
@media (max-width: 980px), (hover: none) and (pointer: coarse) and (max-height: 500px) {
  .nav #navMenu > li > a {
    min-height: 39px !important;
    padding-top: 7.5px !important;
    padding-bottom: 7.5px !important;
  }

  .nav #navMenu .submenu li a {
    min-height: 39px !important;
    padding-top: 7.5px !important;
    padding-bottom: 7.5px !important;
  }
}

/* Home hero sizing:
   desktop ocupa toda a largura; mobile fica sempre em retangulo 16:9. */
.page-index .hero {
  width: 100vw !important;
  max-width: 100vw !important;
  height: clamp(320px, 28vw, 500px) !important;
  aspect-ratio: auto !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}

.page-index .hero-slider {
  width: 100% !important;
  height: 100% !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

@media (max-width: 980px), (hover: none) and (pointer: coarse) and (max-height: 500px) {
  .page-index .hero {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 16 / 8.4 !important;
  }
}

@media (max-width: 980px) and (orientation: landscape),
       (hover: none) and (pointer: coarse) and (max-height: 500px) and (orientation: landscape) {
  .page-index .hero {
    height: clamp(215px, 56vh, 350px) !important;
    aspect-ratio: auto !important;
  }

  .page-index .agenda-section {
    padding: 18px 0 !important;
  }

  .page-index .agenda-grid {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 8px !important;
    grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) !important;
  }

  .page-index .agenda-calendar-card {
    padding: 8px !important;
  }

  .page-index .agenda-popup-card {
    align-self: stretch !important;
  }

  .page-index .agenda-month {
    font-size: 12px !important;
  }

  .page-index .agenda-day,
  .page-index .agenda-day-empty {
    min-height: 28px !important;
  }

  .page-index .agenda-weekdays span {
    font-size: 8px !important;
  }

  .page-index .agenda-popup-card {
    padding: 10px !important;
  }

  .page-index .agenda-popup-date {
    font-size: 14px !important;
  }

  .page-index .agenda-popup-text {
    font-size: 11px !important;
  }

  .page-index .agenda-popup-event {
    padding: 7px 8px !important;
  }

  .page-index .agenda-popup-event-title {
    font-size: 10px !important;
  }
}

/* Sticky nav scroll fix:
   evita conflito entre position: sticky do CSS e nav-fixed controlado pelo JS. */
.nav:not(.nav-fixed) {
  position: relative !important;
}

.nav.nav-fixed {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
}

/* Desktop nav spacing fix:
   o item invisivel da musica fica entre Servicos ao PM e Portal,
   entao compensa um gap extra sem mover o Portal. */
@media (min-width: 981px) {
  .nav .container {
    display: flex !important;
    justify-content: center !important;
  }

  .nav #navMenu {
    width: fit-content !important;
    max-width: min(100%, 1180px) !important;
    margin: 0 auto !important;
    justify-content: center !important;
    gap: 4px !important;
  }

  .nav #navMenu > li {
    flex: 0 0 auto !important;
  }

  .nav #navMenu > li > a {
    padding: 9px 11px !important;
    font-size: 11px !important;
    border-radius: 10px !important;
  }

  .page-index .nav-music-item {
    margin-left: -6px !important;
  }
}

/* Downloads uteis: remove os botoes vermelhos no desktop. */
@media (min-width: 981px) {
  .page-index .downloads .download-card .card-action {
    display: none !important;
  }
}

/* Comandante: reduz a foto no mobile em paisagem. */
@media (max-width: 980px) and (orientation: landscape),
       (hover: none) and (pointer: coarse) and (max-height: 500px) and (orientation: landscape) {
  .hero-comandante {
    padding: 24px 0 !important;
  }

  .hero-comandante .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    justify-items: center !important;
    text-align: center !important;
  }

  .hero-comandante .hero-foto {
    width: 100% !important;
    text-align: center !important;
  }

  .hero-comandante .hero-foto img {
    width: min(40vw, 210px) !important;
    max-width: 210px !important;
    height: auto !important;
    margin: 0 auto !important;
    display: block !important;
  }

  .hero-comandante .hero-info {
    max-width: 760px !important;
    margin: 0 auto !important;
  }

  .hero-comandante .hero-info .cargo-topo {
    font-size: 13px !important;
    letter-spacing: 1px !important;
    margin-bottom: 6px !important;
  }

  .hero-comandante .hero-info h1 {
    font-size: 24px !important;
    letter-spacing: 1px !important;
    margin-bottom: 6px !important;
    line-height: 1.2 !important;
  }

  .hero-comandante .hero-info .subtitulo {
    font-size: 16px !important;
    margin-bottom: 10px !important;
  }

  .hero-comandante .hero-info p {
    font-size: 15px !important;
    line-height: 1.55 !important;
    margin-bottom: 8px !important;
  }
}

/* Comandante: em aparelhos touch na horizontal, iguala o texto do topo ao encarte seguinte. */
@media (hover: none) and (pointer: coarse) and (orientation: landscape) {
  .hero-comandante .hero-info p {
    font-size: 13px !important;
    line-height: 1.7 !important;
    color: #f2f2f2 !important;
    text-align: justify !important;
  }

  .hero-comandante .hero-info h1 {
    font-size: 20px !important;
    line-height: 1.25 !important;
  }

  .hero-comandante .hero-info .subtitulo {
    font-size: 14px !important;
  }
}

/* Comandante: texto dos encartes identico e menor no mobile em paisagem. */
@media (hover: none) and (pointer: coarse) and (orientation: landscape) {
  .hero-comandante .hero-info p,
  .conteudo-comandante .bloco-institucional p,
  .conteudo-comandante .timeline-item .ano,
  .conteudo-comandante .timeline-item .cargo,
  .conteudo-comandante .timeline-item .unidade,
  .conteudo-comandante .unidade-card h3,
  .conteudo-comandante .unidade-card p {
    font-family: inherit !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    line-height: 1.55 !important;
    text-align: justify !important;
  }

  .conteudo-comandante .timeline-item .ano,
  .conteudo-comandante .timeline-item .cargo,
  .conteudo-comandante .unidade-card h3 {
    text-align: left !important;
  }

  .conteudo-comandante .section-title {
    font-size: 14px !important;
    line-height: 1.25 !important;
    letter-spacing: 1px !important;
  }
}

/* CIAs: escala compacta para mobile em paisagem. */
@media (hover: none) and (pointer: coarse) and (orientation: landscape) {
  .companhia-section {
    padding: 0 !important;
  }

  .companhia-card {
    border-radius: 0 0 8px 8px !important;
  }

  .companhia-header {
    padding: 10px 14px !important;
  }

  .companhia-header .cia-nome,
  .companhia-header .cia-label {
    font-size: 20px !important;
    line-height: 1.22 !important;
    letter-spacing: 0.6px !important;
    margin: 0 !important;
  }

  .companhia-body {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) !important;
    gap: 12px !important;
    padding: 14px !important;
    align-items: start !important;
  }

  .companhia-aside {
    width: 100% !important;
    max-width: none !important;
    align-self: start !important;
  }

  .brasao-box {
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 auto !important;
  }

  .brasao-box img {
    width: 100% !important;
    max-width: min(100%, var(--cia-landscape-img-max, 250px)) !important;
    height: auto !important;
    max-height: var(--cia-landscape-img-height, 205px) !important;
    object-fit: contain !important;
    margin: 0 auto 6px !important;
    transform: none !important;
    filter: drop-shadow(0 4px 5px rgba(255,255,255,0.14)) drop-shadow(7px -9px 2px rgba(0,0,0,0.17)) drop-shadow(11px -13px 7px rgba(0,0,0,0.15)) !important;
  }

  .brasao-box .forca,
  .brasao-box .texto-apoio {
    font-size: 12px !important;
    line-height: 1.3 !important;
    letter-spacing: 0.5px !important;
    margin-top: 4px !important;
  }

  .companhia-content {
    width: 100% !important;
    gap: 10px !important;
  }

  .bloco-info {
    padding: 12px !important;
    font-size: 11.5px !important;
    line-height: 1.48 !important;
    border-radius: 8px !important;
  }

  .bloco-info h3 {
    font-size: 13.5px !important;
    line-height: 1.28 !important;
    margin-bottom: 6px !important;
  }

  .bloco-info p,
  .bloco-info .brado,
  .bloco-info strong {
    font-size: 11.5px !important;
    line-height: 1.48 !important;
    letter-spacing: 0 !important;
  }

  .red-divider {
    height: 3px !important;
    margin: 0 !important;
  }
}

/* CIAs: no tablet, manter imagem em 1/3 e texto em 2/3. */
@media (max-width: 980px) and (min-width: 601px) {
  .companhia-body {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) !important;
    gap: 20px !important;
    padding: 24px 20px !important;
    align-items: start !important;
  }

  .companhia-aside {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    align-self: start !important;
  }

  .brasao-box {
    width: 100% !important;
    max-width: none !important;
    padding: 20px 14px !important;
    margin: 0 auto !important;
  }

  .brasao-box img {
    width: 100% !important;
    max-width: min(100%, 260px) !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    margin: 0 auto 12px !important;
    transform: none !important;
  }

  .companhia-content {
    width: 100% !important;
    min-width: 0 !important;
  }
}

@media (min-width: 769px) and (max-width: 899px) {
  .companhia-section {
    padding: 0 !important;
  }

  .companhia-card {
    border-radius: 0 0 8px 8px !important;
  }

  .companhia-header {
    padding: 10px 14px !important;
  }

  .companhia-header .cia-nome,
  .companhia-header .cia-label {
    font-size: 20px !important;
    line-height: 1.22 !important;
    letter-spacing: 0.6px !important;
    margin: 0 !important;
  }

  .companhia-body {
    display: grid !important;
    grid-template-columns: minmax(170px, var(--cia-landscape-col-max, 230px)) minmax(0, 1fr) !important;
    gap: 12px !important;
    padding: 14px !important;
    align-items: start !important;
  }

  .companhia-aside {
    width: 100% !important;
    max-width: var(--cia-landscape-aside-max, 230px) !important;
    align-self: start !important;
  }

  .brasao-box {
    width: 100% !important;
    max-width: var(--cia-landscape-aside-max, 230px) !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 auto !important;
  }

  .brasao-box img {
    width: 100% !important;
    max-width: var(--cia-landscape-img-max, 210px) !important;
    height: var(--cia-landscape-img-height, 168px) !important;
    max-height: var(--cia-landscape-img-height, 168px) !important;
    object-fit: contain !important;
    margin: 0 auto 6px !important;
    transform: none !important;
    filter: drop-shadow(0 4px 5px rgba(255,255,255,0.14)) drop-shadow(7px -9px 2px rgba(0,0,0,0.17)) drop-shadow(11px -13px 7px rgba(0,0,0,0.15)) !important;
  }

  .brasao-box .forca,
  .brasao-box .texto-apoio {
    font-size: 12px !important;
    line-height: 1.3 !important;
    letter-spacing: 0.5px !important;
    margin-top: 4px !important;
  }

  .companhia-content {
    width: 100% !important;
    gap: 10px !important;
  }

  .bloco-info {
    padding: 12px !important;
    font-size: 11.5px !important;
    line-height: 1.48 !important;
    border-radius: 8px !important;
  }

  .bloco-info h3 {
    font-size: 13.5px !important;
    line-height: 1.28 !important;
    margin-bottom: 6px !important;
  }

  .bloco-info p,
  .bloco-info .brado,
  .bloco-info strong {
    font-size: 11.5px !important;
    line-height: 1.48 !important;
    letter-spacing: 0 !important;
  }

  .red-divider {
    height: 3px !important;
    margin: 0 !important;
  }
}

/* CIAs: em tablets no retrato usar o fluxo do mobile em retrato. */
@media (min-width: 601px) and (max-width: 980px) and (orientation: portrait) {
  .page-cia .companhia-section {
    padding: 0 !important;
  }

  .page-cia .companhia-card {
    border-radius: 0 0 10px 10px !important;
  }

  .page-cia .companhia-header {
    padding: 12px 16px !important;
  }

  .page-cia .companhia-header .cia-nome,
  .page-cia .companhia-header .cia-label {
    font-size: 22px !important;
    line-height: 1.16 !important;
    margin: 0 !important;
    text-align: left !important;
  }

  .page-cia .companhia-body {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    padding: 18px 16px !important;
    align-items: start !important;
  }

  .page-cia .companhia-aside {
    width: 100% !important;
    max-width: none !important;
    margin: 0 auto !important;
    align-self: start !important;
    justify-content: center !important;
  }

  .page-cia .brasao-box {
    width: 100% !important;
    max-width: min(100%, 340px) !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 auto !important;
    gap: 12px !important;
  }

  .page-cia .brasao-box img {
    width: 100% !important;
    max-width: min(100%, 300px) !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    margin: 0 auto !important;
    transform: none !important;
  }

  .page-cia .brasao-box .forca,
  .page-cia .brasao-box .texto-apoio {
    font-size: 14px !important;
    line-height: 1.25 !important;
    letter-spacing: 0.4px !important;
    margin-top: 0 !important;
    text-align: center !important;
  }

  .page-cia-3 .brasao-box .forca,
  .page-cia-5 .brasao-box .forca {
    margin-top: 0 !important;
  }

  .page-cia .companhia-content {
    width: 100% !important;
    min-width: 0 !important;
    gap: 12px !important;
  }

  .page-cia .bloco-info {
    padding: 16px !important;
    border-radius: 10px !important;
  }

  .page-cia .bloco-info h3 {
    font-size: 14px !important;
    line-height: 1.25 !important;
    margin-bottom: 8px !important;
  }

  .page-cia .bloco-info p,
  .page-cia .bloco-info .brado,
  .page-cia .bloco-info strong {
    font-size: 13px !important;
    line-height: 1.5 !important;
    letter-spacing: 0 !important;
  }

  .page-cia .red-divider {
    height: 3px !important;
    margin: 0 !important;
  }
}

@media (max-width: 600px) and (orientation: portrait) {
  .page-cia-3 .brasao-box,
  .page-cia-5 .brasao-box {
    gap: 18px !important;
  }

  .page-cia-3 .brasao-box > .forca-break,
  .page-cia-5 .brasao-box > .forca-break {
    display: block !important;
    height: 18px !important;
  }

  .page-cia-3 .brasao-box .forca,
  .page-cia-5 .brasao-box .forca {
    padding-top: 0 !important;
  }
}

/* Nav: um pouco maior apenas no mobile em retrato. */
@media (max-width: 980px) and (orientation: portrait) {
  .nav {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
  }

  .nav .container {
    min-height: 44px !important;
  }

  .menu-toggle {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    padding: 0 !important;
    font-size: 23px !important;
  }

  .nav-mobile-utilities .portal-aluno-mobile,
  .page-index .nav-mobile-utilities .social-btn,
  .page-index .nav-mobile-utilities .youtube-botao {
    min-height: 36px !important;
    height: 36px !important;
  }
}

/* Header institucional: aumenta um pouco a altura da faixa com logos e texto. */
.header {
  padding-top: 34px !important;
  padding-bottom: 34px !important;
}

.header .container {
  min-height: 178px !important;
}

@media (max-width: 980px) {
  .header {
    padding-top: calc(16px + var(--mobile-safe-top, 0px)) !important;
    padding-bottom: 16px !important;
  }

  .header .container {
    min-height: 86px !important;
  }
}

@media (max-width: 980px) and (orientation: portrait) {
  .header {
    padding-top: calc(13px + var(--mobile-safe-top, 0px)) !important;
    padding-bottom: 13px !important;
  }

  .header .container {
    min-height: 80px !important;
  }
}

/* Header: aumenta um pouco a logo esquerda em todas as versoes. */
.header .logo-essd img {
  height: 174px !important;
}

@media (max-width: 980px) {
  .header .logo-essd img {
    height: clamp(62px, 11vw, 118px) !important;
  }
}

@media (max-width: 980px) and (orientation: portrait) {
  .header .logo-essd img {
    height: clamp(64px, 13vw, 112px) !important;
  }
}

/* Historico completo: impede que o texto justificado da pagina afete o header. */
.page-historico-completo .header-text,
.page-historico-completo .header-text p,
.page-historico-completo .header-text h1 {
  text-align: center !important;
}

/* Footer: centraliza as linhas de creditos tambem no desktop. */
@media (min-width: 981px) {
  .footer-bottom {
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .footer-bottom .creditos,
  .footer-bottom .quote {
    display: block !important;
    align-self: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    white-space: nowrap !important;
  }
}

/* Footer: creditos menores apenas no mobile em paisagem. */
@media (hover: none) and (pointer: coarse) and (orientation: landscape) {
  .footer,
  .footer .container,
  .footer-bottom {
    overflow: visible !important;
  }

  .footer-bottom,
  .footer-bottom .creditos,
  .footer-bottom .creditos span,
  .footer-bottom .quote {
    font-size: clamp(4.5px, 1.25vw, 7px) !important;
    line-height: 1.15 !important;
  }

  .footer-bottom .creditos,
  .footer-bottom .quote {
    display: block !important;
    position: static !important;
    left: auto !important;
    align-self: center !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    width: max-content !important;
    max-width: none !important;
    transform: scaleX(0.69) !important;
    transform-origin: center top !important;
  }

  .footer-bottom {
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 2px !important;
    margin-top: 2px !important;
    padding-top: 2px !important;
    padding-bottom: 3px !important;
  }
}

/* Footer: creditos em uma linha tambem no mobile em retrato. */
@media (hover: none) and (pointer: coarse) and (orientation: portrait) {
  .footer,
  .footer .container,
  .footer-bottom {
    overflow: visible !important;
  }

  .footer-bottom,
  .footer-bottom .creditos,
  .footer-bottom .creditos span,
  .footer-bottom .quote {
    font-size: clamp(4.5px, 1.25vw, 7px) !important;
    line-height: 1.15 !important;
  }

  .footer-bottom .creditos,
  .footer-bottom .quote {
    display: block !important;
    position: static !important;
    left: auto !important;
    align-self: center !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    width: max-content !important;
    max-width: none !important;
    transform: scaleX(0.69) !important;
    transform-origin: center top !important;
  }

  .footer-bottom {
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 2px !important;
    margin-top: 2px !important;
    padding-top: 2px !important;
    padding-bottom: 3px !important;
  }
}

/* Policial do Mes admin: alternancia dos paineis apenas no mobile. */
.policial-mes-admin-panel-head {
  display: block;
}

.policial-mes-mobile-switch {
  display: none !important;
}

/* Agenda admin: data e acoes na mesma linha; titulo fica abaixo. */
.agenda-admin-item-top {
  align-items: center !important;
}

.agenda-admin-item-top .agenda-admin-date {
  margin-bottom: 0 !important;
}

.agenda-admin-item-actions {
  flex-shrink: 0 !important;
  flex-wrap: nowrap !important;
}

.agenda-admin-item-actions .agenda-admin-mini {
  padding: 6px 9px !important;
  font-size: 9px !important;
  line-height: 1.1 !important;
}

@media (min-width: 901px) {
  .policial-mes-admin-page .agenda-admin-top h1 {
    font-size: 26px !important;
  }

  .policial-mes-admin-page .agenda-admin-top p,
  .policial-mes-admin-page .agenda-admin-panel p {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }

  .policial-mes-admin-page .agenda-admin-panel h2 {
    font-size: 18px !important;
  }

  .policial-mes-admin-page .agenda-admin-field label {
    font-size: 11px !important;
  }

  .policial-mes-admin-page .agenda-admin-input,
  .policial-mes-admin-page .agenda-admin-textarea {
    font-size: 14px !important;
  }

  .policial-mes-admin-page .agenda-admin-btn,
  .policial-mes-admin-page .agenda-admin-link {
    font-size: 12px !important;
  }

  .policial-mes-admin-page .agenda-admin-message {
    font-size: 12px !important;
  }
}

@media (max-width: 900px) {
  .agenda-admin-page {
    padding: 16px 10px 24px !important;
  }

  .agenda-admin-container {
    max-width: 100% !important;
  }

  .agenda-admin-top {
    gap: 10px !important;
    margin-bottom: 14px !important;
  }

  .agenda-admin-top h1 {
    font-size: 21px !important;
    line-height: 1.18 !important;
    margin-bottom: 4px !important;
  }

  .agenda-admin-top p {
    font-size: 12px !important;
    line-height: 1.35 !important;
  }

  .agenda-admin-actions {
    gap: 7px !important;
  }

  .agenda-admin-btn,
  .agenda-admin-link {
    min-height: 34px !important;
    padding: 8px 11px !important;
    font-size: 10px !important;
    letter-spacing: 0.5px !important;
  }

  .agenda-admin-grid {
    gap: 12px !important;
  }

  .agenda-admin-panel {
    border-radius: 14px !important;
    padding: 15px !important;
  }

  .agenda-admin-panel h2 {
    font-size: 16px !important;
    line-height: 1.2 !important;
    margin-bottom: 5px !important;
  }

  .agenda-admin-panel p {
    font-size: 12px !important;
    line-height: 1.4 !important;
    margin-bottom: 12px !important;
  }

  .agenda-admin-form {
    gap: 11px !important;
  }

  .agenda-admin-field label {
    font-size: 10px !important;
    margin-bottom: 4px !important;
    letter-spacing: 0.5px !important;
  }

  .agenda-admin-input,
  .agenda-admin-textarea,
  .agenda-date-display,
  .agenda-date-display-text {
    font-size: 12px !important;
  }

  .agenda-admin-input,
  .agenda-admin-textarea,
  .agenda-date-display {
    border-radius: 10px !important;
    padding: 10px 12px !important;
  }

  .agenda-admin-textarea {
    min-height: 92px !important;
  }

  .agenda-admin-photo-preview {
    max-width: 150px !important;
    height: 190px !important;
    border-radius: 12px !important;
    margin-bottom: 10px !important;
  }

  .agenda-admin-photo-actions {
    gap: 7px !important;
    margin-bottom: 5px !important;
  }

  .agenda-admin-message {
    min-height: 16px !important;
    font-size: 11px !important;
  }

  .agenda-admin-item {
    border-radius: 13px !important;
    padding: 12px !important;
  }

  .agenda-admin-item-top {
    gap: 10px !important;
    margin-bottom: 7px !important;
  }

  .agenda-admin-date {
    font-size: 10px !important;
    margin-bottom: 4px !important;
  }

  .agenda-admin-title {
    font-size: 14px !important;
    margin-bottom: 5px !important;
  }

  .agenda-admin-text {
    font-size: 12px !important;
    line-height: 1.4 !important;
  }

  .agenda-admin-mini {
    padding: 7px 10px !important;
    font-size: 10px !important;
  }

  .agenda-date-popover {
    width: min(280px, 100%) !important;
    border-radius: 14px !important;
    padding: 12px !important;
  }

  .agenda-date-nav {
    width: 30px !important;
    height: 30px !important;
  }

  .agenda-date-popover-month {
    font-size: 12px !important;
  }

  .agenda-date-day {
    font-size: 11px !important;
    border-radius: 8px !important;
  }

  .policial-mes-admin-grid {
    grid-template-columns: 1fr !important;
  }

  .policial-mes-admin-panel-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
    margin-bottom: 8px !important;
  }

  .policial-mes-admin-panel-head h2 {
    margin-bottom: 0 !important;
  }

  .policial-mes-mobile-switch {
    display: inline-flex !important;
    min-height: 36px !important;
    padding: 9px 12px !important;
    font-size: 10px !important;
    white-space: nowrap !important;
    flex: 0 0 auto !important;
  }

  .policial-mes-admin-grid.is-editing-home .policial-mes-month-panel,
  .policial-mes-admin-grid.is-editing-month .policial-mes-home-panel {
    display: none !important;
  }
}

/* Agenda mobile: garante que dias de prova mantenham o selo discreto
   em retrato e paisagem, mesmo com overrides tardios da home. */
@media (max-width: 980px), (hover: none) and (pointer: coarse) {
  .agenda-day.has-proof:not(.has-event),
  .page-index .agenda-day.has-proof:not(.has-event) {
    background: #f3f4f6 !important;
    color: #222 !important;
    cursor: pointer !important;
    box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.08) !important;
  }

  .agenda-day.has-proof:not(.has-event)::before,
  .page-index .agenda-day.has-proof:not(.has-event)::before {
    content: "PROVA" !important;
    top: 4px !important;
    left: 4px !important;
    font-size: 6px !important;
    color: #111 !important;
  }

  .agenda-day.has-proof:not(.has-event)::after,
  .page-index .agenda-day.has-proof:not(.has-event)::after {
    content: none !important;
  }

  .agenda-day.has-proof:not(.has-event):hover,
  .agenda-day.has-proof:not(.has-event).is-active,
  .page-index .agenda-day.has-proof:not(.has-event):hover,
  .page-index .agenda-day.has-proof:not(.has-event).is-active {
    background: #e5e7eb !important;
    color: #111 !important;
  }

  .agenda-day.has-proof:not(.has-event):hover::before,
  .agenda-day.has-proof:not(.has-event).is-active::before,
  .page-index .agenda-day.has-proof:not(.has-event):hover::before,
  .page-index .agenda-day.has-proof:not(.has-event).is-active::before {
    color: #111 !important;
  }

  .agenda-day.has-event.has-proof,
  .page-index .agenda-day.has-event.has-proof {
    background: #fff4f4 !important;
    color: #c01818 !important;
    box-shadow: inset 0 0 0 1px rgba(224, 32, 32, 0.14) !important;
  }

  .agenda-day.has-event.has-proof:hover,
  .agenda-day.has-event.has-proof.is-active,
  .page-index .agenda-day.has-event.has-proof:hover,
  .page-index .agenda-day.has-event.has-proof.is-active {
    background: linear-gradient(180deg, #f25252 0%, #c81919 100%) !important;
    color: #fff !important;
  }

  .agenda-day.has-event.has-proof::before,
  .page-index .agenda-day.has-event.has-proof::before {
    color: #111 !important;
  }
}

@media (max-width: 600px), (hover: none) and (pointer: coarse) and (orientation: portrait) {
  .agenda-day.has-proof::before {
    top: 3px !important;
    left: 3px !important;
    font-size: 5px !important;
    letter-spacing: 0.1px !important;
  }
}

@media (max-width: 980px) and (orientation: landscape),
       (hover: none) and (pointer: coarse) and (max-height: 500px) and (orientation: landscape) {
  .page-index .agenda-day.has-proof::before {
    top: 3px !important;
    left: 3px !important;
    font-size: 5px !important;
    letter-spacing: 0.1px !important;
  }
}

@media (max-width: 980px) and (orientation: landscape),
       (hover: none) and (pointer: coarse) and (max-height: 500px) and (orientation: landscape) {
  .footer-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(28px, 0.72fr) minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 12px !important;
  }

  .footer-spacer {
    display: block !important;
    width: 100% !important;
    min-width: 28px !important;
  }

  .footer-logo {
    justify-content: center !important;
    width: 100% !important;
  }

  .footer-logo-circle img {
    max-width: 118px !important;
  }

  .footer-contact-column {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    justify-self: end !important;
    text-align: left !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  .footer-contact-title {
    text-align: left !important;
    white-space: nowrap !important;
  }

  .footer-contact-item {
    display: grid !important;
    grid-template-columns: 16px minmax(0, 1fr) !important;
    column-gap: 6px !important;
    align-items: start !important;
    justify-content: flex-start !important;
    text-align: left !important;
    white-space: nowrap !important;
  }

  .footer-contact-item > div,
  .footer-contact-item .fc-label,
  .footer-contact-item .fc-text,
  .footer .footer-map-button {
    white-space: nowrap !important;
    text-align: left !important;
  }

  .footer-contact-item:last-child .fc-text,
  .footer-contact-item:last-child .footer-map-button {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  .footer-contact-item .fc-label,
  .footer-contact-item .fc-text,
  .footer .footer-map-button {
    font-size: 9px !important;
    line-height: 1.2 !important;
  }
}

/* Home: consolidado para 600px a 730px, incluindo a variacao landscape. */
@media (min-width: 600px) and (max-width: 730px) {
  .page-index .hero {
    height: clamp(180px, 30vw, 240px) !important;
    aspect-ratio: auto !important;
  }

  .page-index .agenda-section {
    padding: 24px 0 !important;
  }

  .page-index .agenda-grid {
    display: grid !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 10px !important;
    grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) !important;
    align-items: start !important;
  }

  .page-index .agenda-calendar-card {
    width: 100% !important;
    padding: 10px !important;
  }

  .page-index .agenda-popup-card {
    width: 100% !important;
    padding: 14px !important;
    align-self: stretch !important;
  }

  .page-index .agenda-month {
    font-size: 14px !important;
  }

  .page-index .agenda-day,
  .page-index .agenda-day-empty {
    min-height: 32px !important;
  }

  .page-index .agenda-weekdays span {
    font-size: 9px !important;
  }

  .page-index .agenda-popup-date {
    font-size: 16px !important;
  }

  .page-index .agenda-popup-text {
    font-size: 12px !important;
  }

  footer.footer .container > .footer-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    align-items: center !important;
    gap: 0 !important;
  }

  footer.footer .container > .footer-grid > * {
    min-width: 0 !important;
  }

  footer.footer .container > .footer-grid > .footer-logo {
    grid-column: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    justify-self: stretch !important;
    width: 100% !important;
  }

  footer.footer .container > .footer-grid > .footer-spacer {
    grid-column: 2 !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 1px !important;
    visibility: hidden !important;
  }

  footer.footer .container > .footer-grid > .footer-contact-column {
    grid-column: 3 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    justify-self: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    text-align: left !important;
  }

  footer.footer .container > .footer-grid > .footer-logo .footer-logo-circle img {
    display: block !important;
    max-width: 112px !important;
    margin: 0 auto !important;
  }

  footer.footer .footer-contact-title {
    width: 100% !important;
    text-align: left !important;
    font-size: 14px !important;
    margin-bottom: 8px !important;
  }

  footer.footer .footer-contact-item {
    display: grid !important;
    grid-template-columns: 18px minmax(0, 1fr) !important;
    column-gap: 6px !important;
    align-items: start !important;
    justify-content: flex-start !important;
    width: 100% !important;
    margin-bottom: 6px !important;
    text-align: left !important;
  }

  footer.footer .footer-contact-item .fc-icon {
    width: 18px !important;
    height: 18px !important;
    object-fit: contain !important;
  }

  footer.footer .footer-contact-item .fc-label,
  footer.footer .footer-contact-item .fc-text,
  footer.footer .footer-map-button {
    font-size: 10px !important;
    line-height: 1.25 !important;
    text-align: left !important;
  }

  footer.footer .footer-contact-item:last-child .fc-text,
  footer.footer .footer-contact-item:last-child .footer-map-button {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }
}

@media (min-width: 731px) and (max-width: 980px) {
  .page-index .hero {
    height: clamp(220px, 30vw, 294px) !important;
    aspect-ratio: auto !important;
  }
}

@media (min-width: 731px) and (max-width: 768px) {
  .page-index .agenda-section {
    padding: 18px 0 !important;
  }

  .page-index .agenda-grid {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 8px !important;
    grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) !important;
  }

  .page-index .agenda-calendar-card {
    padding: 8px !important;
  }

  .page-index .agenda-popup-card {
    align-self: stretch !important;
    padding: 10px !important;
  }

  .page-index .agenda-month {
    font-size: 12px !important;
  }

  .page-index .agenda-day,
  .page-index .agenda-day-empty {
    min-height: 28px !important;
  }

  .page-index .agenda-weekdays span {
    font-size: 8px !important;
  }

  .page-index .agenda-popup-date {
    font-size: 14px !important;
  }

  .page-index .agenda-popup-text {
    font-size: 11px !important;
  }

  footer.footer .container > .footer-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    align-items: center !important;
    gap: 0 !important;
  }

  footer.footer .container > .footer-grid > * {
    min-width: 0 !important;
  }

  footer.footer .container > .footer-grid > .footer-logo {
    grid-column: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    justify-self: stretch !important;
    width: 100% !important;
  }

  footer.footer .container > .footer-grid > .footer-spacer {
    grid-column: 2 !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 1px !important;
    visibility: hidden !important;
  }

  footer.footer .container > .footer-grid > .footer-contact-column {
    grid-column: 3 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    justify-self: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    text-align: left !important;
  }

  footer.footer .container > .footer-grid > .footer-logo .footer-logo-circle img {
    display: block !important;
    max-width: 112px !important;
    margin: 0 auto !important;
  }

  footer.footer .footer-contact-title {
    width: 100% !important;
    text-align: left !important;
    font-size: 14px !important;
    margin-bottom: 8px !important;
  }

  footer.footer .footer-contact-item {
    display: grid !important;
    grid-template-columns: 18px minmax(0, 1fr) !important;
    column-gap: 6px !important;
    align-items: start !important;
    justify-content: flex-start !important;
    width: 100% !important;
    margin-bottom: 6px !important;
    text-align: left !important;
  }

  footer.footer .footer-contact-item .fc-icon {
    width: 18px !important;
    height: 18px !important;
    object-fit: contain !important;
  }

  footer.footer .footer-contact-item .fc-label,
  footer.footer .footer-contact-item .fc-text,
  footer.footer .footer-map-button {
    font-size: 10px !important;
    line-height: 1.25 !important;
    text-align: left !important;
  }
}

@media (min-width: 769px) and (max-width: 900px) {
  .page-index .agenda-section {
    padding: 18px 0 !important;
  }

  .page-index .agenda-grid {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 8px !important;
    grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) !important;
  }

  .page-index .agenda-calendar-card {
    padding: 8px !important;
  }

  .page-index .agenda-popup-card {
    align-self: stretch !important;
    padding: 10px !important;
  }

  .page-index .agenda-month {
    font-size: 12px !important;
  }

  .page-index .agenda-day,
  .page-index .agenda-day-empty {
    min-height: 28px !important;
  }

  .page-index .agenda-weekdays span {
    font-size: 8px !important;
  }

  .page-index .agenda-popup-date {
    font-size: 14px !important;
  }

  .page-index .agenda-popup-text {
    font-size: 11px !important;
  }

  footer.footer .container > .footer-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    align-items: center !important;
    gap: 0 !important;
  }

  footer.footer .container > .footer-grid > * {
    min-width: 0 !important;
  }

  footer.footer .container > .footer-grid > .footer-logo {
    grid-column: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    justify-self: stretch !important;
    width: 100% !important;
  }

  footer.footer .container > .footer-grid > .footer-spacer {
    grid-column: 2 !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 1px !important;
    visibility: hidden !important;
  }

  footer.footer .container > .footer-grid > .footer-contact-column {
    grid-column: 3 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    justify-self: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    text-align: left !important;
  }

  footer.footer .container > .footer-grid > .footer-logo .footer-logo-circle img {
    display: block !important;
    max-width: 112px !important;
    margin: 0 auto !important;
  }

  footer.footer .footer-contact-title {
    width: 100% !important;
    text-align: left !important;
    font-size: 14px !important;
    margin-bottom: 8px !important;
  }

  footer.footer .footer-contact-item {
    display: grid !important;
    grid-template-columns: 18px minmax(0, 1fr) !important;
    column-gap: 6px !important;
    align-items: start !important;
    justify-content: flex-start !important;
    width: 100% !important;
    margin-bottom: 6px !important;
    text-align: left !important;
  }

  footer.footer .footer-contact-item .fc-icon {
    width: 18px !important;
    height: 18px !important;
    object-fit: contain !important;
  }

  footer.footer .footer-contact-item .fc-label,
  footer.footer .footer-contact-item .fc-text,
  footer.footer .footer-map-button {
    font-size: 10px !important;
    line-height: 1.25 !important;
    text-align: left !important;
  }
}

@media (min-width: 901px) and (max-width: 980px) {
  .page-index .agenda-section {
    padding: 18px 0 !important;
  }

  .page-index .agenda-grid {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 8px !important;
    grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) !important;
  }

  .page-index .agenda-calendar-card {
    padding: 8px !important;
  }

  .page-index .agenda-popup-card {
    align-self: stretch !important;
    padding: 10px !important;
  }

  .page-index .agenda-month {
    font-size: 12px !important;
  }

  .page-index .agenda-day,
  .page-index .agenda-day-empty {
    min-height: 28px !important;
  }

  .page-index .agenda-weekdays span {
    font-size: 8px !important;
  }

  .page-index .agenda-popup-date {
    font-size: 14px !important;
  }

  .page-index .agenda-popup-text {
    font-size: 11px !important;
  }

  footer.footer .container > .footer-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    align-items: center !important;
    gap: 0 !important;
  }

  footer.footer .container > .footer-grid > * {
    min-width: 0 !important;
  }

  footer.footer .container > .footer-grid > .footer-logo {
    grid-column: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    justify-self: stretch !important;
    width: 100% !important;
  }

  footer.footer .container > .footer-grid > .footer-spacer {
    grid-column: 2 !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 1px !important;
    visibility: hidden !important;
  }

  footer.footer .container > .footer-grid > .footer-contact-column {
    grid-column: 3 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    justify-self: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    text-align: left !important;
  }

  footer.footer .container > .footer-grid > .footer-logo .footer-logo-circle img {
    display: block !important;
    max-width: 112px !important;
    margin: 0 auto !important;
  }

  footer.footer .footer-contact-title {
    width: 100% !important;
    text-align: left !important;
    font-size: 14px !important;
    margin-bottom: 8px !important;
  }

  footer.footer .footer-contact-item {
    display: grid !important;
    grid-template-columns: 18px minmax(0, 1fr) !important;
    column-gap: 6px !important;
    align-items: start !important;
    justify-content: flex-start !important;
    width: 100% !important;
    margin-bottom: 6px !important;
    text-align: left !important;
  }

  footer.footer .footer-contact-item .fc-icon {
    width: 18px !important;
    height: 18px !important;
    object-fit: contain !important;
  }

  footer.footer .footer-contact-item .fc-label,
  footer.footer .footer-contact-item .fc-text,
  footer.footer .footer-map-button {
    font-size: 10px !important;
    line-height: 1.25 !important;
    text-align: left !important;
  }
}

@media (min-width: 981px) and (max-width: 1024px) and (orientation: portrait) {
  html,
  body {
    width: 100vw !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  .container {
    width: 100% !important;
    max-width: none !important;
  }

  .header,
  .nav,
  .hero,
  .diretor-section,
  .agenda-section,
  .downloads,
  .contato-cards,
  .footer {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
  }

  .menu-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    padding: 0 !important;
    font-size: 23px !important;
  }

  .nav .container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    min-height: 44px !important;
  }

  .nav ul {
    flex-direction: column !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    width: min(calc(33.333vw + 45px), 365px) !important;
    max-width: calc(100vw - 24px) !important;
    background: transparent !important;
    max-height: 0 !important;
    overflow: hidden !important;
    gap: 0 !important;
    padding: 0 !important;
    z-index: 999 !important;
  }

  .nav ul.open,
  .nav ul.active {
    max-height: 500px !important;
    padding: 10px 0 !important;
    overflow: visible !important;
  }

  .nav li,
  .dropdown {
    width: 100% !important;
    overflow: visible !important;
  }

  .nav li {
    padding: 0 8px 4px !important;
  }

  .nav li a,
  .nav .submenu li a {
    display: flex !important;
    justify-content: flex-start !important;
    min-height: 39px !important;
    padding-top: 7.5px !important;
    padding-bottom: 7.5px !important;
    font-size: 11px !important;
    text-align: left !important;
    line-height: 1.25 !important;
  }

  .nav .submenu {
    position: absolute !important;
    left: 100% !important;
    top: 0 !important;
    width: min(calc(33.333vw + 40px), 360px) !important;
    max-width: calc(100vw - 24px) !important;
    max-height: 100vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    background: transparent !important;
    margin: 0 !important;
    padding: 8px 0 !important;
    box-shadow: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: none !important;
    z-index: 1000 !important;
    pointer-events: none !important;
  }

  .nav .submenu.open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .nav #navMenu .nav-portal-item {
    display: none !important;
  }

  .nav-mobile-utilities {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    flex-wrap: nowrap !important;
  }

  .page-index .nav-mobile-utilities .social-float {
    position: static !important;
    inset: auto !important;
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
  }

  .page-index .nav-mobile-utilities .social-btn,
  .page-index .nav-mobile-utilities .youtube-botao,
  .nav-mobile-utilities .portal-aluno-mobile {
    min-height: 36px !important;
    height: 36px !important;
  }

  .page-index {
    --index-card-photo-w: clamp(140px, 26vw, 220px);
    --index-card-photo-h: calc(var(--index-card-photo-w) * 1.25);
  }

  .page-index .diretor-section {
    padding: 34px 0 !important;
  }

  .page-index .hero {
    height: clamp(220px, 30vw, 294px) !important;
    aspect-ratio: auto !important;
  }

  .page-index .diretor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    justify-items: center !important;
    gap: clamp(12px, 3vw, 18px) !important;
    column-gap: clamp(12px, 3vw, 18px) !important;
    align-items: start !important;
  }

  .page-index .diretor-card {
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
    gap: 10px !important;
  }

  .page-index .diretor-card img,
  .page-index #policial img,
  .page-index #policialMesFoto {
    display: block !important;
    width: var(--index-card-photo-w) !important;
    min-width: var(--index-card-photo-w) !important;
    max-width: var(--index-card-photo-w) !important;
    height: var(--index-card-photo-h) !important;
    object-fit: cover !important;
    object-position: center center !important;
    border-radius: 18px !important;
    margin-inline: auto !important;
  }

  .page-index .agenda-section {
    padding: 18px 0 !important;
  }

  .page-index .agenda-grid {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 8px !important;
    grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) !important;
  }

  .page-index .agenda-calendar-card {
    padding: 8px !important;
  }

  .page-index .agenda-popup-card {
    align-self: stretch !important;
    padding: 10px !important;
  }

  .page-index .agenda-month {
    font-size: 12px !important;
  }

  .page-index .agenda-day,
  .page-index .agenda-day-empty {
    min-height: 28px !important;
  }

  .page-index .agenda-weekdays span {
    font-size: 8px !important;
  }

  .page-index .agenda-popup-date {
    font-size: 14px !important;
  }

  .page-index .agenda-popup-text {
    font-size: 11px !important;
  }

  .page-cia .companhia-body {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    padding: 18px 16px !important;
    align-items: start !important;
  }

  .page-cia .companhia-aside {
    width: 100% !important;
    max-width: none !important;
    margin: 0 auto !important;
    justify-content: center !important;
  }

  .page-cia .brasao-box {
    width: 100% !important;
    max-width: min(100%, 340px) !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 auto !important;
    gap: 12px !important;
  }

  .page-cia .brasao-box img {
    width: 100% !important;
    max-width: min(100%, 300px) !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    margin: 0 auto !important;
  }

  footer.footer .container > .footer-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    align-items: center !important;
    gap: 0 !important;
  }

  footer.footer .container > .footer-grid > * {
    min-width: 0 !important;
  }

  footer.footer .container > .footer-grid > .footer-logo {
    grid-column: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
  }

  footer.footer .container > .footer-grid > .footer-spacer {
    grid-column: 2 !important;
    display: block !important;
    width: 100% !important;
    min-height: 1px !important;
    visibility: hidden !important;
  }

  footer.footer .container > .footer-grid > .footer-contact-column {
    grid-column: 3 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 0 !important;
    text-align: left !important;
  }

  footer.footer .container > .footer-grid > .footer-logo .footer-logo-circle img {
    display: block !important;
    max-width: 112px !important;
    margin: 0 auto !important;
  }

  footer.footer .footer-contact-title {
    width: 100% !important;
    text-align: left !important;
    font-size: 14px !important;
    margin-bottom: 8px !important;
  }

  footer.footer .footer-contact-item {
    display: grid !important;
    grid-template-columns: 18px minmax(0, 1fr) !important;
    column-gap: 6px !important;
    align-items: start !important;
    justify-content: flex-start !important;
    width: 100% !important;
    margin-bottom: 6px !important;
    text-align: left !important;
  }

  footer.footer .footer-contact-item .fc-icon {
    width: 18px !important;
    height: 18px !important;
    object-fit: contain !important;
  }

  footer.footer .footer-contact-item .fc-label,
  footer.footer .footer-contact-item .fc-text,
  footer.footer .footer-map-button {
    font-size: 10px !important;
    line-height: 1.25 !important;
    text-align: left !important;
  }
}

@media (max-width: 599px) {
  .page-index .hero {
    height: clamp(150px, 30vw, 180px) !important;
    aspect-ratio: auto !important;
  }
}

@media (min-width: 600px) and (max-width: 768px) and (orientation: landscape),
       (hover: none) and (pointer: coarse) and (orientation: landscape) and (min-width: 600px) and (max-width: 768px) {
  footer.footer .container > .footer-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    align-items: center !important;
    gap: 0 !important;
  }

  footer.footer .container > .footer-grid > .footer-logo {
    grid-column: 1 !important;
  }

  footer.footer .container > .footer-grid > .footer-spacer {
    grid-column: 2 !important;
    display: block !important;
    visibility: hidden !important;
  }

  footer.footer .container > .footer-grid > .footer-contact-column {
    grid-column: 3 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 0 !important;
    text-align: left !important;
  }
}

/* Comandante: leitura mais compacta e limpa em telas pequenas. */
.page-comandante .conteudo-comandante {
  background: #f6f7f8;
}

.page-comandante {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page-comandante .hero-info,
.page-comandante .conteudo-comandante {
  font-family: inherit;
}

.page-comandante .bloco-institucional,
.page-comandante .timeline-item,
.page-comandante .comandamento-card,
.page-comandante .formacao-item {
  box-shadow: none;
  border-radius: 8px;
}

.page-comandante .bloco-institucional,
.page-comandante .timeline-item,
.page-comandante .comandamento-card {
  border-left-width: 3px;
}

.page-comandante .comandamento-card {
  border-top-width: 3px;
}

.page-comandante .formacao-academica {
  border-left: 0;
}

.page-comandante .hero-info p,
.page-comandante .bloco-institucional p,
.page-comandante .timeline-item .unidade,
.page-comandante .comandamento-card p,
.page-comandante .formacao-item p {
  text-align: justify;
}

@media (max-width: 600px) and (orientation: portrait) {
  .page-comandante .hero-comandante {
    padding: 30px 0 28px !important;
  }

  .page-comandante .hero-grid {
    gap: 16px !important;
  }

  .page-comandante .hero-foto img {
    width: min(68vw, 245px) !important;
    max-width: 245px !important;
    margin-inline: auto !important;
    display: block !important;
  }

  .page-comandante .hero-info {
    max-width: 330px !important;
    margin: 0 auto !important;
    text-align: center !important;
  }

  .page-comandante .hero-info .cargo-topo {
    font-size: 10px !important;
    letter-spacing: 1.1px !important;
    margin-bottom: 5px !important;
  }

  .page-comandante .hero-info h1 {
    font-size: clamp(18px, 5.5vw, 23px) !important;
    line-height: 1.18 !important;
    letter-spacing: 0.7px !important;
    margin-bottom: 6px !important;
  }

  .page-comandante .hero-info .subtitulo {
    font-size: 12px !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 10px !important;
  }

  .page-comandante .hero-info p {
    font-size: 12px !important;
    line-height: 1.55 !important;
    margin-bottom: 6px !important;
    text-align: justify !important;
  }

  .page-comandante .conteudo-comandante {
    padding: 28px 0 46px !important;
  }

  .page-comandante .conteudo-comandante .container {
    padding-inline: 16px !important;
  }

  .page-comandante .section-title {
    font-size: 16px !important;
    line-height: 1.25 !important;
    letter-spacing: 0.7px !important;
    margin-bottom: 6px !important;
  }

  .page-comandante .section-title[style] {
    margin-top: 30px !important;
  }

  .page-comandante .section-title-bar {
    width: 34px !important;
    height: 3px !important;
    margin-bottom: 14px !important;
  }

  .page-comandante .bloco-institucional {
    padding: 16px 15px !important;
    margin-bottom: 18px !important;
  }

  .page-comandante .bloco-institucional p,
  .page-comandante .timeline-item .unidade,
  .page-comandante .comandamento-card p,
  .page-comandante .formacao-item p {
    font-size: 12px !important;
    line-height: 1.6 !important;
    text-align: justify !important;
  }

  .page-comandante .timeline {
    gap: 10px !important;
  }

  .page-comandante .timeline-item,
  .page-comandante .comandamento-card,
  .page-comandante .formacao-item {
    padding: 14px 15px !important;
  }

  .page-comandante .formacao-academica {
    background: transparent !important;
    border-left: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  .page-comandante .formacao-lista {
    gap: 10px !important;
  }

  .page-comandante .formacao-item {
    border-bottom: 0 !important;
    border: 1px solid #eceef1 !important;
    border-left: 4px solid #e02020 !important;
    border-radius: 8px !important;
    background: #fff !important;
  }

  .page-comandante .timeline-item .ano,
  .page-comandante .comandamento-status,
  .page-comandante .formacao-nivel {
    font-size: 10px !important;
    line-height: 1.25 !important;
    letter-spacing: 0.6px !important;
    margin-bottom: 5px !important;
  }

  .page-comandante .timeline-item .cargo,
  .page-comandante .comandamento-card h3,
  .page-comandante .formacao-item h3 {
    font-size: 13px !important;
    line-height: 1.35 !important;
    margin-bottom: 4px !important;
  }

  .page-comandante .comandamentos-grid {
    gap: 10px !important;
  }
}

@media (min-width: 601px) and (max-width: 980px) and (orientation: portrait) {
  .page-comandante .hero-comandante {
    padding: 44px 0 !important;
  }

  .page-comandante .hero-info {
    max-width: 560px !important;
    margin: 0 auto !important;
    text-align: center !important;
  }

  .page-comandante .hero-info h1 {
    font-size: clamp(26px, 5vw, 34px) !important;
  }

  .page-comandante .hero-info p {
    font-size: 14px !important;
    line-height: 1.65 !important;
    text-align: justify !important;
  }
}

@media (max-width: 980px) and (orientation: landscape) {
  .page-comandante .hero-comandante {
    padding: 18px 0 !important;
  }

  .page-comandante .hero-comandante .container,
  .page-comandante .conteudo-comandante .container {
    padding-inline: 18px !important;
  }

  .page-comandante .hero-grid {
    grid-template-columns: minmax(128px, 24vw) minmax(0, 1fr) !important;
    gap: 18px !important;
    align-items: center !important;
    text-align: left !important;
  }

  .page-comandante .hero-foto img {
    width: min(24vw, 165px) !important;
    max-width: 165px !important;
    border-radius: 8px !important;
  }

  .page-comandante .hero-info {
    max-width: none !important;
    margin: 0 !important;
    text-align: left !important;
  }

  .page-comandante .hero-info .cargo-topo {
    font-size: 9px !important;
    letter-spacing: 1px !important;
    margin-bottom: 4px !important;
  }

  .page-comandante .hero-info h1 {
    font-size: clamp(16px, 3.6vw, 22px) !important;
    line-height: 1.16 !important;
    letter-spacing: 0.7px !important;
    margin-bottom: 4px !important;
  }

  .page-comandante .hero-info .subtitulo {
    font-size: 11px !important;
    line-height: 1.25 !important;
    margin-bottom: 7px !important;
  }

  .page-comandante .hero-info p {
    font-size: 11px !important;
    line-height: 1.45 !important;
    margin-bottom: 4px !important;
    text-align: justify !important;
  }

  .page-comandante .conteudo-comandante {
    padding: 24px 0 38px !important;
  }

  .page-comandante .section-title {
    font-size: 15px !important;
    line-height: 1.2 !important;
    letter-spacing: 0.7px !important;
    margin-bottom: 5px !important;
  }

  .page-comandante .section-title[style] {
    margin-top: 26px !important;
  }

  .page-comandante .section-title-bar {
    width: 34px !important;
    height: 3px !important;
    margin-bottom: 12px !important;
  }

  .page-comandante .bloco-institucional {
    padding: 14px 16px !important;
    margin-bottom: 16px !important;
  }

  .page-comandante .bloco-institucional p,
  .page-comandante .timeline-item .unidade,
  .page-comandante .comandamento-card p,
  .page-comandante .formacao-item p {
    font-size: 11px !important;
    line-height: 1.5 !important;
    text-align: justify !important;
  }

  .page-comandante .timeline {
    gap: 9px !important;
  }

  .page-comandante .timeline-item {
    display: grid !important;
    grid-template-columns: minmax(95px, 20%) minmax(120px, 28%) minmax(0, 1fr) !important;
    gap: 10px !important;
    align-items: start !important;
    padding: 12px 14px !important;
  }

  .page-comandante .timeline-item .ano,
  .page-comandante .timeline-item .cargo,
  .page-comandante .timeline-item .unidade {
    margin-bottom: 0 !important;
  }

  .page-comandante .timeline-item .ano,
  .page-comandante .comandamento-status,
  .page-comandante .formacao-nivel {
    font-size: 9px !important;
    line-height: 1.25 !important;
    letter-spacing: 0.6px !important;
  }

  .page-comandante .timeline-item .cargo,
  .page-comandante .comandamento-card h3,
  .page-comandante .formacao-item h3 {
    font-size: 12px !important;
    line-height: 1.3 !important;
    margin-bottom: 4px !important;
  }

  .page-comandante .comandamentos-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .page-comandante .comandamento-card,
  .page-comandante .formacao-item {
    padding: 12px 14px !important;
  }

  .page-comandante .formacao-academica {
    background: transparent !important;
    border-left: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  .page-comandante .formacao-lista {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .page-comandante .formacao-item {
    border-bottom: 0 !important;
    border: 1px solid #eceef1 !important;
    border-left: 4px solid #e02020 !important;
  }
}

@media (max-width: 700px) and (orientation: landscape) {
  .page-comandante .hero-grid,
  .page-comandante .comandamentos-grid,
  .page-comandante .formacao-lista {
    grid-template-columns: 1fr !important;
  }

  .page-comandante .hero-grid {
    justify-items: center !important;
    text-align: center !important;
  }

  .page-comandante .hero-info {
    max-width: 540px !important;
    margin: 0 auto !important;
  }

  .page-comandante .timeline-item {
    grid-template-columns: minmax(90px, 24%) minmax(0, 1fr) !important;
  }

  .page-comandante .timeline-item .unidade {
    grid-column: 1 / -1 !important;
  }
}

/* Comandante: escala tipografica mobile padronizada. */
@media (max-width: 980px) {
  .page-comandante .hero-info p,
  .page-comandante .bloco-institucional p,
  .page-comandante .timeline-item .unidade,
  .page-comandante .comandamento-card p,
  .page-comandante .formacao-item p {
    font-size: 12px !important;
    line-height: 1.58 !important;
  }

  .page-comandante .hero-info .cargo-topo,
  .page-comandante .timeline-item .ano,
  .page-comandante .comandamento-status,
  .page-comandante .formacao-nivel {
    font-size: 10px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    letter-spacing: 0.45px !important;
  }

  .page-comandante .timeline-item .cargo,
  .page-comandante .comandamento-card h3,
  .page-comandante .formacao-item h3 {
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
  }

  .page-comandante .hero-info .subtitulo {
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
  }
}

@supports (-webkit-touch-callout: none) {
  .page-comandante .hero-info h1,
  .page-comandante .section-title {
    font-weight: 800 !important;
    letter-spacing: 0.45px !important;
  }

  .page-comandante .hero-info p,
  .page-comandante .bloco-institucional p,
  .page-comandante .timeline-item .unidade,
  .page-comandante .comandamento-card p,
  .page-comandante .formacao-item p {
    word-spacing: 0 !important;
    font-weight: 400 !important;
  }
}
