/* Variáveis CSS para cores */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #f39c12;
    --text-color: #ecf0f1;
    --light-gray: #bdc3c7;
    --dark-gray: #7f8c8d;
    --background-light: #ffffff;
    --background-dark: #2c3e50;
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--primary-color);
    background-color: #f5f7fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Cabeçalho */
header {
    background-color: var(--background-dark);
    color: var(--text-color);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}

.logo a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.logo a:hover {
    color: var(--accent-color);
}

.main-nav ul {
    list-style: none; /* Remove os marcadores de lista */
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 0;
}

.main-nav ul li {
    margin: 0;
}

.main-nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: block;
}

.main-nav ul li a:hover {
    background-color: var(--secondary-color);
    color: white;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.8rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--text-color);
    text-align: center;
    padding: 120px 20px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,149.3C960,160,1056,160,1152,138.7C1248,117,1344,75,1392,53.3L1440,32L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom center;
    background-size: cover;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 35px;
    position: relative;
    z-index: 1;
    opacity: 0.95;
}

/* Botões CTA */
.btn-cta {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 14px 32px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.btn-cta:hover {
    background-color: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}

.btn-read-more {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-read-more:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

/* Artigos em Grid */
.articles-grid {
    padding: 60px 0;
}

.articles-grid h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.articles-grid h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-radius: 2px;
}

.articles-grid .container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 35px;
}

.article-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.article-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.article-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 600;
    line-height: 1.4;
}

.article-card p {
    font-size: 0.95rem;
    color: var(--dark-gray);
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.article-card .btn-read-more {
    align-self: flex-start;
}

/* Seção CTA inferior */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--text-color);
    text-align: center;
    padding: 80px 20px;
    margin-top: 60px;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 35px;
    opacity: 0.95;
}

/* Rodapé */
footer {
    background-color: var(--background-dark);
    color: var(--text-color);
    padding: 40px 0;
    text-align: center;
    margin-top: 60px;
}

.footer-links ul {
    list-style: none; /* Remove os marcadores de lista */
    padding: 0;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
}

.footer-links ul li a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-links ul li a:hover {
    color: var(--accent-color);
}

footer p {
    font-size: 0.9rem;
    color: var(--light-gray);
    margin-top: 15px;
}

/* Estilos para páginas internas */
main .container h1 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
    padding-top: 40px;
    font-weight: 700;
}

main .container p {
    margin-bottom: 20px;
    color: var(--primary-color);
    line-height: 1.8;
}

/* Formulário de Contato */
.contact-form {
    max-width: 600px;
    margin: 40px auto;
    padding: 40px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    color: var(--primary-color);
    background-color: #f9f9f9;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    background-color: white;
}

.contact-form button.btn-cta {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    cursor: pointer;
    border: none;
}

/* Estilos para páginas de artigos */
.article-page {
    padding: 50px 0;
    background-color: #f5f7fa;
}

.article-content {
    background-color: white;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    max-width: 900px;
    margin: 0 auto;
}

.article-content h1 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    line-height: 1.3;
    font-weight: 700;
}

.article-content h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-top: 50px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--secondary-color);
    font-weight: 600;
}

.article-content h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-top: 35px;
    margin-bottom: 20px;
    font-weight: 600;
}

.article-content p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #333;
    margin-bottom: 25px;
}

.article-content ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 15px;
}

.article-content ol {
    list-style: decimal;
    margin-left: 20px;
    margin-bottom: 15px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 40px 0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.article-content em {
    display: block;
    text-align: center;
    font-size: 0.9rem;
    color: var(--dark-gray);
    margin-top: -30px;
    margin-bottom: 40px;
    font-style: italic;
}

.article-content a {
    color: var(--secondary-color);
    text-decoration: none;
    border-bottom: 1px solid var(--secondary-color);
    transition: color 0.3s ease;
}

.article-content a:hover {
    color: #2980b9;
}

.article-content strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* Responsividade */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }

    .logo {
        flex: 1;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        width: 100%;
        order: 3;
    }

    .main-nav ul {
        flex-direction: column;
        display: none;
        width: 100%;
        text-align: center;
        padding: 20px 0;
        gap: 0;
    }

    .main-nav ul.active {
        display: flex;
    }

    .main-nav ul li {
        margin: 0;
        width: 100%;
    }

    .main-nav ul li a {
        padding: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-nav ul li:last-child a {
        border-bottom: none;
    }

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

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

    .articles-grid h2 {
        font-size: 2rem;
    }

    .article-card {
        margin-bottom: 20px;
    }

    .article-card h3 {
        font-size: 1.2rem;
    }

    .article-card p {
        font-size: 0.85rem;
    }

    .cta-section h2 {
        font-size: 2rem;
    }

    .cta-section p {
        font-size: 1rem;
    }

    .footer-links ul {
        flex-direction: column;
        gap: 10px;
    }

    .article-content {
        padding: 30px;
    }

    .article-content h1 {
        font-size: 2.2rem;
    }

    .article-content h2 {
        font-size: 1.6rem;
    }

    .article-content h3 {
        font-size: 1.3rem;
    }

    .article-content p {
        font-size: 1rem;
    }
}

/* Estilos para o botão de menu responsivo */
.menu-toggle {
    display: none; /* Ocultar por padrão em telas maiores */
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block; /* Exibir em telas menores */
    }

    .main-nav ul {
        display: none; /* Ocultar o menu em telas menores por padrão */
    }

    .main-nav ul.active {
        display: flex; /* Exibir o menu quando a classe 'active' estiver presente */
    }
}

