﻿/* RESET DI BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    background-color: #fdfdfd;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    padding: 0.8rem 1.5rem;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 999;
}

.navbar-logo h1 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #f48fb1;
}

.navbar-menu ul {
    display: flex;
    gap: 1.5rem;
}

.navbar-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

    .navbar-menu a:hover {
        color: #f48fb1;
    }

/* HAMBURGER MENU (Mobile) */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 20px;
    cursor: pointer;
}

    .hamburger .bar {
        height: 3px;
        width: 100%;
        background-color: #333;
        border-radius: 2px;
    }

/* HERO SECTION con VIDEO */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.hero-content {
    position: relative;
    color: #fff;
    max-width: 600px;
    z-index: 1;
    text-align: center;
}

    .hero-content h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
        font-weight: 600;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

.cta-button {
    display: inline-block;
    background-color: #f48fb1;
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

    .cta-button:hover {
        background-color: #ec407a;
    }

/* SEZIONE ATTIVITÀ */
.activity-section {
    padding: 2rem;
    background-color: #fdf2f8;
    text-align: center;
}

    .activity-section h3 {
        font-size: 1.5rem;
        color: #f48fb1;
        margin-bottom: 2rem;
    }


.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px; /* Spazio aumentato tra le card */
    max-width: 1000px;
    margin: 60px auto; /* Maggiore distanza dalla pagina */
    padding: 30px; /* Spazio interno della griglia */
}

.activity-card {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 250px;
    height: 250px;
    padding: 10px; /* Spazio interno della card */
    background-color: #f8f8f8;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.card-img {
    width: 100%;
    height: 100%;
}

    .card-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 8px;
    }

/* PERSONALIZZAZIONE DELLO SFONDO PER OGNI CARD */
.music-bg {
    background-image: url('img/music-bg.jpg') !important;
}

.art-bg {
    background-image: url('img/arte-bg.jpg');
}

.reading-bg {
    background-image: url('img/lettura-bg.jpg');
}

.play-bg {
    background-image: url('img/gioco-bg.jpg');
}

.world-bg {
    background-image: url('img/mondo-bg.jpg');
}





/* SEZIONE INFO */
.info-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 2rem;
    background-color: #fff;
    gap: 2rem;
}

.info-container {
    flex: 1 1 45%;
}

    .info-container h3 {
        font-size: 1.5rem;
        color: #f48fb1;
        margin-bottom: 1rem;
    }

    .info-container p {
        margin-bottom: 1rem;
        line-height: 1.5;
    }

.info-image {
    flex: 1 1 45%;
    text-align: center;
}

    .info-image img {
        max-width: 90%;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

/* SEZIONE GALLERIA */
.gallery-section {
    padding: 2rem;
    background-color: #fdf2f8;
    text-align: center;
}

    .gallery-section h3 {
        font-size: 1.5rem;
        color: #f48fb1;
        margin-bottom: 1.5rem;
    }

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

    .gallery-container img {
        width: 100%;
        border-radius: 8px;
        cursor: pointer;
        transition: transform 0.3s ease;
    }

        .gallery-container img:hover {
            transform: scale(1.02);
        }

/* SEZIONE CONTATTI */
.contact-section {
    padding: 2rem;
    background-color: #fff;
    text-align: center;
}

    .contact-section h3 {
        font-size: 1.5rem;
        color: #f48fb1;
        margin-bottom: 1rem;
    }

.contact-info p {
    margin: 0.5rem 0;
}

/* FORM CONTATTI */
.contact-form {
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

    .contact-form label {
        font-size: 0.9rem;
        font-weight: 500;
    }

    .contact-form input,
    .contact-form textarea {
        width: 100%;
        padding: 0.8rem;
        border-radius: 4px;
        border: 1px solid #ccc;
        resize: none;
        font-family: 'Poppins', sans-serif;
    }

    .contact-form button {
        align-self: flex-end;
    }

/* FOOTER */
.footer {
    background-color: #f8f8f8;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
    color: #555;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .info-section {
        flex-direction: column;
        text-align: center;
    }

    .info-container,
    .info-image {
        flex: 1 1 100%;
    }

    .hamburger {
        display: flex;
    }

    .navbar-menu ul {
        position: absolute;
        top: 60px;
        right: 0;
        background-color: #fff;
        flex-direction: column;
        width: 200px;
        border: 1px solid #eee;
        display: none;
    }

    .navbar-menu.open ul {
        display: flex;
    }
}
