﻿/*
 * Public Press — header, navigazione, menu mobile, masthead sticky.
 * Estratto da style.css (CSS-T16).
 */

/* Ricerca in header (form base; .page-content .search-form in public-press-forms.css CSS-T21) */
.search-form {
	position: relative;
	text-align: right;
	max-width:250px;
	width: 100%;
	float:right;
}

input[type="search"].search-field {
	border-radius: 2px 0 0 2px;
	width: -webkit-calc(100% - 56px);
	width: calc(100% - 56px);
	background: #e2e2e2;
    border: 0;
    font-size: 13px;
    font-size: .8rem;
}

.search-submit:before {
	content: '';
	height: 28px;
	width: 28px;
	background: url('../images/sprite_v2.png') no-repeat;
	background-position: 0 0;
}

.search-submit {
	border-radius: 0 2px 2px 0;
	bottom: 0;
	overflow: hidden;
	padding: 0;
	position: absolute;
	left: 0;
	background:none;
	top: 0;
	width: 42px;
}

/** 6.2 - Menus (header + footer nav) */
 * 6.2 - Menus
 */

.site-header-menu {
	-webkit-flex: 0 1 100%;
	-ms-flex: 0 1 100%;
	flex: 0 1 100%;
	margin: 0.875em 0;
}

.site-footer .main-navigation {
	margin-bottom: 1.75em;
}

.main-navigation ul {
	list-style: none;
	margin: 0;
	text-align: center;
}

.main-navigation li {
	border-top: 1px solid #d1d1d1;
	position: relative;
}

.main-navigation a {
	color: #1a1a1a;
	display: block;
	line-height: 1.3125;
	outline-offset: -1px;
	padding: 0.84375em 0;
	font-family: 'Open Sans', sans-serif;
}

.main-navigation a:hover,
.main-navigation a:focus {
	color: #002372;
}

.main-navigation .current-menu-item > a,
.main-navigation .current-menu-ancestor > a {
	font-weight: 700;
}

.main-navigation ul ul {
	display: none;
	margin-left: 0.875em;
}

.no-js .main-navigation ul ul {
	display: block;
}

.main-navigation ul .toggled-on {
	display: block;
}

.main-navigation .primary-menu {
	border-bottom: 1px solid #d1d1d1;
}

.main-navigation .menu-item-has-children > a {
	margin-right: 56px;
}

.dropdown-toggle {
	background-color: transparent;
	border: 0;
	border-radius: 0;
	color: #1a1a1a;
	content: "";
	height: 48px;
	padding: 0;
	position: absolute;
	right: 0;
	text-transform: none;
	top: 0;
	width: 48px;
}

.dropdown-toggle:after {
	content: "";
	display: inline-block;
	width: 0.45em;
	height: 0.45em;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	left: 1px;
	position: relative;
	vertical-align: middle;
}

.dropdown-toggle:hover,
.dropdown-toggle:focus {
	background-color: transparent;
	color: #007acc;
}

.dropdown-toggle:focus {
	outline: thin dotted;
	outline-offset: -1px;
}

.dropdown-toggle:focus:after {
	border-color: transparent;
}

.dropdown-toggle.toggled-on:after {
	transform: rotate(-135deg);
}

.site-header .main-navigation + .social-navigation {
	margin-top: 1.75em;
}

.site-footer .social-navigation {
	margin-bottom: 1.75em;
}

.social-navigation ul {
	list-style: none;
	margin: 0 0 -0.4375em;
}

.social-navigation li {
	float: left;
	margin: 0 0.4375em 0.4375em 0;
}

.social-navigation a {
	border: 1px solid #d1d1d1;
	border-radius: 50%;
	color: #1a1a1a;
	display: block;
	height: 35px;
	position: relative;
	width: 35px;
}

.social-navigation a:before {
	content: "\f415";
	height: 33px;
	line-height: 33px;
	text-align: center;
	width: 33px;
}

.social-navigation a:hover:before,
.social-navigation a:focus:before {
	color: #007acc;
}

.social-navigation a[href*="codepen.io"]:before {
	content: "\f216";
}

.social-navigation a[href*="digg.com"]:before {
	content: "\f221";
}

.social-navigation a[href*="dribbble.com"]:before {
	content: "\f201";
}

.social-navigation a[href*="dropbox.com"]:before {
	content: "\f225";
}

.social-navigation a[href*="facebook.com"]:before {
	content: "\f203";
}

.social-navigation a[href*="flickr.com"]:before {
	content: "\f211";
}

.social-navigation a[href*="foursquare.com"]:before {
	content: "\f226";
}

.social-navigation a[href*="plus.google.com"]:before {
	content: "\f206";
}

.social-navigation a[href*="github.com"]:before {
	content: "\f200";
}

.social-navigation a[href*="instagram.com"]:before {
	content: "\f215";
}

.social-navigation a[href*="linkedin.com"]:before {
	content: "\f208";
}

.social-navigation a[href*="path.com"]:before {
	content: "\f219";
}

.social-navigation a[href*="pinterest.com"]:before {
	content: "\f210";
}

.social-navigation a[href*="getpocket.com"]:before {
	content: "\f224";
}

.social-navigation a[href*="polldaddy.com"]:before {
	content: "\f217";
}

.social-navigation a[href*="reddit.com"]:before {
	content: "\f222";
}

.social-navigation a[href*="skype.com"]:before {
	content: "\f220";
}

.social-navigation a[href*="stumbleupon.com"]:before {
	content: "\f223";
}

.social-navigation a[href*="tumblr.com"]:before {
	content: "\f214";
}

.social-navigation a[href*="twitter.com"]:before {
	content: "\f202";
}

.social-navigation a[href*="vimeo.com"]:before {
	content: "\f212";
}

.social-navigation a[href*="wordpress.com"]:before,
.social-navigation a[href*="wordpress.org"]:before {
	content: "\f205";
}

.social-navigation a[href*="youtube.com"]:before {
	content: "\f213";
}

.social-navigation a[href^="mailto:"]:before {
	content: "\f410";
}

.social-navigation a[href*="spotify.com"]:before {
	content: "\f515";
}

.social-navigation a[href*="twitch.tv"]:before {
	content: "\f516";
}

.social-navigation a[href$="/feed/"]:before {
	content: "\f413";
}
.main-navigation .primary-menu > li {
	display: inline;
}
.main-navigation .primary-menu > li > a:before {
    content: '';
    position: absolute;
    left:0;
	top: 10%;
    height: 80%;
    border-left: 3px solid;
}
#menu-footer_menu a {
    font-size: 13px;
}
#menu-footer_menu a:before {
    content:none;
}

/**
 * 11.1 - Header
 */

.site-header {
	padding: 1.375em 7.6923% 0;
	color: #555;
}

.site-header-main {
	-webkit-align-items: center;
	-ms-flex-align: center;
	align-items: center;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	-webkit-flex-wrap: wrap;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	position: relative;
}

.site-header-main.public-press-site-header__top{
	margin-bottom: 20px;
}

.site-branding {
	width: 100%;
	/* Avoid overflowing wide custom logo in small screens in Firefox and IEs */
	max-width: 100%;
	min-width: 0;
	overflow: hidden;
}

/* Header tema: consentire logo/header image più alti (overflow-y non taglia). */
.public-press-site-header .site-branding {
	overflow-x: hidden;
	overflow-y: visible;
}

.custom-logo-link {
	display: block;
}

.custom-logo {
	max-width: 180px;
}

.site-title {
	
	font-size: 23px;
	font-size: 1.4375rem;
	font-weight: 700;
	line-height: 1.2173913043;
	margin: 0;
}

.site-branding .site-title a {
	color: #1a1a1a;
}

.site-branding .site-title a:hover,
.site-branding .site-title a:focus {
	color: #007acc;
}

.wp-custom-logo .site-title {
	margin-top: 0.608695652em;
}

.site-description {
	color: #686868;
	display: none;
	font-size: 13px;
	font-size: 0.8125rem;
	font-weight: 400;
	line-height: 1.0769230769;
	margin: 0.538461538em 0 0;
}

.menu-toggle {
	background-color: transparent;
	border: 1px solid #d1d1d1;
	color: #57575a;
	font-size: 13px;
	font-size: 0.8125rem;
	margin: 1.076923077em 0;
	padding: 0.769230769em;
}

.no-js .menu-toggle {
	display: none;
}
#menu-toggle, #menu-close{
	position: absolute;
	right: 3%;
	top: 3%;
}
#menu-close{
	top: 15px;
	right: 3vw;
	display: none;
	color: #333;
	z-index: 10000001;
	line-height: 1;
	text-decoration: none;
}
.public-press-menu-close__icon,
.public-press-menu-toggle__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	color: #002372;
}
.public-press-menu-close__icon svg,
.public-press-menu-toggle__icon svg {
	display: block;
}
body.admin-bar #menu-close {
	z-index: 99998 !important;
}

.menu-toggle:hover,
.menu-toggle:focus {
	background-color: transparent;
	border-color: #007acc;
	color: #007acc;
}

.menu-toggle.toggled-on,
.menu-toggle.toggled-on:hover,
.menu-toggle.toggled-on:focus {
	background-color: #57575a;
	border-color: #57575a;
	color: #fff;
}

.menu-toggle:focus {
	outline: 0;
}

.menu-toggle.toggled-on:focus {
	outline: thin dotted;
}

.header-image {
	clear: both;
	margin: 0.875em 0;
}

.header-image a {
	display: block;
}

.header-image a:hover img,
.header-image a:focus img {
	opacity: 0.85;
}

#top-navigation {
    position: absolute;
    top: 3px;
    right: 100px;
    font-size: .7em;
    text-transform: uppercase;
}
#top-navigation ul{
	margin: 0;
}
#top-navigation li{
	list-style: none;
	display:inline-block;
}
#top-navigation li:before{
	display: inline-block;
    vertical-align: middle;
    content: '|';
}
#top-navigation li:first-child:before{
	content: none;
}
#top-navigation a {
    padding: 0 .3em;
    color: #002372;
    display: inline-block;
    vertical-align: middle;
}
#top-navigation a:hover {
	color: #007acc;
}

/* §14.2 @901px — nav desktop + sticky masthead */
@media screen and (min-width: 901px) {
		.site-header-main {
			-webkit-align-items: flex-start;
			-ms-flex-align: start;
			align-items: flex-start;
		}
	
		.wp-custom-logo .site-header-main {
			-webkit-align-items: center;
			-ms-flex-align: center;
			align-items: center;
		}
	
		.site-header-menu {
			display: block;
			-webkit-flex: 0 1 auto;
			-ms-flex: 0 1 auto;
			flex: 0 1 auto;
			width:100%;
		}
	
		.main-navigation .primary-menu,
		.main-navigation .primary-menu > li {
			border: 0;
		}
	
		.main-navigation a {
			text-align: center;
			white-space: nowrap;
			display: inline-block;
			text-transform: uppercase;
			position: relative;
		}
	
		.main-navigation ul ul {
			border-bottom: 1px solid #d1d1d1;
			display: block;
			left: -999em;
			margin: 0;
			position: absolute;
			z-index: 99999;
		}
	
		.main-navigation ul ul ul {
			top: -1px;
		}
	
		.main-navigation ul ul ul:before,
		.main-navigation ul ul ul:after {
			border: 0;
		}
	
		.main-navigation ul ul li {
			background-color: #fff;
			border: 1px solid #d1d1d1;
			border-bottom-width: 0;
		}
	
		.main-navigation ul ul a {
			white-space: normal;
			width: 12.6875em;
		}
	
		.main-navigation ul ul:before,
		.main-navigation ul ul:after {
			border-style: solid;
			content: "";
			position: absolute;
		}
	
		.main-navigation ul ul:before {
			border-color: #d1d1d1 transparent;
			border-width: 0 10px 10px;
			right: 9px;
			top: -9px;
		}
	
		.main-navigation ul ul:after {
			border-color: #fff transparent;
			border-width: 0 8px 8px;
			right: 11px;
			top: -7px;
		}
	
		.main-navigation li:hover > ul,
		.main-navigation li.focus > ul {
			left: auto;
			right: 0;
		}
	
		.main-navigation ul ul li:hover > ul,
		.main-navigation ul ul li.focus > ul {
			left: auto;
			right: 100%;
		}
	
		.main-navigation .menu-item-has-children > a {
			margin: 0;
			padding-right: 2.25em;
		}
	
		.main-navigation .menu-item-has-children > a:after {
			content: "";
			display: inline-block;
			width: 0.45em;
			height: 0.45em;
			border-right: 2px solid currentColor;
			border-bottom: 2px solid currentColor;
			position: absolute;
			right: 0.625em;
			top: 1.1em;
			transform: rotate(45deg);
		}
	
		.main-navigation ul ul .menu-item-has-children > a {
			padding-right: 2.0625em;
		}
	
		.main-navigation ul ul .menu-item-has-children > a:after {
			right: 0.5625em;
			top: 1.1em;
			-webkit-transform: rotate(-45deg);
			-moz-transform: rotate(-45deg);
			-ms-transform: rotate(-45deg);
			transform: rotate(-45deg);
		}
	
		.dropdown-toggle,
		.main-navigation ul .dropdown-toggle.toggled-on,
		.menu-toggle,
		.site-header .social-navigation{
			display: none;
		}

		/* Masthead sticky desktop (ex blocco custom @901px) */
		.is-sticky > #masthead {
			background: #fff;
			z-index: 99999;
			border-bottom: none;
			padding-top: 0;
			width: 100%;
			left: 0;
			right: 0;
			max-width: 1900px;
			margin-left: auto;
			margin-right: auto;
		}
	
		.is-sticky > #masthead .site-header-main.public-press-site-header__top {
			position: absolute;
			top: 0;
			left: 0;
			right: 0;
			height: 0;
			overflow: visible;
			z-index: 100001;
		}
	
		.is-sticky > #masthead .site-branding {
			margin: 0;
		}
	
		.is-sticky > #masthead .site-header-menu {
			margin: 0;
		}
	
		.is-sticky h1 img {
			max-height: 60px;
			width: auto;
		}
	
		.is-sticky #brand {
			position: absolute;
			left: 2%;
			bottom: 0;
			width: 55px;
			height: 51px;
			background: url() no-repeat;
			background-size: contain;
		}
	
		.is-sticky #brand img,
		.is-sticky #top-navigation,
		.is-sticky #today-date,
		.is-sticky #isc-link {
			display: none;
		}
}

/* Custom header Voci (brand, data, emblem, sticky wrapper, menu mobile) */
.site-branding > * {
    width: 24%;
    vertical-align: middle;
    display: inline-block;
}
#brand{
	margin-top:0;
	text-align: center;
	width: 50%;
}
.clearfix:after{
	content: '';
	display:block;
	clear:both;
}
#today-date {
    vertical-align: top;
    color: #002372;
    text-transform: uppercase;
    font-size: .7em;
}
#today-date i {
    font-style: normal;
}
.img-wrapper{
	display:block;
}
#isc-link {
    vertical-align: top;
    text-align: right;
}
#isc-link .public-press-header-emblem-img {
	max-width: 50px;
	width: auto;
	height: auto;
	vertical-align: middle;
}
.public-press-site-header__logo .custom-logo-link {
	display: inline-block;
}
.public-press-site-header__logo .custom-logo {
	max-width: min(640px, 100%);
	max-height: min(420px, 60vh);
	width: auto;
	height: auto;
	object-fit: contain;
	vertical-align: middle;
}
.mobile-hour{
	display: none;
}
.site-inner > #masthead-sticky-wrapper {
	width: 100%;
	max-width: 1900px;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
}
#masthead-sticky-wrapper:not(.is-sticky){
	height:auto !important;
}
/* Barra admin WP (z-index 99999): masthead sticky sotto, mai sopra */
body.admin-bar .is-sticky > #masthead {
	z-index: 9990 !important;
}
body.admin-bar .is-sticky > #masthead .site-header-main.public-press-site-header__top {
	z-index: 9991 !important;
}
@media screen and (max-width: 782px) {
	body.admin-bar #site-header-menu {
		top: 46px;
		height: calc(100vh - 46px);
	}
}
/* image zoom on hover */
a.img-wrapper{
    overflow: hidden;
}
a.img-wrapper img, .css-animate{
    display: block;
    -webkit-transition: all 0.5s ease; /* Safari and Chrome */
    -moz-transition: all 0.5s ease; /* Firefox */
    -ms-transition: all 0.5s ease; /* IE 9 */
    -o-transition: all 0.5s ease; /* Opera */
    transition: all 0.5s ease;
}
.css-animate-fast{
    display: block;
    -webkit-transition: all 0.3s ease; /* Safari and Chrome */
    -moz-transition: all 0.3s ease; /* Firefox */
    -ms-transition: all 0.3s ease; /* IE 9 */
    -o-transition: all 0.3s ease; /* Opera */
    transition: all 0.3s ease;
}
a.img-wrapper:hover img{
    -webkit-transform:scale(1.10); /* Safari and Chrome */
    -moz-transform:scale(1.10); /* Firefox */
    -ms-transform:scale(1.10); /* IE 9 */
    -o-transform:scale(1.10); /* Opera */
     transform:scale(1.10);
}
.css-animate-left{
	-webkit-transition: left 0.3s ease; /* Safari and Chrome */
    -moz-transition: left 0.3s ease; /* Firefox */
    -ms-transition: left 0.3s ease; /* IE 9 */
    -o-transition: left 0.3s ease; /* Opera */
    transition: left 0.3s ease;
}
.css-animate-right{
	-webkit-transition: right 0.3s ease; /* Safari and Chrome */
    -moz-transition: right 0.3s ease; /* Firefox */
    -ms-transition: right 0.3s ease; /* IE 9 */
    -o-transition: right 0.3s ease; /* Opera */
    transition: right 0.3s ease;
}
.main-navigation a {
	font-size: clamp(14px, 1.1vw, 16px);
	padding: 0.65625em clamp(0.2%, 0.9vw, 1.3%);
}

#masthead-sticky-wrapper:not(.is-sticky) #top-navigation li{
	display: block;
	text-align: right;
}
#masthead-sticky-wrapper:not(.is-sticky) #top-navigation li:before{
	content: none;
}
.site-header {
	padding-right: 1%;
	padding-left: 1%;
}

#masthead-sticky-wrapper{
	height: auto !important;
}
@media screen and (max-width:900px){
	.menu-toggle{
		margin: .5em 0;
	}
	#isc-link{
		display: none;
	}
	.search-submit:before{
		height: 23px;
	    width: 23px;
	    background-position: -77px 0;
	}
	#masthead{
		position: sticky;
		top: 0;
		width:100%;
		z-index:999;
		padding-top: 1rem;
		background: #fff;
	}
	/* Spazio bianco DOPO la barra (fuori dall'header) */
	#content.site-content{
		padding-top: calc(4em + var(--public-press-after-header-gap, 1rem));
	}
	body.admin-bar #masthead {
		top: 32px !important;
	}
	@media screen and (max-width: 782px) {
		body.admin-bar #masthead {
			top: 46px !important;
		}
	}
	#top-navigation {
	    top: initial;
	    bottom: 0;
	    right: 0;
	    width: 100%;
	    background: #f6f6f6;
	}
	#top-navigation ul {
	    display: flex;
	    max-width: 400px;
	    margin: 0 auto;
	}
	#top-navigation li {
	    text-align: center !important;
	    width: 100%;
	}
	#top-navigation li:before{
		content: none;
	}
	#top-navigation a{
		padding: 1em;
	}
	#site-navigation-footer{
		display:none;
	}
	#today-date, .search-form-wrapper{
		position: absolute;
		top: 130px;
		z-index: 10000000;
		left: 100vw;
		width: auto;
		opacity:0;
	}
	.widget.widget_text{
		text-align: center;
	}
	input[type="search"].search-field{
		font-size: 17px;
		font-size: 1.1rem;
		padding: .6em .8em;
	}
	#today-date{
		top: 92px;
		color: #ddd;
	}
	#today-date i {
    	color: #fff;
    }
	.search-form{
		max-width:450px;
		width: 60vw;
	}
	.search-submit{
		left: initial;
		right:0;
	}
	input[type="search"].search-field{
		width:100%;
	}
	.site-header {
    	padding: 1.375em 1.6923% 0;
    }
    #brand{
    	width:300px;
    	display: block;
    	margin: 0 auto;
    }
	#site-header-menu{
		position: fixed;
		z-index: 999999;
		right: -100%;
		top: 0;
		background:#fff;
		border-bottom: 5px solid #002372;
		width: 100%;
		height: 100vh;
		margin: 0;
	}
	body.admin-bar #site-header-menu{
		z-index: 99998 !important;
		top: 32px;
		height: calc(100vh - 32px);
	}
	.main-navigation .menu-main_menu-container{
		padding-top: 180px;
		background: #333;
	}
	.main-navigation :not(#menu-footer_menu).primary-menu {
	    border-bottom: 0;
	    margin-top: 80px;
	    border-top: 5px solid #002372;
	    padding-top: 10px;
	    max-height: 78vh;
	    max-height: calc( 100vh - 225px );
	    overflow: auto;
	    background: #fff; /* For browsers that do not support gradients */
	    background: -webkit-linear-gradient(right, #fff, #f6f6f6); /* For Safari 5.1 to 6.0 */
	    background: -o-linear-gradient(left, #fff, #f6f6f6); /* For Opera 11.1 to 12.0 */
	    background: -moz-linear-gradient(left, #fff, #f6f6f6); /* For Firefox 3.6 to 15 */
	    background: linear-gradient(left, #fff, #f6f6f6); /* Standard syntax */
	}
	.main-navigation a{
		font-size: 17px;
	    margin-bottom: 5px;
	    position: relative;
	}
	.main-navigation .primary-menu>li>a:before {
	    font-size: 40px;
	    content: '__________';
	    width: 100%;
	    text-align: center;
	    left: 0;
	    bottom: 0;
	    top: initial;
	    border:0;
	}
	#masthead:target #brand, .menu-open #brand{
	    width: 100% !important;
	    position: absolute;
	    z-index: 9999999;
	    left: 0;
	    background: #fefefe;
	    top: 0;
	    padding: 2px 3% 0;
	}
	body.admin-bar #masthead:target #brand,
	body.admin-bar.menu-open #brand{
	    z-index: 99990 !important;
	}
	#masthead:target #brand img, .menu-open #brand img{
		width: 300px;
	}
	#masthead:target #site-header-menu, .menu-open #site-header-menu{
		right: 0;
	}
	#masthead:target #menu-close, .menu-open #menu-close{
		display: block;
	}
	#masthead:target .search-form-wrapper, .menu-open .search-form-wrapper{
		left: 22vw;
		opacity: 1;
	}
	#masthead:target #isc-link, .menu-open #isc-link{
		position: fixed;
		display: block;
	    bottom: 55px;
	    left: 50%;
	    z-index: 9999999;
	    width: auto;
	    margin-left: -25px;
	}
	body.admin-bar #masthead:target #isc-link,
	body.admin-bar.menu-open #isc-link{
	    z-index: 99990 !important;
	}
	.mobile-hour{
		display: inline;
	}

	/* incolonno la colonna */
	#brand {
    	width: 260px;
    	margin: .5vw 0;
    }
	body {
		padding-top: 0 !important;
	}
	#page.site{
		padding-top: 0 !important;
	}
	#colophon.site-footer #logo-footer img,
	#colophon.site-footer #logo-footer .public-press-footer-logo-img {
		max-width: min(100%, 150px) !important;
		max-height: 100px !important;
		width: auto !important;
		height: auto !important;
		object-fit: contain;
	}
	#colophon.site-footer #logo-footer.public-press-site-footer__logo {
		max-height: 112px;
	}
	.site-footer {
		padding-top: 0.875em;
	}
	#today-date{
		top: 91px;
	}
}
@media screen and (max-width: 750px){
	#brand{
		margin:0;
	}
	.main-navigation .primary-menu{
		max-height: calc( 100vh - 165px );
	}
	/* Social "off-canvas" solo nel menu overlay, non nella barra avvisi */
	#site-header-menu .social-wrapper-links{
		position: fixed;
	    right: 0;
	    bottom: 75px;
	    z-index: 999;
	    width: min(65vw, 320px);
    	min-width: 200px;
		transform: translateX(100%);
		transition: transform 180ms ease;
	}
	.menu-open #isc-link{
		left: 25%;
	}
	.menu-open #site-header-menu .social-wrapper-links{
		transform: translateX(0);
	}
}
@media screen and (max-width:500px){
	/* ex â‰¤680px */

	/* ex â‰¤440px */
	.main-navigation :not(#menu-footer_menu).primary-menu {
	    max-height: 48vh;
	    max-height: calc( 100vh + ( 1px - 52vw ) );
	}
	#masthead:target #brand > a, .menu-open #brand > a{
		width: 80vw;
		display: block;
	}
	#today-date {
    	top: 19.5vw;
    }
    .main-navigation .menu-main_menu-container {
    	padding-top: 40.7vw;
    }
    .search-form-wrapper {
	    position: absolute;
	    top: 29vw;
	}
	input[type="search"].search-field {
	    padding: 2.5vw .8em;
	}

	/* ex â‰¤400px */
	#brand{
		width: 240px;
		margin-top: -2px;
	}
	.main-navigation :not(#menu-footer_menu).primary-menu {
	    max-height: 48vh;
	    max-height: calc( 100vh - 180px );
	}
	#menu-toggle {
	    width: 29px;
	    overflow: hidden;
	    border: 0;
	}
	.main-navigation :not(#menu-footer_menu).primary-menu{
		max-height: 67vh;
	}

	#today-date{
		top: 88px;
	}
	.textwidget h2 {
	    font-size: 18px;
	    font-size: 1.12rem;
	}
	#masthead:target .search-form-wrapper, .menu-open .search-form-wrapper {
	    left: 5vw;
	}
	.search-form {
	    width: 90vw;
	    float: none;
	}
	#menu-close{
	    top: 20px;
	    right: 15px;
	}
	#masthead:target #brand, .menu-open #brand{
		text-align: left;
		margin:0;
	}
	#menu-close {
    	top: 6vw;
    }
}

@media screen and (max-height:450px){
	#today-date{
		display: none;
	}
	#masthead:target #brand, .menu-open #brand{
		border-bottom-width: 5px !important;
	}
	.search-form-wrapper{
		top: 100px;
	}
	.main-navigation .menu-main_menu-container {
    	padding-top: 148px;
    }
    .menu-open #isc-link, .menu-open .social-wrapper-links{
    	display: none;
    }
    .main-navigation :not(#menu-footer_menu).primary-menu {
	    max-height: 74vh;
	    max-height: calc( 100vh - 127px );
	}
}
@media screen and (max-height:380px), screen and (max-width: 400px){
	#today-date {
	    top: 67px;
	    font-size: 12px;
	}
	.search-form-wrapper {
	    top: 100px;
	}
	input[type="search"].search-field {
	    padding: .2em .8em;
	}
	.main-navigation .menu-main_menu-container {
	    padding-top: 135px;
	}
	#menu-close {
	    top: 20px;
	}
	#masthead:target #brand, .menu-open #brand {
	    border-bottom-width: 27px;
	}
	#masthead:target #brand > a, .menu-open #brand > a {
	    width: 250px;
	}
	@media screen and (max-height: 380px){
		.search-form-wrapper {
		    top: 77px;
		}
		.main-navigation .menu-main_menu-container {
		    padding-top: 109px;
		}
	}
	
}
@media screen and (max-height:300px){    
	.search-form-wrapper{
    	display: none;
    }
    .main-navigation .menu-main_menu-container {
	    padding-top: 63px;
	}
}
@media screen and (max-height:270px){
    .main-navigation a {
	    font-size: 15px;
	    margin-bottom: 4px;
	}
	.main-navigation .primary-menu>li>a:before {
    	font-size: 35px;
    }
}

