/* RedLAco Core — home slider ([redlaco_slider], inc/slider.php).

   Text on the left, the image on the right as a 16:9 card. The image always
   fits the card's height, centered: wider images lose their sides, narrower
   ones (square flyers) show whole over a blurred copy of themselves. The band uses the
   footer's red gradient (development/code/footer/footer.html) with a node
   network on top (assets/redlaco-network.svg).

   Slides share one grid cell, so the band is as tall as its tallest slide
   (no fixed height to guess). Autoplay = the active dot's fill animation:
   when it ends the JS moves on, so pausing is just animation-play-state. */

body { overflow-x: clip; }
/* Like the page header: the block spans the whole screen whatever the Elementor
   container (boxed or full width); its content is centred at 1320px inside. */
.rl-slider { position: relative; width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.rl-slider {
  --rl-red: #a3191c;
  --rl-red-bright: #d0262a;
  --rl-ink: #0f1c3f;
  --rl-ease: cubic-bezier(.22, .61, .36, 1);
  --rl-dur: 7s;
  --rl-gutter: 32px;

  position: relative;
  isolation: isolate;
  overflow: hidden;
  /* Same red as the footer */
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(255, 80, 80, .35) 0%, rgba(255, 80, 80, 0) 60%),
    radial-gradient(50% 70% at 0% 100%, rgba(40, 0, 6, .45) 0%, rgba(40, 0, 6, 0) 70%),
    linear-gradient(135deg, #c8141c 0%, #a3191c 45%, #7a1214 100%);
  color: #fff;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  /* Fixed here so the theme's body weight/tracking never leaks in */
  font-weight: 400;
  letter-spacing: normal;
  outline: none;
  touch-action: pan-y;
}
.rl-slider *, .rl-slider *::before, .rl-slider *::after { box-sizing: border-box; }
/* :where() keeps the reset at one class, so the component rules below win by order */
.rl-slider :where(p, h1, h2) { margin: 0; font-family: inherit; }
.rl-slider a { text-decoration: none; box-shadow: none; -webkit-tap-highlight-color: transparent; }
.rl-slider button {
  appearance: none; background: none; border: 0; border-radius: 0; margin: 0; padding: 0;
  font: inherit; color: inherit; cursor: pointer; box-shadow: none; text-transform: none; min-height: 0;
  -webkit-tap-highlight-color: transparent;
}
.rl-slider a:focus-visible, .rl-slider button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* Node network (assets/redlaco-network.svg), stronger on the image side and
   fading out behind the text so it never fights with it */
.rl-slider::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url("redlaco-network.svg") right center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .25) 0%, rgba(0, 0, 0, .5) 35%, #000 70%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, .25) 0%, rgba(0, 0, 0, .5) 35%, #000 70%);
  animation: rl-slider-drift 40s ease-in-out infinite alternate;
}
@keyframes rl-slider-drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.04) translate3d(-1.5%, 1%, 0); }
}

/* Slides: all in the same grid cell */
.rl-slider__track { display: grid; }
.rl-slider__slide {
  grid-area: 1 / 1;
  position: relative;
  opacity: 0;
  visibility: hidden;
  transition: opacity .9s var(--rl-ease), visibility 0s linear .9s;
}
.rl-slider__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
  transition: opacity .9s var(--rl-ease);
}

.rl-slider__layout {
  position: relative;
  z-index: 2;
  max-width: 1320px;
  margin: 0 auto;
  padding: 48px var(--rl-gutter) 48px;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: 64px;
}
.rl-slider__slide--no-image .rl-slider__layout { grid-template-columns: minmax(0, 1fr); }

/* Text */
.rl-slider__copy { padding-bottom: 56px; /* room for the controls */ }
.rl-slider .rl-slider__kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .85);
}
.rl-slider .rl-slider__kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .7);
}
.rl-slider .rl-slider__title {
  font-size: clamp(30px, 3.4vw, 48px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.03em;
  color: #fff;
  text-wrap: balance;
}
.rl-slider .rl-slider__text {
  margin-top: 16px;
  max-width: 520px;
  font-size: 16.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .78);
  text-wrap: pretty;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rl-slider__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.rl-slider .rl-slider__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1;
  white-space: nowrap;
  transition: transform .3s var(--rl-ease), box-shadow .3s var(--rl-ease), background-color .25s var(--rl-ease), border-color .25s var(--rl-ease);
}
.rl-slider .rl-slider__btn:hover { transform: translateY(-2px); }
.rl-slider .rl-slider__btn svg { width: 16px; height: 16px; transition: transform .3s var(--rl-ease); }
.rl-slider .rl-slider__btn:hover svg { transform: translateX(4px); }
.rl-slider .rl-slider__btn--primary,
.rl-slider .rl-slider__btn--primary:visited,
.rl-slider .rl-slider__btn--primary:hover {
  background: #fff;
  color: var(--rl-red);
  box-shadow: 0 10px 28px -12px rgba(40, 0, 6, .6);
}
.rl-slider .rl-slider__btn--primary:hover { box-shadow: 0 16px 32px -12px rgba(40, 0, 6, .7); }
.rl-slider .rl-slider__btn--ghost,
.rl-slider .rl-slider__btn--ghost:visited,
.rl-slider .rl-slider__btn--ghost:hover {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .06);
}
.rl-slider .rl-slider__btn--ghost:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .7); }

/* Image card */
.rl-slider__card {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, .06);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .1);
}
.rl-slider .rl-slider__blur {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  max-width: none;
  object-fit: cover;
  filter: blur(28px) brightness(.9);
}
.rl-slider__media { position: absolute; inset: 0; display: block; }
/* Full height, natural width, centered; the card's overflow crops the sides */
.rl-slider .rl-slider__img {
  position: absolute;
  top: 0;
  left: 50%;
  display: block;
  width: auto;
  height: 100%;
  max-width: none;
  max-height: none;
  transform: translateX(-50%);
  box-shadow: 0 0 40px rgba(0, 0, 0, .25);
}

/* Entrance: text staggers up, card slides in from the right */
.rl-slider__copy > *,
.rl-slider__card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .35s ease, transform .35s ease;
}
.rl-slider__card { transform: translateX(32px) scale(.97); }
.rl-slider__slide.is-active .rl-slider__copy > *,
.rl-slider__slide.is-active .rl-slider__card {
  opacity: 1;
  transform: none;
  transition: opacity .8s ease, transform .9s var(--rl-ease);
}
.rl-slider__slide.is-active .rl-slider__card { transition-delay: .1s; }
.rl-slider__slide.is-active .rl-slider__copy > :nth-child(1) { transition-delay: .2s; }
.rl-slider__slide.is-active .rl-slider__copy > :nth-child(2) { transition-delay: .3s; }
.rl-slider__slide.is-active .rl-slider__copy > :nth-child(3) { transition-delay: .4s; }
.rl-slider__slide.is-active .rl-slider__copy > :nth-child(4) { transition-delay: .5s; }

/* Controls: bottom of the text column */
.rl-slider__controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  pointer-events: none;
}
.rl-slider__bar {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--rl-gutter) 48px;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
}
.rl-slider__bar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  pointer-events: auto;
}

.rl-slider__dots { display: flex; align-items: center; gap: 8px; }
.rl-slider .rl-slider__dot {
  position: relative;
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  min-width: 0;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .3);
  overflow: hidden;
  transition: width .6s var(--rl-ease), background-color .3s ease;
}
.rl-slider .rl-slider__dot::after { content: ""; position: absolute; inset: -10px -4px; }
.rl-slider .rl-slider__dot:hover { background: rgba(255, 255, 255, .55); }
.rl-slider .rl-slider__dot.is-active { width: 44px; background: rgba(255, 255, 255, .22); }
.rl-slider__fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left center;
}
.rl-slider__dot.is-active .rl-slider__fill { transform: scaleX(1); transition: transform .6s var(--rl-ease); }
.rl-slider.is-autoplay .rl-slider__dot.is-active .rl-slider__fill {
  transition: none;
  animation: rl-slider-fill var(--rl-dur) linear forwards;
}
.rl-slider.is-paused .rl-slider__dot.is-active .rl-slider__fill { animation-play-state: paused; }
@keyframes rl-slider-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.rl-slider__nav { display: flex; align-items: center; gap: 8px; }
.rl-slider__count {
  margin-right: 8px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, .55);
}
.rl-slider__count b { font-weight: 700; color: #fff; }

/* Round buttons. Elementor's kit styles every <button> (padding, min-width,
   borders), so size and shape are locked here. */
.rl-slider .rl-slider__nav .rl-slider__arrow {
  display: inline-grid !important;
  place-items: center;
  flex: 0 0 40px !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  min-height: 40px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  border: 1px solid rgba(255, 255, 255, .28) !important;
  background: transparent !important;
  color: #fff !important;
  line-height: 0;
  aspect-ratio: 1;
  transition: background-color .25s var(--rl-ease), border-color .25s var(--rl-ease), color .25s var(--rl-ease);
}
.rl-slider .rl-slider__nav .rl-slider__arrow:hover {
  background: #fff !important;
  border-color: #fff !important;
  color: var(--rl-ink) !important;
}
.rl-slider__arrow svg { width: 16px; height: 16px; flex: none; transition: transform .3s var(--rl-ease); }
.rl-slider__arrow--prev:hover svg { transform: translateX(-2px); }
.rl-slider__arrow--next:hover svg { transform: translateX(2px); }
.rl-slider .rl-slider__pause svg { width: 12px; height: 12px; }
.rl-slider__i-play { display: none; }
.rl-slider.is-stopped .rl-slider__i-play { display: block; }
.rl-slider.is-stopped .rl-slider__i-pause { display: none; }

/* Tablet */
@media (max-width: 1024px) {
  .rl-slider { --rl-gutter: 24px; }
  .rl-slider__layout, .rl-slider__bar { gap: 40px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* Mobile: card on top, text below, controls at the bottom */
@media (max-width: 767px) {
  .rl-slider { --rl-gutter: 20px; }
  .rl-slider__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 20px var(--rl-gutter) 0;
  }
  .rl-slider__card { order: -1; border-radius: 16px; }
  .rl-slider__copy { padding-bottom: 92px; }
  .rl-slider .rl-slider__title { font-size: 28px; }
  .rl-slider .rl-slider__text { font-size: 15.5px; -webkit-line-clamp: 3; }
  .rl-slider__actions { margin-top: 22px; gap: 10px; }
  .rl-slider .rl-slider__btn { height: 46px; padding: 0 20px; font-size: 14.5px; }
  .rl-slider__bar { display: block; padding-bottom: 28px; }
  .rl-slider__bar > :empty { display: none; }
  .rl-slider__count { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .rl-slider::before { animation: none; }
  .rl-slider__copy > *, .rl-slider__card,
  .rl-slider__slide.is-active .rl-slider__copy > *,
  .rl-slider__slide.is-active .rl-slider__card { opacity: 1; transform: none; transition: none; }
  .rl-slider__slide { transition: opacity .3s linear, visibility 0s linear .3s; }
}
