/* home.css atualizado */

/* === Seção Principal (“hero”) === */
#home {
  display: flex;
  min-height: calc(100vh - 104px);
  position: relative;
}

#cta {
  width: 35%;
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 5%;
}

#cta .title {
  font-size: 3rem;
  line-height: 1.2;
  color: black;
}

#cta .description {
  font-size: 1.2rem;
  line-height: 1.3;
}

#cta_buttom {
  display: flex;
  gap: 24px;
}

#cta_buttom a {
  text-decoration: none;
  color: white;
}

#banner {
  width: 65%;
  display: flex;
  overflow-x: hidden;
  align-items: flex-start;
  justify-content: flex-end;
}

#banner img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateX(-50px);
  animation: slideInLeft 1s ease-out forwards;
  animation-delay: 0.3s;
}

/* === Shape original (mantido para fallback) === */
.shape {
  background-color: #e4e4e4;
  height: 350px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 16px 20px;
  margin-bottom: 0;
}

.shape-content {
  max-width: 800px;
  width: 100vw;
}

.shape-title {
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 16px 0;
  color: #000;
}

.shape-description {
  font-size: 1.1rem;
  line-height: 1.4;
  margin: 0;
  color: #333;
}

.highlight {
  color: #FDE8C9;
}

/* === Animações === */
@keyframes fadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(60px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-monitor {
  animation: fadeSlideUp 1s ease-out;
  animation-fill-mode: both;
  animation-delay: 0.6s;
  opacity: 0;
}

.fade-in {
  animation: fadeSlideUp 0.8s ease-out forwards;
  opacity: 0;
  animation-delay: var(--delay, 0s);
}

/* === Feature Section === */
.feature-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 0px 2%;
  background-color: #fdfdfd;
  flex-wrap: wrap;
}

.feature-image {
  flex: 1;
  min-width: 300px;
}

.feature-image img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  transform: translateX(-50px);
  animation: slideInLeft 1s ease forwards;
  animation-delay: 0.3s;
}

.feature-content {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  opacity: 0;
  transform: translateX(50px);
  animation: slideInRight 1s ease forwards;
  animation-delay: 0.5s;
}

.feature-title {
  font-size: 2rem;
  font-weight: 700;
  color: #000;
  line-height: 1;
  text-align: left;
}

.feature-description {
  font-size: 1.1rem;
  line-height: 1.4;
  color: #333;
  text-align: left;
}

.feature-content .btn-default {
  align-self: flex-start;
}

/* === Feature Resources Full-Width === */
.feature-resources {
  width: 100vw;
  padding: 60px 0;
  margin-left: calc(-50vw + 50%);
  position: relative;
  left: 0;
  right: 0;
  margin-bottom: 0;
  overflow: hidden;
  background-color: transparent;
  z-index: 1;
}

.feature-resources::before {
  content: "";
  background-color: #f1f1f1;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.feature-resources .container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  background-color: white;
  padding: 40px 20px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

/* === Scroll fade/triggers === */
.scroll-fade {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.scroll-fade.visible {
  opacity: 1;
  transform: translateY(0);
}
.scroll-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: all 0.8s ease-out;
}
.scroll-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.scroll-right {
  opacity: 0;
  transform: translateX(60px);
  transition: all 0.8s ease-out;
}
.scroll-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* === Resource Items === */
.resource-header {
  text-align: center;
  margin-bottom: 40px;
}
.resource-header h2 {
  font-size: 2rem;
  color: #000;
  margin-bottom: 10px;
}
.resource-header p {
  font-size: 1.1rem;
  color: #555;
  max-width: 800px;
  margin: 0 auto;
}
.resource-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}
.resource-item {
  flex: 1;
  min-width: 220px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.resource-item img {
  width: 100%;
  max-width: 240px;
  border-radius: 8px;
  margin-bottom: 16px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.resource-item img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}
.resource-item h3 {
  font-size: 1.2rem;
  color: #000;
  margin-bottom: 10px;
  text-align: center;
  width: 100%;
}
.resource-item ul {
  list-style: none;
  padding: 0;
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
  text-align: center;
}
.resource-item ul li {
  transition: font-weight 0.2s ease;
}
.resource-item ul li:hover {
  font-weight: bold;
}

/* === CTA Button Section === */
.cta-button {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}
.cta-button .btn-default {
  padding: 12px 30px;
  font-size: 1rem;
  background-color: #000;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s ease;
}
.cta-button .btn-default:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* === Responsivo geral da home === */
@media screen and (max-width: 768px) {
  #home {
    flex-direction: column-reverse;
    align-items: center;
    padding: 40px 5%;
  }

  #cta {
    width: 100%;
    text-align: center;
    align-items: center;
  }
  #cta .title {
    font-size: 2rem;
  }
  #cta .description {
    font-size: 1rem;
  }

  #banner {
    width: 100%;
    justify-content: center;
    margin-bottom: 30px;
  }
  #banner img {
    max-width: 100%;
    height: auto;
  }
}

/* ========================================================================
   BLOCO DE OVERRIDE: RESOLUÇÃO DE CONFLITOS NO SHAPE
   ======================================================================== */
/* 1) Shape externo: expande além das margins das sections e remove altura fixa */
.shape {
  margin: 0 -8% 40px;         /* “escapa” das laterais */
  padding: 80px 8%;           /* muito mais espaço vertical */
  height: auto !important;    /* garante que não corte conteúdo */
  overflow: visible;
  position: relative;
  z-index: 0;
}

/* 2) Conteúdo centralizado dentro do shape */
.shape-content-final {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  box-sizing: border-box;
}

/* 3) Ajustes tipográficos finais */
.shape-title {
  font-size: 2rem;
  line-height: 1.3;
  margin-bottom: 16px;
  color: #000;
}

.shape-description {
  font-size: 1rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
  color: #333;
}

/* 4) Media queries para responsividade do shape */
@media (max-width: 992px) {
  .shape {
    padding: 60px 6%;
    margin: 0 -6% 30px;
  }
  .shape-title { font-size: 1.75rem; }
  .shape-description { font-size: 0.95rem; }
}

@media (max-width: 768px) {
  .shape {
    padding: 40px 5%;
    margin: 0 -5% 20px;
  }
  .shape-title { font-size: 1.5rem; }
  .shape-description { font-size: 0.9rem; }
}

