/* Eventos e Novidades - migrado de src/pages/news.css */
.news-page {
  background: var(--paper);
  min-height: 100vh;
}

/* List page */

.news-page__intro {
  background: var(--green-dark);
  color: var(--white);
  padding: 164px 22px 64px;
}

.news-page__intro .eyebrow::before,
.post-hero .eyebrow::before {
  background: var(--red);
  border-radius: 50%;
  content: "";
  display: inline-block;
  height: 6px;
  margin: 0 9px 1px 0;
  width: 6px;
}

.news-page__intro h1 {
  font-family: var(--display);
  font-size: clamp(52px, 15vw, 108px);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.9;
  margin: 0;
}

.news-page__intro > p:last-child {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  line-height: 1.65;
  margin: 30px 0 0;
  max-width: 520px;
}

.news-toolbar {
  padding: 28px 22px 0;
}

.news-filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 0 -22px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 22px 8px;
  scrollbar-width: none;
}

.news-filters::-webkit-scrollbar {
  display: none;
}

.news-filters button , .news-filters a {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 100px;
  flex: 0 0 auto;
  font-size: 11px;
  padding: 10px 16px;
  transition: background 250ms ease, border-color 250ms ease, color 250ms ease;
  white-space: nowrap;
}

.news-filters button.is-active , .news-filters a.is-active {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.news-section {
  padding: 36px 22px 52px;
}

.news-section + .news-section {
  border-top: 1px solid var(--line);
}

.news-section__head {
  align-items: baseline;
  display: flex;
  justify-content: space-between;
  margin-bottom: 22px;
}

.news-section__head h2 {
  font-family: var(--display);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.04em;
  margin: 0;
}

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

.news-section__controls span {
  display: none;
  margin-right: 6px;
}

.news-section__controls button {
  align-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: none;
  font-size: 15px;
  height: 38px;
  justify-content: center;
  transition: background 250ms ease, border-color 250ms ease, color 250ms ease;
  width: 38px;
}

.news-section__head span {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Event cards */

.event-strip {
  display: flex;
  gap: 14px;
  margin: 0 -22px;
  overflow-x: auto;
  padding: 0 22px 10px;
  scroll-padding-inline: 22px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.event-strip::-webkit-scrollbar {
  display: none;
}

.event-strip[data-dragging] {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

@media (pointer: fine) {
  .event-strip:not(.event-strip--stacked) {
    cursor: grab;
  }
}

.event-strip--stacked {
  display: grid;
  gap: 22px;
  margin: 0;
  overflow: visible;
  padding: 0;
}

.event-card {
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  flex: 0 0 82%;
  flex-direction: column;
  scroll-snap-align: start;
  transition: border-color 250ms ease, transform 350ms var(--ease);
}

.event-card__image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
}

.event-card__image img {
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease);
  width: 100%;
}

.event-date {
  background: var(--red);
  color: var(--white);
  left: 14px;
  min-width: 68px;
  padding: 10px 12px;
  position: absolute;
  text-align: center;
  top: 14px;
}

.event-date strong {
  display: block;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.event-date small {
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  margin-top: 5px;
  text-transform: uppercase;
}

.event-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 18px 18px 20px;
}

.event-card__meta {
  color: rgba(24, 53, 45, 0.65);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin: 0;
  text-transform: uppercase;
}

.event-card h3 {
  font-family: var(--display);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0;
}

.event-card__more {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.09em;
  margin-top: auto;
  padding-top: 8px;
  text-transform: uppercase;
}

/* News cards */

.news-feature {
  display: block;
  margin-bottom: 40px;
}

.news-feature__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.news-feature__image img {
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease);
  width: 100%;
}

.news-feature__meta,
.news-list .news-card__meta {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin: 17px 0 9px;
  text-transform: uppercase;
}

.news-feature h3 {
  font-family: var(--display);
  font-size: clamp(32px, 9vw, 52px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
  margin: 0 0 14px;
}

.news-feature__excerpt,
.news-card__excerpt {
  color: rgba(24, 53, 45, 0.75);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 16px;
}

.news-feature__more {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.news-list {
  display: grid;
  gap: 38px;
}

.news-list .news-card + .news-card {
  margin-top: 0;
}

.news-list .news-card__image {
  aspect-ratio: 4 / 3;
}

.news-list .news-card h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.news-empty {
  border-top: 1px solid var(--line);
  color: rgba(24, 53, 45, 0.7);
  font-size: 14px;
  padding: 26px 0;
}

/* Post page */

.post-hero {
  background: var(--cream);
  padding: 132px 22px 34px;
}

.post-back {
  align-items: center;
  border-bottom: 1px solid currentColor;
  display: inline-flex;
  font-size: 10px;
  font-weight: 600;
  gap: 10px;
  letter-spacing: 0.1em;
  margin-bottom: 34px;
  padding-bottom: 6px;
  text-transform: uppercase;
}

.post-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.post-meta__category {
  background: var(--green);
  color: var(--white);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 7px 10px;
  text-transform: uppercase;
}

.post-meta__date {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.post-hero h1 {
  font-family: var(--display);
  font-size: clamp(40px, 11vw, 84px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.95;
  margin: 0;
  max-width: 980px;
}

.post-lead {
  font-size: 17px;
  line-height: 1.6;
  margin: 22px 0 0;
  max-width: 640px;
}

.post-image {
  aspect-ratio: 16 / 10;
  margin: 0;
  max-height: 72vh;
  overflow: hidden;
  width: 100%;
}

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

.post-event {
  background: var(--green-dark);
  color: var(--white);
  display: grid;
  gap: 20px;
  padding: 26px 22px;
}

.post-event strong {
  display: block;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.post-body {
  margin: 0 auto;
  max-width: 720px;
  padding: 44px 22px 8px;
}

.post-body p {
  font-size: 17px;
  line-height: 1.75;
  margin: 0 0 22px;
}

.post-body h2 {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 40px 0 16px;
}

.post-body ul {
  list-style: disc;
  margin: 0 0 22px;
  padding-left: 22px;
}

.post-body li {
  font-size: 17px;
  line-height: 1.75;
}

.post-body strong {
  font-weight: 700;
}

.post-gallery {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 980px;
  padding: 20px 22px 40px;
}

.post-gallery figure {
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
}

.post-gallery figure:only-child,
.post-gallery figure:first-child:nth-last-child(odd) {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}

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

.post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin: 0 auto;
  max-width: 720px;
  padding: 10px 22px 60px;
}

.post-actions .post-back {
  align-self: center;
  margin: 0;
}

.post-store-link {
  align-items: center;
  background: var(--green);
  color: var(--white);
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  gap: 22px;
  letter-spacing: 0.1em;
  min-height: 52px;
  padding: 0 20px;
  text-transform: uppercase;
  transition: background 250ms ease;
}

.post-related {
  background: var(--cream);
  padding: 52px 22px 64px;
}

.post-missing {
  padding: 160px 22px 100px;
}

.post-missing h1 {
  font-family: var(--display);
  font-size: 40px;
  letter-spacing: -0.04em;
  margin: 0 0 24px;
}

@media (hover: hover) {
  .event-card:hover {
    border-color: var(--green);
  }

  .event-card:hover .event-card__image img,
  .news-feature:hover .news-feature__image img {
    transform: scale(1.035);
  }

  .news-filters button:hover , .news-filters a:hover {
    border-color: var(--green);
  }

  .news-section__controls button:hover {
    background: var(--green);
    border-color: var(--green);
    color: var(--white);
  }

  .post-store-link:hover {
    background: var(--orange);
  }
}

@media (min-width: 760px) {
  .news-page__intro {
    padding: 190px max(8vw, 42px) 90px;
  }

  .news-toolbar {
    padding: 36px max(8vw, 42px) 0;
  }

  .news-filters {
    margin: 0;
    padding: 0 0 8px;
  }

  .news-section {
    padding: 48px max(8vw, 42px) 72px;
  }

  .news-section__head h2 {
    font-size: 40px;
  }

  .news-section__controls span {
    display: inline;
  }

  .news-section__controls button {
    display: inline-flex;
  }

  .event-strip {
    gap: 24px;
    margin: 0 calc(-1 * max(8vw, 42px));
    padding: 0 max(8vw, 42px) 10px;
    scroll-padding-inline: max(8vw, 42px);
  }

  .event-strip .event-card {
    flex-basis: min(420px, 40%);
  }

  .event-strip--stacked {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 0;
    overflow: visible;
    padding: 0;
  }


  .news-feature {
    align-items: center;
    display: grid;
    gap: 6vw;
    grid-template-columns: 1.2fr 1fr;
    margin-bottom: 64px;
  }

  .news-list {
    gap: 34px 26px;
    grid-template-columns: repeat(3, 1fr);
  }

  .post-hero {
    padding: 190px max(8vw, 42px) 56px;
  }

  .post-event {
    grid-template-columns: repeat(3, 1fr);
    padding: 30px max(8vw, 42px);
  }

  .post-body {
    padding-top: 64px;
  }

  .post-related {
    padding: 72px max(8vw, 42px) 90px;
  }
}

/* Conteúdo vindo do editor visual (CMS) */
.post-body h3 { font-family: var(--display); font-size: 21px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; margin: 32px 0 12px; }
.post-body ol { list-style: decimal; margin: 0 0 22px; padding-left: 22px; }
.post-body li > p { margin: 0; }
.post-body em, .post-body i { font-style: italic; }
.post-body u { text-decoration: underline; }
.post-body s { text-decoration: line-through; }
.post-body a { color: var(--green, #17664b); text-decoration: underline; text-underline-offset: 3px; }
.post-body blockquote { border-left: 3px solid currentColor; font-size: 19px; line-height: 1.6; margin: 28px 0; opacity: 0.85; padding: 2px 0 2px 20px; }
.post-body img { border-radius: 4px; display: block; height: auto; margin: 28px auto; max-width: 100%; }
.post-body hr { border-top: 1px solid rgba(0, 0, 0, 0.15); margin: 32px 0; }
.post-body .ql-align-center { text-align: center; }
.post-body .ql-align-right { text-align: right; }
.post-body .ql-align-justify { text-align: justify; }
