/* ===== PÁGINAS INSTITUCIONAIS ===== */

.inst-page {
  padding: 48px 0 80px;
  min-height: 60vh;
}

.inst-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  align-items: start;
}

/* ---- Sidebar ---- */
.inst-sidebar {
  position: sticky;
  top: 100px;
}

.inst-sidebar h3 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 16px;
}

.inst-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 1px solid #e8e8e8;
}

.inst-sidebar li a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  color: #555;
  text-decoration: none;
  border-left: 2px solid transparent;
  margin-left: -1px;
  transition: color 0.2s, border-color 0.2s;
}

.inst-sidebar li a:hover {
  color: #000;
  border-left-color: #ccc;
}

.inst-sidebar li.active a {
  color: #000;
  font-weight: 600;
  border-left-color: #000;
}

/* ---- Conteúdo ---- */
.inst-content h1 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  margin-bottom: 40px;
  letter-spacing: -0.02em;
}

.inst-section {
  margin-bottom: 48px;
}

.inst-section h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e8e8e8;
}

.inst-section h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 20px 0 8px;
}

.inst-section p {
  font-size: 15px;
  line-height: 1.7;
  color: #333;
  margin-bottom: 12px;
}

.inst-list {
  padding-left: 20px;
  margin-bottom: 16px;
}

.inst-list li {
  font-size: 15px;
  line-height: 1.7;
  color: #333;
  margin-bottom: 8px;
}

/* ---- Botões ---- */
.inst-btn {
  display: inline-block;
  padding: 12px 24px;
  background: #000;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: 2px solid #000;
  transition: background 0.2s, color 0.2s;
}

.inst-btn:hover {
  background: transparent;
  color: #000;
}

.inst-btn-primary {
  font-size: 14px;
  padding: 14px 32px;
  margin-top: 8px;
}

/* ---- Cards de contato (Central de Ajuda) ---- */
.inst-contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.inst-contact-card {
  border: 1px solid #e8e8e8;
  padding: 28px 24px;
  text-align: center;
}

.inst-contact-icon {
  margin-bottom: 16px;
  color: #000;
}

.inst-contact-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.inst-contact-card p {
  font-size: 13px;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* ---- Links grid (Central de Ajuda) ---- */
.inst-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.inst-link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border: 1px solid #e8e8e8;
  text-decoration: none;
  color: #000;
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.2s, background 0.2s;
}

.inst-link-card:hover {
  border-color: #000;
  background: #fafafa;
}

/* ---- FAQ (Central de Ajuda) ---- */
.inst-faq details {
  border-bottom: 1px solid #e8e8e8;
}

.inst-faq details:first-child {
  border-top: 1px solid #e8e8e8;
}

.inst-faq summary {
  padding: 18px 0;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.inst-faq summary::-webkit-details-marker { display: none; }

.inst-faq summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.inst-faq details[open] summary::after {
  transform: rotate(45deg);
}

.inst-faq details p {
  padding-bottom: 20px;
  font-size: 14px;
  line-height: 1.75;
  color: #555;
}

/* ---- Destaques (Trocas) ---- */
.inst-highlight-boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.inst-highlight {
  background: #f5f5f5;
  padding: 24px;
  text-align: center;
}

.inst-highlight strong {
  display: block;
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 6px;
}

.inst-highlight span {
  font-size: 13px;
  color: #555;
}

/* ---- Info de contato ---- */
.inst-contact-info {
  background: #fafafa;
  padding: 28px;
  border-left: 3px solid #000;
}

.inst-contact-info p {
  margin-bottom: 8px;
}

.inst-contact-info a {
  color: #000;
  text-decoration: underline;
}

/* ---- Pagamento grid ---- */
.inst-payment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 16px;
}

.inst-payment-item {
  border: 1px solid #e8e8e8;
  padding: 24px;
}

.inst-payment-item h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  margin-top: 0;
}

.inst-payment-item p {
  font-size: 14px;
  color: #444;
  margin-bottom: 10px;
}

.inst-pix-highlight {
  border-color: #000;
  background: #f9f9f9;
}

.inst-card-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.inst-card-brands span {
  background: #eee;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
}

/* ---- Tabela de medidas ---- */
.inst-measure-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.inst-measure-item {
  background: #f5f5f5;
  padding: 20px;
}

.inst-measure-item strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.inst-measure-item p {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

.inst-table-wrap {
  overflow-x: auto;
  margin-bottom: 8px;
}

.inst-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.inst-table th,
.inst-table td {
  padding: 12px 16px;
  text-align: center;
  border: 1px solid #e8e8e8;
}

.inst-table th {
  background: #000;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.inst-table td:first-child {
  text-align: left;
  font-weight: 600;
  background: #fafafa;
}

.inst-table-note {
  font-size: 12px;
  color: #888;
  margin-bottom: 8px;
}

/* ---- Responsivo ---- */
@media (max-width: 768px) {
  .inst-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .inst-sidebar {
    position: static;
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: 24px;
  }

  .inst-sidebar ul {
    border-left: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .inst-sidebar li a {
    border: 1px solid #e8e8e8;
    border-left: 1px solid #e8e8e8;
    padding: 8px 14px;
    font-size: 13px;
    border-radius: 0;
  }

  .inst-sidebar li.active a {
    background: #000;
    color: #fff;
    border-color: #000;
  }

  .inst-contact-cards,
  .inst-highlight-boxes,
  .inst-payment-grid {
    grid-template-columns: 1fr;
  }

  .inst-links-grid,
  .inst-measure-grid {
    grid-template-columns: 1fr;
  }
}
