/* Carrusel a pantalla completa de Corporatiu. Tokens de :root / launch.css. */

/* Andbank GSeries: el vídeo queda de fons i el text del campionat es llegeix a sobre. */
#gseries [style*="opacity"] {
  opacity: 1 !important;
  transform: none !important;
}

#gseries.band-white,
#gseries.band-black {
  color: #fff !important;
}

#gseries.band-white h2,
#gseries.band-black h2,
#gseries.band-white [class*="text-white"],
#gseries.band-black [class*="text-white"] {
  color: #fff !important;
}

#gseries [class*="text-white/"] {
  color: rgb(255 255 255 / 0.82) !important;
}

#gseries .relative.mx-auto > div {
  position: relative;
  z-index: 1;
  max-width: 54rem;
  padding: 1.35rem 1.5rem 1.15rem;
}

#gseries .relative.mx-auto > div::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -0.4rem -1rem;
  background: linear-gradient(90deg, rgb(5 5 5 / 0.78), rgb(5 5 5 / 0.66) 72%, rgb(5 5 5 / 0.18));
  pointer-events: none;
}

#gseries {
  height: calc(100dvh - var(--header-h, 7.65rem));
  min-height: calc(100dvh - var(--header-h, 7.65rem));
  max-height: calc(100dvh - var(--header-h, 7.65rem));
  padding: 0 !important;
}

@media (max-width: 800px) {
  #gseries,
  #gseries.band-white,
  #gseries.band-black {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  #gseries .relative.mx-auto > div {
    padding: 1.1rem 0.2rem 1.2rem;
  }
}

#gseries video {
  filter: none !important;
  opacity: 1 !important;
}
/* Els quatre quadres (incentius, presentacions, rodatges, hospitality) fora. */
.corp-stage [class*="lg:grid-cols-4"] {
  display: none !important;
}

.corp-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  height: calc(100dvh - var(--header-h, 7.65rem));
  min-height: calc(100dvh - var(--header-h, 7.65rem));
  max-height: calc(100dvh - var(--header-h, 7.65rem));
  padding: 0 !important;
  color: var(--fg);
  background: var(--bg);
}

.corp-frame {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.corp-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s var(--ease-motor, ease);
}

.corp-slide.is-on {
  opacity: 1;
  z-index: 1;
}

.corp-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.14);
  filter: saturate(1.02) brightness(0.9);
  transition: transform 6.8s linear, filter 0.9s var(--ease-motor, ease);
}

.corp-slide.is-on img {
  transform: scale(1);
  filter: saturate(1.08) contrast(1.05) brightness(1);
}

.corp-shade,
.corp-grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.corp-shade {
  display: none;
}

.corp-grain {
  opacity: 0.18;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.55'/></svg>");
}

.corp-glow {
  position: absolute;
  left: 18%;
  bottom: 8%;
  z-index: 2;
  width: min(520px, 46vw);
  height: 42%;
  pointer-events: none;
  background: radial-gradient(ellipse at center, var(--glow), transparent 70%);
  filter: blur(8px);
}

.corp-stage > .mx-auto {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: min(1240px, calc(100% - 7vw));
  max-width: none;
  height: 100%;
  margin: 0 auto;
  padding-top: 1.35rem;
  padding-bottom: 1.15rem;
}

.corp-stage h2,
.corp-stage.band-white h2,
.corp-stage.band-black h2 {
  margin-top: 0.35rem;
  max-width: 16ch;
  font-size: clamp(2.15rem, 4.2vw, 3.7rem) !important;
  color: #fff !important;
  text-shadow: none;
}

.corp-stage .corp-sub,
.corp-stage.band-white .corp-sub {
  margin: 0.7rem 0 0;
  max-width: 28rem;
  color: #fff !important;
  font-family: var(--font-body), Barlow, sans-serif;
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.corp-stage .corp-lead,
.corp-stage.band-white .corp-lead {
  max-width: 34rem !important;
  margin: 0.75rem 0 0 !important;
  color: rgb(255 255 255 / 0.82) !important;
  font-size: 0.98rem !important;
  line-height: 1.55 !important;
}

.corp-points {
  margin: 1.15rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.42rem;
}

.corp-stage .corp-points li,
.corp-stage.band-white .corp-points li {
  position: relative;
  padding-left: 0.95rem;
  color: #fff !important;
  font-family: var(--font-body), Barlow, sans-serif;
  font-size: 0.95rem;
  line-height: 1.35;
}

.corp-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.42rem;
  height: 1px;
  background: var(--accent);
}

.corp-stage .corp-legacy {
  display: none !important;
}

.corp-stage .mt-10,
.corp-stage .md\:mt-14 {
  margin-top: 0;
}

.corp-kicker {
  margin: 0 0 0.45rem;
  color: var(--accent);
  font-family: var(--font-body), Barlow, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.corp-stage .grid > div > div {
  background: color-mix(in srgb, var(--bg) 55%, transparent) !important;
  border-color: color-mix(in srgb, var(--accent) 42%, transparent) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px rgb(0 0 0 / 0.28);
}

.corp-ui {
  position: absolute;
  right: max(1rem, 3vw);
  bottom: 1.15rem;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.corp-index,
.corp-cap {
  margin: 0;
  font-family: var(--font-display), Impact, sans-serif;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.corp-index {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 0.85;
  color: color-mix(in srgb, var(--fg) 78%, transparent);
}

.corp-cap {
  font-family: var(--font-body), Barlow, sans-serif;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--accent);
}

.corp-nav {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 62%, transparent);
  color: var(--fg);
  cursor: pointer;
}

.corp-nav svg {
  width: 0.9rem;
  height: 0.9rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.corp-nav:hover {
  color: var(--fg);
  border-color: var(--accent);
}

.corp-nav:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}

.corp-bar {
  position: absolute;
  right: 8vw;
  bottom: 0;
  left: 8vw;
  z-index: 4;
  height: 2px;
  background: color-mix(in srgb, var(--fg) 16%, transparent);
}

.corp-bar > span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
}

@media (max-width: 800px) {
  .corp-stage {
    height: auto;
    max-height: none;
    min-height: 100dvh;
    display: block;
  }

  .corp-frame {
    position: absolute;
    height: auto;
  }

  .corp-stage > .mx-auto {
    height: auto;
    min-height: 100dvh;
    width: min(100% - 1.5rem, 1240px);
    padding-top: 1.25rem;
    padding-bottom: 4.5rem;
  }

  .corp-ui {
    right: 0.8rem;
    bottom: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .corp-slide,
  .corp-slide img,
  .corp-bar > span {
    transition: none !important;
  }

  .corp-slide img,
  .corp-slide.is-on img {
    transform: none;
    filter: none;
  }
}
