/* ─── 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: #fff;
    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);
    --teal: #00897b;
    --teal-light: #e0f2f1;
    --text-dark: #1a1a2e;
}

/* ─── 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;
}

/* Estilo base do botão */
/* Estilo idêntico ao da página Atividades */
.btn-entrar {
    display: inline-block;
    /* OBRIGATÓRIO: Sem isso o botão não se move para cima */
    background: linear-gradient(135deg, var(--purple), var(--pink));
    color: #fff !important;
    padding: 10px 24px;
    /* Define o tamanho exato */
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    /* Transição suave para o movimento e a sombra */
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease !important;
    box-shadow: 0 4px 16px rgba(107, 47, 160, 0.35);
    border: none;
    cursor: pointer;
}

/* Efeito de "ir para frente"/subir ao aproximar o mouse */
.btn-entrar:hover {
    transform: translateY(-3px) !important;
    /* Faz o movimento de elevação */
    box-shadow: 0 8px 24px rgba(107, 47, 160, 0.5) !important;
    color: #fff !important;
    opacity: 1;
}

/* Remove qualquer linha ou efeito extra que venha do menu */
.btn-entrar::after {
    display: none !important;
}

/* ─── Perfil e Dropdown ─────────────────────────────────── */
.profile-menu {
    position: relative;
    display: inline-block;
}

.avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    user-select: none;
    box-shadow: 0 4px 12px rgba(107, 47, 160, 0.25);
    transition: transform 0.2s, box-shadow 0.2s;
}

.avatar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(107, 47, 160, 0.4);
}

.dropdown-menu {
    position: absolute;
    top: 55px;
    right: 0;
    background: #fff;
    min-width: 180px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-hover);
    display: none;
    /* Oculto por padrão */
    flex-direction: column;
    overflow: hidden;
    z-index: 1001;
    border: 1px solid #f0f0f0;
}

.dropdown-menu.show {
    display: flex;
    animation: fadeInDown 0.2s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-header {
    padding: 14px 16px;
    background: var(--gray-bg);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--purple-dark);
    border-bottom: 1px solid #eee;
}

.dropdown-menu a {
    padding: 12px 16px;
    font-size: 0.85rem;
    color: #444;
    transition: background 0.2s, color 0.2s;
}

.dropdown-menu a::after {
    display: none;
    /* Remove aquela barrinha roxa padrão do menu global */
}

.dropdown-menu a:hover {
    background: #f9f9f9;
    color: var(--purple);
}

.dropdown-menu hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 0;
}

/* ─── Hero ──────────────────────────────────────────────── */
.hero {
    /* Criamos uma camada preta com 50% de transparência e depois chamamos a sua imagem */
    background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), url('../../imagens/fundo.png');

    /* Ajustes para a imagem cobrir toda a área sem distorcer */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    min-height: 520px;
    padding: 110px 5% 60px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
    max-width: 520px;
}

.hero-text h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 8px;
}

.hero-text h1 span {
    color: var(--orange-light);
    display: block;
}

.hero-text p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 32px;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--blue-mid), var(--blue));
    color: #fff;
    padding: 13px 28px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 18px rgba(21, 101, 192, 0.4);
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(21, 101, 192, 0.55);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #fff;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    border: 2.5px solid rgba(255, 255, 255, 0.7);
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
    text-decoration: none;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    transform: translateY(-3px);
}

.hero-image {
    flex: 0 0 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Placeholder illustration when image is missing */
.hero-illustration {
    width: 380px;
    height: 280px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.hero-illustration img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

/* Fallback SVG scene if image is missing */
.hero-illustration .fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    text-align: center;
    padding: 20px;
}

.hero-illustration .fallback svg {
    width: 80px;
    height: 80px;
    opacity: 0.6;
}

/* ─── Feature Cards Row ─────────────────────────────────── */
.features {
    background: #fff;
    padding: 0 5%;
    display: flex;
    justify-content: center;
}

.features-inner {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    transform: translateY(-36px);
}

.feat-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 28px 24px;
    border-radius: var(--radius-md);
    color: #fff;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s;
    text-decoration: none;
}

.feat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feat-card:nth-child(1) {
    background: linear-gradient(135deg, var(--orange), #ff6b35);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.feat-card:nth-child(2) {
    background: linear-gradient(135deg, var(--pink), #e91e8c);
    border-radius: 0;
}

.feat-card:nth-child(3) {
    background: linear-gradient(135deg, var(--blue-mid), var(--blue));
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.feat-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feat-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.feat-icon svg {
    width: 26px;
    height: 26px;
    fill: #fff;
}

.feat-body h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.feat-body p {
    font-size: 0.78rem;
    opacity: 0.88;
    line-height: 1.4;
}

/* ─── Discover Section ──────────────────────────────────── */
.discover {
    padding: 20px 5% 64px;
    text-align: center;
    background: #fff;
}

.discover h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--purple-dark);
    margin-bottom: 10px;
}

.discover>p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 48px;
}

.discover-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.disc-card {
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
    cursor: pointer;
    text-align: left;
}

.disc-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.disc-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

/* Fallback colored banner when image is missing */
.disc-card-banner {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.disc-card-banner svg {
    width: 72px;
    height: 72px;
}

.disc-card:nth-child(1) .disc-card-banner {
    background: linear-gradient(135deg, #3a1060, #8b3fc0);
}

.disc-card:nth-child(2) .disc-card-banner {
    background: linear-gradient(135deg, var(--orange), #ff6b35);
}

.disc-card:nth-child(3) .disc-card-banner {
    background: linear-gradient(135deg, #1a237e, var(--blue-mid));
}

.disc-card-body {
    padding: 20px;
}

.disc-card-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 8px;
}

.disc-card-body p {
    font-size: 0.82rem;
    color: #666;
    line-height: 1.5;
}

/* ─── Newsletter/Feedback ───────────────────────────────── */
.newsletter {
    background: linear-gradient(135deg, #f5f0ff, #fdf0e8);
    padding: 64px 5%;
    text-align: center;
}

.newsletter h2 {
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--purple-dark);
    margin-bottom: 10px;
}

.newsletter p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 32px;
}

.newsletter p strong {
    color: var(--orange);
}

/* ─── Feedback Form ─────────────────────────────────────── */
.feedback-form {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 0 auto 40px;
    gap: 16px;
}

.feedback-inputs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feedback-form input,
.feedback-form textarea {
    padding: 14px 18px;
    border: 2px solid #ddd;
    border-radius: var(--radius-sm);
    outline: none;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: #333;
    background: #fff;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.feedback-form input::placeholder,
.feedback-form textarea::placeholder {
    color: #aaa;
}

.feedback-form input:focus,
.feedback-form textarea:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(107, 47, 160, 0.1);
}

.feedback-form textarea {
    resize: vertical;
    min-height: 120px;
    font-family: 'Poppins', sans-serif;
}

.feedback-btn {
    background: linear-gradient(135deg, var(--purple), var(--purple-dark));
    color: #fff;
    border: none;
    padding: 14px 32px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: opacity 0.2s, transform 0.2s;
    box-shadow: 0 4px 16px rgba(107, 47, 160, 0.3);
    max-width: 200px;
    margin: 0 auto;
}

.feedback-btn:hover {
    opacity: 0.88;
    transform: translateY(-2px);
}

.feedback-btn:active {
    transform: translateY(0);
}

/* ─── Legacy Newsletter Form (keep for responsive) ────── */
.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto 40px;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.newsletter-form input {
    flex: 1;
    padding: 16px 24px;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: #333;
    background: #fff;
}

.newsletter-form input::placeholder {
    color: #aaa;
}

.newsletter-form button {
    background: linear-gradient(135deg, var(--purple), var(--purple-dark));
    color: #fff;
    border: none;
    padding: 16px 28px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
}

.newsletter-form button:hover {
    opacity: 0.88;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}

.social-icon svg {
    width: 22px;
    height: 22px;
    fill: #fff;
}

.si-fb {
    background: #1877f2;
}

.si-ig {
    background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
}

.si-yt {
    background: #ff0000;
}

.si-tw {
    background: #1da1f2;
}

/* ─── 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) {
    .hero-inner {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        flex: none;
        width: 100%;
    }

    .hero-illustration {
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
    }

    .features-inner {
        grid-template-columns: 1fr;
        transform: translateY(-20px);
    }

    .feat-card:nth-child(1),
    .feat-card:nth-child(2),
    .feat-card:nth-child(3) {
        border-radius: var(--radius-md);
    }

    .discover-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    nav {
        gap: 16px;
    }

    nav a {
        font-size: 0.78rem;
    }

    .newsletter-form {
        flex-direction: column;
        border-radius: var(--radius-md);
    }

    .newsletter-form input {
        border-radius: var(--radius-md) var(--radius-md) 0 0;
    }

    .newsletter-form button {
        border-radius: 0 0 var(--radius-md) var(--radius-md);
        padding: 14px;
    }

    .feedback-form {
        max-width: 100% !important;
        padding: 0 16px;
    }

    .feedback-form input,
    .feedback-form textarea {
        font-size: 16px;
    }

    .feedback-btn {
        max-width: 100%;
    }
}

.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;
}

/* 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);
}

/* ... estilos anteriores ... */

/* ─── Seção Tudo+ (Inclusão) ────────────────────────────── */
.banner-inclusao {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 5%;
}

.banner-inclusao-container {
    background: linear-gradient(135deg, #f5f8ff, var(--teal-light));
    border-radius: var(--radius-lg);
    padding: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 137, 123, 0.15);
    position: relative;
    overflow: hidden;
}

/* Círculo decorativo de fundo */
.banner-inclusao-container::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    background: var(--teal);
    opacity: 0.05;
    border-radius: 50%;
    filter: blur(40px);
}

.banner-content {
    flex: 1;
    z-index: 1;
}

.badge-novo {
    background: var(--teal);
    color: #fff;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: inline-block;
    margin-bottom: 16px;
}

.banner-content h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.2;
}

.banner-content h2 span {
    color: var(--teal);
}

.banner-content p {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.7;
    margin-bottom: 30px;
    max-width: 580px;
}

.banner-content p strong {
    color: var(--purple-dark);
    font-weight: 700;
}

.btn-inclusao {
    background: linear-gradient(135deg, var(--teal), #00695c);
    color: #fff;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    display: inline-flex;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 137, 123, 0.25);
    text-decoration: none;
}

.btn-inclusao:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 137, 123, 0.4);
    filter: brightness(1.1);
}

.banner-img-wrapper {
    flex: 0 0 280px;
    display: flex;
    justify-content: center;
    z-index: 1;
}

.banner-img-wrapper img {
    width: 100%;
    height: auto;
    animation: floatImage 4s ease-in-out infinite;
}

@keyframes floatImage {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@media (max-width: 850px) {
    .banner-inclusao-container {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }

    .banner-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .banner-img-wrapper {
        flex: 0 0 180px;
    }
}