.search-form-mobile{
    display: none;
    z-index: 201;
    position: fixed;
    top: 0;
    left: 0;
    background: var(--white);
    width: 100%;
    height: 100px;
    box-shadow: 0px 0px 3px 1px var(--borda-cinza);
    padding-top: 20px;
}

header{
    z-index: 11;
    position: fixed;    
}

.vertical-divider {
    border-left: 1px solid  var(--negativo);
    height: 30px;
}

header .icon {
    /* font-size: 1.5rem; */
    text-decoration: none;
    color:  var(--negativo) !important;
}

.links-rapidos a {
    text-decoration: none;
    color:  var(--negativo) !important;
    font-size: 12px;
}

.links-rapidos a:hover {
    text-decoration: none;
}

.bi-circle-half {
    font-size: 1.5rem;
    cursor: pointer;
}

.links-uteis-footer{
    line-height: 20px;
}

.links-uteis-footer h6{
    font-size: 16px;
    margin-bottom: 24px;
    font-weight: 700;
}

.links-uteis-footer a{
    text-decoration: underline !important;
    margin-bottom: 10px;
    display: block;
    font-weight: 600;
    font-size: 12px;
    color: var(--white) !important;
}

.links-uteis-footer a:hover{
    color: var(--gray) !important;
}

.logos-footer ul {
    list-style-type: none !important;
    padding-left: 0;
}

.logos-footer h6{
    margin-bottom: 4px;
    font-size: 14px;
}

.logos-footer img{
    width: 24px !important;
    margin-right: 24px;
}

.header-links-container{
    background: var(--Blue-Blue-Vivid-80, linear-gradient(0deg, rgba(0, 0, 0, 0.20) 0%, rgba(0, 0, 0, 0.20) 100%), linear-gradient(0deg, rgba(0, 0, 0, 0.20) 0%, rgba(0, 0, 0, 0.20) 100%),  var(--blue-500));
box-shadow: 0px 1px 6px 0px rgba(0, 0, 0, 0.16);
    top:0;
    position: fixed;
    z-index: 10;
}

.sus-logo svg, .sus-logo svg path {
    fill: white;   
}

body {
    padding-top: 145px;
}

.site-header {
    height: 103px;
    background-color: var(--negativo);
    box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.12);
    position: fixed !important;
    top: 42px;
    z-index: 200;
}

/* ── Header inner layout (Figma Frame 33855) ── */
.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    gap: 0;
}

.site-header-branding {
    display: flex;
    align-items: center;
    min-width: 0;
}

/* Desktop ≥1200px: search empurrado para a direita */
@media (min-width: 1200px) {
    .site-header > .container {
        max-width: 1280px !important;
    }

    .site-header-branding {
        gap: 50px;
        flex: 1 1 auto;
    }

    .site-header-inner .header-nav-horizontal {
        flex: 0 1 auto;
        min-width: 0;
        width: fit-content;
    }

    .site-header-inner .header-nav-horizontal ul {
        justify-content: flex-start;
        width: fit-content;
    }

    .site-header-inner .search-container {
        margin-left: 32px;
        flex: 0 0 338px;
        width: 338px;
    }
}

/* Abaixo de 1200px: layout hamburger — logo centralizado */
@media (max-width: 1199.98px) {
    .site-header-inner {
        gap: 0;
    }

    .site-header-branding {
        flex: 1;
        justify-content: space-between;
    }

    .site-header-inner .espmg-logo {
        display: flex;
        justify-content: center;
        margin: 0 auto;
    }

    .site-header-inner .search-container {
        width: auto;
    }
}

/* ── Navegação horizontal do header (Figma Frame 33855) ── */
.header-nav-horizontal {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* Menu primário: gap 18px entre itens (Figma layout_USU96V) */
.header-nav-horizontal.site-dropdown-nav ul {
    gap: 18px;
    justify-content: flex-start;
}

.secondary-nav-section {
    margin-top: 0;
    padding: 28px 0;
    background-color: var(--cinza-fundo);
}

.home-featured-shell {
    background-color: var(--cinza-fundo);
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
}

body.home .secondary-nav-section {
    padding-bottom: 10px;
    margin-bottom: 0;
}

body.home {
    background-color: var(--cinza-fundo);
}

body.home main {
    margin-top: 0;
    padding-top: 0;
    background-color: var(--cinza-fundo);
}

.home-news-section {
    background-color: #FFFFFF;
    padding-top: 1.5rem;
}

.home-process-section {
    padding-bottom: 56px;
}

@media (max-width: 767.98px) {
    .home-process-section {
        padding-bottom: 40px;
    }
}

body.home #depoimentos {
    margin-top: 0;
}

.secondary-nav-horizontal {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1087px;
    max-width: 100%;
    min-height: 72px;
    background-color: #FFFFFF;
    border-radius: 26px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
    padding: 0 36px;
    box-sizing: border-box;
    margin: 0 auto;
}

.secondary-nav-horizontal > ul {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 0;
}

.secondary-nav-horizontal > ul > li {
    flex: 1 1 0;
    display: flex;
    justify-content: center;
}

.secondary-nav-horizontal > ul > li > a {
    min-height: 72px;
    align-items: center;
    justify-content: center;
}

.secondary-nav-horizontal > ul > li > a {
    width: 100%;
}

.secondary-nav-section + #banner {
    margin-top: 35px;
}

.site-dropdown-nav .menu-item {
    width: auto;
    position: relative;
}

.site-dropdown-nav ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 85px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-dropdown-nav ul li a {
    font-family: "rawline", helvetica, arial, sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.379;
    color: #0C70B3;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    transition: color 0.2s;
    padding: 0;
    border-bottom: 0;
    background: transparent;
}

.site-dropdown-nav ul li a:hover {
    color: #095b92;
    background: transparent;
}

.site-dropdown-nav ul .menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #0C70B3;
    vertical-align: middle;
    margin-left: 2px;
    transition: transform 0.2s;
}

/* Dropdown sub-menu do nav horizontal */
.site-dropdown-nav ul li {
    position: relative;
    flex: 0 0 auto;
}

.site-dropdown-nav .menu-item-has-children > a {
    justify-content: flex-start;
}

.site-dropdown-nav ul li .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: auto;
    right: 0;
    transform: translateY(24px);
    background-color: var(--cinza-fundo-2);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.10);
    width: 346px;
    min-width: 346px;
    border-radius: 0 0 24px 24px;
    list-style: none;
    padding: 12px 0 16px;
    margin: 0;
    z-index: 300;
    gap: 0;
}

.header-nav-horizontal ul li .sub-menu {
    width: max-content;
    min-width: 200px;
    border-radius: 0 0 32px 32px;
    padding: 14px 0 18px;
}

.secondary-nav-horizontal ul li .sub-menu {
    width: max-content;
    min-width: 200px;
    max-width: 280px;
    border-radius: 0 0 32px 32px;
    padding: 14px 0 18px;
    left: auto;
    right: 0;
    transform: translateY(0);
}

.secondary-nav-horizontal ul li .sub-menu::before {
    top: 0;
    height: 0;
}

.header-nav-horizontal > ul > li:first-child > .sub-menu {
    left: auto;
    right: 0;
}

.site-dropdown-nav ul li .sub-menu::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -24px;
    height: 24px;
}

.site-dropdown-nav ul li .sub-menu::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -3px;
    height: 3px;
    background-color: #0C70B3;
    pointer-events: none;
}

.site-dropdown-nav ul li.is-open > .sub-menu {
    display: block;
}

.site-dropdown-nav ul li.is-open > a::after {
    transform: rotate(180deg);
}

.site-dropdown-nav ul li .sub-menu li a {
    font-family: "rawline", helvetica, arial, sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.3;
    color: var(--titulos-principais);
    padding: 10px 18px;
    display: block;
    white-space: normal;
    gap: 0;
    border-bottom: 0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.header-nav-horizontal ul li .sub-menu li a {
    font-size: 18px;
    line-height: 1.35;
    padding: 7px 20px;
    white-space: nowrap;
}

.secondary-nav-horizontal ul li .sub-menu li a {
    font-size: 18px;
    line-height: 1.35;
    padding: 7px 20px;
    white-space: nowrap;
}

.site-dropdown-nav ul li .sub-menu li.current-menu-item > a,
.site-dropdown-nav ul li .sub-menu li.current_page_item > a,
.site-dropdown-nav ul li .sub-menu li a:hover,
.site-dropdown-nav ul li .sub-menu li a:focus {
    background-color: transparent;
    color: #0C70B3;
    outline: none;
}

.site-dropdown-nav ul li .sub-menu li a::after {
    display: none !important;
}

.espmg-logo {
    display: flex;
    align-items: center;
    line-height: 0;
}

.espmg-logo img{
    width: 96px;
    height: auto;
    object-fit: contain;
}


/* Search */
.icon-search-mobile{
    display: none;
}

.search-container {
    position: relative;
    width: 338px;
}

.search-input {
    border-radius: 12px;
    background-color: var(--cinza-fundo-2);
    border: 0;
    height: 48px;
    padding: 0 48px 0 15px;
    font-family: "Roboto", sans-serif;
    font-weight: 300;
    font-size: 14px;
    color: var(--textos-corridos);
    width: 100%;
}

.search-input::placeholder {
    color: var(--textos-corridos);
    font-style: italic;
}

.search-icon {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    font-size: 1.25rem;
    color: var(--textos-corridos);
}

.font-size-minus, .font-size-minus:visited{
    color:  var(--negativo);
}

.font-size-plus, .font-size-plus:visited{
    color:  var(--negativo);
}

.footer {
    background: var(--bg-azul);
    position: relative;
    margin-top: 60px;

    /* Garante alinhamento perfeito */
    display: flex;
    align-items: center;
}

/* Unidade X do manual */
:root {
    --logo-x: 35px; /* Altura oficial */
    --logo-gap: calc(var(--logo-x) / 2); /* 1/2X */
}

.footer-branding {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: nowrap;
}

.footer-branding-item {
    flex: 0 0 auto;
}

/* Container lógico dos logos (mesmo sem wrapper dedicado) */
.footer .espmg-logo-footer,
.footer .sus-logo-footer,
.footer .mg-gov-logo-footer {
    display: flex;
    align-items: center;
}

.footer .espmg-logo-footer,
.footer .sus-logo-footer {
    color: #fff;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
}

.footer .espmg-logo-footer span,
.footer .sus-logo-footer span {
    display: block;
}

.footer .espmg-logo-footer span {
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
    white-space: nowrap;
}

.footer .espmg-logo-footer:hover,
.footer .sus-logo-footer:hover,
.footer .espmg-logo-footer:focus,
.footer .sus-logo-footer:focus {
    color: #fff;
    text-decoration: none;
}

/* Espaçamento uniforme real */
.footer .espmg-logo-footer,
.footer .sus-logo-footer {
    margin-right: var(--logo-gap);
}

/* Padronização absoluta das marcas */
.footer img {
    height: var(--logo-x);
    width: auto;
    display: block;
    max-height: 100%;
    vertical-align: middle;
}

.footer .mg-gov-logo-footer img {
    height: 42px;
    width: auto;
    max-width: 100%;
    max-height: 100%;
    margin-top: 0;
    transform: translateY(-1px);
}


.selos-container {
    position: absolute;
    top: 0;
    right: 60px;
    z-index: 10;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
}
.selo-item {
    width: 140px;
    display: block;
    transition: transform 0.3s ease;
}

.selo-item:hover {
    transform: scale(1.05);
}

.selo-item img {
    max-width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .selos-container {
        right: 15px;
        gap: 10px;              
        transform: translateY(-30%); 
    }

    .selo-item {
        width: 80px;
        padding: 0 15px;
    }
}

body.home .footer {
    margin-top: 0;
}

.endereco h6{
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
}

.endereco p{
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
}

.endereco a{
    color: var(--white) !important;
    text-decoration: underline !important;
}

.endereco a:hover{
    color: var(--gray) !important;
}

.white-line{
    border: 1px solid  var(--negativo);
}

.copy-text{
    font-size: 11.67px;
}

/* VLibras: elevar acima do botão UserWay para evitar sobreposição */
[vw-access-button] {
    bottom: 60px !important;
}

.is-safari-desktop body .uwy.userway_p2 .userway_buttons_wrapper {
    margin-left: 14.5px !important;
}

@-moz-document url-prefix(){
    body .uwy.userway_p2 .userway_buttons_wrapper {
        padding-right: 1.7px !important;
    }
}

@media (max-width: 575.98px) {

    /* Mobile: VLibras visible button sits 11px to right of UserWay after upstream widget update. */
    div[vw].enabled {
        right: 11px !important;
    }

    .icones-header-top{
        margin-right: -20px;
    }

    body {
        padding-top: 94px;
    }

    .links-rapidos-mob {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        padding-bottom: 10px;
        background: var(--Blue-Blue-Vivid-80, linear-gradient(0deg, rgba(0, 0, 0, 0.20) 0%, rgba(0, 0, 0, 0.20) 100%), linear-gradient(0deg, rgba(0, 0, 0, 0.20) 0%, rgba(0, 0, 0, 0.20) 100%),  var(--blue-500));
        box-shadow: 0px 1px 6px 0px rgba(0, 0, 0, 0.16);
        color:  var(--negativo) !important;
        font-size: 12px;        
        z-index: 9999;
        padding:15px;
    }

    .links-rapidos-mob a {
        display: flex;
        color:  var(--negativo) !important;  
    }

    .close-menu {
        position: absolute;
        top: -10px;
        right: 5px;
        font-size: 2rem;
        color: white;
    }

    .mg-gov-logo-footer {
        display: block;
    }
    
    .mg-gov-logo-footer img{
        height: 38px;
        width: auto;
        max-width: 100%;
        transform: translateY(-1px);
    }

    .sus-logo-footer {
        padding: 16px 0 0 28px;
        display: block;
    }

    .footer-branding {
        gap: 20px;
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .footer .espmg-logo-footer span {
        font-size: 16px;
        line-height: 22px;
        white-space: normal;
    }
    
    .links-uteis-footer{
        line-height: 20px;
        font-size: 12px;
    }

    .links-uteis-footer h6{
        font-size: 14px;
        font-weight: 600;
    }

    .links-uteis-footer a{
        margin-bottom: 2px !important;
        display: inline-block;
        font-size: 12px;
        font-weight: 400 !important;
    }

    .header-links-container{
        background: var(--Blue-Blue-Vivid-80, linear-gradient(0deg, rgba(0, 0, 0, 0.20) 0%, rgba(0, 0, 0, 0.20) 100%), linear-gradient(0deg, rgba(0, 0, 0, 0.20) 0%, rgba(0, 0, 0, 0.20) 100%),  var(--blue-500));
        box-shadow: 0px 1px 6px 0px rgba(0, 0, 0, 0.16);
        top:0;
        left:0;
        position: fixed;
        z-index: 10;
    }

    .copy-text{
        font-size: 10px;
    }

    .logos-footer h6{
        font-size: 14px;
        font-weight: 600;
    }

    .logos-footer img{
        width: 20px !important;
        margin-right: 4px;
    }

    .logos-footer{
        padding-left: 0;
    }

    .endereco h6{
        color: var(--Pure-pure, var(--global-palette9, #FFF));
        font-family: Rawline;
        font-size: 16px;
        font-style: normal;
        font-weight: 600;
        line-height: 22px;
    }

    .endereco p, .endereco a{
        color: var(--Pure-pure, var(--global-palette9, #FFF));
        font-family: Rawline;
        font-size: 12px;
        font-style: normal;
        font-weight: 400;
        line-height: 16px; 
    }

    .site-header {
        height: 51px;
        padding-top: 0 !important; 
        background-color:  var(--negativo);
        box-shadow: 10px 0 10px 5px  var(--positivo)2a;
        position: fixed;
        top: 42px;
        left: 0;
        z-index: 18;
    }

    .espmg-logo img {
        width: 72px;
    }

    .sus-logo svg {
        width: 31px;
        height: 16px;
        margin-left: -12px;
    }

    .site-header-links {
        display: none;
        position: fixed;
        top: 20px;
    }

    .search-form {
        display: none;
    }

    .search-container {
        position: relative;
        width: 100%;
    }

    .search-input {
        width: 70%;
        position: fixed;
        left: 20px;
        border-radius: 8px;
        padding-right: 0;
        background-color: var(--cinza-fundo-2);
        border: 0;
        padding: 28px 45px 28px 20px;
        z-index: 11;
    }

    .icon-search-web {
        display: none;
    }

    .icon-search-mobile {
        display: block;
    }

    .search-icon {
        position: absolute;
        top: 50%;
        right: -10px;
        color: var(--azul-menu-icon);
    }

    .tooltip {
        /*Remove tootips da versão mobile*/
        display: none !important;
    }

    body .uwy.userway_p2 .userway_buttons_wrapper {
        padding-right: 15px !important;
    }

}

@media (min-width: 576px) and (max-width: 767.98px) { 
}

@media (min-width: 768px) and (max-width: 991.98px) {
    
}

@media (min-width: 992px) and (max-width: 1199.98px) {

}

@media (min-width: 1200px) {
    
}
