/* ===========================================================================
   Tema ACO — metalico aco escovado, CLARO industrial e limpo. Fundo
   cinza-azulado (#eceff3), superficies brancas, bordas #d3dae2, texto ardosia
   (#2b3744), muted #64748b. Aco (#475569) + azul-aco (#5b7a99) com um leve
   brilho metalico nos destaques. Tipografia 'Inter' (titulos 700/800). Cards
   limpos, cantos 8px, sombra sutil, leve gradiente metalico. Reveste as MESMAS
   paginas do site (mesmo vocabulario de classes dos demais temas).
   LaTec — CAV/UDESC.
   =========================================================================== */
:root {
  --bg: #eceff3;
  --bg-2: #eceff3;
  --surface: #ffffff;
  --surface-2: #e3e8ee;
  --border: #d3dae2;
  --border-strong: #bcc6d1;
  --text: #2b3744;
  --muted: #64748b;
  --primary: #475569;
  --primary-d: #334155;
  --accent: #5b7a99;
  --accent-d: #466080;
  --steel: #5b7a99;
  --steel-d: #475569;
  --cyan: #3b7d92;
  --violet: #6a5f93;
  --grad: linear-gradient(120deg, #475569, #5b7a99);
  --grad-soft: #e7edf3;
  --metal: linear-gradient(180deg, #ffffff 0%, #f3f6f9 48%, #e9eef3 100%);
  --metal-strong: linear-gradient(135deg, #5b7a99 0%, #475569 100%);
  --radius: 8px;
  --shadow: 0 8px 22px -16px rgba(31, 47, 64, .34);
  --shadow-hover: 0 14px 30px -18px rgba(31, 47, 64, .40);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.62; -webkit-font-smoothing: antialiased; }

/* Textura de aco escovado, sutil, fixada ao fundo (no lugar da aurora) */
.aurora-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(91, 122, 153, .05), transparent 28%),
    repeating-linear-gradient(115deg, rgba(71, 85, 105, .035) 0 2px, transparent 2px 5px),
    radial-gradient(1000px 420px at 90% -8%, rgba(91, 122, 153, .10), transparent 60%),
    var(--bg);
}

a { color: var(--accent-d); text-decoration: none; }
a:hover { color: var(--primary-d); text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; line-height: 1.2; letter-spacing: -.02em; color: #20303d; }

.container-l { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.text-grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--primary); font-weight: 800; }
.muted { color: var(--muted); }
.eyebrow { font-family: var(--font); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-d); font-weight: 700; }

/* ---------- Navbar (chrome proprio do tema) ---------- */
.aco-nav { position: sticky; top: 0; z-index: 50; background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(243,246,249,.92)); backdrop-filter: saturate(150%) blur(10px); -webkit-backdrop-filter: saturate(150%) blur(10px); border-bottom: 1px solid var(--border-strong); box-shadow: inset 0 -1px 0 rgba(255,255,255,.6), 0 2px 10px -8px rgba(31, 47, 64, .3); }
.aco-nav .container-l { display: flex; align-items: center; gap: 18px; height: 66px; }
.aco-brand { display: flex; align-items: center; gap: 10px; }
.aco-links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.aco-links a { color: #3a4856; font-size: .9rem; font-weight: 500; padding: 8px 13px; border-radius: 6px; transition: .15s; }
.aco-links a:hover { color: var(--primary-d); text-decoration: none; background: var(--surface-2); }
.aco-links a.active { color: var(--primary-d); font-weight: 700; background: var(--grad-soft); box-shadow: inset 0 -2px 0 var(--accent); }
.aco-cta { margin-left: 10px; background: var(--metal-strong); color: #fff !important; border: 1px solid var(--primary-d); padding: 8px 16px !important; border-radius: 7px; font-weight: 600 !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 6px 16px -9px rgba(51, 65, 85, .7); }
.aco-cta:hover { filter: brightness(1.06); color: #fff !important; border-color: var(--primary-d); }
.aco-toggle { display: none; margin-left: auto; background: var(--metal); border: 1px solid var(--border-strong); width: 42px; height: 42px; border-radius: 7px; font-size: 1.3rem; color: var(--text); }

/* ---------- Botoes ---------- */
.btn-a { display: inline-flex; align-items: center; gap: 9px; padding: 11px 22px; border-radius: 7px; font-weight: 600; font-size: .95rem; border: 1px solid transparent; cursor: pointer; transition: .16s; }
.btn-primary-a { background: var(--metal-strong); color: #fff; border-color: var(--primary-d); box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 8px 20px -11px rgba(51, 65, 85, .6); }
.btn-primary-a:hover { filter: brightness(1.07); border-color: var(--primary-d); color: #fff; text-decoration: none; transform: translateY(-1px); }
.btn-ghost-a { background: var(--metal); border-color: var(--border-strong); color: var(--primary-d); }
.btn-ghost-a:hover { border-color: var(--accent); color: var(--accent-d); text-decoration: none; background: #fff; }

/* ---------- Secoes / hero ---------- */
.sec { padding: 72px 0; }
.sec-head { max-width: 720px; margin-bottom: 38px; }
.sec-head h2 { font-size: clamp(1.65rem, 3.2vw, 2.3rem); margin: 10px 0 8px; }
.sec-head p { color: var(--muted); font-size: 1.04rem; margin: 0; }
.hero { padding: 76px 0 58px; background:
  radial-gradient(900px 360px at 86% -12%, rgba(91, 122, 153, .16), transparent 60%),
  radial-gradient(680px 320px at 0% 0%, rgba(71, 85, 105, .10), transparent 55%),
  linear-gradient(180deg, #ffffff, #f1f4f8);
  border-bottom: 1px solid var(--border); }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 14px 0; font-weight: 800; letter-spacing: -.03em; }
.hero .lead { font-size: clamp(1.04rem, 1.7vw, 1.24rem); color: #475360; max-width: 640px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-bottom: 34px; }
.foco-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--metal); border: 1px solid var(--border); color: var(--primary-d); font-size: .86rem; font-weight: 500; box-shadow: var(--shadow); }
.chip i { color: var(--accent); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { padding: 28px 18px; text-align: center; background: var(--metal); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.stat .num { font-family: var(--font-display); font-size: 2.7rem; font-weight: 800; line-height: 1; color: var(--primary); letter-spacing: -.02em; }
.stat .lbl { color: var(--muted); font-size: .87rem; margin-top: 8px; }

/* ---------- Cards ---------- */
.card-a { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; transition: .18s; height: 100%; box-shadow: var(--shadow); }
.card-a:hover { border-color: var(--border-strong); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Pessoas ---------- */
.avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 2px solid var(--surface-2); flex: none; }
.avatar-iniciais { display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: #fff; background: var(--metal-strong); }
.avatar-lg { width: 104px; height: 104px; border-radius: 50%; font-size: 2rem; }
.pessoa-card { display: flex; flex-direction: column; gap: 13px; }
.pessoa-card .nome { font-family: var(--font-head); font-weight: 700; font-size: 1.14rem; color: #20303d; }
.pessoa-card .cargo { color: var(--accent-d); font-size: .84rem; font-weight: 600; }
.pessoa-meta { color: var(--muted); font-size: .9rem; }
.pessoa-links { display: flex; gap: 14px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--border); }
.pessoa-links a { color: var(--muted); font-size: 1.1rem; }
.pessoa-links a:hover { color: var(--accent-d); }

/* ---------- Pesquisas ---------- */
.selo { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: .74rem; font-weight: 600; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--primary-d); }
.selo-tese { background: #efedf6; color: var(--violet); border-color: #ddd8ec; }
.selo-dissertacao { background: #e8f1f4; color: var(--cyan); border-color: #cfe5ec; }
.status-andamento { background: var(--grad-soft); color: var(--primary-d); border-color: #c8d4e0; }
.status-qualificada { background: #f7f1e6; color: #97701c; border-color: #ecddbf; }
.status-defendida { background: #e7f1ec; color: #2f6f54; border-color: #cbe3d6; }
.pesquisa-card .titulo { font-family: var(--font-head); font-weight: 700; font-size: 1.16rem; margin: 12px 0 8px; line-height: 1.32; color: #20303d; }
.pesquisa-card .resumo { color: #4c5662; font-size: .95rem; }
.palavras { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.palavra { font-size: .74rem; color: var(--primary-d); background: var(--surface-2); padding: 4px 10px; border-radius: 999px; }
.filtros { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 26px; }
.filtros a { padding: 7px 15px; border-radius: 999px; background: var(--metal); border: 1px solid var(--border); color: var(--muted); font-size: .86rem; }
.filtros a:hover { text-decoration: none; border-color: var(--accent); color: var(--accent-d); }
.filtros a.on { background: var(--metal-strong); color: #fff; border-color: var(--primary-d); font-weight: 600; box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 6px 16px -9px rgba(51, 65, 85, .6); }

/* ---------- Eventos / defesas ---------- */
.evento-card { overflow: hidden; padding: 0; }
.evento-foto { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-bottom: 1px solid var(--border); }
.evento-foto.ph { background: var(--grad-soft); display: grid; place-items: center; font-size: 2.8rem; color: var(--accent); }
.evento-body { padding: 24px; }
.banca-list { list-style: none; padding: 0; margin: 10px 0 0; }
.banca-list li { color: #4c5662; font-size: .9rem; padding: 3px 0 3px 20px; position: relative; }
.banca-list li::before { content: "\F26A"; font-family: "bootstrap-icons"; position: absolute; left: 0; color: var(--accent); font-size: .8rem; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 32px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, var(--accent), var(--border-strong)); }
.tl-item { position: relative; margin-bottom: 26px; }
.tl-item::before { content: ""; position: absolute; left: -29px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--metal); border: 3px solid var(--accent); box-shadow: 0 0 0 4px var(--grad-soft); }
.tl-date { font-size: .8rem; color: var(--accent-d); font-weight: 700; }
.tl-card { margin-top: 8px; }
.tl-kind { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; color: var(--muted); margin-bottom: 6px; }
.tl-title { font-family: var(--font-head); font-weight: 700; font-size: 1.08rem; color: #20303d; }
.tl-foto { width: 100%; max-height: 280px; object-fit: cover; border-radius: 7px; margin-top: 12px; border: 1px solid var(--border); }

/* ---------- Projetos ---------- */
.projeto-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.projeto-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-bottom: 1px solid var(--border); }
.projeto-img.ph { background: var(--grad-soft); display: grid; place-items: center; font-size: 2.6rem; color: var(--accent); }
.projeto-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.projeto-body .titulo { font-family: var(--font-head); font-weight: 700; font-size: 1.14rem; color: #20303d; }
.techs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tech { font-size: .72rem; color: var(--primary-d); background: var(--grad-soft); border: 1px solid #c8d4e0; padding: 3px 9px; border-radius: 999px; }
.projeto-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; }

/* ---------- Sobre / institucional ---------- */
.prosa p { color: #3c4651; font-size: 1.08rem; margin-bottom: 18px; }
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.info-item { display: flex; gap: 14px; align-items: flex-start; }
.info-item i { color: var(--accent); font-size: 1.35rem; margin-top: 2px; }
.info-item .k { font-size: .77rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.info-item .v { font-weight: 600; color: #20303d; }

/* ---------- Util ---------- */
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty i { font-size: 2.6rem; color: var(--border-strong); display: block; margin-bottom: 12px; }
.reveal { opacity: 0; transform: translateY(14px); transition: .5s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: 1fr; }
  .aco-links { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #fff; padding: 12px; gap: 4px; border-bottom: 1px solid var(--border-strong); box-shadow: 0 16px 30px -18px rgba(31, 47, 64, .32); }
  .aco-links.open { display: flex; }
  .aco-links a.active { background: var(--grad-soft); border-radius: 6px; box-shadow: inset 3px 0 0 var(--accent); }
  .aco-cta { margin-left: 0; margin-top: 4px; text-align: center; justify-content: center; }
  .aco-toggle { display: inline-block; }
  .tema-dock .lbl { display: none; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4, .grid-2, .stats { grid-template-columns: 1fr; }
  .sec { padding: 52px 0; }
}
