*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #1a6b8a;
  --primary-dark: #0e4d66;
  --primary-light: #2a9bbf;
  --bg: #ffffff;
  --bg-alt: #f2f6f9;
  --bg-dark: #0f1724;
  --text: #1a1a2e;
  --text-light: #64748b;
  --text-on-dark: #e2e8f0;
  --border: #e2e8f0;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.25s ease;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* HEADER */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: 64px;
  view-transition-name: header;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo__img {
  height: 36px;
  width: auto;
}

.nav__list {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav__link {
  text-decoration: none;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition);
}

.nav__link:hover,
.nav__link--active {
  color: var(--primary);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: url('../img/hsv_bg2.png') center / cover;
  filter: blur(2px) brightness(0.92);
  z-index: 0;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  opacity: 0.06;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top right, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.65) 50%, transparent 75%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero__title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.hero__description {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}

/* NOTICIAS / CAROUSEL */
.noticias {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}

.noticias__carousel {
  position: relative;
  overflow: hidden;
}

.noticias__track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.noticias__slide {
  min-width: 100%;
  display: flex;
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 300px;
}

.noticias__image-link {
  display: contents;
  color: inherit;
  text-decoration: none;
}

.noticias__image {
  flex: 0 0 320px;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 16px;
  aspect-ratio: 1;
}

.noticias__date {
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  padding: 4px 12px;
  border-radius: 100px;
}

.noticias__body {
  flex: 1;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.noticias__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.noticias__excerpt {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 16px;
}

.noticias__link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.noticias__link:hover {
  color: var(--primary-dark);
}

.noticias__link::after {
  content: '→';
  transition: transform var(--transition);
}

.noticias__link:hover::after {
  transform: translateX(4px);
}

.noticias__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--bg);
  box-shadow: var(--shadow);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  opacity: 0;
}

.noticias__carousel:hover .noticias__btn {
  opacity: 1;
}

.noticias__btn:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.noticias__btn--prev {
  left: 12px;
}

.noticias__btn--next {
  right: 12px;
}

.noticias__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.noticias__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}

.noticias__dot--active {
  background: var(--primary);
  transform: scale(1.3);
}

.noticias__dot:hover {
  background: var(--primary-light);
}

.noticias__carousel {
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.noticias__carousel--dragging {
  cursor: grabbing;
}
.noticias__carousel--dragging .noticias__track {
  transition: none !important;
}
.noticias__track {
  touch-action: pan-y;
}

/* NEWS LISTING PAGE */
.noticias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.noticia-card {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.noticia-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

.noticia-card__image-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.noticia-card__image {
  height: 180px;
  background-size: cover;
  background-position: center;
}

.noticia-card__body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.noticia-card__date {
  font-size: .8rem;
  color: var(--text-light);
  font-weight: 500;
}

.noticia-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.noticia-card__title a {
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition);
}

.noticia-card__title a:hover {
  color: var(--primary);
}

.noticia-card__excerpt {
  font-size: .875rem;
  color: var(--text-light);
  line-height: 1.6;
  flex: 1;
}

.noticia-card .btn--sm {
  align-self: flex-start;
  margin-top: auto;
}

/* SECTIONS */
.section {
  padding: 96px 0;
  background: var(--bg);
  transition: background 0.25s ease, color 0.25s ease;
}

.section--light {
  background: var(--bg-alt);
  box-shadow: inset 0 8px 8px -8px rgba(0,0,0,0.06), inset 0 -8px 8px -8px rgba(0,0,0,0.06);
}

/* ALTERNÂNCIA OBRIGATÓRIA: ímpar/par sempre com cores diferentes independente do tema */
#home-content .section:nth-of-type(odd),
#dynamic-content .section:nth-of-type(odd) {
  background: var(--bg) !important;
  box-shadow: none !important;
}

#home-content .section:nth-of-type(even),
#dynamic-content .section:nth-of-type(even) {
  background: var(--bg-alt) !important;
  box-shadow: inset 0 8px 8px -8px rgba(0,0,0,0.06), inset 0 -8px 8px -8px rgba(0,0,0,0.06) !important;
}

body.a11y-dark #home-content .section:nth-of-type(even),
body.a11y-dark #dynamic-content .section:nth-of-type(even) {
  box-shadow: inset 0 8px 8px -8px rgba(0,0,0,0.3), inset 0 -8px 8px -8px rgba(0,0,0,0.3) !important;
}

/* Alto contraste: garante distinção mesmo com paleta restrita */
body.a11y-high-contrast #home-content .section:nth-of-type(even),
body.a11y-high-contrast #dynamic-content .section:nth-of-type(even) {
  border-top: 3px solid var(--border);
  border-bottom: 3px solid var(--border);
}

.section--dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

.section--dark .section__tag {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-on-dark);
}

.section--dark .section__title,
.section--dark .section__header .section__description {
  color: var(--text-on-dark);
}

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: rgba(26, 107, 138, 0.08);
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section__title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section__description {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.7;
}

/* GRID */
.grid {
  display: grid;
  gap: 24px;
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

/* CARDS */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(26, 107, 138, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 20px;
}

.card__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.card__text {
  color: var(--text-light);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* SERVICE CARDS */
.service__card {
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(26, 107, 138, 0.08);
  color: var(--primary);
  margin-bottom: 20px;
}

.service__card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.service__card-text {
  color: var(--text-light);
  font-size: 0.8125rem;
  line-height: 1.6;
}

/* TRANSPARENCY CARD */
.transp__card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.transp__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.transp__card-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.transp__card-text {
  color: var(--text-light);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* GALLERY */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery__item {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(37,99,235,0.05));
}

.gallery__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__placeholder {
  text-align: center;
  color: var(--text-light);
  opacity: 0.5;
}

.gallery__placeholder svg {
  margin-bottom: 8px;
}

.gallery__placeholder p {
  font-size: 0.8125rem;
}

.gallery__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.gallery__item:hover .gallery__overlay {
  opacity: 1;
}

.gallery__overlay span {
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
}

.gallery-page__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
}

.gallery-page__item {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(37,99,235,0.05));
}

.gallery-page__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-page__item:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* Grupos / Álbuns da galeria */
.gallery-group {
  margin-bottom: 40px;
}
.gallery-group:last-child {
  margin-bottom: 0;
}
.gallery-group__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
  flex-wrap: wrap;
}
.gallery-group__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.gallery-group__title svg {
  color: var(--primary);
  flex-shrink: 0;
}
.gallery-group__count {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
  background: var(--bg-alt);
  padding: 4px 12px;
  border-radius: 100px;
  white-space: nowrap;
}
.gallery-group__grid {
  /* reutiliza .gallery-page__grid mas sem max-width extra */
}

/* Botão Carregar mais */
.gallery-loadmore {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  padding-top: 8px;
}
.gallery-loadmore .btn {
  min-width: 220px;
}
.gallery-loadmore__info {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 500;
}

.gallery-page__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.gallery-page__item:hover .gallery-page__overlay {
  opacity: 1;
}

.gallery-page__overlay span {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
}

.gallery__item:has(.gallery__img),
.gallery-page__item:has(.gallery-page__img),
.gallery__item--video,
.gallery-page__item--video {
  cursor: pointer;
}
.gallery__item:has(.gallery__img):hover,
.gallery__item--video:hover,
.gallery-page__item--video:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery__video-preview {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
}
.gallery__video-preview span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.8;
}
.gallery__video-preview svg {
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}
.gallery__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery__video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.25);
  color: #fff;
  pointer-events: none;
}
.gallery__video-play svg {
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
  width: 48px;
  height: 48px;
}

/* GALLERY LIGHTBOX */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.gallery-lightbox--open {
  display: flex;
}
.gallery-lightbox__overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 20, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.gallery-lightbox__container {
  position: relative;
  width: 100%;
  max-width: 960px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}
.gallery-lightbox__track-wrap {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: #000;
  position: relative;
}
.gallery-lightbox__track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
  will-change: transform;
}
.gallery-lightbox__slide {
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  position: relative;
}
.gallery-lightbox__img {
  max-width: 100%;
  max-height: 75vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}
.gallery-lightbox__embed-wrap {
  width: 100%;
  max-width: 540px;
  max-height: 75vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 12px;
  padding: 8px;
  display: flex;
  justify-content: center;
}
.gallery-lightbox__embed-wrap blockquote {
  margin: 0 !important;
  width: 100% !important;
  min-width: 0 !important;
}
.gallery-lightbox__slide--video {
  background: #000;
}
.gallery-lightbox__caption {
  margin-top: 16px;
  color: #fff;
  font-size: 0.95rem;
  text-align: center;
  max-width: 600px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.gallery-lightbox__counter {
  margin-top: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}
.gallery-lightbox__close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  z-index: 2;
}
.gallery-lightbox__close:hover {
  background: rgba(255,255,255,0.2);
}
.gallery-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), opacity var(--transition);
  z-index: 2;
  backdrop-filter: blur(4px);
}
.gallery-lightbox__nav:hover {
  background: rgba(255,255,255,0.2);
}
.gallery-lightbox__nav--prev { left: -60px; }
.gallery-lightbox__nav--next { right: -60px; }
@media (max-width: 1100px) {
  .gallery-lightbox__nav--prev { left: 8px; }
  .gallery-lightbox__nav--next { right: 8px; }
}
@media (max-width: 640px) {
  .gallery-lightbox { padding: 20px 12px; }
  .gallery-lightbox__nav { width: 40px; height: 40px; }
  .gallery-lightbox__close { top: -36px; right: 4px; }
}

/* CONTACT */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact__item svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact__item-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  margin-bottom: 2px;
}

.contact__item-value {
  font-size: 0.9375rem;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact__form input,
.contact__form textarea {
  font-family: var(--font);
  font-size: 0.9375rem;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--bg);
}

.contact__form input:focus,
.contact__form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 107, 138, 0.1);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  border: none;
  line-height: 1;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 107, 138, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn--outline:hover {
  background: var(--primary);
  color: #fff;
}

/* FOOTER */
.footer {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding-top: 64px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__logo {
  height: 36px;
  width: auto;
  margin-bottom: 16px;
}

.footer__brand p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  max-width: 280px;
}

.footer__social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.6);
  transition: background var(--transition), color var(--transition);
}

.footer__social a:hover {
  background: var(--primary);
  color: #fff;
}

.footer__links h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 20px;
}

.footer__links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--transition);
}

.footer__links a:hover {
  color: #fff;
}

.footer__bottom {
  padding: 24px 0;
  text-align: center;
}

.footer__bottom p {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.35);
}

.text-center {
  text-align: center;
}

/* RESPONSIVE */
@media (max-width: 968px) {
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero__title {
    font-size: 2rem;
  }

  .hero__description {
    font-size: 1rem;
  }

  .section {
    padding: 64px 0;
  }

  .section__title {
    font-size: 1.625rem;
  }

  .grid--3 {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .noticias__slide {
    flex-direction: column;
  }

  .noticias__image-link {
    display: contents;
  }

  .noticias__image {
    flex: none;
    min-height: 180px;
    aspect-ratio: auto;
  }

  .noticias__body {
    padding: 24px;
  }

  .noticias__btn {
    display: none;
  }

  .noticias {
    padding: 0 2px;
  }
  .noticias__carousel {
    border-radius: var(--radius);
    overflow: hidden;
  }
  .noticias__dots {
    gap: 10px;
    margin-top: 18px;
  }
  .noticias__dot {
    width: 12px;
    height: 12px;
  }
  .noticias__dot--active {
    transform: scale(1.25);
  }

  .nav__list {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    opacity: 0;
    transition: all var(--transition);
    pointer-events: none;
  }

  .nav__list--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__toggle--active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav__toggle--active span:nth-child(2) {
    opacity: 0;
  }

  .nav__toggle--active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__brand p {
    margin: 0 auto;
  }

  .footer__social {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 16px;
  }
}

/* DYNAMIC PAGES */
.dynamic-page {
  padding-top: 96px;
  min-height: 60vh;
}

.dynamic-page__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 2rem;
  transition: opacity 0.2s;
}

.dynamic-page__back:hover {
  opacity: 0.7;
}

.dynamic-page__header {
  margin-bottom: 2.5rem;
}

.dynamic-page__date {
  display: block;
  color: var(--text-light);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.dynamic-page__title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.dynamic-page__body {
  font-size: 1.0625rem;
  line-height: 1.8;
  max-width: 720px;
  overflow-wrap: break-word;
  word-break: break-word;
  overflow: hidden;
}

.dynamic-page__body p {
  margin-bottom: 1.25rem;
}

/* FIX: imagens do corpo da noticia nao quebrarem layout por width */
.dynamic-page__body * {
  max-width: 100%;
}
.dynamic-page__body img {
  display: block;
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  max-height: 70vh;
  object-fit: contain;
  margin: 18px auto;
  border-radius: 12px;
  cursor: zoom-in;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.dynamic-page__body img:hover {
  box-shadow: var(--shadow-lg);
  transform: scale(1.01);
}
.dynamic-page__body figure {
  margin: 20px auto;
  max-width: 100%;
  text-align: center;
}
.dynamic-page__body figure img {
  margin: 0 auto;
}
.dynamic-page__body figcaption {
  font-size: .85rem;
  color: var(--text-light);
  margin-top: 8px;
}
.dynamic-page__body iframe,
.dynamic-page__body video {
  max-width: 100% !important;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  display: block;
  margin: 18px auto;
}
.dynamic-page__cover {
  cursor: zoom-in;
  transition: box-shadow var(--transition), transform var(--transition);
}
.dynamic-page__cover:hover {
  box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
  .dynamic-page {
    padding-top: 80px;
  }

  .dynamic-page__title {
    font-size: 1.5rem;
  }

  .dynamic-page__body {
    font-size: 1rem;
  }
}

/* TRANSPARENCY PAGE */
.transp-page__subtitle {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.transp-page__docs {
  max-width: 720px;
  margin: 0 auto 3rem;
}

.transp-page__docs-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 20px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  transition: border-color var(--transition);
}
.transp-page__docs-toggle:hover {
  border-color: var(--primary);
}

.transp-page__docs-chevron {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.transp-page__docs-toggle[aria-expanded="true"] .transp-page__docs-chevron {
  transform: rotate(180deg);
}

.transp-page__docs-collapsible {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.35s ease, margin 0.35s ease;
  margin-top: 0;
}
.transp-page__docs-toggle[aria-expanded="true"] + .transp-page__docs-collapsible {
  max-height: 1000px;
  opacity: 1;
  margin-top: 12px;
}

.transp-page__doc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.transp-page__doc-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
}

.transp-page__doc-link::before {
  content: '';
  width: 20px;
  height: 20px;
  background: var(--primary);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='16' y1='13' x2='8' y2='13'/%3E%3Cline x1='16' y1='17' x2='8' y2='17'/%3E%3Cpolyline points='10 9 9 9 8 9'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='16' y1='13' x2='8' y2='13'/%3E%3Cline x1='16' y1='17' x2='8' y2='17'/%3E%3Cpolyline points='10 9 9 9 8 9'/%3E%3C/svg%3E") center / contain no-repeat;
  flex-shrink: 0;
}

.transp-page__doc-link.excel::before {
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='8' y1='13' x2='16' y2='13'/%3E%3Cline x1='8' y1='17' x2='16' y2='17'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='8' y1='13' x2='16' y2='13'/%3E%3Cline x1='8' y1='17' x2='16' y2='17'/%3E%3C/svg%3E") center / contain no-repeat;
}

.transp-page__doc-link:hover {
  border-color: var(--primary);
  background: rgba(26, 107, 138, 0.04);
  transform: translateX(4px);
}

.transp-page__cards {
  max-width: 860px;
  margin: 0 auto;
}

.transp-page__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.transp-page__card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition), box-shadow var(--transition);
}

.transp-page__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.transp-page__card-body {
  flex: 1;
}

.transp-page__card-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.transp-page__card-text {
  color: var(--text-light);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .transp-page__grid {
    grid-template-columns: 1fr;
  }
}

/* EQUIPE PAGE - collapsible sections */
.equipe-section__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 20px;
  background: var(--bg);
  border: none;
  border-bottom: 3px solid var(--border);
  border-radius: 0;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.equipe-section__toggle:hover {
  border-bottom-color: var(--primary);
  background: rgba(26, 107, 138, 0.04);
}
.equipe-section__title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.equipe-section__chevron {
  transition: transform 0.3s ease;
  flex-shrink: 0;
  color: var(--text-light);
}
.equipe-section__toggle[aria-expanded="true"] .equipe-section__chevron {
  transform: rotate(180deg);
  color: var(--primary);
}
.equipe-section__collapsible {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.35s ease;
}
.equipe-section__toggle[aria-expanded="true"] + .equipe-section__collapsible {
  max-height: 5000px;
  opacity: 1;
}
.equipe-section__content {
  padding-top: 20px;
}

/* ESCALA DE PLANTÕES — acordeão ano > mês com PDF */
.escala-year {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-alt);
}
.escala-year .equipe-section__toggle {
  background: var(--bg-alt);
  font-size: 1.1rem;
}
.escala-year .equipe-section__content {
  padding: 16px;
}
.escala-month {
  border-top: 1px solid var(--border);
}
.escala-month .equipe-section__toggle {
  background: var(--bg);
  font-size: 1rem;
  padding: 14px 18px;
  border-bottom-width: 2px;
}
.escala-month .equipe-section__content {
  padding-top: 14px;
}
.escala-pdf {
  display: block;
  width: 100%;
  height: 560px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-alt);
}
.escala-pdf__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}
.escala-pdf__link:hover {
  text-decoration: underline;
}
.escala-empty {
  text-align: center;
  color: var(--text-light);
  font-style: italic;
  padding: 6px 0 12px;
}
/* acordeões aninhados (ano > mês) podem passar de 5000px quando vários PDFs abertos */
.escala-year .equipe-section__toggle[aria-expanded="true"] + .equipe-section__collapsible {
  max-height: 30000px;
}
@media (max-width: 768px) {
  .escala-pdf {
    height: 420px;
  }
  .escala-year .equipe-section__toggle {
    font-size: 1.02rem;
    padding: 14px 16px;
  }
}

.equipe-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 8px;
}
.equipe-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  transition: background var(--transition);
}
.equipe-list__item:last-child {
  border-bottom: none;
}
.equipe-list__item:hover {
  background: rgba(26, 107, 138, 0.03);
}
.equipe-list__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.equipe-list__nome {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}
.equipe-list__meta {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ===== View Transitions ===== */
@keyframes vt-fade-in {
  from { opacity: 0; }
}
@keyframes vt-fade-out {
  to { opacity: 0; }
}
@keyframes vt-slide-from-right {
  from { opacity: 0; transform: translateX(24px); }
}
@keyframes vt-slide-to-left {
  to { opacity: 0; transform: translateX(-24px); }
}

::view-transition-old(root) {
  animation: 200ms ease-out both vt-fade-out, 200ms ease-out both vt-slide-to-left;
}
::view-transition-new(root) {
  animation: 250ms ease-out both vt-fade-in, 250ms ease-out both vt-slide-from-right;
}

::view-transition-old(header) {
  animation: none;
}
::view-transition-new(header) {
  animation: none;
}

/* NOTICIA LIGHTBOX - expandir imagens do corpo */
.noticia-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.noticia-lightbox--open {
  display: flex;
}
.noticia-lightbox__overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 20, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.noticia-lightbox__container {
  position: relative;
  width: 100%;
  max-width: 960px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}
.noticia-lightbox__img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  background: #000;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  user-select: none;
  -webkit-user-drag: none;
}
.noticia-lightbox__caption {
  margin-top: 16px;
  color: #fff;
  font-size: 0.95rem;
  text-align: center;
  max-width: 640px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.noticia-lightbox__counter {
  margin-top: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}
.noticia-lightbox__close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  z-index: 2;
}
.noticia-lightbox__close:hover {
  background: rgba(255,255,255,0.2);
}
.noticia-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  z-index: 2;
  backdrop-filter: blur(4px);
}
.noticia-lightbox__nav:hover {
  background: rgba(255,255,255,0.2);
}
.noticia-lightbox__nav--prev { left: -60px; }
.noticia-lightbox__nav--next { right: -60px; }
@media (max-width: 1100px) {
  .noticia-lightbox__nav--prev { left: 8px; }
  .noticia-lightbox__nav--next { right: 8px; }
}
@media (max-width: 640px) {
  .noticia-lightbox { padding: 20px 12px; }
  .noticia-lightbox__nav { width: 40px; height: 40px; }
  .noticia-lightbox__close { top: -36px; right: 4px; }
}

/* INDICADORES - grid mensal */
.indicadores-meses-grid{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:8px;
}
@media (max-width:640px){
  .indicadores-meses-grid{grid-template-columns:repeat(3,1fr);}
}

/* INDICADORES - card de mês com botão de info (motivos de alta) */
.ind-mes-card{ position:relative; transition: background var(--transition), border-color var(--transition); }
.ind-mes-card--alta{ padding-left:6px !important; padding-right:6px !important; }
.ind-mes-info{
  position:absolute;
  top:4px;
  right:4px;
  width:19px;
  height:19px;
  padding:0;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  border:1px solid var(--border);
  background:var(--bg-alt);
  color:var(--text-light);
  line-height:1;
  cursor:pointer;
  z-index:5;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.ind-mes-info svg{ display:block; flex-shrink:0; }
.ind-mes-info:hover,
.ind-mes-info:focus-visible{
  background:var(--primary);
  border-color:var(--primary);
  color:#fff;
  outline:none;
}
.ind-mes-info::after{
  content:attr(data-tooltip);
  position:absolute;
  top:calc(100% + 5px);
  right:-1px;
  left:auto;
  transform:none;
  background:#0f172a;
  color:#fff;
  font-size:.66rem;
  font-weight:600;
  font-style:normal;
  letter-spacing:.02em;
  padding:4px 8px;
  border-radius:6px;
  white-space:nowrap;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition: opacity .15s ease;
  z-index:40;
  box-shadow:0 4px 12px rgba(15,23,42,.25);
}
.ind-mes-info:hover::after,
.ind-mes-info:focus-visible::after{ opacity:1; visibility:visible; }

/* ===== MODAL MOTIVOS DE ALTA (INTERNACÕES) ===== */
.alta-modal{
  position:fixed;
  inset:0;
  z-index:1200;
  display:none;
  align-items:center;
  justify-content:center;
  padding:20px;
}
.alta-modal.active{ display:flex; }
.alta-modal__overlay{
  position:absolute;
  inset:0;
  background:rgba(15,23,42,.62);
  backdrop-filter:blur(2px);
}
.alta-modal__box{
  position:relative;
  width:100%;
  max-width:520px;
  max-height:86vh;
  overflow:auto;
  background:var(--bg);
  border:1px solid var(--border);
  border-radius:14px;
  box-shadow:0 24px 60px rgba(15,23,42,.35);
  animation: altaModalIn .18s ease;
}
@keyframes altaModalIn{ from{ opacity:0; transform:translateY(10px) scale(.98); } to{ opacity:1; transform:none; } }
.alta-modal__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:16px 18px 12px;
  border-bottom:1px solid var(--border);
}
.alta-modal__tag{
  display:inline-block;
  font-size:.66rem;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--primary);
  background:rgba(26,107,138,.1);
  padding:3px 8px;
  border-radius:100px;
  margin-bottom:6px;
}
.alta-modal__title{
  margin:0;
  font-size:1.05rem;
  font-weight:800;
  color:var(--text);
  line-height:1.3;
}
.alta-modal__close{
  flex-shrink:0;
  width:32px;
  height:32px;
  border-radius:50%;
  border:1px solid var(--border);
  background:var(--bg-alt);
  color:var(--text-light);
  font-size:1.2rem;
  line-height:1;
  cursor:pointer;
  transition: background .15s ease, color .15s ease;
}
.alta-modal__close:hover{ background:var(--primary); border-color:var(--primary); color:#fff; }
.alta-modal__body{ padding:14px 18px 18px; }
.alta-empty{
  font-size:.84rem;
  color:var(--text-light);
  background:var(--bg-alt);
  border:1px dashed var(--border);
  border-radius:8px;
  padding:14px;
  text-align:center;
  margin-bottom:12px;
}
.alta-list{ display:flex; flex-direction:column; gap:8px; }
.alta-row{
  display:grid;
  grid-template-columns: minmax(110px,1.2fr) minmax(60px,1fr) auto 52px;
  align-items:center;
  gap:10px;
  padding:8px 10px;
  background:var(--bg-alt);
  border:1px solid var(--border);
  border-radius:8px;
}
.alta-row--zero{ opacity:.6; }
.alta-row__label{ font-size:.82rem; font-weight:600; color:var(--text); }
.alta-row__track{ display:block; height:6px; background:var(--border); border-radius:100px; overflow:hidden; }
.alta-row__fill{ display:block; height:100%; background:var(--primary); border-radius:100px; transition: width .3s ease; }
.alta-row__value{ font-size:.9rem; font-weight:800; color:var(--text); text-align:right; min-width:28px; }
.alta-row__pct{ font-size:.72rem; font-weight:600; color:var(--text-light); text-align:right; }
.alta-foot{
  display:flex;
  flex-wrap:wrap;
  gap:8px 16px;
  justify-content:space-between;
  margin-top:12px;
  padding-top:12px;
  border-top:1px dashed var(--border);
  font-size:.8rem;
  color:var(--text-light);
}
.alta-foot strong{ color:var(--text); font-weight:800; }
@media (max-width:480px){
  .alta-row{ grid-template-columns: minmax(90px,1fr) auto 46px; }
  .alta-row__track{ display:none; }
}

/* INDICADORES - dropdowns ano/categoria */
.indicadores-ano{
  margin:18px 0;
  border:1px solid var(--border);
  border-radius:12px;
  overflow:hidden;
  background: var(--bg);
}
.indicadores-ano__toggle{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 18px;
  background:var(--bg-alt);
  border:none;
  border-bottom:1px solid transparent;
  cursor:pointer;
  text-align:left;
  transition: background .2s, border-color .2s;
}
.indicadores-ano__toggle[aria-expanded="true"]{
  background:var(--bg);
  border-bottom-color:var(--border);
}
.indicadores-ano__toggle:hover{
  background:var(--bg);
}
.indicadores-ano__title{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:1.15rem;
  font-weight:800;
  color:var(--text);
  letter-spacing:-.02em;
}
.indicadores-ano__badge{
  font-size:.82rem;
  font-weight:700;
  color:#fff;
  background:var(--primary);
  padding:6px 12px;
  border-radius:100px;
  white-space:nowrap;
}
.indicadores-ano__chevron{
  flex-shrink:0;
  color:var(--text-light);
  transition: transform .3s;
}
.indicadores-ano__toggle[aria-expanded="true"] .indicadores-ano__chevron{
  transform:rotate(180deg);
  color:var(--primary);
}
.indicadores-ano__collapsible{
  max-height:0;
  opacity:0;
  overflow:hidden;
  transition: max-height .4s ease, opacity .3s ease;
}
.indicadores-ano__toggle[aria-expanded="true"] + .indicadores-ano__collapsible{
  max-height:8000px;
  opacity:1;
}
.indicadores-ano__content{
  padding:16px;
}
.indicadores-cat{
  margin-top:14px;
  border:1px solid var(--border);
  border-radius:10px;
  overflow:hidden;
  background:var(--bg);
}
.indicadores-cat:first-child{ margin-top:0; }
.indicadores-cat__toggle{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:12px 16px;
  background:var(--bg);
  border:none;
  border-bottom:1px solid transparent;
  cursor:pointer;
  text-align:left;
}
.indicadores-cat__toggle[aria-expanded="true"]{
  border-bottom-color:var(--border);
  background:var(--bg-alt);
}
.indicadores-cat__title{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:1rem;
  font-weight:700;
  color:var(--text);
}
.indicadores-cat__badge{
  font-size:.78rem;
  font-weight:700;
  color:var(--primary);
  background:rgba(26,107,138,.08);
  padding:5px 10px;
  border-radius:100px;
  white-space:nowrap;
}
.indicadores-cat__chevron{
  flex-shrink:0;
  color:var(--text-light);
  transition: transform .3s;
}
.indicadores-cat__toggle[aria-expanded="true"] .indicadores-cat__chevron{
  transform:rotate(180deg);
  color:var(--primary);
}
.indicadores-cat__collapsible{
  max-height:0;
  opacity:0;
  overflow:hidden;
  transition: max-height .35s ease, opacity .25s ease;
}
.indicadores-cat__toggle[aria-expanded="true"] + .indicadores-cat__collapsible{
  max-height:4000px;
  opacity:1;
}
.indicadores-cat__content{
  padding:14px;
}
.indicadores-sub{
  margin-top:12px;
  border:1px solid var(--border);
  border-radius:8px;
  overflow:hidden;
  background:var(--bg-alt);
}
.indicadores-sub:first-child{ margin-top:0; }
.indicadores-sub__toggle{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 14px;
  background:var(--bg);
  border:none;
  border-bottom:1px solid transparent;
  cursor:pointer;
  text-align:left;
}
.indicadores-sub__toggle[aria-expanded="true"]{
  border-bottom-color:var(--border);
  background:var(--bg-alt);
}
.indicadores-sub__title{
  font-size:.9rem;
  font-weight:700;
  color:var(--text);
}
.indicadores-sub__badge{
  font-size:.75rem;
  font-weight:700;
  color:var(--primary);
  background:var(--bg);
  padding:4px 10px;
  border-radius:100px;
  border:1px solid var(--border);
  white-space:nowrap;
}
.indicadores-sub__chevron{
  flex-shrink:0;
  color:var(--text-light);
  transition: transform .3s;
}
.indicadores-sub__toggle[aria-expanded="true"] .indicadores-sub__chevron{
  transform:rotate(180deg);
  color:var(--primary);
}
.indicadores-sub__collapsible{
  max-height:0;
  opacity:0;
  overflow:hidden;
  transition: max-height .3s ease, opacity .25s ease;
}
.indicadores-sub__toggle[aria-expanded="true"] + .indicadores-sub__collapsible{
  max-height:3000px;
  opacity:1;
}
.indicadores-sub__content{
  padding:12px;
}

/* ===== SKELETONS - carregamento async ===== */
.skeleton{
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.2s infinite linear;
  border-radius: 8px;
  min-height: 12px;
}

body.a11y-dark .skeleton{
  background: linear-gradient(90deg, #1e2a3a 25%, #253448 50%, #1e2a3a 75%);
  background-size: 200% 100%;
}
@keyframes skeleton-shimmer{
  0%{background-position: 200% 0;}
  100%{background-position: -200% 0;}
}
.skeleton-slide{
  min-width:100%;
  display:flex;
  background: var(--bg);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow);
  min-height:300px;
}
@media(max-width:768px){
  .skeleton-slide{flex-direction:column;}
}
.skeleton-gallery{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
}
@media(max-width:768px){ .skeleton-gallery{grid-template-columns:repeat(2,1fr);} }
@media(max-width:480px){ .skeleton-gallery{grid-template-columns:1fr;} }
.skeleton-gallery__item{
  aspect-ratio:4/3;
  border-radius: var(--radius);
  overflow:hidden;
}
.skeleton-card{
  background: var(--bg);
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:20px;
}
.skeleton-text{ height:12px; margin-bottom:10px; border-radius:6px; }
.skeleton-text--sm{ height:10px; width:60%; }
.skeleton-title{ height:18px; width:75%; margin-bottom:12px; }
.skeleton-img{ height:160px; border-radius:8px; margin-bottom:12px; }
.skeleton-dynamic{
  max-width:720px;
  margin:0 auto;
}
.skeleton-dynamic__line{ height:14px; margin-bottom:12px; }
.skeleton-dynamic__line--short{ width:55%; }
.skeleton-dynamic__line--mid{ width:85%; }

/* ===== TEMA: correções para garantir funcionamento perfeito em todas as rotas ===== */
body.a11y-dark .nav__list {
  background: rgba(8,12,20,0.98) !important;
  border-color: var(--border) !important;
}
body.a11y-dark .nav__link { color: var(--text); }
body.a11y-dark .nav__toggle span { background: var(--text); }

body.a11y-dark .dynamic-page { background: var(--bg); }
body.a11y-dark .dynamic-page__body { color: var(--text); }
body.a11y-dark .noticias__slide,
body.a11y-dark .noticia-card,
body.a11y-dark .gallery__item,
body.a11y-dark .gallery-page__item,
body.a11y-dark .transp-page__doc-link,
body.a11y-dark .transp-page__card,
body.a11y-dark .transp-page__docs-toggle,
body.a11y-dark .indicadores-ano,
body.a11y-dark .indicadores-cat,
body.a11y-dark .indicadores-sub,
body.a11y-dark .equipe-section__toggle,
body.a11y-dark .equipe-list__item {
  background: var(--bg) !important;
  border-color: var(--border) !important;
  color: var(--text);
}
body.a11y-dark .indicadores-ano__toggle { background: var(--bg-alt) !important; }
body.a11y-dark .indicadores-ano__toggle[aria-expanded="true"] { background: var(--bg) !important; }
body.a11y-dark .indicadores-cat__toggle { background: var(--bg) !important; }
body.a11y-dark .indicadores-cat__toggle[aria-expanded="true"] { background: var(--bg-alt) !important; }
body.a11y-dark .indicadores-sub { background: var(--bg-alt) !important; }
body.a11y-dark .indicadores-sub__toggle { background: var(--bg) !important; }
body.a11y-dark .indicadores-sub__toggle[aria-expanded="true"] { background: var(--bg-alt) !important; }
body.a11y-dark .indicadores-sub__badge { background: var(--bg) !important; }
body.a11y-dark .indicadores-meses-grid > div { background: var(--bg) !important; border-color: var(--border) !important; }
body.a11y-dark .gallery-group__count { background: var(--bg-alt) !important; color: var(--text-light) !important; }
body.a11y-dark .section__tag { background: rgba(42,155,191,0.18) !important; }
body.a11y-dark .btn--outline { border-color: var(--primary-light); color: var(--primary-light); }
body.a11y-dark .btn--outline:hover { background: var(--primary); color: #fff; }

/* Corrige células de meses dos indicadores para usar variáveis (evita #fff hardcoded em dark) */
.indicadores-meses-grid > div { transition: background var(--transition), border-color var(--transition); }

/* High contrast – garante bg-alt distinto para alternância visível */
body.a11y-high-contrast { --bg-alt: #f0f2f5 !important; }
body.a11y-high-contrast .section__tag { border: 1.5px solid currentColor; }
body.a11y-high-contrast.a11y-dark { --bg-alt: #1a2332 !important; }

/* ===== 404 - Página não encontrada ===== */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding-top: 88px !important;
  padding-bottom: 64px;
}
.error-page__inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  padding-top: 88px;
  isolation: isolate;
}
.error-page__code {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90vw;
  max-width: 90vw;
  text-align: center;
  font-size: clamp(9rem, 32vw, 22rem);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.08em;
  color: var(--primary);
  opacity: 0.08;
  user-select: none;
  pointer-events: none;
  z-index: 0;
  margin: 0;
  white-space: nowrap;
  filter: blur(0.3px);
  display: block;
}
.error-page__icon {
  width: 112px;
  height: 112px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(22px) saturate(1.6);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  border: 1.5px solid rgba(12,69,94,0.16);
  outline: 4px solid rgba(12,69,94,0.06);
  outline-offset: 2px;
  position: relative;
  z-index: 1;
  box-shadow: 0 16px 48px rgba(12,69,94,0.08), inset 0 1px 0 rgba(255,255,255,0.30), inset 0 -1px 0 rgba(255,255,255,0.06);
}
.error-page__title,
.error-page__desc,
.error-page__path,
.error-page__actions,
.error-page__links { position: relative; z-index: 1; }
.error-page__title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.2;
}
.error-page__desc {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 8px;
}
.error-page__path {
  display: inline-block;
  margin: 12px 0 28px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-light);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 100px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: break-all;
}
.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 36px;
}
.error-page__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.error-page__links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition), transform var(--transition);
}
.error-page__links a:hover {
  color: var(--primary-dark);
  transform: translateY(-1px);
}
.error-page__links a svg {
  flex-shrink: 0;
  opacity: 0.8;
}
@media (max-width: 480px) {
  .error-page__actions .btn { width: 100%; }
  .error-page__actions { flex-direction: column; }
}

/* ===== CONTEUDO SENSIVEL ===== */
.sens {
  position: relative;
  overflow: hidden;
}
span.sens {
  display: block;
}
.sens > img,
.sens > .noticias__image,
.sens > .noticia-card__image {
  filter: blur(22px) saturate(1.15);
  transform: scale(1.08);
  transition: filter 0.3s ease, transform 0.3s ease;
}
.sens--on > img,
.sens--on > .noticias__image,
.sens--on > .noticia-card__image {
  filter: none;
  transform: none;
}
.sens__veil {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 10px;
  text-align: center;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #fff;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}
.sens__veil b {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}
.sens__veil span {
  font-size: 0.68rem;
  font-weight: 400;
  opacity: 0.9;
}
.sens--on .sens__veil {
  display: none;
}
