/* ===== ESTRUTURA FÍSICA ===== */

.ef-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---- Reveal ---- */
.ef-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.ef-reveal.ef-visible { opacity: 1; transform: translateY(0); }

/* ---- Shared ---- */
.ef-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 12px;
  padding-left: 18px;
  position: relative;
}
.ef-eyebrow::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 10px; height: 2px;
  background: var(--color-secondary);
  border-radius: 2px;
}

.ef-section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.ef-accent { color: var(--color-secondary); }

/* ===== HERO ===== */
.ef-hero {
  position: relative;
  height: clamp(300px, 45vh, 460px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ef-hero-bg {
  position: absolute;
  inset: -5%;
  width: 110%; height: 110%;
  background-image: url('/assets/images/estrutura/quadra.png');
  background-size: cover;
  background-position: center;
  background-color: var(--color-primary);
  transform: scale(1.08) translate(0px, 0px);
  will-change: transform;
}

.ef-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,8,0,0.85) 0%, rgba(180,70,0,0.45) 100%);
  z-index: 1;
}

.ef-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 760px;
}

.ef-hero-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 14px;
  animation: ef-fade-up 0.7s cubic-bezier(0.22,1,0.36,1) 0.1s both;
}

.ef-hero-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  animation: ef-fade-up 0.7s cubic-bezier(0.22,1,0.36,1) 0.25s both;
}
.ef-hero-accent { color: var(--color-secondary); }

.ef-hero-sub {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: rgba(255,255,255,0.82);
  line-height: 1.65;
  animation: ef-fade-up 0.7s cubic-bezier(0.22,1,0.36,1) 0.4s both;
}

.ef-hero-line {
  width: 48px; height: 3px;
  background: var(--color-secondary);
  border-radius: 2px;
  margin: 20px auto 0;
  animation: ef-line-expand 0.6s cubic-bezier(0.22,1,0.36,1) 0.55s both;
}

.ef-hero-wave {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  z-index: 3;
  line-height: 0;
}
.ef-hero-wave svg { width: 100%; height: 60px; display: block; }

@keyframes ef-fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes ef-line-expand {
  from { width: 0; opacity: 0; }
  to   { width: 48px; opacity: 1; }
}

/* ===== INTRO ===== */
.ef-intro {
  padding: 48px 0 40px;
  background: #ffffff;
}

.ef-intro-inner {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.ef-intro-text {
  margin-top: 16px;
  font-size: 1.05rem;
  color: #6b7280;
  line-height: 1.8;
}

/* ===== CARROSSEL ===== */
.ef-carousel-section {
  background: var(--color-gray-lighter);
  padding: 40px 0 64px;
}

.ef-carousel-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  align-items: start;
}

/* --- Stage (imagem principal) --- */
.ef-carousel-stage {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #1a1a2e;
  box-shadow: 0 24px 64px rgba(0,0,0,0.18);
}

.ef-carousel-slides {
  position: relative;
  width: 100%; height: 100%;
}

.ef-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.42s ease, transform 0.42s cubic-bezier(0.22,1,0.36,1);
  transform: translateX(0);
}
.ef-slide--active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) !important;
}
.ef-slide--enter-right {
  opacity: 0;
  transform: translateX(60px);
  animation: ef-enter-right 0.42s cubic-bezier(0.22,1,0.36,1) forwards;
}
.ef-slide--enter-left {
  opacity: 0;
  transform: translateX(-60px);
  animation: ef-enter-left 0.42s cubic-bezier(0.22,1,0.36,1) forwards;
}
.ef-slide--out-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.ef-slide--out-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

@keyframes ef-enter-right {
  from { opacity: 0; transform: translateX(60px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes ef-enter-left {
  from { opacity: 0; transform: translateX(-60px); }
  to   { opacity: 1; transform: translateX(0); }
}

.ef-slide-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* Placeholder quando imagem não carrega */
.ef-slide-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e5e7eb;
  color: #9ca3af;
  z-index: -1;
}
.ef-slide-placeholder svg { width: 56px; height: 56px; opacity: 0.4; }
.ef-slide-img[src] ~ .ef-slide-placeholder { display: none; }

/* Botões de navegação */
.ef-nav-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  backdrop-filter: blur(4px);
}
.ef-nav-btn:hover {
  background: #ffffff;
  box-shadow: 0 6px 24px rgba(242,123,19,0.18), 0 2px 8px rgba(0,0,0,0.1);
  transform: translateY(-50%) scale(1.08);
}
.ef-nav-btn svg { width: 20px; height: 20px; color: var(--color-text); }
.ef-nav-btn--prev { left: 16px; }
.ef-nav-btn--next { right: 16px; }

/* Contador */
.ef-counter {
  position: absolute;
  bottom: 16px; right: 20px;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
  border-radius: 100px;
  padding: 4px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.04em;
  z-index: 10;
}
.ef-counter-sep { opacity: 0.5; margin: 0 2px; }

/* --- Painel lateral --- */
.ef-info-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 0;
}

/* Thumbnails */
.ef-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.ef-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  background: #e5e7eb;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.ef-thumb:hover {
  transform: scale(1.06);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.ef-thumb--active {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(242,123,19,0.2);
}
.ef-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.ef-thumb-placeholder {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #9ca3af;
  z-index: -1;
}
.ef-thumb-placeholder svg { width: 20px; height: 20px; opacity: 0.4; }

/* Descrição */
.ef-desc {
  background: #ffffff;
  border-radius: 20px;
  padding: 28px 24px;
  border: 1px solid var(--color-gray-light);
  min-height: 160px;
  position: relative;
  overflow: hidden;
}

.ef-desc-item {
  position: absolute;
  inset: 32px 28px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22,1,0.36,1);
  pointer-events: none;
}
.ef-desc-item--active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
  inset: auto;
}

.ef-desc-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-secondary);
  background: rgba(242,123,19,0.1);
  border-radius: 100px;
  padding: 3px 10px;
  margin-bottom: 10px;
}

.ef-desc-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 10px;
  line-height: 1.2;
}

.ef-desc-text {
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.75;
  margin: 0;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 1024px) {
  .ef-carousel-wrapper {
    grid-template-columns: 1fr;
  }
  .ef-info-panel {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .ef-thumbs {
    flex: 1 1 100%;
    grid-template-columns: repeat(10, 1fr);
  }
  .ef-desc {
    flex: 1 1 100%;
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .ef-container, .ef-carousel-wrapper { padding: 0 16px; }
  .ef-intro { padding: 36px 0 28px; }
  .ef-carousel-section { padding: 24px 0 48px; }
  .ef-thumbs { grid-template-columns: repeat(5, 1fr); }
  .ef-nav-btn { width: 40px; height: 40px; }
  .ef-nav-btn svg { width: 16px; height: 16px; }
}
