/* Federal főoldal hero slider – a Foldal-slider helyett (látható réteg) */

/*
 * A Foldal SR7 a DOM-ban marad (init / nyilak a többi modulhoz),
 * de a stack alatt, nem látszik és nem foglal extra helyet.
 */
.ft-hero-stack {
  position: relative;
  isolation: isolate;
  border-radius: 20px;
  overflow: hidden;
}

.ft-hero-stack .ft-hero-sr7-under {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  /* Ne visibility:hidden – a gyerek visibility:visible áttörné; az opacity+clip elég. */
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
  clip-path: inset(100%) !important;
}

.ft-hero-stack .ft-hero {
  position: relative;
  z-index: 2;
}

/* A Foldal prepareModuleHeight ne nyújtsa a wrappert a saját hero fölé. */
.slider_column .ft-hero-stack,
.slider_column .ft-hero-stack .ft-hero-sr7-under,
.slider_column .ft-hero-stack .ft-hero-sr7-under sr7-module,
.slider_column .ft-hero-stack .ft-hero-sr7-under SR7-MODULE {
  max-height: 100% !important;
}

.slider_column .ft-hero-stack .ft-hero-sr7-under sr7-module,
.slider_column .ft-hero-stack .ft-hero-sr7-under SR7-MODULE,
.slider_column .ft-hero-stack .ft-hero-sr7-under sr7-adjuster,
.slider_column .ft-hero-stack .ft-hero-sr7-under sr7-content {
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
}

/* A BeTheme / custom Foldal magasság-szabályok ne hagyjanak üres sávot. */
.slider_column .mfn-main-slider:has(.ft-hero),
.slider_column .mfn-rev-slider:has(.ft-hero),
.column_slider_plugin .mfn-main-slider:has(.ft-hero),
.column_slider_plugin .mfn-rev-slider:has(.ft-hero),
.slider_column > .mcb-column-inner:has(.ft-hero) {
  border-radius: 20px;
  overflow: hidden !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
}

.slider_column .ft-hero-wrap,
.column_slider_plugin .ft-hero-wrap {
  border-radius: 20px;
  overflow: hidden;
}

.ft-hero {
  --ft-hero-overlay: rgba(54, 18, 37, 0.7);
  --ft-hero-accent: #eb268f;
  --ft-hero-accent-hover: #d11f7d;
  /* Illeszkedik a meglévő Foldal clamp-hez (custom CSS). */
  --ft-hero-min-h: clamp(400px, 34vw, 580px);

  position: relative;
  isolation: isolate;
  width: 100%;
  height: var(--ft-hero-min-h) !important;
  min-height: var(--ft-hero-min-h) !important;
  max-height: var(--ft-hero-min-h) !important;
  color: #fff;
  background: #361225;
}

.ft-hero__viewport {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ft-hero__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.ft-hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.ft-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.ft-hero__media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.ft-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.ft-hero__media--left img {
  object-position: left center;
}

.ft-hero__media--right img {
  object-position: right center;
}

.ft-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--ft-hero-overlay);
  pointer-events: none;
}

.ft-hero__content {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px) clamp(20px, 4vw, 48px);
  text-align: center;
}

.ft-hero__title {
  margin: 0 0 0.45em;
  color: #fff;
  font-size: clamp(1.35rem, 2.4vw, 2.35rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.ft-hero__subtitle {
  margin: 0 auto 1.35em;
  max-width: 38em;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(0.95rem, 1.35vw, 1.15rem);
  line-height: 1.45;
}

.ft-hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7em 1.6em;
  border: 0;
  border-radius: 999px;
  background: var(--ft-hero-accent);
  color: #fff !important;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  transition: background 0.2s ease, transform 0.2s ease;
}

.ft-hero__button:hover,
.ft-hero__button:focus {
  background: var(--ft-hero-accent-hover);
  color: #fff !important;
  transform: translateY(-1px);
}

.ft-hero__button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.ft-hero__nav {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.ft-hero__arrow {
  position: absolute;
  top: 50%;
  left: auto;
  right: auto;
  transform: translateY(-50%);
  pointer-events: auto;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  line-height: 0;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.2s ease;
}

.ft-hero__arrow:hover,
.ft-hero__arrow:focus-visible {
  background: rgba(255, 255, 255, 0.28);
}

.ft-hero__chevron {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.ft-hero__arrow--prev {
  left: 12px;
}

.ft-hero__arrow--next {
  right: 12px;
}

.ft-hero__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
}

.ft-hero__dot {
  pointer-events: auto;
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ft-hero__dot.is-active {
  background: #fff;
  transform: scale(1.15);
}

.ft-hero__dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media only screen and (max-width: 959px) {
  .ft-hero {
    --ft-hero-min-h: clamp(320px, 48vw, 400px);
  }

  .ft-hero__arrow {
    width: 38px;
    height: 38px;
  }

  .ft-hero__chevron {
    width: 16px;
    height: 16px;
  }
}

@media only screen and (max-width: 767px) {
  .ft-hero {
    --ft-hero-min-h: clamp(240px, 62vw, 300px);
  }

  .ft-hero__content {
    padding: 28px 16px 40px;
  }

  .ft-hero__title {
    font-size: clamp(1.15rem, 5vw, 1.55rem);
  }

  .ft-hero__subtitle {
    font-size: 0.92rem;
    margin-bottom: 1em;
  }

  .ft-hero__button {
    min-height: 44px;
    font-size: 0.95rem;
  }

  .ft-hero__arrow {
    display: none;
  }

  .ft-hero__dots {
    bottom: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ft-hero__slide {
    transition: none;
  }
}
