/* =========================
   RESET & BASE
========================= */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
}

body {
  font-family: Arial, sans-serif;
  overflow-x: hidden;
  background: #000;
}

section,
.section {
  margin: 0;
  padding: 0;
}

/* =========================
   SEÇÕES BASE
========================= */
.section {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* =========================
   BACKGROUNDS
========================= */
.amarelo {
  background-image: url("img/ft7.jpg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.rosa {
  background-image: url("img/ft1.jpg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.verde {
  background: transparent;
}

.verde::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: url("images/backg/ft61.jpg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  z-index: 0;
  pointer-events: none;
}

.verde .container {
  position: relative;
  z-index: 2;
}

/* =========================
   SEÇÃO IMAGEM FULL
========================= */
.imagem-full {
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  padding: 0;
  margin: 0;
}

.imagem-ajustada {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

/* =========================
   CONTAINER GERAL
========================= */
.container {
  width: 100%;
  max-width: 1200px;
  position: relative;
  z-index: 2;
  padding: clamp(24px, 5vh, 60px) clamp(12px, 3vw, 32px);
  margin: 0 auto;
}

/* =========================
   ANIMAÇÕES
========================= */
.animate {
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.animate.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.animate:nth-child(1) { transition-delay: 0.00s; }
.animate:nth-child(2) { transition-delay: 0.10s; }
.animate:nth-child(3) { transition-delay: 0.20s; }
.animate:nth-child(4) { transition-delay: 0.30s; }
.animate:nth-child(5) { transition-delay: 0.40s; }
.animate:nth-child(6) { transition-delay: 0.50s; }
.animate:nth-child(7) { transition-delay: 0.60s; }
.animate:nth-child(8) { transition-delay: 0.70s; }

/* =========================
   COMPONENTE: BOX BASE
========================= */
.box {
  overflow: hidden;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

/* =========================
   SEÇÃO 1 — AMARELA
========================= */
.amarelo .container {
  max-width: 95%;
  padding: clamp(20px, 4vh, 48px) clamp(12px, 2.5vw, 24px);
}

.top-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: clamp(10px, 1.8vw, 24px);
  align-items: center;
  width: 100%;
}

.top-layout .box {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.top-layout .box:hover {
  transform: translateY(-4px) scale(1.015);
}

.top-layout .box img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.top-layout .center img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transform: scale(1.02);
  transform-origin: center;
}

/* =========================
   SEÇÃO 2 — ROSA
========================= */
.middle-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 3vh, 32px);
  width: 100%;
}

.barra-top {
  width: clamp(200px, 50%, 600px);
  padding: clamp(10px, 2vh, 18px) clamp(16px, 3vw, 32px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border-radius: 12px;
}

.barra-top img {
  display: block;
  width: 100%;
  height: auto;
}

.barra-mid {
  width: clamp(280px, 70%, 720px);
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
}

.barra-mid iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}

/* =========================
   TRIO — SEÇÃO 2
========================= */
.trio-wrapper {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  justify-items: center;
  width: min(100%, 1080px);
  margin: 0 auto;
}

.preto {
  width: clamp(220px, 31vw, 390px);
  border-radius: 12px;
  overflow: visible;
  z-index: 2;
  transition: transform 0.3s ease;
}

.preto img {
  width: 100%;
  height: auto;
  display: block;
}

.preto.left {
  justify-self: end;
  transform: translateX(45px);
}

.preto.right {
  justify-self: start;
  transform: translateX(-75px);
}

.preto.left:hover {
  transform: translateX(45px) scale(1.04);
}

.preto.right:hover {
  transform: translateX(-75px) scale(1.04);
}

.vermelho {
  width: clamp(180px, 24vw, 290px);
  z-index: 3;
  position: relative;
  transition: transform 0.3s ease;
}

.vermelho-inner {
  margin-top: 80px;
}

.vermelho img {
  width: 100%;
  height: auto;
  display: block;
}

.vermelho:hover {
  transform: scale(1.03);
}

/* =========================
   SEÇÃO 3 — VERDE (NOTÍCIAS)
========================= */
.bottom-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 4vh, 40px);
  width: 100%;
}

.banner-titulo {
  width: 100%;
  max-width: 807px;
  margin: 0 auto;
}

.banner-titulo img {
  width: 100%;
  height: auto;
  display: block;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 24px);
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-4px) scale(1.02);
}

.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.card-link {
  display: block;
  padding: 12px 14px;
  color: #fff;
  text-decoration: none;
  font-size: clamp(13px, 1.3vw, 16px);
  font-weight: bold;
  line-height: 1.4;
  transition: background 0.3s ease;
}

.card-link:hover {
  background: #003300;
}

.ver-mais {
  width: 100%;
  max-width: 980px;
  display: flex;
  justify-content: flex-end;
  margin: 0 auto;
}

.btn-ver-mais img {
  height: auto;
  display: block;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.btn-ver-mais:hover img {
  opacity: 0.85;
  transform: scale(1.04);
}

/* =========================
   SCROLLBAR
========================= */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #111; }
::-webkit-scrollbar-thumb {
  background: #1565d8;
  border-radius: 4px;
}

/* ==========================================
   RESPONSIVO — MOBILE FIRST
   Todos os breakpoints concentrados aqui
========================================== */

/* --- TABLET (até 900px) --- */
@media (max-width: 900px) {

  /* Seção 1 */
  .top-layout {
    grid-template-columns: 1fr 1.3fr 1fr;
    gap: 12px;
  }

  /* Seção 2 — vídeo */
  .barra-mid {
    width: 90%;
  }

  /* Trio */
  .trio-wrapper {
    width: 100%;
  }

  .preto {
    width: clamp(160px, 28vw, 320px);
  }

  .vermelho {
    width: clamp(130px, 20vw, 240px);
  }

  /* Cards */
  .grid-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
 

/* --- MOBILE (até 640px) --- */
@media (max-width: 640px) {
 body {
    background-image: url("img/ft1m1.jpg");
  }
  /* Seção 1 — empilha */
  .top-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .top-layout .box,
  .top-layout .center {
    width: 100%;
  }

  .top-layout .center img {
    transform: none;
  }

  /* Container geral */
  .container {
    padding: 20px 16px;
  }

  /* Seção 2 — vídeo */
  .barra-mid {
    width: 100%;
  }

  /* Banner título */
  .banner-titulo {
    width: 90%;
  }

  /* ================================
     BACKGROUNDS VERSÃO MOBILE
  ================================ */
  .amarelo {
    background-image: url("img/ft7m.jpg");
  }

  .rosa {
    background-image: url("img/ft1m.jpg");
  }

  .verde::before {
    background-image: url("images/backg/ft61m.jpg");
  }
.card-link {
    font-size: 20px;
  }
}

/* --- MOBILE PEQUENO (até 560px) --- */
@media (max-width: 560px) {

  /* Trio — empilha */
  .trio-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .preto,
  .vermelho {
    width: 85%;
    transform: none !important;
  }

  .vermelho-inner {
    margin-top: 0;
  }

  .preto.left  { order: 1; }
  .vermelho    { order: 2; }
  .preto.right { order: 3; }

  /* Cards — 1 coluna */
  .grid-cards {
    grid-template-columns: 1fr;
    max-width: 100%;
    padding: 0 8px;
  }

  /* Ver mais — centraliza */
  .ver-mais {
    justify-content: center;
  }

  /* Imagem full no mobile */
  .imagem-full {
    height: 50vw;
    min-height: 200px;
  }
}