body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: #19232e;
    overflow-x: hidden;
    color: rgb(90, 90, 90);
}

* {
    box-sizing: border-box;
}

.text-bg {
    position: fixed;
    left: 0; top: 0; right: 0; bottom: 0;
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../images/fundo.jpg'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

/* --- Menu Alinhado Horizontalmente com Efeito Slide --- */
.menu {
    position: fixed;
    left: 0; top: 0; width: 100%; height: 90px;
    background-color: #ffffff;
    padding: 0 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    box-sizing: border-box;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: transform 0.4s ease-in-out; /* Controla a suavidade do slide up/down */
    transform: translateY(0);
}

/* Nova classe injetada via JS para fazer o menu desaparecer para cima */
.menu--hidden {
    transform: translateY(-100%);
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 10px;
}

.menu h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: #0099db;
}

.menu ul {
    list-style: none;
    display: flex; 
    flex-direction: row; 
    gap: 25px;
    margin: 0;
    padding: 0;
}

.menu ul li a {
    text-decoration: none;
    color: #555;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}

.menu ul li a:hover {
    color: #0099db;
}

/* --- Layout Centralizado --- */
.content-area {
    margin-top: 90px;
    padding: 70px 24px 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 90px);
    box-sizing: border-box;
}

.text-wrapper {
    width: 100%;
    max-width: 1050px;
    z-index: 2;
}

.text-box {
    background: linear-gradient(135deg, rgba(0,153,219,0.97), rgba(7,96,142,0.95));
    padding: 70px 75px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    color: white;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.text-box::before,
.text-box::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    filter: blur(10px);
    animation: floatAccent 10s ease-in-out infinite alternate;
}

.text-box::before {
    width: 220px;
    height: 220px;
    right: -60px;
    top: -80px;
}

.text-box::after {
    width: 180px;
    height: 180px;
    left: -70px;
    bottom: -60px;
    animation-duration: 12s;
}

@keyframes floatAccent {
    from { transform: translateY(0px) scale(1); }
    to { transform: translateY(12px) scale(1.05); }
}

/* --- Menu de Sub-Abas Internas (Ferramentas & Firewall) --- */
.submenu-ferramentas {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 15px;
    flex-wrap: wrap;
}

.intro-panel {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    padding: 18px 20px;
    margin: 12px 0 18px;
    backdrop-filter: blur(4px);
}

.intro-panel p {
    margin: 0;
    line-height: 1.6;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.94);
}

.stat-grid,
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 16px 0 24px;
}

.stat-card,
.info-card {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-card:hover,
.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
}

.stat-card strong {
    display: block;
    font-size: 24px;
    margin-bottom: 6px;
    color: #ffffff;
}

.stat-card span,
.info-card h4,
.info-card p {
    color: #ffffff;
}

.info-card h4 {
    margin: 0 0 8px;
    font-size: 16px;
}

.info-card p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    opacity: 0.9;
}

.sub-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 20px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.sub-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

summary {
    transition: background-color 0.25s ease;
}

summary:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.sub-btn.active {
    background: white;
    color: #0099db;
    border-color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.tool-content-wrapper {
    background: rgba(0, 0, 0, 0.15);
    padding: 25px;
    border-radius: 6px;
    margin-top: 15px;
    min-height: 120px;
}

.tool-content h4, .fw-content h4 {
    margin-top: 0;
    font-size: 20px;
    color: #fff;
    border-left: 3px solid white;
    padding-left: 10px;
}

.tool-content p, .fw-content p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.9);
}

/* --- Tipografia e Blocos de Conteúdo --- */
#welcome-para h1 {
    font-size: 52px; 
    margin: 0;
    line-height: 1.1;
    color: white !important;
}

#welcome-para p {
    font-size: 20px;
    line-height: 1.5;
    color: white;
}

.section-title {
    color: white;
    font-size: 32px;
    margin-bottom: 25px;
}

.impacto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.card-impacto {
    background: white; 
    color: #333;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    transition: 0.3s;
}

.card-impacto h4 { color: #0099db; margin: 0 0 10px 0; font-size: 18px; }
.card-impacto p { margin: 0; font-size: 14px; line-height: 1.5; }

.nis2-highlight {
    background: rgba(255, 255, 255, 0.1);
    border-left: 4px solid #ffffff;
    padding: 20px;
    border-radius: 0 4px 4px 0;
    margin: 25px 0;
}
.nis2-highlight h3 { margin: 10px 0 5px 0; color: white; }
.nis2-highlight p { margin: 0; font-size: 15px; }

.badge {
    background: #e74c3c;
    color: white;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 3px;
}

/* --- Responsividade Geral --- */
@media (max-width: 768px) {
    .menu {
        padding: 0 20px;
    }
    .menu ul {
        display: none; 
    }
    .content-area {
        padding: 50px 16px 70px;
    }
    .text-box { padding: 32px 24px; border-radius: 18px; }
    #welcome-para h1 { font-size: 36px; }
    .section-title { font-size: 26px; }
    .stat-grid, .info-grid {
        grid-template-columns: 1fr;
    }
}