@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap');

:root {
  --brand: #C41E1E;
  --brand-dark: #971616;
  --gray-900: #171717;
  --gray-700: #3A3A3A;
  --gray-500: #6B6B6B;
  --gray-300: #C7C7C7;
  --gray-200: #E4E4E4;
  --gray-100: #F4F4F4;
  --white: #FFFFFF;
  --font: 'Open Sans', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: #fafafa;
  color: var(--gray-900);
}

a { color: inherit; text-decoration: none; }

/* ===== Header ===== */
.top-products {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}
.top-products-inner {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}
.top-products-inner::-webkit-scrollbar { display: none; }
.top-products a {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-900);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.top-products a:hover { border-bottom-color: var(--brand); }

.main-header {
  background: var(--brand);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.main-header-inner {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 72px;
  position: relative;
}
.header-left { display: flex; align-items: center; gap: 14px; }
.logo-link { display: flex; align-items: center; color: var(--white); }
.logo-mark {
  color: var(--white);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.5px;
  line-height: 1;
}
.section-title {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  color: var(--white);
  font-family: 'Open Sans', var(--font);
  font-size: 32px; font-weight: 300;
  font-stretch: normal;
  padding: 0 0 2px;
  white-space: nowrap; max-width: 60vw;
  overflow: hidden; text-overflow: ellipsis;
}
@media (max-width: 480px) { .section-title { font-size: 22px; } }

/* ===== Layout da matéria ===== */
.article-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.article-head { padding-top: 24px; margin-bottom: 8px; }
.article-title {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--gray-900);
  margin-bottom: 16px;
}
.article-subtitle {
  font-size: 17px;
  font-weight: 400;
  color: var(--gray-700);
  line-height: 1.5;
  margin-bottom: 20px;
}
.article-byline {
  font-size: 14px;
  color: var(--gray-900);
  margin-bottom: 4px;
}
.article-byline a {
  color: var(--brand);
  font-weight: 600;
}
.article-byline a:hover { text-decoration: underline; }
.article-date {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 20px;
}

/* ===== Barra de compartilhamento ===== */
.share-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}
.share-btn {
  width: 100%;
  max-width: 130px;
  height: 48px;
  border-radius: 8px;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.share-btn:hover { background: var(--gray-200); }
.share-btn svg { width: 22px; height: 22px; }

/* ===== Espaço de vídeo (placeholder) ===== */
.video-slot {
  margin: 24px 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1a1a1a, #2b2b2b);
  border-radius: 4px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.video-slot::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 12px);
}
.video-slot-play {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.video-slot-play svg { width: 24px; height: 24px; margin-left: 3px; }
.video-slot-label {
  position: absolute;
  bottom: 14px;
  left: 14px;
  color: rgba(255,255,255,0.55);
  font-size: 12px;
  letter-spacing: 0.3px;
  z-index: 1;
}

.article-caption {
  font-size: 12px;
  color: var(--gray-500);
  margin: 8px 0 24px;
}

/* ===== Corpo do texto ===== */
.article-body p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--gray-900);
  margin-bottom: 20px;
}
.article-body h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 32px 0 16px;
  padding-left: 12px;
  border-left: 4px solid var(--brand);
}
.article-body strong { font-weight: 700; }

/* Trecho destacado (grifo) */
.hl {
  background: #FBD9DC;
  padding: 0.1em 0;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
/* Frase em destaque (negrito vermelho) */
.alert {
  color: var(--brand-dark);
  font-weight: 700;
}

/* Citação em destaque */
.pull-quote {
  border-top: 3px solid var(--brand);
  border-bottom: 3px solid var(--brand);
  padding: 20px 0;
  margin: 32px 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--gray-900);
}

/* Caixa explicativa (glossário/contexto) */
.info-box {
  font-size: 16px;
  font-style: italic;
  color: var(--gray-700);
  line-height: 1.7;
  margin: 24px 0;
}

/* Bloco de foto no meio do texto */
.article-photo { margin: 28px 0; }
.article-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  border-radius: 4px;
  overflow: hidden;
}
.article-photo-grid.single { grid-template-columns: 1fr; }
.article-photo-slot {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: repeating-linear-gradient(45deg, var(--gray-200) 0 10px, var(--gray-100) 10px 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  font-size: 12px;
}
.article-photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-caption {
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.5;
  margin-top: 8px;
}

/* ===== Newsletter ===== */
.newsletter {
  margin-top: 48px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: center;
  background: var(--gray-100);
}
.newsletter-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--brand);
  display: flex; align-items: center; justify-content: center;
}
.newsletter-icon svg { width: 22px; height: 22px; }
.newsletter-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.newsletter-desc { font-size: 14px; color: var(--gray-500); margin-bottom: 12px; }
.newsletter-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand); color: var(--white);
  font-size: 14px; font-weight: 600;
  padding: 10px 18px; border-radius: 6px; border: none; cursor: pointer;
}
.newsletter-btn:hover { background: var(--brand-dark); }

/* ===== Comentários ===== */
.comments {
  margin-top: 48px;
  border-top: 1px solid var(--gray-200);
  padding-top: 24px;
}
.comments-title { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.comments-sub { font-size: 14px; color: var(--gray-500); margin-bottom: 16px; }
.comments-box {
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  background: var(--gray-100);
}
.comments-cta-title { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.comments-cta-btn {
  background: var(--white);
  border: 1px solid var(--gray-300);
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.comments-cta-btn:hover { background: var(--gray-200); }

/* ===== Mais lidas ===== */
.most-read {
  margin-top: 48px;
  border-top: 1px solid var(--gray-200);
  padding-top: 24px;
}
.most-read-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  color: var(--gray-700);
  margin-bottom: 20px;
}
.most-read-title svg { width: 20px; height: 20px; }
.most-read-title strong { font-weight: 700; color: var(--gray-900); }

.most-read-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--gray-200);
}
.most-read-item:last-child { border-bottom: none; }

.most-read-num {
  font-size: 30px;
  font-weight: 300;
  color: var(--gray-300);
  line-height: 1;
  flex-shrink: 0;
  min-width: 28px;
}
.most-read-link {
  flex: 1;
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-dark);
  line-height: 1.4;
}
.most-read-link:hover { text-decoration: underline; }

.most-read-thumb {
  flex-shrink: 0;
  width: 96px;
  aspect-ratio: 16 / 10;
  border-radius: 4px;
  background: repeating-linear-gradient(45deg, var(--gray-200) 0 10px, var(--gray-100) 10px 20px);
}

/* ===== Rodapé ===== */
.site-footer {
  background: var(--brand);
  color: var(--white);
  margin-top: 48px;
}
.footer-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 20px 20px 0;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 20px;
}
.footer-logo-group {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-logo-mark {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.5px;
  color: var(--white);
}
.footer-logo-group a.footer-link {
  font-size: 14px;
  color: var(--white);
  opacity: 0.9;
}
.footer-logo-group a.footer-link:hover { text-decoration: underline; }
.footer-audience {
  font-size: 14px;
  color: var(--white);
  opacity: 0.9;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.25);
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-copyright {
  font-size: 13px;
  color: var(--white);
  opacity: 0.85;
}
.footer-service-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-service-list li:not(:last-child)::after {
  content: "|";
  margin-left: 12px;
  opacity: 0.5;
}
.footer-service-list a {
  font-size: 13px;
  color: var(--white);
  opacity: 0.9;
}
.footer-service-list a:hover { text-decoration: underline; }
