:root {
    --verde: #2d5016;
    --verde-fundo: #1a3009;
    --folha: #00a859;
    --tinta: #243028;
    --muted: #5c6b62;
    --papel: #fffcf7;
    --branco: #ffffff;
    --creme: #f3f6ef;
    --linha: #d5e0d0;
    --aviso: #6b5420;
    --aviso-fundo: #f6f0e2;
    --erro: #8c2f2f;
    --erro-fundo: #f8ecec;
    --sombra: 0 18px 40px rgba(26, 48, 9, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--tinta);
    background: var(--papel);
    font-family: Inter, "Segoe UI", sans-serif;
    font-size: 1.05rem;
    line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--verde); }
button, input, select, textarea { font: inherit; color: inherit; }
.pula {
    position: absolute;
    left: 1rem;
    top: -4rem;
    background: var(--verde);
    color: white;
    padding: 0.5rem 0.8rem;
    z-index: 20;
}
.pula:focus { top: 0.5rem; }

.topo {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 252, 247, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(45, 80, 22, 0.12);
}
.topo-interno, .rodape-interno, .miolo, .faixa-interna {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
}
.topo-interno {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 76px;
}
.marca img { width: 112px; height: auto; }
.menu { display: flex; gap: 1.25rem; align-items: center; }
.menu a { color: var(--tinta); text-decoration: none; font-weight: 600; }
.menu a[aria-current="page"] { color: var(--verde); box-shadow: inset 0 -2px 0 var(--folha); }
.menu-botao {
    display: none;
    border: 1px solid var(--linha);
    background: white;
    border-radius: 999px;
    padding: 0.4rem 0.8rem;
}

.hero {
    background:
        linear-gradient(115deg, rgba(18, 32, 24, 0.78), rgba(0, 120, 70, 0.55)),
        url("https://grupoalfa.digital/images/bg-s1.jpg") center/cover;
    color: white;
}
.hero-grade {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
    align-items: center;
    padding: 4.5rem 0 3.5rem;
}
.sobretitulo {
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}
.documento .sobretitulo { color: var(--verde); }
.hero h1, .secao h2, .documento h1, .painel h1 {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 600;
    line-height: 1.15;
}
.hero h1 { font-size: clamp(2.6rem, 5vw, 4.6rem); margin: 0 0 1rem; }
.hero p { font-size: 1.15rem; max-width: 38rem; }
.acoes { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.5rem; }
.botao, button.botao {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 999px;
    padding: 0.85rem 1.3rem;
    font-weight: 700;
    border: 2px solid transparent;
    cursor: pointer;
}
.botao-cheio { background: white; color: var(--verde-fundo); }
.botao-cheio:hover { background: #e7f6ee; }
.botao-linha { background: transparent; color: white; border-color: white; }
.botao-verde { background: var(--verde); color: white; }
.botao-verde:hover { background: var(--verde-fundo); }
.botao-contorno { background: white; color: var(--verde); border-color: var(--verde); }
.hero-cartao {
    background: rgba(255, 252, 247, 0.94);
    color: var(--tinta);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--sombra);
}
.hero-cartao img { width: 100%; height: 240px; object-fit: cover; }
.hero-cartao div { padding: 1.2rem 1.3rem 1.4rem; }
.hero-cartao strong { font-family: "Playfair Display", Georgia, serif; font-size: 1.8rem; color: var(--verde); }

.faixa { background: var(--verde-fundo); color: white; }
.faixa-interna { display: grid; grid-template-columns: repeat(3, 1fr); padding: 1.3rem 0; }
.faixa article { padding: 0.4rem 1rem; }
.faixa strong { display: block; font-family: "Playfair Display", Georgia, serif; font-size: 1.8rem; }
.faixa span { color: rgba(255,255,255,0.8); }

.secao { padding: 4.5rem 0; }
.secao-creme { background: var(--creme); }
.miolo h2, .documento h1, .painel h1 { font-size: clamp(2rem, 4vw, 3.2rem); margin: 0 0 0.8rem; color: var(--verde-fundo); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 42rem; }
.grade-3, .grade-2 { display: grid; gap: 1rem; margin-top: 1.8rem; }
.grade-3 { grid-template-columns: repeat(3, 1fr); }
.grade-2 { grid-template-columns: 1.4fr 0.8fr; }
.cartao, .passo, .eixo {
    background: white;
    border: 1px solid var(--linha);
    border-radius: 16px;
    padding: 1.2rem 1.2rem 1.3rem;
}
.eixo span, .passo span {
    display: inline-block;
    color: var(--verde);
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
}
.cartao h3, .passo h3, .eixo h3 { margin: 0 0 0.4rem; font-size: 1.15rem; }
.cartao p, .passo p, .eixo p { margin: 0; color: var(--muted); }
.citacao {
    margin: 0;
    padding: 1.4rem;
    border-left: 4px solid var(--folha);
    background: white;
    border-radius: 0 16px 16px 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.45rem;
    line-height: 1.35;
}
.citacao figcaption { margin-top: 0.8rem; font-family: Inter, sans-serif; font-size: 0.95rem; color: var(--muted); }

.aviso {
    background: var(--aviso-fundo);
    color: var(--aviso);
    border: 1px solid #e4d7b6;
    border-radius: 14px;
    padding: 0.9rem 1rem;
    margin: 0 0 1.4rem;
}
.documento { padding: 2.5rem 0 4rem; }
.documento-grade { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; align-items: start; }
.sumario {
    position: sticky;
    top: 92px;
    background: white;
    border: 1px solid var(--linha);
    border-radius: 16px;
    padding: 1rem;
    max-height: calc(100vh - 110px);
    overflow: auto;
}
.sumario ol { margin: 0.4rem 0 0; padding-left: 1.1rem; }
.sumario a { text-decoration: none; }
.sumario li { margin: 0.35rem 0; }
.clausula { padding-top: 0.4rem; }
.clausula + .clausula { border-top: 1px solid var(--linha); margin-top: 1.4rem; padding-top: 1.4rem; }
.clausula h2 { font-size: 1.45rem; margin-bottom: 0.6rem; }
.clausula p, .clausula li { color: #314038; }
.clausula ul { padding-left: 1.2rem; }
.meta { color: var(--muted); margin-top: 0; }

.formulario { display: grid; gap: 1rem; }
fieldset {
    border: 1px solid var(--linha);
    background: white;
    border-radius: 16px;
    padding: 1rem 1rem 1.1rem;
    margin: 0;
}
legend { font-family: "Playfair Display", Georgia, serif; font-size: 1.4rem; padding: 0 0.3rem; color: var(--verde-fundo); }
.grade-eixos { grid-template-columns: 1fr 1fr; }
label { display: block; font-weight: 600; margin: 0.8rem 0 0.3rem; }
input[type="text"], input[type="email"], input[type="url"], input[type="tel"], select, textarea {
    width: 100%;
    border: 1px solid #c5d3c4;
    background: #fffd;
    border-radius: 10px;
    padding: 0.75rem 0.8rem;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(0, 168, 89, 0.35); border-color: var(--verde); }
.ajuda { color: var(--muted); margin: 0.3rem 0 0; font-size: 0.95rem; }
.erro { color: var(--erro); margin: 0.3rem 0 0; font-weight: 600; }
.caixa-erro { background: var(--erro-fundo); color: var(--erro); border-radius: 12px; padding: 0.8rem 1rem; }
.check { display: flex; gap: 0.7rem; align-items: flex-start; margin-top: 0.8rem; font-weight: 500; }
.check input { margin-top: 0.25rem; }
.honeypot { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.aceite-box { background: var(--creme); border-radius: 12px; padding: 0.9rem; margin-top: 0.6rem; }
.edital-embutido { margin-top: 1rem; }
.edital-embutido summary { cursor: pointer; font-weight: 700; color: var(--verde); }

.protocolo {
    background: white;
    border-radius: 18px;
    padding: 1.4rem;
    border: 1px solid var(--linha);
    box-shadow: var(--sombra);
}
.protocolo code { font-size: 1.15rem; color: var(--verde-fundo); }

.painel { padding: 2rem 0 4rem; }
.login { max-width: 28rem; background: white; border: 1px solid var(--linha); border-radius: 16px; padding: 1.2rem; }
table { width: 100%; border-collapse: collapse; background: white; }
th, td { text-align: left; padding: 0.7rem; border-bottom: 1px solid var(--linha); vertical-align: top; }
th { font-size: 0.85rem; letter-spacing: 0.03em; text-transform: uppercase; color: var(--muted); }
.selo {
    display: inline-block;
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
    background: var(--creme);
    color: var(--verde);
    font-size: 0.85rem;
    font-weight: 700;
}
.ficha { display: grid; gap: 0.3rem; margin-bottom: 1rem; }
.vazio { background: white; border-radius: 16px; padding: 1rem 1.2rem; border: 1px dashed var(--linha); }

.rodape { background: #172117; color: rgba(255,255,255,0.82); padding: 2rem 0 1.2rem; }
.rodape a { color: white; }
.rodape-interno { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1rem; }
.rodape-nome { font-family: "Playfair Display", Georgia, serif; color: white; font-size: 1.4rem; margin: 0 0 0.4rem; }
.rodape-nota { width: min(1120px, calc(100% - 2rem)); margin: 1rem auto 0; color: rgba(255,255,255,0.6); font-size: 0.92rem; }

@media (max-width: 860px) {
    .menu-botao { display: inline-flex; }
    .menu {
        display: none;
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        background: var(--papel);
        border-bottom: 1px solid var(--linha);
        flex-direction: column;
        align-items: flex-start;
        padding: 0.8rem 1rem 1rem;
    }
    .menu-aberto .menu { display: flex; }
    .hero-grade, .grade-3, .grade-2, .documento-grade, .faixa-interna, .rodape-interno { grid-template-columns: 1fr; }
    .sumario { position: static; max-height: none; }
    .hero { padding-top: 0; }
    table { display: block; overflow-x: auto; }
}
@media print {
    .topo, .rodape, .menu-botao, .acoes, .sumario { display: none; }
    body { background: white; }
    .documento-grade { display: block; }
}
