/* APEnP · animações do site */

/* abertura */
.js-hero { position: relative; overflow: hidden; isolation: isolate; }
.js-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: inherit; background-position: center;
  translate: 0 var(--hy, 0px); scale: 1.16;
  animation: apenp-kb 16s cubic-bezier(.16, .6, .25, 1) forwards;
  will-change: scale, translate;
}
@keyframes apenp-kb { to { scale: 1.07; } }
.js-hero h1 .apw { display: inline-block; opacity: 0; transform: translateY(.55em); animation: apenp-w .9s cubic-bezier(.2, .7, .2, 1) forwards; }
@keyframes apenp-w { to { opacity: 1; transform: none; } }

/* linha do tempo */
.js-timeline { position: relative; padding-left: 3rem !important; border: 0 !important; }
.js-timeline::before, .js-timeline::after {
  content: ""; position: absolute; left: .6rem; top: 2.2rem; bottom: 2.2rem; width: 3px; border-radius: 3px;
}
.js-timeline::before { background: var(--line, #dde6eb); }
.js-timeline::after { background: linear-gradient(180deg, var(--sky, #3E93BE), var(--brand, #0671A5)); transform-origin: top; transform: scaleY(var(--p, 0)); }
.js-timeline > * { position: relative; border-top: 0 !important; opacity: .28; transform: translateX(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js-timeline > *::after {
  content: ""; position: absolute; left: calc(-3rem + .6rem + 1.5px - 9px); top: 2.45rem; width: 18px; height: 18px; border-radius: 50%;
  background: var(--white, #fff); border: 3px solid var(--line, #dde6eb); box-sizing: border-box;
  transition: background .5s, border-color .5s, box-shadow .5s, transform .5s;
}
.js-timeline > .on { opacity: 1; transform: none; }
.js-timeline > .on::after { background: var(--brand, #0671A5); border-color: var(--brand, #0671A5); box-shadow: 0 0 0 7px rgba(6, 113, 165, .14); transform: scale(1.1); }
@media (max-width: 767px) {
  .js-timeline { padding-left: 2.5rem !important; }
  .js-timeline::before, .js-timeline::after { left: .6rem; top: 1.9rem; }
  .js-timeline > *::after { left: calc(-2.5rem + .6rem + 1.5px - 8px); top: 1.85rem; width: 16px; height: 16px; }
}

/* mapa */
.js-map { position: relative; }
.js-map svg { display: block; width: 100%; height: auto; overflow: visible; }
.apm-land { fill: #D9E9F1; stroke: #A7C7D7; stroke-width: .8; stroke-linejoin: round; }
.apm-box { fill: rgba(255, 255, 255, .55); stroke: #C3D6E0; stroke-dasharray: 3 4; }
.apm-lbl { font: 700 8.5px var(--font-body, sans-serif); fill: #6B8796; letter-spacing: .12em; text-transform: uppercase; }
.apm-pt { cursor: pointer; outline: none; opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(0);
  transition: opacity .45s ease, transform .6s cubic-bezier(.3, 1.7, .5, 1); }
.apm-pt.on { opacity: 1; transform: scale(1); }
.apm-pt .c { fill: var(--rc); stroke: #fff; stroke-width: 1.5; transition: r .25s; }
.apm-pt .p { fill: var(--rc); opacity: 0; transform-box: fill-box; transform-origin: center; animation: apm-pulse 6s ease-out infinite; }
.apm-pt .hit { fill: transparent; }
.apm-pt .p { pointer-events: none; }
.apm-pt:hover .c, .apm-pt.hot .c, .apm-pt:focus-visible .c { r: 7; }
.apm-pt.dim { opacity: .14; }
.apm-pt.on.dim { transform: scale(.8); }
@keyframes apm-pulse { 0% { transform: scale(1); opacity: .5; } 28% { transform: scale(3.4); opacity: 0; } 100% { opacity: 0; } }
.apm-tip {
  position: absolute; z-index: 5; pointer-events: none; width: 230px; background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 20px 45px rgba(14, 36, 51, .2); opacity: 0;
  transform: translate(-50%, calc(-100% - 10px)) scale(.94); transform-origin: bottom center;
  transition: opacity .2s ease, transform .25s cubic-bezier(.2, .8, .2, 1);
}
.apm-tip.below { transform: translate(-50%, 24px) scale(.94); transform-origin: top center; }
.apm-tip.show { opacity: 1; transform: translate(-50%, calc(-100% - 16px)) scale(1); }
.apm-tip.below.show { transform: translate(-50%, 18px) scale(1); }
.apm-tip img { display: block; width: 100%; height: 118px; object-fit: cover; }
.apm-tip b { display: block; padding: .75rem .95rem .2rem; font: 700 .88rem/1.3 var(--font-body, sans-serif); color: var(--ink, #0E2433); }
.apm-tip span { display: block; padding: 0 .95rem .85rem; font: 700 .72rem/1.3 var(--font-body, sans-serif); letter-spacing: .08em; text-transform: uppercase; color: var(--rc); }

/* cartões de região ligados ao mapa */
.js-reg { box-shadow: inset 4px 0 0 var(--rc, transparent); transition: transform .3s, box-shadow .3s, background-color .3s; }
.js-reg > :first-child { color: var(--rc) !important; }
.js-reg.is-on { transform: translateY(-3px); box-shadow: inset 4px 0 0 var(--rc), 0 18px 40px rgba(14, 36, 51, .1); }

@media (prefers-reduced-motion: reduce) {
  .js-hero::before { animation: none; scale: 1; translate: none; }
  .js-hero h1 .apw { animation: none; opacity: 1; transform: none; }
  .js-timeline > * { opacity: 1; transform: none; transition: none; }
  .js-timeline::after { transform: none; }
  .apm-pt, .apm-pt.on { transition: none; opacity: 1; transform: none; }
  .apm-pt .p { animation: none; }
}
