/*
Theme Name: AVM - Sistemas de Segurança
Theme URI: https://avm-seguranca.pt/
Author: AVM - Sistemas de Segurança
Author URI: https://avm-seguranca.pt/
Version: 1.0
Text Domain: AVM - Sistemas de Segurança
*/

/* =WordPress Core
-------------------------------------------------------------- */
.alignnone {
    margin: 0 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float:right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.mt-50{
    margin-top: 50px;
}
a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

a img.alignnone {
    margin: 5px 20px 20px 0;
}

a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto
}

@media (max-width: 400px) {
    
    /* 1. Força o Logótipo e o Botão a ficarem na mesma linha */
    .navbar > .container {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding-left: 10px !important; /* Ganha 5px de cada lado */
        padding-right: 10px !important;
    }

    /* 2. Reduz o tamanho do logo para libertar espaço para o botão */
    .navbar-brand {
        margin-right: 0 !important;
        padding: 5px 0 !important;
    }

    .navbar-brand img {
        max-width: 130px !important; /* Ajuste este valor se necessário */
        height: auto !important;
    }

    /* 3. Garante que o botão não tenha margens desnecessárias */
    .navbar-toggle {
        margin: 0 !important;
        padding: 10px 8px !important;
    }
}

/* Container Geral da Sidebar */
.sidebar-inner {
    padding: 20px;
    background: #f9f9f9; /* Fundo suave */
    border-radius: 15px;
}

.sidebar-title {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 700;
}

/* Estilo dos Itens da Lista */
.sidebar-post-list {
    list-style: none;
    padding: 0;
}

.nav-item-sidebar {
    margin-bottom: 15px;
}

.nav-link-sidebar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 22px;
    border-radius: 10px;
    text-decoration: none;
    color: #444;
    font-weight: 500;
    transition: 0.3s all ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.nav-link-sidebar:hover {
    background: var(--primary-color);
    color: #fff !important;
    transform: translateX(5px);
}

.link-icon-blue {
    color: #007ead;
    font-size: 1.2rem;
    transition: 0.3s;
}

.nav-link-sidebar:hover .link-icon-blue {
    color: #fff;
}

/* Card de Orçamento */
.cta-sidebar-card {
    background: #007ead;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    color: #fff;
    margin-top: 30px;
}

.cta-sidebar-card h4{
    color: #fff;
}

.btn-sidebar-cta {
    display: inline-block;
    background: #fff;
    color: #007ead;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    transition: 0.3s;
}

.btn-sidebar-cta:hover {
    background: #f0f0f0;
    transform: scale(1.05);
}

.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%; /* Image does not overflow the content area */
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}