:root {
  /* Tema bandeira Marilena: azul #3996E4 + verde #009241 */
  --primary: #3996e4;
  --primary-dark: #2478c4;
  --primary-darker: #186399;
  --primary-light: #e3f2fd;
  --blue-950: #0a2f4f;
  --blue-900: #114a7a;
  --blue-800: #186399;
  --blue-700: #2478c4;
  --blue-500: #3996e4;
  --blue-300: #7bbaf0;
  --blue-100: #e3f2fd;
  /* Verde oficial da bandeira */
  --flag-green: #009241;
  --flag-green-dark: #007536;
  --flag-green-light: #e6f6ec;
  --teal: var(--flag-green);
  --teal-dark: var(--flag-green-dark);
  --green-600: #009241;
  --green-700: #007536;
  --ink: #3a3a3a;
  --muted: #6b6b6b;
  --line: #e2e2e2;
  --bg: #f5f5f5;
  --bg-soft: #fafafa;
  --white: #ffffff;
  --success: #009241;
  --success-bg: #e6f6ec;
  --danger: #b42318;
  --danger-bg: #fdeceb;
  --info: var(--primary);
  --info-bg: var(--primary-light);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(10, 47, 79, 0.08);
  --shadow-lg: 0 18px 48px rgba(10, 47, 79, 0.14);
  --font: "Source Sans 3", "Segoe UI", sans-serif;
  --display: "Manrope", "Segoe UI", sans-serif;
  --header-h: 78px;
  --topbar-h: 42px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-scale: 1;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: calc(16px * var(--font-scale));
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: #f2f7fc;
  line-height: 1.55;
  min-height: 100vh;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.is-contrast {
  --bg: #000;
  --bg-soft: #111;
  --white: #000;
  --ink: #fff;
  --muted: #d0d0d0;
  --line: #444;
  --blue-100: #111;
  background: #000;
  color: #fff;
}

body.is-contrast .site-header,
body.is-contrast .topbar,
body.is-contrast .brand-strip,
body.is-contrast .logo-card,
body.is-contrast .atalho,
body.is-contrast .news-item,
body.is-contrast .sec-item,
body.is-contrast .info-panel,
body.is-contrast .contact-form,
body.is-contrast .atalhos-band,
body.is-contrast .map-band,
body.is-contrast .hours-bar {
  background: #000 !important;
  border-color: #fff !important;
  color: #fff;
}
body.is-contrast .brand-cta-btn--fala {
  background: #fff !important;
  color: #000 !important;
}
body.is-contrast .brand-cta-btn--editais {
  background: #ffc107 !important;
  color: #000 !important;
}
body.is-contrast .map-copy,
body.is-contrast .map-copy-ico,
body.is-contrast .map-frame {
  background: #000 !important;
  color: #fff !important;
  border-color: #fff !important;
}
body.is-contrast .map-copy h3,
body.is-contrast .map-copy-list p,
body.is-contrast .map-copy-list strong,
body.is-contrast .map-copy-kicker {
  color: #fff !important;
}
body.is-contrast .site-footer {
  background: #000 !important;
}
body.is-contrast .footer-card {
  background: #000 !important;
  border: 1px solid #fff !important;
  color: #fff !important;
  box-shadow: none !important;
}
body.is-contrast .footer-brand-city,
body.is-contrast .footer-info-row,
body.is-contrast .footer-contact,
body.is-contrast .footer-contact a {
  color: #fff !important;
}
body.is-contrast .footer-ico {
  background: #111 !important;
  color: #fff !important;
  border: 1px solid #fff;
}

a { color: var(--blue-700); text-decoration: none; }
a:hover { color: var(--blue-900); }
img { max-width: 100%; height: auto; display: block; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue-900);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 200;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

.container {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
}

/* ===== Cabeçalho estilo portal municipal ===== */
.portal-head {
  position: relative;
  z-index: 120;
}

.topbar {
  background: #fff;
  color: #555;
  font-size: 0.88rem;
  border-bottom: 0;
  box-shadow: inset 0 -3px 0 0 var(--flag-green);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--topbar-h);
  flex-wrap: wrap;
  padding: 0.3rem 0;
}

.topbar-contacts {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.topbar-contacts a {
  color: #555;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.topbar-contacts a:hover { color: var(--flag-green-dark); }
.topbar-contacts svg { color: var(--flag-green); flex-shrink: 0; }

.topbar-tools {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.tool-btn {
  appearance: none;
  border: 1px solid #ddd;
  background: #fff;
  color: #444;
  border-radius: 6px;
  min-width: 32px;
  height: 30px;
  padding: 0 0.5rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font: inherit;
  font-weight: 700;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.tool-btn:hover,
.tool-link:hover {
  background: var(--flag-green-light);
  border-color: rgba(0, 146, 65, 0.35);
  color: var(--flag-green-dark);
}
.tool-link { text-decoration: none; font-weight: 600; font-size: 0.82rem; }
.tool-access { padding: 0 0.65rem; color: #555; }
.tool-access svg { color: var(--flag-green); }
.tool-libras {
  padding: 0 0.65rem;
  border-color: rgba(57, 150, 228, 0.45);
  background: linear-gradient(180deg, #fff 0%, #e8f4fc 100%);
  color: var(--primary-dark);
}
.tool-libras:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.tool-libras svg { flex-shrink: 0; }

/* Nav — azul primário + leve degradê verde da bandeira (sem borda sólida) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background:
    linear-gradient(90deg, var(--primary) 0%, var(--primary) 78%, var(--flag-green) 100%);
  box-shadow: 0 4px 14px rgba(36, 120, 196, 0.22);
  border-bottom: 0;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 22px rgba(10, 47, 79, 0.28);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 0.25rem;
  min-height: 44px;
  padding: 0.1rem 0;
  width: min(1280px, calc(100% - 1.5rem));
}

.nav-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #fff;
  border-radius: 8px;
  margin-right: auto;
  flex-shrink: 0;
}
.nav-home:hover { background: rgba(255,255,255,0.16); color: #fff; }

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  flex-wrap: nowrap;
  flex: 1;
  min-width: 0;
}

.site-nav > a,
.nav-drop-btn {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  padding: 0.6rem 0.55rem;
  border-radius: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.site-nav > a:hover,
.nav-drop-btn:hover,
.site-nav > a.is-active {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  box-shadow: inset 0 -3px 0 0 rgba(255, 255, 255, 0.95);
}
.site-nav > a.is-active {
  box-shadow: inset 0 -3px 0 0 #b8f0cf;
}

.nav-drop-btn .chev {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid rgba(255,255,255,0.9);
  display: inline-block;
}

.nav-dropdown { position: relative; }
.nav-drop-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0 0 10px 10px;
  box-shadow: var(--shadow);
  padding: 0.35rem;
  display: none;
  z-index: 20;
}
.nav-dropdown.is-open .nav-drop-menu,
.nav-dropdown:hover .nav-drop-menu { display: grid; }
.nav-drop-menu a {
  padding: 0.65rem 0.8rem;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.98rem;
}
.nav-drop-menu a:hover {
  background: var(--flag-green-light);
  color: var(--flag-green-dark);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* Faixa cinza: logo + saudação + CTAs + busca */
.brand-strip {
  position: relative;
  background:
    linear-gradient(180deg, rgba(0, 146, 65, 0.06) 0%, transparent 42%),
    #efefef;
  border-bottom: 1px solid #e4e4e4;
  padding: 0.85rem 0 0;
}

.brand-strip-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(140px, 1fr) auto minmax(180px, 280px) auto;
  align-items: center;
  gap: 0.85rem 1.1rem;
  min-height: 96px;
  padding: 0.55rem 0 0.85rem;
}

.logo-card {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  border-radius: 14px;
  padding: 0.7rem 1rem 0.7rem 0.75rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  border-left: 4px solid var(--flag-green);
  color: inherit;
  width: 100%;
  margin-top: 0;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.logo-card:hover {
  color: inherit;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 146, 65, 0.14);
}

.logo-card-img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-card-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.logo-card-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--flag-green-dark);
  line-height: 1.2;
}

.logo-card-city {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  color: var(--primary);
  line-height: 1;
  text-transform: uppercase;
}

.brand-greeting {
  display: grid;
  gap: 0.15rem;
  padding-left: 0.25rem;
}
.brand-greeting strong {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  color: #4a4a4a;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.brand-greeting span {
  color: #8a8a8a;
  font-size: 0.95rem;
  font-weight: 500;
}

.brand-search {
  display: flex;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.brand-search:focus-within {
  border-color: rgba(0, 146, 65, 0.45);
  box-shadow: 0 0 0 3px rgba(0, 146, 65, 0.12);
}
.brand-search input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 0.78rem 1.05rem;
  font: inherit;
  min-width: 0;
  color: #555;
}
.brand-search input:focus { outline: none; }
.brand-search button {
  border: 0;
  background: transparent;
  color: #777;
  width: 48px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.brand-search button:hover { color: var(--flag-green-dark); }

/* Botões grandes na faixa cinza — bem evidentes */
.brand-cta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}
.brand-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.15rem;
  border-radius: 12px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(10, 47, 79, 0.12);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.brand-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(10, 47, 79, 0.18);
}
.brand-cta-btn--fala {
  background: var(--primary);
  color: #fff;
}
.brand-cta-btn--fala:hover {
  background: var(--primary-dark);
  color: #fff;
}
.brand-cta-btn--editais {
  background: var(--flag-green);
  color: #fff;
}
.brand-cta-btn--editais:hover {
  background: var(--flag-green-dark);
  color: #fff;
}

.brand-socials {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.brand-social {
  display: grid;
  justify-items: center;
  gap: 0.15rem;
  color: #333;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
}
.brand-social:hover { color: var(--flag-green-dark); }
.brand-social svg { color: var(--flag-green); }
.brand-social:hover svg { color: var(--flag-green-dark); }

.hours-bar {
  border-top: 1px solid #e3e3e3;
  background: #efefef;
  padding: 0.55rem 0 0.7rem;
}
.hours-bar-inner {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding-left: 0;
  color: #555;
  font-size: 0.92rem;
}
.hours-bar-inner p { margin: 0; }
.hours-bar-inner strong { color: #333; }
.hours-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--flag-green);
  color: #fff;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.eyebrow {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  opacity: 0.85;
  margin: 0 0 0.85rem;
  color: var(--flag-green);
}

.lead {
  font-size: 1.15rem;
  max-width: 38rem;
  margin: 0 0 1.5rem;
  color: var(--muted);
}

/* Hero vídeo full-bleed (como Porto Rico) */
.hero-video {
  position: relative;
  width: 100%;
  height: min(58vh, 520px);
  overflow: visible;
  background: var(--blue-950);
  margin-bottom: 4.5rem;
  z-index: 2;
}

.hero-video-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--blue-950);
}

.hero-video video,
.hero-video-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* YouTube full-bleed (mesmo vídeo do site oficial) */
.hero-yt-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--blue-950);
}
.hero-yt {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100%;
  min-width: 177.77%;
  transform: translate(-50%, -50%) scale(1.12);
  border: 0;
  pointer-events: none;
}
/* Bloqueia hover/clique no iframe — evita overlay play/pause do YouTube */
.hero-yt-shield {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: transparent;
  cursor: default;
}
.hero-video-fallback {
  background:
    linear-gradient(120deg, var(--blue-950), var(--blue-700) 55%, var(--primary));
}

.hero-video-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(10, 47, 79, 0.45), rgba(10, 47, 79, 0.12) 45%, rgba(10, 47, 79, 0.35)),
    linear-gradient(to top, rgba(10, 47, 79, 0.55), transparent 40%);
  pointer-events: none;
}

.hero-video-ui {
  position: absolute;
  inset: auto 0 1.25rem 0;
  z-index: 2;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
  color: #fff;
}

/* Card de clima flutuante */
.hero-weather {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 42%);
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 0.95rem;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border: 1px solid rgba(57, 150, 228, 0.22);
  border-radius: 20px;
  padding: 0.95rem 1.55rem 0.95rem 1.1rem;
  box-shadow:
    0 4px 0 rgba(57, 150, 228, 0.08),
    0 18px 40px rgba(10, 47, 79, 0.18);
  min-width: 210px;
  backdrop-filter: blur(6px);
}
.hero-weather .weather-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 14px;
  background: linear-gradient(160deg, #fff7e0, #e8f4fc);
  box-shadow: inset 0 0 0 1px rgba(57, 150, 228, 0.12);
}
.hero-weather .weather-icon svg { display: block; }
.hero-weather .weather-meta {
  display: grid;
  gap: 0.08rem;
  line-height: 1.1;
  min-width: 0;
}
.hero-weather .weather-place {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0;
}
.hero-weather .weather-meta strong {
  font-family: var(--display);
  font-size: 1.95rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--blue-950);
}
.hero-weather .weather-meta > span {
  font-size: 0.9rem;
  font-weight: 500;
  color: #6b7c8c;
  text-transform: lowercase;
}
.hero-weather.is-error .weather-meta strong {
  font-size: 1.15rem;
  color: #8a8a8a;
}

.hero-place {
  display: grid;
  gap: 0.15rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.hero-place strong {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.hero-place span {
  opacity: 0.9;
  font-size: 0.95rem;
}

/* Faixa de ícones / acessos rápidos */
.atalhos-band {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 2.75rem 0 2rem;
  box-shadow: 0 10px 24px rgba(10, 47, 79, 0.04);
}

.atalhos-grid--portal {
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
}

.atalho--portal {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 0;
  padding: 0.95rem 0.55rem;
  box-shadow: none;
  border-color: transparent;
  background: transparent;
  gap: 0.55rem;
}
.atalho-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  color: inherit;
  width: 100%;
}
.atalho-link:hover { color: inherit; }
.atalho--portal:hover {
  transform: translateY(-3px);
  box-shadow: none;
  background: var(--blue-100);
  border-color: transparent;
}
.atalho--destaque {
  background: var(--primary-light);
  border-radius: 14px;
  border: 2px solid var(--primary);
}
.atalho--destaque strong {
  color: var(--blue-950) !important;
}
.atalho--destaque:hover {
  background: #d6ebfc;
  border-color: var(--primary-dark);
}
.atalho--portal strong,
.atalho-link strong {
  font-family: var(--display);
  font-size: 0.82rem;
  line-height: 1.25;
  color: var(--blue-950);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.atalho-edit-bar {
  display: none;
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  z-index: 5;
  gap: 0.25rem;
}
body.edit-mode .atalho-edit-bar:not([hidden]) {
  display: flex;
}
body.edit-mode .atalho--portal {
  border: 1px dashed rgba(0, 151, 167, 0.45);
  border-radius: 12px;
}
body.edit-mode [data-site-text] {
  outline: 2px dashed rgba(0, 151, 167, 0.45);
  outline-offset: 3px;
  border-radius: 4px;
  cursor: text;
}
body.edit-mode [data-site-text]:focus {
  outline-color: var(--teal);
  background: rgba(0, 151, 167, 0.08);
}

.portal-title {
  text-align: center;
  margin: 0 auto 1.75rem;
  max-width: 40rem;
}
.portal-title h2 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--blue-950);
  margin: 0 0 0.65rem;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}
.portal-title-line {
  width: 88px;
  height: 4px;
  margin: 0 auto;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--flag-green) 100%);
}

.portal-more {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.section-news { background: #e8f2fb; }

.news-grid--portal {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

.news-item--portal {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.news-item--portal .news-card-inner,
.news-item--portal .news-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 100%;
}
.news-item--portal .news-thumb {
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  background-color: #dceaf6;
  background-image:
    linear-gradient(135deg, rgba(57, 150, 228, 0.85), rgba(10, 47, 79, 0.75)),
    repeating-linear-gradient(-20deg, transparent, transparent 12px, rgba(255,255,255,0.05) 12px, rgba(255,255,255,0.05) 13px);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.news-item--portal a { padding: 0; }
.news-item--portal .news-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.1rem 1.15rem 1.25rem;
}
.news-item--portal .news-body h2,
.news-item--portal .news-body h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
}
.news-item--portal .news-body p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.news-item--portal .news-more {
  margin-top: auto;
}

/* Galeria da cidade (home) */
.gallery-band {
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(107, 184, 232, 0.16), transparent 55%),
    #e8f2fb;
}
.gallery-lead {
  margin: 0.85rem auto 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.02rem;
}
.city-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 160px;
  gap: 0.75rem;
}
.city-gallery-item {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  cursor: zoom-in;
  background: #c5d4e2;
  box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.city-gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.city-gallery-item--featured {
  grid-column: span 2;
  grid-row: span 2;
}
.city-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.city-gallery-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.4rem 0.85rem 0.75rem;
  background: linear-gradient(to top, rgba(10, 47, 79, 0.82), transparent);
  color: #fff;
  text-align: left;
  display: grid;
  gap: 0.15rem;
}
.city-gallery-cap strong {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.city-gallery-item--featured .city-gallery-cap strong {
  font-size: 1.2rem;
}
.city-gallery-cap span {
  font-size: 0.8rem;
  opacity: 0.9;
}
.gallery-credit {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
}
.gallery-credit a { font-weight: 700; }
.lightbox-caption {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  max-width: min(720px, 92vw);
  margin: 0;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.9rem;
  text-align: center;
}

@media (max-width: 900px) {
  .city-gallery {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 140px;
  }
  .city-gallery-item--featured {
    grid-column: span 2;
    grid-row: span 1;
    min-height: 220px;
  }
}

@media (max-width: 520px) {
  .city-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 180px;
  }
  .city-gallery-item--featured {
    grid-column: auto;
  }
}

.map-band {
  border-top: 1px solid var(--line);
  padding: 3rem 0 3.4rem;
  background: #e8f2fb;
}
.map-band-inner {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.35fr);
  gap: 1.25rem;
  align-items: stretch;
}
.map-copy {
  display: grid;
  align-content: start;
  gap: 0.85rem;
  padding: 1.5rem 1.4rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid #d9e6f2;
  box-shadow: var(--shadow);
}
.map-copy-kicker {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}
.map-copy h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--blue-950);
  line-height: 1.15;
}
.map-copy-list {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
.map-copy-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding-top: 0.85rem;
  border-top: 1px solid #e8eef4;
}
.map-copy-ico {
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary-dark);
  background: var(--primary-light);
}
.map-copy-list strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary-dark);
  margin-bottom: 0.12rem;
}
.map-copy-list p {
  margin: 0;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.4;
}
.map-copy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.35rem;
}
.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 340px;
  border: 1px solid #d9e6f2;
  box-shadow: var(--shadow);
  background: #fff;
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
  display: block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: #fff; color: var(--blue-900); }
.btn-primary:hover { background: var(--blue-100); color: var(--blue-950); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.45); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--blue-900);
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--blue-500); background: var(--blue-100); color: var(--blue-900); }

.section .btn-primary,
.page-hero .btn-primary,
.prose .btn-primary,
.cta-band .btn-primary,
.map-copy .btn-primary,
.balcao-hero .btn-primary,
.balcao-form .btn-primary,
.balcao-filters .btn-primary,
.balcao-admin-form .btn-primary {
  background: var(--blue-900);
  color: #fff;
}
.section .btn-primary:hover,
.page-hero .btn-primary:hover,
.prose .btn-primary:hover,
.cta-band .btn-primary:hover,
.map-copy .btn-primary:hover,
.balcao-hero .btn-primary:hover,
.balcao-form .btn-primary:hover,
.balcao-filters .btn-primary:hover,
.balcao-admin-form .btn-primary:hover {
  background: var(--blue-700);
  color: #fff;
}
/* Sections */
.section { padding: 3.5rem 0; }
.section-alt { background: rgba(255, 255, 255, 0.45); }

.section-head { margin-bottom: 1.75rem; max-width: 40rem; }
.section-head-row {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.section-head h2,
.page-hero h1,
.article-head h1 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--blue-950);
  margin: 0 0 0.45rem;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
}
.section-head p { margin: 0; color: var(--muted); }

.page-hero {
  padding: 2.75rem 0 1.5rem;
  background:
    linear-gradient(180deg, rgba(231, 243, 251, 0.9), transparent);
}
.page-hero .lead { color: var(--muted); }

/* Atalhos */
.atalhos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}

.atalho {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.05rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
  min-height: 108px;
}
.atalho:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-300);
  color: inherit;
}

.atalho-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  flex-shrink: 0;
  background: linear-gradient(145deg, var(--blue-700), var(--flag-green-dark));
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15);
}
.atalho-icon::before {
  content: "";
  position: absolute;
  inset: 12px;
  background: #fff;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}

.atalho-icon--transparencia::before,
.atalho-icon--publica::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2 3 7v2h18V7L12 2zm-7 9v8h2v-8H5zm5 0v8h4v-8h-4zm7 0v8h2v-8h-2z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2 3 7v2h18V7L12 2zm-7 9v8h2v-8H5zm5 0v8h4v-8h-4zm7 0v8h2v-8h-2z'/%3E%3C/svg%3E"); }
.atalho-icon--diario::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M6 2h9l5 5v15H6V2zm8 1.5V8h4.5L14 3.5zM8 11h8v2H8v-2zm0 4h8v2H8v-2z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M6 2h9l5 5v15H6V2zm8 1.5V8h4.5L14 3.5zM8 11h8v2H8v-2zm0 4h8v2H8v-2z'/%3E%3C/svg%3E"); }
.atalho-icon--contribuinte::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 12a4 4 0 1 0-4-4 4 4 0 0 0 4 4zm0 2c-4 0-8 2-8 4v2h16v-2c0-2-4-4-8-4z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 12a4 4 0 1 0-4-4 4 4 0 0 0 4 4zm0 2c-4 0-8 2-8 4v2h16v-2c0-2-4-4-8-4z'/%3E%3C/svg%3E"); }
.atalho-icon--licitacoes::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M4 4h16v4H4V4zm0 6h10v2H4v-2zm0 4h16v2H4v-2zm0 4h10v2H4v-2z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M4 4h16v4H4V4zm0 6h10v2H4v-2zm0 4h16v2H4v-2zm0 4h10v2H4v-2z'/%3E%3C/svg%3E"); }
.atalho-icon--nota::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M7 2h8l5 5v15H7V2zm7 1.5V8h4.5L14 3.5zM9 12h8v2H9v-2zm0 4h6v2H9v-2z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M7 2h8l5 5v15H7V2zm7 1.5V8h4.5L14 3.5zM9 12h8v2H9v-2zm0 4h6v2H9v-2z'/%3E%3C/svg%3E"); }
.atalho-icon--leis::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 3 3 7v2h18V7l-9-4zm-7 8h2v7H5v-7zm5 0h4v7h-4v-7zm7 0h2v7h-2v-7zM3 20h18v2H3v-2z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 3 3 7v2h18V7l-9-4zm-7 8h2v7H5v-7zm5 0h4v7h-4v-7zm7 0h2v7h-2v-7zM3 20h18v2H3v-2z'/%3E%3C/svg%3E"); }
.atalho-icon--rh::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M16 11a3 3 0 1 0-3-3 3 3 0 0 0 3 3zM8 12a3 3 0 1 0-3-3 3 3 0 0 0 3 3zm8 2c-2.2 0-6 1.1-6 3.3V20h12v-2.7C22 15.1 18.2 14 16 14zM8 14c-.3 0-.6 0-1 .1C4.7 14.5 2 15.6 2 17.5V20h6v-2.7c0-.9.3-1.7.8-2.3A9.5 9.5 0 0 0 8 14z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M16 11a3 3 0 1 0-3-3 3 3 0 0 0 3 3zM8 12a3 3 0 1 0-3-3 3 3 0 0 0 3 3zm8 2c-2.2 0-6 1.1-6 3.3V20h12v-2.7C22 15.1 18.2 14 16 14zM8 14c-.3 0-.6 0-1 .1C4.7 14.5 2 15.6 2 17.5V20h6v-2.7c0-.9.3-1.7.8-2.3A9.5 9.5 0 0 0 8 14z'/%3E%3C/svg%3E"); }
.atalho-icon--turismo::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 14.5 9 2.5 2.5 0 0 1 12 11.5z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 14.5 9 2.5 2.5 0 0 1 12 11.5z'/%3E%3C/svg%3E"); }
.atalho-icon--concursos::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2 9.2 8.1 2.5 9l5.1 4.6L5.8 20 12 16.6 18.2 20l-1.8-6.4 5.1-4.6-6.7-.9L12 2z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2 9.2 8.1 2.5 9l5.1 4.6L5.8 20 12 16.6 18.2 20l-1.8-6.4 5.1-4.6-6.7-.9L12 2z'/%3E%3C/svg%3E"); }
.atalho-icon--ouvidoria::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M4 4h16v12H7l-3 3V4zm4 4v2h8V8H8zm0 4v2h6v-2H8z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M4 4h16v12H7l-3 3V4zm4 4v2h8V8H8zm0 4v2h6v-2H8z'/%3E%3C/svg%3E"); }
.atalho-icon--geo::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M3 5h18v14H3V5zm2 2v10h14V7H5zm5 2h6v2h-6V9zm0 4h4v2h-4v-2z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M3 5h18v14H3V5zm2 2v10h14V7H5zm5 2h6v2h-6V9zm0 4h4v2h-4v-2z'/%3E%3C/svg%3E"); }

.atalho-text { display: grid; gap: 0.2rem; min-width: 0; }
.atalho-text strong {
  font-family: var(--display);
  font-size: 0.98rem;
  color: var(--blue-950);
}
.atalho-text span {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.35;
}

/* News */
.news-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 1rem;
}
.news-grid--list {
  grid-template-columns: repeat(3, 1fr);
}

.news-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.news-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.news-item a,
.news-link {
  display: block;
  padding: 0;
  color: inherit;
  height: 100%;
}
.news-item time {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue-700);
  margin-bottom: 0.55rem;
  font-family: var(--display);
}
.news-item h3 {
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.55rem;
  color: var(--blue-950);
  line-height: 1.25;
}
.news-item p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.news-more {
  font-family: var(--display);
  font-weight: 700;
  color: var(--blue-700);
  font-size: 0.9rem;
}
/* Página /noticias — alinhada ao portal da home */
.news-page {
  padding: 2.5rem 0 3.5rem;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(107, 184, 232, 0.22), transparent 55%),
    linear-gradient(180deg, #e3f2fd 0%, #e8f2fb 40%, #f2f7fc 100%);
}
.news-page-head { margin-bottom: 1.5rem; }
.news-page-eyebrow {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-dark);
}
.news-page-head h1 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--blue-950);
  margin: 0 0 0.65rem;
  font-size: clamp(1.9rem, 3.5vw, 2.5rem);
}
.news-page-lead {
  margin: 0.85rem auto 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.news-search {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  max-width: 40rem;
}
.news-search input[type="search"] {
  flex: 1 1 220px;
  min-width: 0;
  font: inherit;
  font-size: 1rem;
  padding: 0.8rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
}
.news-search input[type="search"]:focus {
  outline: 2px solid rgba(0, 151, 167, 0.35);
  outline-offset: 1px;
  border-color: var(--teal);
}
.news-search .btn { border-radius: 999px; padding: 0.75rem 1.25rem; }

.news-grid--page {
  margin-top: 0.25rem;
}
.news-grid--page .news-item--featured {
  grid-column: 1 / -1;
  display: grid;
}
.news-grid--page .news-item--featured .news-link {
  display: grid;
  grid-template-columns: minmax(240px, 1.1fr) 1.2fr;
  align-items: stretch;
  min-height: 0;
}
.news-grid--page .news-item--featured .news-thumb {
  aspect-ratio: 16 / 10;
  height: auto;
  min-height: 0;
  align-self: center;
  width: 100%;
}
.news-grid--page .news-item--featured .news-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.75rem 1.85rem;
}
.news-grid--page .news-item--featured .news-body h2 {
  -webkit-line-clamp: 3;
  min-height: 0;
}
.news-grid--page .news-item--featured .news-body p {
  -webkit-line-clamp: 4;
}
.news-grid--page .news-item--featured h2 {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.65rem;
  color: var(--blue-950);
  line-height: 1.2;
}
.news-grid--page .news-item h2 {
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.55rem;
  color: var(--blue-950);
  line-height: 1.25;
}
.news-grid--page .news-item--featured p {
  font-size: 1.05rem;
  max-width: 36rem;
}

.news-empty {
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  box-shadow: var(--shadow);
  max-width: 32rem;
  margin: 0 auto;
}
.news-empty strong {
  display: block;
  font-family: var(--display);
  font-size: 1.25rem;
  color: var(--blue-950);
  margin-bottom: 0.4rem;
}
.news-empty p {
  margin: 0 0 1.25rem;
  color: var(--muted);
}
.news-page-back { margin-top: 2.25rem; }

.news-page .news-page-meta {
  margin: 0 0 1.25rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
}
.news-page .news-page-meta strong {
  color: var(--blue-950);
  font-weight: 800;
}

.news-page .news-pagination {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 0.85rem;
  margin: 2.25rem auto 0.5rem;
  max-width: 42rem;
  padding: 1rem 1.15rem;
  background: #fff;
  border: 1px solid #d9e6f2;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(10, 47, 79, 0.06);
}
.news-page .news-page-list {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.news-page .news-page-list li {
  list-style: none !important;
  margin: 0;
  padding: 0;
}
.news-page .news-page-list li::marker {
  content: none;
}
.news-page a.news-page-btn,
.news-page span.news-page-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 2.55rem;
  height: 2.55rem;
  padding: 0 0.85rem;
  border-radius: 999px;
  border: 1px solid #d9e6f2;
  background: #f7fbff;
  color: var(--blue-900);
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.92rem;
  line-height: 1;
  text-decoration: none !important;
  box-sizing: border-box;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.news-page a.news-page-btn:hover {
  color: var(--primary-dark);
  border-color: var(--primary);
  background: #eef6fd;
  transform: translateY(-1px);
}
.news-page span.news-page-btn.is-current {
  background: linear-gradient(135deg, var(--primary) 0%, var(--flag-green-dark) 100%);
  border-color: transparent;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(0, 146, 65, 0.22);
}
.news-page span.news-page-btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
  background: #f3f6f9;
  color: #7a8794 !important;
}
.news-page .news-page-btn--nav {
  min-width: auto;
  padding: 0 1.05rem;
  background: #fff;
}
.news-page .news-page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  height: 2.55rem;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 0.08em;
}

@media (max-width: 900px) {
  .news-grid--page .news-item--featured .news-link {
    grid-template-columns: 1fr;
  }
  .news-grid--page .news-item--featured .news-thumb {
    aspect-ratio: 16 / 10;
    min-height: 0;
    height: auto;
  }
}
@media (max-width: 560px) {
  .news-page .news-pagination {
    gap: 0.5rem;
    padding: 0.85rem;
  }
  .news-page a.news-page-btn,
  .news-page span.news-page-btn {
    min-width: 2.35rem;
    height: 2.35rem;
    font-size: 0.88rem;
  }
}

/* Secretarias */
.sec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}
.sec-grid--full { grid-template-columns: repeat(2, 1fr); }

.sec-item {
  display: grid;
  gap: 0.35rem;
  padding: 1.15rem 1.2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.sec-item:hover {
  transform: translateY(-3px);
  border-color: var(--flag-green);
  color: inherit;
}
.sec-item strong {
  font-family: var(--display);
  color: var(--blue-950);
  font-size: 1.02rem;
}
.sec-item span { color: var(--muted); font-size: 0.9rem; }
.sec-link {
  margin-top: 0.35rem !important;
  color: var(--blue-700) !important;
  font-weight: 700;
  font-family: var(--display);
}

/* CTA */
.cta-band {
  margin: 0 0 0;
  padding: 2.5rem 0;
  background: linear-gradient(110deg, var(--blue-950) 0%, var(--blue-700) 55%, var(--flag-green-dark) 100%);
  color: #fff;
}
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.cta-band h2 {
  font-family: var(--display);
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}
.cta-band p { margin: 0; opacity: 0.9; }

/* Content helpers */
.prose-layout {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  gap: 1.5rem;
  align-items: start;
}
.prose {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
}
.prose h2 {
  font-family: var(--display);
  color: var(--blue-950);
  margin-top: 0;
}
.info-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
}
.info-panel h3 {
  font-family: var(--display);
  margin: 0 0 0.75rem;
  color: var(--blue-950);
}
.info-panel dl { margin: 0; }
.info-panel dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
  margin-top: 0.75rem;
}
.info-panel dd { margin: 0.15rem 0 0; font-weight: 600; }

.contact-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 1.25rem;
  align-items: start;
}
.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-bottom: 1rem;
}
.form-grid label { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.92rem; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid input,
.form-grid textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  font: inherit;
  background: var(--bg-soft);
}
.form-grid input:focus,
.form-grid textarea:focus {
  outline: 2px solid rgba(43, 143, 212, 0.35);
  border-color: var(--blue-500);
}

.article-wrap { max-width: 760px; }
.article-head { margin-bottom: 1.25rem; }
.back-link {
  display: inline-block;
  margin-bottom: 0.85rem;
  font-weight: 700;
  font-family: var(--display);
}
.article-body { padding: 1.5rem; }

.news-audio {
  margin: 1.25rem 0;
  padding: 1rem 1.15rem;
  border: 1px solid #d9e6f2;
  border-left: 4px solid var(--flag-green, #009241);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff 0%, #f5faf7 100%);
}
.news-audio-label {
  margin: 0 0 0.65rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--blue-950, #0a2f4f);
}
.news-audio audio {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 42px;
}
.prose .news-audio a {
  color: var(--flag-green-dark, #007536);
  font-weight: 700;
}

.flash {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-weight: 600;
}
.flash-success { background: var(--success-bg); color: var(--success); }
.flash-error { background: var(--danger-bg); color: var(--danger); }
.flash-info { background: var(--info-bg); color: var(--info); }
.empty-note { color: var(--muted); }

/* Footer — card branco sobre gradiente */
.site-footer {
  margin-top: 0;
  color: #3a4550;
  background:
    radial-gradient(1200px 320px at 12% 20%, rgba(255, 255, 255, 0.16), transparent 55%),
    radial-gradient(900px 280px at 88% 80%, rgba(0, 146, 65, 0.22), transparent 50%),
    linear-gradient(115deg, var(--primary) 0%, var(--primary-dark) 42%, var(--flag-green-dark) 72%, var(--blue-950) 100%);
  padding: 2.6rem 0 0;
}
.footer-shell {
  padding-bottom: 1.6rem;
}
.footer-card {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 1.5rem 2.25rem;
  align-items: center;
  background: #fff;
  border-radius: 22px;
  padding: 1.45rem 1.75rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55) inset,
    0 18px 48px rgba(10, 47, 79, 0.22);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: inherit;
  min-width: 0;
}
.footer-brand:hover { color: inherit; }
.footer-brand img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 14px rgba(10, 47, 79, 0.12));
}
.footer-brand-text {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}
.footer-brand-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #7a8692;
  line-height: 1.25;
}
.footer-brand-city {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--primary);
}
.footer-info {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
}
.footer-info-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #44505c;
  font-size: 0.95rem;
  line-height: 1.4;
}
.footer-info-row p { margin: 0; }
.footer-info-row strong {
  font-weight: 700;
  color: #2b3540;
}
.footer-info-row + .footer-info-row {
  padding-top: 0.85rem;
  border-top: 1px solid #e8eef4;
}
.footer-info-contacts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem 1.1rem;
  align-items: start;
}
.footer-contact {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  min-width: 0;
  color: #44505c;
  font-size: 0.92rem;
  line-height: 1.35;
}
.footer-contact a {
  color: inherit;
  word-break: break-word;
}
.footer-contact a:hover { color: var(--primary-dark); }
.footer-ico {
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary-dark);
  background: var(--primary-light);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 47, 79, 0.22);
  padding: 0.95rem 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.82rem;
}
.footer-map-link:hover { color: #fff; opacity: 0.9; }
.footer-copy {
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
  flex: 1;
}
.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.footer-social a {
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.footer-social a:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 1100px) {
  .atalhos-grid--portal { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 980px) {
  .atalhos-grid { grid-template-columns: repeat(3, 1fr); }
  .atalhos-grid--portal { grid-template-columns: repeat(3, 1fr); }
  .news-grid,
  .news-grid--list,
  .news-grid--portal { grid-template-columns: 1fr 1fr; }
  .news-item--featured { grid-row: auto; }
  .sec-grid { grid-template-columns: 1fr 1fr; }
  .map-band-inner { grid-template-columns: 1fr; }
  .map-frame,
  .map-frame iframe { min-height: 280px; }
  .map-copy-actions .btn-primary,
  .map-copy-actions .btn-outline { width: 100%; }
}

@media (max-width: 1200px) {
  .brand-strip-inner {
    grid-template-columns: minmax(200px, 240px) minmax(120px, 1fr) auto minmax(160px, 220px) auto;
    gap: 0.75rem;
  }
  .brand-cta-btn {
    min-height: 44px;
    padding: 0.6rem 0.9rem;
    font-size: 0.88rem;
  }
  .logo-card-city { font-size: 1.35rem; }
}

@media (max-width: 1100px) {
  .site-nav > a,
  .nav-drop-btn {
    font-size: 0.88rem;
    padding: 0.58rem 0.5rem;
  }
  .brand-strip-inner {
    grid-template-columns: minmax(200px, 1fr) auto;
    grid-template-areas:
      "logo cta"
      "greet greet"
      "search social";
  }
  .logo-card { grid-area: logo; }
  .brand-greeting { grid-area: greet; }
  .brand-cta { grid-area: cta; justify-self: end; }
  .brand-search { grid-area: search; }
  .brand-socials { grid-area: social; justify-self: end; }
}

@media (max-width: 980px) {
  .site-header .header-bar {
    justify-content: space-between;
    padding-left: 0;
    width: min(1160px, calc(100% - 2rem));
  }
  .nav-home { margin-right: 0; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--teal-dark);
    border-bottom: 1px solid rgba(255,255,255,0.12);
    display: none;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    padding: 0.55rem 1rem 0.9rem;
    gap: 0.15rem;
    box-shadow: var(--shadow-lg);
  }
  .site-nav.is-open { display: flex; }
  .site-nav > a,
  .nav-drop-btn {
    text-align: left;
    width: 100%;
    font-size: 1.05rem;
    padding: 0.75rem 0.85rem;
    white-space: normal;
  }
  .nav-dropdown { width: 100%; }
  .nav-drop-menu {
    position: static;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    background: rgba(255,255,255,0.06);
    display: none;
    padding-left: 0.35rem;
  }
  .nav-drop-menu a { color: #fff; }
  .nav-drop-menu a:hover { background: rgba(255,255,255,0.12); color: #fff; }
  .nav-dropdown.is-open .nav-drop-menu { display: grid; }
  .nav-dropdown:hover .nav-drop-menu { display: none; }
  .nav-dropdown.is-open:hover .nav-drop-menu { display: grid; }
  .prose-layout,
  .contact-layout { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }

  .logo-card { width: 100%; }
  .brand-strip-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "logo"
      "cta"
      "greet"
      "search"
      "social";
    gap: 0.85rem;
    padding-top: 0.75rem;
  }
  .brand-cta {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }
  .brand-cta-btn {
    min-height: 52px;
    font-size: 1rem;
    width: 100%;
  }
  .brand-greeting strong { font-size: 1.55rem; }
  .brand-socials { justify-self: start; }
}

@media (max-width: 980px) {
  .footer-card {
    grid-template-columns: 1fr;
    gap: 1.15rem;
    padding: 1.25rem 1.3rem;
  }
  .footer-info-contacts {
    grid-template-columns: 1fr;
  }
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-copy { order: 3; width: 100%; }
}

@media (max-width: 720px) {
  .atalhos-grid,
  .atalhos-grid--portal,
  .news-grid,
  .news-grid--list,
  .news-grid--portal,
  .sec-grid,
  .sec-grid--full { grid-template-columns: 1fr 1fr; }
  .topbar-contacts { font-size: 0.8rem; gap: 0.75rem; }
  .hero-video {
    height: 42vh;
    margin-bottom: 3.75rem;
  }
  .hero-weather {
    min-width: 180px;
    padding: 0.8rem 1.15rem 0.8rem 0.9rem;
    gap: 0.75rem;
  }
  .hero-weather .weather-icon {
    width: 44px;
    height: 44px;
  }
  .hero-weather .weather-meta strong { font-size: 1.65rem; }
  .atalhos-band { padding-top: 2.4rem; }
  .site-footer { padding-top: 2rem; }
  .footer-brand-city { font-size: 1.55rem; }
}

@media (max-width: 480px) {
  .atalhos-grid--portal,
  .news-grid--portal,
  .sec-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ===== Balcão de Serviços Digitais ===== */
.balcao-hero {
  padding: 2.4rem 0 1.6rem;
  background:
    radial-gradient(900px 240px at 10% 0%, rgba(57, 150, 228, 0.18), transparent 55%),
    linear-gradient(180deg, #e8f2fb 0%, #f2f7fc 70%, #fff 100%);
}
.balcao-hero h1 {
  margin: 0 0 0.55rem;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.5vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--blue-950);
}
.balcao-hero .lead {
  max-width: 40rem;
  margin: 0;
  color: var(--muted);
}
.balcao-admin-link { margin: 1.1rem 0 0; }
.balcao-section { padding-top: 1.5rem; }
.balcao-section--soft { background: #f7fbff; }
.balcao-section-lead {
  margin: -0.35rem 0 1.35rem;
  color: var(--muted);
  max-width: 46rem;
}
.balcao-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.balcao-card {
  display: grid;
  gap: 0.45rem;
  align-content: start;
  min-height: 180px;
  padding: 1.15rem 1.2rem;
  border-radius: 16px;
  border: 1px solid #d9e6f2;
  background: #fff;
  color: inherit;
  box-shadow: 0 8px 22px rgba(10, 47, 79, 0.06);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.balcao-card:hover {
  color: inherit;
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 14px 32px rgba(10, 47, 79, 0.12);
}
.balcao-card strong {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--blue-950);
  line-height: 1.25;
}
.balcao-card > span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}
.balcao-card em {
  margin-top: auto;
  font-style: normal;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--primary-dark);
}
.balcao-card-badge {
  display: inline-flex;
  width: fit-content;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--primary-light);
  color: var(--primary-dark);
}
.balcao-card-badge--pedido {
  background: #fff4ce;
  color: #7a5a00;
}
.balcao-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.8fr);
  gap: 1.5rem;
  align-items: start;
}
.balcao-form select,
.balcao-filters select,
.balcao-admin-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  background: #fff;
}
.balcao-form > label {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: #44505c;
}
.balcao-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.5rem;
}
.balcao-steps {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
}
.balcao-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: end;
  margin-bottom: 1.4rem;
  padding: 1rem;
  border-radius: 14px;
  background: #f7fbff;
  border: 1px solid #e0ebf5;
}
.balcao-filters label {
  display: grid;
  gap: 0.3rem;
  min-width: 160px;
  font-weight: 600;
  font-size: 0.9rem;
}
.balcao-admin-list {
  display: grid;
  gap: 1rem;
}
.balcao-admin-card {
  background: #fff;
  border: 1px solid #e0ebf5;
  border-radius: 16px;
  padding: 1.15rem 1.25rem;
  box-shadow: 0 8px 20px rgba(10, 47, 79, 0.05);
}
.balcao-admin-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 0.55rem;
}
.balcao-admin-head time {
  color: var(--muted);
  font-size: 0.88rem;
}
.balcao-protocolo {
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--blue-950);
  margin-right: 0.5rem;
}
.balcao-status {
  display: inline-flex;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: #e8eef4;
  color: #44505c;
}
.balcao-status--nova { background: #e3f2fd; color: var(--primary-dark); }
.balcao-status--em_analise { background: #fff4ce; color: #7a5a00; }
.balcao-status--aprovada { background: #e7f6ee; color: #1f7a4d; }
.balcao-status--recusada { background: #fdeceb; color: #b42318; }
.balcao-status--concluida { background: #e8f2fb; color: var(--blue-900); }
.balcao-admin-meta {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.balcao-admin-desc {
  margin: 0.65rem 0 1rem;
  color: #2b3540;
  line-height: 1.5;
}
.balcao-admin-form {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 0.75rem;
  align-items: end;
  padding-top: 0.85rem;
  border-top: 1px solid #e8eef4;
}
.balcao-admin-form label {
  display: grid;
  gap: 0.3rem;
  font-weight: 600;
  font-size: 0.88rem;
}
.balcao-admin-form label.full { grid-column: 1 / -1; }
.balcao-admin-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  font: inherit;
  resize: vertical;
}

@media (max-width: 1100px) {
  .balcao-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .balcao-form-layout { grid-template-columns: 1fr; }
  .balcao-admin-form { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .balcao-grid { grid-template-columns: 1fr; }
}

/* ===== Libras (entrada criativa + VLibras) ===== */
.libras-dock {
  position: fixed;
  right: 1.1rem;
  bottom: 1.25rem;
  z-index: 240;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}
.libras-fab {
  position: relative;
  appearance: none;
  border: 0;
  cursor: pointer;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.55rem 0.55rem 0.95rem;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--blue-900) 100%);
  box-shadow:
    0 10px 28px rgba(36, 120, 196, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.18) inset;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.libras-fab:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 16px 36px rgba(36, 120, 196, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.22) inset;
}
.libras-fab-core {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.14);
  animation: libras-wave 2.8s ease-in-out infinite;
}
.libras-fab-label {
  position: relative;
  z-index: 1;
  display: grid;
  text-align: right;
  line-height: 1.15;
  padding-left: 0.2rem;
}
.libras-fab-label em {
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}
.libras-fab-label strong {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.libras-fab-pulse {
  position: absolute;
  right: 0.55rem;
  top: 50%;
  width: 52px;
  height: 52px;
  margin-top: -26px;
  border-radius: 50%;
  border: 2px solid rgba(57, 150, 228, 0.55);
  animation: libras-pulse 2.4s ease-out infinite;
  pointer-events: none;
}
.libras-fab-pulse--delay { animation-delay: 1.1s; }
.libras-dock.is-active .libras-fab {
  background: linear-gradient(135deg, #ffc107 0%, #f0a800 45%, var(--primary) 100%);
  color: #123;
}
.libras-dock.is-active .libras-fab-label strong { color: #0a2f4f; }
.libras-tip {
  max-width: 240px;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #d9e6f2;
  box-shadow: var(--shadow-lg);
  color: var(--ink);
  animation: libras-tip-in 0.45s var(--ease);
}
.libras-tip strong {
  display: block;
  font-family: var(--display);
  font-size: 0.98rem;
  color: var(--blue-950);
  margin-bottom: 0.25rem;
}
.libras-tip p {
  margin: 0 0 0.7rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.4;
}
.libras-tip-close {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  background: var(--primary);
  color: #fff;
}
.libras-tip-close:hover { background: var(--primary-dark); }

/* Esconde o botão padrão do VLibras — usamos nossa entrada criativa */
div[vw] > [vw-access-button] {
  opacity: 0 !important;
  pointer-events: none !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  position: fixed !important;
  left: -9999px !important;
}

@keyframes libras-pulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.85); opacity: 0; }
}
@keyframes libras-wave {
  0%, 100% { transform: rotate(-6deg); }
  50% { transform: rotate(7deg); }
}
@keyframes libras-tip-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 720px) {
  .libras-dock {
    right: 0.75rem;
    bottom: 0.85rem;
  }
  .libras-fab-label em { display: none; }
  .libras-fab {
    padding-left: 0.85rem;
  }
  .libras-tip { max-width: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  .libras-fab-pulse,
  .libras-fab-core { animation: none !important; }
}

/* ===== Editor visual ===== */
:root {
  --editor-bar-h: 58px;
}

.editor-toolbar {
  position: sticky;
  top: 0;
  z-index: 220;
  background: #1b1f24;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.editor-toolbar-inner {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  padding: 0.55rem 0;
  min-height: var(--editor-bar-h);
  box-sizing: border-box;
}

.editor-user {
  display: grid;
  gap: 0.05rem;
  margin-right: auto;
}
.editor-user strong { font-family: var(--display); font-size: 0.95rem; }
.editor-user span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.7;
}

.editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.editor-btn {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.editor-btn:hover { background: rgba(255,255,255,0.16); color: #fff; }
.editor-btn-primary {
  background: var(--teal);
  border-color: var(--teal);
}
.editor-btn-primary:hover { background: var(--teal-dark); }
.editor-btn-accent {
  background: #2f9e44;
  border-color: #2f9e44;
}

.editor-status {
  flex: 1 1 14rem;
  font-size: 0.82rem;
  opacity: 0.9;
  min-height: 1.1em;
  line-height: 1.35;
}
.editor-status:empty { display: none; }
.editor-status.is-success { color: #9dffb0; }
.editor-status.is-error { color: #ffb4b4; }

/* Menu sticky fica logo abaixo da barra de edição */
body.can-edit .site-header {
  top: var(--editor-bar-h);
}
body.can-edit .editor-toolbar {
  top: 0;
}

body.edit-mode [data-edit] {
  outline: 2px dashed rgba(0, 151, 167, 0.55);
  outline-offset: 3px;
  border-radius: 6px;
  cursor: text;
  min-height: 1.2em;
}
body.edit-mode [data-edit]:focus {
  outline-color: var(--teal);
  background: rgba(0, 151, 167, 0.06);
}

.news-card-inner { position: relative; height: 100%; }
.news-link {
  display: block;
  color: inherit;
  height: 100%;
}
.news-link:hover { color: inherit; }

.news-edit-bar {
  display: none;
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 5;
  gap: 0.35rem;
}
body.edit-mode .news-edit-bar:not([hidden]) {
  display: flex;
}

.news-drag,
.news-delete,
.news-open {
  appearance: none;
  border: 0;
  border-radius: 8px;
  padding: 0.35rem 0.55rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: grab;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
}
.news-delete { cursor: pointer; background: #b42318; }
.news-open { cursor: pointer; background: var(--teal); }
.atalho-edit-link {
  appearance: none;
  border: 0;
  border-radius: 8px;
  padding: 0.35rem 0.55rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  background: #fff;
  color: #1b1f24;
}
.news-item.is-dragging { opacity: 0.55; }
.news-item.is-new { box-shadow: 0 0 0 2px var(--teal); }

body.edit-mode .news-item {
  cursor: grab;
}
body.edit-mode .news-grid--portal {
  min-height: 120px;
}

.editor-hint {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Notícia completa + galeria */
.news-cover {
  margin: 0 0 1.25rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: #dfe7ef;
  min-height: 180px;
}
.news-cover img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}
.news-cover.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7a8794;
  font-weight: 600;
}
.news-cover.is-broken,
.news-cover[hidden] {
  display: none !important;
  margin: 0;
  min-height: 0;
}
.news-cover-placeholder { padding: 2rem; }

.article-editor-panel {
  background: #1b1f24;
  color: #fff;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
}
.article-editor-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}
.article-editor-tools button {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}
.article-editor-tools button:hover { background: rgba(255,255,255,0.16); }
.article-editor-tools .is-danger { background: #b42318; border-color: #b42318; }
.tools-sep {
  width: 1px;
  background: rgba(255,255,255,0.2);
  margin: 0 0.2rem;
}
.article-editor-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}
.article-editor-panel .editor-hint { color: rgba(255,255,255,0.75); margin: 0; }

.article-body img,
.news-figure img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  margin: 0.75rem 0;
}
.news-figure {
  margin: 1.25rem 0;
}
.news-figure figcaption,
.news-gallery figcaption {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

.news-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0;
}
.news-gallery figure {
  margin: 0;
  background: #e8f2fb;
  border-radius: 10px;
  overflow: hidden;
}
.news-gallery img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  margin: 0;
  cursor: zoom-in;
}
.news-gallery figcaption { padding: 0.4rem 0.55rem 0.65rem; }

.news-thumb--photo {
  background-color: #e8f2fb !important;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0,0,0,0.88);
  display: grid;
  place-items: center;
  padding: 1.5rem;
}
.lightbox[hidden] { display: none !important; }
.lightbox img {
  max-width: min(960px, 100%);
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}

body.edit-mode .article-body {
  min-height: 220px;
  border: 2px dashed rgba(0, 151, 167, 0.45);
  border-radius: 12px;
  padding: 1rem;
  background: rgba(255,255,255,0.7);
}

/* Georreferenciamento */
body.is-geo .site-footer { margin-top: 0; }
.geo-page { background: #e8f2fb; }
.geo-toolbar {
  background:
    radial-gradient(ellipse 70% 80% at 20% 0%, rgba(43, 143, 212, 0.18), transparent 55%),
    linear-gradient(180deg, #e3f2fd, #e8f2fb);
  border-bottom: 1px solid var(--line);
  padding: 1.4rem 0 1.25rem;
}
.geo-toolbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}
.geo-brand .eyebrow {
  margin: 0 0 0.25rem;
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-dark);
}
.geo-brand h1 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--blue-950);
}
.geo-brand p {
  margin: 0;
  color: var(--muted);
  max-width: 34rem;
}
.geo-search {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  flex: 1 1 280px;
  max-width: 480px;
}
.geo-search input {
  flex: 1 1 180px;
  min-width: 0;
  font: inherit;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow);
}
.geo-search input:focus {
  outline: 2px solid rgba(0, 151, 167, 0.35);
  border-color: var(--teal);
}

.geo-map-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: min(72vh, 720px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.geo-panel {
  background: #f7fafc;
  border-right: 1px solid var(--line);
  padding: 1rem 1.05rem 1.4rem;
  overflow: auto;
  max-height: min(72vh, 720px);
}
.geo-panel-block {
  margin-bottom: 1.15rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.geo-panel-block:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}
.geo-panel h2 {
  margin: 0 0 0.65rem;
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--blue-950);
  letter-spacing: -0.02em;
}
.geo-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.45rem;
  font-size: 0.92rem;
  color: #445;
  cursor: pointer;
}
.geo-hint {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.4;
}
.geo-coords {
  margin: 0;
  display: grid;
  gap: 0.45rem;
}
.geo-coords div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.9rem;
}
.geo-coords dt { color: var(--muted); }
.geo-coords dd {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  color: var(--blue-900);
}
.geo-ext-link { width: 100%; border-radius: 999px; }
.geo-map {
  min-height: min(72vh, 720px);
  width: 100%;
  background: #d7e3ef;
  z-index: 1;
}
.geo-map .leaflet-container { font: inherit; }

/* Controles de mapa (estilo WebGIS / Porto Rico) */
.geo-map .leaflet-top.leaflet-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  margin-top: 0.75rem;
  margin-right: 0.75rem;
}
.geo-map .leaflet-top.leaflet-right .leaflet-control {
  margin: 0;
  float: none;
  clear: both;
}
.geo-map .leaflet-bar,
.geo-map .geo-map-ctrl {
  border: 0 !important;
  border-radius: 12px !important;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(10, 47, 79, 0.18);
  background: #fff;
}
.geo-map .leaflet-bar a,
.geo-map .geo-map-ctrl-btn,
.geo-map .leaflet-control-fullscreen a {
  width: 38px !important;
  height: 38px !important;
  line-height: 38px !important;
  display: grid !important;
  place-items: center;
  color: var(--blue-900) !important;
  background: #fff !important;
  border-bottom: 1px solid #e8eef4 !important;
  font-size: 18px !important;
  font-weight: 700;
  text-decoration: none !important;
}
.geo-map .leaflet-bar a:last-child,
.geo-map .geo-map-ctrl-btn {
  border-bottom: 0 !important;
}
.geo-map .leaflet-bar a:hover,
.geo-map .geo-map-ctrl-btn:hover,
.geo-map .leaflet-control-fullscreen a:hover {
  background: #eef6fd !important;
  color: var(--primary-dark) !important;
}
.geo-map .geo-map-ctrl-btn svg {
  display: block;
  pointer-events: none;
}
.geo-map .geo-map-ctrl-locate.is-loading {
  opacity: 0.55;
  pointer-events: none;
}
.geo-map .leaflet-control-scale {
  margin: 0 0 0.75rem 0.75rem;
  border: 0 !important;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 8px;
  padding: 0.25rem 0.45rem;
  box-shadow: 0 6px 16px rgba(10, 47, 79, 0.12);
  font-weight: 700;
  color: var(--blue-900);
}
.geo-map .leaflet-control-scale-line {
  border-color: var(--blue-900) !important;
  border-top: 0 !important;
  background: transparent;
  font-size: 0.72rem;
  line-height: 1.2;
  padding: 0.1rem 0.15rem 0;
  color: var(--blue-900);
}
.geo-map.leaflet-container:-webkit-full-screen,
.geo-map.leaflet-container:fullscreen,
.geo-map .leaflet-container:-webkit-full-screen,
.geo-map .leaflet-container:fullscreen {
  width: 100% !important;
  height: 100% !important;
}

.geo-footnote {
  padding: 1rem 0 1.75rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.geo-footnote code {
  font-size: 0.82em;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.05rem 0.3rem;
}
.geo-frame-wrap {
  height: min(78vh, 820px);
  background: #0a2f4f;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.geo-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #fff;
}

.geo-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0.85rem 0 0.2rem;
}
.geo-stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  box-shadow: var(--shadow);
}
.geo-stat strong {
  display: block;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--blue-950);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.geo-stat span {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}
.geo-stat--andamento strong { color: #b45309; }
.geo-stat--concluida strong { color: #15803d; }
.geo-stat--planejada strong { color: #4b5563; }

.obra-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  max-height: 220px;
  overflow: auto;
}
.obra-list-item {
  display: grid;
  gap: 0.25rem;
}
.obra-list-btn {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  cursor: pointer;
  font: inherit;
}
.obra-list-btn:hover { border-color: var(--blue-300); }
.obra-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-top: 0.35rem;
  flex-shrink: 0;
}
.obra-list-text {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}
.obra-list-text strong {
  font-size: 0.88rem;
  color: var(--blue-950);
  line-height: 1.25;
}
.obra-list-text small {
  color: var(--muted);
  font-size: 0.78rem;
}
.obra-list-actions {
  display: flex;
  gap: 0.35rem;
}
.obra-list-actions button {
  appearance: none;
  border: 0;
  background: #e8f2fb;
  color: var(--blue-900);
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}
.obra-list-actions .is-danger { background: #fdeceb; color: #b42318; }
.obra-list-empty {
  color: var(--muted);
  font-size: 0.88rem;
  padding: 0.35rem 0;
}

.obra-form {
  display: grid;
  gap: 0.55rem;
}
.obra-form label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #445;
}
.obra-form input[type="text"],
.obra-form input[type="number"],
.obra-form select,
.obra-form textarea {
  font: inherit;
  font-weight: 500;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
.obra-photos-fields {
  display: grid;
  gap: 0.45rem;
}
.obra-photo-preview {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}
.obra-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.obra-form-actions .btn {
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font-size: 0.88rem;
}
.obra-form-status {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.82rem;
  color: var(--muted);
}
.obra-form-status.is-success { color: var(--success); }
.obra-form-status.is-error { color: var(--danger); }

.obra-marker { background: transparent; border: 0; }
.obra-marker-dot {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
/* ===== Turismo hub + mapa ===== */
.turismo-hero {
  position: relative;
  min-height: min(52vh, 460px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--blue-950);
  color: #fff;
}
.turismo-hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(10, 47, 79, 0.2), transparent 50%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='500' viewBox='0 0 800 500'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop stop-color='%231e88e5'/%3E%3Cstop offset='1' stop-color='%230a2f4f'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='800' height='500' fill='url(%23g)'/%3E%3Cpath d='M0 320 Q120 280 240 310 T480 300 T800 280 V500 H0Z' fill='%233996e4' opacity='.35'/%3E%3Cpath d='M0 360 Q160 320 320 350 T640 340 T800 330 V500 H0Z' fill='%23ffffff' opacity='.08'/%3E%3C/svg%3E")
      center/cover no-repeat;
  transform: scale(1.04);
  animation: turismo-drift 18s ease-in-out infinite alternate;
}
.turismo-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(10, 47, 79, 0.82) 0%, rgba(10, 47, 79, 0.35) 55%, rgba(10, 47, 79, 0.55) 100%),
    linear-gradient(to top, rgba(10, 47, 79, 0.65), transparent 45%);
}
.turismo-hero-content {
  position: relative;
  z-index: 2;
  padding: 3.2rem 0 2.6rem;
  max-width: 40rem;
}
.turismo-hero .eyebrow { color: #7ddea8; }
.turismo-hero h1 {
  margin: 0 0 0.55rem;
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.turismo-hero .lead {
  margin: 0 0 1.25rem;
  font-size: 1.1rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  max-width: 34rem;
}
.turismo-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.turismo-hero .btn-primary {
  background: #fff;
  color: var(--blue-950);
  border: 0;
}
.turismo-hero .btn-primary:hover {
  background: var(--primary-light);
  color: var(--blue-950);
}
.turismo-hero-ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.turismo-hero-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.turismo-cats-section { background: #fff; }
.turismo-cats-lead {
  margin: -0.25rem 0 1.4rem;
  color: var(--muted);
  max-width: 42rem;
}
.turismo-cat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.9rem;
}
.turismo-cat-card {
  position: relative;
  display: grid;
  gap: 0.4rem;
  align-content: start;
  min-height: 170px;
  padding: 1.15rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid #d9e6f2;
  background: #fff;
  color: inherit;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}
.turismo-cat-card:hover {
  color: inherit;
  transform: translateY(-4px);
  border-color: var(--cat-color, var(--primary));
  box-shadow: var(--shadow-lg);
}
.turismo-cat-orb {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #eef5fb;
  box-shadow: inset 0 0 0 1px rgba(57, 150, 228, 0.2);
  position: relative;
}
.turismo-cat-orb::after {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  background: var(--cat-color, #3996e4);
}
.turismo-cat-card strong {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--blue-950);
  line-height: 1.25;
}
.turismo-cat-card > span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}
.turismo-cat-card em {
  margin-top: auto;
  font-style: normal;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--cat-color, var(--primary-dark));
}
.turismo-story { background: #e8f2fb; }
.turismo-story-inner {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 1.5rem;
  align-items: stretch;
}
.turismo-story-copy h2 {
  margin: 0 0 0.7rem;
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--blue-950);
}
.turismo-story-copy > p {
  color: var(--muted);
  max-width: 38rem;
  line-height: 1.55;
}
.turismo-story-list {
  margin: 1rem 0 1.35rem;
  padding-left: 1.15rem;
  color: var(--ink);
  display: grid;
  gap: 0.35rem;
}
.turismo-story-panel {
  background: #fff;
  border: 1px solid #d9e6f2;
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem;
  box-shadow: var(--shadow);
}
.turismo-story-panel h3 {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  color: var(--blue-950);
}
.turismo-story-panel p { margin: 0 0 0.85rem; color: var(--muted); }
.turismo-story-panel ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.4rem;
}
.turismo-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.35rem 0 1rem;
}
.turismo-chip {
  appearance: none;
  border: 1px solid #cfe0ef;
  background: #fff;
  color: var(--blue-950);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.turismo-chip:hover {
  border-color: var(--cat-color, var(--primary));
  color: var(--cat-color, var(--primary-dark));
}
.turismo-chip.is-active {
  background: var(--cat-color, var(--primary));
  border-color: var(--cat-color, var(--primary));
  color: #fff;
}
.turismo-chip[data-cat=""].is-active {
  background: var(--blue-900);
  border-color: var(--blue-900);
}

@keyframes turismo-drift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.06) translate3d(-1.5%, -1%, 0); }
}

@media (max-width: 1100px) {
  .turismo-cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .turismo-cat-grid { grid-template-columns: 1fr 1fr; }
  .turismo-story-inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .turismo-cat-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .turismo-hero-media { animation: none; }
}

.turismo-marker-dot {
  background: var(--teal);
  border-color: var(--teal);
}
.turismo-popup-photo {
  margin: 0.65rem 0 0;
}
.turismo-popup-photo img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.obra-popup { min-width: 200px; }
.obra-popup > strong {
  display: block;
  margin: 0.35rem 0 0.2rem;
  font-family: var(--display);
  color: #0a2f4f;
  font-size: 1rem;
}
.obra-popup p { margin: 0.25rem 0; font-size: 0.88rem; color: #445; }
.obra-popup-bairro { font-weight: 700 !important; color: #2478c4 !important; }
.obra-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  color: #fff;
  background: #6b7280;
}
.obra-badge--andamento { background: #d97706; }
.obra-badge--concluida { background: #15803d; }
.obra-badge--planejada { background: #6b7280; }
.obra-popup-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  margin-top: 0.65rem;
}
.obra-popup-photos figure { margin: 0; }
.obra-popup-photos img {
  width: 100%;
  height: 78px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.obra-popup-photos figcaption {
  font-size: 0.7rem;
  font-weight: 700;
  color: #777;
  margin-top: 0.2rem;
  text-align: center;
}

@media (max-width: 900px) {
  .geo-map-shell {
    grid-template-columns: 1fr;
  }
  .geo-panel {
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .geo-map { min-height: 55vh; }
  .geo-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .geo-stats { grid-template-columns: 1fr; }
}

/* —— Dashboard Arquivos (estilo gerenciador / Megaupload) —— */
.dash-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(900px 420px at 8% -10%, rgba(57, 150, 228, 0.16), transparent 55%),
    radial-gradient(700px 380px at 92% 0%, rgba(0, 146, 65, 0.1), transparent 50%),
    linear-gradient(180deg, #eef4fa 0%, #f5f7fa 40%, #eef2f6 100%);
  color: var(--ink);
  font-family: var(--font);
}
.dash-top {
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary) 72%, var(--flag-green) 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(10, 47, 79, 0.18);
}
.dash-top-inner {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  padding: 0.65rem 0;
}
.dash-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #fff;
  min-width: 0;
}
.dash-brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  padding: 0.2rem;
}
.dash-brand strong {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.dash-brand small {
  display: block;
  opacity: 0.85;
  font-size: 0.78rem;
}
.dash-top-nav {
  display: flex;
  gap: 0.35rem;
  flex: 1;
  flex-wrap: wrap;
}
.dash-top-nav a {
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
}
.dash-top-nav a:hover,
.dash-top-nav a.is-active {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.dash-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}
.dash-user-meta {
  text-align: right;
  line-height: 1.15;
}
.dash-user-meta strong {
  display: block;
  font-size: 0.92rem;
}
.dash-user-meta span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.8;
}
.dash-main {
  flex: 1;
  width: min(1180px, calc(100% - 2rem));
  margin: 1.25rem auto 2rem;
}
.dash-flash {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-weight: 600;
}
.dash-flash--ok { background: var(--success-bg); color: var(--success); }
.dash-flash--err { background: var(--danger-bg); color: var(--danger); }
.dash-flash--info { background: var(--info-bg); color: var(--info); }
.dash-foot {
  padding: 1rem;
  text-align: center;
  color: #6b7c8c;
  font-size: 0.85rem;
}
.dash-foot p { margin: 0; }

.dash-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}
.dash-side {
  background: #fff;
  border: 1px solid #d9e6f2;
  border-radius: 18px;
  padding: 1.1rem;
  box-shadow: 0 10px 28px rgba(10, 47, 79, 0.06);
}
.dash-side-label {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.dash-side-link {
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  font-family: var(--display);
  font-weight: 700;
  color: var(--blue-950);
  margin-bottom: 1rem;
}
.dash-side-link:hover,
.dash-side-link.is-active {
  background: var(--flag-green-light);
  color: var(--flag-green-dark);
}
.dash-side-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-bottom: 1rem;
}
.dash-side-stats div {
  background: #f5f9fc;
  border-radius: 12px;
  padding: 0.7rem;
  text-align: center;
}
.dash-side-stats strong {
  display: block;
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--blue-950);
}
.dash-side-stats span {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
}
.dash-side-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}

.dash-content {
  min-width: 0;
  display: grid;
  gap: 1rem;
}
.dash-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}
.dash-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--flag-green-dark);
}
.dash-page-head h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--blue-950);
  font-size: clamp(1.55rem, 3vw, 2rem);
}
.dash-search {
  display: flex;
  gap: 0.4rem;
  background: #fff;
  border: 1px solid #d9e6f2;
  border-radius: 999px;
  padding: 0.25rem;
  box-shadow: 0 4px 14px rgba(10, 47, 79, 0.05);
}
.dash-search input {
  border: 0;
  background: transparent;
  padding: 0.55rem 0.9rem;
  min-width: 160px;
  font: inherit;
}
.dash-search input:focus { outline: none; }
.dash-search button {
  border: 0;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  cursor: pointer;
}
.dash-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--muted);
}
.dash-crumb a { color: var(--blue-900); }
.dash-crumb a:hover { color: var(--flag-green-dark); }

.dash-drop {
  position: relative;
  border: 2px dashed rgba(57, 150, 228, 0.45);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), #f3f9ff);
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.dash-drop.is-drag,
.dash-drop.has-files {
  border-color: var(--flag-green);
  background: linear-gradient(180deg, #fff, var(--flag-green-light));
  box-shadow: 0 10px 28px rgba(0, 146, 65, 0.12);
}
.dash-drop-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.dash-drop-inner {
  display: grid;
  gap: 0.35rem;
  justify-items: center;
}
.dash-drop-inner strong {
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--blue-950);
}
.dash-drop-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.35rem;
}
.dash-drop-names {
  margin: 0.35rem 0 0;
  max-width: 36rem;
  font-size: 0.88rem;
  color: var(--blue-900);
  font-weight: 600;
  word-break: break-word;
}

.dash-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 40px;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.9rem;
  border: 0;
  cursor: pointer;
  text-decoration: none;
}
.dash-btn--primary { background: var(--primary); color: #fff; }
.dash-btn--primary:hover { background: var(--primary-dark); color: #fff; }
.dash-btn--green { background: var(--flag-green); color: #fff; }
.dash-btn--green:hover { background: var(--flag-green-dark); color: #fff; }
.dash-btn--outline {
  background: #fff;
  color: var(--blue-900);
  border: 1px solid #d9e6f2;
}
.dash-btn--outline:hover { border-color: var(--primary); color: var(--primary-dark); }
.dash-btn--ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.dash-btn--ghost:hover { background: rgba(255, 255, 255, 0.24); color: #fff; }

.dash-tools { display: flex; gap: 0.55rem; flex-wrap: wrap; }
.dash-folder-new { position: relative; }
.dash-folder-new > summary {
  list-style: none;
  cursor: pointer;
}
.dash-folder-new > summary::-webkit-details-marker { display: none; }
.dash-folder-new form {
  position: absolute;
  left: 0;
  top: calc(100% + 0.4rem);
  z-index: 20;
  display: flex;
  gap: 0.4rem;
  padding: 0.65rem;
  background: #fff;
  border: 1px solid #d9e6f2;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  min-width: 280px;
}
.dash-folder-new input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  font: inherit;
}

.dash-empty {
  background: #fff;
  border: 1px dashed #cfe0ef;
  border-radius: 16px;
  padding: 2.5rem 1.25rem;
  text-align: center;
}
.dash-empty strong {
  display: block;
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--blue-950);
  margin-bottom: 0.35rem;
}
.dash-empty p { margin: 0; color: var(--muted); }

.dash-table-wrap {
  background: #fff;
  border: 1px solid #d9e6f2;
  border-radius: 16px;
  overflow: auto;
  box-shadow: 0 10px 28px rgba(10, 47, 79, 0.06);
}
.dash-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
.dash-table th,
.dash-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid #eef2f6;
  vertical-align: middle;
}
.dash-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: #f7fbff;
}
.dash-table tbody tr:hover { background: #f9fcff; }
.dash-table tbody tr:last-child td { border-bottom: 0; }
.dash-name {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}
.dash-name a {
  font-family: var(--display);
  font-weight: 800;
  color: var(--blue-950);
  word-break: break-word;
}
.dash-name a:hover { color: var(--flag-green-dark); }
.dash-row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}
.dash-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--primary-dark);
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
}
.dash-link:hover { color: var(--flag-green-dark); }
.dash-link--danger { color: var(--danger) !important; }
.dash-rename { position: relative; }
.dash-rename > summary {
  list-style: none;
  cursor: pointer;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.85rem;
}
.dash-rename > summary::-webkit-details-marker { display: none; }
.dash-rename form {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  z-index: 15;
  display: flex;
  gap: 0.35rem;
  padding: 0.5rem;
  background: #fff;
  border: 1px solid #d9e6f2;
  border-radius: 10px;
  box-shadow: var(--shadow);
  min-width: 220px;
}
.dash-rename input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.35rem 0.5rem;
  font: inherit;
}
.dash-rename button {
  border: 0;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
  font-weight: 700;
  cursor: pointer;
}

.repo-ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex-shrink: 0;
  background: var(--primary-light);
  position: relative;
}
.repo-ico::before {
  content: "";
  position: absolute;
  inset: 10px;
  background: var(--primary-dark);
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}
.repo-ico--pasta { background: var(--flag-green-light); }
.repo-ico--pasta::before {
  background: var(--flag-green-dark);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M10 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-8l-2-2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M10 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-8l-2-2z'/%3E%3C/svg%3E");
}
.repo-ico--pdf::before,
.repo-ico--documento::before,
.repo-ico--planilha::before,
.repo-ico--apresentacao::before,
.repo-ico--imagem::before,
.repo-ico--arquivo::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6zm1 7V3.5L19.5 9H15z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6zm1 7V3.5L19.5 9H15z'/%3E%3C/svg%3E");
}
.repo-ico--pdf::before { background: #c62828; }
.repo-ico--planilha::before { background: var(--flag-green-dark); }

@media (max-width: 900px) {
  .dash-shell { grid-template-columns: 1fr; }
  .dash-side { order: 2; }
  .dash-user-meta { display: none; }
}

/* —— Dialog da home (público) —— */
body.home-dialog-open {
  overflow: hidden;
}

.home-dialog {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: max(0.75rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right)) max(0.75rem, env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
}

.home-dialog[hidden] {
  display: none !important;
}

.home-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 24, 48, 0.72);
  border: 0;
  cursor: pointer;
}

.home-dialog-panel {
  position: relative;
  z-index: 1;
  width: fit-content;
  max-width: min(96vw, 920px);
  max-height: min(92vh, 920px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  animation: home-dialog-in 0.28s ease-out;
}

@keyframes home-dialog-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.home-dialog-close {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 1.1rem 0.55rem 0.75rem;
  background: #fff;
  color: #0b1f33;
  font: inherit;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  transition: transform 0.15s ease, background 0.15s ease;
}

.home-dialog-close span {
  display: grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: #c62828;
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 700;
}

.home-dialog-close:hover,
.home-dialog-close:focus-visible {
  background: #f4f8fc;
  transform: scale(1.03);
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.home-dialog-media {
  background: transparent;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  line-height: 0;
}

.home-dialog-img,
.home-dialog-video {
  display: block;
  width: auto;
  height: auto;
  max-width: min(96vw, 920px);
  max-height: min(78vh, 820px);
  object-fit: contain;
  background: transparent;
}

.home-dialog-media--youtube {
  width: min(96vw, 920px);
  aspect-ratio: 16 / 9;
  max-height: min(78vh, 820px);
  background: #000;
}

.home-dialog-yt {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  min-height: 200px;
}

@media (max-width: 640px) {
  .home-dialog-panel {
    max-width: 96vw;
    max-height: 96vh;
  }

  .home-dialog-close {
    align-self: stretch;
    justify-content: center;
    padding: 0.7rem 1rem;
    font-size: 1.05rem;
  }

  .home-dialog-close span {
    width: 1.85rem;
    height: 1.85rem;
    font-size: 1.5rem;
  }

  .home-dialog-img,
  .home-dialog-video {
    max-width: 96vw;
    max-height: min(70vh, 640px);
  }

  .home-dialog-media {
    border-radius: 10px;
  }
}

/* —— Admin dialog home —— */
.dialog-admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 1.5rem;
  align-items: start;
}

.dialog-admin-form,
.dialog-admin-list {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.25rem 1.35rem;
}

.dialog-admin-form h2,
.dialog-admin-list h2 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
}

.dialog-admin-form label {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  font-weight: 600;
}

.dialog-admin-form input[type="text"],
.dialog-admin-form input[type="url"],
.dialog-admin-form input[type="datetime-local"],
.dialog-admin-form select,
.dialog-admin-form input[type="file"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  font: inherit;
  font-weight: 500;
}

.dialog-admin-form small,
.dialog-hint {
  font-weight: 500;
  color: var(--muted, #5a6b7d);
  font-size: 0.88rem;
}

.dialog-check {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  grid-template-columns: none !important;
}

.dialog-check input {
  width: auto;
}

.dialog-admin-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.dialog-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.dialog-card {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 0.85rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.65rem;
}

.dialog-card.is-live {
  border-color: var(--flag-green, #009241);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--flag-green, #009241) 35%, transparent);
}

.dialog-card-preview {
  width: 120px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  background: #0b1f33;
  position: relative;
  display: grid;
  place-items: center;
}

.dialog-card-preview img,
.dialog-card-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dialog-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  z-index: 1;
  background: rgba(255, 255, 255, 0.92);
  color: #0b1f33;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.dialog-card-body {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.dialog-card-body span {
  font-size: 0.85rem;
  color: var(--muted, #5a6b7d);
}

@media (max-width: 900px) {
  .dialog-admin-grid {
    grid-template-columns: 1fr;
  }

  .dialog-admin-dates {
    grid-template-columns: 1fr;
  }

  .dialog-card {
    grid-template-columns: 1fr;
  }

  .dialog-card-preview {
    width: 100%;
    height: 140px;
  }
}


