/* Home editorial, versão alinhada à amostra 2 */
body.home-editorial {
  margin: 0;
  background: #f4f0e8;
  color: #171713;
  font-family: 'Plus Jakarta Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.home-editorial .page-wrapper { background: #f4f0e8; }
body.home-editorial a { color: inherit; text-decoration: none !important; }

body.home-editorial .editorial-masthead {
  background: #fffdf8;
  border-bottom: 1px solid #dcd5c9;
}

body.home-editorial .editorial-masthead .container,
body.home-editorial .editorial-home-main .container {
  width: 100% !important;
  max-width: 1220px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 28px !important;
  padding-right: 28px !important;
}

body.home-editorial .editorial-masthead .container {
  padding-top: 28px !important;
  padding-bottom: 24px !important;
}

body.home-editorial .editorial-edition {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #77736a;
  margin-bottom: 18px;
}

body.home-editorial .editorial-brand-wrap {
  text-align: center;
  padding: 0;
}

body.home-editorial .editorial-brand {
  display: inline-block;
  font-family: 'Fraunces', serif !important;
  font-size: clamp(36px,5vw,64px) !important;
  line-height: .95 !important;
  font-weight: 800 !important;
  letter-spacing: -.045em !important;
  color: #171713 !important;
}

body.home-editorial .editorial-brand:hover { color: #7c1f17 !important; }

body.home-editorial .editorial-brand-sub {
  margin-top: 10px;
  text-align: center;
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: .32em;
  font-weight: 700;
  text-transform: uppercase;
  color: #6d685f;
}


/* Busca central da home */
body.home-editorial .editorial-search-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

body.home-editorial .editorial-search-form {
  width: min(100%, 640px);
  display: flex;
  align-items: stretch;
  background: #fffdf8;
  border: 1px solid #cfc7ba;
  min-height: 48px;
}

body.home-editorial .editorial-search-form input[type="text"] {
  flex: 1 1 auto;
  min-width: 0;
  height: 48px;
  padding: 0 18px;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 14px !important;
  font-weight: 500;
  color: #171713 !important;
}

body.home-editorial .editorial-search-form input[type="text"]::placeholder {
  color: #8a857c;
  opacity: 1;
}

body.home-editorial .editorial-search-form button {
  flex: 0 0 auto;
  min-width: 118px;
  height: 48px;
  padding: 0 18px;
  border: 0;
  border-left: 1px solid #171713;
  background: #171713;
  color: #fffdf8;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

body.home-editorial .editorial-search-form button i {
  margin-right: 8px;
}

body.home-editorial .editorial-search-form button:hover,
body.home-editorial .editorial-search-form button:focus {
  background: #7c1f17;
  color: #fff;
}

body.home-editorial .sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body.home-editorial .editorial-nav {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #dcd5c9;
  min-height: 0;
  text-align: center;
}

body.home-editorial .editorial-nav .sf-menu {
  float: none !important;
  display: flex !important;
  justify-content: center;
  gap: 34px;
  margin: 0 !important;
  padding: 0 !important;
}

body.home-editorial .editorial-nav .sf-menu > li {
  height: auto !important;
  line-height: normal !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}

body.home-editorial .editorial-nav .sf-menu > li > a {
  display: block;
  padding: 0 !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  color: #171713 !important;
}
body.home-editorial .editorial-nav .sf-menu > li > a:hover { color: #7c1f17 !important; }

body.home-editorial .editorial-nav .sf-menu ul {
  margin-top: 16px !important;
  background: #171713 !important;
  text-align: left;
}
body.home-editorial .editorial-nav .sf-menu li li { background: #171713 !important; }
body.home-editorial .editorial-nav .sf-menu li li a { color: #fff !important; font-size: 12px !important; }

body.home-editorial .editorial-home-main {
  max-width: none;
  padding: 34px 0 80px;
}

body.home-editorial .editorial-lead-grid {
  display: grid;
  grid-template-columns: minmax(0,1.55fr) minmax(280px,.75fr);
  gap: 34px;
  padding-bottom: 38px;
  border-bottom: 1px solid #dcd5c9;
}

body.home-editorial .editorial-main-photo,
body.home-editorial .editorial-side-photo,
body.home-editorial .editorial-card-photo,
body.home-editorial .editorial-category-photo {
  display: block;
  overflow: hidden;
  background: #222;
}
body.home-editorial .editorial-main-photo { aspect-ratio: 16 / 10; }
body.home-editorial .editorial-side-photo { aspect-ratio: 16 / 9; }
body.home-editorial .editorial-card-photo,
body.home-editorial .editorial-category-photo { aspect-ratio: 16 / 10; }

body.home-editorial .editorial-main-photo img,
body.home-editorial .editorial-side-photo img,
body.home-editorial .editorial-card-photo img,
body.home-editorial .editorial-category-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .45s ease;
}
body.home-editorial .editorial-main-photo:hover img,
body.home-editorial .editorial-side-photo:hover img,
body.home-editorial .editorial-card-photo:hover img,
body.home-editorial .editorial-category-photo:hover img { transform: scale(1.025); }

body.home-editorial .editorial-kicker {
  margin-top: 20px;
  margin-bottom: 10px;
  color: #7c1f17;
  font-size: 11px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 700;
}

body.home-editorial .editorial-main-story h1,
body.home-editorial .editorial-side-story h2,
body.home-editorial .editorial-card h3,
body.home-editorial .editorial-category-card h3,
body.home-editorial .editorial-section-title h2 {
  font-family: "Fraunces", Georgia, serif !important;
  color: #171713 !important;
  text-transform: none !important;
}

body.home-editorial .editorial-main-story h1 {
  margin: 0 !important;
  font-size: clamp(38px,5.1vw,70px) !important;
  line-height: .98 !important;
  letter-spacing: -.045em !important;
  font-weight: 700 !important;
}

body.home-editorial .editorial-main-story h1 a,
body.home-editorial .editorial-side-story h2 a,
body.home-editorial .editorial-card h3 a,
body.home-editorial .editorial-category-card h3 a,
body.home-editorial .editorial-section-title h2 a { color: inherit !important; }
body.home-editorial .editorial-main-story h1 a:hover,
body.home-editorial .editorial-side-story h2 a:hover,
body.home-editorial .editorial-card h3 a:hover,
body.home-editorial .editorial-category-card h3 a:hover,
body.home-editorial .editorial-section-title h2 a:hover { color: #7c1f17 !important; }

body.home-editorial .editorial-summary {
  margin: 18px 0 0;
  max-width: 830px;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 16px !important;
  line-height: 1.7 !important;
  color: #5f5b54 !important;
}

body.home-editorial .editorial-byline,
body.home-editorial .editorial-card-date {
  margin-top: 18px;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1.4;
  color: #8a857c !important;
  text-transform: uppercase;
  letter-spacing: .08em;
}

body.home-editorial .editorial-side-stories {
  border-left: 1px solid #dcd5c9;
  padding-left: 28px;
}
body.home-editorial .editorial-side-story {
  padding-bottom: 26px;
  margin-bottom: 26px;
  border-bottom: 1px solid #dcd5c9;
}
body.home-editorial .editorial-side-story:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
body.home-editorial .editorial-side-story h2 {
  margin: 0 !important;
  font-size: 27px !important;
  line-height: 1.08 !important;
  letter-spacing: -.03em !important;
  font-weight: 700 !important;
}

body.home-editorial .editorial-ad { padding-top: 28px; text-align: center; }
body.home-editorial .editorial-ad img { max-width: 100%; height: auto; }

body.home-editorial .editorial-latest,
body.home-editorial .editorial-category { padding-top: 44px; }
body.home-editorial .editorial-section-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 22px;
}
body.home-editorial .editorial-section-title:after { content: ''; height: 1px; background: #dcd5c9; flex: 1; }
body.home-editorial .editorial-section-title h2 {
  margin: 0 !important;
  font-size: 38px !important;
  line-height: 1 !important;
  letter-spacing: -.035em !important;
  font-weight: 700 !important;
}

body.home-editorial .editorial-card-grid,
body.home-editorial .editorial-category-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 28px;
}

body.home-editorial .editorial-card {
  background: #fffdf8;
  border: 1px solid #dcd5c9;
  transition: transform .25s ease, box-shadow .25s ease;
}
body.home-editorial .editorial-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.07); }
body.home-editorial .editorial-card-body { padding: 20px 20px 22px; }

body.home-editorial .editorial-card-meta {
  display: flex; gap: 9px; align-items: center; flex-wrap: wrap;
  color: #77736a; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em; margin-bottom: 10px;
}
body.home-editorial .editorial-dot { width: 3px; height: 3px; background: #999; border-radius: 50%; }

body.home-editorial .editorial-card h3,
body.home-editorial .editorial-category-card h3 {
  margin: 0 !important;
  font-size: 26px !important;
  line-height: 1.08 !important;
  letter-spacing: -.025em !important;
  font-weight: 700 !important;
}
body.home-editorial .editorial-card p,
body.home-editorial .editorial-category-card p {
  margin: 13px 0 0 !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 13px !important;
  line-height: 1.7 !important;
  color: #6c675f !important;
}

body.home-editorial .editorial-category { margin-top: 0; }
body.home-editorial .editorial-category-grid { row-gap: 34px; }
body.home-editorial .editorial-category-card {
  background: #fffdf8;
  border: 1px solid #dcd5c9;
}
body.home-editorial .editorial-category-content { padding: 20px 20px 22px; }

/* footer approximation matching the sample */
body.home-editorial .footer-main { background: #171713 !important; color: #d9d3c8 !important; }
body.home-editorial .footer-bottom { background: #171713 !important; color: #8c877e !important; }

@media (max-width: 991px) {
  body.home-editorial .editorial-nav .sf-menu { display: none !important; }
  body.home-editorial .slicknav_menu { display: block !important; background: #fffdf8 !important; border-top: 1px solid #dcd5c9; }
  body.home-editorial .slicknav_btn { background: #171713 !important; }
  body.home-editorial .slicknav_nav a { color: #171713 !important; font-size: 12px !important; font-weight: 700 !important; }
  body.home-editorial .editorial-lead-grid { grid-template-columns: 1fr; }
  body.home-editorial .editorial-side-stories {
    border-left: 0; border-top: 1px solid #dcd5c9; padding-left: 0; padding-top: 28px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  }
  body.home-editorial .editorial-side-story { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
  body.home-editorial .editorial-card-grid,
  body.home-editorial .editorial-category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 767px) {
  body.home-editorial .editorial-masthead .container,
  body.home-editorial .editorial-home-main .container { padding-left: 18px !important; padding-right: 18px !important; }
  body.home-editorial .editorial-masthead .container { padding-top: 18px !important; padding-bottom: 18px !important; }
  body.home-editorial .editorial-edition { font-size: 9px; }
  body.home-editorial .editorial-brand { font-size: 39px !important; }
  body.home-editorial .editorial-brand-sub { font-size: 9px; }
  body.home-editorial .editorial-home-main { padding-top: 22px; }
  body.home-editorial .editorial-main-story h1 { font-size: 43px !important; }
  body.home-editorial .editorial-summary { font-size: 14px !important; }
  body.home-editorial .editorial-side-stories { grid-template-columns: 1fr; }
  body.home-editorial .editorial-side-story h2 { font-size: 27px !important; }
  body.home-editorial .editorial-section-title h2 { font-size: 33px !important; }
  body.home-editorial .editorial-card-grid,
  body.home-editorial .editorial-category-grid { grid-template-columns: 1fr; }
}

@media (max-width: 450px) {
  body.home-editorial .editorial-edition span:first-child { display: none; }
  body.home-editorial .editorial-edition { justify-content: flex-end; }
  body.home-editorial .editorial-main-story h1 { font-size: 39px !important; }
}


@media (max-width: 767px) {
  body.home-editorial .editorial-search-wrap { margin-top: 18px; }
  body.home-editorial .editorial-search-form { width: 100%; min-height: 46px; }
  body.home-editorial .editorial-search-form input[type="text"] { height: 46px; font-size: 13px !important; padding: 0 14px; }
  body.home-editorial .editorial-search-form button { height: 46px; min-width: 52px; padding: 0 14px; }
  body.home-editorial .editorial-search-form button span { display: none; }
  body.home-editorial .editorial-search-form button i { margin-right: 0; }
}


/* =========================================================
   IMAGENS DAS NOTÍCIAS, CLICÁVEIS E ARREDONDADAS
   ========================================================= */

body.home-editorial .editorial-main-photo,
body.home-editorial .editorial-side-photo,
body.home-editorial .editorial-card-photo,
body.home-editorial .editorial-category-photo {
  display: block !important;
  width: 100% !important;
  overflow: hidden !important;
  border-radius: 18px !important;
  position: relative !important;
  cursor: pointer !important;
  -webkit-tap-highlight-color: transparent;
}

body.home-editorial a.editorial-main-photo,
body.home-editorial a.editorial-side-photo,
body.home-editorial a.editorial-card-photo,
body.home-editorial a.editorial-category-photo {
  text-decoration: none !important;
  pointer-events: auto !important;
}

body.home-editorial .editorial-main-photo img,
body.home-editorial .editorial-side-photo img,
body.home-editorial .editorial-card-photo img,
body.home-editorial .editorial-category-photo img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
  border-radius: inherit !important;
  pointer-events: none !important;
  transition: transform .35s ease, filter .35s ease;
}

body.home-editorial .editorial-main-photo:hover img,
body.home-editorial .editorial-side-photo:hover img,
body.home-editorial .editorial-card-photo:hover img,
body.home-editorial .editorial-category-photo:hover img {
  transform: scale(1.025);
  filter: brightness(.96);
}

@media (max-width: 767px) {
  body.home-editorial .editorial-main-photo,
  body.home-editorial .editorial-side-photo,
  body.home-editorial .editorial-card-photo,
  body.home-editorial .editorial-category-photo {
    border-radius: 14px !important;
  }
}


/* =========================================================
   IMAGEM PRINCIPAL DA PÁGINA DA NOTÍCIA ARREDONDADA
   ========================================================= */

body.article-editorial .editorial-hero-photo {
  overflow: hidden !important;
  border-radius: 20px !important;
}

body.article-editorial .editorial-hero-photo img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  border-radius: 20px !important;
}

/* Imagens inseridas no corpo da matéria */
body.article-editorial .editorial-article-content img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 16px !important;
}

@media (max-width: 767px) {
  body.article-editorial .editorial-hero-photo,
  body.article-editorial .editorial-hero-photo img {
    border-radius: 14px !important;
  }

  body.article-editorial .editorial-article-content img {
    border-radius: 12px !important;
  }
}


/* =========================================================
   TÍTULOS DA HOME COM A MESMA FONTE DO NEWS.PHP
   ========================================================= */
body.home-editorial .editorial-main-story h1,
body.home-editorial .editorial-main-story h1 a,
body.home-editorial .editorial-side-story h2,
body.home-editorial .editorial-side-story h2 a,
body.home-editorial .editorial-card h3,
body.home-editorial .editorial-card h3 a,
body.home-editorial .editorial-category-card h3,
body.home-editorial .editorial-category-card h3 a,
body.home-editorial .editorial-section-title h2,
body.home-editorial .editorial-section-title h2 a {
    font-family: "Fraunces", Georgia, serif !important;
}


/* =========================================================
   PÁGINA DE BUSCA, MESMO SISTEMA VISUAL DA HOME
   ========================================================= */

body.home-editorial .news {
  background: #f4f0e8 !important;
  padding-top: 34px !important;
}

body.home-editorial .news > .container {
  width: 100% !important;
  max-width: 1220px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 28px !important;
  padding-right: 28px !important;
}

body.home-editorial .news .heading {
  margin-bottom: 24px !important;
  border-bottom: 1px solid #dcd5c9 !important;
  padding-bottom: 14px !important;
}

body.home-editorial .news .heading h2 {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  color: #171713 !important;
  font-family: "Fraunces", Georgia, serif !important;
  font-size: 34px !important;
  font-weight: 700 !important;
  letter-spacing: -.03em !important;
}

body.home-editorial .news .thumbnail {
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid #dcd5c9 !important;
  border-radius: 20px !important;
  background: #fffdf8 !important;
  box-shadow: 0 8px 28px rgba(23,23,19,.05) !important;
}

body.home-editorial .news .thumbnail .tm-search-photo-link {
  display: block !important;
  width: 100% !important;
  overflow: hidden !important;
  border-radius: 18px 18px 0 0 !important;
  cursor: pointer !important;
  text-decoration: none !important;
}

body.home-editorial .news .thumbnail .tm-search-photo-link .photo {
  width: 100% !important;
  min-height: 0 !important;
  padding-top: 62.5% !important;
  border-radius: 18px 18px 0 0 !important;
  background-size: cover !important;
  background-position: center !important;
  transition: transform .35s ease, filter .35s ease !important;
}

body.home-editorial .news .thumbnail .tm-search-photo-link:hover .photo {
  transform: scale(1.025);
  filter: brightness(.96);
}

body.home-editorial .news .thumbnail .caption {
  padding: 18px 18px 20px !important;
}

body.home-editorial .news .thumbnail .caption h3,
body.home-editorial .news .thumbnail .caption h3 a {
  color: #171713 !important;
  font-family: "Fraunces", Georgia, serif !important;
  font-size: 23px !important;
  line-height: 1.14 !important;
  font-weight: 700 !important;
  letter-spacing: -.025em !important;
}

body.home-editorial .news .thumbnail .caption h3 a:hover {
  color: #7c1f17 !important;
}

body.home-editorial .news .thumbnail .caption h4 {
  color: #77736a !important;
  font-family: "Plus Jakarta Sans", sans-serif !important;
  font-size: 10px !important;
  line-height: 1.5 !important;
  font-weight: 600 !important;
}

body.home-editorial .news .thumbnail .caption p {
  color: #5f5b53 !important;
  font-family: "Plus Jakarta Sans", sans-serif !important;
  font-size: 13px !important;
  line-height: 1.65 !important;
}

@media (max-width: 767px) {
  body.home-editorial .news > .container {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  body.home-editorial .news .heading h2 {
    font-size: 29px !important;
  }

  body.home-editorial .news .thumbnail {
    border-radius: 16px !important;
  }

  body.home-editorial .news .thumbnail .tm-search-photo-link,
  body.home-editorial .news .thumbnail .tm-search-photo-link .photo {
    border-radius: 14px 14px 0 0 !important;
  }
}
