/* Home: noticia mais recente em destaque e demais em lista topificada. */
#top.home #main .av-special-heading:has(+ .avia-content-slider) {
  max-width: 920px;
  margin: 0 auto 38px;
  text-align: center;
}

#top.home #main .av-special-heading:has(+ .avia-content-slider) .av-special-heading-tag {
  float: none;
  color: #0d5a91;
  font-size: 44px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0;
  text-transform: uppercase;
}

#top.home #main .av-special-heading:has(+ .avia-content-slider) .av-subheading {
  max-width: 680px;
  margin: 18px auto 0;
  color: #626973;
  font-size: 21px;
  line-height: 1.45;
}

#top.home .avia-content-slider {
  max-width: 1140px;
  margin-right: auto;
  margin-left: auto;
  overflow: visible;
}

#top.home .avia-content-slider .avia-content-slider-inner {
  display: block;
  width: 100%;
}

#top.home .avia-content-slider .slide-entry-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(360px, 0.82fr);
  align-items: stretch;
  gap: 20px 28px;
  width: 100%;
}

@media only screen and (min-width: 990px) {
  #top.home .avia-content-slider .slide-entry-wrap {
    grid-template-rows: repeat(3, minmax(0, 1fr));
  }
}

#top.home .avia-content-slider .slide-entry {
  display: grid;
  grid-template-columns: clamp(166px, 42%, 194px) minmax(0, 1fr);
  align-items: stretch;
  grid-auto-flow: column;
  float: none;
  width: 100% !important;
  max-width: none;
  margin: 0 !important;
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid rgba(7, 63, 120, 0.12);
  box-shadow: 0 10px 22px rgba(15, 35, 52, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

#top.home .avia-content-slider .slide-entry:not(.first) {
  min-height: 146px;
}

#top.home .avia-content-slider .slide-entry:hover,
#top.home .avia-content-slider .slide-entry:focus-within {
  transform: translateY(-2px);
  border-color: rgba(7, 63, 120, 0.22);
  box-shadow: 0 16px 30px rgba(15, 35, 52, 0.13);
}

#top.home .avia-content-slider .slide-entry.first {
  display: block;
  position: static;
  grid-row: span 4;
  min-height: 100%;
  box-shadow: 0 16px 34px rgba(15, 35, 52, 0.14);
}

@media only screen and (min-width: 990px) {
  #top.home .avia-content-slider .slide-entry.first {
    grid-row: 1 / span 3;
  }
}

#top.home .avia-content-slider .slide-entry .slide-image {
  display: block;
  grid-column: 1;
  grid-row: 1;
  align-self: stretch;
  width: 100%;
  height: auto;
  min-width: 0;
  min-height: 138px;
  margin: 0;
  overflow: hidden;
  isolation: isolate;
  border-radius: 8px 0 0 8px;
  background: #edf3f8;
}

#top.home .avia-content-slider .slide-entry.first .slide-image {
  position: static;
  aspect-ratio: 3 / 2;
  height: auto;
  min-height: 0;
  border-radius: 8px 8px 0 0;
}

#top.home .avia-content-slider .slide-entry.first .slide-image::after {
  content: none;
}

#top.home .avia-content-slider .slide-entry .slide-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center center;
  backface-visibility: hidden;
  transform: translateZ(0);
  transition: transform 0.35s ease, filter 0.35s ease;
}

#top.home .avia-content-slider .slide-entry:hover .slide-image img,
#top.home .avia-content-slider .slide-entry:focus-within .slide-image img {
  filter: saturate(1.04) contrast(1.02);
  transform: scale(1.025);
}

#top.home .avia-content-slider .slide-entry.first .slide-image img {
  height: 100%;
  min-height: 0;
}

#top.home .avia-content-slider .slide-content {
  display: flex;
  grid-column: 2;
  grid-row: 1;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 18px 22px;
}

#top.home .avia-content-slider .entry-content-header {
  min-width: 0;
  max-width: 100%;
}

#top.home .avia-content-slider .slide-entry.first .slide-content {
  position: static;
  z-index: auto;
  justify-content: flex-start;
  padding: 24px 28px 30px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

#top.home .avia-content-slider .blog-categories {
  display: block;
  margin: 0 0 8px;
  padding-left: 9px;
  border-left: 3px solid #71bf44;
  color: #5f6c7a;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
}

#top.home .avia-content-slider .blog-categories a {
  color: #5f6c7a;
  text-decoration: none;
}

#top.home .avia-content-slider .slide-entry.first .blog-categories {
  margin-bottom: 10px;
}

#top.home .avia-content-slider .slide-entry-title {
  display: block;
  max-width: 100%;
  margin: 0;
  font-size: 17.5px;
  font-weight: 700;
  line-height: 1.36;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

#top.home .avia-content-slider .slide-entry-title a {
  display: block;
  max-width: 100%;
  color: #0d5a91;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

#top.home .avia-content-slider .slide-entry-title a:hover,
#top.home .avia-content-slider .slide-entry-title a:focus {
  color: #0d5a91;
}

#top.home .avia-content-slider .slide-entry.first .slide-entry-title {
  max-width: 720px;
  font-size: 29px;
  line-height: 1.18;
}

#top.home .avia-content-slider .slide-entry.first .slide-entry-title a {
  color: #0d5a91;
  text-shadow: none;
}

#top.home .avia-content-slider .slide-entry.first .slide-entry-title a:hover,
#top.home .avia-content-slider .slide-entry.first .slide-entry-title a:focus {
  color: #0d5a91;
}

#top.home .avia-content-slider .av-vertical-delimiter,
#top.home .avia-content-slider .entry-footer,
#top.home .avia-content-slider .slide-meta,
#top.home .avia-content-slider .slide-entry-excerpt {
  display: none;
}

/* Home noticias: CTA principal inspirado no botao pill da referencia visual. */
#top.home .avia-content-slider + .avia-button-wrap,
#top.home .avia-content-slider + .avia-button-wrap.gr-home-news-more-wrap {
  display: flex;
  position: relative;
  z-index: 2;
  justify-content: center;
  width: 100%;
  margin: 6px auto 0 !important;
  margin-bottom: -34px !important;
  text-align: center;
  transform: translateY(-34px);
}

#top.home .avia-content-slider + .avia-button-wrap .avia-button.gr-home-news-more-link {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(246px, calc(100vw - 48px));
  min-height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: #0d5a91;
  box-shadow: 0 10px 22px rgba(0, 75, 134, 0.18);
  color: #ffffff !important;
  font-size: clamp(14px, calc(13px * var(--gr-home-news-font-scale, 1.15)), 18px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-align: center;
  text-decoration: none;
  text-shadow: none;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

#top.home .avia-content-slider + .avia-button-wrap .avia-button.gr-home-news-more-link::after {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-top: 2.5px solid currentColor;
  border-right: 2.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

#top.home .avia-content-slider + .avia-button-wrap .avia-button.gr-home-news-more-link:hover,
#top.home .avia-content-slider + .avia-button-wrap .avia-button.gr-home-news-more-link:focus {
  background: #17699f;
  box-shadow: 0 14px 26px rgba(0, 75, 134, 0.24);
  color: #ffffff !important;
  transform: translateY(-2px);
}

#top.home .avia-content-slider + .avia-button-wrap .avia-button.gr-home-news-more-link:hover::after,
#top.home .avia-content-slider + .avia-button-wrap .avia-button.gr-home-news-more-link:focus::after {
  transform: translateX(3px) rotate(45deg);
}

#top.home .avia-content-slider + .avia-button-wrap .avia-button.gr-home-news-more-link:focus-visible {
  outline: 3px solid rgba(7, 90, 159, 0.32);
  outline-offset: 4px;
}

/* Noticia individual: mantem o fallback local da miniatura com o mesmo recorte quadrado da producao. */
#top.single-post .small-preview img.gr-single-thumbnail-fallback,
#top .single-small .small-preview img.gr-single-thumbnail-fallback {
  width: 180px;
  height: 180px;
  object-fit: cover;
  object-position: center center;
}

@media only screen and (max-width: 989px) {
  #top.home .avia-content-slider {
    width: var(--gr-home-frame-width);
    max-width: none;
  }

  #top.home .avia-content-slider .slide-entry-wrap {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  #top.home .avia-content-slider .slide-entry.first {
    grid-row: auto;
    min-height: 0;
  }

  #top.home .avia-content-slider .slide-entry.first .slide-image {
    aspect-ratio: 3 / 2;
    height: auto;
    min-height: 0;
    border-radius: 8px 8px 0 0;
  }

  #top.home .avia-content-slider .slide-entry.first .slide-image img {
    height: 100%;
    min-height: 0;
  }

  #top.home .avia-content-slider .slide-entry.first .slide-content {
    padding: 20px 24px 26px;
  }

  #top.home .avia-content-slider .slide-entry.first .slide-entry-title {
    font-size: 22px;
  }
}

@media only screen and (max-width: 767px) {
  #top.home #main .av-special-heading:has(+ .avia-content-slider) {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    max-width: 340px !important;
    margin: 0 auto 8px !important;
    overflow: visible !important;
    text-align: center !important;
    transform: none !important;
  }

  #top.home #main .av-special-heading:has(+ .avia-content-slider) .av-special-heading-tag {
    display: block !important;
    float: none !important;
    width: 100% !important;
    max-width: 340px !important;
    margin-right: auto !important;
    margin-left: auto !important;
    overflow: visible !important;
    padding: 2px 0 4px !important;
    font-size: 25px !important;
    line-height: 1.24 !important;
    text-align: center !important;
  }

  #top.home #main .av-special-heading:has(+ .avia-content-slider) .av-subheading {
    display: block !important;
    width: 100% !important;
    max-width: 300px !important;
    margin-right: auto !important;
    margin-top: 6px !important;
    margin-left: auto !important;
    font-size: 14px !important;
    line-height: 1.22 !important;
    text-align: center !important;
  }

  #top.home .avia-content-slider {
    position: relative;
    left: 50%;
    width: calc(100vw - 24px) !important;
    max-width: none;
    margin-right: calc(-50vw + 12px);
    margin-left: calc(-50vw + 12px);
  }

  #top.home .avia-content-slider .slide-entry-wrap {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  #top.home .avia-content-slider .slide-entry,
  #top.home .avia-content-slider .slide-entry.first {
    grid-template-columns: minmax(132px, 46%) minmax(0, 1fr);
    grid-auto-flow: column;
    border: 1px solid rgba(46, 86, 134, 0.14);
    box-shadow: 0 8px 18px rgba(32, 48, 68, 0.08);
  }

  #top.home .avia-content-slider .slide-entry.first {
    display: block;
  }

  #top.home .avia-content-slider .slide-entry .slide-image {
    grid-column: 1;
    grid-row: 1;
    height: auto;
    min-height: 104px;
    align-self: stretch;
    border-radius: 8px 0 0 8px;
  }

  #top.home .avia-content-slider .slide-entry:not(.first) {
    grid-template-columns: minmax(112px, 36%) minmax(0, 1fr);
    align-items: stretch;
    min-height: 118px;
  }

  #top.home .avia-content-slider .slide-entry:not(.first) .slide-content {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    justify-content: flex-start;
    min-width: 0;
  }

  #top.home .avia-content-slider .slide-entry .slide-image img {
    height: 100%;
    min-height: 0;
  }

  #top.home .avia-content-slider .slide-entry.first .slide-image {
    aspect-ratio: 3 / 2;
    height: auto;
    border-radius: 8px 8px 0 0;
  }

  #top.home .avia-content-slider .slide-entry.first .slide-image img {
    height: 100%;
    min-height: 0;
  }

  #top.home .avia-content-slider .slide-content {
    padding: 14px 16px;
  }

  #top.home .avia-content-slider .slide-entry.first .slide-content {
    padding: 18px 20px 22px;
  }

  #top.home .avia-content-slider .slide-entry.first .slide-entry-title {
    font-size: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #top.home .avia-content-slider .slide-entry,
  #top.home .avia-content-slider .slide-entry .slide-image img {
    transition: none;
  }

  #top.home .avia-content-slider .slide-entry:hover,
  #top.home .avia-content-slider .slide-entry:focus-within,
  #top.home .avia-content-slider .slide-entry:hover .slide-image img,
  #top.home .avia-content-slider .slide-entry:focus-within .slide-image img {
    transform: none;
  }
}

/* Home noticias: com fonte ampliada, todos os cards priorizam imagem acima do texto. */
#top.home.gr-home-news-a11y-stacked .avia-content-slider .slide-entry{
  display: flex;
  flex-direction: column;
  min-height: 0 !important;
}

#top.home.gr-home-news-a11y-stacked .avia-content-slider .slide-entry:not(.first){
  grid-template-columns: 1fr;
}

#top.home.gr-home-news-a11y-stacked .avia-content-slider .slide-entry .slide-image{
  flex: 0 0 auto;
  display: block;
  width: 100%;
  height: clamp(230px, 24vw, 300px);
  border-radius: 6px 6px 0 0;
}

#top.home.gr-home-news-a11y-stacked .avia-content-slider .slide-entry .slide-image img{
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

#top.home.gr-home-news-a11y-stacked .avia-content-slider .slide-entry .slide-content{
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
  padding: 18px 20px 22px;
}

#top.home.gr-home-news-a11y-stacked .avia-content-slider .slide-entry-title,
#top.home.gr-home-news-a11y-stacked .avia-content-slider .slide-entry-title a{
  font-size: clamp(28px, calc(18px * var(--gr-home-news-font-scale, 1.5)), 36px) !important;
  line-height: 1.16 !important;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

#top.home.gr-home-news-a11y-stacked .avia-content-slider .slide-entry.first .slide-entry-title,
#top.home.gr-home-news-a11y-stacked .avia-content-slider .slide-entry.first .slide-entry-title a{
  font-size: clamp(32px, calc(22px * var(--gr-home-news-font-scale, 1.5)), 44px) !important;
  line-height: 1.16 !important;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

@media only screen and (min-width: 990px) {
  #top.home.gr-home-news-a11y-stacked .avia-content-slider .slide-entry-wrap{
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: none !important;
    align-items: stretch;
    align-content: start;
    grid-auto-rows: auto !important;
  }

  #top.home.gr-home-news-a11y-stacked .avia-content-slider .slide-entry.first{
    grid-row: auto;
    min-height: 0 !important;
  }

  #top.home.gr-home-news-a11y-stacked .avia-content-slider .slide-entry.first .slide-image{
    height: clamp(230px, 24vw, 300px);
  }

  #top.home.gr-home-news-a11y-stacked .avia-content-slider .slide-entry.first .slide-content{
    padding: 18px 20px 22px;
  }

  #top.home.gr-home-news-a11y-stacked .avia-content-slider .slide-entry.first .slide-entry-title,
#top.home.gr-home-news-a11y-stacked .avia-content-slider .slide-entry.first .slide-entry-title a{
    max-width: 100%;
    font-size: clamp(32px, calc(22px * var(--gr-home-news-font-scale, 1.5)), 44px) !important;
    line-height: 1.16 !important;
  }
}

@media only screen and (max-width: 767px) {
  #top.home.gr-home-news-a11y-stacked .avia-content-slider .slide-entry .slide-image{
    height: clamp(170px, 52vw, 250px);
  }
}


/* Home mobile acessível: o CTA acompanha o fim real das notícias e não herda o deslocamento do carrossel. */
@media only screen and (max-width: 989px) {
  #top.home.gr-home-news-a11y-stacked .avia-content-slider,
#top.home.gr-home-news-a11y-stacked .avia-content-slider .avia-content-slider-inner,
#top.home.gr-home-news-a11y-stacked .avia-content-slider .slide-entry-wrap{
    height: auto !important;
    min-height: 0 !important;
    align-content: start;
    grid-template-rows: none !important;
    grid-auto-rows: auto !important;
  }

  #top.home.gr-home-news-a11y-stacked .avia-content-slider{
    margin-bottom: 0 !important;
  }

  #top.home.gr-home-news-a11y-stacked .avia-content-slider + .avia-button-wrap{
    margin: 4px auto 0 !important;
    transform: none !important;
  }

  #top.home.gr-home-news-a11y-stacked .avia-content-slider + .avia-button-wrap .avia-button{
    width: min(328px, calc(100vw - 32px)) !important;
    max-width: calc(100vw - 32px) !important;
    min-height: 48px !important;
    height: auto !important;
    padding: 10px 20px !important;
    font-size: calc(14px * var(--gr-home-news-font-scale, 1)) !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    overflow: visible !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }
}
