/* ─── Reset & Base ─────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    background: #f5f5f7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* ─── CSS Variables ─────────────────────────────────────── */
:root {
    --purple-dark: #4a1a8a;
    --purple: #6b2fa0;
    --purple-mid: #8b3fc0;
    --pink: #c0306a;
    --orange: #f7931e;
    --orange-light: #ffb347;
    --blue: #1565c0;
    --blue-mid: #1e88e5;
    --blue-light: #42a5f5;
    --white: #ffffff;
    --gray-bg: #f5f5f7;
    --text-dark: #1a1a2e;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.2);
}

/* ─── Header ────────────────────────────────────────────── */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.logo:hover {
    opacity: 0.8;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--purple), var(--orange));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-icon svg {
    width: 26px;
    height: 26px;
    fill: #fff;
}

.logo-text {
    line-height: 1.1;
}

.logo-text span:first-child {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    color: var(--purple-dark);
    letter-spacing: -0.3px;
}

.logo-text span:last-child {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--orange);
    letter-spacing: 2px;
    text-transform: uppercase;
}

nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: #444;
    position: relative;
    padding-bottom: 3px;
    transition: color 0.2s;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--purple);
    transition: width 0.3s;
}

nav a:hover {
    color: var(--purple);
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

nav a.active {
    color: var(--purple);
    font-weight: 600;
}

.btn-entrar {
    background: linear-gradient(135deg, var(--purple), var(--pink));
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s !important;
    box-shadow: 0 4px 16px rgba(107, 47, 160, 0.35);
}

.btn-entrar:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(107, 47, 160, 0.5) !important;
}

.btn-entrar::after {
    display: none !important;
}

/* ─── Hero Interno ───────────────────────────────────────── */
.hero-internal {
    background: linear-gradient(135deg, var(--blue-mid), var(--purple-dark));
    min-height: 300px;
    padding: 120px 5% 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-internal::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 40px;
    background: #f5f5f7;
    clip-path: polygon(0 100%, 100% 100%, 0 0);
}

.hero-internal h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 10px;
}

.hero-internal p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 650px;
    margin: 0 auto;
}

/* ─── Conteúdo Atividades ────────────────────────────────── */
.activities-content {
    max-width: 1200px;
    margin: 60px auto 100px;
    padding: 0 5%;
}

/* Filtros */
.filter-section {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.filter-btn {
    background: #fff;
    border: 2px solid #e0e0e0;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, var(--purple), var(--pink));
    color: #fff;
    border-color: transparent;
}

/* ─── Search Bar ────────────────────────────────────────── */
.search-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.search-input {
    width: 100%;
    max-width: 500px;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background: #fff;
    color: #333;
}

.search-input::placeholder {
    color: #999;
}

.search-input:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(107, 47, 160, 0.1);
}

/* Grid de Atividades */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.activity-card {
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.activity-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.activity-header {
    height: 150px;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.activity-header.tipo-dinamica {
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
}

.activity-header.tipo-plano {
    background: linear-gradient(135deg, var(--blue), var(--blue-mid));
}

.activity-header.tipo-recurso {
    background: linear-gradient(135deg, var(--purple-mid), var(--pink));
}

.activity-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.activity-icon svg {
    width: 40px;
    height: 40px;
    stroke: #fff;
    fill: none;
}

.activity-body {
    padding: 25px 20px;
}

.activity-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.activity-card.tipo-dinamica .activity-badge {
    background: rgba(247, 147, 30, 0.15);
    color: var(--orange);
}

.activity-card.tipo-plano .activity-badge {
    background: rgba(21, 101, 192, 0.15);
    color: var(--blue);
}

.activity-card.tipo-recurso .activity-badge {
    background: rgba(192, 48, 106, 0.15);
    color: var(--pink);
}

.activity-title {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 700;
}

.activity-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}

.activity-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #999;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

.activity-level {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.activity-level span {
    color: var(--purple);
    font-weight: 600;
}

.activity-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(107, 47, 160, 0.08);
    border-radius: 20px;
    color: var(--purple-dark);
    font-size: 0.8rem;
    font-weight: 500;
    margin-right: 8px;
}

/* ─── Card Actions (Botões de Link e PDF) ──────────────── */
.card-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
    flex-wrap: wrap;
}

.btn-action {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1.5px solid transparent;
}

.btn-video {
    background-color: rgba(247, 147, 30, 0.1);
    color: var(--orange);
    border-color: var(--orange);
}

.btn-video:hover {
    background-color: var(--orange);
    color: #fff;
    box-shadow: 0 4px 12px rgba(247, 147, 30, 0.3);
}

.btn-pdf {
    background-color: rgba(107, 47, 160, 0.1);
    color: var(--purple);
    border-color: var(--purple);
}

.btn-pdf:hover {
    background-color: var(--purple);
    color: #fff;
    box-shadow: 0 4px 12px rgba(107, 47, 160, 0.3);
}

/* ─── Footer ────────────────────────────────────────────── */
footer {
    background: linear-gradient(135deg, var(--purple-dark), #2d0a5a);
    padding: 32px 5%;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
}

.footer-links a {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-divider {
    color: rgba(255, 255, 255, 0.3);
}

footer p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
}

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 900px) {
    .activities-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 640px) {
    nav {
        gap: 16px;
    }

    nav a {
        font-size: 0.78rem;
    }

    .hero-internal {
        padding: 100px 5% 40px;
    }

    .hero-internal h1 {
        font-size: 2rem;
    }

    .activities-grid {
        grid-template-columns: 1fr;
    }

    .filter-section {
        gap: 10px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

.logo-img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    /* Garante que a imagem não fique esticada */
    border-radius: 12px;
    /* Mantém as bordas arredondadas do design original */
    flex-shrink: 0;
}

.filter-btn {
    padding: 10px 24px;
    border: 2px solid var(--purple);
    background: transparent;
    color: var(--purple);
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: var(--purple);
    color: #fff;
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--purple), var(--pink));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(107, 47, 160, 0.3);
}

/* Estilização para o link da imagem na navbar */
.nav-img-link {
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.nav-icon {
    height: 35px;
    /* Ajuste essa altura para combinar com o tamanho da sua fonte */
    width: auto;
    transition: transform 0.3s ease;
    cursor: pointer;
}

/* Efeito de aumentar levemente ao passar o mouse */
.nav-icon:hover {
    transform: scale(1.1);
}

/* Ajuste para dispositivos móveis (opcional) */
@media (max-width: 768px) {
    .nav-icon {
        height: 30px;
    }
}

/* Estilização ajustada para a imagem ficar menor */
.nav-img-link {
    display: flex;
    align-items: center;
    padding: 0 8px;
    /* Reduzi um pouco o espaçamento lateral */
}

.nav-icon {
    height: 20px;
    /* Mude aqui: 25px deixa a imagem bem discreta e alinhada ao texto */
    width: auto;
    transition: transform 0.3s ease;
    cursor: pointer;
    object-fit: contain;
    /* Garante que a imagem não distorça */
}

/* Efeito de destaque ao passar o mouse */
.nav-icon:hover {
    transform: scale(1.1);
}