/* ================================================================
   Workshop v2 — layout pôster com cartões de vidro em volta da foto
   Paleta mantida: #00122E / #041A3B / #0066CC / #004A99 / #00A651 / #009688 / #4FD1C5
================================================================ */
body.v2 { background: #00122e; }


.hx { position: relative; overflow: hidden; color: #fff; padding: 56px 0 64px;
  background: radial-gradient(1000px 600px at 70% 30%, rgba(0,102,204,0.28), transparent 60%), linear-gradient(180deg, #00122E, #010E24 70%, #00122E); }
.hx-bg { position: absolute; inset: 0; pointer-events: none; }
.hx-globe { position: absolute; right: -6%; top: 14%; width: min(620px, 55vw); opacity: .9; }
.hx-city { position: absolute; left: 0; right: 0; bottom: 0; height: 45%;
  background: repeating-linear-gradient(90deg, transparent 0 38px, rgba(59,139,224,0.06) 38px 40px), linear-gradient(0deg, rgba(0,102,204,0.18), transparent);
  -webkit-mask-image: linear-gradient(0deg, #000, transparent); mask-image: linear-gradient(0deg, #000, transparent); }

/* cabeçalho do pôster */
.hx-head { position: relative; z-index: 3; }
.hx-kicker { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; font-size: .75rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: #9FB3CC; }
.hx-kicker i { width: 5px; height: 5px; border-radius: 50%; background: #4FD1C5; }
.hx-title { margin: 0 0 18px; font-size: clamp(1.85rem, 5.2vw, 4.25rem); line-height: 1.02; letter-spacing: -0.035em; text-transform: uppercase; font-weight: 800; max-width: 1000px; }
.hx-title span { display: block; }
.hx-title .l2 { background: linear-gradient(90deg, #3B8BE0 0%, #0066CC 40%, #4FD1C5 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hx-lead { max-width: 520px; color: #C6D3E6; font-size: 1.0625rem; margin: 0; }

/* palco */
.hx-stage { position: relative; z-index: 2; height: 730px; margin-top: 16px; }
.hx-person { position: absolute; left: 50%; top: 0; width: 900px; margin-left: -450px; z-index: 1; }
.hx-person img { width: 100%; height: auto; border-radius: 24px;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%), linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(180deg, #000 70%, transparent 100%), linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%); mask-composite: intersect; }
.hx-person-glow { position: absolute; inset: -10% 0 10%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,102,204,0.55), rgba(0,150,136,0.15) 60%, transparent); filter: blur(12px); }

/* vidro */
.gc { position: absolute; z-index: 4; color: #fff; border-radius: 18px;
  background: linear-gradient(160deg, rgba(10,44,92,0.62), rgba(4,26,59,0.5));
  border: 1px solid rgba(110,170,240,0.35);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.03) inset, 0 20px 50px -20px rgba(0,0,0,0.7), 0 0 34px -12px rgba(0,102,204,0.75);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
.gc-body { display: flex; flex-direction: column; }
.gc-body small { color: #9FB3CC; font-size: .75rem; }
.gc-body b { font-size: 1rem; }
.gc-ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(110,170,240,0.4); color: #4FD1C5; flex-shrink: 0; }
.gc-ico svg { width: 16px; height: 16px; }

/* cartão-menu (esquerda) */
.hx-menu { left: 24px; top: 330px; width: 270px; padding: 20px; }
.hx-menu-top { display: flex; gap: 12px; align-items: center; padding-bottom: 14px; margin-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.hx-menu-logo { width: 54px; height: 54px; object-fit: contain; border-radius: 50%; background: rgba(0,18,46,0.8); border: 1px solid rgba(110,170,240,0.45); padding: 8px; box-shadow: 0 0 18px -4px rgba(0,102,204,0.8); }
.hx-menu-top b { display: block; font-size: 1rem; line-height: 1.25; }
.hx-menu-top small { color: #9FB3CC; font-size: .75rem; }
.hx-menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hx-menu a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; font-size: .875rem; font-weight: 600; color: #E3EAF4;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(110,170,240,0.18); transition: background-color 150ms ease, border-color 150ms ease, transform 100ms ease-out; touch-action: manipulation; }
.hx-menu a:active { transform: scale(0.97); background: rgba(0,102,204,0.25); }
.hx-menu .mi { color: #4FD1C5; display: grid; } .hx-menu .mi svg { width: 18px; height: 18px; }
.hx-menu .chev { margin-left: auto; color: #6F86A8; }
@media (hover: hover) and (pointer: fine) { .hx-menu a:hover { background: rgba(0,102,204,0.18); border-color: rgba(110,170,240,0.5); } }

/* local e data (direita) */
.hx-place { right: 24px; top: 320px; width: 250px; padding: 12px; display: grid; grid-template-columns: 1fr auto; gap: 10px 12px; align-items: end; transition: transform 100ms ease-out; }
.hx-place:active { transform: scale(0.98); }
.hx-place img { grid-column: 1 / -1; width: 100%; height: 120px; object-fit: cover; border-radius: 12px; }
.hx-date { right: 24px; top: 590px; width: 250px; width: 260px; padding: 16px 18px; display: flex; align-items: center; gap: 14px; }
.hx-date-day { font-size: 2.75rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; background: linear-gradient(180deg, #fff, #9FC6F2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hx-date .gc-ico { margin-left: auto; }

/* órbita com temas */
.hx-orbit { position: absolute; left: 50%; top: 390px; width: 560px; margin-left: -290px; height: 260px; z-index: 5; }
.hx-ring { position: absolute; left: -40px; right: -40px; top: 50%; height: 140px; margin-top: -40px; border-radius: 50%;
  border: 2px solid rgba(59,139,224,0.45); box-shadow: 0 0 22px rgba(0,102,204,0.6), inset 0 0 22px rgba(0,102,204,0.35); }
@property --ring-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.hx-ring::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; padding: 2px;
  background: conic-gradient(from var(--ring-a), transparent 0 70%, #4FD1C5 82%, #fff 86%, transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  filter: drop-shadow(0 0 6px #4FD1C5); animation: ring-run 9s linear infinite; }
@keyframes ring-run { to { --ring-a: 360deg; } }
.oc { position: absolute; top: 0; width: 172px; border-radius: 16px; overflow: hidden; color: #fff; display: block;
  background: rgba(4,26,59,0.7); border: 1px solid rgba(110,170,240,0.45); box-shadow: 0 0 30px -8px rgba(0,102,204,0.9), 0 20px 40px -20px #000;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: transform 100ms ease-out; touch-action: manipulation; }
.oc:active { transform: scale(0.97); }
.oc img { width: 100%; height: 130px; object-fit: cover; object-position: top; }
.oc-body { display: block; padding: 10px 14px 14px; }
.oc-body b { display: block; font-size: .9375rem; line-height: 1.2; }
.oc-body small { color: #9FB3CC; font-size: .75rem; }
.oc-mark { position: absolute; right: 10px; bottom: 10px; font-size: .625rem; font-weight: 800; letter-spacing: .08em; color: #4FD1C5; }
.oc1 { left: 0; top: 40px; } .oc2 { left: 186px; top: 0; width: 188px; border-color: rgba(79,209,197,0.7); } .oc3 { right: 0; top: 40px; }

/* celular */
.hx-phone { position: absolute; right: 0; bottom: -10px; width: 220px; z-index: 6; }
.hx-phone-screen { border-radius: 30px; padding: 26px 22px 24px; text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(170deg, #06224A, #010B1D); border: 6px solid #0B1628; box-shadow: 0 0 0 1px rgba(110,170,240,0.4), 0 30px 60px -20px #000, 0 0 50px -10px rgba(0,102,204,0.8);
  transform: rotate(-8deg); }
.hx-phone-logo { width: 110px; margin: 0 auto 10px; }
.hx-phone-ring { width: 96px; height: 96px; margin: 0 auto 12px; border-radius: 50%; border: 3px solid #0066CC; box-shadow: 0 0 24px #0066CC, inset 0 0 18px rgba(0,102,204,0.6); }
.hx-phone small { display: block; color: #9FB3CC; font-size: .75rem; }
.hx-phone b { display: block; font-size: 2rem; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.hx-phone .btn { width: 100%; }

/* faixa de 4 destaques */
.hx-features { position: relative; z-index: 3; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); padding-top: 26px; margin-top: 0; margin-bottom: 30px; border-top: 1px solid rgba(255,255,255,0.08); }
.hx-features li { padding: 4px 22px; border-left: 1px solid rgba(255,255,255,0.1); display: flex; flex-direction: column; gap: 4px; }
.hx-features li:first-child { border-left: none; padding-left: 0; }
.hf-ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(59,139,224,0.6); color: #3B8BE0; margin-bottom: 8px; box-shadow: 0 0 16px -4px rgba(0,102,204,0.8); }
.hf-ico svg { width: 20px; height: 20px; }
.hx-features b { font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; }
.hx-features small { color: #9FB3CC; font-size: .8125rem; }
.hx-cta { position: relative; z-index: 3; display: flex; flex-wrap: wrap; gap: 14px; }
.hx-cta .btn svg { width: 18px; height: 18px; }

/* ---------- animações ---------- */
/* entrada: cada peça "materializa" (blur + escala + opacidade), em sequência */
.js-anim .fx, .js-anim .oc, .js-anim .hx-title span, .js-anim .hx-kicker, .js-anim .hx-lead {
  opacity: 0; filter: blur(8px); transform: translateY(14px) scale(0.97);
  transition: opacity 520ms ease, filter 520ms ease, transform 620ms cubic-bezier(0.23, 1, 0.32, 1);
  transition-delay: calc(var(--i, 0) * 70ms); }
.js-anim .is-in { opacity: 1 !important; filter: none !important; transform: none !important; }
.js-anim .oc.is-in { transition: transform 100ms ease-out, opacity 520ms ease, filter 520ms ease; transition-delay: 0s; }
/* parallax pelo ponteiro: usa "translate", separado do "transform" da entrada */
.fx, .oc { translate: var(--px, 0) var(--py, 0); }

/* ---------- responsivo ---------- */
@media (max-width: 1180px) {
  .hx-person { width: 760px; margin-left: -380px; }
  .hx-menu, .hx-place, .hx-date { width: 230px; }
  .hx-orbit { transform: scale(.82); transform-origin: 50% 0; }
}
@media (max-width: 980px) {
  .hx { padding-top: 36px; }
  .hx-stage { height: auto; margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .hx-stage > * { position: relative !important; left: auto !important; right: auto !important; top: auto !important; bottom: auto !important; margin: 0 !important; width: auto !important; }
  .hx-person { grid-column: 1 / -1; max-width: 100%; justify-self: center; }
  .hx-menu { grid-column: 1 / -1; }
  .hx-orbit { grid-column: 1 / -1; height: auto; transform: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .hx-ring { display: none; }
  .oc { position: relative; left: auto !important; right: auto !important; top: auto !important; width: auto !important; }
  .hx-phone { grid-column: 1 / -1; max-width: 300px; justify-self: center; }
  .hx-phone-screen { transform: none; }
  .hx-features { grid-template-columns: 1fr 1fr; gap: 22px 0; margin-top: 30px; }
  .hx-features li:nth-child(3) { border-left: none; padding-left: 0; }
  .hx-globe { width: 90vw; right: -30vw; top: 30%; }
}
@media (max-width: 600px) {
  .hx-stage { grid-template-columns: 1fr; }
  .hx-orbit { grid-template-columns: 1fr; }
  .oc { display: grid; grid-template-columns: 96px 1fr; }
  .oc img { height: 100%; min-height: 86px; }
  .hx-features { grid-template-columns: 1fr; }
  .hx-features li { border-left: none; padding-left: 0; }
  .hx-cta .btn { width: 100%; }
  .hx-kicker { gap: 8px; letter-spacing: .16em; }
}

/* ---------- acessibilidade ---------- */
@media (prefers-reduced-motion: reduce) {
  .js-anim .fx, .js-anim .oc, .js-anim .hx-title span, .js-anim .hx-kicker, .js-anim .hx-lead { transform: none; filter: none; transition: opacity 200ms ease; }
  .fx, .oc { translate: none; }
  .hx-ring::after { animation: none; display: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .gc, .oc { background: #041A3B; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .gc, .oc, .hx-phone-screen { border-color: #fff; box-shadow: none; }
  .hx-title .l2 { background: none; color: #7FC0FF; }
  .hx-lead, .gc-body small, .oc-body small, .hx-features small, .hx-kicker { color: #fff; }
  .hx-ring, .hx-ring::after { display: none; }
}

/* ================================================================
   Portal IES v2 — ajustes do pôster para foto em retrato
================================================================ */
body.v2 .hero { display: none; }
.hx { padding-top: 120px; }
.hx-stage { height: 760px; margin-top: -30px; }
.hx-person { left: 50%; top: auto; bottom: 30px; width: 460px; margin-left: -230px; z-index: 1; }
.hx-person img { border-radius: 0;
  -webkit-mask-image: radial-gradient(ellipse 60% 62% at 50% 40%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 60% 62% at 50% 40%, #000 62%, transparent 100%); -webkit-mask-composite: source-over; mask-composite: add; }
.hx-person-glow { inset: 6% -14% 10%; }
.hx-menu { left: 24px; top: 60px; }
.hx-place { right: 24px; top: 30px; }
.hx-date { right: 24px; top: 300px; width: 270px; }
.hx-orbit { top: auto; bottom: 150px; width: 820px; margin-left: -500px; height: 230px; }
.oc { width: 180px; }
.oc1 { left: 40px; top: 30px; } .oc2 { left: 310px; top: -10px; width: 196px; } .oc3 { right: 40px; top: 30px; }
.oc img { height: 120px; object-fit: cover; background: #041A3B; }
.oc img.contain { object-fit: contain; padding: 10px; }
.hx-place img { height: 110px; }
.hx-phone { right: 24px; bottom: -10px; width: 220px; }
.hx-phone-ring { width: 90px; height: 90px; display: grid; place-items: center; color: #4FD1C5; }
.hx-phone-ring svg { width: 36px; height: 36px; }
.hx-phone .btn { width: 100%; justify-content: center; }
.hx-cta .btn { padding: 14px 28px; }
@media (max-width: 1180px) {
  .hx-orbit { transform: scale(.8); transform-origin: 50% 100%; }
  .hx-person { width: 400px; margin-left: -200px; }
}
@media (max-width: 980px) {
  .hx { padding-top: 100px; }
  .hx-person { max-width: 340px; }
}
@media (max-width: 980px) {
  .hx-stage { height: auto; margin-top: 24px; }
  .hx-orbit { transform: none; height: auto; }
  .oc { width: auto !important; }
  .hx-person { width: auto !important; max-width: 340px; }
}
