/* ==========================================================================
   Mini apresentacao na pagina inicial (default.php): um "trailer" da
   apresentacao completa em /apresentacao. O cartao inteiro e o link.
   ========================================================================== */
.pres-section { padding: 40px 0 90px; }
.pres-card { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 44px; align-items: center; padding: 34px; border-radius: 30px; text-decoration: none; color: var(--text); background: linear-gradient(135deg, rgba(0, 102, 179, .22), rgba(248, 94, 2, .1)); border: 1px solid rgba(0, 163, 229, .2); overflow: hidden; transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, border-color .35s; }
.pres-card::before { content: ''; position: absolute; top: -40%; left: -10%; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(0, 163, 229, .18) 0%, transparent 70%); pointer-events: none; }
.pres-card:hover { transform: translateY(-6px); border-color: rgba(0, 163, 229, .4); box-shadow: 0 30px 70px -30px rgba(0, 163, 229, .55); }
.pres-card:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
.pres-copy { position: relative; z-index: 1; }
.pres-copy .section-sub { margin-bottom: 22px; }
.pres-chaps { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pres-chaps li { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; color: var(--text); background: rgba(255, 255, 255, .06); border: 1px solid var(--border); }
.pres-chaps li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.pres-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pres-actions .btn-primary { display: inline-flex; }
.pres-actions .btn-primary svg { width: 18px; height: 18px; fill: currentColor; }
.pres-time { color: var(--muted); font-size: .88rem; font-weight: 600; }

/* "Video" do trailer */
.pres-player { position: relative; z-index: 1; aspect-ratio: 16 / 10; border-radius: 22px; overflow: hidden; background: #05080F; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .1); isolation: isolate; }
.pres-ph { position: absolute; inset: -4%; background: center / cover no-repeat; opacity: 0; transform: scale(1.12); transition: opacity 1.2s ease; }
.pres-ph.on { opacity: 1; animation: presKb 7s ease-out forwards; }
@keyframes presKb { from { transform: scale(1.14) translate3d(1.5%, 1%, 0); } to { transform: scale(1.02) translate3d(-1%, -1%, 0); } }
.pres-player::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(5, 8, 15, .85) 0%, rgba(5, 8, 15, .35) 55%, rgba(5, 8, 15, .55) 100%), linear-gradient(0deg, rgba(5, 8, 15, .9) 0%, transparent 45%); }
.pres-top { position: absolute; z-index: 3; left: 18px; right: 18px; top: 16px; display: flex; align-items: center; justify-content: space-between; font-size: .78rem; font-weight: 700; color: rgba(255, 255, 255, .85); }
.pres-top b { display: inline-flex; align-items: center; gap: 8px; }
.pres-top img { width: 22px; height: 22px; }
.pres-live { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); letter-spacing: .08em; text-transform: uppercase; font-size: .68rem; }
.pres-live i { width: 7px; height: 7px; border-radius: 50%; background: #19E3A0; animation: presDot 1.6s ease-in-out infinite; }
@keyframes presDot { 50% { opacity: .3; } }
.pres-cap { position: absolute; z-index: 3; left: 22px; bottom: 40px; max-width: 58%; }
.pres-cap small { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #19E3A0; margin-bottom: 6px; }
.pres-cap strong { display: block; font-size: clamp(1rem, 1.7vw, 1.45rem); font-weight: 900; line-height: 1.08; letter-spacing: -.03em; color: #fff; }
.pres-cap > * { transition: opacity .45s, transform .45s; }
.pres-cap.swap > * { opacity: 0; transform: translateY(10px); }
.pres-play { position: absolute; z-index: 4; left: 76%; top: 56%; width: 74px; height: 74px; margin: -37px 0 0 -37px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #05080F; box-shadow: 0 0 0 0 rgba(255, 255, 255, .5); animation: presPulse 2.2s ease-out infinite; transition: transform .25s; }
.pres-play svg { width: 30px; height: 30px; margin-left: 4px; fill: currentColor; }
.pres-card:hover .pres-play { transform: scale(1.08); }
@keyframes presPulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .45); } 80%, 100% { box-shadow: 0 0 0 26px rgba(255, 255, 255, 0); } }
.pres-chip { position: absolute; z-index: 3; right: 16px; top: 50px; display: flex; align-items: center; gap: 9px; padding: 9px 13px 9px 9px; border-radius: 16px; background: rgba(255, 255, 255, .96); color: #0B1A2C; box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .7); transition: opacity .45s, transform .45s; animation: presBob 4.5s ease-in-out infinite; }
.pres-chip.swap { opacity: 0; transform: translateY(-8px) scale(.95); }
.pres-chip .fi { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: 16px; color: #fff; background: var(--c, #1EA7FF); }
.pres-chip b { display: block; font-size: .8rem; }
.pres-chip small { display: block; font-size: .7rem; color: #4A5E75; font-weight: 600; }
@keyframes presBob { 50% { translate: 0 -7px; } }
.pres-segs { position: absolute; z-index: 3; left: 18px; right: 18px; bottom: 18px; display: flex; gap: 4px; }
.pres-segs i { flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .2); overflow: hidden; position: relative; }
.pres-segs i::after { content: ''; position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, #19E3A0, #1EA7FF, #E23CC4); }
.pres-segs i.done::after { transform: scaleX(1); }
.pres-segs i.on::after { animation: presSeg var(--d, 3.4s) linear forwards; }
@keyframes presSeg { to { transform: scaleX(1); } }

@media (max-width: 860px) {
  .pres-card { grid-template-columns: 1fr; gap: 26px; padding: 22px; }
  .pres-player { order: -1; }
  .pres-cap { max-width: 62%; bottom: 34px; }
  .pres-play { width: 58px; height: 58px; margin: -29px 0 0 -29px; left: 80%; }
  .pres-play svg { width: 24px; height: 24px; }
  .pres-chip { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pres-ph.on, .pres-play, .pres-chip, .pres-live i { animation: none; }
}
