/* Notícias v3: fotos grandes, números animados, pouco texto. */

/* ---------- Cartões ---------- */
.news-card.v3 .news-link { position: relative; isolation: isolate; background: var(--ink-2); }
.news-card.v3 .thumb { aspect-ratio: 4 / 3; }
.news-card.v3 .thumb img { object-position: 50% 25%; transition: transform 1.1s var(--ease), filter .6s; filter: saturate(.92); }
.news-card.v3 .news-link:hover .thumb img { transform: scale(1.08); filter: saturate(1.1); }
.thumb-sheen { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(10, 6, 6, .85)); pointer-events: none; }
.thumb-sheen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .22) 50%, transparent 65%); transform: translateX(-120%); transition: transform .9s var(--ease); }
.news-link:hover .thumb-sheen::after { transform: translateX(120%); }
.news-card.v3 .news-txt { position: relative; gap: 8px; padding: 16px 18px 18px; }
.news-card.v3 .news-txt::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.news-card.v3 .news-link:hover .news-txt::before { transform: scaleX(1); }
.news-k { font-family: var(--f-num); font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--grass-hot); }
.news-card.v3 .news-r { -webkit-line-clamp: 2; font-size: 14px; color: var(--muted); }
.news-go { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--red-hot); }
.news-go svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.news-link:hover .news-go svg { transform: translateX(5px); }

/* Destaque: foto inteira com texto por cima */
.news-destaque .news-card.v3 .news-link { display: block; min-height: 0; }
.news-destaque .news-card.v3 .thumb { aspect-ratio: 4 / 5; }
.news-destaque .news-card.v3 .thumb img { animation: kenburns 18s ease-in-out infinite alternate; }
.news-destaque .news-card.v3 .news-txt { position: absolute; inset: auto 0 0; padding: 22px; background: none; }
.news-destaque .news-card.v3 .news-t { font-size: clamp(26px, 6vw, 52px); line-height: 1.02; letter-spacing: -.03em; font-stretch: 112%; text-transform: uppercase; max-width: 18ch; }
.news-destaque .news-card.v3 .news-r { font-size: 16px; color: var(--text-2); }
.news-destaque .thumb-sheen { background: linear-gradient(180deg, rgba(10, 6, 6, .1) 20%, rgba(10, 6, 6, .95)); }
@media (min-width: 720px) { .news-destaque .news-card.v3 .thumb { aspect-ratio: 16 / 8; } .news-destaque .news-card.v3 .news-txt { padding: 36px; } }
@keyframes kenburns { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.14) translate(-2%, -2%); } }

/* Grelha tipo mosaico */
@media (min-width: 1024px) {
  .news-grid.bento { grid-auto-flow: dense; }
  .news-grid.bento .news-card:nth-child(5n + 1) { grid-column: span 2; }
  .news-grid.bento .news-card:nth-child(5n + 1) .thumb { aspect-ratio: 16 / 9; }
  .news-grid.bento .news-card:nth-child(5n + 1) .news-t { font-size: 24px; }
}

/* ---------- Artigo ---------- */
.artigo.v3 .art-hero { position: relative; min-height: min(88svh, 820px); display: grid; align-items: end; overflow: hidden; margin-top: calc(var(--header-h) * -1); padding-top: var(--header-h); isolation: isolate; }
.art-hero-img { position: absolute; inset: 0; z-index: -2; }
.art-hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; animation: heroZoom 2.2s var(--ease) both, kenburns 22s 2.2s ease-in-out infinite alternate; }
@keyframes heroZoom { from { transform: scale(1.25); filter: blur(6px) brightness(.4); } }
.art-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 6, 6, .55) 0%, rgba(10, 6, 6, .15) 30%, rgba(10, 6, 6, .7) 65%, var(--ink) 100%); }
.art-hero::after { content: ""; position: absolute; left: 0; bottom: 0; z-index: -1; width: 100%; height: 6px; background: linear-gradient(90deg, var(--red) 0 60%, var(--chalk) 60% 75%, var(--grass) 75%); transform: scaleX(0); transform-origin: left; animation: barIn 1.4s .9s var(--ease) forwards; }
@keyframes barIn { to { transform: scaleX(1); } }
.art-hero-in { padding-block: 24px 48px; display: grid; gap: 12px; justify-items: start; }
.art-hero-in .voltar { color: var(--chalk); background: rgba(10, 6, 6, .5); padding: 0 14px; border-radius: var(--r-pill); backdrop-filter: blur(6px); }
.artigo.v3 .artigo-t { font-size: clamp(30px, 7.4vw, 84px); line-height: 1.02; letter-spacing: -.035em; font-stretch: 115%; text-transform: uppercase; max-width: 16ch; overflow-wrap: anywhere; hyphens: auto; text-shadow: 0 4px 30px rgba(0, 0, 0, .5); }
.artigo.v3 .artigo-r { margin: 0; font-size: clamp(17px, 2.2vw, 22px); color: var(--chalk); max-width: 36ch; }
.art-hero-in time { font-family: var(--f-num); letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); font-size: 15px; }
@media (min-width: 900px) {
  .art-hero-img.retrato { left: 42%; }
  .art-hero-img.retrato img { object-position: 50% 18%; }
  .art-hero-img.retrato::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 45%; z-index: 1; background: linear-gradient(90deg, var(--ink), transparent); }
  .artigo.v3 .art-hero:has(.retrato)::before { background: linear-gradient(90deg, var(--ink) 38%, rgba(10, 6, 6, .2) 70%), linear-gradient(180deg, transparent 60%, var(--ink)); }
}
.art-scroll { position: absolute; right: var(--gr); bottom: 24px; width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .5); border-radius: 14px; }
.art-scroll::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--chalk); animation: scrollDot 1.6s infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (max-width: 640px) { .art-scroll { display: none; } }

.art-corpo { max-width: 920px; padding-block: 8px 24px; display: grid; gap: clamp(28px, 5vw, 48px); }
.art-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.art-num, .nota { background: var(--ink-2); padding: 20px 18px; display: grid; gap: 4px; align-content: start; }
.art-num b { font-family: var(--f-num); font-weight: 400; font-size: clamp(44px, 9vw, 96px); line-height: 1; display: block; margin-bottom: 4px; color: var(--chalk); }
.art-num:nth-child(3n + 2) b { color: var(--red-hot); }
.art-num:nth-child(3n) b { color: var(--grass-hot); }
.art-num small, .nota small { color: var(--muted); font-size: 13px; line-height: 1.3; }
.nota { position: relative; place-items: center; text-align: center; background: var(--red); overflow: hidden; }
.nota b { font-family: var(--f-display); font-stretch: 125%; font-weight: 900; font-size: clamp(80px, 14vw, 140px); line-height: .85; }
.nota small { color: var(--chalk); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.nota-ring { position: absolute; left: 50%; top: 45%; width: 180px; height: 180px; margin: -90px 0 0 -90px; border-radius: 50%; border: 3px dashed rgba(255, 255, 255, .45); animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.nota.in b { animation: stamp .7s var(--spring) both; }
@keyframes stamp { from { transform: scale(2.4) rotate(-12deg); opacity: 0; } }

.art-txt { display: grid; gap: 14px; max-width: 62ch; }
.art-txt p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--text-2); }
.art-txt .lead-p { font-size: clamp(20px, 2.6vw, 26px); line-height: 1.35; color: var(--chalk); font-weight: 600; letter-spacing: -.01em; }

.pontos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pontos li { display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--ink-2); font-weight: 650; font-size: 15px; transition: border-color .3s, transform .3s var(--ease); }
.pontos li:hover { border-color: var(--grass-hot); transform: translateY(-2px); }
.pt-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--grass-hot); box-shadow: 0 0 0 0 rgba(46, 224, 122, .6); animation: dotPulse 2.4s infinite; }
.pontos li:nth-child(2n) .pt-dot { background: var(--red-hot); animation-delay: .6s; }
@keyframes dotPulse { 0% { box-shadow: 0 0 0 0 rgba(46, 224, 122, .5); } 70%, 100% { box-shadow: 0 0 0 10px rgba(46, 224, 122, 0); } }

.art-h { font-family: var(--f-num); font-weight: 400; letter-spacing: .14em; text-transform: uppercase; font-size: 18px; color: var(--muted); margin: 0 0 14px; display: flex; align-items: center; gap: 12px; }
.art-h::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.placar { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.placar li { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--r-md); background: var(--ink-2); border: 1px solid var(--line); }
.placar .eq { font-weight: 650; font-size: 15px; min-width: 0; overflow-wrap: anywhere; }
.placar .eq:last-child { text-align: right; }
.placar .eq.nos { color: var(--grass-hot); }
.placar .res { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-num); font-size: 34px; line-height: 1; }
.placar .res i { font-style: normal; color: var(--muted); font-size: 18px; }

.art-quote { position: relative; margin: 0; padding: clamp(24px, 5vw, 48px); border-radius: var(--r-lg); background: linear-gradient(135deg, var(--red-deep), var(--ink-2) 70%); overflow: hidden; }
.q-mark { position: absolute; right: 12px; top: -30px; font-family: var(--f-display); font-size: 220px; line-height: 1; color: rgba(255, 255, 255, .08); }
.art-quote p { margin: 0; font-family: var(--f-display); font-stretch: 108%; font-weight: 800; font-size: clamp(22px, 3.6vw, 38px); line-height: 1.15; letter-spacing: -.02em; }
.art-quote cite { display: block; margin-top: 14px; font-style: normal; font-family: var(--f-num); letter-spacing: .12em; text-transform: uppercase; color: var(--grass-hot); }
.art-quote.in .q-mark { animation: qIn 1s var(--spring) both; }
@keyframes qIn { from { transform: translateY(40px) scale(.6); opacity: 0; } }

.galeria { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; grid-auto-flow: dense; }
@media (min-width: 720px) { .galeria { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
.gal-item { position: relative; display: block; margin: 0; padding: 0; border: 0; border-radius: var(--r-md); overflow: hidden; background: var(--ink-3); aspect-ratio: 1; cursor: zoom-in; min-height: 44px; }
.gal-item.alto { grid-row: span 2; aspect-ratio: auto; }
.gal-item img, .gal-item video { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gal-item:hover img { transform: scale(1.07); }
.gal-item::after { content: ""; position: absolute; inset: 0; border: 2px solid transparent; border-radius: inherit; transition: border-color .3s; pointer-events: none; }
.gal-item:hover::after, .gal-item:focus-visible::after { border-color: var(--red); }
.gal-video { grid-column: 1 / -1; aspect-ratio: 16 / 10; cursor: default; }
@media (min-width: 720px) { .gal-video { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; } }
.gal-video figcaption { position: absolute; left: 12px; bottom: 12px; padding: 4px 10px; border-radius: var(--r-pill); background: rgba(10, 6, 6, .78); font-size: 12px; font-weight: 700; display: inline-flex; gap: 8px; align-items: center; }
.gal-video figcaption::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red-hot); animation: dotPulse 1.6s infinite; }
.art-fonte { margin: 0; color: var(--muted); font-size: 13px; }

.lightbox { width: 100vw; max-width: 100vw; height: 100svh; max-height: 100svh; margin: 0; padding: 0; border: 0; background: rgba(5, 3, 3, .96); color: var(--chalk); }
.lightbox[open] { display: grid; place-items: center; animation: fichaIn .35s var(--ease); }
.lightbox img { max-width: calc(100vw - 24px); max-height: calc(100svh - 120px); object-fit: contain; border-radius: var(--r-sm); }
.lb-fechar, .lb-nav { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(10, 6, 6, .7); color: var(--chalk); font-size: 28px; line-height: 1; display: grid; place-items: center; cursor: pointer; }
.lb-fechar { right: 14px; top: 14px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-leg { position: absolute; left: 16px; right: 16px; bottom: 16px; margin: 0; text-align: center; color: var(--text-2); font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  .art-hero-img img, .news-destaque .news-card.v3 .thumb img, .nota-ring, .pt-dot, .art-scroll::after { animation: none !important; }
  .art-hero::after { transform: none; animation: none; }
}

/* Telemóvel: destaque com texto por baixo da foto (não por cima) e tamanhos que cabem em 320 px */
@media (max-width: 719px) {
  .news-destaque .news-card.v3 .thumb { aspect-ratio: 4 / 3; }
  .news-destaque .news-card.v3 .news-txt { position: relative; inset: auto; padding: 18px; }
  .news-destaque .news-card.v3 .news-t { font-size: clamp(22px, 6.6vw, 30px); }
}
