header {
    background: var(--primary);
    color: white;
    padding: 0.7rem 1rem;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    height: var(--topoHeight);
    min-height: var(--topoHeight);
    max-height: var(--topoHeight);
}

.header-container {
    display: flex;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    justify-content: space-between;
    height: 100%;
}

.logo-title {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.material-icons.spin {
    animation: spin 1.5s linear infinite;
    font-size: 24px;
    vertical-align: middle;
    color: #ffb300; /* cor do spinner */
}

.logo-title h1 {
    margin: 0;
    word-spacing: normal;
    white-space: normal;
    line-height: 1.2;
}

header img.logo {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: white;
    padding: 4px;
    transition: var(--transition);
}

header h1 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    color: white;
}

/* Menu Desktop */
.desktop-nav {
    margin-left: 2rem;
    /* afasta da logo */
    padding-left: 20px;
    /* zera se não quiser recuo interno */
    border: none;
    box-shadow: none;
    /* garante que não tenha sombra */
    background-color: transparent;
    /* tira o fundo */
    gap: 1rem;
    white-space: nowrap;
}

.desktop-nav a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: var(--transition);
    font-size: 0.95rem;
    position: relative;
}

.desktop-nav a:hover,
.desktop-nav a:focus,
.desktop-nav a.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus::after,
.desktop-nav a.active::after {
    width: 100%;
}

/* Menu Mobile */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 101;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: var(--transition);
}

.mobile-menu-btn:hover,
.mobile-menu-btn:focus {
    background: rgba(255, 255, 255, 0.15);
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100%;
    background: white;
    z-index: 100;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    padding: 80px 20px 20px;
    overflow-y: auto;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav a {
    display: block;
    padding: 15px;
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid #e2e8f0;
    transition: var(--transition);
    border-radius: 8px;
    margin-bottom: 5px;
}

.mobile-nav a:hover,
.mobile-nav a:focus,
.mobile-nav a.active {
    background: var(--primary-light);
    color: var(--primary);
}

.close-menu-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--dark);
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.close-menu-btn:hover,
.close-menu-btn:focus {
    background: var(--primary-light);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Seção Hero com fundo gradiente */
.hero {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: white;
    padding: 5rem 1rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
    /* centraliza se tiver espaço sobrando */
}

.hero-buttons .button {
    flex: 1 1 150px;
    /* base fixa menor, flex-grow e shrink para ajustar */
    max-width: 200px;
    /* máximo pra não ficar muito largo */
    text-align: center;
    box-sizing: border-box;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)" /><circle cx="150" cy="100" r="50" fill="rgba(255,255,255,0.03)" /><circle cx="80" cy="180" r="30" fill="rgba(255,255,255,0.04)" /></svg>');
    background-size: 150px;
    opacity: 0.3;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: white;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: auto;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.button {
    display: inline-block;
    background: white;
    color: var(--primary);
    padding: 0.9rem 2.2rem;
    border-radius: 999px;
    font-weight: bold;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
    border: 2px solid transparent;
}

.button:hover,
.button:focus {
    background: #e0e7ff;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-light);
    outline: none;
}

.section {
    padding: 4rem 1rem;
    max-width: 1200px;
    margin: auto;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    position: relative;
    color: var(--dark);
}

.section-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary);
    margin: 10px auto;
    border-radius: 2px;
}

.section p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    color: var(--text);
    line-height: 1.8;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--card-bg);
    padding: 2rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    /* transform: translateY(-10px); */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.ondevou-icons {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    font-size: 48px;
    border-radius: 50%;
    margin: 0 auto 0.5rem;
    transition: var(--transition);
    position: relative;
}

.ondevou-icons.red-text {
    background: linear-gradient(135deg, #f87171, #ef4444) !important;
    color: #ffffff !important;
}

.ondevou-icons img {
    /* ajuste conforme necessário */
    width: 80%;
    height: auto;
    object-fit: contain;
    border-radius: 50%;
    /* opcional se quiser imagem arredondada */
}

.ondevou-icons.slash::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(45deg,
            transparent 0%,
            transparent 45%,
            rgba(255, 0, 0, 0.5) 50%,
            transparent 55%,
            transparent 100%);
    z-index: 2;
}

.card:hover .ondevou-icons {
    transform: scale(1.1) rotate(5deg);
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.card p {
    font-size: 1rem;
    color: var(--text);
    text-align: center;
    margin-bottom: 1rem;
    line-height: 1.7;
    flex-grow: 1;
}

/* Seção de acesso à plataforma */
.perfil {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    max-width: 700px;
    margin: 4rem auto;
    position: relative;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.perfil::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.perfil h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.perfil p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    color: var(--text);
}

.acesso-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 0.9rem 2.2rem;
    border-radius: 999px;
    font-weight: bold;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    position: relative;
    z-index: 2;
    font-size: 1.1rem;
    border: 2px solid transparent;
}

.acesso-btn:hover,
.acesso-btn:focus {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
    outline: none;
}

/* Fale Conosco */
.contact {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
    position: relative;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.contact::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.contact h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    color: var(--text);
    padding: 10px 15px;
    border-radius: 8px;
    transition: var(--transition);
}

.contact-item:hover {
    background: var(--primary-light);
}

.contact-item i {
    color: var(--primary);
    font-size: 1.3rem;
    min-width: 24px;
}

.footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 0.5rem 0.5rem;
    font-size: 1rem;
    position: relative;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.footer .logo {
    width: 70px;
    height: 70px;
    margin-bottom: 0.2rem;
    background: white;
    padding: 8px;
    border-radius: 12px;
}

.footer .company-info {
    font-size: 1rem;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
    color: #cbd5e1;
}

.footer a {
    color: #93c5fd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: white;
    text-decoration: underline;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

#backToTop:hover,
#backToTop:focus {
    background: var(--primary-dark);
    transform: translateY(-3px);
    outline: none;
}

/* Seção de depoimentos */
.testimonials {
    display: none;
    /* Mantido como none conforme solicitado */
}

/* Menu responsivo */
@media (max-width: 992px) {
    .desktop-nav {
        gap: 0.7rem;
    }

    .desktop-nav a {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0.7rem;
    }

    header h1 {
        font-size: 1.2rem;
    }

    .desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero {
        padding: 3rem 1rem 2rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section {
        padding: 3rem 1rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .contact,
    .perfil {
        padding: 2rem 1.5rem;
    }

    .grid {
        grid-template-columns: 1fr;
    }
}

/* Estilo para subseções */
.subsection-title {
    text-align: center;
    font-size: 1.6rem;
    margin: 3rem 0 2rem;
    color: var(--primary);
    position: relative;
}

.subsection-title::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background: var(--primary);
    margin: 10px auto;
    border-radius: 2px;
}