/* ============================================================
   QUINTO CONTINENTE — media.css
   Banners rotativos + galeria de mídia + vídeo destaque
   ============================================================ */

/* ── Hero (Removido por conflito — Estilos agora em style.css) ──────────────── */

.sobre:not(.section-white) { background:var(--bg2); }
.sobre-inner { display:grid; grid-template-columns:1fr 1fr; gap:5rem; align-items:center; margin-top:4rem; }
.sobre-body { font-size:.975rem; font-weight:300; line-height:1.85; color:var(--muted2); }
.sobre-body p+p { margin-top:1.2rem; }
.sobre-body strong { color:var(--text); font-weight:400; }
.servicos:not(.section-white) { background:var(--bg); }
.servicos-hd { display:flex; justify-content:space-between; align-items:flex-end; margin-bottom:3.5rem; gap:2rem; flex-wrap:wrap; }
.servicos-hd-note { font-size:.875rem; font-weight:300; color:var(--muted2); max-width:240px; line-height:1.65; }

.dif { background:var(--bg3); padding:2.25rem 1.75rem; transition:background .3s; }
.dif:hover { background:var(--surface); }
.dif-title { font-family:'Space Grotesk',sans-serif; font-size:.95rem; font-weight:700; color:var(--text); margin-bottom:.7rem; }
.dif-desc  { font-size:.82rem; font-weight:300; line-height:1.72; color:var(--muted2); }
.contato:not(.section-white) { background:var(--bg2); }
.contato-inner { display:grid; grid-template-columns:1fr 1.5fr; gap:6rem; align-items:start; margin-top:4rem; }
.contato-lft p { font-size:.9rem; font-weight:300; line-height:1.8; color:var(--muted2); margin-top:1.5rem; }
.contato-lft strong { color:var(--text); font-weight:400; }

/* ── Banner Rotativo ─────────────────────────────────────── */
.banner-section {
  background: var(--bg);
  padding: 0;
  overflow: hidden;
}
.banner-slider {
  position: relative;
  width: 100%;
  height: 560px;
  overflow: hidden;
}
.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .9s ease, transform .9s ease;
  transform: scale(1.025);
}
.banner-slide.active {
  opacity: 1;
  transform: scale(1);
}
/* Mídia do banner (imagem ou vídeo) */
.banner-slide img,
.banner-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Placeholder visual */
.banner-ph {
  width: 100%; height: 100%;
  background: var(--bg3);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1rem;
  border-bottom: 2px dashed var(--line2);
}
.banner-ph-icon {
  width: 64px; height: 64px;
  border: 2px dashed var(--muted);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
}
.banner-ph-icon svg { width: 28px; height: 28px; }
.banner-ph span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .65rem; font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--muted);
}
/* Dim overlay sobre o banner */
.banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to right,
    rgba(10,10,10,.75) 0%,
    rgba(10,10,10,.25) 55%,
    transparent 100%
  );
  z-index: 1;
}
/* Conteúdo textual */
.banner-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 3rem 4rem;
  z-index: 2;
}
.banner-label {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .6rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .75rem;
}
.banner-label-dot {
  width: 5px; height: 5px;
  background: var(--accent); border-radius: 50%;
  animation: pulse 2s infinite;
}
.banner-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.4rem, 2.8vw, 2.6rem); font-weight: 800;
  line-height: 1.05; letter-spacing: -.03em;
  color: var(--text); max-width: 560px;
  margin-bottom: .75rem;
}
.banner-desc {
  font-size: .875rem; font-weight: 300;
  line-height: 1.7; color: rgba(239,239,239,.72);
  max-width: 420px; margin-bottom: 1.5rem;
}
/* Controles */
.banner-controls {
  position: absolute;
  right: 4rem; bottom: 3rem;
  z-index: 3;
  display: flex; align-items: center; gap: 1rem;
}
.banner-btn {
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  background: rgba(10,10,10,.5);
  backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color .25s, background .25s;
}
.banner-btn:hover {
  border-color: var(--accent);
  background: rgba(255,88,88,.18);
}
.banner-btn svg { width: 16px; height: 16px; }
.banner-dots { display: flex; gap: .5rem; align-items: center; }
.banner-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  cursor: pointer;
  transition: background .3s, transform .3s;
}
.banner-dot.active {
  background: var(--accent);
  transform: scale(1.5);
}
/* Barra de progresso */
.banner-progress {
  position: absolute;
  bottom: 0; left: 0;
  height: 2px; background: var(--accent);
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  z-index: 3;
  pointer-events: none;
}

/* ── Galeria de Mídia ─────────────────────────────────────── */
.midia-section {
  background: var(--bg3);
  padding: 7rem 3rem;
}
.midia-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 3.5rem;
  background: var(--line2);
  border: 1px solid var(--line2);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.midia-item {
  position: relative;
  background: var(--bg);
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
}
.midia-item.midia-large {
  grid-column: span 2;
  aspect-ratio: auto;
  min-height: 280px;
}
.midia-item img,
.midia-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.midia-item:hover img,
.midia-item:hover video { transform: scale(1.04); }
/* Placeholder da galeria */
.midia-ph {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: .75rem;
  background: var(--surface);
  border: 2px dashed var(--line2);
  transition: border-color .3s, background .3s;
  color: var(--muted);
}
.midia-item:hover .midia-ph {
  border-color: rgba(255,88,88,.4);
  background: var(--bg3);
}
.midia-ph svg { width: 28px; height: 28px; }
.midia-ph span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .6rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
}
/* Overlay hover */
.midia-hover {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,.85) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .35s;
  z-index: 1;
  display: flex; align-items: flex-end;
  padding: 1.25rem 1.5rem;
}
.midia-item:hover .midia-hover { opacity: 1; }
.midia-hover-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .65rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--text);
}
/* Ícone de play (vídeos) */
.midia-play-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 52px; height: 52px;
  background: rgba(255,88,88,.88);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  transition: transform .25s, background .25s;
}
.midia-item:hover .midia-play-icon {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--accent);
}
.midia-play-icon svg { width: 18px; height: 18px; margin-left: 3px; }

/* ── Seção de Vídeo Destaque ─────────────────────────────── */
.video-section {
  background: var(--bg2);
  padding: 7rem 3rem;
}
.video-wrap {
  margin-top: 3.5rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--line2);
  background: var(--bg3);
}
/* Placeholder quando não há vídeo */
.video-ph-large {
  width: 100%;
  aspect-ratio: 16/9;
  min-height: 340px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1.5rem;
  background: var(--bg3);
  border-bottom: 2px dashed var(--line2);
}
.video-ph-play {
  width: 80px; height: 80px;
  border: 2px dashed var(--muted);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
}
.video-ph-play svg { width: 32px; height: 32px; }
.video-ph-large p {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--muted); text-align: center;
  max-width: 320px; line-height: 1.9;
}
/* Vídeo real */
.video-wrap iframe,
.video-wrap video {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
  border: none;
}
/* Legenda abaixo do vídeo */
.video-caption {
  padding: 1.5rem 2rem;
  display: flex; align-items: center;
  justify-content: space-between; gap: 1rem;
  border-top: 1px solid var(--line);
}
.video-caption-text {
  font-size: .83rem; font-weight: 300;
  line-height: 1.6; color: var(--muted2);
}
.video-caption-text strong { color: var(--text); font-weight: 400; }

/* ══ RESPONSIVE ════════════════════════════════════════════ */
@media (max-width: 1080px) {
  .hero-floats { display: none; }
  .sobre-inner { grid-template-columns: 1fr; gap: 3rem; }
  .contato-inner { grid-template-columns: 1fr; gap: 3rem; }
  .midia-grid { grid-template-columns: repeat(2, 1fr); }
  .midia-item.midia-large { grid-column: span 2; }
  .banner-controls { right: 2rem; bottom: 2rem; }
  .banner-content { padding: 2rem; }
}
@media (max-width: 768px) {
  .hero { padding: 8rem 1.5rem 4rem; justify-content: center; min-height: auto; }
  .hero h1 { font-size: clamp(1.8rem, 8.5vw, 2.8rem); }
  .hero-bottom { flex-direction: column; align-items: flex-start; }
  .dif { padding: 1.5rem 1.25rem; }
  .banner-slider { height: 500px; }
  .banner-btn { display: none; }
  .banner-controls { right: 0; left: 0; bottom: 1.5rem; justify-content: center; width: 100%; }
  .banner-content { padding: 1.5rem 1.5rem 3.5rem; }
  .midia-section, .video-section { padding-left: 1.5rem; padding-right: 1.5rem; }
  .midia-grid { grid-template-columns: 1fr; }
  .midia-item.midia-large { grid-column: auto; min-height: 220px; }
  .video-caption { flex-direction: column; align-items: flex-start; }
}
