/* =====================================================================
   BLOG OPO TRANSFER — página do blog e artigos
   Só é carregado nas páginas do blog. Header e rodapé usam main.css.
   ===================================================================== */

/* "clip" em vez de "hidden": evita o scroll lateral sem impedir a barra lateral fixa (sticky). */
html,
body {
  overflow-x: clip;
  overflow-y: visible;
}

.opo-blog {
  --b-navy: #06152b;
  --b-navy-2: #0b2342;
  --b-gold: #d6a11c;
  --b-gold-soft: #fbf3df;
  --b-ink: #172033;
  --b-text: #3d4a5c;
  --b-muted: #6b7686;
  --b-line: #e6eaf0;
  --b-bg: #f5f7fa;
  --b-white: #fff;
  --b-link: #1650c7;
  --b-radius: 14px;
  --b-radius-sm: 10px;
  --b-shadow: 0 1px 2px rgba(6, 21, 43, .04), 0 8px 24px rgba(6, 21, 43, .06);
  --b-shadow-hover: 0 2px 4px rgba(6, 21, 43, .05), 0 16px 36px rgba(6, 21, 43, .10);
  --b-font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  font-family: var(--b-font);
  color: var(--b-text);
  background: var(--b-bg);
  overflow: visible;
  -webkit-font-smoothing: antialiased;
}

.opo-blog *,
.opo-blog *::before,
.opo-blog *::after {
  box-sizing: border-box;
}

.opo-blog img {
  display: block;
  max-width: 100%;
  height: auto;
}

.opo-blog a {
  color: inherit;
}

.opo-blog .screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* Botão dourado (o mesmo dégradé dos botões do site) */
.opo-blog-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e0a700, #ffc846);
  color: var(--b-navy) !important;
  font-family: var(--b-font);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(214, 161, 28, .28);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.opo-blog-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 10px 24px rgba(214, 161, 28, .36);
}

.opo-blog-btn:focus-visible,
.opo-blog-chip:focus-visible,
.opo-blog-card-link:focus-visible {
  outline: 3px solid rgba(214, 161, 28, .55);
  outline-offset: 3px;
}

.opo-blog-btn-block {
  display: flex;
  width: 100%;
}

/* Etiqueta de categoria */
.opo-blog-cat {
  display: inline-block;
  margin-bottom: 10px;
  color: #a87a06;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}

/* ---------------------------------------------------------------------
   HERO
   --------------------------------------------------------------------- */
.opo-blog-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 56px 0 64px;
  background: var(--b-navy);
  color: var(--b-white);
}

.opo-blog-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.opo-blog-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.opo-blog-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(6, 21, 43, .94) 0%, rgba(6, 21, 43, .78) 55%, rgba(6, 21, 43, .55) 100%),
    linear-gradient(180deg, rgba(6, 21, 43, 0) 60%, rgba(6, 21, 43, .5) 100%);
}

.opo-blog-hero-inner {
  max-width: 1320px;
}

.opo-blog-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--b-gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.opo-blog-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--b-gold);
}

.opo-blog-hero h1 {
  max-width: 720px;
  margin: 0 0 14px;
  color: var(--b-white);
  font-family: var(--b-font);
  font-size: clamp(28px, 6.4vw, 46px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.opo-blog-hero-text {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: 15px;
  line-height: 1.7;
}

/* ---------------------------------------------------------------------
   PESQUISA + CATEGORIAS
   --------------------------------------------------------------------- */
.opo-blog-list {
  padding: 0 0 72px;
}

.opo-blog-toolbar {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 16px;
  margin: -28px 0 32px;
  padding: 16px;
  border: 1px solid var(--b-line);
  border-radius: var(--b-radius);
  background: var(--b-white);
  box-shadow: var(--b-shadow);
}

.opo-blog-search {
  position: relative;
  display: flex;
  align-items: center;
}

.opo-blog-search > .fa-magnifying-glass {
  position: absolute;
  left: 16px;
  color: var(--b-muted);
  font-size: 15px;
  pointer-events: none;
}

.opo-blog-search input {
  width: 100%;
  height: 50px;
  padding: 0 44px 0 44px;
  border: 1px solid var(--b-line);
  border-radius: 10px;
  background: var(--b-bg);
  color: var(--b-ink);
  font-family: var(--b-font);
  font-size: 16px;
  outline: none;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.opo-blog-search input::-webkit-search-cancel-button {
  display: none;
}

.opo-blog-search input::placeholder {
  color: #8a94a3;
}

.opo-blog-search input:focus {
  border-color: rgba(214, 161, 28, .7);
  background: var(--b-white);
  box-shadow: 0 0 0 4px rgba(214, 161, 28, .14);
}

.opo-blog-search-clear {
  position: absolute;
  right: 8px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--b-muted);
  cursor: pointer;
}

.opo-blog-search-clear:hover {
  background: var(--b-line);
  color: var(--b-ink);
}

.opo-blog-chips {
  display: flex;
  gap: 8px;
  margin: 0 -16px;
  padding: 2px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.opo-blog-chips::-webkit-scrollbar {
  display: none;
}

.opo-blog-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--b-line);
  border-radius: 999px;
  background: var(--b-white);
  color: var(--b-ink) !important;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.opo-blog-chip:hover {
  border-color: rgba(214, 161, 28, .6);
}

.opo-blog-chip.is-active {
  border-color: var(--b-navy);
  background: var(--b-navy);
  color: var(--b-white) !important;
}

/* ---------------------------------------------------------------------
   CARTÕES
   --------------------------------------------------------------------- */
.opo-blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.opo-blog-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--b-line);
  border-radius: var(--b-radius);
  background: var(--b-white);
  box-shadow: var(--b-shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}

.opo-blog-card[hidden] {
  display: none;
}

.opo-blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--b-shadow-hover);
}

.opo-blog-card-media {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #dfe4ea;
}

.opo-blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.opo-blog-card:hover .opo-blog-card-media img {
  transform: scale(1.04);
}

.opo-blog-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 22px 22px;
}

.opo-blog-card-title {
  margin: 0 0 10px;
  color: var(--b-ink);
  font-family: var(--b-font);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -.01em;
}

.opo-blog-card-link {
  text-decoration: none;
}

/* Todo o cartão é clicável */
.opo-blog-card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.opo-blog-card-excerpt {
  display: -webkit-box;
  margin: 0 0 18px;
  overflow: hidden;
  color: var(--b-text);
  font-size: 14px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.opo-blog-card-foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: auto;
  padding-top: 16px;
}

.opo-blog-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  color: var(--b-muted);
  font-size: 13px;
}

.opo-blog-meta i {
  margin-right: 4px;
  color: var(--b-ink);
  opacity: .7;
}

.opo-blog-readmore {
  color: var(--b-link);
  font-size: 15px;
  font-weight: 600;
}

.opo-arrow {
  display: inline-block;
  color: currentColor;
  transition: transform .2s ease;
}

.opo-blog-card:hover .opo-arrow {
  transform: translateX(4px);
}

/* Destaque */
.opo-blog-featured {
  margin-bottom: 28px;
}

.opo-blog-featured[hidden] {
  display: none;
}

.opo-blog-card.is-featured .opo-blog-card-title {
  font-size: clamp(21px, 4.6vw, 30px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.02em;
}

.opo-blog-card.is-featured .opo-blog-card-excerpt {
  font-size: 15px;
  -webkit-line-clamp: 4;
}

.opo-blog-card.is-featured .opo-blog-readmore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 10px;
  background: var(--b-gold);
  color: var(--b-navy);
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(214, 161, 28, .25);
}

/* Título da secção "Artigos mais recentes" */
.opo-blog-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 24px;
  margin: 8px 0 22px;
  scroll-margin-top: 90px;
}

.opo-blog-section-head .opo-blog-eyebrow {
  margin-bottom: 6px;
}

.opo-blog-section-title {
  margin: 0;
  color: var(--b-ink);
  font-family: var(--b-font);
  font-size: clamp(24px, 4.4vw, 32px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
}

.opo-blog-section-link {
  color: var(--b-link) !important;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.opo-blog-section-link:hover {
  text-decoration: underline;
}

/* Vazio / paginação */
.opo-blog-empty {
  margin: 8px 0 0;
  padding: 48px 20px;
  border: 1px dashed var(--b-line);
  border-radius: var(--b-radius);
  background: var(--b-white);
  color: var(--b-muted);
  font-size: 15px;
  text-align: center;
}

.opo-blog-empty i {
  display: block;
  margin-bottom: 10px;
  font-size: 26px;
  color: var(--b-gold);
}

.opo-blog-empty[hidden],
.opo-blog-pagination[hidden] {
  display: none;
}

.opo-blog-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.opo-blog-pagination button {
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--b-line);
  border-radius: 10px;
  background: var(--b-white);
  color: var(--b-ink);
  font-family: var(--b-font);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}

.opo-blog-pagination button:hover:not(:disabled) {
  border-color: rgba(214, 161, 28, .6);
}

.opo-blog-pagination button[aria-current="page"] {
  border-color: var(--b-gold);
  background: var(--b-gold);
  color: var(--b-navy);
  font-weight: 700;
}

.opo-blog-pagination button:disabled {
  opacity: .4;
  cursor: default;
}

/* Faixa de reserva no fim da lista */
.opo-blog-band {
  display: grid;
  gap: 18px;
  margin-top: 56px;
  padding: 28px 24px;
  border-radius: var(--b-radius);
  background: linear-gradient(135deg, var(--b-navy) 0%, var(--b-navy-2) 100%);
  color: rgba(255, 255, 255, .78);
}

.opo-blog-band p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

.opo-blog-band .opo-blog-band-title {
  margin-bottom: 6px;
  color: var(--b-white);
  font-size: 21px;
  font-weight: 600;
}

/* ---------------------------------------------------------------------
   ARTIGO
   --------------------------------------------------------------------- */
.opo-article-head {
  padding: 28px 0 0;
  background: var(--b-white);
}

.opo-article-head-inner {
  max-width: 880px;
  margin-inline: auto;
}

.opo-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-bottom: 22px;
  color: var(--b-muted);
  font-size: 13px;
}

.opo-breadcrumb a {
  color: var(--b-ink);
  text-decoration: none;
}

.opo-breadcrumb a:hover {
  color: #a87a06;
}

.opo-breadcrumb [aria-current] {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.opo-article-title {
  margin: 0 0 16px;
  color: var(--b-ink);
  font-family: var(--b-font);
  font-size: clamp(27px, 6.2vw, 44px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.02em;
}

.opo-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 20px;
  color: var(--b-muted);
  font-size: 14px;
}

.opo-article-meta i {
  margin-right: 4px;
  color: var(--b-gold);
}

.opo-article-lead {
  margin: 0 0 28px;
  color: var(--b-text);
  font-size: 17px;
  line-height: 1.75;
}

.opo-article-hero {
  margin: 0;
  overflow: hidden;
  border-radius: var(--b-radius);
  aspect-ratio: 3 / 2;
  background: #dfe4ea;
}

.opo-article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.opo-article-head > .opo-container:last-child {
  padding-bottom: 0;
}

.opo-article-head::after {
  content: "";
  display: block;
  height: 0;
}

.opo-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  padding: 36px 0 64px;
}

.opo-article-main {
  min-width: 0;
}

/* Índice */
.opo-toc {
  border: 1px solid var(--b-line);
  border-radius: var(--b-radius);
  background: var(--b-white);
}

.opo-toc-mobile {
  margin-bottom: 28px;
  box-shadow: var(--b-shadow);
}

.opo-toc-mobile summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 18px;
  color: var(--b-ink);
  font-size: 15px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.opo-toc-mobile summary::-webkit-details-marker {
  display: none;
}

.opo-toc-mobile summary .fa-list-ul {
  color: var(--b-gold);
}

.opo-toc-chevron {
  margin-left: auto;
  font-size: 12px;
  transition: transform .2s ease;
}

.opo-toc-mobile[open] .opo-toc-chevron {
  transform: rotate(180deg);
}

.opo-toc-mobile .opo-toc-list {
  padding: 0 18px 16px 18px;
}

.opo-toc-desktop {
  display: none;
  padding: 20px 20px 14px;
}

.opo-toc-title {
  margin: 0 0 10px;
  color: var(--b-ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.opo-toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.opo-toc-list > li {
  counter-increment: toc;
}

.opo-toc-list a {
  position: relative;
  display: block;
  padding: 7px 0 7px 28px;
  border-radius: 6px;
  color: var(--b-text);
  font-size: 14px;
  line-height: 1.45;
  text-decoration: none;
  transition: color .2s ease;
}

.opo-toc-list > li > a::before {
  content: counter(toc) ".";
  position: absolute;
  left: 2px;
  color: var(--b-muted);
  font-weight: 500;
}

.opo-toc-list a:hover,
.opo-toc-list a.is-active {
  color: var(--b-navy);
}

.opo-toc-list > li > a.is-active::before,
.opo-toc-list > li > a:hover::before {
  color: var(--b-gold);
}

.opo-toc-list a.is-active {
  font-weight: 600;
}

.opo-toc-list ol {
  margin: 0 0 4px;
  padding: 0 0 0 28px;
  list-style: none;
}

.opo-toc-list ol a {
  padding: 4px 0 4px 12px;
  border-left: 2px solid var(--b-line);
  border-radius: 0;
  font-size: 13px;
}

.opo-toc-list ol a.is-active {
  border-left-color: var(--b-gold);
}

/* Texto do artigo */
.opo-article-content {
  color: var(--b-text);
  font-size: 17px;
  line-height: 1.8;
}

.opo-article-content > *:first-child {
  margin-top: 0;
}

.opo-article-content p,
.opo-article-content ul,
.opo-article-content ol {
  margin: 0 0 22px;
}

.opo-article-content h2,
.opo-article-faq h2 {
  margin: 48px 0 16px;
  color: var(--b-ink);
  font-family: var(--b-font);
  font-size: clamp(22px, 4.8vw, 28px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.015em;
  scroll-margin-top: 100px;
}

.opo-article-content h3 {
  margin: 32px 0 12px;
  color: var(--b-ink);
  font-family: var(--b-font);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
  scroll-margin-top: 100px;
}

.opo-article-content strong {
  color: var(--b-ink);
  font-weight: 600;
}

.opo-article-content a {
  color: var(--b-navy);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(214, 161, 28, .7);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color .2s ease;
}

.opo-article-content a:hover {
  color: #a87a06;
}

.opo-article-content a.opo-blog-btn {
  text-decoration: none;
}

.opo-article-content ul {
  padding: 0;
  list-style: none;
}

.opo-article-content ul li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 26px;
}

.opo-article-content ul li::before {
  content: "";
  position: absolute;
  top: .72em;
  left: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--b-gold);
}

.opo-article-content ol {
  padding-left: 22px;
}

.opo-article-content ol li {
  margin-bottom: 10px;
  padding-left: 4px;
}

.opo-article-content ol li::marker {
  color: #a87a06;
  font-weight: 600;
}

/* Cartões de informação */
.opo-info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 28px 0 32px;
}

.opo-info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px;
  border: 1px solid var(--b-line);
  border-radius: var(--b-radius-sm);
  background: var(--b-white);
}

.opo-info-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 8px;
  border-radius: 10px;
  background: var(--b-gold-soft);
  color: #a87a06;
  font-size: 16px;
}

.opo-info-label {
  color: var(--b-muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.opo-info-value {
  color: var(--b-ink) !important;
  font-size: 17px;
  font-weight: 600 !important;
  line-height: 1.35;
}

/* Tabelas */
.opo-table-wrap {
  margin: 28px 0 32px;
}

.opo-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 15px;
  line-height: 1.5;
}

.opo-table caption {
  margin-bottom: 10px;
  color: var(--b-muted);
  font-size: 13px;
  text-align: left;
}

/* Telemóvel: cada linha vira um cartão */
.opo-table thead {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.opo-table tbody,
.opo-table tr,
.opo-table td,
.opo-table th {
  display: block;
}

.opo-table tbody tr {
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid var(--b-line);
  border-radius: var(--b-radius-sm);
  background: var(--b-white);
}

.opo-table tbody th,
.opo-table tbody td {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 16px;
  border-top: 1px solid var(--b-line);
  text-align: right;
}

.opo-table tbody tr > :first-child {
  border-top: 0;
  background: var(--b-navy);
  color: var(--b-white);
  font-weight: 600;
  text-align: left;
}

.opo-table tbody tr > :first-child::before {
  display: none;
}

.opo-table tbody td::before,
.opo-table tbody th::before {
  content: attr(data-label);
  color: var(--b-muted);
  font-weight: 500;
  text-align: left;
}

.opo-table tr.is-highlight > :first-child {
  background: linear-gradient(135deg, #e0a700, #ffc846);
  color: var(--b-navy);
}

/* Caixa de dica */
.opo-tip {
  display: flex;
  gap: 16px;
  margin: 28px 0 32px;
  padding: 20px 22px;
  border: 1px solid #efdcae;
  border-left: 4px solid var(--b-gold);
  border-radius: var(--b-radius-sm);
  background: var(--b-gold-soft);
}

.opo-tip-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--b-white);
  color: #a87a06;
  font-size: 17px;
}

.opo-tip-title {
  margin: 2px 0 6px !important;
  color: var(--b-ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.opo-tip-text p {
  margin: 0 0 10px !important;
  font-size: 16px;
  line-height: 1.7;
}

.opo-tip-text p:last-child {
  margin-bottom: 0 !important;
}

/* CTA dentro do texto */
.opo-inline-cta {
  display: grid;
  gap: 16px;
  margin: 36px 0;
  padding: 24px;
  border-radius: var(--b-radius);
  background: linear-gradient(135deg, var(--b-navy) 0%, var(--b-navy-2) 100%);
  color: rgba(255, 255, 255, .8);
}

.opo-inline-cta p {
  margin: 0 !important;
  font-size: 15px;
  line-height: 1.6;
}

.opo-inline-cta .opo-inline-cta-title {
  margin-bottom: 6px !important;
  color: var(--b-white);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
}

.opo-inline-cta .opo-blog-btn {
  justify-self: start;
}

/* Perguntas frequentes */
.opo-article-faq {
  margin-top: 8px;
}

.opo-bfaq-item {
  margin-bottom: 10px;
  border: 1px solid var(--b-line);
  border-radius: var(--b-radius-sm);
  background: var(--b-white);
}

.opo-bfaq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 14px 18px;
  color: var(--b-ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  list-style: none;
  cursor: pointer;
}

.opo-bfaq-item summary::-webkit-details-marker {
  display: none;
}

.opo-bfaq-item summary i {
  flex: 0 0 auto;
  color: var(--b-gold);
  font-size: 14px;
  transition: transform .2s ease;
}

.opo-bfaq-item[open] summary i {
  transform: rotate(45deg);
}

.opo-bfaq-answer {
  padding: 0 18px 4px;
  color: var(--b-text);
  font-size: 16px;
  line-height: 1.75;
}

.opo-bfaq-answer p {
  margin: 0 0 14px;
}

/* CTA final do artigo */
.opo-article-endcta {
  display: grid;
  gap: 18px;
  margin-top: 44px;
  padding: 28px 24px;
  border: 1px solid #efdcae;
  border-radius: var(--b-radius);
  background: var(--b-gold-soft);
}

.opo-article-endcta p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

.opo-article-endcta .opo-article-endcta-title {
  margin-bottom: 6px;
  color: var(--b-ink);
  font-size: 21px;
  font-weight: 700;
}

.opo-article-endcta .opo-blog-btn {
  justify-self: start;
}

/* Barra lateral */
.opo-article-aside {
  min-width: 0;
}

.opo-aside-sticky {
  display: grid;
  gap: 20px;
}

.opo-aside-cta {
  padding: 24px 22px;
  border-radius: var(--b-radius);
  background: linear-gradient(160deg, var(--b-navy) 0%, var(--b-navy-2) 100%);
  color: rgba(255, 255, 255, .85);
  box-shadow: var(--b-shadow);
}

.opo-aside-cta-title {
  margin: 0 0 14px;
  color: var(--b-white);
  font-size: 20px;
  font-weight: 600;
}

.opo-aside-cta ul {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.opo-aside-cta li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  font-size: 14px;
  line-height: 1.5;
}

.opo-aside-cta li i {
  margin-top: 4px;
  color: var(--b-gold);
  font-size: 12px;
}

/* Relacionados */
.opo-blog-related {
  padding: 56px 0 72px;
  border-top: 1px solid var(--b-line);
  background: var(--b-white);
}

.opo-blog-related .opo-blog-card {
  background: var(--b-white);
}

.opo-blog-related-title {
  margin: 0 0 24px;
  color: var(--b-ink);
  font-family: var(--b-font);
  font-size: clamp(22px, 4.8vw, 28px);
  font-weight: 700;
  letter-spacing: -.015em;
}

/* Barra de reserva no telemóvel (aparece depois de começar a ler) */
.opo-blog-mobilebar {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e0a700, #ffc846);
  color: var(--b-navy) !important;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(6, 21, 43, .25);
  transform: translateY(140%);
  transition: transform .3s ease;
}

.opo-blog-mobilebar.is-visible {
  transform: translateY(0);
}

/* ---------------------------------------------------------------------
   TABLET
   --------------------------------------------------------------------- */
@media (min-width: 640px) {
  .opo-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .opo-blog-hero {
    padding: 64px 0 76px;
  }

  .opo-blog-hero-text {
    font-size: 16px;
  }

  .opo-inline-cta,
  .opo-article-endcta,
  .opo-blog-band {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 28px 32px;
  }

  .opo-inline-cta .opo-blog-btn,
  .opo-article-endcta .opo-blog-btn {
    justify-self: end;
  }

  /* Tabela normal a partir do tablet */
  .opo-table-wrap {
    overflow: hidden;
    border: 1px solid var(--b-line);
    border-radius: var(--b-radius-sm);
    background: var(--b-white);
  }

  .opo-table {
    display: table;
  }

  .opo-table caption {
    margin: 0;
    padding: 12px 16px;
    border-bottom: 1px solid var(--b-line);
  }

  .opo-table thead {
    position: static;
    display: table-header-group;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
  }

  .opo-table tbody {
    display: table-row-group;
  }

  .opo-table tr {
    display: table-row;
  }

  .opo-table th,
  .opo-table td,
  .opo-table tbody th,
  .opo-table tbody td {
    display: table-cell;
    padding: 14px 16px;
    border-top: 1px solid var(--b-line);
    text-align: left;
    vertical-align: top;
  }

  .opo-table thead th {
    border-top: 0;
    background: var(--b-navy);
    color: var(--b-white);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
    white-space: nowrap;
  }

  .opo-table tbody tr {
    margin: 0;
    border: 0;
    border-radius: 0;
  }

  .opo-table tbody td::before,
  .opo-table tbody th::before {
    display: none;
  }

  .opo-table tbody tr > :first-child {
    background: transparent;
    color: var(--b-ink);
  }

  .opo-table tbody tr:nth-child(even) {
    background: #fafbfc;
  }

  .opo-table tr.is-highlight {
    background: var(--b-gold-soft) !important;
  }

  .opo-table tr.is-highlight > :first-child {
    background: transparent;
    box-shadow: inset 4px 0 0 var(--b-gold);
    color: var(--b-ink);
  }
}

@media (min-width: 760px) {
  .opo-blog-toolbar {
    grid-template-columns: minmax(260px, 360px) 1fr;
    align-items: center;
    margin-top: -32px;
    padding: 14px;
  }

  .opo-blog-chips {
    margin: 0;
    padding: 2px 0;
    flex-wrap: wrap;
    overflow: visible;
  }

  /* Destaque horizontal */
  .opo-blog-card.is-featured {
    flex-direction: row;
  }

  .opo-blog-card.is-featured .opo-blog-card-media {
    flex: 0 0 56%;
    aspect-ratio: auto;
    min-height: 380px;
  }

  .opo-blog-card.is-featured .opo-blog-card-body {
    justify-content: center;
    padding: 36px 40px;
  }

  .opo-blog-card.is-featured .opo-blog-card-foot {
    border-top: 0;
    padding-top: 6px;
  }

  .opo-article-head {
    padding-top: 40px;
  }
}

/* ---------------------------------------------------------------------
   DESKTOP
   --------------------------------------------------------------------- */
@media (min-width: 1024px) {
  .opo-blog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
  }

  .opo-blog-hero {
    padding: 72px 0 88px;
  }

  .opo-article-hero {
    aspect-ratio: 21 / 9;
  }

  .opo-article-head-inner {
    margin-inline: 0;
    max-width: 900px;
  }

  .opo-article-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 56px;
    padding: 48px 0 80px;
  }

  .opo-article-main {
    max-width: 820px;
  }

  .opo-toc-mobile {
    display: none;
  }

  .opo-toc-desktop {
    display: block;
  }

  .opo-aside-sticky {
    position: sticky;
    top: 24px;
  }

  .opo-toc-desktop {
    max-height: max(220px, calc(100vh - 430px));
    overflow-y: auto;
    scrollbar-width: thin;
  }

  .opo-blog-mobilebar {
    display: none;
  }
}

@media (min-width: 1280px) {
  .opo-article-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .opo-blog *,
  .opo-blog *::before,
  .opo-blog *::after {
    transition: none !important;
  }
}

.opo-blog-hero h1 .opo-blog-hero-accent {
  color: var(--b-gold);
}

/* ---------------------------------------------------------------------
   TRAJETO (shortcode [opo_rota]) — origem → destino, sem mapa externo
   --------------------------------------------------------------------- */
.opo-route {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(48px, 1.2fr) minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  margin: 28px 0;
  padding: 22px 24px;
  border: 1px solid var(--b-line);
  border-radius: var(--b-radius);
  background: var(--b-white);
  box-shadow: var(--b-shadow);
}

.opo-route-point {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.opo-route-point.is-end {
  text-align: right;
}

.opo-route-dot {
  width: 12px;
  height: 12px;
  margin-bottom: 6px;
  border: 3px solid var(--b-navy);
  border-radius: 50%;
  background: var(--b-white);
}

.opo-route-point.is-end .opo-route-dot {
  justify-self: end;
  border-color: var(--b-gold);
  background: var(--b-gold);
}

.opo-route-label {
  color: var(--b-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.opo-route-point strong {
  color: var(--b-ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.opo-route-line {
  position: relative;
  margin-top: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2px;
  background-image: linear-gradient(90deg, var(--b-navy) 50%, transparent 50%);
  background-size: 10px 2px;
}

.opo-route-line i {
  padding: 0 10px;
  background: var(--b-white);
  color: var(--b-navy);
  font-size: 16px;
}

.opo-route-meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 12px;
  margin: 4px 0 0;
  color: var(--b-text);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.opo-route-meta span {
  color: var(--b-muted);
  font-weight: 400;
}

@media (max-width: 520px) {
  .opo-route {
    grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr);
    padding: 18px 16px;
  }

  .opo-route-line i {
    padding: 0 4px;
    font-size: 13px;
  }

  .opo-route-point strong {
    font-size: 14px;
  }
}

/* ---------------------------------------------------------------------
   OPO RIO — detalhe inspirado no calçadão de Copacabana (ondas)
   --------------------------------------------------------------------- */
.opo-blog-rio .opo-blog-hero {
  padding-bottom: 84px;
}

.opo-blog-rio .opo-blog-hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  height: 22px;
  opacity: .22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='22' viewBox='0 0 48 22'%3E%3Cpath d='M0 11c6 0 6-8 12-8s6 8 12 8 6 8 12 8 6-8 12-8' fill='none' stroke='%23ffffff' stroke-width='3'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 48px 22px;
  pointer-events: none;
}

.opo-blog-rio .opo-aside-cta {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='22' viewBox='0 0 48 22'%3E%3Cpath d='M0 11c6 0 6-8 12-8s6 8 12 8 6 8 12 8 6-8 12-8' fill='none' stroke='%23d6a11c' stroke-width='2' opacity='.35'/%3E%3C/svg%3E"),
    linear-gradient(160deg, var(--b-navy) 0%, var(--b-navy-2) 100%);
  background-repeat: repeat-x, no-repeat;
  background-position: left bottom, 0 0;
  background-size: 48px 22px, cover;
  padding-bottom: 36px;
}

/* Hero do Rio: mantém o Cristo e o Pão de Açúcar visíveis (lado direito da foto). */
.opo-blog-rio .opo-blog-hero-bg img {
  object-position: 78% 55%;
}
