﻿html,
body {
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    line-height: 1.8em;
    color: #666;
    background: #FFFFFF url('img/World_MapBG_Transparente_20.png') repeat center top;
    font-style: normal;
    font-variant: normal;
    font-weight: normal;
    font-size: 75%;
    font-family: "Trebuchet MS", verdana, arial, tahoma, sans-serif;
}

/* =========================
   CONTAINER (FIX ESTABILIDADE)
========================= */

#container {
    position: relative;
    min-height: 100%;
    width: 100%;
    max-width: 945px;
    margin: 0 auto;

    padding-top: 10px;
    padding-bottom: 30px;

    box-sizing: border-box;
}

/* override antigo (mantém compatibilidade) 
#container {
    width: 945px !important;
    max-width: none;
}*/

/* =========================
   BANNER (CONTROLADO)
========================= */

#banner {
    width: 100%;
    height: auto;     /* 🔥 FIX CRÍTICO */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    margin-top: 0;
    color: #666;
    background: no-repeat;
    background-image: url('img/3D_Globe_2.swf');
}

#banner img {
    max-width: 75% !important;
    /* max-height: 105px !important; */
    width: auto;
    height: auto;
    object-fit: contain;
	display: flex
}

#banner h1 {
    border-radius: 10px;
    margin-top: 0;
    padding: 5px 5px 0 0;
    font: 170% verdana, "Trebuchet MS", arial, tahoma, sans-serif;
    text-align: right;
    letter-spacing: 5px;
    color: #4B2207;
    background: inherit;
}

#banner a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* TOP NAVIGATION */
#navlist {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;

    gap: 12px;

    padding: 16px 20px;
    margin: 0 0 5px 0;
	margin-top: 15px;  /* 👈 espaço entre o logo e o menu */

    background: transparent;   /* 👈 aqui é a mudança principal */

    border-top: 1px solid rgba(219, 228, 238, 0.8);
    border-bottom: 1px solid rgba(219, 228, 238, 0.8);

    box-shadow: none;          /* 👈 remove o “bloco” */
    letter-spacing: normal;
}

#navlist li {
    list-style: none;
    margin: 0;
    padding: 0;
}

#navlist li a {
    display: block;

    padding: 10px 18px;

    border-radius: 12px;

    background: rgba(255, 255, 255, 0.55); /* leve transparência em vez de branco sólido */

    border: 1px solid rgba(219, 228, 238, 0.9);

    color: #1f2937 !important;

    text-decoration: none;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 0.5px;

    transition: all 0.22s ease;

    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

#navlist li a:hover {
    background: #800000;
    color: #ffffff !important;

    transform: translateY(-2px);

    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

#navlist li a#current {
    background: #2f7d32;
    color: #ffffff !important;
    border-color: #2f7d32;
}

/* SIDEBAR */
#sidebar {
    background: rgba(255, 255, 255, 0.75);
    border-radius: 12px;
    float: left;
    width: 180px;
    margin: 0 5px;
    padding: 10px;
    color: #000;
    font-weight: bold;
    backdrop-filter: blur(3px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
	margin-bottom: 10px;
}

#sidebar h2 {
    color: #006400 !important;
    margin-left: 12px;
    font-size: 22px !important;
    margin-bottom: 12px;
}

#sidebar .navlist a.red-link {
    color: #b30000 !important;
}

/* MENU PRINCIPAL */
#sidebar .navlist ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#sidebar .navlist li {
    margin-bottom: 4px;
}

#sidebar .navlist a {
    display: block;
    padding: 6px 9px;
	
    background: #f7f7f7;
    border: 1px solid #dcdcdc;
    border-radius: 7px;

    color: #000000 !important;
    text-decoration: none;

    font-size: 13px;
    font-weight: 600;
    line-height: 1.3em;

    transition: all 0.2s ease;
}

#sidebar .navlist a i {
    font-size: 13px;
    margin-right: 6px;
    color: #006400 !important;
}

#sidebar .navlist a:hover {
    background: #800000;
    color: #FFFFFF !important;
    transform: translateX(2px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

#sidebar .navlist a:hover i {
    color: #FFFFFF !important;
}


/* SIDEBAR ÁREA PRIVADA */
#sidebar_ar {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    float: left;
    width: 170px;
    margin-top: 12px;
	padding: 8px;
    border: 1px solid #C0C0C0;
    font-weight: bold;
}

#sidebar_ar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#sidebar_ar li {
    margin-bottom: 5px;
}

#sidebar_ar a {
    display: block;
    padding: 6px 9px;

    background: #f7f7f7;
    border: 1px solid #dcdcdc;
    border-radius: 7px;

    color: #000000 !important;
    text-decoration: none;

    font-size: 13px;

    transition: all 0.2s ease;
}

#sidebar_ar a i {
    margin-right: 5px;
    color: #006400 !important;
}

#sidebar_ar a:hover {
    background: #800000;
    color: #FFFFFF !important;
    transform: translateX(2px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

#sidebar_ar a:hover i {
    color: #FFFFFF !important;
}

/* =========================
   MENU DESKTOP (IMPORTANTE FIX)
========================= */

#menu-container {
    position: relative;
    z-index: 10;
    margin-bottom: 10px;
	padding-top: 0px;
}

/* =========================
   CONTENT (FIX PRINCIPAL)
========================= */

#content {
    padding: 10px;
    margin-left: 0;   /* 🔥 REMOVIDO O PROBLEMA */
    color: #666;
    min-height: 830px;
    box-sizing: border-box;
}

/* =========================
   FOOTER
========================= */

#footer {
    border-radius: 12px;
    clear: both;
    width: 100%;
    max-width: 945px;
    margin: 20px auto 0 auto;
    padding: 10px;
    background: rgba(255, 255, 255, 0.75);
	margin-top: 20px;
}


#footer p {
   margin-top: 20px;
}

/* LINKS */
a {
    text-decoration: none;
    color: #000000;
    font-weight: 300;
    text-align: left;
    font-family: "Trebuchet MS", "Lucida Sans Unicode",
        "Lucida Grande", "Lucida Sans", Arial, sans-serif;
}

a:hover {
    text-decoration: none;
    color: #1E99EB;
}

a img,
a img_especialidades {
    border: 0;
}

/* IMAGE PROPERTIES */
.noborder {
    float: left;
    margin-right: 10px;
    padding: 0 10px;
}

/* TYPOGRAPHY */
blockquote {
    font-weight: bold;
    font-style: italic;
    color: #B29B35;
}

/* CLASSES */
.info {
    color: #B29B35;
}

.post {
    padding: 3px;
    margin: 20px 10px 10px 5px;
    border: 1px dashed #8a795d;
    font-size: 80%;
    color: #aaa;
    background: #fff;
}

.post .date {
    background: url(img/clock.gif) no-repeat left center;
    padding-left: 15px;
    margin: 0 15px 0 5px;
}

.post .comments {
    background: url(img/comment.gif) no-repeat left center;
    padding-left: 15px;
    margin: 0 15px 0 5px;
}

.post .readmore {
    background: url(img/document.gif) no-repeat left center;
    padding-left: 15px;
    margin: 0 15px 0 5px;
}

/* FOLDERS */
.folder {
    display: inline-block;
    margin: 10px;
    text-align: center;
}

.folder img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 2px solid #ddd;
    border-radius: 10px;
}

.folder p {
    margin: 5px 0 0;
    font-size: 14px;
    color: #333;
}

/* =========================
   NEWS SECTION
========================= */

.news-section {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* CARD */
.news-item {
    display: flex;
    align-items: stretch;

    gap: 22px;

    padding: 18px;

    background: rgba(255,255,255,0.48);

    border-radius: 18px;

    backdrop-filter: blur(4px);

    border: 1px solid rgba(0,0,0,0.06);

    box-shadow:
        0 4px 14px rgba(0,0,0,0.06),
        0 1px 3px rgba(0,0,0,0.04);

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease;
}

/* hover */
.news-item:hover {
    transform: translateY(-3px);

    box-shadow:
        0 10px 24px rgba(0,0,0,0.10),
        0 3px 8px rgba(0,0,0,0.06);
}

/* IMAGE */
.news-image {
    width: 260px;

    min-width: 260px;

    height: 170px;

    object-fit: contain;

    background: transparent;

    border-radius: 10px;

    padding: 0;

    border: none;
}

/* CONTENT */
.news-content {
    flex: 1;

    display: flex;
    flex-direction: column;

    justify-content: center;
}

/* LINKS */
.news-content a {
    text-decoration: none;
    color: inherit;
}

/* TITLES */
.news-content h3 {
    margin: 0 0 10px 0 !important;

    font-size: 24px !important;

    line-height: 1.3em;

    color: #006400;

    font-weight: 700;

    transition: color 0.2s ease;
}

.news-content a:hover h3 {
    color: #008a2e;
}

/* TEXT */
.news-content p {
    margin: 0 0 12px 0;

    font-size: 15px !important;

    line-height: 1.6em;

    color: #444;
}

/* DIVIDER */
.news-divider {
    display: none;
}

/* LINKS DO TIPO -> RESULTADOS */
.news-content a h3:first-child {
    display: inline-block;
}

/* =========================
   FORMS
========================= */

#content form label {
    display: inline-block;
    width: 140px;
}

#content form input,
#content form select {
    width: 65%;
}

/* =========================
   MOBILE BASE
========================= */

#menu-mobile-container {
    display: none;
}

#mobile-sponsors-container {
    display: none;
}

/* =========================================
   GOOGLE TRANSLATE — FIX ESTÁVEL (NÃO ROMPE DOM)
========================================= */

.top-language-bar {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
    position: relative;
    z-index: 9999;
}

/* base do widget */
.goog-te-gadget {
    font-size: 0 !important;
    color: transparent !important;
}

/* caixa principal */
.goog-te-gadget-simple {
    background: rgba(255,255,255,0.92) !important;
    border: 1px solid rgba(0,0,0,0.12) !important;
    border-radius: 12px !important;
    padding: 6px 12px !important;

    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;

    cursor: pointer !important;
    transition: all 0.2s ease;
}

/* hover seguro (sem transform que pode “quebrar” layout Google iframe) */
.goog-te-gadget-simple:hover {
    background: #fff !important;
    box-shadow: 0 3px 12px rgba(0,0,0,0.12);
}

/* texto */
.goog-te-menu-value {
    color: #222 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
}

/* remove seta original */
.goog-te-menu-value span:last-child {
    display: none !important;
}

/* seta custom */
.goog-te-gadget-simple::after {
    content: "▾";
    font-size: 12px;
    color: #444;
    margin-left: 6px;
}

/* bandeira */
.goog-te-gadget-simple::before {
    content: "";
    width: 22px;
    height: 16px;
    border-radius: 3px;
    background-size: cover;
    background-position: center;

    background-image: url("https://flagcdn.com/w40/es.png");
}

/* esconde banner Google (IMPORTANTE manter) */
.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

body {
    top: 0px !important;
}

/* mobile fix */
@media (max-width: 768px) {
    .top-language-bar {
        justify-content: center;
    }

    .goog-te-gadget-simple {
        width: 100%;
        justify-content: center;
    }
}

/* =========================
   RESPONSIVE MOBILE
========================= */

@media (max-width: 768px) {

    body {
        min-height: 100vh;
        background: #fff url('img/background/background6.png') repeat center top !important;
    }

    #container {
        width: 100% !important;
        max-width: 100% !important;

        padding: 0 10px !important;
        padding-top: 0 !important;

        margin-top: 0 !important;

        box-sizing: border-box;
    }

    /* esconder desktop */
    #menu-container,
    #sidebar,
    #sidebar_ar,
	#navlist	{
        display: none !important;
    }

    /* =========================
       BANNER MOBILE
    ========================= */

   #mobile-header {

        position: sticky;
        top: 0;
        z-index: 9999;

        /* background: rgba(255,255,255,0.97);
        backdrop-filter: blur(6px);

        box-shadow: 0 2px 10px rgba(0,0,0,0.08);*/

        padding-top: 6px;
        padding-bottom: 6px;
    }


    #banner {
        height: 125px !important;

        display: flex;
        align-items: center;
        justify-content: center;

        margin: 0 !important;
        padding: 0 !important;

        overflow: hidden;
    }

    #banner a {
        display: flex;
        align-items: center;
        justify-content: center;

        width: 100%;
        height: 100%;

        margin: 0 !important;
        padding: 0 !important;

        line-height: 0;
    }

    #banner img {
        max-width: 92% !important;
        max-height: 105px !important;

        width: auto;
        height: auto;

        object-fit: contain;
        display: block;
    }

    /* =========================
       CONTENT MOBILE
    ========================= */

    #content {
        margin-left: 0 !important;
        width: 100% !important;
        min-height: auto;

        padding-top: 10px !important;
    }

    /* footer */
    #footer {
        width: 100%;
        max-width: 100%;
    }

    /* =========================
       MENU MOBILE
    ========================= */

    #menu-mobile-container {
        display: block;

        margin-top: 2px !important;
        margin-bottom: 10px !important;
    }

    .mobile-top-buttons {
        display: flex;
        gap: 10px;
    }

    .mobile-main-button {
        flex: 1;
        padding: 13px;
        border: none;
        border-radius: 12px;
        background: #006400;
        color: #fff;
        font-size: 15px;
        font-weight: 700;
        cursor: pointer;
    }

    #mobile-private-button {
        background: #800000;
    }

    .mobile-dropdown {
        display: none;
        margin-top: 10px;
        border-radius: 12px;
        overflow: hidden;
        background: rgba(255,255,255,0.96);
        box-shadow: 0 4px 14px rgba(0,0,0,0.10);
    }

    .mobile-dropdown.open {
        display: block;
    }

    .mobile-category-button {
        width: 100%;
        border: none;
        background: #f3f3f3;
        padding: 14px;
        text-align: left;
        font-weight: 700;
        cursor: pointer;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    .mobile-submenu {
        display: none;
    }

    .mobile-submenu.open {
        display: block;
    }

    .mobile-submenu a {
        display: block;
        padding: 12px 18px;
        font-weight: 600;
        color: #222;
    }

    /* =========================
       SPONSORS MOBILE
    ========================= */

    #mobile-sponsors-container {
        display: block;
        margin-top: 25px;
    }

    #mobile-sponsors {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 18px;
        padding: 10px 0;
    }

    #mobile-sponsors img {
        width: auto !important;
        max-width: 140px !important;
        max-height: 70px !important;
        height: auto !important;
        object-fit: contain;
        display: block;
    }

    #mobile-sponsors .fedecat-logo {
        max-width: 120px !important;
        max-height: 120px !important;
    }

    /* NEWS MOBILE */

    .news-item {
        flex-direction: column;
    }

    .news-image {
        width: 100%;
        min-width: 100%;
        height: auto;
    }
}