@font-face {
  font-family: "SourceHan";
  src: url("../img/tipografia/SourceHanSansCN-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "SourceHan";
  src: url("../img/tipografia/SourceHanSansCN-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "SourceHan";
  src: url("../img/tipografia/SourceHanSansCN-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
}

:root {
  --bg: #0f1113;
  --surface: #14181c;
  --surface-2: #171d22;
  --surface-3: #1c2228;
  --line: #2a333a;
  --line-strong: #3a4751;
  --text: #f3f5f7;
  --muted: #a2adb7;
  --brand: #c98a2e;
  --brand-strong: #d89935;
  --brand-text: #111317;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --maxw: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "SourceHan", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(201, 138, 46, 0.08) 0, transparent 30%),
    radial-gradient(circle at 90% 0%, rgba(255, 255, 255, 0.04) 0, transparent 34%),
    radial-gradient(circle at 50% 100%, rgba(201, 138, 46, 0.04) 0, transparent 28%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

.cookie-settings-link {
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-settings-link:hover {
  color: var(--brand);
}

.container {
  width: min(var(--maxw), calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(15, 17, 19, 0.76);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header__inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand img { width: 108px; height: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color .2s ease, transform .2s ease;
}

.nav a:hover { color: var(--brand); }

.nav .is-active {
  color: var(--text);
}

.nav .cta-link {
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #000000;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 16px;
  transition: background .2s ease, box-shadow .25s ease, transform .25s ease;
  animation: navCtaPulse 1.6s ease-out infinite;
}

.cta-link:hover {
  background: var(--brand-strong);
}

.nav .cta-link,
.nav .cta-link:visited,
.nav .cta-link:hover {
  color: #000000;
}

.nav .cta-link:hover {
  animation-play-state: paused;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 30px rgba(201, 138, 46, 0.55);
}

@keyframes navCtaPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(201, 138, 46, 0.00), 0 0 0 0 rgba(201, 138, 46, 0.00);
    transform: translateY(0);
  }
  35% {
    box-shadow: 0 0 0 10px rgba(201, 138, 46, 0.28), 0 0 0 0 rgba(201, 138, 46, 0.18);
    transform: translateY(-2px) scale(1.03);
  }
  65% {
    box-shadow: 0 0 0 20px rgba(201, 138, 46, 0.00), 0 0 0 34px rgba(201, 138, 46, 0.00);
    transform: translateY(0) scale(1);
  }
}

.blog-hero {
  padding: 42px 0 30px;
}

.blog-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 22px;
  align-items: stretch;
}

.blog-hero__copy,
.blog-hero__spotlight,
.blog-panel,
.article-content,
.article-aside,
.faq-panel,
.related-posts,
.posts-filter,
.posts-empty {
  background: linear-gradient(180deg, rgba(24, 29, 34, 0.98) 0%, rgba(19, 23, 27, 0.98) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.blog-hero__copy {
  padding: 38px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.blog-hero h1,
.article-hero h1 {
  margin: 0;
  font-size: clamp(34px, 4.8vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.blog-hero__lead,
.article-hero__lead {
  margin: 18px 0 0;
  color: var(--muted);
  max-width: 62ch;
  font-size: 16px;
}

.blog-hero__meta {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.blog-hero__spotlight {
  overflow: hidden;
}

.blog-hero__spotlight .post-card {
  height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.blog-hero__spotlight .post-card--featured {
  grid-template-columns: 1fr;
}

.posts-filter {
  margin-top: 20px;
  padding: 18px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform .2s ease, border-color .2s ease, color .2s ease, background .2s ease;
}

.filter-pill:hover {
  color: var(--text);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.filter-pill.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #111317;
}

.section {
  padding: 28px 0 72px;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.section-heading__eyebrow {
  color: var(--brand);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.post-grid,
.related-posts__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.post-card {
  grid-column: span 4;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(24, 29, 34, 0.98) 0%, rgba(19, 23, 27, 0.98) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform .25s ease, border-color .25s ease;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.post-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.post-card--featured {
  grid-column: span 12;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
}

.post-card__media {
  display: block;
  aspect-ratio: 16 / 9;
  min-height: 0;
  background: #0b0d0f;
}

.post-card--featured .post-card__media {
  aspect-ratio: auto;
  min-height: 100%;
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.post-card__badge {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(201, 138, 46, 0.24);
  background: rgba(201, 138, 46, 0.08);
  color: #f1c67c;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.post-card__title {
  margin: 0;
  font-size: 22px;
  line-height: 1.12;
}

.post-card__title a {
  text-decoration: none;
}

.post-card__excerpt {
  margin: 0;
  color: var(--muted);
}

.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: auto;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-card__footer {
  padding-top: 2px;
}

.post-card__link,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(201, 138, 46, 0.22);
  background: rgba(201, 138, 46, 0.08);
  color: #f7d39f;
  text-decoration: none;
  padding: 10px 14px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.post-card__link:hover,
.button-link:hover {
  transform: translateY(-1px);
  background: rgba(201, 138, 46, 0.14);
  border-color: rgba(201, 138, 46, 0.34);
}

.posts-empty {
  padding: 24px;
  color: var(--muted);
}

.breadcrumbs {
  margin: 0 0 18px;
}

.breadcrumbs__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.breadcrumbs__item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs__item + .breadcrumbs__item::before {
  content: "/";
  color: rgba(255, 255, 255, 0.22);
}

.article {
  padding: 28px 0 72px;
}

.article-hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 22px;
  align-items: stretch;
}

.article-hero__copy {
  padding: 34px;
  background: linear-gradient(180deg, rgba(24, 29, 34, 0.98) 0%, rgba(19, 23, 27, 0.98) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.article-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.article-hero__media {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-height: 420px;
  background: #0b0d0f;
}

.article-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  margin-top: 22px;
}

.article-content,
.article-aside,
.faq-panel,
.related-posts {
  padding: 28px;
}

.article-content h2 {
  margin: 34px 0 12px;
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.article-content h3 {
  margin: 26px 0 10px;
  font-size: 22px;
  line-height: 1.15;
}

.article-content p {
  margin: 0 0 16px;
  color: #d4dbe1;
}

.article-content ul {
  margin: 0 0 18px;
  padding-left: 20px;
  color: #d4dbe1;
}

.article-content li + li { margin-top: 10px; }

.article-image {
  margin: 24px 0;
}

.article-image img {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}

.article-image figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.content-table-wrap {
  margin: 24px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
}

.content-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.content-table caption {
  caption-side: top;
  padding: 14px 18px;
  text-align: left;
  color: var(--muted);
  font-size: 13px;
}

.content-table thead th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
}

.content-table th,
.content-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.content-table tbody tr.is-featured {
  background: rgba(201, 138, 46, 0.08);
}

.content-table tbody tr:last-child th,
.content-table tbody tr:last-child td {
  border-bottom: 0;
}

.callout {
  margin: 24px 0;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(201, 138, 46, 0.24);
  background: rgba(201, 138, 46, 0.08);
}

.callout__label {
  display: inline-block;
  color: #f5c97d;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.callout__title {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.callout p {
  margin: 0;
  color: #f0e5d1;
}

.quote {
  margin: 24px 0;
  padding: 20px 22px;
  border-left: 4px solid var(--brand);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.quote p {
  margin: 0 0 12px;
  font-size: 18px;
  color: var(--text);
}

.quote cite {
  font-style: normal;
  color: var(--muted);
  font-size: 13px;
}

.article-aside {
  position: sticky;
  top: 102px;
  align-self: start;
}

.aside-block + .aside-block {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.aside-block h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.aside-list {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--muted);
}

.aside-list li + li {
  margin-top: 10px;
}

.aside-list strong {
  color: var(--text);
}

.faq-panel,
.related-posts {
  margin-top: 22px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  padding: 16px 18px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

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

.faq-item p {
  margin: 12px 0 0;
  color: var(--muted);
}

.related-posts {
  padding-bottom: 30px;
}

.related-posts__grid .post-card {
  grid-column: span 4;
}

.footer-cta {
  margin-top: 28px;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(201, 138, 46, 0.22);
  background: linear-gradient(180deg, rgba(201, 138, 46, 0.09) 0%, rgba(19, 23, 27, 0.98) 100%);
}

.footer-cta p {
  margin: 0;
  color: #f1ddbc;
}

.footer-cta .button-link {
  margin-top: 16px;
}

.blog-panel {
  margin-top: 18px;
  padding: 18px;
}

.blog-panel__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.blog-panel__heading h2,
.blog-panel__heading h3 {
  margin: 0;
}

.brand-strip {
  background: #13171b;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 34px 0;
}

.brand-strip__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 38px;
  flex-wrap: wrap;
}

.brand-strip img {
  height: 30px;
  width: auto;
  opacity: .92;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 30px 0;
  color: #8d98a3;
  font-size: 13px;
  text-align: center;
}

.site-footer .container {
  line-height: 1.7;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer__note {
  font-size: 8px;
}

@media (max-width: 1080px) {
  .blog-hero__grid,
  .article-hero,
  .article-layout,
  .post-card--featured {
    grid-template-columns: 1fr;
  }

  .article-aside {
    position: static;
  }

  .post-card,
  .related-posts__grid .post-card {
    grid-column: span 6;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(var(--maxw), calc(100% - 32px));
  }

  .site-header__inner {
    min-height: auto;
    padding: 12px 0;
    flex-direction: column;
    align-items: stretch;
  }

  .nav {
    justify-content: flex-start;
  }

  .blog-hero,
  .article {
    padding-top: 22px;
  }

  .blog-hero__copy,
  .article-hero__copy,
  .article-content,
  .article-aside,
  .faq-panel,
  .related-posts,
  .blog-panel,
  .posts-filter,
  .posts-empty {
    border-radius: var(--radius-md);
  }

  .blog-hero__copy,
  .article-hero__copy,
  .article-content,
  .article-aside,
  .faq-panel,
  .related-posts {
    padding: 20px;
  }

  .post-card,
  .related-posts__grid .post-card {
    grid-column: span 12;
  }

  .post-card--featured .post-card__media {
    min-height: 240px;
  }

  .article-hero__media {
    min-height: 280px;
  }

  .section-heading h2,
  .blog-hero h1,
  .article-hero h1 {
    font-size: clamp(28px, 8vw, 40px);
  }
}
