/* Header fixo no topo */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 15px 7%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease;
    height: 70px;
}

/* Hero principal com imagem de fundo que troca */
.hero {
    position: relative;
    width: 100%;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    margin-top: 0;
    background: url('../img/carrossel/foto1.png') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    overflow: hidden;
    padding: 100px 10% 40px;
    transition: background-image 1s ease-in-out;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    z-index: 1;
}

.hero-text {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 80%;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.5rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* HERO CAROUSEL */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 80vh;
    overflow: hidden;
    margin-top: 70px;
}

.carousel-container {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-controls {
    position: absolute;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 20px;
    z-index: 2;
}

.carousel-controls button {
    background-color: rgba(255, 255, 255, 0.6);
    border: none;
    width: 48px;
    height: 48px;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-controls button:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: scale(1.1);
    color: #000;
}

@keyframes zoomInUp {
    0% {
      opacity: 0;
      transform: scale(0.8) translateY(50px);
    }
    60% {
      opacity: 1;
      transform: scale(1.05) translateY(-10px);
    }
    100% {
      opacity: 1;
      transform: scale(1) translateY(0);
    }
  }
  
  /* Aplicando a animação */
  .hero-carousel-text {
    position: absolute;
    top: 40%;
    left: 7%;
    transform: translateY(-40%);
    z-index: 2;
    text-align: left;
    color: #ffffff;
    font-family: "Aleo", "Geologica", sans-serif;
    padding: 0 20px;
    animation: zoomInUp 1.3s ease forwards;
  }
  


.hero-carousel-text h1 {
    font-size: 4rem; /* antes 3rem */
    font-weight: 900;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.hero-carousel-text p {
    font-size: 2rem; /* antes 1.5rem */
    font-weight: 400;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-carousel-text .highlight {
    color: #4FC3F7; /* azul claro para "feliz!" */
}

/* Responsividade */
@media (max-width: 1024px) {
    .hero {
        padding-top: 90px;
    }

    .hero-text,
    .hero-carousel-text {
        max-width: 85%;
    }

    .hero-text h1,
    .hero-carousel-text h1 {
        font-size: 2.5rem;
    }

    .hero-text p,
    .hero-carousel-text p {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 110px 7% 50px;
    }

    .hero-text,
    .hero-carousel-text {
        max-width: 90%;
    }

    .hero-text h1,
    .hero-carousel-text h1 {
        font-size: 2rem;
    }

    .hero-text p,
    .hero-carousel-text p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 120px 5% 60px;
    }

    .hero-text,
    .hero-carousel-text {
        max-width: 100%;
    }

    .hero-text h1,
    .hero-carousel-text h1 {
        font-size: 2rem; /* antes 1.8rem */
    }

    .hero-text p,
    .hero-carousel-text p {
        font-size: 1.2rem; /* antes 1rem */
    }
}