/* ===================================
   Template Atividades Portugal Excecional 2030
   =================================== */

/* Container Principal */
.atividades-page-wrapper {
    padding: 80px 0 100px 0;
}

/* ===================================
   HEADER / TÍTULO
   =================================== */

.atividades-header {
    text-align: center;
    margin-bottom: 60px;
}

.atividades-header h1 {
    margin: 0 0 15px 0;
}

.atividades-header .title-border {
    display: block;
    max-width: 200px;
    height: auto;
    margin: 0 auto;
}

/* ===================================
   LISTAGEM DE ATIVIDADES (VERTICAL)
   =================================== */

.atividades-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ===================================
   ITEM DE ATIVIDADE (ACCORDION)
   =================================== */

.atividade-item {
    /* Sem border entre items */
}

/* Toggle (Cabeçalho Clicável) */
.atividade-toggle {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 25px 30px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.atividade-toggle:hover {
    opacity: 0.95;
}

/* Cores alternadas - Itens ímpares (1, 3, 5...) - Fundo branco */
.atividade-item:nth-child(odd) .atividade-toggle {
    background-color: #ffffff;
}

/* Cores alternadas - Itens pares (2, 4, 6...) - Fundo azul */
.atividade-item:nth-child(even) .atividade-toggle {
    background-color: #1e3a52;
}

/* ===================================
   NUMERAÇÃO
   =================================== */

.atividade-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid currentColor;
}

.atividade-number span {
    font-weight: 600;
}

/* Número azul em fundo branco */
.atividade-item:nth-child(odd) .atividade-number {
    color: #1e3a52;
}

/* Número branco em fundo azul */
.atividade-item:nth-child(even) .atividade-number {
    color: #ffffff;
}

/* ===================================
   TÍTULO
   =================================== */

.atividade-toggle h2 {
    margin: 0;
    font-weight: 600;
}

/* Título azul em fundo branco */
.atividade-item:nth-child(odd) .atividade-toggle h2 {
    color: #1e3a52;
}

/* Título branco em fundo azul */
.atividade-item:nth-child(even) .atividade-toggle h2 {
    color: #ffffff;
}

/* ===================================
   SETA (ARROW)
   =================================== */

.atividade-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.atividade-arrow img {
    display: block;
    width: 100%;
    height: auto;
}

/* Filtro para setas em fundo azul (tornar brancas) */
.atividade-item:nth-child(even) .atividade-arrow img {
    filter: brightness(0) invert(1);
}

/* ===================================
   CONTEÚDO DO ACCORDION
   =================================== */

.atividade-content {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease-out;
}

.atividade-content.open {
    max-height: 5000px;
    transition: max-height 0.6s ease-in;
}

.atividade-description {
    padding: 30px 30px 30px 130px;
    background-color: #f8f9fa;
}

.atividade-description p {
    margin: 0 0 15px 0;
}

.atividade-description p:last-child {
    margin-bottom: 0;
}

.atividade-description ul,
.atividade-description ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.atividade-description li {
    margin-bottom: 8px;
}

.atividade-description h3 {
    margin-top: 0;
}

/* ===================================
   RESPONSIVE
   =================================== */

/* Tablets */
@media (max-width: 992px) {
    .atividade-toggle {
        grid-template-columns: 60px 1fr auto;
        gap: 15px;
        padding: 20px 25px;
    }
    
    .atividade-number {
        width: 45px;
        height: 45px;
    }
    
    .atividade-description {
        padding: 25px 25px 25px 105px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    
    .atividades-page-wrapper {
        padding: 60px 0 80px 0;
    }
    
    .atividades-header {
        margin-bottom: 40px;
    }
    
    .atividade-toggle {
        grid-template-columns: 50px 1fr auto;
        gap: 12px;
        padding: 18px 20px;
    }
    
    .atividade-number {
        width: 40px;
        height: 40px;
    }
    
    .atividade-arrow {
        width: 20px;
        height: 20px;
    }
    
    .atividade-description {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .atividade-toggle {
        grid-template-columns: 45px 1fr auto;
        gap: 10px;
        padding: 15px;
    }
    
    .atividade-number {
        width: 35px;
        height: 35px;
    }
}

/* ===================================
   SINGLE ATIVIDADE
   =================================== */

.atividade-single-wrapper {
    padding: 80px 0 100px 0;
}

/* Header do Single */
.atividade-single-header {
    text-align: center;
    margin-bottom: 60px;
}

.atividade-single-header .title-border {
    display: block;
    max-width: 200px;
    height: auto;
    margin: 0 auto;
}

/* Conteúdo do Single */
.atividade-single-content {
    line-height: 1.8;
    margin-bottom: 60px;
}

.atividade-single-content p {
    margin: 0 0 20px 0;
}

.atividade-single-content p:last-child {
    margin-bottom: 0;
}

.atividade-single-content h2,
.atividade-single-content h3,
.atividade-single-content h4 {
    margin: 30px 0 15px 0;
}

.atividade-single-content h2:first-child,
.atividade-single-content h3:first-child,
.atividade-single-content h4:first-child {
    margin-top: 0;
}

.atividade-single-content ul,
.atividade-single-content ol {
    margin: 0 0 20px 30px;
}

.atividade-single-content li {
    margin-bottom: 10px;
}

/* Botão Voltar */
.atividade-single-back {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background-color: #1e3a52;
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background-color: #2c5470;
    color: #ffffff;
    transform: translateX(-5px);
}

.btn-back svg {
    flex-shrink: 0;
}

@media (max-width: 999px) {
    .atividade-single-header h1 {
        font-size: 30px;
    }
}

/* Responsive Single */
@media (max-width: 768px) {
    .atividade-single-wrapper {
        padding: 60px 0 80px 0;
    }
    
    .atividade-single-header {
        margin-bottom: 40px;
    }

    .atividade-single-header h1 {
        font-size: 25px;
    }
    
    .atividade-single-content {
        margin-bottom: 40px;
    }
}