/* ==========================================================================
   Art Cercas | Blog: cards, grade, destaque da home e página do post
   ========================================================================== */

.art-wrap--wide { max-width: 1440px; }

/* Card ---------------------------------------------------------------------- */
.art-pc { display: flex; flex-direction: column; min-width: 0; }
.art-pc__img { display: block; overflow: hidden; border-radius: 10px; background: #e9eef2; aspect-ratio: 16 / 10; }
.art-pc__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.art-pc:hover .art-pc__img img { transform: scale(1.04); }
.art-pc__body { padding: 14px 2px 0; }
.art-pc__date { display: block; margin: 0 0 6px; color: #6b7785; font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.art-pc__title { margin: 0; color: #0d1b2a; font-size: 17px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.art-pc__title a { color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .3s; }
.art-pc:hover .art-pc__title a { background-size: 100% 1.5px; }
.art-pc__ex { margin: 8px 0 0; color: #4b5663; font-size: 14.5px; line-height: 1.55; }

/* Grades -------------------------------------------------------------------- */
.art-pcgrid { display: grid; gap: 36px 24px; }
.art-pcgrid--blog { grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0 0 56px; }
.art-pcgrid--related { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1080px) {
  .art-pcgrid--blog { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 20px; }
}
@media (max-width: 860px) {
  .art-pcgrid--blog, .art-pcgrid--related { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .art-pcgrid--blog, .art-pcgrid--related { grid-template-columns: 1fr; gap: 34px; }
  .art-pc__title { font-size: 19px; }
}

/* Categorias do blog: links de texto */
.art-blogcats { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; margin: 0 0 34px; padding: 0 0 16px; border-bottom: 1px solid #e4e9ee; font-size: 14.5px; }
.art-blogcats__l { color: #6b7785; font-weight: 600; }
.art-blogcats a { color: #33404d; text-decoration: none; }
.art-blogcats a:hover, .art-blogcats a[aria-current] { color: #0a6eff; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.art-blog { padding-top: 34px; }

/* Home: destaque + lista ---------------------------------------------------- */
.art-hblog { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: start; text-align: left; }
.art-pc--feature .art-pc__img { aspect-ratio: 16 / 10; border-radius: 14px; }
.art-pc--feature .art-pc__body { padding-top: 20px; }
.art-pc--feature .art-pc__title { font-size: clamp(22px, 2.3vw, 30px); line-height: 1.22; }
.art-pc--feature .art-pc__ex { font-size: 16px; margin-top: 12px; }
.art-hblog__list { display: grid; gap: 26px; }
.art-pc--row { display: grid; grid-template-columns: 190px 1fr; gap: 20px; align-items: center; }
.art-pc--row .art-pc__img { aspect-ratio: 4 / 3; }
.art-pc--row .art-pc__body { padding: 0; }
.art-pc--row .art-pc__title { font-size: 18px; }
@media (max-width: 900px) {
  .art-hblog { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 520px) {
  .art-pc--row { grid-template-columns: 120px 1fr; gap: 14px; }
  .art-pc--row .art-pc__title { font-size: 16px; }
}

/* Post ---------------------------------------------------------------------- */
.art-art__hero { position: relative; display: flex; align-items: flex-end; min-height: 440px; padding: 60px 0 44px; color: #fff; background: #0a2033 var(--img, none) center / cover no-repeat; }
.art-art__hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 20, 33, .25) 0%, rgba(6, 20, 33, .55) 45%, rgba(6, 20, 33, .9) 100%); }
.art-art__hero .art-wrap { position: relative; width: 100%; }
.art-art__hero .art-crumbs ol { color: rgba(255, 255, 255, .8); }
.art-art__hero .art-crumbs a { color: #fff; }
.art-art__cat { display: inline-block; margin: 6px 0 12px; color: #7fd3ff; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.art-art__cat:hover { color: #fff; }
.art-art__title { max-width: 900px; margin: 0 0 16px; color: #fff; font-size: clamp(30px, 4.2vw, 48px); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
.art-art__meta { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0; color: rgba(255, 255, 255, .85); font-size: 14.5px; }
.art-art__meta span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; margin: 0 14px 3px -12px; border-radius: 50%; background: rgba(255, 255, 255, .55); }

.art-art__grid { display: grid; grid-template-columns: minmax(0, 760px) 300px; justify-content: space-between; gap: 60px; padding-top: 48px; padding-bottom: 60px; }
.art-art__body { min-width: 0; color: #22303d; }
.art-art__body > p:first-child { font-size: 19px; line-height: 1.65; color: #1a2732; }
.art-art__body h2 { scroll-margin-top: 110px; margin: 44px 0 14px; color: #0d1b2a; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.22; letter-spacing: -.015em; }
.art-art__body h3 { margin: 26px 0 8px; color: #0d1b2a; font-size: 20px; }
.art-art__body strong { color: #0d1b2a; }

/* listas numeradas e de itens com título */
.art-list { margin: 0 0 24px; padding: 0; list-style: none; counter-reset: li; }
.art-list > li { position: relative; margin: 0 0 16px; padding-left: 46px; }
.art-list--numbered > li { counter-increment: li; }
.art-list--numbered > li::before { content: counter(li); position: absolute; left: 0; top: 1px; width: 30px; height: 30px; border-radius: 50%; background: #0d1b2a; color: #fff; font-size: 14px; font-weight: 700; line-height: 30px; text-align: center; }
.art-list--bullets > li { padding-left: 24px; }
.art-list--bullets > li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: #02b1ff; }
.art-list--check > li { padding-left: 34px; }
.art-list--check > li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; background: #1aa952 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 14px no-repeat; }
.art-list__t { display: block; margin: 0 0 2px; color: #0d1b2a; font-weight: 700; }

/* dica */
.art-tip { margin: 6px 0 26px; padding: 18px 22px; border-left: 4px solid #02b1ff; background: #f2f8fc; border-radius: 0 8px 8px 0; }
.art-tip p { margin: 0; }
.art-tip strong:first-child { color: #0a6eff; }

/* FAQ do post */
.art-faqblock { margin-top: 48px; padding-top: 8px; border-top: 1px solid #e4e9ee; }
.art-faqblock details { border-bottom: 1px solid #e4e9ee; }
.art-faqblock summary { position: relative; padding: 18px 40px 18px 0; color: #0d1b2a; font-size: 17.5px; font-weight: 700; line-height: 1.35; list-style: none; cursor: pointer; }
.art-faqblock summary::-webkit-details-marker { display: none; }
.art-faqblock summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border: solid #0a6eff; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s; }
.art-faqblock details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.art-faqblock details > div { padding: 0 0 18px; }
.art-faqblock details p { margin: 0; }

/* fontes */
.art-sources { margin-top: 36px; font-size: 14px; color: #5b6774; }
.art-sources ul { margin: 6px 0 0; padding-left: 18px; }

/* lateral */
.art-art__sticky { position: sticky; top: 110px; display: grid; gap: 22px; }
.art-toc { padding: 0 0 0 18px; border-left: 2px solid #e4e9ee; }
.art-toc__t { margin: 0 0 10px; color: #6b7785; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.art-toc ol { margin: 0; padding: 0; list-style: none; }
.art-toc li { margin: 0 0 9px; font-size: 14.5px; line-height: 1.4; }
.art-toc a { color: #33404d; text-decoration: none; }
.art-toc a:hover { color: #0a6eff; }
.art-sidecta { padding: 22px; border-radius: 12px; background: #0a2033; color: #c7d6e3; font-size: 14.5px; }
.art-sidecta__t { margin: 0 0 6px; color: #fff; font-size: 18px; font-weight: 700; }
.art-sidecta p { margin: 0 0 14px; }
.art-btn--block { display: flex; width: 100%; }

.art-related { padding: 56px 0 64px; background: #f6f8fa; }

@media (max-width: 1024px) {
  .art-art__grid { grid-template-columns: 1fr; gap: 0; }
  .art-art__side { order: -1; }
  .art-art__sticky { position: static; }
  .art-sidecta { display: none; }
  .art-toc { margin: 0 0 28px; }
}
@media (max-width: 640px) {
  .art-art__hero { min-height: 360px; padding: 40px 0 30px; }
  .art-art__grid { padding-top: 30px; }
  .art-art__body > p:first-child { font-size: 17.5px; }
}

/* Home: vídeo e blog ------------------------------------------------------- */
.art-hvideo { padding: 80px 0; background: #0a2033; color: #c7d6e3; }
.art-hvideo__head { max-width: 760px; margin: 0 auto 36px; text-align: center; }
.art-hvideo__label { margin: 0 0 10px; color: #7fd3ff; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.art-hvideo__label--dark { color: #0a6eff; }
.art-hvideo__title { margin: 0 0 14px; color: #fff; font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
.art-hvideo__text { margin: 0; font-size: 17px; line-height: 1.6; }
.art-hvideo__frame { max-width: 1040px; margin: 0 auto; border-radius: 16px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); }
.art-hvideo__frame .art-vp, .art-hvideo__video { display: block; width: 100%; aspect-ratio: 16 / 9; }
.art-hblog-wrap { padding: 80px 0 90px; background: #fff; }
.art-hblog__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; margin: 0 0 40px; }
.art-hblog__head > div { max-width: 640px; }
.art-hblog__title { margin: 0 0 10px; color: #0d1b2a; font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; }
.art-hblog__text { margin: 0; color: #4b5663; font-size: 17px; line-height: 1.6; }
.art-hblog__all { color: #0a6eff; font-weight: 700; white-space: nowrap; }
.art-hblog__all::after { content: " \2192"; }
.art-hblog__all:hover { text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 640px) {
  .art-hvideo, .art-hblog-wrap { padding: 56px 0; }
  .art-hvideo__frame { border-radius: 10px; }
}
