:root {
  --verde: #0d5d3e;
  --verde-med: #1a7a52;
  --verde-claro: #77c19a;
  --dourado: #c39367;
  --dourado-claro: #dab48a;
  --off-white: #f7f4ef;
  --papel: #fefcf8;
  --borda: #e2ddd5;
  --texto: #1c1c1a;
  --texto-suave: #5a5750;
  --texto-leve: #8a8680;
  --sombra: 0 10px 30px rgba(13, 93, 62, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Sora', sans-serif;
  background: var(--off-white);
  color: var(--texto);
  min-height: 100vh;
}

a { color: inherit; }
button { font: inherit; }

.masthead {
  background: var(--verde);
  padding: 0 40px;
  min-height: 82px;
  display: flex;
  align-items: center;
  border-bottom: 3px solid var(--dourado);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.18);
}

.masthead-title {
  flex: 1;
  display: flex;
  align-items: center;
}

.masthead-title h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
}

.masthead-title h1 em {
  color: var(--dourado-claro);
  font-style: normal;
}

.masthead-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.edition-tag {
  background: var(--dourado);
  color: white;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 3px;
}

.date-tag {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.62);
}

.filters-bar {
  background: var(--papel);
  border-bottom: 1px solid var(--borda);
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.filters-bar::-webkit-scrollbar { display: none; }

.filter-btn {
  padding: 14px 18px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--texto-suave);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.filter-btn:hover { color: var(--verde); }
.filter-btn.active { color: var(--verde); border-bottom-color: var(--dourado); font-weight: 600; }

.hero {
  background: linear-gradient(160deg, var(--verde) 0%, #0a4a32 100%);
  padding: 52px 40px 44px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(119,193,154,0.12) 0%, transparent 70%);
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--dourado), transparent);
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(195,147,103,0.15);
  border: 1px solid rgba(195,147,103,0.3);
  border-radius: 4px;
  padding: 5px 12px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dourado-claro);
  margin-bottom: 20px;
}
.hero-kicker::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dourado);
}

.hero h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: white;
  line-height: 1.15;
  margin-bottom: 16px;
  max-width: 660px;
}
.hero h2 span { color: var(--verde-claro); }

.hero-desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.68);
  line-height: 1.7;
  max-width: 620px;
  font-weight: 300;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.stat strong {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
  display: block;
  line-height: 1;
}
.stat span {
  font-size: 0.66rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.stat-divider {
  width: 1px;
  background: rgba(255,255,255,0.12);
  align-self: stretch;
}

.layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 44px 40px 80px;
  display: grid;
  grid-template-columns: 1fr 296px;
  gap: 44px;
  align-items: start;
}

.alert-transporte {
  background: linear-gradient(135deg, #fff8e6, #fff3d4);
  border: 1px solid #e8c97a;
  border-radius: 4px;
  padding: 16px 18px;
  margin-bottom: 24px;
}
.alert-title {
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dourado);
  margin-bottom: 6px;
}
.alert-transporte p {
  font-size: 0.76rem;
  color: #5a4a20;
  line-height: 1.6;
}

.news-featured {
  background: var(--papel);
  border: 1px solid var(--borda);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 28px;
  transition: box-shadow 0.2s;
}
.news-featured:hover { box-shadow: var(--sombra); }
.featured-band {
  background: var(--verde);
  padding: 7px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.featured-band span {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--verde-claro);
}
.featured-band::before { content: '★'; color: var(--dourado); font-size: 0.7rem; }
.featured-body { padding: 26px 30px 28px; }
.news-number {
  font-family: 'Playfair Display', serif;
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--borda);
  line-height: 1;
  float: left;
  margin-right: 14px;
  margin-top: -4px;
  user-select: none;
}

.news-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.tag-reforma  { background: #fff3e6; color: #c06000; }
.tag-esocial  { background: #e8f4ff; color: #1a5fa8; }
.tag-sped     { background: #eef0ff; color: #3a47c0; }
.tag-transporte { background: #fff8e6; color: #8a6000; }
.tag-ir       { background: #f0fff4; color: #1a7a42; }
.tag-simples  { background: #f0f8ff; color: #2a5a8a; }
.tag-mei      { background: #f8f0ff; color: #6a2a9a; }

.news-headline {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--texto);
  line-height: 1.3;
  margin-bottom: 12px;
  clear: both;
}
.news-headline a,
.item-headline a,
.fonte-link {
  text-decoration: none;
}
.news-headline a:hover,
.item-headline a:hover,
.fonte-link:hover { color: var(--verde); }

.news-summary {
  font-size: 0.84rem;
  color: var(--texto-suave);
  line-height: 1.7;
  margin-bottom: 18px;
}
.impact-box {
  background: #f3faf6;
  border-left: 3px solid var(--verde);
  border-radius: 0 6px 6px 0;
  padding: 12px 16px;
}
.impact-label {
  font-size: 0.59rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--verde);
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.impact-label::before { content: '▶'; font-size: 0.5rem; }
.impact-text {
  font-size: 0.81rem;
  color: var(--texto);
  line-height: 1.6;
}
.fonte-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.68rem;
  color: var(--verde-med);
  border-bottom: 1px dashed var(--verde-claro);
  padding-bottom: 1px;
  transition: color 0.2s;
}

.news-list { display: flex; flex-direction: column; gap: 12px; }
.news-item {
  background: var(--papel);
  border: 1px solid var(--borda);
  border-radius: 4px;
  padding: 20px 22px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.news-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--item-color, var(--verde-claro));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.2s;
}
.news-item:hover::before { transform: scaleY(1); }
.news-item:hover {
  box-shadow: 0 4px 18px rgba(0,0,0,0.06);
  transform: translateX(3px);
}
.item-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--borda);
  line-height: 1;
  user-select: none;
  min-width: 34px;
  padding-top: 2px;
}
.item-headline {
  font-family: 'Sora', sans-serif;
  font-size: 0.91rem;
  font-weight: 600;
  color: var(--texto);
  line-height: 1.45;
  margin-bottom: 6px;
  margin-top: 6px;
}
.item-summary {
  font-size: 0.78rem;
  color: var(--texto-suave);
  line-height: 1.6;
  margin-bottom: 10px;
}
.item-impact {
  font-size: 0.74rem;
  color: var(--verde-med);
  line-height: 1.55;
  padding: 9px 11px;
  background: rgba(13,93,62,0.04);
  border-radius: 4px;
  border-left: 2px solid var(--verde-claro);
}
.item-impact strong {
  font-weight: 600;
  color: var(--verde);
  display: block;
  font-size: 0.59rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.sidebar { display: flex; flex-direction: column; gap: 22px; }
.sidebar-card {
  background: var(--papel);
  border: 1px solid var(--borda);
  border-radius: 4px;
  overflow: hidden;
}
.sidebar-header {
  background: var(--verde);
  padding: 11px 16px;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--verde-claro);
}
.sidebar-body { padding: 16px; }
.index-list { list-style: none; }
.index-list li {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--borda);
  font-size: 0.74rem;
  color: var(--texto-suave);
  cursor: pointer;
  transition: color 0.2s;
  align-items: flex-start;
  line-height: 1.4;
}
.index-list li:last-child { border-bottom: none; }
.index-list li:hover { color: var(--verde); }
.index-list li span {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--borda);
  flex-shrink: 0;
  min-width: 22px;
  line-height: 1.2;
}
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-pill {
  padding: 4px 9px;
  border-radius: 3px;
  font-size: 0.63rem;
  font-weight: 500;
  background: var(--off-white);
  border: 1px solid var(--borda);
  color: var(--texto-suave);
  cursor: pointer;
  transition: all 0.2s;
}
.tag-pill:hover { background: var(--verde); color: white; border-color: var(--verde); }

footer {
  background: var(--verde);
  border-top: 3px solid var(--dourado);
  padding: 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
footer p { font-size: 0.72rem; color: rgba(255,255,255,0.56); }
footer strong { color: var(--verde-claro); }

.news-featured, .news-item, .sidebar-card, .hero-inner {
  animation: fadeUp 0.38s ease both;
}
.news-featured { animation-delay: 0.08s; }
.news-item:nth-child(1) { animation-delay: 0.12s; }
.news-item:nth-child(2) { animation-delay: 0.17s; }
.news-item:nth-child(3) { animation-delay: 0.22s; }
.news-item:nth-child(4) { animation-delay: 0.27s; }
.news-item:nth-child(5) { animation-delay: 0.32s; }
.news-item:nth-child(6) { animation-delay: 0.37s; }
.news-item:nth-child(7) { animation-delay: 0.42s; }
.news-item:nth-child(8) { animation-delay: 0.47s; }
.news-item:nth-child(9) { animation-delay: 0.52s; }

.outline-flash {
  outline: 2px solid #c39367;
  outline-offset: 3px;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 820px) {
  .masthead { padding: 0 18px; }
  .masthead-meta { display: none; }
  .hero { padding: 32px 18px; }
  .hero h2 { font-size: 1.75rem; }
  .layout { grid-template-columns: 1fr; padding: 28px 18px 60px; gap: 28px; }
  .filters-bar { padding: 0 18px; }
  footer { padding: 18px; flex-direction: column; }
}
