
body, html {
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}


.hero {
    position: relative;
    min-height: 90vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    color: #fff;
}

.bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: crossfade 30s infinite;
    z-index: 0;
}


.bg-image:nth-child(1) { background-image: url("../images/aba1.jpeg"); animation-delay: 0s; }
.bg-image:nth-child(2) { background-image: url("../images/aba2.jpg"); animation-delay: 5s; }
.bg-image:nth-child(3) { background-image: url("../images/aba3.jpeg"); animation-delay: 10s; }
.bg-image:nth-child(4) { background-image: url("../images/aba4.jpg"); animation-delay: 15s; }
.bg-image:nth-child(5) { background-image: url("../images/siltie_graudi_3.jpeg"); animation-delay: 20s; }
.bg-image:nth-child(6) { background-image: url("../images/siltie_graudi_4.jpeg"); animation-delay: 25s; }
.bg-image:nth-child(7) { background-image: url("../images/montesori1.jpg"); animation-delay: 30s; }
.bg-image:nth-child(8) { background-image: url("../images/montesori2.jpeg"); animation-delay: 35s; }
.bg-image:nth-child(9) { background-image: url("../images/aba5.jpg"); animation-delay: 40s; }
.bg-image:nth-child(10) { background-image: url("../images/montesori3.jpg"); animation-delay: 45s; }



@keyframes crossfade {
    0% { opacity: 0; }
    8% { opacity: 1; }
    25% { opacity: 1; }
    33% { opacity: 0; }
    100% { opacity: 0; }
}


.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4); 
    z-index: 1;
}


.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding: 0 20px;
}


.hero h1 {
    font-size: clamp(36px, 6vw, 80px);
    font-weight: bold;
    margin-bottom: 20px;
    color: #fff; 
    text-shadow: 2px 2px 15px rgba(0,0,0,0.6);
}


.hero-content p {
    font-size: 1.2rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 18px;
}


@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.hero-content h1,
.hero-content p,
.hero-button {
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

.hero-content h1 { animation-delay: 0.05s; }
.hero-content p:nth-of-type(1) { animation-delay: 0.15s; }
.hero-content p:nth-of-type(2) { animation-delay: 0.2s; }
.hero-button { animation-delay: 0.35s; }


.hero-button,
.hero .cta-btn {
    display: inline-block;
    margin-top: 30px;
    padding: 14px 34px;
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 600;
    text-decoration: none;
    color: #090909; 
    background: #b2ddec; 
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-button:hover,
.hero .cta-btn:hover {
    background-color: #8fd4ed; 
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}


@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.2rem; }
    .hero-content p { font-size: 0.95rem; }
}