/* ═══════════════════════════════════════════════════════
   inst.css — PrezencIA · Páginas Institucionais
   Depende de: global.css (carregado antes)
   Uso: edit.html · about.html · private.html · faz.html · contato.html
   ═══════════════════════════════════════════════════════ */

/* ── VISIBILIDADE DE IDIOMAS ── */
.lang         { display: none; }
.lang.active  { display: block; }

/* ── HEADER ── */
.inst-header {
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
  border-bottom: 2px solid var(--green);
  background: rgba(7,7,7,.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky; top: 0; z-index: 100;
}
.inst-logo {
  height: 48px; width: auto; display: block;
}
.header-right {
  display: flex; align-items: center; gap: 10px;
}

/* ── SELETOR DE IDIOMA ── */
.lang-toggle {
  display: flex; gap: 4px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px; padding: 4px;
}
.lang-btn {
  padding: 4px 12px; border-radius: 5px; border: none;
  font-family: var(--fu); font-size: 12px; font-weight: 700;
  letter-spacing: .06em; cursor: pointer;
  background: transparent; color: var(--text3);
  transition: background .18s, color .18s;
}
.lang-btn.active { background: var(--green); color: #fff; }

/* ── BOTÃO TEMA ── */
.theme-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,.2);
  color: #A0A0A0;
  width: 32px; height: 32px; border-radius: 6px;
  cursor: pointer; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .18s, color .18s;
}
.theme-btn:hover { border-color: var(--green); color: var(--green); }
html.light .theme-btn {
  color: #A0A0A0;
  border-color: rgba(0,0,0,.2);
}
html.light .theme-btn:hover {
  border-color: var(--green); color: var(--green);
}

/* ── LAYOUT ── */
.inst-wrap {
  max-width: 860px; margin: 0 auto;
  padding: 56px 24px 80px;
}

/* ── EYEBROW ── */
.eyebrow {
  font-size: 10px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--green);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
}
.eyebrow::after {
  content: ''; flex: 1; height: 1px;
  background: var(--border); max-width: 80px;
}

/* ── TÍTULOS ── */
h1 {
  font-family: var(--fh);
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 700; line-height: 1.1; margin-bottom: 16px;
}
h1 em { color: var(--green); font-style: normal; }

/* ── LEAD ── */
.lead {
  font-size: 16px; color: var(--text2);
  line-height: 1.7; margin-bottom: 48px; max-width: 680px;
}

/* ── SEÇÕES ── */
.section       { margin-bottom: 44px; }
.section h2 {
  font-family: var(--fh); font-size: 17px; font-weight: 700;
  margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.section p,
.section li    { font-size: 14px; color: var(--text2); line-height: 1.75; margin-bottom: 10px; }
.section ul    { padding-left: 20px; }
.section strong { color: var(--text); font-weight: 600; }
.section a     { color: var(--green); transition: opacity .18s; }
.section a:hover { opacity: .75; }

/* ── NOTA / DESTAQUE ── */
.note {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  font-size: 13px; color: var(--text2); margin: 20px 0;
}

/* ── FOOTER ── */
.inst-footer {
  border-top: 1px solid var(--border);
  padding: 24px; text-align: center;
  font-size: 12px; color: var(--text3);
}
.inst-footer a { color: var(--text3); transition: color .18s; }
.inst-footer a:hover { color: var(--green); }
.inst-footer .lang { display: none; }
.inst-footer .lang.active { display: inline; }

/* ══════════════════════════════════════════════
   RESPONSIVO INST — TABLET (481px – 1023px)
   ══════════════════════════════════════════════ */
@media (min-width: 481px) and (max-width: 1023px) {
  .inst-header  { padding: 0 20px; height: 60px; }
  .inst-logo    { height: 44px; }
  .header-right { gap: 8px; }
  .lang-toggle  { gap: 3px; padding: 3px; }
  .lang-btn     { padding: 4px 10px; font-size: 11px; }
  .inst-wrap    { padding: 48px 28px 70px; }
  .lead         { font-size: 15px; margin-bottom: 40px; }
  .section      { margin-bottom: 38px; }
}

/* ══════════════════════════════════════════════
   RESPONSIVO INST — MOBILE (até 480px)
   ══════════════════════════════════════════════ */
@media (max-width: 480px) {
  .inst-header  { padding: 0 14px; height: auto; min-height: 56px; flex-wrap: wrap; gap: 6px; padding-top: 8px; padding-bottom: 8px; }
  .inst-logo    { height: 34px; }
  .header-right { gap: 6px; flex-wrap: nowrap; }
  .lang-toggle  { gap: 2px; padding: 3px; }
  .lang-btn     { padding: 4px 7px; font-size: 10px; }
  .inst-wrap    { padding: 32px 14px 56px; }
  .lead         { font-size: 14px; margin-bottom: 28px; }
  .section      { margin-bottom: 28px; }
  .section h2   { font-size: 15px; }
}

/* ══════════════════════════════════════════════
   MODO CLARO — overrides institucionais
   ══════════════════════════════════════════════ */
html.light .inst-header {
  background: rgba(13,13,13,.97);
}