/* ============ SK02 - ESTILOS GERAIS ============ */

.SK02 {
	--background-palette-primary: #0A2EE2;
	--background-palette-tertiary: #0A2EE2;
}
.SK02 h1, .SK02 h2, .SK02 h3, .SK02 h4, .SK02 h5, .SK02 h6 {
	font-family: 'Space Grotesk';
}
.SK02 p {
	font-family: 'Inter';
}

/* ============ SK02 - HEADER ============ */
/* Ajustes gerais */
.SK02-header-menu .breakdance-menu-list {
  position: relative !important;
  width: 752px !important;
  margin-top: 24px;
  left: 0 !important;
  margin-left: -728px;
  transition: all 0.3s ease-in-out;
  max-height: 328px !important;
  overflow-y: scroll !important;
}
.SK02-header-menu .breakdance-menu {
  display: flex;
  flex-direction: column;
}
.SK02-header-menu .breakdance-menu .breakdance-menu-list>:last-child {
  border-bottom: none !important;
}
.SK02-header-menu .breakdance-menu-toggle {
  transition-delay: 0.3s;
}

/* Transições open close */
.SK02-header {
  overflow: hidden;
  min-width: 400px;
  transition: all 0.3s ease-in-out;
}
.SK02-header.is-open {
  min-width: 800px;
  background-color: var(--background-palette-primary);
  height: 400px;
  transition: all 0.3s ease-in-out;
}

.SK02-header-menu {
  height: 40px;
  transition: all 0.3s ease-in-out
}
.SK02-header.is-open .SK02-header-menu {
  height: auto;
  transition: all 0.3s ease-in-out
}

.SK02-header.is-open .SK02-header-button button {
  background-color: var(--background-neutral-primary);
  color: var(--text-primary);
  transition: all 0.3s ease-in-out;
}

.SK02-header.is-open .SK02-header-logo {
  background-color: var(--background-neutral-primary);
  transition: all 0.3s ease-in-out;
}

/* Transição scroll */
.SK02-header-container.header-scrolled .SK02-header {
	min-width: 800px;
}


/* ============ SK02 - S1 ============ */
/* SLIDE TEXTO VERTICAL */

.rotate-vertical-lr {
  writing-mode: sideways-lr;
}
.SK02-s1-loop .bde-loop-item {
  width: auto !important;
}
.SK02-s1-loop .swiper-slide-active .SK02-s1-card-img {
  display: block;
}
.SK02-s1-loop .swiper {
  overflow: visible;
  width: 1px;
  margin: 0;
}

.SK02-s1-scroll {
    position: relative;
    height: 250vh;
}
.SK02-s1 {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
}

/* ============ SK02 - S2 ============ */
/* SLIDE EM ELIPSE */

/* Área total de scroll */
.SK02-orbit-section {
    position: relative;
    /* O JS vai substituir este valor automaticamente conforme o nº de cards */
    height: 400vh;
}


/* Elemento que fica preso ao viewport */
.SK02-orbit {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    perspective: 1200px;
    perspective-origin: 50% 50%;
    overflow: hidden;
}


/* Área das cards */
.SK02-orbit-track {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    user-select: none;
}


/* Cards */
.SK02-orbit-card {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(460px, 75vw);
    transform-origin: center center;
    transform-style: preserve-3d;
    will-change:
        transform,
        filter,
        opacity;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}


/* Não usamos transition durante o scroll, porque a própria posição do scroll já gera movimento contínuo */
.SK02-orbit-card {
    transition: none;
}

.SK02-orbit-card.is-active .SK02-orbit-card-hide {
  opacity: 1;
  transition: all 0.6s ease-in-out;
}

/* Para usar com pattern */
.pattern .SK02-orbit-section .wp-block-group__inner-container, .pattern .SK02-orbit-section .wp-block-cover__inner-container {
    height: 100%;
    transform-style: preserve-3d;
}
.pattern .SK02-orbit-card {
	display: block;
	padding: 0;
	border: none;
}
.pattern .SK02-orbit-card .wp-block-group__inner-container {
	display: flex;
    flex-flow: column;
    justify-content: space-between;
    align-items: start;
    min-height: 400px;
    margin: 0;
    padding: 24px;
    border: 0.5px solid #FFF6;
}


/* ============ SK02 - S3 ============ */
/* SOURCE IMAGES: As imagens dentro dos cards continuam no HTML e servem apenas como fonte para o follower. */
.SK02-s3-card-img {
    pointer-events: none;
}

/* GLOBAL FOLLOWER */
.sk02-follower {
    position: fixed;
    left: 0;
    top: 0;
	width: 320px;
    height: 240px;
    pointer-events: none;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transform: translate3d(-50%, -50%, 0);
    transition: opacity 0.2s ease, visibility 0.2s ease;
    will-change: left, top, opacity;
}


/* Follower visível */
.sk02-follower.is-visible {
    opacity: 1;
    visibility: visible;
}

/* VIEWPORT: É aqui que acontece o "corte" vertical das imagens. */
.sk02-follower__viewport {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}


/* IMAGENS DO FOLLOWER */

.sk02-follower__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    will-change: transform;
}

