:root{
  --bg:#f7f3ee;
  --card:#ffffff;
  --text:#2b2521;
  --muted:#6d625c;
  --brand:#1f4d3a;
  --line:rgba(43,37,33,.12);
  --shadow:0 12px 30px rgba(0,0,0,.08);
  --radius:18px;
  --footer-h:64px;
}

*{
  box-sizing:border-box;
  min-width:0;
}

html{
  scroll-behavior:smooth;
}

html, body{
  height:100%;
}

body{
  margin:0;
  font-family:system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:#f7f3ee;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  overflow-x:hidden;
}

main{
  flex:1;
  min-height:calc(100vh - var(--footer-h));
  padding-bottom:calc(var(--footer-h) + 28px);
}

a{
  color:var(--brand);
  text-decoration:none;
}

a:hover{
  text-decoration:underline;
}

.container{
  max-width:1080px;
  margin:0 auto;
  padding:0 18px;
}

/* ================= HEADER / NAV ================= */
.header{
  position:sticky;
  top:0;
  z-index:30;
  backdrop-filter:saturate(160%) blur(12px);
  background:rgba(247,243,238,.88);
  border-bottom:1px solid var(--line);
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:12px 0;
  position:relative;
  flex-wrap:wrap;
}

.brand{
  display:flex;
  flex-direction:column;
  line-height:1.1;
}

.brand strong{
  font-size:16px;
  color:var(--brand);
  letter-spacing:.4px;
}

.brand span{
  font-size:12px;
  color:var(--muted);
}

.menu{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:flex-end;
}

.menu a{
  font-size:13px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid transparent;
}

.menu a:hover{
  border-color:var(--line);
  background:rgba(255,255,255,.6);
  text-decoration:none;
}

.menu a.active{
  border-color:var(--line);
  background:rgba(255,255,255,.85);
  font-weight:700;
}

.nav-toggle{
  display:none;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  border-radius:12px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.65);
  cursor:pointer;
}

.nav-toggle:hover{
  background:rgba(255,255,255,.9);
}

.nav-toggle-bars{
  width:20px;
  height:2px;
  background:var(--text);
  border-radius:99px;
  position:relative;
  display:block;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after{
  content:"";
  position:absolute;
  left:0;
  width:100%;
  height:2px;
  background:var(--text);
  border-radius:99px;
  transition:transform .2s ease, top .2s ease, bottom .2s ease, opacity .2s ease;
}

.nav-toggle-bars::before{
  top:-6px;
}

.nav-toggle-bars::after{
  bottom:-6px;
}

body.nav-open .nav-toggle-bars{
  background:transparent;
}

body.nav-open .nav-toggle-bars::before{
  top:0;
  transform:rotate(45deg);
}

body.nav-open .nav-toggle-bars::after{
  bottom:0;
  transform:rotate(-45deg);
}

button, a{
  -webkit-tap-highlight-color:transparent;
}

.menu a{
  touch-action:manipulation;
}

/* ================= HERO / CARDS / SECTIONS ================= */
.hero{
  padding:38px 0 18px;
}

.hero-grid{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:18px;
  align-items:stretch;
}

.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
  width:100%;
}

.card .pad{
  padding:18px;
  overflow-wrap:anywhere;
  word-break:break-word;
}

.h1{
  font-size:34px;
  letter-spacing:-.6px;
  margin:0 0 8px;
  overflow-wrap:anywhere;
}

.p{
  margin:0;
  color:var(--muted);
  line-height:1.55;
  overflow-wrap:anywhere;
}

.badges{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:14px;
}

.badge{
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding:10px 12px;
  border-radius:14px;
  border:1px dashed var(--line);
  background:rgba(247,243,238,.6);
  font-size:13px;
  width:100%;
  overflow-wrap:anywhere;
}

.badge b{
  color:var(--text);
}

.section{
  padding:18px 0;
}

.section h2{
  margin:0 0 10px;
  font-size:22px;
  letter-spacing:-.2px;
  color:var(--brand);
  overflow-wrap:anywhere;
}

.grid2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  align-items:stretch;
}

.list{
  margin:10px 0 0;
  padding-left:18px;
  color:var(--muted);
  line-height:1.6;
}

.kv{
  display:grid;
  grid-template-columns:1fr auto;
  gap:10px;
  align-items:center;
}

.kv + .kv{
  margin-top:8px;
  padding-top:8px;
  border-top:1px solid var(--line);
}

.kv .k{
  color:var(--muted);
  overflow-wrap:anywhere;
}

.kv .v{
  font-weight:700;
  color:var(--text);
  overflow-wrap:anywhere;
  text-align:right;
}

.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  table-layout:fixed;
}

.table td,
.table th{
  border-top:1px solid var(--line);
  padding:12px 14px;
  vertical-align:top;
  overflow-wrap:anywhere;
  word-break:break-word;
}

.table th{
  color:var(--muted);
  font-weight:600;
  text-align:left;
  background:rgba(247,243,238,.65);
}

.table tr:first-child th,
.table tr:first-child td{
  border-top:none;
}

.table td:first-child,
.table th:first-child{
  width:42%;
  font-weight:700;
  color:var(--brand);
}

.table td:last-child,
.table th:last-child{
  width:58%;
}

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

.gallery img{
  width:100%;
  height:170px;
  object-fit:cover;
  border-radius:14px;
  border:1px solid var(--line);
}

.pdf-pages img{
  width:100%;
  height:auto;
  border-radius:14px;
  border:1px solid var(--line);
}

.small{
  font-size:12px;
  color:var(--muted);
  overflow-wrap:anywhere;
}

hr.sep{
  border:none;
  border-top:1px solid var(--line);
  margin:14px 0;
}

/* ================= PAGE HERO ================= */
.page-hero{
  padding:28px 0 18px;
}

.page-hero .card{
  width:min(77vw, 1200px);
  max-width:none;
  margin-left:50%;
  transform:translateX(-50%);
  border-radius:18px;
}

.page-hero .card .pad{
  padding:42px 24px;
  min-height:170px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
}

.page-hero h1{
  margin:0 0 10px;
  font-size:clamp(28px, 3.2vw, 42px);
  letter-spacing:-.4px;
  color:var(--brand);
  overflow-wrap:anywhere;
}

.page-hero p{
  margin:0;
  color:var(--muted);
  line-height:1.6;
  max-width:60ch;
  overflow-wrap:anywhere;
}

/* ================= HOME ================= */
.home-hero{
  min-height:100vh;
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:32px 0 90px;
  margin:0;
  background:linear-gradient(135deg, #1f4d3a 0%, #163828 100%);
  border-radius:0;
  box-shadow:none;
  color:#fff;
}

.home-hero .pad{
  width:min(1280px, 92vw);
  text-align:center;
}

.home-hero h1{
  color:#fff;
  font-size:clamp(28px, 4vw, 44px);
  margin:0 0 10px;
  line-height:1.15;
}

.home-hero p{
  margin:0 0 28px;
  color:rgba(255,255,255,.85);
  font-size:clamp(14px, 1.4vw, 18px);
  overflow-wrap:anywhere;
}

/* Ícones */
.icon-grid{
  width:100%;
  display:grid;
  grid-template-columns:repeat(5, minmax(0, 1fr));
  gap:24px;
  margin-top:0;
  align-items:stretch;
  grid-auto-rows:1fr;
}

.icon-btn{
  width:100%;
  height:100%;
  min-height:185px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  gap:14px;
  padding:22px 16px;
  border-radius:24px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.22);
  text-decoration:none;
  color:#fff;
  transition:transform .25s ease, background .25s ease, border-color .25s ease;
  backdrop-filter:blur(4px);
  text-align:center;
  overflow:hidden;
}

.icon-btn:hover{
  background:rgba(255,255,255,.16);
  transform:translateY(-4px);
  text-decoration:none;
}

.icon-btn .ico{
  width:82px;
  height:82px;
  min-width:82px;
  display:grid;
  place-items:center;
  border-radius:22px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.22);
  flex-shrink:0;
}

.icon-btn svg{
  width:34px;
  height:34px;
  fill:none;
  stroke:#fff;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.icon-btn span{
  display:block;
  width:100%;
  max-width:100%;
  font-size:16px;
  font-weight:700;
  letter-spacing:.2px;
  text-align:center;
  line-height:1.3;
  white-space:normal;
  word-break:break-word;
  overflow-wrap:anywhere;
  margin-top:auto;
  margin-bottom:auto;
}

body.home{
  background:#1f4d3a;
}

body.home .header{
  display:none;
}

/* ================= BOTÃO VOLTAR ================= */
.back-welcome-wrap{
  display:flex;
  justify-content:center;
  margin:4px 0 18px;
}

.back-welcome{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 16px;
  border-radius:999px;
  background:#1f4d3a;
  color:#fff;
  border:1px solid rgba(31,77,58,.18);
  box-shadow:0 8px 20px rgba(0,0,0,.08);
  font-size:14px;
  font-weight:700;
  transition:.2s ease;
  text-align:center;
}

.back-welcome:hover{
  background:#163828;
  color:#fff;
  text-decoration:none;
  transform:translateY(-2px);
}

.back-home{
  display:none;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.75);
  font-size:13px;
  white-space:normal;
  text-align:center;
}

.back-home:hover{
  text-decoration:none;
  background:rgba(255,255,255,.92);
}

/* ================= FOOTER ================= */
.footer{
  position:fixed;
  bottom:0;
  left:0;
  width:100%;
  min-height:var(--footer-h);
  padding:10px 14px;
  background:var(--bg);
  border-top:1px solid var(--line);
  text-align:center;
  z-index:100;
  display:flex;
  align-items:center;
  justify-content:center;
  line-height:1.4;
}

.footer *{
  max-width:100%;
  word-break:break-word;
  overflow-wrap:anywhere;
}

video, iframe, img{
  max-width:100%;
  height:auto;
}

/* ================= RESPONSIVIDADE ================= */
@media (max-width:1100px){
  .icon-grid{
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap:18px;
  }

  .icon-btn{
    min-height:170px;
  }
}

@media (max-width:900px){
  .container{
    padding:0 14px;
  }

  .h1{
    font-size:30px;
  }

  .page-hero h1{
    font-size:26px;
  }

  .hero-grid,
  .grid2,
  .kv{
    grid-template-columns:1fr;
  }

  .gallery{
    grid-template-columns:repeat(2, 1fr);
  }

  .nav-toggle{
    display:inline-flex;
  }

  .menu{
    position:absolute;
    top:calc(100% + 10px);
    right:0;
    left:0;
    display:none;
    flex-direction:column;
    gap:6px;
    padding:10px;
    border-radius:16px;
    border:1px solid var(--line);
    background:rgba(255,255,255,.96);
    box-shadow:var(--shadow);
    z-index:20;
  }

  body.nav-open .menu{
    display:flex;
  }

  .menu a{
    display:block;
    padding:10px 12px;
    border-radius:14px;
    border:1px solid var(--line);
    background:rgba(247,243,238,.5);
    font-size:14px;
  }

  .icon-grid{
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:16px;
    grid-auto-rows:1fr;
  }

  .icon-btn{
    min-height:160px;
    padding:18px 12px;
    border-radius:20px;
    height:100%;
  }

  .icon-btn .ico{
    width:70px;
    height:70px;
    min-width:70px;
    border-radius:18px;
  }

  .icon-btn svg{
    width:30px;
    height:30px;
  }

  .icon-btn span{
    font-size:14px;
    line-height:1.25;
  }
}

@media (max-width:640px){
  :root{
    --footer-h:40px;
  }

  .home-hero{
    align-items:flex-start;
    padding:28px 0 100px;
  }

  .home-hero .pad{
    width:92vw;
  }

  .home-hero h1{
    font-size:clamp(24px, 7vw, 34px);
    margin-bottom:8px;
  }

  .home-hero p{
    margin-bottom:20px;
    font-size:14px;
    line-height:1.5;
  }

  .icon-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:14px;
    align-items:stretch;
    grid-auto-rows:1fr;
  }

  .icon-btn{
    min-height:165px;
    height:100%;
    padding:16px 10px;
    border-radius:18px;
    gap:10px;
    justify-content:flex-start;
  }

  .icon-btn .ico{
    width:58px;
    height:58px;
    min-width:58px;
    border-radius:16px;
  }

  .icon-btn svg{
    width:26px;
    height:26px;
  }

  .icon-btn span{
    font-size:13px;
    line-height:1.2;
    padding:0 2px;
  }

  .page-hero{
    padding:18px 0 14px;
  }

  .page-hero .card{
    width:calc(100vw - 24px);
    border-radius:16px;
  }

  .page-hero .card .pad{
    padding:28px 16px;
    min-height:auto;
  }

  .page-hero h1{
    font-size:24px;
  }

  .page-hero p{
    font-size:14px;
  }

  .footer{
    padding:10px 10px;
    line-height:1.35;
  }

  .back-welcome{
    width:100%;
    max-width:260px;
    padding:11px 14px;
    font-size:13px;
  }

  /* ===== CORREÇÃO DA LISTA NO MOBILE ===== */
  .table{
    table-layout:auto;
    border-collapse:collapse;
  }

  .table thead{
    display:none;
  }

  .table,
  .table tbody,
  .table tr,
  .table td{
    display:block;
    width:100%;
  }

  .table tr{
    padding:12px 0;
    border-top:1px solid var(--line);
  }

  .table tr:first-child{
    border-top:none;
  }

  .table td{
    border:none;
    padding:4px 12px;
    text-align:left;
    width:100% !important;
  }

  .table td:first-child{
    font-size:17px;
    font-weight:700;
    color:var(--brand);
    margin-bottom:4px;
  }

  .table td:last-child{
    font-size:14px;
    line-height:1.45;
    color:var(--text);
    white-space:normal;
    word-break:break-word;
    overflow-wrap:anywhere;
  }
}

@media (max-width:520px){
  .h1{
    font-size:26px;
  }

  .badge{
    width:100%;
  }

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

  .card .pad{
    padding:14px;
  }

  .section h2{
    font-size:20px;
  }

  .back-home{
    display:flex;
    width:100%;
    margin-top:8px;
    padding:10px;
    font-size:14px;
  }

  .table{
    overflow:visible;
  }
}

@media (max-width:380px){
  .icon-grid{
    gap:12px;
  }

  .icon-btn{
    min-height:150px;
    padding:14px 8px;
  }

  .icon-btn .ico{
    width:52px;
    height:52px;
    min-width:52px;
  }

  .icon-btn span{
    font-size:12px;
    line-height:1.2;
  }

  .table td:first-child{
    font-size:16px;
  }

  .table td:last-child{
    font-size:13px;
  }
}