.sm {
    position: relative;
    z-index: 999;
}

    .sm, .sm ul, .sm li {
        display: block;
        list-style: none;
        margin: 0;
        padding: 0;
        line-height: normal;
        direction: ltr;
        text-align: left;
        -webkit-tap-highlight-color: rgba(0,0,0,0);
    }

.sm-rtl, .sm-rtl ul, .sm-rtl li {
    direction: rtl;
    text-align: right;
}

.sm > li > h1, .sm > li > h2, .sm > li > h3, .sm > li > h4, .sm > li > h5, .sm > li > h6 {
    margin: 0;
    padding: 0;
}

.sm ul {
    display: none;
}

.sm li, .sm a {
    position: relative;
}

.sm a {
    display: block;
}

    .sm a.disabled {
        cursor: not-allowed;
    }

.sm:after {
    content: "\00a0";
    display: block;
    height: 0;
    font: 0px/0 serif;
    clear: both;
    visibility: hidden;
    overflow: hidden;
}

.sm, .sm *, .sm *:before, .sm *:after {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.sm-simple {

}

    .sm-simple a, .sm-simple a:hover, .sm-simple a:focus, .sm-simple a:active {
        padding: 13px 20px;
        padding-right: 58px;
        color: #555555;
        font-weight: normal;
        line-height: 1.1em;
        text-decoration: none;
    }

        .sm-simple a.current {
            background: #555555;
            color: white;
        }

        .sm-simple a.disabled {
            color: #cccccc;
        }

        .sm-simple a span.sub-arrow {
            position: absolute;
            top: 50%;
            margin-top: -17px;
            left: auto;
            right: 4px;
            width: 34px;
            height: 34px;
            overflow: hidden;
            font: bold 14px/34px monospace !important;
            text-align: center;
            text-shadow: none;
            background: rgba(0, 0, 0, 0.08);
        }

        .sm-simple a.highlighted span.sub-arrow:before {
            display: block;
            content: '-';
        }

    .sm-simple li {
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    .sm-simple > li:first-child {
        border-top: 0;
    }

    .sm-simple ul {
        background: rgba(179, 179, 179, 0.1);
    }

        .sm-simple ul a, .sm-simple ul a:hover, .sm-simple ul a:focus, .sm-simple ul a:active {
            font-size: 14px;
            border-left: 8px solid transparent;
        }

        .sm-simple ul ul a,
        .sm-simple ul ul a:hover,
        .sm-simple ul ul a:focus,
        .sm-simple ul ul a:active {
            border-left: 16px solid transparent;
        }

        .sm-simple ul ul ul a,
        .sm-simple ul ul ul a:hover,
        .sm-simple ul ul ul a:focus,
        .sm-simple ul ul ul a:active {
            border-left: 24px solid transparent;
        }

        .sm-simple ul ul ul ul a,
        .sm-simple ul ul ul ul a:hover,
        .sm-simple ul ul ul ul a:focus,
        .sm-simple ul ul ul ul a:active {
            border-left: 32px solid transparent;
        }

        .sm-simple ul ul ul ul ul a,
        .sm-simple ul ul ul ul ul a:hover,
        .sm-simple ul ul ul ul ul a:focus,
        .sm-simple ul ul ul ul ul a:active {
            border-left: 40px solid transparent;
        }

@media (min-width: 768px) {
    /* Switch to desktop layout
  -----------------------------------------------
     These transform the menu tree from
     collapsible to desktop (navbar + dropdowns)
  -----------------------------------------------*/
    /* start... (it's not recommended editing these rules) */
    .sm-simple ul {
        position: absolute;
        width: 12em;
    }

    .sm-simple li {
        float: left;
    }

    .sm-simple.sm-rtl li {
        float: right;
    }

    .sm-simple ul li, .sm-simple.sm-rtl ul li, .sm-simple.sm-vertical li {
        float: none;
    }

    .sm-simple a {
        white-space: nowrap;
    }

    .sm-simple ul a, .sm-simple.sm-vertical a {
        white-space: normal;
                background: -webkit-linear-gradient(top, rgb(249, 249, 249) 00%, rgb(255, 255, 255) 99%);
        background: -moz-linear-gradient(top, rgb(249, 249, 249) 00%, rgb(255, 255, 255) 99%);
        background: -o-linear-gradient(top, rgb(249, 249, 249) 00%, rgb(255, 255, 255) 99%);
        background: -ms-linear-gradient(top, rgb(249, 249, 249) 00%, rgb(255, 255, 255) 99%);
        background: -linear-gradient(top, rgb(249, 249, 249) 00%, rgb(255, 255, 255) 99%);
    }

    .sm-simple .sm-nowrap > li > a, .sm-simple .sm-nowrap > li > :not(ul) a {
        white-space: nowrap;
    }

    ul.menu-contato  {
        background: #eeeeee;
        font-size: 0.9em;
    }
    
    ul.menu-contato li {
        white-space: normal;
                background: -webkit-linear-gradient(top, rgb(249, 249, 249) 00%, rgb(255, 255, 255) 99%);
        background: -moz-linear-gradient(top, rgb(249, 249, 249) 00%, rgb(255, 255, 255) 99%);
        background: -o-linear-gradient(top, rgb(249, 249, 249) 00%, rgb(255, 255, 255) 99%);
        background: -ms-linear-gradient(top, rgb(249, 249, 249) 00%, rgb(255, 255, 255) 99%);
        background: -linear-gradient(top, rgb(249, 249, 249) 00%, rgb(255, 255, 255) 99%);
        padding: 13px 10px;
        border-top: 1px solid #eeeeee;
    }

    ul.menu-contato > li:first-child {
        border-top: 0px;
    }

    /*.sm li a[title~="Instituto"] {
        background: -webkit-linear-gradient(top, rgb(249, 249, 249) 00%, rgb(255, 255, 255) 99%);
        background: -moz-linear-gradient(top, rgb(249, 249, 249) 00%, rgb(255, 255, 255) 99%);
        background: -o-linear-gradient(top, rgb(249, 249, 249) 00%, rgb(255, 255, 255) 99%);
        background: -ms-linear-gradient(top, rgb(249, 249, 249) 00%, rgb(255, 255, 255) 99%);
        background: -linear-gradient(top, rgb(249, 249, 249) 00%, rgb(255, 255, 255) 99%);
    }*/

    /*.sm li a:hover[title~="Instituto"], a:focus[title~="Instituto"], a:active[title~="Instituto"] {
        background: #eeeeee;
    }*/

    /* ...end */
    .sm-simple {
        background: #fff;
    }

        .sm-simple a, .sm-simple a:hover, .sm-simple a:focus, .sm-simple a:active, .sm-simple a.highlighted {
            padding: 7px 10px;
            color: #555555;
        }

            .sm-simple a:hover, .sm-simple a:focus, .sm-simple a:active, .sm-simple a.highlighted {
                background: #eeeeee;
            }

            .sm-simple a.current {
                background: #555555;
                color: white;
            }

            .sm-simple a.disabled {
                background: white;
                color: #cccccc;
            }

            .sm-simple a.has-submenu {
                padding-right: 45px;
            }

            .sm-simple a span.sub-arrow {
                top: 50%;
                margin-top: -8px;
                right: 20px;
                width: 8px;
                height: 16px;
                font: 14px/16px monospace !important;
                background: transparent;
            }

            .sm-simple a.highlighted span.sub-arrow:before {
                display: none;
            }

        .sm-simple > li {
            border-top: 0;
            border-left: 1px solid #eeeeee;
        }

            .sm-simple > li:first-child {
                border-left: 0;
            }

        .sm-simple ul {
            background: white;
        }

            .sm-simple ul a {
                border: 0 !important;
            }

                .sm-simple ul a.has-submenu {
                    padding-right: 20px;
                }

                .sm-simple ul a span.sub-arrow {
                    right: auto;
                    margin-left: -12px;
                }

            .sm-simple ul > li {
                border-left: 0;
                border-top: 1px solid #eeeeee;
            }

                .sm-simple ul > li:first-child {
                    border-top: 0;
                }

        .sm-simple span.scroll-up,
        .sm-simple span.scroll-down {
            position: absolute;
            display: none;
            visibility: hidden;
            overflow: hidden;
            background: white;
            height: 20px;
        }

        .sm-simple span.scroll-up-arrow, .sm-simple span.scroll-down-arrow {
            position: absolute;
            top: -2px;
            left: 50%;
            margin-left: -8px;
            width: 0;
            height: 0;
            overflow: hidden;
            border-width: 8px;
            border-style: dashed dashed solid dashed;
            border-color: transparent transparent #555555 transparent;
        }

        .sm-simple span.scroll-down-arrow {
            top: 6px;
            border-style: solid dashed dashed dashed;
            border-color: #555555 transparent transparent transparent;
        }

        .sm-simple.sm-rtl a.has-submenu {
            padding-right: 20px;
            padding-left: 32px;
        }

        .sm-simple.sm-rtl a span.sub-arrow {
            right: auto;
            left: 20px;
        }

        .sm-simple.sm-rtl.sm-vertical a.has-submenu {
            padding: 11px 20px;
        }

        .sm-simple.sm-rtl.sm-vertical a span.sub-arrow {
            right: 20px;
            margin-right: -12px;
        }

        .sm-simple.sm-rtl > li:first-child {
            border-left: 1px solid #eeeeee;
        }

        .sm-simple.sm-rtl > li:last-child {
            border-left: 0;
        }

        .sm-simple.sm-rtl ul a.has-submenu {
            padding: 10px 20px;
        }

        .sm-simple.sm-rtl ul a span.sub-arrow {
            right: 20px;
            margin-right: -12px;
        }

        .sm-simple.sm-vertical a span.sub-arrow {
            margin-left: -12px;
        }

        .sm-simple.sm-vertical li {
            border-left: 0;
            border-top: 1px solid #eeeeee;
            font-size: 0.9em;
        }

        .sm-simple.sm-vertical > li:first-child {
            border-top: 0;
        }
}


@media (min-width: 768px) {
    #main-menu {
        /*float: left;*/
    }
}
