:root {
    --green: #2b3198;
    --green2: #1597bb;
    --gold: #27b1cf;
    --bg: #f4f7fc;
    --text: #17254b;
    --muted: #65728a;
    --white: #fff;
    --shadow: 0 20px 50px rgba(43, 49, 152, .14);
    --radius: 24px
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: Inter, Segoe UI, Arial, sans-serif;
    color: var(--text);
    background: var(--bg)
}

.container {
    width: min(1120px, 92%);
    margin: auto
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .06)
}

.nav {
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.brand img {
    height: 200px;
    max-width: 200px
}

nav {
    display: flex;
    gap: 26px;
    align-items: center
}

nav a {
    color: var(--green);
    text-decoration: none;
    font-weight: 700;
    font-size: .94rem
}

.nav-cta {
    background: var(--green);
    color: #fff !important;
    padding: 11px 18px;
    border-radius: 999px
}

.menu-btn {
    display: none;
    border: 0;
    background: var(--green);
    color: white;
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 22px
}

.hero {
    min-height: 760px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #293194, #1597bb 52%, #27b1cf);
    background-size: cover;
    background-position: center
}

.hero-bg:after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 75% 25%, rgba(255, 255, 255, .18), transparent 32%)
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(18, 28, 83, .88), rgba(23, 54, 108, .64), rgba(38, 86, 157, .22))
}

.hero-content {
    position: relative;
    color: white;
    padding-top: 80px
}

.eyebrow,
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .78rem
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 6.8rem);
    line-height: .95;
    margin: 18px 0
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    max-width: 720px;
    color: #eef5fb;
    line-height: 1.65
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 34px
}

.btn {
    display: inline-block;
    text-decoration: none;
    border-radius: 999px;
    padding: 15px 24px;
    font-weight: 900
}

.primary {
    background: var(--gold);
    color: #17254b
}

.secondary {
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .35);
    color: white
}

.quick-info {
    margin-top: -70px;
    position: relative;
    z-index: 3
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px
}

.info-card,
.process-card,
.doc-card,
.contact-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow)
}

.info-card {
    padding: 26px
}

.info-card span {
    color: var(--gold);
    font-weight: 900
}

.info-card h3 {
    margin: 10px 0 8px;
    color: var(--green)
}

.info-card p {
    color: var(--muted);
    line-height: 1.55;
    margin: 0
}

.section {
    padding: 100px 0
}

.soft {
    background: #edf4fb
}

.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center
}

.reverse {
    grid-template-columns: 1fr 1fr
}

.section h2 {
    font-size: clamp(2rem, 4vw, 3.25rem);
    color: var(--green);
    margin: 12px 0 18px;
    line-height: 1.08
}

.section p {
    color: var(--muted);
    font-size: 1.06rem;
    line-height: 1.75
}

.image-card {
    border-radius: 34px;
    overflow: hidden;
    min-height: 420px;
    box-shadow: var(--shadow);
    background: #dbe6f2
}

.image-card img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    display: block
}

.feature-list {
    display: grid;
    gap: 12px;
    margin-top: 25px
}

.feature {
    background: #fff;
    border-left: 5px solid var(--gold);
    padding: 15px 18px;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .05);
    font-weight: 700
}

.section-head {
    max-width: 760px;
    margin-bottom: 36px
}

.section-head.row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    max-width: none;
    gap: 30px
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px
}

.process-card {
    padding: 28px;
    border: 1px solid #dbe6f2
}

.process-card h3 {
    color: var(--green);
    margin: 0 0 10px
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 28px
}

.stat {
    background: white;
    padding: 22px;
    border-radius: 20px;
    box-shadow: var(--shadow)
}

.stat strong {
    display: block;
    color: var(--green);
    font-size: 2rem
}

.stat span {
    color: var(--muted)
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px
}

.gallery figure {
    margin: 0;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow)
}

.gallery img {
    width: 100%;
    height: 245px;
    object-fit: cover;
    display: block
}

.gallery figcaption {
    padding: 16px;
    font-weight: 800;
    color: var(--green)
}

.documents {
    display: grid;
    gap: 14px
}

.doc-card {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid #dbe6f2
}

.doc-card h3 {
    margin: 0 0 4px;
    color: var(--green)
}

.doc-card p {
    margin: 0;
    color: var(--muted);
    font-size: .95rem
}

.doc-card a {
    white-space: nowrap;
    background: var(--green);
    color: white;
    text-decoration: none;
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 800
}

.contact {
    background: linear-gradient(135deg, var(--green), #1a7fa8);
    color: white
}

.contact-card {
    padding: 46px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    background: white
}

.contact h2 {
    color: var(--green)
}

footer {
    padding: 28px 0;
    background: #252b82;
    color: #dbe6f2
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 20px
}

.hidden {
    display: none !important
}

@media(max-width:900px) {
    .menu-btn {
        display: block
    }

    nav {
        position: absolute;
        top: 78px;
        left: 0;
        right: 0;
        background: white;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
        width: 100%;
        box-shadow: var(--shadow)
    }

    nav.open {
        display: flex
    }

    .hero {
        min-height: 680px
    }

    .info-grid,
    .two-columns,
    .process-grid,
    .gallery,
    .contact-card {
        grid-template-columns: 1fr
    }

    .quick-info {
        margin-top: -35px
    }

    .section {
        padding: 70px 0
    }

    .section-head.row {
        display: block
    }

    .stats {
        grid-template-columns: 1fr
    }

    .footer-content {
        flex-direction: column
    }

    .doc-card {
        align-items: flex-start;
        flex-direction: column
    }
}

/* =========================================
   PÁGINA DE DOCUMENTOS
========================================= */

.documents-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f3f6fb;
  color: #17254b;
}

.documents-page main {
  flex: 1;
}

/* Cabeçalho */

.documents-page .site-header {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 4px 24px rgba(43, 49, 152, 0.09);
  position: relative;
  z-index: 50;
}

.documents-page #menu a {
  position: relative;
}

.documents-page #menu a.active {
  color: #267fae;
}

.documents-page #menu a.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -10px;
  height: 3px;
  border-radius: 10px;
  background: #28abc8;
}

/* Hero */

.documents-hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 118px;
  color: #ffffff;
  background:
    linear-gradient(
      135deg,
      #202878 0%,
      #176d9e 48%,
      #6546aa 100%
    );
}

.documents-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image:
    linear-gradient(
      rgba(255, 255, 255, 0.4) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.4) 1px,
      transparent 1px
    );
  background-size: 46px 46px;
}

.documents-hero-decoration {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.decoration-one {
  width: 360px;
  height: 360px;
  top: -180px;
  right: 5%;
  background: rgba(72, 190, 213, 0.16);
}

.decoration-two {
  width: 220px;
  height: 220px;
  right: 24%;
  bottom: -130px;
  border: 42px solid rgba(255, 255, 255, 0.05);
}

.documents-hero-content {
  position: relative;
  z-index: 2;
}

.documents-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 34px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

.documents-breadcrumb a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: 0.2s ease;
}

.documents-breadcrumb a:hover {
  color: #79d8e8;
}

.documents-breadcrumb strong {
  color: #ffffff;
  font-weight: 600;
}

.documents-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: #68cfe2;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.documents-eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  border-radius: 20px;
  background: #68cfe2;
}

.documents-hero h1 {
  max-width: 750px;
  margin: 0 0 22px;
  color: #ffffff;
  font-size: clamp(40px, 5vw, 66px);
  line-height: 1.05;
  letter-spacing: -2px;
}

.documents-hero p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.79);
  font-size: 18px;
  line-height: 1.7;
}

/* Área principal */

.documents-content {
  position: relative;
  z-index: 5;
  margin-top: -62px;
  padding: 0 0 90px;
}

.documents-panel {
  padding: 38px;
  border: 1px solid rgba(43, 49, 152, 0.08);
  border-radius: 28px;
  background: #ffffff;
  box-shadow:
    0 28px 70px rgba(43, 49, 152, 0.13),
    0 5px 14px rgba(43, 49, 152, 0.05);
}

.documents-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 32px;
  padding-bottom: 30px;
  border-bottom: 1px solid #dfe7f2;
}

.documents-section-tag {
  display: inline-block;
  margin-bottom: 10px;
  color: #267fae;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.documents-panel-header h2 {
  margin: 0 0 9px;
  color: #222d83;
  font-size: clamp(29px, 4vw, 41px);
  line-height: 1.15;
  letter-spacing: -1px;
}

.documents-panel-header p {
  max-width: 550px;
  margin: 0;
  color: #66748d;
  font-size: 15px;
  line-height: 1.7;
}

.documents-security-info {
  min-width: 280px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 19px;
  border: 1px solid #dce7f3;
  border-radius: 16px;
  background: #f6f9fd;
}

.security-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #2c56a8;
  font-size: 19px;
  font-weight: 800;
}

.documents-security-info div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.documents-security-info strong {
  color: #25336f;
  font-size: 14px;
}

.documents-security-info small {
  color: #6d7890;
  font-size: 12px;
  line-height: 1.4;
}

/* Lista de documentos */

.documents-page .documents.page-list {
  display: grid;
  gap: 17px;
}

.documents-page .document-card {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  position: relative;
  overflow: hidden;
  padding: 22px 24px;
  border: 1px solid #dce7f2;
  border-radius: 19px;
  background:
    linear-gradient(
      135deg,
      #ffffff 0%,
      #fbfcff 100%
    );
  box-shadow: 0 5px 15px rgba(43, 49, 152, 0.04);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.documents-page .document-card::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 5px;
  opacity: 0;
  background: #28abc8;
  transition: opacity 0.22s ease;
}

.documents-page .document-card:hover {
  transform: translateY(-3px);
  border-color: #b9cee4;
  box-shadow: 0 16px 34px rgba(43, 49, 152, 0.10);
}

.documents-page .document-card:hover::before {
  opacity: 1;
}

.documents-page .document-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 16px;
  color: #ffffff;
  background:
    linear-gradient(
      145deg,
      #27358f,
      #1599bd
    );
  box-shadow: 0 9px 18px rgba(39, 91, 173, 0.20);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.7px;
}

.documents-page .document-info {
  min-width: 0;
}

.documents-page .document-category {
  display: inline-flex;
  align-items: center;
  margin-bottom: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #286f9e;
  background: #e8f7fc;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.documents-page .document-info h3 {
  margin: 0 0 8px;
  overflow-wrap: anywhere;
  color: #24317f;
  font-size: 18px;
  line-height: 1.35;
}

.documents-page .document-date {
  margin: 0;
  color: #707c92;
  font-size: 13px;
}

.documents-page .document-button {
  min-width: 166px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 19px;
  border: 0;
  border-radius: 13px;
  color: #17254b;
  background: #36b6d0;
  box-shadow: 0 7px 16px rgba(39, 177, 207, 0.22);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.documents-page .document-button::after {
  content: "↗";
  font-size: 16px;
}

.documents-page .document-button:hover {
  transform: translateY(-2px);
  color: #ffffff;
  background: #3b45a8;
  box-shadow: 0 10px 22px rgba(55, 74, 171, 0.20);
}

/* Estado vazio ou carregando */

.documents-page .empty-state {
  margin: 0;
  padding: 44px 24px;
  border: 1px dashed #c4d5e6;
  border-radius: 18px;
  color: #6b7890;
  background: #f7faff;
  text-align: center;
  font-size: 15px;
}

/* Rodapé */

.documents-page footer {
  margin-top: auto;
}

/* Responsividade */

@media (max-width: 900px) {
  .documents-panel-header {
    flex-direction: column;
  }

  .documents-security-info {
    width: 100%;
    min-width: 0;
  }

  .documents-page .document-card {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .documents-page .document-button {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 650px) {
  .documents-hero {
    padding: 64px 0 94px;
  }

  .documents-breadcrumb {
    margin-bottom: 26px;
  }

  .documents-hero h1 {
    font-size: 41px;
    letter-spacing: -1.3px;
  }

  .documents-hero p {
    font-size: 16px;
  }

  .documents-content {
    margin-top: -42px;
    padding-bottom: 60px;
  }

  .documents-panel {
    padding: 24px 18px;
    border-radius: 22px;
  }

  .documents-panel-header {
    margin-bottom: 23px;
    padding-bottom: 23px;
  }

  .documents-panel-header h2 {
    font-size: 29px;
  }

  .documents-page .document-card {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 15px;
    padding: 18px;
    border-radius: 16px;
  }

  .documents-page .document-icon {
    width: 52px;
    height: 52px;
    border-radius: 13px;
    font-size: 11px;
  }

  .documents-page .document-info h3 {
    font-size: 16px;
  }

  .documents-page .document-category {
    font-size: 10px;
  }

  .documents-page .document-button {
    margin-top: 2px;
  }

  .documents-page #menu a.active::after {
    display: none;
  }
}

/* =========================================================
   PÁGINA INICIAL — CORREÇÕES DE LAYOUT E RESPONSIVIDADE
   Estas regras ficam no final para substituir estilos antigos.
========================================================= */

.home-page {
    background: #f4f7fc;
    color: #24317f;
}

.home-page main {
    overflow: hidden;
}

/* Cabeçalho */

.home-page .site-header {
    z-index: 100;
}

.home-page .brand {
    display: flex;
    align-items: center;
}

.home-page .brand img {
    width: auto;
    height: 48px;
    max-width: 180px;
    object-fit: contain;
}

/* Hero */

.home-page .hero {
    min-height: 700px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 118px 0 150px;
    background: #222a7e;
}

.home-page .hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, #222a7e 0%, #118eaf 55%, #6747ad 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.home-page .hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at 78% 28%,
            rgba(255, 255, 255, 0.14),
            transparent 34%
        );
}

.home-page .hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(23, 31, 91, 0.97) 0%,
            rgba(22, 75, 132, 0.88) 48%,
            rgba(77, 71, 163, 0.34) 100%
        );
}

.home-page .hero-content {
    position: relative;
    z-index: 2;
    width: min(1120px, 92%);
    padding-top: 0;
    color: #fff;
}

.home-page .hero .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: #48bed5;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-page .hero .eyebrow::before {
    content: "";
    width: 32px;
    height: 2px;
    border-radius: 999px;
    background: #48bed5;
}

.home-page .hero h1 {
    max-width: 790px;
    margin: 0 0 24px;
    color: #fff;
    font-size: clamp(3.4rem, 5.2vw, 4.9rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.home-page .hero p {
    max-width: 660px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1.05rem, 1.55vw, 1.28rem);
    line-height: 1.65;
}

.home-page .hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
}

.home-page .hero-actions .btn {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 25px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 900;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.home-page .hero-actions .primary {
    color: #17254b;
    background: #32b4d0;
    box-shadow: 0 10px 24px rgba(39, 177, 207, 0.23);
}

.home-page .hero-actions .primary:hover {
    transform: translateY(-2px);
    background: #69d0e3;
}

.home-page .hero-actions .secondary {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(7px);
}

.home-page .hero-actions .secondary:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.18);
}

/* Cards logo abaixo do hero */

.home-page .quick-info {
    position: relative;
    z-index: 5;
    margin-top: -52px;
    padding: 0 0 70px;
}

.home-page .info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 300px));
    justify-content: start;
    gap: 20px;
}

.home-page .info-card {
    min-height: 164px;
    position: relative;
    overflow: hidden;
    padding: 28px;
    border: 1px solid rgba(43, 49, 152, 0.08);
    border-radius: 22px;
    background: #fff;
    box-shadow:
        0 22px 50px rgba(43, 49, 152, 0.13),
        0 4px 12px rgba(43, 49, 152, 0.05);
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease;
}

.home-page .info-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #3154a8, #27b1cf);
}

.home-page .info-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 28px 60px rgba(43, 49, 152, 0.16),
        0 5px 14px rgba(43, 49, 152, 0.06);
}

.home-page .info-card .info-icon,
.home-page .info-card > span {
    display: inline-flex;
    margin-bottom: 15px;
    color: #2b9fbd;
    font-size: 0.85rem;
    font-weight: 900;
}

.home-page .info-card h3 {
    margin: 0 0 9px;
    color: #24317f;
    font-size: 1.15rem;
    line-height: 1.35;
}

.home-page .info-card p {
    margin: 0;
    color: #69768e;
    font-size: 0.92rem;
    line-height: 1.6;
}

/* Seções */

.home-page .section {
    padding: 88px 0;
}

.home-page #sobre {
    padding-top: 38px;
}

.home-page .section-tag {
    margin-bottom: 12px;
}

.home-page .section h2 {
    margin: 10px 0 18px;
    color: #27358f;
    font-size: clamp(2.15rem, 4vw, 3.15rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.home-page .section p {
    color: #66748c;
    line-height: 1.75;
}

/* Esconde cartões de imagem sem arquivo cadastrado. */

.home-page .image-card img:not([src]),
.home-page .image-card img[src=""] {
    display: none;
}

.home-page .image-card:has(img:not([src])),
.home-page .image-card:has(img[src=""]) {
    display: none;
}

/* Tablet */

@media (max-width: 900px) {
    .home-page .brand img {
        height: 44px;
        max-width: 165px;
    }

    .home-page .hero {
        min-height: 650px;
        padding: 112px 0 135px;
    }

    .home-page .hero h1 {
        max-width: 680px;
        font-size: clamp(3rem, 8vw, 4.3rem);
    }

    .home-page .quick-info {
        margin-top: -46px;
        padding-bottom: 60px;
    }

    .home-page .info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Celular */

@media (max-width: 650px) {
    .home-page .nav {
        height: 72px;
    }

    .home-page nav {
        top: 72px;
    }

    .home-page .brand img {
        height: 40px;
        max-width: 150px;
    }

    .home-page .hero {
        min-height: auto;
        padding: 116px 0 105px;
    }

    .home-page .hero h1 {
        max-width: 100%;
        margin-bottom: 20px;
        font-size: clamp(2.65rem, 13vw, 3.45rem);
        line-height: 1.03;
        letter-spacing: -0.04em;
    }

    .home-page .hero p {
        font-size: 1rem;
    }

    .home-page .hero-actions {
        align-items: stretch;
        flex-direction: column;
        margin-top: 26px;
    }

    .home-page .hero-actions .btn {
        width: 100%;
    }

    .home-page .quick-info {
        margin-top: -38px;
        padding-bottom: 52px;
    }

    .home-page .info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .home-page .info-card {
        min-height: auto;
        padding: 23px;
        border-radius: 18px;
    }

    .home-page .section {
        padding: 64px 0;
    }

    .home-page #sobre {
        padding-top: 12px;
    }
}
#documentos .section-actions {
  margin-top: 32px;
}

/* =========================================================
   CORREÇÕES GERAIS — LOGO, CABEÇALHO E RODAPÉ
   Manter este bloco no final do arquivo.
========================================================= */

/* Faz o rodapé permanecer no final mesmo em páginas curtas. */
body {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
}

main {
    width: 100%;
    flex: 1 0 auto;
}

footer {
    width: 100%;
    margin-top: auto;
    flex-shrink: 0;
}

/* Corrige o tamanho e o posicionamento da logo em todas as páginas. */
.site-header .brand {
    width: 190px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
    overflow: hidden;
}

.site-header .brand img,
.home-page .brand img {
    display: block;
    width: 180px;
    height: auto;
    max-width: 100%;
    max-height: 58px;
    object-fit: contain;
    object-position: left center;
}

/*
   Galeria e Segurança/PAE usam cabeçalho fixo.
   Este espaço impede que o conteúdo fique escondido atrás dele.
   A página de documentos já usa cabeçalho relativo.
*/
body:not(.home-page):not(.documents-page) main {
    padding-top: 78px;
}

/* Evita que títulos e imagens ultrapassem a largura da tela. */
.page-hero,
.page-hero .container,
.section,
.section .container {
    min-width: 0;
}

.page-hero h1,
.section h2,
.page-hero p,
.section p {
    overflow-wrap: anywhere;
}

/* Tablet e celular. */
@media (max-width: 900px) {
    .site-header .brand {
        width: 175px;
    }

    .site-header .brand img,
    .home-page .brand img {
        width: 165px;
        max-height: 54px;
    }
}

@media (max-width: 650px) {
    .site-header .brand {
        width: 165px;
    }

    .site-header .brand img,
    .home-page .brand img {
        width: 155px;
        max-height: 50px;
    }

    body:not(.home-page):not(.documents-page) main {
        padding-top: 78px;
    }
}

/* =========================================================
   IDENTIDADE VISUAL HIDROELÉTRICA LAJEADO
   Azul, ciano e violeta inspirados na logo.
========================================================= */

:root {
    --green: #2b3198;
    --green2: #1597bb;
    --gold: #27b1cf;
    --bg: #f4f7fc;
    --text: #17254b;
    --muted: #65728a;
    --white: #ffffff;
    --shadow: 0 20px 50px rgba(43, 49, 152, 0.14);
}

/*
   O arquivo logo.svg possui bastante espaço vazio dentro da própria imagem.
   Por isso a imagem é ampliada dentro de uma área recortada.
*/
.site-header .brand {
    width: 220px;
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
    overflow: hidden;
}

.site-header .brand img,
.home-page .brand img {
    width: 430px;
    height: auto;
    max-width: none;
    max-height: none;
    display: block;
    object-fit: initial;
    transform: translateX(-26px);
    transform-origin: left center;
}

/* Cabeçalho e navegação */
.site-header {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(43, 49, 152, 0.08);
}

nav a {
    color: #27358f;
}

nav a:hover {
    color: #1597bb;
}

.nav-cta,
.menu-btn {
    color: #ffffff !important;
    background: linear-gradient(135deg, #293194, #1597bb);
}

/* Botões */
.btn.primary,
.documents-page .document-button {
    color: #ffffff;
    background: linear-gradient(135deg, #2b3198 0%, #1597bb 100%);
    box-shadow: 0 10px 24px rgba(43, 49, 152, 0.22);
}

.btn.primary:hover,
.documents-page .document-button:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #1597bb 0%, #6546aa 100%);
}

/* Hero da página inicial */
.home-page .hero,
.home-page .hero-bg {
    background:
        linear-gradient(
            135deg,
            #202878 0%,
            #176d9e 50%,
            #6546aa 100%
        );
}

.home-page .hero-overlay {
    background:
        linear-gradient(
            90deg,
            rgba(22, 27, 83, 0.97) 0%,
            rgba(19, 76, 128, 0.86) 52%,
            rgba(91, 67, 160, 0.28) 100%
        );
}

/* Hero das páginas internas */
.page-hero {
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            #232b85 0%,
            #157fa9 58%,
            #6546aa 100%
        );
}

.page-hero h1,
.page-hero p {
    color: #ffffff;
}

/* Títulos, detalhes e cartões */
.section h2,
.doc-card h3,
.info-card h3,
.process-card h3,
.contact h2 {
    color: #27358f;
}

.eyebrow,
.section-tag,
.documents-eyebrow,
.documents-section-tag {
    color: #1597bb;
}

.home-page .info-card::before {
    background: linear-gradient(90deg, #2b3198, #1597bb, #6546aa);
}

.soft {
    background: #edf4fb;
}

.info-card,
.process-card,
.doc-card,
.contact-card,
.documents-panel {
    border-color: #dbe6f2;
}

/* Rodapé */
footer {
    color: #ffffff;
    background: linear-gradient(135deg, #202878 0%, #27358f 58%, #176d9e 100%);
}

/* Celular */
@media (max-width: 900px) {
    .site-header .brand {
        width: 205px;
        height: 78px;
    }

    .site-header .brand img,
    .home-page .brand img {
        width: 405px;
        transform: translateX(-24px);
    }
}

@media (max-width: 650px) {
    .site-header .brand {
        width: 205px;
        height: 72px;
    }

    .site-header .brand img,
    .home-page .brand img {
        width: 400px;
        transform: translateX(-24px);
    }

    .menu-btn {
        min-width: 48px;
        min-height: 48px;
    }
}

/* =========================================================
   CORREÇÃO FINAL DA LOGO — SEM CORTE
   Este bloco deve permanecer no final do arquivo.
========================================================= */

.site-header .brand,
.home-page .site-header .brand {
    width: 230px;
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
    overflow: visible;
}

.site-header .brand img,
.home-page .brand img {
    display: block;
    width: auto;
    height: 62px;
    max-width: 220px;
    max-height: 62px;
    object-fit: contain;
    object-position: left center;
    transform: none;
}

@media (max-width: 900px) {
    .site-header .brand,
    .home-page .site-header .brand {
        width: 215px;
        height: 78px;
    }

    .site-header .brand img,
    .home-page .brand img {
        width: auto;
        height: 58px;
        max-width: 205px;
        max-height: 58px;
        transform: none;
    }
}

@media (max-width: 650px) {
    .site-header .brand,
    .home-page .site-header .brand {
        width: 210px;
        height: 72px;
    }

    .site-header .brand img,
    .home-page .brand img {
        width: auto;
        height: 56px;
        max-width: 200px;
        max-height: 56px;
        transform: none;
    }
}

/* =========================================================
   LOGO MAIOR — SEM CORTE
   A logo.svg tem espaço transparente interno, então a largura
   precisa ser maior que a área visual realmente exibida.
========================================================= */

.site-header .brand,
.home-page .site-header .brand {
    position: relative;
    width: 285px;
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
    overflow: visible;
    z-index: 2;
}

.site-header .brand img,
.home-page .site-header .brand img,
.home-page .brand img {
    display: block;
    width: 350px;
    height: auto;
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: left center;
    transform: none;
}

@media (max-width: 900px) {
    .site-header .brand,
    .home-page .site-header .brand {
        width: 245px;
        height: 78px;
    }

    .site-header .brand img,
    .home-page .site-header .brand img,
    .home-page .brand img {
        width: 325px;
        height: auto;
        max-width: none;
        max-height: none;
        transform: none;
    }
}

@media (max-width: 650px) {
    .site-header .brand,
    .home-page .site-header .brand {
        width: 225px;
        height: 72px;
    }

    .site-header .brand img,
    .home-page .site-header .brand img,
    .home-page .brand img {
        width: 310px;
        height: auto;
        max-width: none;
        max-height: none;
        transform: none;
    }
}

/* =========================================================
   TRATAMENTO RESPONSIVO DE BANNERS E FOTOS
   Mantém proporção, evita deformação e melhora o enquadramento
   em computador, tablet e celular.
========================================================= */

/* Nenhuma imagem comum pode ultrapassar o próprio contêiner. */
img {
    max-width: 100%;
}

/* ---------------------------------------------------------
   BANNER PRINCIPAL
--------------------------------------------------------- */

/*
   No computador e tablet o banner preenche toda a área.
   O corte é feito de forma centralizada, sem deformar a foto.
*/
.home-page .hero-bg {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: var(--hero-position, center center);
}

/*
   A camada escura mantém o texto legível sem esconder totalmente
   a fotografia.
*/
.home-page .hero-overlay {
    background:
        linear-gradient(
            90deg,
            rgba(18, 28, 83, 0.94) 0%,
            rgba(20, 61, 116, 0.72) 48%,
            rgba(32, 78, 132, 0.20) 100%
        );
}

/*
   Para uma fotografia cuja área importante esteja mais à direita,
   pode-se ajustar somente esta variável:
   --hero-position: 58% center;
*/
.home-page .hero {
    --hero-position: center center;
}

/* ---------------------------------------------------------
   FOTOS INSTITUCIONAIS
--------------------------------------------------------- */

.image-card {
    width: 100%;
    min-width: 0;
    min-height: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #e8eef8;
}

.image-card img {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: block;
    object-fit: cover;
    object-position: var(--image-position, center center);
}

/* ---------------------------------------------------------
   GALERIA
--------------------------------------------------------- */

.gallery figure {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.gallery img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    display: block;
    object-fit: cover;
    object-position: var(--image-position, center center);
    background: #e8eef8;
}

.gallery figcaption {
    flex: 1;
}

/* Galeria completa: formato um pouco mais panorâmico. */
.gallery-page img {
    aspect-ratio: 16 / 10;
}

/* ---------------------------------------------------------
   CLASSE OPCIONAL PARA EXIBIR UMA FOTO INTEIRA
--------------------------------------------------------- */

/*
   Use a classe "show-full-image" quando a imagem não puder sofrer
   nenhum corte, por exemplo:

   <div class="image-card show-full-image">
       <img src="...">
   </div>
*/
.show-full-image img,
img.show-full-image {
    object-fit: contain !important;
    object-position: center !important;
    background: #edf3fb;
}

/* ---------------------------------------------------------
   TABLET
--------------------------------------------------------- */

@media (max-width: 900px) {
    .home-page .hero {
        --hero-position: 55% center;
    }

    .image-card {
        aspect-ratio: 16 / 10;
    }

    .gallery img,
    .gallery-page img {
        aspect-ratio: 16 / 10;
    }
}

/* ---------------------------------------------------------
   CELULAR
--------------------------------------------------------- */

@media (max-width: 650px) {
    /*
       No celular, em vez de esticar uma foto horizontal por trás de
       um banner muito alto, a fotografia ganha uma faixa própria no
       topo. Isso permite visualizar a imagem inteira sem deformá-la.
    */
    .home-page .hero {
        min-height: auto;
        padding:
            calc(72px + 56.25vw + 42px)
            0
            105px;
        background:
            linear-gradient(
                150deg,
                #18236f 0%,
                #176d9e 55%,
                #6048aa 100%
            );
    }

    .home-page .hero-bg {
        top: 72px;
        right: 0;
        bottom: auto;
        left: 0;
        width: 100%;
        height: 56.25vw;
        min-height: 210px;
        max-height: 330px;
        background-size: contain;
        background-position: center center;
        background-repeat: no-repeat;
        background-color: #17236d;
    }

    .home-page .hero-overlay {
        top: 72px;
        right: 0;
        bottom: auto;
        left: 0;
        width: 100%;
        height: 56.25vw;
        min-height: 210px;
        max-height: 330px;
        background:
            linear-gradient(
                180deg,
                rgba(18, 28, 83, 0.04) 0%,
                rgba(18, 28, 83, 0.30) 100%
            );
    }

    .home-page .hero-content {
        width: min(100% - 48px, 1120px);
    }

    .image-card,
    .gallery img,
    .gallery-page img {
        aspect-ratio: 16 / 10;
    }
}
