/*BACK TO TOP*/
.back-to-top {
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    width: 55.5px;
    height: 55.5px;
    text-align: center;
    color: #ffffff;
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 1.39em;
    line-height: 55.5px;
    border: 2px solid #ffffff;
    z-index: 900;
}

.back-to-top em {
    font-size: 30px;
    color: #fff;
}

/*END*/

#masthead.drawer-is-open{
    margin-left: 500px;
    transition: all 0.3s ease;
}

#main-content.drawer-is-open{
    margin-left: 500px;
    transition: all 0.3s ease;
}

#subhead nav, #subhead-sticky-menu-button nav ul,#subhead-sticky nav ul {
    margin-top: 10px;
    padding: 0;
}

#subhead {
    color: #fff;
    box-shadow: 0 2px 2px 0 rgba(0,0,0,.14),0 3px 1px -2px rgba(0,0,0,.2),0 1px 5px 0 rgba(0,0,0,.12);
    transition: all 0.5s ease;
    height: 48px;
    /*border-top: 1px solid #fff;
	*/
}

#subhead-sticky {
    color: #fff;
    transition: all 0.5s ease;
    position: absolute;
    z-index: 1;
    bottom: 30px;
    width: 100%;
    text-align: center;
}

#subhead-sticky nav {
    margin: 0;
    background: #fff;
    background: transparent;
    background: rgba(255,255,255,0.4);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#66ffffff,endColorstr=#66ffffff);
    zoom: 1;
    padding: 10px;
}

#subhead-sticky nav a{
    padding-top: 10px;
    padding-bottom: 10px;
    margin: 0;
    font-weight: 300;
    line-height: 65px;
    text-transform: uppercase;
}

#subhead-sticky .mdl-navigation {
    display: block;
    text-align: center;
}

#subhead-sticky .mdl-navigation a,#subhead-sticky .mdl-navigation a:visited{
    color: #fff;
    padding-left: 2em;
    padding-right: 2em;
    font-size: 1.5em;
    font-weight: 200;
}

#subhead-sticky .mdl-navigation a:hover{
    text-decoration: underline;
}

#subhead-sticky-menu-button {
    color: #fff;
    transition: all 0.5s ease;
    position: absolute;
    z-index: 1;
    bottom: 100px;
    width: 100%;
    text-align: center;
}

#subhead-sticky-menu-button nav {
    margin: 0;
    background: #fff;
    background: transparent;
    background: rgba(255,255,255,0.4);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#66ffffff,endColorstr=#66ffffff);
    zoom: 1;
    padding: 10px;
}

#subhead-sticky-menu-button nav a{
    padding-top: 10px;
    padding-bottom: 10px;
    margin: 0;
    font-weight: 300;
    line-height: 65px;
    text-transform: uppercase;
}

#subhead-sticky-menu-button .mdl-navigation {
    display: block;
    text-align: center;
}

#subhead-sticky-menu-button .mdl-navigation a,#subhead-sticky-menu-button .mdl-navigation a:visited{
    color: #fff;
    padding-left: 2em;
    padding-right: 2em;
    font-size: 1.8em;
    font-weight: 400;
    padding-top: 2em;
    padding-bottom: 2em;
    width: 300px;
    position: relative;
    display: inline-block;
}


#subhead-sticky-menu-button .mdl-navigation a:hover{
    text-decoration: underline;
}

#subhead-sticky-menu-button nav#nav-header-secondary{
    padding: 70px;
}



#subhead .mdl-navigation {
    display: block;
    text-align: center;
}

#subhead .mdl-navigation a,#subhead .mdl-navigation a:visited{
    color: #fff;
    padding-left: 2em;
    padding-right: 2em;
    font-size: 1.5em;
    font-weight: 200;
}

#subhead .mdl-navigation a:hover{
    text-decoration: underline;
}

.site-header {
    position: fixed;
    z-index: 4;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-flex-wrap: nowrap;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-justify-content: flex-start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    box-sizing: border-box;
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    min-height: 64px;
    max-height: 1000px;
    color: #fff;
    box-shadow: 0 2px 2px 0 rgba(0,0,0,.14),0 3px 1px -2px rgba(0,0,0,.2),0 1px 5px 0 rgba(0,0,0,.12);
    transition-duration: .2s;
    transition-timing-function: cubic-bezier(.4,0,.2,1);
    transition-property: max-height,box-shadow;
}

.site-info{
    height: 150px;
    transition: all 0.5s ease;
}

#site-logo img {
    height: 76px;
    transition: all 0.5s ease;
}

/*FOOTER*/

.footer-middle .item .social-bar a {
    width: 45px;
    height: 45px;
}

.footer-middle .item .social-bar a em{
    line-height: 45px;
}



section.footer-top .item .item-icons em {
    font-size: 3em;
    padding-left: 0.5em;
    padding-right: 0.5em;
}

section.footer-top img {
    height: 85px;
}

/*END FOOTER*/



/*FLAG*/
.flag_container div.green {
    background: #009246 none repeat scroll 0 0;
}

.flag_container div.white {
    background: #F1F2F1 none repeat scroll 0 0;
}

.flag_container div.red {
    background: #ce2b37 none repeat scroll 0 0;
}

.flag_container div {
    float: left;
    height: 10px;
    overflow: hidden;
    width: 33.3333%;
}

.flag_container{
    transition: all 0.5s ease;
}
/*END FLAG*/

.search-box form {
    background-color: #fff;
}

.search-box form input#s{
    font-family: "Titillium Web", Helvetica, Arial, sans-serif;
    border: none;
    padding: 0 12px 0 12px;
    margin: 0;
    padding-right: 64px;
    position: relative;
    width: 100%;
    font-size: 1.2em;
    color: #1c2024;
}

.search-box form input.search-icon{
    font-family: FontAwesome, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    position: absolute;
    z-index: 1;
    text-align: center;
    right: 0;
    width: 48px;
    padding: 0;
    margin: 0;
    color: #ffffff;
    font-size: 1.5em;
    cursor: pointer;
    display: inline-flex;
    border: none;
    top: 0;
    padding-left: 10px;
    padding-right: 10px;
}

input[placeholder], [placeholder], *[placeholder] {
    color: #72777c !important;
}

#site-title p, #site-description p{
    margin-bottom: 0;
}

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

.social-bar span {
    margin: 0;
    padding-top: 0.5em;
    font-size: 1em;
}

.social-bar{
    transition: all 0.5s ease;
}

.social-bar a {
    display: inline-block;
    text-align: center;
    width: 30px;
    height: 30px;
    line-height: 30px;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
}


.header-right .social-bar a:hover em {
    color: #fff;
}

.social-share {
    display: inline-flex;
    position: relative;
    margin-left: auto;
    margin-right: auto;
}

.social-share a em {
    text-align: center;
    padding-left: 1em;
    padding-right: 1em;
}
.social-share a{
    width: 25% !important;
}

.header-right .search-box{
    padding: 0;
}

.search-box {
    min-width: 32px;
    width: auto;
    min-height: 32px;
    position: relative;
    font-size: 16px;
    display: inline-block;
    box-sizing: border-box;
    max-width: 100%;
    margin: 0;
    padding: 20px 0;
}

.floating-search-box {
    position: absolute;
    bottom: 5%;
    left: 5%;
    right: 5%;
    padding-left: 3%;
    padding-right: 3%;
    padding-top: 3%;
    padding-bottom: 3%;
    background: #fff;
    background: transparent;
    background: rgba(255,255,255,0.4);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#66ffffff,endColorstr=#66ffffff);
    zoom: 1;
}

.floating-search-box .search-box form input#s {
    height: 100px;
    float: left;
}

.floating-search-box .search-box form input.search-icon {
    height: 100px;
    width: 100px;
    position: relative;
    float: right;
}

.floating-search-box .search-box form {
    display: inline-flex;
    width: 100%;
}


#layout-drawer .mdl-navigation .mdl-navigation__link:hover {
    background-color: #b3d4fc;
}

#layout-drawer .mdl-navigation .mdl-navigation__link {
    color: #333;
    border-bottom: 1px solid #e7e6e4;
}

#layout-drawer .mdl-navigation {
    padding-top: 3em;
}

#layout-drawer.is-visible ~ .layout-obfuscator {
    background-color: rgba(0,0,0,.5);
    visibility: visible;
}

.layout-obfuscator  {
    background-color: transparent;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 5;
    visibility: hidden;
    -webkit-transition-property: background-color;
    transition-property: background-color;
    -webkit-transition-duration: .2s;
    transition-duration: .2s;
    -webkit-transition-timing-function: cubic-bezier(.4,0,.2,1);
    transition-timing-function: cubic-bezier(.4,0,.2,1);
}

#nav-drawer-menu ul,
#nav-drawer-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
}
#nav-drawer-menu ul{
    border-top: 1px solid #e7e6e4;
    border-bottom: 1px solid #e7e6e4;
}
#nav-drawer-menu li {
    border-bottom: 1px solid #e7e6e4;
}

#nav-drawer-menu li:last-child {
    border: none;
}

#nav-drawer-menu ul li.hover,
#nav-drawer-menu ul li:hover {
    position: relative;
    z-index: 599;
    cursor: default;
}

#nav-drawer-menu ul ul li {
    float: none;
}
#nav-drawer-menu ul ul ul {
    top: 0;
    left: 190px;
    width: 190px;
}

#nav-drawer-menu ul ul {
    position: relative;
    width: 100%;
}
/*
#nav-drawer-menu ul li:hover > ul {
  display: block;
}*/
#nav-drawer-menu ul ul {
    bottom: 0;
    left: 0;
}
#nav-drawer-menu ul ul {
    margin-top: 0;
}
#nav-drawer-menu ul ul li {
    font-weight: normal;
}
#nav-drawer-menu a {
    display: block;
    line-height: 1em;
    text-decoration: none;
}
/* Custom CSS Styles */

#nav-drawer-menu {
    width: 100%;
    height: auto;
    margin-top: 5em;
}

#nav-drawer-menu:after,
#nav-drawer-menu ul:after {
    content: '';
    display: block;
    clear: both;
}

#nav-drawer-menu ul li > a{
    color: #333;

    outline: none;
}

#nav-drawer-menu ul li:hover > a{
    color: #333;
}

#nav-drawer-menu ul ul li > a {
    color: #333;
}

#nav-drawer-menu ul ul li:hover > a {
    background: #CEF1FF;
    color: #333;
}

#nav-drawer-menu .accordian-toggle.collapsed:after {
    font-family: FontAwesome, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    content: '\f107';
    position: absolute;
    right: 10px;
    font-size: 1.5em;
}

#nav-drawer-menu .accordian-toggle:after {
    font-family: FontAwesome, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    content: '\f106';
    position: absolute;
    right: 10px;
    font-size: 1.5em;
}

#nav-drawer-menu .accordian-toggle.collapsed{
    text-decoration: none;
    border-top: 1px solid #e7e6e4;
    border-bottom: 1px solid #e7e6e4;
    background-color: transparent;
}

#nav-drawer-menu .accordian-toggle.collapsed:hover{
    text-decoration: underline;;
}

#nav-drawer-menu > ul > li > a {
    font-size: 1.5em;
    padding: 1em;
}

#nav-drawer-menu ul ul a {
    font-size: 1.5em;
    padding: 1em;
}
#nav-drawer-menu .submenu li{
    padding-left: 40px !important;
}

#nav-drawer-menu .submenu li a:hover{
    background-color: transparent;

}

#layout-drawer.is-visible {
    -webkit-transform: translateX(0);
    transform: translateX(0);
}
#layout-drawer {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-flex-wrap: nowrap;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    width: 500px;
    height: 100%;
    max-height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    box-shadow: 0 2px 2px 0 rgba(0,0,0,.14),0 3px 1px -2px rgba(0,0,0,.2),0 1px 5px 0 rgba(0,0,0,.12);
    box-sizing: border-box;
    border-right: 1px solid #e0e0e0;
    background: #fafafa;
    -webkit-transform: translateX(-500px);
    transform: translateX(-500px);
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    will-change: transform;
    transition-duration: .2s;
    transition-timing-function: cubic-bezier(.4,0,.2,1);
    transition-property: transform;
    transition-property: transform,-webkit-transform;
    color: #424242;
    overflow: visible;
    overflow-y: auto;
    z-index: 6;
}

#layout-spacer {
    -webkit-flex-grow: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
}

/* END DRAWER MENU STYLE*/

/*DRAWER BUTTON*/

.drawer-button-wrapper.small  {
    top: -5px;
    transition: all 0.5s ease;
}


header .drawer-button-wrapper {
    transition: all 0.5s ease;
}

.toggle-menu {
    overflow-y: hidden;
    overflow: hidden !important;
    position: relative;
    margin-top: 18px;
    margin-bottom: 18px;
    margin-top: 23px;
    margin-left: 24px;
    width: 64px;
    height: 64px;
    display: block;
    padding: 0;
    cursor: pointer;
    -webkit-transition: right .3s;
    -moz-transition: right .3s;
    -o-transition: right .3s;
    transition: right .3s;
}

.drawer-button-wrapper.small .toggle-menu{
    margin-top: 50px;
}

.toggle-menu .bar:first-child {
    top: 15px;
}

.toggle-menu .bar:last-child {
    top: 35px;
}

.toggle-menu .bar {
    height: 4px;
    width: 40px;
    background: #fff;
    position: absolute;
    left: 12px;
    top: 25px;
    -webkit-transition: all .3s cubic-bezier(.35,.085,.305,1.005);
    -moz-transition: all .3s cubic-bezier(.35,.085,.305,1.005);
    -o-transition: all .3s cubic-bezier(.35,.085,.305,1.005);
    transition: all .3s cubic-bezier(.35,.085,.305,1.005);
}

.toggle-menu.menu-active .bar:first-child {
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=$ms)";
    filter: alpha(opacity=100);
    -moz-opacity: 1;
    -khtml-opacity: 1;
    opacity: 1;
    background: #ffffff;
}

.toggle-menu.menu-active .bar {
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=$ms)";
    filter: alpha(opacity=0);
    -moz-opacity: 0;
    -khtml-opacity: 0;
    opacity: 0;
    position: absolute;
    top: 23px;
    height: 4px;
    background: #ffffff;
    -webkit-transition: all 0.3s cubic-bezier(0.35, 0.085, 0.305, 1.005);
    -moz-transition: all 0.3s cubic-bezier(0.35, 0.085, 0.305, 1.005);
    -o-transition: all 0.3s cubic-bezier(0.35, 0.085, 0.305, 1.005);
    transition: all 0.3s cubic-bezier(0.35, 0.085, 0.305, 1.005);
}

.toggle-menu.menu-active .bar:last-child {
    -webkit-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=$ms)";
    filter: alpha(opacity=100);
    -moz-opacity: 1;
    -khtml-opacity: 1;
    opacity: 1;
    background: #ffffff;
}
/*END DRAWER BUTTON*/
.site-main {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-flow: row wrap;
    -ms-flex-flow: row wrap;
    flex-flow: row wrap;
    margin: 0 auto;
    -webkit-align-items: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
    max-width: unset;
    padding: 0;
}

.site-main.search {
    padding-left: 24px;
    padding-right: 24px;
}

/*SINGLE UFFICIO*/
.single-ufficio-orari p{
    margin: 0;
    padding: 1em;
    font-size: 1.3em;
    line-height: 1.428571429;
    color: #333333;
}

.single-ufficio-orari {
    margin-bottom: 20px;
}

.single-ufficio-orari table {
    border-collapse: collapse;
}
.single-ufficio-orari table tr{
    border-bottom: 1px solid #e7e6e4;
}

.single-ufficio-orari table tr.today p{
    color: #ffffff;
}
/**/


/*SINGLE GIUNTA COMUNALE*/

.single-giunta-comunale-image em {
    font-size: 10em;
}

.single-giunta-comunale-image {
    width: auto;
    text-align: center;
}

.single-giunta-comunale-image img{
    width: 200px;
    height: 150px;
}
/**/

/*SINGLE CONSIGLIO COMUNALE*/

.single-consiglio-comunale-image em {
    font-size: 10em;
}

.single-consiglio-comunale-image {
    width: auto;
    text-align: center;
}

.single-consiglio-comunale-image img{
    width: 200px;
    height: 150px;
}
/**/

/*HOME MAP*/
.home-map .map{
    width: 100%;
    height: 500px;
}

/*HEADER*/
#layout-drawer-button.small {
    top: 5px;
    transition: all 0.5s ease;
}

.small-header .site-info{
    height: 70px;
    transition: all 0.5s ease;
}

.small-header #site-logo img {
    height: 50px;
    transition: all 0.5s ease;
}

.small-header #site-title p{
    font-size: 30px;
    transition: all 0.5s ease;
}

.small-header .header-right {
    padding: 0.5em;
    transition: all 0.5s ease;
}

.small-header .social-bar{
    display: none;
    transition: all 0.5s ease;
}

.small-header .flag_container{
    display: none;
    transition: all 0.5s ease;
}

.small-header #subhead{
    display: none;
    transition: all 0.5s ease;
}

.small-header .search-box form input#s {
    transition: all 0.5s ease;
    line-height: 50px;
}

.small-header .search-box form input.search-icon {
    transition: all 0.5s ease;
}

.small-header .drawer-button-wrapper.small .toggle-menu {
    margin-top: 10px;
}
/**/

/*HEADER TOP*/
header #header-top {
    width: 100%;
    transition: all 0.5s ease;
}

.small-header #header-top{
    display: none;
    transition: all 0.5s ease;
}


header #header-top a:hover{
    color: #fff;
    text-decoration: underline;
}

/*FORM*/
.wpcf7-form p{
    padding-bottom: 10px;
}

.wpcf7-form textarea{
    width: 100%;
}

.wpcf7-form .fieldset-legend{
    border: 0;
    margin-top: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid #000;
    display: inline-block;
    width: 100%;
    padding: 0;
    text-transform: none;
    margin-left: 0;
    font-size: 28px;
    font-weight: 400;
}

.wpcf7-form .fieldset-title{
    font-size: 18px;
    margin-top: 0;
    max-width: 100%;
    margin-bottom: 5px;
    font-weight: bold;
}

.wpcf7-form-control-wrap{
    padding-bottom: 20px;
}

.btn.disabled, .btn[disabled], fieldset[disabled] .btn {
    cursor: unset;
}

.wpcf7-submit:hover{
    opacity: 0.75;
}

div.wpcf7-validation-errors {
    border: 2px solid #ff0000;
}

.alphabet-anchors li {
    display: inline-block;
    padding: 1em;
    border-radius: 50%;
    margin: 0.5em;
    width: 40px;
    height: 40px;
    padding-top: 0.7em;
    padding-left: 1.1em;
}

.alphabet-anchors li a,.alphabet-anchors li a:visited{
    color: #fff;
}

.overview-list-item {
    list-style: none;
}

.overview-list-item-title {
    font-size: 1.5em;
}


/*WEATHER*/


.home-weather .item .weather{
    border-radius:0 0 5px 5px;
    font-family:'Advent Pro';
    font-weight:200;
    height:130px;
    width:100%;
}

.home-weather .item .weather .item-icon{
    font-size: 50px;
    width: 100%;
}

.home-weather .item .weather .item-description{
    font-size: 30px;
}

.home-weather .item .weather .info{
    float:left;
    height:150px;
    padding-top:10px;
    text-align:center;
    width:25%;
    position: relative;
}

.home-weather .item .clock{
    border-radius:100%;
    box-shadow:0 0 0 15px #f5f5f5,0 10px 10px 5px rgba(0,0,0,0.3);
    height: 150px;
    position: relative;
    width: 150px;
    float: left;
}

.home-weather .item .weather, .home-weather .item .date {
    float: left;
}
.home-weather .item .clock .hour{
    background:#f5f5f5;
    height:50px;
    left:50%;
    position: absolute;
    top:25px;
    width:4px;
}

.home-weather .item .clock .min{
    background:#f5f5f5;
    height:65px;
    left:50%;
    position: absolute;
    top:10px;
    transform:rotate(100deg);
    width:4px;
}

.home-weather .item .clock .min,.home-weather .item .clock .hour{
    border-radius:5px;
    transform-origin:bottom center;
    transition:all .5s linear;
}


/* HOME - PROFILI UTENTE && BUON CITTADINO */

section .item-select .btn.dropdown-toggle.btn-default{
    height: 50px;
}

section .item-select .bootstrap-select.btn-group .dropdown-menu li a{
    line-height: 50px;
}


/*LINK UTILI*/
.home-link-utili .item .btn {
    width: 100%;
}

#single-map {
    width: 100%;
    height: 500px;
}

.card-deck > .card {
    flex-basis: 30%;
}
