/* Estilos Gerais */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
    line-height: 1.6;
}

header {
    background-color: #5d5d81;
    color: white;
    padding: 60px 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin: 0;
    font-size: 2.5em;
}

/* Estrutura da Linha do Tempo (Timeline) */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 10px;
}

/* A linha central (eixo) */
.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: #8c7ae6; /* Cor da linha */
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    z-index: 0;
}

/* Item da Linha do Tempo */
.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    z-index: 1;
}

/* Conteúdo (Caixa) de cada item */
.timeline-content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Itens alinhados à esquerda (padrão) */
.timeline-item {
    left: 0;
}

/* Itens alinhados à direita */
.timeline-item.right {
    left: 50%;
}

/* Círculo/Ponto na Linha */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background-color: #8c7ae6;
    border: 4px solid #f4f4f9;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

/* Ajustando o ponto para itens da direita */
.timeline-item.right::after {
    left: -16px;
}

/* Seta para itens da esquerda (aponta para a direita) */
.timeline-item::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid white;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent white;
}

/* Seta para itens da direita (aponta para a esquerda) */
.timeline-item.right::before {
    left: 30px;
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
}

/* Data */
.date {
    display: block;
    font-weight: bold;
    color: #8c7ae6;
    margin-bottom: 10px;
}

/* Seção de Galeria */
.full-width {
    width: 100%; /* Ocupa a largura total */
    left: 0;
    padding: 20px 0;
    text-align: center;
}

.full-width .timeline-content {
    margin: 0 auto;
    max-width: 900px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* 4 colunas em telas grandes */
    gap: 15px;
    margin-top: 20px;
}

.gallery-grid img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

/* Remove o ponto da linha do tempo para a seção de largura total */
.full-width::after {
    content: none;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: #333;
    color: white;
    margin-top: 50px;
}

/* Responsividade: Layout de uma única coluna em telas menores */
@media screen and (max-width: 600px) {
    /* Linha do tempo na lateral esquerda */
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item.right {
        left: 0%; /* Alinha todos os itens à esquerda */
    }

    /* Ponto à esquerda */
    .timeline-item::after {
        left: 15px;
        right: auto;
    }
   
    /* Seta à esquerda */
    .timeline-item::before {
        left: 60px;
        border-width: 10px 10px 10px 0;
        border-color: transparent white transparent transparent;
    }

    .full-width {
        padding: 0;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}