/*Logo rendering optimization*/
.logo img,
.nav>li>a>img,
.powered .torino-footer img {
    image-rendering: -webkit-optimize-contrast;
}

/*Breadcrumb emphasis*/
.breadcrumbs .current > em {
    color: inherit;
    font-style: normal;
    font-weight: inherit;
}

/*Containers clearfixing*/
.webcam-container:before,
.webcam-container:after,
.avvisi-masonry:before,
.avvisi-masonry:after {
    content: " ";
    display: table;
}
.webcam-container:after,
.avvisi-masonry:after {
    clear: both;
}

/*Display tabs only on mobile*/
.nav.nav-pills {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}
@media (min-width: 940px) {
    .nav.nav-pills {
        display: none;
    }
}

/*Mobile optimizations*/
@media (max-width: 939px) {
    .widget_calcolapercorso:after {
        display: none;
    }
    .widget_calcolapercorso:before {
        margin-left: -11px;
        left: 50%;
        right: inherit;
        bottom: -11px;
    }
	body {
    	margin: 75px 0 0;
	}
    .page-cover > .container,
    .foobar > .container,
    .footer > .container,
    .main-content,
    .sidebar {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    .main-content {
        margin-top: 15px;
    }
    .page-cover {
        margin-top: 0;
        padding-bottom: 0;
        height: 22.825vw;
        min-height: 130px;
    }
    .main-menu,
    .breadcrumbs {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        margin-bottom: 0;
        z-index: 9999999;
    }
    .main-menu {
        margin: 0;
        background: #fff;
        box-shadow: 0 1px 0 #e1e3e6;
        border-left-width: 0;
        border-right-width: 0;
    }
    .main-menu .navbar-collapse {
        max-height: 400px;
        margin-top: -3px;
    }
    .breadcrumbs {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        padding: 0;
        width: calc(100% - 88px);
        height: 50px;
        margin: auto;
        text-align: center;
    }
    .breadcrumbs > *:not(.current) {
        display: none;
    }
    .breadcrumbs .current {
        position: static;
        display: block;
        width: 100%;
        font-size: 1rem;
        line-height: 1.3;
    }
    .breadcrumbs .current > em {
        display: inline-block;
        max-width: calc(100% - 90px);
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
    .breadcrumbs .current.children .icon-down {
        bottom: 6px;
    }
    .breadcrumbs .bread-children {
        top: 51px;
        left: -44px;
        right: -44px;
        border-radius: 0;
        box-shadow: 0 3px 6px rgba(0,0,0,0.21);
    }
    .breadcrumbs .bread-children li a {
        font-size: 0.95em;
    }
    .main-menu .navbar-collapse,
    .breadcrumbs .bread-children {
        box-shadow: 0 3px 6px rgba(0,0,0,0.21);
    }
    .top-menu {
        margin: 0;
    }
    .top-menu [class*="col-"] {
        padding: 0 2%;
    }
    .grid {
        margin: 0;
    }
    .grid-item {
        padding: 0 2%;
    }
    .page-cover h1,
    .main-content h1,
    .main-content h1.page-title {
        font-size: 38px;
    }
    .footer ul {
        margin-bottom: 0;
    }
    .footer ul li {
        display: block;
        padding-right: 0;
    }
    .footer ul li + li {
        margin-top: 0.8334rem;
    }
    .footer .powered {
        margin-top: 1.667rem;
        line-height: 1.8;
    }
    .powered .torino-footer {
        display: block;
        margin-top: 25px;
    }
    .powered .torino-footer img {
        position: static;
        margin-top: 0;
    }
    .news-box {
        padding-right: 20%;
    }
    .news-box h2 {
        font-size: 28px;
        line-height: 33px;
        -webkit-line-clamp: 3;
        max-height: 102px;
    }
    .pll-parent-menu-item {
        padding-left: 0;
    }
    .pll-parent-menu-item:before {
        display: none;
    }
    .pll-parent-menu-item .dropdown-menu {
        margin-left: -9px !important;
    }
    .avvisi-masonry,
    .webcam-container {
        margin-left: 0;
    }
    .avvisi-masonry > .col-xs-4,
    .webcam-container > .col-xs-6 {
        float: none;
        width: inherit;
        padding: 0 0 1.2rem;
    }
    .avvisi-masonry {
        position: static !important;
        height: auto !important;
        margin-top: 0 !important;
    }
    .avviso-outer {
        position: relative !important;
        width: auto !important;
        top: inherit !important;
        left: inherit !important;
        transform: none !important;
    }
    .avviso h2 {
        margin-top: 10px;
        font-size: 20px;
        font-weight: 700;
        line-height: 1.3;
    }
    .avviso h3,
    .avviso h4 {
        line-height: 1;
    }
    .avviso h3 {
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 1px;
    }
    .avviso h4 {
        font-size: 11px;
        font-weight: 600;
        line-height: 1;
        margin-bottom: 10px;
    }
    .avvisi-search {
        margin-top: 0;
        padding: 1rem;
        margin-right: -1rem;
        margin-left: -1rem;
        border-color: #eee;
        border-radius: 0;
    }
    .avvisi-search-input:before {
        content: url(data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTYuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjE2cHgiIGhlaWdodD0iMTZweCIgdmlld0JveD0iMCAwIDgwLjUwMiA4MC41MDIiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDgwLjUwMiA4MC41MDI7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPGc+Cgk8ZyBpZD0iWm9vbV8xXyI+CgkJPGc+CgkJCTxwYXRoIGQ9Ik04MC41MDIsNzQuNjU4TDU4LjY4OCw1Mi43NDJjNC4xOTMtNS41MjQsNi42OTEtMTIuNDE2LDYuNjkxLTE5Ljg4NWMwLTE4LjEwNC0xNC42NjQtMzIuODQtMzIuNjktMzIuODQgICAgIFMwLDE0Ljc1MywwLDMyLjg1N2MwLDE4LjExMSwxNC42NjQsMzIuODQ4LDMyLjY4OSwzMi44NDhjNy42NDMsMCwxNC42NzQtMi42NTUsMjAuMjQ3LTcuMDg4bDIxLjc2OCwyMS44NjdMODAuNTAyLDc0LjY1OHogICAgICBNMzIuNjg5LDU4LjMxMmMtMTMuOTY3LDAtMjUuMzMyLTExLjQxOS0yNS4zMzItMjUuNDU1YzAtMTQuMDI3LDExLjM2NS0yNS40NDYsMjUuMzMyLTI1LjQ0NiAgICAgYzEzLjk2OCwwLDI1LjMzMywxMS40MTksMjUuMzMzLDI1LjQ0NkM1OC4wMjEsNDYuODk0LDQ2LjY1Nyw1OC4zMTIsMzIuNjg5LDU4LjMxMnoiIGZpbGw9IiM5OTk5OTkiLz4KCQk8L2c+Cgk8L2c+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPC9zdmc+Cg==);
        width: 16px;
        height: auto;
        display: block;
        position: absolute;
        top: calc(50% + 1px);
        left: 8px;
        -ms-transform: translateY(-50%);
        -webkit-transform: translateY(-50%);
        transform: translateY(-50%);
    }
    .avvisi-search .avvisi-search-input input {
        color: #999;
        padding-right: 15px;
        padding-left: 40px;
        margin-bottom: 0;
        line-height: 34px;
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
    }
    .avvisi-search .avvisi-search-input button {
        display: none;
    }
    .avvisi-search .avvisi-search-filter {
        margin-top: 15px;
        font-size: 0;
    }
    .avvisi-search .avvisi-search-filter > button {
        margin-left: 5px;
        margin-bottom: 9px;
        font-weight: 500;
        line-height: 32px;
        font-size: 11px;
    }
    .avvisi-search .avvisi-search-filter > button:first-child {
        margin-left: 0;
    }
    .parcheggi-section h2 {
        font-size: 0px;
        margin: 10px 0 !important;
        text-align: center;
    }
    .parcheggi-section h2 .last-update {
        margin-left: 0;
    }
    .parcheggi-section .parcheggio {
        display: block;
        height: auto;
        font-size: 20px;
        padding: 1rem 1rem 0;
    }
    .parcheggi-section .parcheggio:before,
    .parcheggi-section .parcheggio:after {
        content: " ";
        display: table;
    }
    .parcheggi-section .parcheggio:after {
        clear: both;
    }
    .parcheggi-section .parcheggio>span {
        font-size: 11px;
        margin-bottom: 15px;
        letter-spacing: 0.02em;
    }
    .parcheggi-section .parcheggio>span.nome-parcheggio {
        font-size: 1.2rem;
        font-style: normal;
        font-weight: 700;
        line-height: 1.5;
        margin-bottom: 0;
    }
    .parcheggi-section .parcheggio > .posti_totali,
    .parcheggi-section .parcheggio >.posti_liberi {
        display: block;
        position: static;
        float: left;
        width: calc(50% + 1rem);
        border: none;
        font-size: 24px;
        line-height: 36px;
        padding-bottom: 5px;
        border-top: 1px solid #c4c6cc;
    }
    .parcheggi-section .parcheggio >.posti_liberi {
        margin-left: -1rem;
        border-radius: 0 0 0 10px;
    }
    .parcheggi-section .parcheggio > .posti_totali {
        margin-right: -1rem;
        border-radius: 0 0 10px 0;
        border-left: 1px solid #c4c6cc;
    }
    .parcheggi-section .parcheggio:before {
        width: 20px;
        height: 21px;
        background-size: 20px 21px;
        left: inherit;
        top: 31px;
        right: 18px;
    }
    .parcheggi-section .parcheggio .posti_liberi span,
    .parcheggi-section .parcheggio .posti_totali span {
        font-size: 11px;
        margin-top: 8px;
        font-weight: 400;
    }
    .parcheggi-section .parcheggio .posti_liberi span.p-liberi,
    .parcheggi-section .parcheggio .posti_totali span.p-totali {
        font-size: 1.24rem;
        margin-bottom: 8px;
    }
    .post-content p {
        font-size: 16px;
    }
    .widget_boxlinktopage,
    .widget_calcolapercorso,
    .widget_esploramato,
    .widget_percheusare {
        padding-right: 50px;
        font-size: 20px;
        font-weight: 500;
        line-height: 1.4;
        margin-bottom: 20px;
    }
    .widget .button-link-text {
        width: 100%;
        padding: 9px 15px;
        margin-top: 15px;
    }
    .widget_percheusare img {
        width: auto;
        height: 50px;
        margin-top: 0;
        top: 20px;
        right: 50px;
    }
    .filter-overview-container li {
        font-size: 14px;
        border-color: #eee;
    }
    /*Tabs*/
    .nav.nav-pills {
        width: auto;
        margin-left: -1rem;
        margin-right: -1rem;
        box-shadow: 0 1px 0 #e1e3e6;
        margin-bottom: 10px;
    }
    .nav.nav-pills > li {
        -ms-flex: 0 0 50%;
        flex: 0 0 50%;
        max-width: 50%;
        font-size: .75rem;
        font-weight: 600;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }
    .nav.nav-pills > li + li {
        margin-left: 0;
        border-left: 1px solid #e1e3e6;
    }
    .nav.nav-pills > li > a {
        color: #878787;
        background-color: #f2f5fa;
        padding-left: 30px;
        padding-right: 30px;
        margin-bottom: 0;
        height: 100%;
        border-radius: 0;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-transition: all 0.2s linear;
        transition: all 0.2s linear;
    }
    .nav.nav-pills > li.active > a,
    .nav.nav-pills > li.active > a:hover,
    .nav.nav-pills > li.active > a:focus {
        color: #fff;
        background-color: rgba(39,149,231,.75);
    }
    /*Fix Bootstrap modal on mobile*/
    .modal {
        bottom: inherit;
    }
    .modal-dialog {
        width: 100%;
        margin: 51px 0 0 3px;
    }
    .modal-content {
        width: auto !important;
        height: 100vh !important;
        border: none;
        border-radius: 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.2);
        overflow-y: scroll;
    }
    .parcheggi-info {
        height: auto !important;
    }
    .parcheggi-map {
        height: 75vh;
        min-height: 450px;
        max-height: 600px;
    }
    .modal-content #map {
        width: 100%;
        height: 100%;
    }
    /*Template "Parcheggi" (mobile)*/
    .page-template-template-parcheggi .main-content {
        margin-top: 0;
    }
    .page-template-template-parcheggi .post-content > .tab-pane {
        display: none;
    }
    .page-template-template-parcheggi .post-content > .tab-pane.active {
        display: block;
    }
    .page-template-template-parcheggi .post-content .fade {
        -webkit-transition: all 0.4s linear;
        transition: all 0.4s linear;
    }
    /*Template "Overview" (mobile)*/
    .page-template-template-overview .main-content {
        margin-top: 0;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-template-template-overview .main-content:before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        height: 100%;
        opacity: 0;
        background-color: rgba(0,0,0,0.4);
        -webkit-transition: all 0.3s ease 0.05s;
        transition: all 0.3s ease 0.05s;
        z-index: 1040;
        visibility: hidden;
    }
    .page-template-template-overview .main-content.overlay:before {
        opacity: 1;
        visibility: visible;
    }
    .page-template-template-overview #map-canvas {
        border-radius: 0;
        height: calc(100vh - 33px);
    }
    .page-template-template-overview #map-canvas .leaflet-top.leaflet-left {
        display: none;
    }
    .page-template-template-overview .sidebar {
        position: fixed;
        left: 0;
        width: 75%;
        min-width: 240px;
        max-width: 375px;
        top: 61px;
        z-index: 1040;
        padding: 0 !important;
        background: #fff;
        height: 100%;
        will-change: transform;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-transform: translateX(-100%);
        -ms-transform: translateX(-100%);
        transform: translateX(-100%);
        -webkit-transition: -webkit-transform 0.4s ease;
        transition: -webkit-transform 0.4s ease;
        -o-transition: transform 0.4s ease;
        transition: transform 0.4s ease;
        transition: transform 0.4s ease, -webkit-transform 0.4s;
    }
    .page-template-template-overview .sidebar.open {
        -webkit-transform: translateX(0%);
        -ms-transform: translateX(0%);
        transform: translateX(0%);
    }
    .page-template-template-overview .sidebar > .widgettitle {
        color: transparent;
        position: absolute;
        right: -35px;
        width: 35px;
        height: 37px;
        border-top-right-radius: 7px;
        border-bottom-right-radius: 7px;
        background-color: #2795e7;
        font-size: 0px;
        margin-bottom: 0;
        text-align: center;
    }
    .page-template-template-overview .sidebar > .widgettitle:before {
        content: url('../images/flag-icon.png');
        display: inline-block;
        width: 14px;
        height: 16px;
        vertical-align: middle;
    }
    .page-template-template-overview .filter-overview-container {
        margin: 0;
        border-radius: 0;
        border: none;
        position: relative;
        overflow-y: scroll;
        height: calc(100vh - 61px);
    }
    .page-template-template-overview .filter-overview-container:before {
        content: "Elementi visibili";
        display: block;
        padding: 17px 20px;
        font-size: 15px;
        text-align: center;
        text-transform: none;
    }
    .page-template-template-overview .filter-overview-container li:first-child {
        border-top: 1px solid #eee;
    }
    /*Template "Avvisi" (mobile)*/
    .page-template-template-avvisi .main-content,
    .page-template-template-webcam .main-content {
        margin-top: 0;
    }
    .page-template-template-avvisi .main-content.col-xs-12 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    #overlay_avvisi .avvisi_meta > * {
        float: left;
    }
    #overlay_avvisi .avvisi_meta:before,
    #overlay_avvisi .avvisi_meta:after {
        content: " ";
        display: table;
    }
    #overlay_avvisi .avvisi_meta:after {
        clear: both;
    }
    #overlay_avvisi .avvisi_meta > img {
        margin-right: 10px;
    }
    #overlay_avvisi .avvisi_meta > img:not(:first-child) {
        clear: left;
        margin-top: 13px;
    }
    #overlay_avvisi .avvisi_meta .date {
        font-size: 13px;
        font-style: italic;
        font-weight: 600;
    }
    #overlay_avvisi .avvisi_meta .lavori-in-corso {
        margin-top: 6px;
    }
    #overlay_avvisi .avvisi_content {
        font-size: 15px;
    }
    #overlay_avvisi .avvisi_content p:first-of-type {
        max-height: none!important;
    }
    #overlay_avvisi .avvisi_content h2 {
        font-size: 28px;
    }
    /*Miscellanous*/
    .webcam-outer .webcam h2 {
        font-size: 22px;
        margin-bottom: 5px;
    }
    .webcam-outer .webcam .date-txt {
        font-size: 12px;
    }
    .webcam-outer .webcam .web-nums {
        font-size: 12px;
        font-weight: 600;
    }
    #overlay_avvisi,
    #overlay_webcam,
    #overlay_parcheggi {
        margin-top: 76px;
    }
    #overlay_avvisi #avvisi_map,
    #overlay_parcheggi #parcheggi_map {
        height: 75vh;
        min-height: 375px;
        max-height: 450px;
    }
    #overlay_avvisi .go-prev,
    #overlay_avvisi .go-next,
    #overlay_webcam .go-prev,
    #overlay_webcam .go-next,
    #overlay_parcheggi .go-prev,
    #overlay_parcheggi .go-next {
        display: none;
    }
    #overlay_avvisi .close-map,
    #overlay_webcam .close-map,
    #overlay_parcheggi .close-map {
        width: 38px !important;
        height: 38px !important;
    }
    #overlay_avvisi .close-map > img,
    #overlay_webcam .close-map > img,
    #overlay_parcheggi .close-map > img {
        width: 100%;
        height: 100%;
        image-rendering: -webkit-optimize-contrast;
    }
    #overlay_parcheggi .parcheggi_content h2,
    #overlay_webcam .webcam_content h2 {
        font-size: 28px !important;
        margin-bottom: 2px !important;
    }
    #overlay_webcam .webcam_content h2 {
        margin-right: 2px !important;
    }
    #overlay_webcam .webcam_content .nome-camera {
        font-size: 0.95rem !important;
        font-weight: 600 !important;
    }
    #overlay_parcheggi .parcheggi_content .parcheggi_loc,
    #overlay_webcam .webcam_content .camera-data.address {
        font-size: 14px !important;
    }
    #overlay_webcam .webcam_content .camera-data.address img {
        width: 12px;
        height: auto;
        image-rendering: -webkit-optimize-contrast;
        margin-top: 5px;
    }
    #overlay_parcheggi .parcheggi_liberi,
    #overlay_parcheggi .parcheggi_totali {
        padding: 15px !important;
        background-color: #f7f9fc;
    }
    #overlay_parcheggi .parcheggi_liberi .center-v p:first-child,
    #overlay_parcheggi .parcheggi_totali .center-v p:first-child {
        font-size: 11px !important;
        margin-bottom: 4px;
    }
    #overlay_parcheggi .parcheggi_liberi .center-v p:last-child,
    #overlay_parcheggi .parcheggi_totali .center-v p:last-child {
        font-size: 1.28rem !important;
        margin-bottom: 0 !important;
    }
    /*Screen reader only*/
    .page-template-template-avvisi h1.page-title,
    .page-template-template-webcam h1.page-title,
    .page-template-template-parcheggi h1.page-title,
    .page-template-template-overview h1.page-title {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        border: 0;
    }
}

@media (max-width: 600px) {
	html #wpadminbar {
		position: fixed!important;
		height: 47px!important;
		z-index: 99999999!important;
	}
}
