/* Stili menu orizzontale */


.li_hidden {
    display: none;
}

ul#hormenu ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

ul#hormenu li {
    float: left;
    margin: 0;
    padding: 0;
}

ul#hormenu a {
    display: block;
    padding: 5px;
    text-decoration: none;
}

    ul#hormenu a:hover {
        text-decoration: none;
    }

ul#hormenu li ul {
    display: none;
}

ul#hormenu li:hover ul {
    position: absolute;
    display: block;
    z-index: 1;
    width: 220px;
    padding: 0;
    margin: 0 0 0 -1px;
}

ul#hormenu li li {
    border: none;
    width: 100%;
}

    ul#hormenu li li a {
        padding: 2px 2px 2px 10px;
    }


#topnav nav ul ul li a {
    color: #666;
    font-size: 1em;
    padding: 10px 20px;
    display: block;
    transition: 0.5s all;
    -webkit-transition: 0.51s all;
    -moz-transition: 0.5s all;
    -o-transition: 0.5s all;
    background: white;
    text-transform: inherit;
    border: none;
}


    #topnav nav ul ul li a:hover {
        color: white;
        border: none;
    }

#topnav nav ul ul li.active > a {
    color: black;
    background: #f0f0f0;
}

/* navigation bar */
#topnav {
    width: 100%;
    position: relative;
    float: left;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    clear: both;
    height: 48px;
    margin-bottom: 20px;
    background-color: #88bcd9;
}


    #topnav #navbtn {
        display: none;
        float: right;
        top: 18px;
        width: 41px;
        padding: 2.5em 0em;
        background-color: #fff;
        background-image: url(../img/nav-icon.png);
        background-position: center;
        background-repeat: no-repeat;
        text-indent: -99999px;
        overflow: hidden;
        margin-right: 1em;
        position: relative;
        padding: 10px;
        border: 1px solid #ccc;
    }

    #topnav nav {
        position: absolute;
        margin-left: auto;
        margin-right: auto;
        left: 0;
        right: 0;
        background-color: #88bcd9;
        width: 1000px;
    }

        #topnav nav ul {
            list-style: none;
            margin-left: auto;
            margin-right: auto;
            left: 0;
            right: 0;
            -moz-border-radius: 2px;
            border-radius: 2px;
            background-color: #88bcd9;
            height: 47px;
            position: relative;
            float: left;
            border-left: 1px solid #66a9cb;
            border-right: 1px solid #b6d3e4;
            height: 46px;
            z-index: 99;
        }


            #topnav nav ul ul {
                list-style: none;
                margin-left: inherit;
                margin-right: inherit;
                left: inherit;
                right: inherit;
                width: auto;
                -moz-box-shadow: 1px 5px 10px rgba(0, 0, 0, 0.2);
                -webkit-box-shadow: 1px 5px 10px rgba(0, 0, 0, 0.2);
                box-shadow: 1px 5px 10px rgba(0, 0, 0, 0.2);
                height: auto;
                background-color: white;
            }


                #topnav nav ul ul li {
                    display: block;
                    float: left;
                }

            #topnav nav ul li a {
                display: block;
                transition: 0.5s all;
                -webkit-transition: 0.51s all;
                -moz-transition: 0.5s all;
                -o-transition: 0.5s all;
                text-transform: uppercase;
                color: white;
                color: white;
                text-decoration: none;
                padding: 14px 18px;
                border-left: 1px solid #b6d3e4;
                border-right: 1px solid #66a9cb;
                text-transform: uppercase;
                font-size: 15px;
            }


                #topnav nav ul li a:hover {
                    background-color: #006fa0;
                    -moz-transition: all 0.2s linear 0s;
                    -webkit-transition: all 0.2s linear 0s;
                    -o-transition: all 0.2s linear 0s;
                }

            #topnav nav ul li.active > a {
                color: black;
                background: #f0f0f0;
            }

/* menu block */
#btmnav {
    display: block;
    padding: 5px 0;
    font-size: 1.1em;
    font-weight: normal;
}

    #btmnav .credits {
        color: #999;
        line-height: 1.45em;
    }

    #btmnav nav {
        padding: 9px 0;
        padding-bottom: 15px;
    }

        #btmnav nav ul li {
            display: inline;
        }

            #btmnav nav ul li a {
                font-weight: bold;
            }


@media screen and (max-width: 1000px) {
    #topnav nav {
        width: 100%;
    }
}

@media screen and (max-width: 778px) {


    .li_hidden {
        display: inherit;
    }

    #topnav {
        background-color: transparent;
    }


    #topnav {
        height: auto;
        padding-left: 0em;
        padding-right: 0em;
        position: absolute;
        top: 0px;
        z-index: 99999;
    }


        #topnav nav ul ul {
            display: none !important;
            visibility: hidden !important;
        }



        #topnav nav ul {
            width: 100%;
            height: inherit;
            /*top: 16px;*/
        }

    .menu {
        position: absolute;
        clear: both;
        width: 100%;
        z-index: 99999999;
        top: 0px;
        right: 0px;
    }

    #topnav h1 {
        padding: 1.4em 0em;
    }

    #topnav #navbtn {
        padding: 10px 0em;
    }

    #topnav {
        height: auto;
        padding-left: 0em;
        padding-right: 0em;
        margin-bottom: 0px;
        top: 32px;
    }

        #topnav nav {
            display: none;
            position: static;
            width: 100%;
            top: auto;
            right: auto;
        }

            #topnav nav ul li {
                float: none;
                margin: 0;
            }


                #topnav nav ul li a {
                    color: white;
                    display: block;
                    width: 100%;
                    line-height: 1.4em;
                    border: 0;
                    padding: 9px 9px;
                    border-bottom: 1px solid rgba(90, 85, 73, 0.17);
                    box-sizing: border-box;
                    -moz-box-sizing: border-box;
                    -webkit-box-sizing: border-box;
                    -webkit-transition: all 0.3s ease-out;
                    -moz-transition: all 0.3s ease-out;
                    -ms-transition: all 0.3s ease-out;
                    -o-transition: all 0.3s ease-out;
                    transition: all 0.3s ease-out;
                    background-color: #0583bb;
                }

                    #topnav nav ul li a:hover {
                        border: none;
                        border-bottom: 1px solid rgba(90, 85, 73, 0.17);
                        color: rgb(248, 248, 248);
                    }

                    #topnav nav ul li a.sel {
                    }

        #topnav #navbtn {
            display: block;
        }
}
