.premium-carousel,
.home-carousel-track,
.home-slide,
.home-slide .home-hero-grid {
  min-height: 548px;
}

.premium-carousel {
  position: relative;
  overflow: hidden;
  border: 0;
  background: #f5ead7;
  color: #171312;
}

.home-carousel-track { position: relative; }

.home-slide {
  position: absolute;
  inset: 0;
  z-index: 1;
  visibility: hidden;
  overflow: hidden;
  opacity: 0;
  transform: translateX(18px);
  transition: opacity 560ms ease, transform 560ms ease, visibility 560ms;
  background:
    linear-gradient(102deg, rgba(255, 250, 238, 0.97) 0%, rgba(249, 235, 207, 0.9) 48%, rgba(239, 210, 166, 0.62) 100%),
    url("https://institutoshemitah.com.br/wp-content/uploads/2025/08/PROFETA-DO-SENHOR-DAS-ANTIGAS.jpg") center / cover;
}

.home-slide.is-active {
  z-index: 2;
  visibility: visible;
  opacity: 1;
  transform: translateX(0);
}

.home-slide .home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  align-items: center;
  gap: 58px;
  width: min(1500px, calc(100% - 64px));
}

.home-slide .home-copy {
  position: relative;
  z-index: 5;
  max-width: 860px;
  padding: 58px 0 76px;
}

.home-slide .eyebrow { color: #b85e1d; }

.home-slide .eyebrow {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #7e1730;
  box-shadow: 0 5px 16px rgba(56, 31, 14, 0.08);
}

.home-slide .home-copy h1 {
  max-width: 900px;
  margin: 18px 0 18px;
  color: #1d1520;
  font-size: clamp(58px, 5.25vw, 84px);
  font-weight: 700;
  line-height: 0.94;
  text-transform: uppercase;
}

.home-slide .home-copy p {
  max-width: 760px;
  margin: 0;
  color: #625a52;
  font-size: 17px;
  line-height: 1.7;
}

.home-slide-dark { color: #fff; }
.home-slide-dark .home-copy h1 { color: #fff; }
.home-slide-dark .home-copy p { color: #e7ded4; }
.home-slide-dark .eyebrow { background: rgba(255, 255, 255, 0.12); color: #f6c77f; }

.hero-video-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #070707;
}

.hero-video-layer video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.76;
}

.hero-video-layer::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(7, 7, 7, 0.96) 0%, rgba(7, 7, 7, 0.82) 43%, rgba(7, 7, 7, 0.24) 78%, rgba(7, 7, 7, 0.1) 100%);
}

.home-slide-video { background: #080808; }
.home-slide-video .home-copy { max-width: 830px; }

.hero-media {
  position: relative;
  align-self: stretch;
  min-height: 548px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: transparent;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: none;
  pointer-events: none;
}

.hero-media img {
  width: min(100%, 440px);
  height: 430px;
  object-fit: cover;
  object-position: center;
  border: 26px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  box-shadow: 0 22px 55px rgba(57, 33, 19, 0.2);
}

.hero-media.image-missing::before {
  position: absolute;
  inset: 12%;
  content: "Instituto DALC";
  display: grid;
  place-items: center;
  border: 1px solid #c99558;
  color: #171312;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
}

.hero-media-founder img {
  position: relative;
  top: auto;
  right: auto;
  width: min(100%, 440px);
  max-width: 440px;
  height: 430px;
  object-fit: cover;
  object-position: center 43%;
  background: rgba(71, 42, 30, 0.2);
}

.hero-media-founder::after {
  background: linear-gradient(90deg, #f6efe3 0%, rgba(246, 239, 227, 0.18) 40%, transparent 72%);
}

.hero-media-portrait img { object-position: center 20%; }

.hero-media .founder-signature {
  right: 22px;
  bottom: 48px;
  color: #fff;
  border-left-color: #e49a43;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}

.carousel-controls {
  position: absolute;
  right: 0;
  bottom: 13px;
  left: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: min(1500px, calc(100% - 64px));
  gap: 7px;
  pointer-events: none;
}

.carousel-arrow,
.carousel-dots button { pointer-events: auto; cursor: pointer; }

.carousel-arrow {
  display: none;
  padding: 0;
  place-items: center;
  border: 1px solid #cbbfb0;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.9);
  color: #171312;
  font-size: 23px;
  line-height: 1;
}

.carousel-arrow:hover,
.carousel-arrow:focus-visible {
  border-color: #df7b27;
  outline: none;
  background: #df7b27;
  color: #fff;
}

.carousel-dots { display: flex; align-items: center; gap: 2px; }

.carousel-dots button {
  position: relative;
  width: 26px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
}

.carousel-dots button::after {
  position: absolute;
  top: 15px;
  right: 5px;
  left: 5px;
  height: 3px;
  content: "";
  background: rgba(80, 58, 44, 0.28);
}

.carousel-dots button.is-active::after { background: #b21f3d; }

@media (max-width: 960px) {
  .premium-carousel,
  .home-carousel-track,
  .home-slide,
  .home-slide .home-hero-grid,
  .hero-media { min-height: 540px; }

  .home-slide .home-hero-grid { display: block; }
  .home-slide .home-copy { max-width: 660px; padding: 62px 0 84px; }
  .home-slide .home-copy h1 { font-size: 56px; }

  .hero-media {
    position: absolute;
    inset: 0;
    min-height: 540px;
    opacity: 0.32;
  }

  .hero-media::after { background: rgba(246, 239, 227, 0.72); }
  .hero-media img { width: 100%; height: 100%; border: 0; border-radius: 0; }
  .hero-media-founder img { max-width: none; }
  .hero-media .founder-signature { display: none; }
}

@media (max-width: 680px) {
  .premium-carousel,
  .home-carousel-track,
  .home-slide,
  .home-slide .home-hero-grid,
  .hero-media { min-height: 520px; }

  .home-slide .home-copy { padding: 40px 0 68px; }
  .home-slide .home-copy h1 {
    max-width: 100%;
    font-size: 36px;
    line-height: 1;
    overflow-wrap: anywhere;
  }
  .home-slide .home-copy p { font-size: 14px; line-height: 1.6; }

  .home-slide .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 22px;
  }

  .home-slide .hero-actions .btn { width: 100%; }
  .hero-video-layer video { object-position: 58% center; opacity: 0.54; }
  .hero-video-layer::after { background: rgba(5, 6, 8, 0.7); }
  .hero-media { opacity: 0.22; }
  .hero-media-founder img { width: 100%; }
  .carousel-controls { bottom: 8px; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .home-slide { transform: none; transition: none; }
}
