/* ==========================================================================
   HOME.CSS — Página Principal (index.php)
   Importar em: index.php
   Depende de: base.css
   ========================================================================== */

/* ==========================================================================
   1. HERO & BANNER
   ========================================================================== */

.imgbannerp {
  position: relative;
  background: radial-gradient(circle at 30% 30%, #1a2a6c, #0b0f2a 70%);
  overflow: hidden;
  height: 100vh;
}

.imgbannerp::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: rgba(0, 102, 255, 0.3);
  filter: blur(120px);
  z-index: 0;
  top: -100px;
  left: -100px;
}

.imgbannerp::after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: rgba(0, 200, 255, 0.2);
  filter: blur(120px);
  z-index: 0;
  bottom: -150px;
  right: -100px;
}

.hero {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 2;
  color: white;
  padding-top: calc(var(--nav-height) + 40px);
}

.hero-content {
  max-width: 600px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0 20px 0;
}

.hero p {
  font-weight: 400;
  color: var(--text-muted);
}

.hero-buttons {
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.btn-primary {
  width: 100%;
  padding: 14px;
  margin: 10px 0;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  box-sizing: border-box;
  color: white;
  text-decoration: none;
  display: block;
  background: var(--primary-gradient);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(96, 165, 250, 0.4);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 12px 25px;
  border-radius: 8px;
  color: white;
  background: transparent;
  width: 100%;
  margin-top: 10px;
  margin-bottom: 10px;
}

.btn-news-mobile {
  display: none;
  margin-top: 10px;
  font-size: 14px;
  color: #fff;
  text-decoration: none;
  opacity: 0.8;
}

.btn-news-mobile:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  .btn-news-mobile {
    display: block;
  }
}

/* ==========================================================================
   2. EMPRESA SECTION & GRID
   ========================================================================== */

.empresa-section {
  background: #dbdbdb;
  padding: 80px 0;
  position: relative;
}

.empresa-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.empresa-grid > * {
  min-width: 0;
  width: 100%;
}

.empresa-top,
.empresa-bottom {
  max-width: 1200px;
  margin: 40px auto 20px;
  padding: 0 20px;
}

.empresa-bottom {
  overflow: hidden;
}

/* ==========================================================================
   3. REVEAL SYSTEM
   ========================================================================== */

.reveal,
.reveal-l,
.reveal-r {
  font-family: 'diodrum', sans-serif;
  position: relative;
  border-radius: 16px;
  padding: 28px;
  width: 100%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transform: translate3d(0, 0, 0);
  transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  will-change: transform, opacity, scale;
}

.js .reveal  { transform: translate3d(60px, 20px, 0) scale(0.95); opacity: 0; }
.js .reveal-l { transform: translate3d(-80px, 20px, 0) scale(0.95); opacity: 0; }
.js .reveal-r { transform: translate3d(80px, 20px, 0) scale(0.95); opacity: 0; }

.reveal.show,
.reveal-l.show,
.reveal-r.show {
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
}

.reveal:not(.show) {
  background: rgba(255, 255, 255, 0.6);
}

.reveal.show {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.reveal-l::after,
.reveal-r::after {
  content: "";
  width: 60px;
  height: 2px;
  margin: 20px auto 0;
  background: linear-gradient(90deg, #60a5fa, #2563eb);
  border-radius: 2px;
  opacity: 0;
  transform: scaleX(0);
  transition: all 0.6s ease;
}

.reveal-l.show::after,
.reveal-r.show::after {
  opacity: 1;
  transform: scaleX(1);
}

/* ==========================================================================
   4. TITULO & TEXTO
   ========================================================================== */

.titulo {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
  margin-bottom: 20px;
  position: relative;
}

.titulo::before {
  position: absolute;
  left: 0;
  top: 50%;
  height: 2px;
  width: 40px;
  background: linear-gradient(90deg, #60a5fa, transparent);
  transform: translateY(-50%);
}

.titulo img {
  max-height: 48px;
  filter: brightness(0.15) contrast(1.2);
  transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  flex-shrink: 0;
}

.reveal.show .titulo img {
  filter: brightness(0.15) contrast(1.2);
  transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform: scale(1.05);
}

.reveal h1,
.reveal-l h1,
.reveal-r h1 {
  color: #0b0f2a;
}

.reveal p,
.reveal-l p,
.reveal-r p {
  font-size: 1.05rem;
  padding: 0 16px;
  margin: 0;
  line-height: 1.7;
  color: #333;
  font-weight: 400;
}

/* ==========================================================================
   5. B33 NEWS
   ========================================================================== */

.b33-news-wrapper {
  background: linear-gradient(135deg, #dbdbdb 0%, #f8f9ff 100%);
  padding: 10px 20px;
  min-height: 450px;
  position: relative;
  overflow: hidden;
}

.b33-news-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #60a5fa, #2563eb, transparent);
  box-shadow: 0 2px 10px rgba(96, 165, 250, 0.3);
}

.b33-news {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.b33-news h2 {
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  margin: 0;
  line-height: 0.9;
  background: linear-gradient(135deg, #0b0f2a 0%, #1a2a6c 50%, #60a5fa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  position: relative;
  padding: 20px 0;
  color: #0b0f2a;
}

.b33-news span {
  display: inline-block;
  position: relative;
  transition: transform 0.45s ease, opacity 0.35s ease !important;
  will-change: transform, opacity;
}

.js .b33-left {
  transform: translateX(-150px) scale(0.85) !important;
  opacity: 0 !important;
}

.js .b33-right {
  transform: translateX(150px) scale(0.85) !important;
  opacity: 0 !important;
}

.b33-left.show,
.b33-right.show {
  transform: translateX(0) scale(1) !important;
  opacity: 1 !important;
}

.b33-right.show {
  transition-delay: 0.3s !important;
}

.b33-news:hover .b33-left.show {
  transform: translateX(-8px) scale(1.02);
}

.b33-news:hover .b33-right.show {
  transform: translateX(8px) scale(1.02);
}

.b33-news h2::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.6), transparent);
  border-radius: 2px;
  transform: translateX(-50%) scaleX(0);
  transition: transform 0.6s ease;
}

.b33-news h2:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* Card de notícia */
.noticia {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.b33-news-wrapper .noticia > img,
.b33-news-wrapper .noticia > .book-cover {
  width: 180px !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  background: #f3f5fb;
  border-radius: 10px;
  display: block;
  flex-shrink: 0;
}

.noticia-conteudo {
  flex: 1;
}

.noticia-conteudo h3 {
  margin: 0 0 12px;
  color: #0b0f2a;
  font-size: 1.45rem;
}

.noticia p {
  margin-bottom: 15px;
  font-size: 1.1rem;
  color: #333;
}

a.btn-saiba {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.25);
  transition: all 0.25s ease;
}

.btn-saiba:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
}

/* ==========================================================================
   6. MOBILE HELPERS
   ========================================================================== */

.mobile {
  display: none;
}

/* ==========================================================================
   7. RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
  .desktop {
    display: none !important;
  }

  .mobile {
    display: block !important;
  }

  .hero {
    padding-top: calc(var(--nav-height) + 20px);
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-secondary {
    width: 90%;
    max-width: 90%;
  }

  .empresa-grid {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }

  .reveal,
  .reveal-l,
  .reveal-r {
    padding: 24px 20px;
    margin-bottom: 16px;
  }

  .titulo {
    gap: 12px;
    flex-direction: column;
    text-align: center;
  }

  .titulo img {
    max-height: 40px;
  }

  .noticia {
    flex-direction: column;
    text-align: center;
  }

  .noticia img {
    width: 60% !important;
    height: auto;
  }
}

@media (max-width: 480px) {
  .reveal,
  .reveal-l,
  .reveal-r {
    padding: 20px 16px;
    border-radius: 12px;
  }

  .titulo img {
    max-height: 36px;
  }
}

@media (max-width: 360px) {
  .hero h1 {
    font-size: 1.6rem;
  }

  .hero p {
    font-size: 14px;
  }

  .reveal h1,
  .reveal p,
  .reveal-l h1,
  .reveal-l p,
  .reveal-r h1,
  .reveal-r p {
    font-size: 14px;
    padding: 0 10px;
  }

  .btn-primary,
  .btn-secondary {
    font-size: 14px;
    padding: 10px;
  }
}
