/* Importando fontes do Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@400;700&family=Quicksand:wght@400;700&display=swap');

:root {
    --primary-color: #79D7C2; /* Um verde-água suave */
    --secondary-color: #FFB3A7; /* Um coral claro */
    --text-color: #333;
    --light-text-color: #666;
    --background-color: #F8F8F8;
    --card-bg-color: #FFFFFF;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Quicksand', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

header {
    background-color: var(--primary-color);
    color: white;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 2px 4px var(--shadow-color);
}

header h1 {
    font-family: 'Comfortaa', cursive;
    font-size: 3em;
    margin: 0;
}

header h1 span {
    color: var(--secondary-color); /* Dando destaque ao nome */
}

header p {
    font-size: 1.2em;
    margin-top: 10px;
}

main {
    padding: 20px;
    max-width: 1200px;
    margin: 20px auto;
}

section {
    background-color: var(--card-bg-color);
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px var(--shadow-color);
}

h2 {
    font-family: 'Comfortaa', cursive;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.2em;
}

.intro p {
    text-align: center;
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 20px auto;
    color: var(--light-text-color);
}

/* --- Linha do Tempo --- */
.timeline-container {
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 20px 0;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    box-sizing: border-box; /* Garante que padding e border sejam incluídos na largura total */
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background-color: white;
    border: 4px solid var(--primary-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item.right::after {
    left: -16px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: var(--card-bg-color);
    position: relative;
    border-radius: 6px;
    box-shadow: 0 2px 5px var(--shadow-color);
}

.timeline-content h3 {
    margin-top: 0;
    color: var(--primary-color);
    font-size: 1.5em;
}

.timeline-content p {
    font-size: 0.95em;
    color: var(--light-text-color);
}

.timeline-content img {
    max-width: 100%;
    border-radius: 4px;
    margin-top: 15px;
    display: block;
}

/* --- Galeria --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    background-color: var(--card-bg-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px var(--shadow-color);
    text-align: center;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 250px; /* Altura fixa para as imagens da galeria */
    object-fit: cover; /* Garante que a imagem preencha o espaço sem distorcer */
    display: block;
}

.gallery-item h3 {
    margin: 15px 10px 5px 10px;
    color: var(--primary-color);
    font-size: 1.2em;
}

.gallery-item p {
    font-size: 0.9em;
    color: var(--light-text-color);
    padding: 0 10px 15px 10px;
}

footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.9em;
}

/* --- Responsividade --- */
@media screen and (max-width: 768px) {
    header h1 {
        font-size: 2.5em;
    }
    h2 {
        font-size: 1.8em;
    }

    .timeline-container::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item.right {
        left: 0%;
    }

    .timeline-item.left::after,
    .timeline-item.right::after {
        left: 15px;
    }

    .timeline-content {
        padding: 15px;
    }

    .gallery-grid {
        grid-template-columns: 1fr; /* Uma coluna em telas menores */
    }
}