/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/* 
    Created on : Nov 27, 2016, 6:18:46 PM
    Author     : Filippo
*/

/* Remove margins and padding from the list, and add a black background color */
ul.navbar {
    list-style-type: none;
    margin: 0;
    padding: 0;
    padding-top: 15px;
    overflow: hidden;
    background: url(../assets/images/home/header_line.svg) repeat-x 0px 0px;
    background-size: 47px 15px;;
    background-color: #292c2f;
}

/* Float the list items side by side */
ul.navbar li {float: left;}

/* Style the links inside the list items */
ul.navbar li a {
    display: inline-block;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    transition: 0.3s;
    font-size: 17px;
    height: 64px;
    vertical-align: middle;
}

/* Allinea il testo delle varie voci del menu */
.navbar span{
    vertical-align: middle;
}

/*Padding per il logo*/
#navbar-logo{
    padding: 7px 16px;
}

/*Altezza immagine logo*/
#navbar-logo img:first-of-type{
    height: 45px;
}

/* Change background color of links on hover */
ul.navbar li a:hover {background-color: #555;}

/* Hide the list item that contains the link that should open and close the topnav on small screens */
ul.navbar li.navBarIcon {display: none;}

@media (max-width: 850px){
    ul.navbar li a{
        padding-left: 8px;
        padding-right: 8px;
    }
}

/* When the screen is less than 680 pixels wide, hide all list items, except for the first one ("Home"). Show the list item that contains the link to open and close the topnav (li.icon) */
@media screen and (max-width:767px) {
    ul.navbar li:not(:first-child) {display: none;}
    ul.navbar li.navBarIcon {
        float: right;
        display: inline-block;
    }
}

/* The "responsive" class is added to the topnav with JavaScript when the user clicks on the icon. This class makes the topnav look good on small screens */
@media screen and (max-width:767px) {
    ul.navbar.responsive {position: relative;}
    ul.navbar.responsive li.navBarIcon {
        position: absolute;
        right: 0;
        top: 0;
    }
    ul.navbar.responsive li {
        float: none;
        display: inline;
    }
    ul.navbar.responsive li a {
        display: block;
        text-align: left;
    }
}


@media (max-width: 360px){
    /* Diminuisce l'altezza del logo */
    #navbar-logo img{
        height: 30px;
    }
    /* Cambia il padding del logo */
    #navbar-logo{
        padding: 0px 7px;
    }
    /* Diminuisce di conseguenza l'altezza complessiva della navbar */
    ul.navbar li a {
        height: 50px;
    }
}