body {
    background-color: #f5f5f5;
}

.ferramentas-page {
    padding: 110px 20px 60px;
}

.ferramentas-layout {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 260px minmax(500px, 1fr) 260px;
    gap: 30px;
    align-items: start;
}

.ferramentas-menu {
    width: 100%;
    display: flex;          
    flex-direction: column; 
    gap: 20px;
}

.menu-categoria {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 20px;
    font-weight: 700;
    color: #2f4050;
    text-decoration: underline;
}

.menu-categoria:hover {
    color: #006e91;
}

.menu-card {
    background-color: #ffffff;
    border: 1px solid #2f4050;
    border-radius: 8px;
    overflow: hidden;
}

.menu-title {
    padding: 15px;
    font-size: 16px;
    font-weight: 700;
    color: #2f4050;
    border-bottom: 1px solid #2f4050;
}

.menu-item {
    min-height: 48px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #444444;
    text-decoration: none;
    font-size: 16px;
    border-bottom: 1px solid #2f4050;
    transition: 0.2s ease;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    background-color: #f6f6f6;
    color: #2f4050;
}

.menu-item.active {
    background-color: #f2f8fa;
    color: #2f4050;
    font-weight: 600;
}

.menu-item.future {
    color: #2f4050;
    cursor: default;
}

.menu-item.future:hover {
    background-color: #2f4050;
    color: #aaaaaa;
}

.menu-arrow {
    font-size: 30px;
    line-height: 18px;
    color: #b6b6b6;
    font-weight: 300;
}

.menu-item {
    min-height: 48px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #444444;
    text-decoration: none;
    font-size: 16px;
    border-bottom: 1px solid #2f4050;
    transition: 0.2s ease;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    background-color: #f6f6f6;
    color: #2f4050;
}

.menu-item.active {
    background-color: #f2f8fa;
    color: #2f4050;
    font-weight: 600;
}

.menu-item.future {
    color: #2f4050;
    cursor: default;
}

.menu-item.future:hover {
    background-color: #2f4050;
    color: #aaaaaa;
}

.menu-arrow {
    font-size: 30px;
    line-height: 18px;
    color: #b6b6b6;
    font-weight: 300;
}

.propaganda-area {
    width: 100%;
}

.propaganda-box > span {
    display: block;
    margin-bottom: 7px;
    text-align: center;
    font-size: 11px;
    color: #999999;
}

.propaganda-placeholder {
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #eeeeee;
    border: 1px dashed #2f4050;
    border-radius: 5px;
    color: #aaaaaa;
    font-size: 13px;
}

/*.propaganda-horizontal-placeholder {
        width: 100%;
        min-height: 150px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #eeeeee;
        border: 1px dashed #cccccc;
        border-radius: 5px;
        color: #aaaaaa;
        font-size: 13px;
        margin-bottom : 30px;
    }
*/
.danfe-info {
    padding: 244px;
    background-color: #ffffff;
    border: 1px solid #2f4050;
    border-radius: 8px;
}

    .danfe-info h2 {
        margin: 0 0 25px;
        font-size: 23px;
        color: #2f4050;
    }



.tools-navbar-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    z-index: 9999;
}

.tools-navbar {
    width: 100%;
    height: 70px;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tools-navbar-container {
    max-width: 1400px;
    height: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
}

.tools-navbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #2f4050;
    height: 100%;
}

.tools-navbar-brand:hover {
    text-decoration: none;
    color: #2f4050;
}

.tools-brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
}

.tools-navbar-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.tools-navbar-title {
    font-family: 'Poppins', sans-serif;
    font-size: 17px; 
    font-weight: 700;
    color: #2f4050;
    letter-spacing: -0.2px;
}

.tools-navbar-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: #18a689;
    text-transform: none; 
    letter-spacing: 0.2px;
}

.tools-footer {
    padding: 30px 0;
    margin-top: 40px;
    background-color: #ffffff; 
    border-top: 1px solid #e7eaec;
}

.tools-footer a:hover {
    color: #27d2b0;
    text-decoration: none;
}

.tools-footer .social-icon {
    margin-bottom: 15px;
}

.tools-footer .social-icon li a {
    font-size: 20px;
    padding: 0 10px;
    color: #18a689;
}

.tools-footer .social-icon li a:hover {
    color: #e8e9e9; 
}

.ferramentas-sidebar{
    position: -webkit-sticky;
    position: sticky;
    top: 20px; 
    align-self: flex-start; 
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (max-width: 768px) {
    .tools-navbar {
        height: 60px;
    }

    .tools-navbar-wrapper {
        height: 60px;
    }

    .tools-navbar-container {
        padding: 0 15px;
    }

    .tools-navbar-logo {
        width: 44px;
        height: 44px;
    }

    .tools-navbar-title {
        font-size: 23px;
    }

    .ferramentas-page {
        padding: 85px 15px 40px;
    }

    .ferramentas-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .propaganda-area {
        display: none;
    }
/* --- Área de Propaganda Lateral --- */
.propaganda-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%; /* Garante que ocupe a largura da barra lateral */
    padding: 0 10px; /* Pequeno respiro lateral */
}

.propaganda-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Item de propaganda (link) */
.propaganda-item {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1; /* Força o quadrado perfeito */
    position: relative; /* Essencial para o posicionamento do conteúdo */
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden; /* Mantém a imagem dentro do quadrado se for maior */
}

/* Efeito Hover */
.propaganda-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

/* Imagem de fundo (preenche o quadrado) */
.propaganda-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ajusta a imagem sem distorcer */
    display: block;
}

/* Conteúdo de texto sobreposto (embaixo) */
.propaganda-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    /* Degradê escuro para garantir legibilidade */
    background: linear-gradient(to top, rgba(26, 42, 60, 0.9) 0%, rgba(26, 42, 60, 0.6) 70%, rgba(26, 42, 60, 0) 100%);
    padding: 20px 15px 15px; /* Mais espaço no topo para o degradê */
    text-align: center;
}

/* Título */
.propaganda-content h4 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 6px 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); /* Sombra no texto */
}

/* Descrição */
.propaganda-content p {
    color: #e0e0e0;
    font-size: 13px;
    margin: 0;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

    .tools-navbar-title {
        font-size: 15px;
    }

    .tools-navbar-subtitle {
        font-size: 10px;
    }
}


/* AJUSTE DOS CARDS DAS FERRAMENTAS */
.ferramentas-section .ferramentas-row {
    display: flex !important;
    justify-content: center !important;
    align-items: stretch !important;
    margin-top: 55px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.ferramentas-section .ferramentas-row > [class*="col-"] {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

.ferramentas-section .ferramenta-card {
    width: 100% !important;
    height: 390px !important;
    margin: 0 auto !important;
    padding: 28px 25px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

/* espaço entre título e cards */
.ferramentas-section > .container > .row:first-child {
    margin-bottom: 0 !important;
}

/* Ícone */
.ferramentas-section .card-icon {
    margin-bottom: 25px !important;
}

/* Título do card */
.ferramentas-section .ferramenta-card h3 {
    margin-top: 10px !important;
    margin-bottom: 18px !important;
}

/* Texto */
.ferramentas-section .ferramenta-card p {
    margin-bottom: auto !important;
}

/* Botão */
.ferramentas-section .ferramenta-card .btn-custom {
    margin-top: 20px !important;
}

/* Desktop */
@media (min-width: 992px) {
    .ferramentas-section .ferramentas-row {
        margin-left: -5px !important;
        margin-right: -5px !important;
    }

    .ferramentas-section .ferramentas-row > .col-lg-4 {
        width: 33.333333% !important;
    }
}

.ferramentas-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    margin-top: 50px !important;
}

.ferramentas-row > div {
    float: none !important;
}

.ferramentas-row .ferramenta-card {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
}

/* Ajuste de sobreposição e exibição das imagens nos banners */
.propaganda-item {
    position: relative;
    display: block;
    overflow: hidden;
    width: 100%;
    min-height: 180px; /* Garante altura mínima para o card */
    border-radius: 8px;
}

.propaganda-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ajusta a imagem mantendo a proporção */
    z-index: 1; /* Coloca a imagem atrás do gradiente de texto */
    display: block !important;
}

.propaganda-content {
    position: relative;
    z-index: 2; /* Garante que o texto fique por cima da imagem */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
    padding: 15px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
/* --- Estilização dos Banners de Propaganda --- */
.propaganda-area {
    width: 250px; /* Largura padrão da coluna de anúncios */
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.propaganda-box {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.propaganda-item {
    position: relative;
    display: block;
    width: 100%;
    height: 200px; /* Força uma altura fixa para o card */
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Força a imagem a preencher todo o container sem sumir */
.propaganda-img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    z-index: 1 !important;
    display: block !important;
}

/* Texto sobreposto na parte inferior */
.propaganda-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
    color: #ffffff;
}

.propaganda-content h4 {
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: bold;
    color: #ffffff;
}

.propaganda-content p {
    margin: 0;
    font-size: 12px;
    color: #e0e0e0;
}