/* AIFAESA, I.P. — components */

/* Quick-access cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem 1.25rem; text-align: center; background: #fff; }
.card-icon { width: 56px; height: 56px; margin: 0 auto .75rem; border-radius: 50%; background: #e6efe9; display: grid; place-items: center; }
.card-icon svg { width: 28px; height: 28px; fill: var(--green); }
.card h3 { font-size: 1.1rem; }
.card p { color: var(--muted); font-size: .92rem; min-height: 3em; }

/* [3] Statistics row */
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.stat { background: #eef2ef; border-radius: 4px; padding: 1rem .5rem; text-align: center; border-bottom: 3px solid; display: flex; flex-direction: column; gap: .35rem; }
.stat.a1 { border-color: var(--red); } .stat.a2 { border-color: var(--gold); } .stat.a3 { border-color: #111; }
.stat-label { font-size: .8rem; color: var(--muted); }
.stat-value { font-size: 1.5rem; font-variant-numeric: tabular-nums; }

/* [4] News list */
.news-item { display: grid; grid-template-columns: 160px 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.news-item:first-child { padding-top: 0; }
.news-thumb img { width: 160px; height: 110px; object-fit: cover; border: 1px solid #c4cec8; border-radius: 3px; display: block; background: #e6efe9; }
.news-item h3 { font-size: 1.02rem; margin-bottom: .3rem; }
.news-item p { font-size: .88rem; color: #3b4741; margin-bottom: .4rem; }
.article-img { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius); margin: 0 0 1rem; }
.prose p { margin-bottom: 1em; }
.pager { display: flex; gap: .35rem; flex-wrap: wrap; margin: 1.5rem 0; }
.pager a, .pager .cur, .pager .gap { padding: .35em .8em; border-radius: 3px; background: #3f7b57; color: #fff; font-weight: 600; font-size: .9rem; }
.pager .cur { background: var(--gold); color: #1b1b1b; }
.pager .gap { background: none; color: var(--muted); }
.pager a:hover { background: var(--green-d); text-decoration: none; }
.result-list { padding-left: 1.2rem; } .result-list li { margin-bottom: .4rem; }

/* Sidebar */
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 1.25rem; overflow: hidden; }
.panel-title { background: #eef2ef; margin: 0; padding: .7rem 1rem; text-align: center; font-size: .85rem; letter-spacing: .04em; border-bottom: 1px solid var(--line); }
.pad { padding: 1rem; }
.notice-list { list-style: none; margin: 0; padding: .5rem 1rem; }
.notice-list li { padding: .65rem 0; border-bottom: 1px solid var(--line); font-size: .88rem; display: flex; flex-direction: column; gap: .15rem; }
.notice-list li:last-child { border: 0; }
.notice-list small { color: var(--muted); }
.tag { font-size: .65rem; font-weight: 800; padding: .1em .5em; border-radius: 3px; color: #fff; margin-right: .3em; }
.tag-new { background: var(--gold); color: #1b1b1b; } .tag-old { background: #2e9e5b; }
.banner { display: flex; flex-direction: column; gap: .25rem; padding: 1.1rem 1rem; border-radius: var(--radius); margin-bottom: 1.25rem; color: #fff; text-align: center; border: 4px solid var(--gold); }
.banner:hover { text-decoration: none; filter: brightness(.95); }
.banner strong { font-size: 1.25rem; text-transform: uppercase; letter-spacing: .04em; }
.banner span { font-size: .88rem; }
.banner-gold { background: var(--red); border-color: var(--gold); }
.banner-green { background: var(--green); border-color: #fff; box-shadow: 0 0 0 2px var(--green); }

/* Forms grid */
.forms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.form-box { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: .5rem 1rem 1rem; background: #fff; }
.form-box h3 { text-align: center; font-size: .92rem; padding: .6rem 0; margin: 0; }
.form-box table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.form-box th, .form-box td { padding: .45rem .3rem; border-bottom: 1px solid var(--line); text-align: left; }
.form-box th:not(:first-child), .form-box td:not(:first-child) { text-align: center; width: 3.2em; }

/* [5] FAQ + visitors + YouTube */
.faq { border: 1px solid var(--line); background: #f6f8f6; margin-bottom: -1px; }
.faq summary { cursor: pointer; padding: .8rem 1rem; color: var(--green); font-size: .92rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 800; }
.faq[open] summary::after { content: "−"; }
.faq-a { background: #fff; padding: 1rem; font-size: .92rem; border-top: 1px solid var(--line); }
.visitors { padding: 1rem; display: flex; align-items: baseline; gap: .5rem; justify-content: center; flex-wrap: wrap; }
.visitors strong { font-size: 2rem; color: var(--green-d); font-variant-numeric: tabular-nums; }
.yt-card { display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center; padding: 1.25rem 1rem; border-radius: var(--radius); background: #111; color: #fff; }
.yt-card:hover { text-decoration: none; background: #1d1d1d; }
.yt-logo { width: 64px; }
.yt-title { font-weight: 700; letter-spacing: .03em; }
.yt-text { font-size: .88rem; opacity: .85; }
.yt-card .btn { background: #f00; border-color: #f00; }

/* Public forms (denúncias / reclamações) */
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.check { display: flex; gap: .5rem; align-items: center; margin-bottom: 1rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.inline-form { display: flex; gap: .5rem; max-width: 460px; }

@media (max-width: 860px) {
  .cards, .forms-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid .stat:last-child { grid-column: 1 / -1; }
  .news-item { grid-template-columns: 110px 1fr; }
  .news-thumb img { width: 110px; height: 80px; }
  .row2 { grid-template-columns: 1fr; }
}
