:root {
    --green:  #1b4332; --green-m: #2d6a4f; --green-l: #40916c;
    --gold:   #c9a84c; --gold-l:  #e0c068;
    --cream:  #f8f6f1; --white:   #ffffff;
    --text:   #1a1a1a; --muted:   #6b7280;
    --border: #d5cfc3; --red:     #b71c1c;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Nunito Sans', sans-serif; background: var(--cream); color: var(--text); min-height: 100vh; display: flex; flex-direction: column; }
::-webkit-scrollbar { width: 6px; } ::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* TOPBAR */
.topbar { background: var(--green); padding: .3rem 2rem; display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid var(--gold); font-size: .73rem; color: rgba(255,255,255,.5); gap: 1rem; flex-wrap: wrap; }
.topbar a { color: rgba(255,255,255,.5); text-decoration: none; } .topbar a:hover { color: var(--gold-l); }
.topbar-links { display: flex; gap: 1.2rem; }

/* HEADER */
/*.header { background: linear-gradient(180deg,#163828 0%,var(--green) 100%); padding: .9rem 2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }*/
.header { background: linear-gradient(180deg,#163828 0%,var(--green) 100%); der-bottom:1px solid rgba(255,255,255,.08);}

.header-inner{
    max-width:1100px;
    margin:0 auto;

    padding:.9rem 1.5rem;

    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:1rem;

    width:100%;
}
.header-brand{
    display:flex;
    align-items:center;
    gap:1.2rem;

    text-decoration:none;

    min-width:0;
}

.header-nav{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:.45rem;

    flex-wrap:wrap;
}

@media (max-width: 640px){

    .header-inner{
        flex-direction:column;
        align-items:flex-start;
    }

    .header-nav{
        width:100%;
        justify-content:flex-start;
    }

}
/*
.header-brand { display: flex; align-items: center; gap: 1.2rem; text-decoration: none; }
.header-nav { display: flex; gap: .45rem; align-items: center; flex-wrap: wrap; }
*/
.header-logo { height: 60px; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0,0,0,.3)); }
.header-text h1 { font-family: 'EB Garamond', serif; font-size: 1.15rem; color: #fff; line-height: 1.2; }
.header-text .subtitle { font-size: .68rem; color: var(--gold-l); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-top: 3px; }
.hdiv { width: 1px; height: 38px; background: rgba(255,255,255,.18); }
.nav-btn { font-family: 'Nunito Sans', sans-serif; font-size: .79rem; font-weight: 600; letter-spacing: .04em; padding: .42rem 1rem; border-radius: 4px; border: 1.5px solid rgba(255,255,255,.2); color: rgba(255,255,255,.75); background: transparent; cursor: pointer; transition: all .18s; text-decoration: none; display: inline-block; }
.nav-btn:hover { border-color: var(--gold); color: var(--gold-l); }
.nav-btn.active { background: var(--gold); border-color: var(--gold); color: var(--green); }

/* HERO */
.hero { background: linear-gradient(135deg,var(--green) 0%,#1e5c3a 55%,#163828 100%); padding: 2.6rem 2rem 2.4rem; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; opacity: .04; background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23c9a84c' d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/svg%3E"); }
.hero-tag { display: inline-block; background: rgba(201,168,76,.15); border: 1px solid rgba(201,168,76,.4); color: var(--gold-l); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; padding: .22rem .9rem; border-radius: 20px; margin-bottom: 1rem; position: relative; }
.hero h2 { font-family: 'EB Garamond', serif; font-size: 2rem; color: #fff; position: relative; line-height: 1.2; }
.hero p { color: rgba(255,255,255,.6); font-size: .93rem; margin-top: .6rem; position: relative; }
.gold-rule { display: flex; align-items: center; justify-content: center; gap: .8rem; margin: 1.1rem auto 0; }
.gold-rule::before,.gold-rule::after { content: ''; flex: 1; max-width: 55px; height: 1px; background: rgba(201,168,76,.4); }
.gold-dot { width: 6px; height: 6px; background: var(--gold); border-radius: 50%; }

/* MAIN */
.main { flex: 1; max-width: 900px; margin: 0 auto; padding: 2.2rem 1.5rem 3rem; width: 100%; }

/* CARD */
.card { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 1.8rem 2rem; margin-bottom: 1.3rem; box-shadow: 0 2px 14px rgba(27,67,50,.06); }
.card-title { font-family: 'EB Garamond', serif; font-size: 1.25rem; color: var(--green); margin-bottom: 1.5rem; padding-bottom: .75rem; border-bottom: 2px solid var(--gold); display: flex; align-items: center; gap: .6rem; }

/* FORM */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group.full { grid-column: 1/-1; }
label.lbl { font-size: .76rem; font-weight: 700; color: var(--green); letter-spacing: .06em; text-transform: uppercase; }
input[type=text], input[type=email], input[type=password], select, textarea {
    font-family: 'Nunito Sans', sans-serif; font-size: .92rem; padding: .62rem .85rem;
    border: 1.5px solid var(--border); border-radius: 6px; background: var(--cream);
    color: var(--text); outline: none; transition: border-color .2s, box-shadow .2s; width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--green-l); box-shadow: 0 0 0 3px rgba(64,145,108,.1); background: #fff; }
textarea { resize: vertical; min-height: 130px; line-height: 1.55; }
.char-count { font-size: .72rem; color: var(--muted); text-align: right; }

/* BUTTONS */
.btn { font-family: 'Nunito Sans', sans-serif; font-weight: 700; font-size: .85rem; letter-spacing: .04em; padding: .65rem 1.4rem; border-radius: 6px; cursor: pointer; border: none; transition: all .2s; display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; }
.btn-primary { background: var(--green); color: #fff; } .btn-primary:hover { background: var(--green-m); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(27,67,50,.25); }
.btn-outline { background: transparent; border: 1.5px solid var(--green); color: var(--green); } .btn-outline:hover { background: var(--green); color: #fff; }
.btn-gold { background: var(--gold); color: var(--green); } .btn-gold:hover { background: var(--gold-l); }
.btn-blue { background: #1565c0; color: #fff; } .btn-blue:hover { background: #1976d2; }
.btn-sm { padding: .35rem .8rem; font-size: .77rem; }
.btn-danger { background: var(--red); color: #fff; } .btn-danger:hover { background: #8b0000; }

/* BADGE */
.badge { display: inline-block; padding: .2rem .7rem; border-radius: 20px; font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }

/* ALERTS */
.alert { padding: .75rem 1rem; border-radius: 6px; font-size: .87rem; margin-bottom: 1rem; display: flex; gap: .5rem; align-items: flex-start; line-height: 1.5; }
.alert-success { background: #f0fdf4; border: 1px solid #86efac; color: #166534; }
.alert-error   { background: #fdf0f0; border: 1px solid #f5c6c2; color: var(--red); }
.alert-warning { background: #fffbeb; border: 1px solid #fcd34d; color: #78350f; }
.alert-info    { background: #eff6ff; border: 1px solid #93c5fd; color: #1e40af; }

/* INFO BOX */
.info-box { background: #f2f7f3; border: 1px solid #c3dbc8; border-radius: 8px; padding: 1rem 1.2rem; display: flex; gap: .9rem; align-items: flex-start; font-size: .85rem; color: #2d5a3d; line-height: 1.6; }

/* FOOTER */
.footer { background: var(--green); border-top: 3px solid var(--gold); padding: 1.4rem 2rem; margin-top: auto; }
.footer-inner { max-width: 900px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-info { color: rgba(255,255,255,.5); font-size: .75rem; line-height: 1.7; }
.footer-info strong { color: rgba(255,255,255,.8); }
.footer-links { display: flex; gap: .5rem; flex-wrap: wrap; }
.footer-link { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.65); padding: .38rem .85rem; border-radius: 4px; font-size: .73rem; text-decoration: none; transition: all .2s; font-weight: 600; }
.footer-link:hover { background: rgba(201,168,76,.2); border-color: var(--gold); color: var(--gold-l); }

@media (max-width: 640px) {
    .form-grid { grid-template-columns: 1fr; }
    .header { flex-direction: column; align-items: flex-start; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }
}

.main { max-width: 1100px; }
.stats-row { display: grid; grid-template-columns: repeat(5,1fr); gap: .9rem; margin-bottom: 1.4rem; }
.stat-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 1.1rem; text-align: center; border-top: 3px solid transparent; }
.stat-num  { font-family: 'EB Garamond', serif; font-size: 2rem; }
.stat-lbl  { font-size: .68rem; text-transform: uppercase; color: var(--muted); letter-spacing: .06em; font-weight: 600; }
.filters   { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.1rem; align-items: center; }
.f-chip    { padding: .28rem .8rem; border-radius: 20px; border: 1.5px solid var(--border); background: transparent; font-size: .75rem; cursor: pointer; font-family: 'Nunito Sans', sans-serif; font-weight: 600; text-decoration: none; color: var(--text); transition: all .15s; }
.f-chip.active,.f-chip:hover { background: var(--green); border-color: var(--green); color: #fff; }
.req-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.req-table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: .6rem .8rem; border-bottom: 2px solid var(--border); background: #f9f7f3; }
.req-table td { padding: .7rem .8rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.req-table tr:hover td { background: #fafaf7; }
.prot-code { font-family: monospace; font-size: .85rem; color: var(--gold); font-weight: 600; letter-spacing: .04em; }
.export-bar { background: linear-gradient(to right,#f2f7f3,#eaf3ec); border: 1px solid #c3dbc8; border-radius: 8px; padding: .9rem 1.2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
@media(max-width:700px){ .stats-row{grid-template-columns:repeat(2,1fr);} }

@media print {
  .naoimprime {
    display: none !important;
  }
