/* Main Content */
        .main-content {
            max-width: 1250px;
            margin: 0 auto;
            padding: 4rem 2rem;
            background: rgb(255, 255, 255);
        }

        /* Em Caixas */
        /* .content-section {
            background: white;
            padding: 3rem;
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            margin-bottom: 3rem;
        } */

        .content-section {
            background: transparent;
            padding: 3rem 0;      /* ou menos, para aproximar as secções */
            border-radius: 0;
            box-shadow: none;
            margin-bottom: 2rem;  /* ou 0 para colar mesmo */
        }


        .section-title {
            font-size: 2.2rem;
            color: #2c3e50;
            margin-bottom: 1.5rem;
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .section-subtitle {
            text-align: justify;
            color: #666;
            font-size: 1.2rem;
            margin-bottom: 3rem;
            /* max-width: 800px; */
            margin-left: auto;
            margin-right: auto;
        }

        .section-subtitle-header {
            font-size: 2rem;
            color: #2c3e50;
            text-align: center;
            margin-bottom: 2.5rem;
            font-weight: 700;
            position: relative;
            padding-bottom: 1rem;
        }

        .section-subtitle-header::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            /* background: linear-gradient(135deg, #3498db, #2d5aa9); */
            background: #3498db;
            border-radius: 2px;
        }

        /* Activities Grid */
        .activities-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 2rem;
            margin-top: 2rem;
        }

        .activity-card {
            background: linear-gradient(135deg, #f8f9fa, #e9ecef);
            padding: 2rem;
            border-radius: 15px;
            border-left: 5px solid #3498db;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .activity-card::before {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 100px;
            height: 100px;
            background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), transparent);
            border-radius: 0 15px 0 100%;
        }

        .activity-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 35px rgba(0,0,0,0.15);
            border-left-color: #2ecc71;
        }

        .activity-icon {
            font-size: 3rem;
            margin-bottom: 1rem;
            display: block;
        }

        .activity-title {
            font-size: 1.4rem;
            color: #2c3e50;
            margin-bottom: 1rem;
            font-weight: 600;
        }

        .activity-description {
            color: #666;
            margin-bottom: 1.5rem;
            line-height: 1.6;
        }

        .activity-details {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 1.5rem;
            padding-top: 1.5rem;
            border-top: 2px solid #e9ecef;
        }

        .activity-ages {
            background: #e8f4fd;
            color: #3498db;
            padding: 0.3rem 0.8rem;
            border-radius: 15px;
            font-size: 0.9rem;
            font-weight: 600;
        }

        .activity-duration {
            color: #666;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        /* Age Groups Section */
        .age-groups {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
            margin-top: 2rem;
        }

        .age-group {
            background: white;
            padding: 2rem;
            border-radius: 15px;
            text-align: center;
            box-shadow: 0 5px 20px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
            border-top: 4px solid #3498db;
        }

        .age-group:nth-child(2) {
            border-top-color: #2ecc71;
        }

        .age-group:nth-child(3) {
            border-top-color: #f39c12;
        }

        .age-group:nth-child(4) {
            border-top-color: #e74c3c;
        }

        .age-group:hover {
            transform: translateY(-8px);
            box-shadow: 0 15px 40px rgba(0,0,0,0.15);
        }

        .age-icon {
            font-size: 4rem;
            margin-bottom: 1rem;
        }

        .age-title {
            font-size: 1.3rem;
            color: #2c3e50;
            margin-bottom: 0.5rem;
            font-weight: 600;
        }

        .age-range {
            color: #3498db;
            font-weight: 600;
            margin-bottom: 1rem;
        }

        .age-description {
            color: #666;
            font-size: 0.95rem;
        }

        /* Process Steps */
        .process-steps {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 2rem;
            margin-top: 2rem;
            position: relative;
        }

        .step-item {
            text-align: center;
            position: relative;
        }

        .step-number {
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, #3498db, #2d5aa9);
            /* background: linear-gradient(135deg, #3498db, #2ecc71); */
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            font-weight: bold;
            margin: 0 auto 1rem auto;
            position: relative;
            z-index: 2;
        }

        .step-title {
            font-size: 1.1rem;
            color: #2c3e50;
            margin-bottom: 0.5rem;
            font-weight: 600;
        }

        .step-description {
            color: #666;
            font-size: 0.9rem;
        }

        /* Resources Section - NOVO */
        .resources-section {
            /* background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%); */
            padding: 0rem 2rem;
            border-radius: 15px;
            margin-bottom: 4rem;
            padding-top: 4rem;
        }

        .resources-title {
            text-align: center;
            font-size: 1.8rem;
            color: #2c3e50;
            margin-bottom: 2rem;
            font-weight: 600;
        }

        .resources-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
            gap: 1.5rem;
            margin-bottom: 2rem;
        }

        .resource-card {
            background: white;
            padding: 1.5rem;
            border-radius: 12px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.08);
            transition: all 0.3s ease;
            border: 2px solid transparent;

            /* Fixar altura e layout */
            min-height: 300px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .resource-card-content {
            flex-grow: 1;
        }

        .resource-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(52, 152, 219, 0.2);
            border-color: #3498db;
        }

        .resource-icon {
            font-size: 2.5rem;
            margin-bottom: 1rem;
            display: block;
        }

        .resource-title {
            font-size: 1.2rem;
            color: #2c3e50;
            margin-bottom: 0.5rem;
            font-weight: 600;
        }

        .resource-description {
            color: #666;
            font-size: 0.95rem;
            margin-bottom: 1rem;
            line-height: 1.5;
        }

        .resource-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background: linear-gradient(135deg, #3498db, #2d5aa9);
            color: white;
            padding: 0.8rem 1.5rem;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s ease;
            font-size: 0.95rem;
            margin-top: auto; /* NOVO - Empurra para o fundo */
            width: fit-content;
        }

        .resource-btn:hover {
            background: linear-gradient(135deg, #2d5aa9, #3498db);
            transform: translateX(5px);
        }

        /* CTA Final */
        .cta-box {
            background: linear-gradient(135deg, #2d5aa9 0%, #1e3c72 100%);
            padding: 3rem 2rem;
            border-radius: 15px;
            text-align: center;
            margin-top: 3rem;
            color: white;
        }

        .cta-box h3 {
            font-size: 2rem;
            margin-bottom: 1rem;
        }

        .cta-box p {
            font-size: 1.1rem;
            margin-bottom: 2rem;
            opacity: 0.9;
        }

        .cta-buttons {
            display: flex;
            gap: 1rem;
            justify-content: center;
            flex-wrap: wrap;
        }

        .cta-btn-primary {
            background: white;
            color: #2d5aa9;
            padding: 1rem 2.5rem;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 700;
            font-size: 1.1rem;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
        }

        .cta-btn-primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 25px rgba(0,0,0,0.2);
        }

        .cta-btn-secondary {
            background: transparent;
            color: white;
            border: 2px solid white;
            padding: 1rem 2.5rem;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 600;
            font-size: 1.1rem;
            transition: all 0.3s ease;
        }

        .cta-btn-secondary:hover {
            background: white;
            color: #2d5aa9;
            transform: translateY(-3px);
        }

        /* Responsive */
        @media (max-width: 768px) {
            .section-title {
                font-size: 1.8rem;
                flex-direction: column;
            }

            .email-card {
                grid-column: span 1;
            }

            .resources-grid {
                grid-template-columns: 1fr;
            }

            .process-steps {
                grid-template-columns: 1fr;
            }

            .cta-buttons {
                flex-direction: column;
                align-items: stretch;
            }

            .cta-btn-primary,
            .cta-btn-secondary {
                width: 100%;
                justify-content: center;
            }
        }

        @media (min-width: 769px) and (max-width: 1024px) {
            .email-card {
                grid-column: span 1;
            }
        }

        /* Testimonials */
        .testimonials {
            /*display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            margin-top: 2rem;*/
            display: grid;
            grid-template-rows: 1fr auto; /* Texto ocupa espaço disponível, autor fica no final */
            height: 100%; /* Importante se os cards tiverem altura fixa */
            gap: 20px;
        }

        .testimonial {
            background: linear-gradient(135deg, #f8f9fa, white);
            padding: 2rem;
            border-radius: 15px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.1);
            position: relative;
        }

        .testimonial::before {
            content: '"';
            position: absolute;
            top: -10px;
            left: 20px;
            font-size: 4rem;
            color: #3498db;
            opacity: 0.3;
        }

        .testimonial-text {
            color: #555;
            font-style: italic;
            margin-bottom: 1.5rem;
            line-height: 1.6;
        }

        .testimonial-author {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        /* PARA INICIAIS */
        /*.author-avatar {
            width: 50px;
            height: 50px;
            background: linear-gradient(135deg, #3498db, #2ecc71);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            font-size: 1.2rem;
            flex-shrink: 0;
        }*/

    .author-avatar {
    width: 50px;
    height: 50px;
    /* background: linear-gradient(135deg, #3498db, #2ecc71); */
    background: linear-gradient(135deg, #3498db, #2d5aa9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
    overflow: hidden;
}

    .author-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Mostra as iniciais quando a imagem não carrega */
    .author-avatar::after {
        content: attr(data-initials);
        display: none;
    }

    .author-avatar img[style*="display: none"] + ::after,
    .author-avatar:not(:has(img))::after {
        display: flex;
    }

        .author-info h4 {
            color: #2c3e50;
            margin-bottom: 0.2rem;
        }

        .author-role {
            color: #666;
            font-size: 0.9rem;
        }

        /* CTA Section */
        .cta-section {
            /* background: linear-gradient(135deg, #3498db, #2ecc71); */
            background: linear-gradient(135deg, #2d5aa9 0%, #1e3c72 100%);
            color: white;
            padding: 4rem 2rem;
            text-align: center;
            margin-top: 4rem;
            border-radius: 20px;
        }

        .cta-section h2 {
            font-size: 2.5rem;
            margin-bottom: 1rem;
            font-weight: 700;
        }

        .cta-section p {
            font-size: 1.2rem;
            opacity: 0.9;
            margin-bottom: 2rem;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
        }

        .cta-buttons {
            display: flex;
            justify-content: center;
            gap: 1.5rem;
            flex-wrap: wrap;
        }

        .cta-btn {
            padding: 1rem 2rem;
            border: none;
            border-radius: 50px;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
        }

        .cta-btn.primary {
            background: white;
            color: #3498db;
        }

        .cta-btn.primary:hover {
            background: #f8f9fa;
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.2);
        }

        .cta-btn.secondary {
            background: rgba(255,255,255,0.2);
            color: white;
            border: 2px solid white;
        }

        .cta-btn.secondary:hover {
            background: white;
            color: #3498db;
            transform: translateY(-3px);
        }

        /* Responsive */
        @media (max-width: 968px) {
            .hero h1 {
                font-size: 2.5rem;
            }

            .hero-stats {
                flex-direction: column;
                gap: 1.5rem;
            }

            .activities-grid {
                grid-template-columns: 1fr;
            }

            .age-groups {
                grid-template-columns: repeat(2, 1fr);
            }

            .process-steps {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 768px) {
            .hero h1 {
                font-size: 2rem;
            }

            .main-content {
                padding: 2rem 1rem;
            }

            .content-section {
                padding: 2rem;
            }

            .age-groups {
                grid-template-columns: 1fr;
            }

            .process-steps {
                grid-template-columns: 1fr;
            }

            .cta-buttons {
                flex-direction: column;
                align-items: center;
            }

                .resource-card {
                min-height: auto; /* Remove altura fixa em mobile */
            }
            
            .email-card {
                min-height: auto;
                grid-column: span 1;
            }
        }



/* Falta de forms */
.form-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);  /* fundo escuro */
  display: none;                /* escondido por defeito */
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.form-overlay.show {
  display: flex;
}

.form-modal {
  background: #ffffff;
  padding: 2rem 2.5rem;
  border-radius: 24px;
  max-width: 480px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  font-family: 'Montserrat', sans-serif;
}

.form-modal h2 {
  margin-bottom: 0.75rem;
  font-size: 1.6rem;
  color: #2c3e50;
}

.form-modal p {
  margin-bottom: 0.5rem;
  color: #555;
}

.form-modal a {
  color: #1976d2;
  font-weight: 600;
}

.form-close {
  margin-top: 1rem;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  border: none;
  background: #1976d2;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}




.gallery-container {
    display: none;
    animation: fadeIn 0.5s ease;
}

.gallery-container.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Opção 4: Polaroid Stack */
.polaroid-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
}

.polaroid {
    background: white;
    padding: 1rem;
    padding-bottom: 3rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transform: rotate(-2deg);
    transition: all 0.3s ease;
    width: 245px;
}

.polaroid:nth-child(even) {
    transform: rotate(2deg);
}

.polaroid:hover {
    transform: rotate(0deg) scale(1.1);
    z-index: 10;
}

.polaroid img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}

.polaroid-caption {
    text-align: center;
    margin-top: 1rem;
    font-family: 'Courier New', monospace;
    color: #555;
}

@media (max-width: 768px) {
    .masonry-grid {
        column-count: 2;
    }

    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .polaroid-container {
        gap: 1rem;
    }

    .polaroid {
        width: 220px;
    }
}

@media (max-width: 480px) {
    .masonry-grid {
        column-count: 1;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }
}