/* Blog — alinhado ao visual Nuova Fima (#008C44 / #106238 / #80FFBD / #c82a35) */

.blog-page {
  padding-top: 65px;
  padding-bottom: 65px;
}

.blog-page__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 991px) {
  .blog-page__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .blog-page__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.card-blog {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: 8px;
  border-bottom: 4px solid #008C44;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-bottom-color 0.25s ease;
}

.card-blog:hover {
  box-shadow: 0 8px 24px rgba(16, 98, 56, 0.16);
  transform: translateY(-4px);
  border-bottom-color: #c82a35;
}

.card-blog__img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.card-blog:hover .card-blog__img {
  transform: scale(1.04);
}

.card-blog__img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 180px;
  color: #008C44;
  font-size: 2rem;
  background: color-mix(in srgb, #008C44, #fff 90%);
}

.card-blog__content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.15rem 1.1rem 1.35rem;
}

.card-blog__meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.65rem;
  font-size: 0.8rem;
  color: #6b6b6b;
}

.card-blog__meta-sep {
  color: #bbb;
}

.card-blog__reading {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: #008C44;
}

.card-blog__content h3 {
  font-family: "Titillium Web", sans-serif;
  font-size: 1.05rem;
  line-height: 1.35;
  margin-bottom: 0.6rem;
  font-weight: 700;
  color: #106238;
}

.card-blog__content p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #555;
  margin-bottom: 1rem;
  flex: 1;
}

.card-blog__btn.btn-main {
  align-self: flex-start;
  margin-top: auto;
  padding: 10px 18px;
  font-size: 13px;
  text-decoration: none;
}

.blog-page__sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.blog-page__sidebar-block {
  padding: 22px 18px;
  background: #fff;
  border-radius: 8px;
  border-top: 4px solid #008C44;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.blog-page__sidebar-cta {
  background: color-mix(in srgb, #008C44, #fff 92%);
}

.blog-page__sidebar-cta p {
  color: #333;
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 0.85rem;
}

.blog-page__sidebar-title {
  font-family: "Titillium Web", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #106238;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.blog-page__sidebar-title--section {
  font-size: 1.1rem;
}

.blog-page__sidebar-btn.btn-main {
  width: 100%;
  text-align: center;
  text-decoration: none;
  padding: 12px 16px;
  font-size: 13px;
}

.blog-page__sidebar-list,
.blog-page__sidebar-categories {
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-page__sidebar-list li,
.blog-page__sidebar-categories li {
  list-style: none;
  margin-bottom: 0.65rem;
  padding-left: 0;
}

.blog-page.int-typography .blog-page__sidebar-list li,
.blog-page.int-typography .blog-page__sidebar-categories li {
  list-style: none;
  list-style-type: none;
  padding-left: 0;
}

.blog-page__sidebar-list li:last-child,
.blog-page__sidebar-categories li:last-child {
  margin-bottom: 0;
}

.blog-page__sidebar-list a,
.blog-page__sidebar-categories a {
  color: #333;
  font-size: 0.9rem;
  line-height: 1.4;
  display: block;
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.blog-page__sidebar-list a:hover,
.blog-page__sidebar-categories a:hover,
.blog-page__sidebar-categories li.is-active a {
  color: #008C44;
  padding-left: 4px;
}

.blog-page__sidebar-link-title {
  display: block;
  font-weight: 600;
}

.blog-page__sidebar-list time {
  display: block;
  font-size: 0.78rem;
  color: #797979;
  margin-top: 0.15rem;
}

.blog-page__sidebar-empty {
  font-size: 0.9rem;
  color: #797979;
  margin: 0;
}

.blog-wp-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.blog-wp-pagination__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  background: #fff;
  border: 1px solid color-mix(in srgb, #008C44, #fff 70%);
  border-radius: 50px;
  color: #106238;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.blog-wp-pagination__btn:hover {
  background: #008C44;
  border-color: #008C44;
  color: #fff;
}

.blog-wp-pagination__btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.blog-wp-pagination__info {
  font-weight: 600;
  color: #555;
}

.blog-wp-empty {
  background: #fff;
  border-radius: 8px;
  border-top: 4px solid #008C44;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  text-align: center;
}

.blog-wp-empty h2 {
  margin-bottom: 0.75rem;
  color: #106238;
  font-family: "Titillium Web", sans-serif;
}

.blog-wp-empty p {
  margin-bottom: 1.25rem;
  color: #555;
}

.blog-wp-article__back {
  margin-bottom: 1rem;
}

.blog-wp-article__back a {
  color: #008C44;
  font-weight: 600;
  text-decoration: none;
}

.blog-wp-article__back a:hover {
  color: #c82a35;
}

.blog-wp-article__featured {
  margin: 0 0 1.5rem;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.blog-wp-article__featured img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.blog-wp-article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
  margin-bottom: 1.25rem;
  color: #666;
  font-size: 0.92rem;
}

.blog-wp-article__meta-sep {
  color: #bbb;
}

.blog-wp-article__reading {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  color: #008C44;
}

.blog-wp-article__lead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #333;
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.blog-wp-article__content {
  background: #fff;
  border-radius: 8px;
  border-top: 4px solid #008C44;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
  color: #333;
  margin-bottom: 1.25rem;
}

.blog-wp-article__content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.blog-wp-article__content h2,
.blog-wp-article__content h3,
.blog-wp-article__content h4 {
  scroll-margin-top: 130px;
  font-family: "Titillium Web", sans-serif;
}

.blog-wp-article__content h2 {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  line-height: 1.35;
  font-weight: 700;
  color: #106238;
  margin: 2.25rem 0 0.85rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid color-mix(in srgb, #008C44, #fff 70%);
}

.blog-wp-article__content h2:first-child {
  margin-top: 0;
}

.blog-wp-article__content h3 {
  font-size: clamp(1.05rem, 1.6vw, 1.18rem);
  line-height: 1.4;
  font-weight: 600;
  color: #c82a35;
  margin: 1.5rem 0 0.65rem;
}

.blog-wp-article__content p,
.blog-wp-article__content li {
  color: #444;
  font-size: 1rem;
  line-height: 1.75;
}

.blog-wp-article__content a {
  color: #008C44;
}

.blog-wp-article__content a:hover {
  color: #c82a35;
}

.blog-wp-accordion {
  margin-bottom: 1.25rem;
  border-radius: 8px;
  background: #fff;
  border-top: 4px solid #008C44;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.blog-wp-accordion--toc {
  margin-bottom: 2rem;
}

.blog-wp-accordion__trigger {
  display: block;
  width: 100%;
  position: relative;
  padding: 1rem 3rem 1rem 1.25rem;
  border: 0;
  background: transparent;
  color: #106238;
  font-family: "Titillium Web", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.blog-wp-accordion__icon {
  position: absolute;
  right: 1.1rem;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
}

.blog-wp-accordion__icon::before,
.blog-wp-accordion__icon::after {
  content: "";
  position: absolute;
  background: #008C44;
  transition: transform 0.2s ease;
}

.blog-wp-accordion__icon::before {
  left: 0;
  top: 5px;
  width: 12px;
  height: 2px;
}

.blog-wp-accordion__icon::after {
  left: 5px;
  top: 0;
  width: 2px;
  height: 12px;
}

.blog-wp-accordion__trigger[aria-expanded="true"] .blog-wp-accordion__icon::after {
  transform: scaleY(0);
}

.blog-wp-accordion__panel {
  padding: 0 1.25rem 1.15rem;
}

.blog-wp-accordion__list {
  margin: 0;
  padding-left: 1.1rem;
}

.blog-wp-accordion__list li {
  margin-bottom: 0.4rem;
  color: #444;
}

.blog-wp-accordion__toc {
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-wp-accordion__toc-item--h2 {
  margin-bottom: 0.55rem;
}

.blog-wp-accordion__toc-sub {
  list-style: none;
  margin: 0.35rem 0 0.65rem;
  padding-left: 1rem;
}

.blog-wp-accordion__toc-link {
  color: #333;
  font-size: 0.95rem;
  line-height: 1.4;
  text-decoration: none;
}

.blog-wp-accordion__toc-link:hover {
  color: #008C44;
}

.blog-wp-accordion__toc-item--h2 > .blog-wp-accordion__toc-link {
  font-weight: 600;
}

.blog-wp-accordion__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-wp-accordion__tag-link {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  font-size: 0.9rem;
  line-height: 1.4;
  text-decoration: none;
  color: #008C44;
  border: 1px solid color-mix(in srgb, #008C44, #fff 65%);
  border-radius: 50px;
  background: #fff;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.blog-wp-accordion__tag-link:hover {
  color: #fff;
  border-color: #c82a35;
  background: #c82a35;
}

.universal-cta {
  margin: 1.5rem 0;
  padding: 1.25rem 1.35rem;
  border-radius: 8px;
  background: color-mix(in srgb, #008C44, #fff 92%);
  border-left: 4px solid #008C44;
}

@media (max-width: 991px) {
  .blog-wp-page .sticky-div {
    position: static !important;
    margin-top: 1.5rem;
  }
}
