@import url('https://fonts.googleapis.com/css2?family=Advent+Pro:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --primary-dark: #343746;
    --primary-blue: #4682A0;
    --primary-purple: #464BA1;
    --background-light: #F0F0F0;
    --background-white: #FFFFFF;
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --text-gray: #666666;
    --font-family: "Poppins", sans-serif;
    --font-title: "Advent Pro", sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-dark);
    background-color: var(--background-white);
    line-height: 1.6;
}

.navbar {
    background-color: var(--primary-dark);
    padding: 1.5rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.navbar-logo {
    display: flex;
    align-items: center;
}

.logo-text {
    color: var(--text-light);
    font-size: 1.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-family: var(--font-title);
}

.navbar-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.nav-link:hover {
    color: var(--primary-blue);
    background-color: rgba(70, 130, 160, 0.1);
}

.nav-link-footer {
    color: var(--text-light);
}

.nav-link-footer:hover {
    color: var(--primary-dark);
}

.main-content {
    margin: 0 auto;
    /* Centraliza o conteúdo */
    flex: 1;
    background: var(--background-white);
    min-height: 100vh;
}

.content-header {
    background: var(--primary-dark);
    color: var(--text-light);
    padding: 4rem 2rem;
    text-align: center;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.content-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
    font-family: var(--font-title);
}

.content-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

.content-body {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #EEEEEE;
    scroll-margin-top: 70px;
}

.section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-family: var(--font-title);
    padding-bottom: 0;
    border-bottom: none;
}

.section-line-guia {
    width: 100%;
    height: 3px;
    background-color: var(--primary-blue);
    margin-top: 0.5rem;
    margin-bottom: 2rem;
    border-radius: 2px;
    max-width: 1200px;
}

.nav-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.nav-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    border: 3px solid var(--primary-blue);
    border-radius: 12px;
    background-color: var(--background-white);
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none !important;
    color: var(--text-dark);
    min-height: 150px;
}

.nav-card-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-blue);
    transition: color 0.3s ease;
}

.nav-card:hover {
    border: 3px solid var(--primary-dark);
}

.nav-card:hover .nav-card-icon {
    color: var(--primary-dark);
}

.nav-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    font-family: var(--font-title);
}

.tool-card {
    background: var(--background-white);
    border-radius: 8px;
    margin: 25px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #ddd;
    overflow: hidden;
}

.tool-card-header {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--background-light);
    border-left: 4px solid var(--primary-blue);
    transition: background-color 0.3s ease;
}

.tool-card-header:hover {
    background-color: #E8E8E8;
}

.tool-card-header.active {
    background-color: var(--primary-blue);
    color: var(--text-light);
    border-left-color: var(--primary-dark);
}

.tool-card-header.active h3 {
    color: var(--text-light);
}

.tool-card-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0;
    font-family: var(--font-title);
    transition: color 0.3s ease;
}

.tool-card-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.tool-card-header.active .tool-card-icon {
    transform: rotate(180deg);
    color: var(--text-light);
}

.tool-card-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
    padding: 0 25px;
}

.tool-card-content.open {
    max-height: 2000px;
    padding: 25px;
    border-top: 1px solid #ddd;
}

.tool-card-content h4 {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin: 15px 0 5px 0;
    font-weight: 600;
}

.tool-card-content p {
    margin-bottom: 15px;
    text-align: justify;
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.8;
}

.example-box,
.tip-box {
    padding: 15px;
    margin: 15px 0;
    border-radius: 6px;
}

.example-box {
    background: #E8EEF2;
    border-left: 4px solid var(--primary-blue);
}

.tip-box {
    background: #E8EEF2;
    border-left: 4px solid var(--primary-purple);
}

.example-box h4,
.tip-box h4 {
    color: var(--primary-dark);
    margin-top: 0;
}

.conclusion-box {
    background: var(--primary-blue);
    color: var(--text-light);
    border-radius: 8px;
    padding: 30px;
    margin: 30px 0;
    border-left: 4px solid var(--primary-dark);
    text-align: center;
}

.conclusion-box h3 {
    color: var(--text-light);
    margin-bottom: 15px;
}

.conclusion-box p {
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.content-body a {
    color: var(--primary-blue);
    text-decoration: none;
    /* Remove sublinhado padrão de links */
    transition: color 0.3s ease;
}

.content-body a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.content-body strong {
    color: var(--primary-dark);
    font-weight: 600;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: var(--text-light);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(70, 130, 160, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(70, 130, 160, 0.4);
    background: var(--primary-dark);
}


.footer {
    background-color: var(--primary-blue);
    color: var(--text-light);
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
}

/* Responsivo */

@media (max-width: 768px) {
    .content-header {
        padding: 2rem 1rem;
    }

    .content-header h1 {
        font-size: 2rem;
    }

    .content-body {
        padding: 2rem 1rem;
    }

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

    .nav-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .navbar-menu {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }

    .logo-text {
        font-size: 1rem;
    }
}

@media (max-width: 460px) {
    .navbar {
        padding: 1rem;
    }

    .navbar-container {
        flex-direction: row;
        gap: 0.5rem;
    }

    .logo-text {
        font-size: 0.8rem;
    }

    .navbar-menu {
        flex-direction: row;
        gap: 0.5rem;
        width: 100%;
    }

    .nav-link {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 326px) {
    .navbar {
        padding: 0.5rem;
    }

    .navbar-container {
        flex-direction: row;
        gap: 0.2rem;
    }

    .logo-text {
        font-size: 0.7rem;
        font-weight: 400;
    }

    .navbar-menu {
        flex-direction: row;
        gap: 0.2rem;
        width: 100%;
        font-size: 0.5rem;
        font-weight: 400;
    }

    .nav-link {
        width: 100%;
        text-align: center;
    }
}