/* === Consolidado: Base + componentes + responsivo (do seu CSS) === */
*{
    margin: 0;
    padding: 0;
    font-family: 'RobotoSlab-Regular';
}

body{
    background: #ECEBEB;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 999;
}

.modal-content {
    background: #fff;
    width: 100%;
    height: 90%;
    margin: 2% auto;
    border-radius: 8px;
    position: relative;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
}

.modal-body {
    display: flex;
    height: 100%;
}

.sidebar { width: 0%; background: #f2f2f2; padding: 0px; overflow-y: auto; }
.sidebar ul { list-style: none; padding: 0; }
.sidebar li { padding: 10px; cursor: pointer; border-bottom: 1px solid #ddd; }
.sidebar li:hover { background: #ddd; }
.viewer { width: 100%; }
.viewer iframe { width: 100%; height: 100%; border: none; }

@font-face {
  font-family: "RobotoSlab-Regular";
  src: local(RobotoSlab-Regular), url(../fontes/roboto-slab/RobotoSlab-Regular.ttf)
}
@font-face {
  font-family: "akagipro-light";
  src: local(akagipro-light), url(../fontes/akagipro/akagipro-light.ttf)
}

/* ... (mantidos os seus media queries e componentes) ... */

@media (max-width: 689px) {
  .header_sac_busca_email{ display:none; }
  header{ position: fixed; float:left; width:100%; height:65px; margin-top:-50px; background-color:#0471B5; }
  .header_conteudo{ display:inline-block; margin:0 auto; width:98%; height:65px; }
  .header_Logomarca img{ display:inline-block; width:130px; margin-top:7px; }
  /* ... (restante do bloco mobile que você forneceu) ... */
  
  /* Cards */
  .menu-container{ display:flex; justify-content:center; align-items:center; flex-wrap:wrap; gap:16px; padding:16px; text-align:center; }
  .menu-card{ display:inline-flex; flex-direction:column; align-items:center; justify-content:center; text-decoration:none; color:inherit; background:#1E265F; color:#FFF; border:1px solid #e5e5e5; border-radius:8px; padding:12px 16px; min-width:180px; box-shadow:0 2px 6px rgba(0,0,0,0.08); transition:transform 0.15s ease, box-shadow 0.15s ease; }
  .menu-card:hover,.menu-card:focus{ transform:translateY(-2px); box-shadow:0 6px 16px rgb(150,150,150); outline:none; color:#322D6D; background:#F1F0F0; }
  .menu-card h3{ text-transform:uppercase; font-size:14px; line-height:1.3; margin:8px 0 12px; font:14px 'MagallanesCondBold-Italic'; font-weight:600; line-height:1.2; font-family:'Martel Sans', sans-serif; }
  .menu-card img{ display:block; width:90px; height:90px; }
}

@media ((min-width: 690px) and (max-width: 1024px)) {
  /* ... (mantidos os seus estilos para tablet) ... */
  .menu-container{ display:flex; justify-content:center; align-items:center; flex-wrap:wrap; gap:16px; padding:16px; text-align:center; }
  .menu-card{ display:inline-flex; flex-direction:column; align-items:center; justify-content:center; text-decoration:none; color:inherit; background:#1E265F; color:#FFF; border:1px solid #e5e5e5; border-radius:8px; padding:12px 16px; min-width:180px; box-shadow:0 2px 6px rgba(0,0,0,0.08); transition:transform 0.15s ease, box-shadow 0.15s ease; }
  .menu-card:hover,.menu-card:focus{ transform:translateY(-2px); box-shadow:0 6px 16px rgb(150,150,150); outline:none; color:#322D6D; background:#F1F0F0; }
  .menu-card h3{ text-transform:uppercase; font-size:14px; line-height:1.3; margin:8px 0 12px; font:14px 'MagallanesCondBold-Italic'; font-weight:600; line-height:1.2; font-family:'Martel Sans', sans-serif; }
  .menu-card img{ display:block; width:90px; height:90px; }
}

@media (min-width: 1025px) {
  /* ... (mantidos os seus estilos desktop para header, content, cards etc.) ... */
  .menu-container{ display:flex; justify-content:center; align-items:center; flex-wrap:wrap; gap:16px; padding:16px; text-align:center; }
  .menu-card{ display:inline-flex; flex-direction:column; align-items:center; justify-content:center; text-decoration:none; color:inherit; background:#1E265F; color:#FFF; border:1px solid #e5e5e5; border-radius:8px; padding:12px 16px; min-width:180px; box-shadow:0 2px 6px rgba(0,0,0,0.08); transition:transform 0.15s ease, box-shadow 0.15s ease; }
  .menu-card:hover,.menu-card:focus{ transform:translateY(-2px); box-shadow:0 6px 16px rgb(150,150,150); outline:none; color:#322D6D; background:#F1F0F0; }
  .menu-card h3{ text-transform:uppercase; font-size:14px; line-height:1.3; margin:8px 0 12px; font:14px 'MagallanesCondBold-Italic'; font-weight:600; line-height:1.2; font-family:'Martel Sans', sans-serif; }
  .menu-card img{ display:block; width:90px; height:90px; }
}

/* Componentes adicionais (download list, modal 2, etc.) */
:root {
  --bg: #0b0f14;
  --card: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.12);
  --text: #e8edf2;
  --muted: #a7b1bd;
  --primary: #1E265F;
  --primary-strong: #1E265F;
  --shadow: 0 5px 15px rgba(0,0,0,0.25);
  --radius: 14px;
  --gap: 18px;
}
.pai{ width:100%; margin-top:40px; }
.container{ width:100%; margin:0 auto; }
.download-list{ width:100%; padding:0; margin:0; display:grid; gap:var(--gap); }
.download-item{ width:100%; max-width:100%; min-width:auto; display:grid; grid-template-columns:1fr auto; align-items:center; gap:16px; padding:18px 18px 18px 20px; background:var(--card); border:1px solid var(--card-border); border-radius:var(--radius); box-shadow:var(--shadow); backdrop-filter:blur(8px); transition:0.2s ease; }
.download-item:hover{ transform:translateY(-2px); border-color:var(--primary); background:rgba(255,255,255,0.1); }
.info{ width:100%; }
.title{ font-size:1.1rem; float:left; text-align:left; line-height:1.5; color:#3d3d3d; }
.meta{ margin:4px 0 0; color:var(--muted); }
.btn-download{ --btn-bg:#1E265F; display:inline-flex; align-items:center; gap:8px; padding:0 14px; background:var(--btn-bg); color:#fff; border-radius:10px; text-decoration:none; font-weight:400; transition:0.2s ease; }
.btn-download:hover{ transform:scale(1.05); --btn-bg:#d4d4d4; color:#1E265F; }
.icon svg{ display:block; margin-top:20px; color:#FFF; }
.icon svg:hover{ color:#0077ff; }

/* Modal leve (variação) */
.modal.is-open{ display:block; }
.modal__backdrop{ position:absolute; inset:0; background:rgba(0,0,0,.55); }
.modal__content{ position:relative; width:min(560px,92vw); margin:10vh auto; background:#fff; border-radius:12px; padding:18px 18px 14px; box-shadow:0 12px 40px rgba(0,0,0,.3); }
.modal__close{ position:absolute; top:10px; right:12px; font-size:24px; border:0; background:transparent; cursor:pointer; }
.modal__subtitle{ margin:6px 0 14px; color:#555; }
.modal__list a{ display:flex; justify-content:space-between; align-items:center; padding:10px 12px; margin-bottom:8px; border:1px solid #e6e6e6; border-radius:10px; text-decoration:none; color:inherit; }
.modal__list a:hover{ background:#f7f7f7; }
.file-meta{ font-size:12px; color:#666; }


/* === Portal-home: fundo + cartão + grade (conforme seu mock) === */
html, body { height: 100%; }

/* Fundo aplicado no body.portal-home */
body.portal-home {
  background: url("../imagens/local.jpg") center / cover no-repeat;
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: scroll;
}
@media (min-width: 1025px){ body.portal-home { background-attachment: fixed; } }
@media (hover: none) and (pointer: coarse){ body.portal-home { background-attachment: scroll; } }

/* Overlay leve */
body.portal-home::before{
  content:""; position:fixed; inset:0; z-index:0; background:rgba(0,0,0,0.08); pointer-events:none;
}

/* Eleva as camadas do conteúdo */
body.portal-home header,
body.portal-home main,
body.portal-home footer {
  position: relative;
  z-index: 1;
  background: transparent;
}

/* Cartão central */
body.portal-home .contentIntroducao{
  width: min(1100px, 90vw);
  margin: 0;
  padding: clamp(18px, 3vw, 36px) clamp(18px, 3vw, 44px);
  background: rgba(255,255,255,0.95);
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
  border: 1px solid rgba(0,0,0,.05);
}

/* Título/texto */
body.portal-home .contentIntroducao h1{
  text-align:center;
  font-family: 'Roboto Slab','RobotoSlab-Regular',serif;
  font-weight:700; color:#EF7302; font-size:clamp(28px,3.2vw,40px); line-height:1.15; margin:0 0 16px;
}
body.portal-home .contentIntroducao .txtInicial,
body.portal-home .contentIntroducao > p{
  max-width:100%; margin:0 auto 24px; color:#8FA1B3;
  font-family:'Roboto Slab', Arial, sans-serif; font-size:clamp(14px,1.6vw,16px); line-height:1.7; text-align:justify; background:transparent; padding:0; border:0;
}

/* Grade de cards */
body.portal-home .menu-container{
 width: 100%; justify-items:center; align-items:stretch; padding:0; text-align:center; margin-top:10px;
}
body.portal-home .menu-card{
  width:min(260px,100%); min-height:140px; padding:16px 18px; border-radius:10px; background:#1E265F; color:#fff; text-decoration:none; display:grid; place-items:center; box-shadow:0 6px 14px rgba(0,0,0,.25); border:2px solid rgba(255,255,255,0.04); transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
body.portal-home .menu-card:hover,
body.portal-home .menu-card:focus{ transform:translateY(-3px); box-shadow:0 12px 22px rgba(0,0,0,.28); background:#24307a; outline:none; }
body.portal-home .menu-card h3{ margin:8px 0 0; text-transform:uppercase; font-weight:700; font-size:13px; line-height:1.15; color:#fff; font-family:'Martel Sans','Roboto Slab', Arial, sans-serif; }
body.portal-home .menu-card img{ display:block; width:90px; height:90px; object-fit:contain; filter: drop-shadow(0 1px 0 rgba(0,0,0,.15)); }

/* Footer aparência */
body.portal-home footer{ background-color:#292929; }
body.portal-home footer p{ color:#ffffff; font-size:12px; text-align:center; margin:20px auto; }

/* Responsivo */
@media (max-width: 1024px) {
  body.portal-home .contentIntroducao { border-radius: 22px; }
  body.portal-home .menu-container { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body.portal-home .contentIntroducao { border-radius: 18px; }
  body.portal-home .menu-container { grid-template-columns: 1fr; }
}


/* ===== PATCH FINAL: Footer normal (sticky) + main sem corte ===== */
html, body { height: 100%; }

body.portal-home {
  display: flex !important;
  flex-direction: column !important;
  min-height: 100vh !important;
  overflow-x: hidden;
}

/* MAIN cresce; compensação do header fixo via var (opcional) */
body.portal-home main {
  flex: 1 0 auto !important;
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
  padding-top: var(--header-h, 0px) !important;
}

/* Cartão sem margens verticais extras */
body.portal-home .contentIntroducao { margin: 0 !important; }

/* Footer no fluxo (NÃO FIXO) e colado ao final natural */
body.portal-home .portal-footer {
  position: static !important;
  left: auto !important; right: auto !important; bottom: auto !important;
  width: 100% !important; height: auto !important;
  margin-top: auto !important;
  transform: none !important;
  z-index: auto !important;
}

/* Neutraliza quaisquer margens herdadas no main */
@media (max-width: 689px),
       (min-width: 690px) and (max-width: 1024px),
       (min-width: 1025px) {
  body.portal-home main { margin-top: 0 !important; margin-bottom: 0 !important; }
}

/* Footer “print” (visual), mantendo sticky natural */
body.portal-home .portal-footer {
  background: #efefef; border-top: 1px solid #e0e0e0; padding: 20px 16px 18px; color: #666; line-height: 1.35; clear: both;
}
body.portal-home .portal-footer .footer-links { display:flex; flex-wrap:wrap; justify-content:center; gap:18px 26px; margin:0 auto 10px; padding:0; }
body.portal-home .portal-footer .footer-links a { color:#5c5c5c; text-decoration:none; font-size:14px; white-space:nowrap; }
body.portal-home .portal-footer .footer-links a:hover,
body.portal-home .portal-footer .footer-links a:focus { color:#ff810a; outline:none; }
body.portal-home .portal-footer .footer-address { margin:22px 0 0; text-align:center; font-size:14px; color:#5c5c5c; }
@media (max-width: 768px){
  body.portal-home .portal-footer .footer-links { gap:12px 16px; }
  body.portal-home .portal-footer .footer-links a { font-size:12px; }
  body.portal-home .portal-footer .footer-address { font-size:11.5px; }
}



/* === PATCH 2026-03-04: Centralizar .contentIntroducao + margin-top de 150px === */
body.portal-home .contentIntroducao {
  width: min(1100px, 90vw) !important;
  margin: 120px auto 0 !important;
}

body.portal-home main {
  margin: 0 !important;
  padding-top: var(--header-h, 0px) !important;
}

@media (max-height: 700px) {
  body.portal-home .contentIntroducao { margin-top: 96px !important; }
}



/* === PATCH: Download list ocupa 100% (como a 1ª imagem) === */

/* 1) A lista passa a ter 1 coluna fluida (100%) e estica os itens */
.download-list {
  display: grid !important;
  grid-template-columns: 1fr !important;   /* ocupa toda a largura útil do container */
  justify-items: stretch !important;       /* cada <li> estica na coluna */
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* 2) Cada item ocupa 100% e mantém o texto à esquerda / botão à direita */
.download-item {
  display: grid !important;
  grid-template-columns: 1fr auto !important; /* texto (1fr) + botão (auto) */
  align-items: center !important;
  gap: 16px !important;

  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;                 /* permite encolhimento do conteúdo */
  box-sizing: border-box !important;
}

/* 3) O título não deve flutuar; o Grid já alinha tudo */
.download-item .title {
  float: none !important;                   /* neutraliza o float do CSS atual */
  text-align: left !important;
  min-width: 0 !important;                  /* evita overflow de linhas longas */
}

/* 4) Segurança extra se algum ancestral estiver centralizando */
.contentIntroducao .download-list,
.contentIntroducao .download-list > .download-item {
  justify-self: stretch !important;
  align-self: stretch !important;
}

