/*
Theme Name: unibz
Theme URI: http://www.unibz.it/
Author: Giulio Roman, Anna Ricci
Author URI: http://www.leonixyz.net/
Description: Official unibz branded theme. 
Version: 2.0.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: unibz
Tags: one-column, two-columns, right-sidebar, accessibility-ready, custom-header, custom-menu, featured-image-header, featured-images, theme-options, education, news
GitHub Theme URI: unibz/wp-unibz

unibz is based on Underscores http://underscores.me/, (C) 2012-2016 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.
*/

/*
 * Import Font
 */

@font-face {
  font-family: "DIN Web";
  src: url("fonts/DINWebPro-Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "DIN Web";
  src: url("fonts/DINWebPro.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "DIN Web";
  src: url("fonts/DINWebPro-Medium.woff") format("woff");
  font-weight: 600;
  font-style: normal;
}

/*
 * Reset
 */

html, body {
	margin:0;
	padding:0;
	color:#202020;
	min-width: 280px;
	overflow-x: hidden;
	font-family: "DIN Web";
	font-size: 15px;
}

a, a:visited {
	color: black;
	text-decoration: underline;
	font-weight: bold;
	transition: color .2s cubic-bezier(.55,0,.1,1);
}

a:hover, a:active {
	color:#5a7e92;
}

#masthead {
	box-shadow:0 .08rem .9rem rgba(0,0,0,.2);
	min-height:75px;
}

#masthead ul, #masthead ol {
	border-left:0;
}

.navbar

.nav .open > a, .nav .open > a:focus, .nav .open > a:hover {
	background-color:initial;
}

/*
 * Navigation
 */

.navbar {
	margin:0;
	border:0;
}

.navbar-header {
	position:relative;
	top:22px;
}

.navbar-toggle {
	margin-top:0!important;
	padding: 7px!important 10px!important;
}

#logo {
	width:50px;
	position:absolute;
	top:16px;
	z-index:100;
}

#primary-menu {
    position: relative;
    top: 22px;
    z-index:1;
}

#primary-menu>li {
	background:#5a7e92;
	color:white;
}

#primary-menu .menu-item {
	display:block;
	padding:1em;
}

#primary-menu .menu-item a {
	color:black;
	font-weight: bold;
}

.dropdown-menu {
	min-width:100%;
}

.current-menu-item {
    text-decoration: underline;
}



.icon-bar {
	background:black;
}

.screen-reader-text {
	display:none;
}

#content>.container {
	margin-top:2em;
}

/*
 * Text images
 */

figure {
    max-width:100%;
}

figure figcaption {
    font-size: 0.85em;
    text-align: center;
    color: #999;
}

iframe {
    max-width:100%;
}

article img {
	max-width: 100%;
	height: auto;
}

.post-thumbnail img {
	height: auto;
	display: block;
    margin-bottom: 0.5em;
}


/*
 * Hero
 */

.hero {
	background-image:url('../img/hero.jpg');
	background-size:cover;
	background-position:center;
	color:white;
	text-shadow: -1px 0 #787878, 0 1px #787878, 1px 0 #787878, 0 -1px #787878;
	text-align:center;
	margin-bottom: 10px;
	overflow:hidden;
}

.hero h1 {
	margin-top:0;
}

.hero a {
	color:white;
}

.stretchy-wrapper {
    position: relative;
    padding-bottom: 60%; 
    width: 100%;
}
 
.stretchy-wrapper-inner {
    position: absolute;
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    padding: 0 1em;
    color: white;
    text-align: center;
}

.u-margin-btm-none {
	margin-bottom: 0;
}

.page-header {
    margin-top:20px;
}


/*
 * CSS classes for button
 */

.unibrand{
	background:#5a7e92;
	color:white;
}

.unibrand a, a.unibrand{
	color:white !important;
	text-decoration: none;
}

.btn.unibrand{
	background:#5a7e92 !important;
	color:white;
	border: 0;
	margin-right: 7px;
}

.unibrand a:hover, .unibrand a:focus{
	background:#5a7e92 !important;
	color:white;
}


/*
 * Post
 */

.post {
	margin-bottom:3em;
}

.cat-links {
    display: block;
}

.entry-title{
	margin-top:0.3em;
}

.entry-date {
	font-weight: bold;
	text-transform: uppercase;
	color: #5a7e92;
}

/*
 * Post's comments
 */

 textarea {
 	min-width: 100%;
 	max-width: 100%;
 	min-height: 10em;
	display:block;
}

.comments-area {
	float:none;
}

.comment-list, .comment-list .children {
	list-style: none;
	border-left:5px solid #dedede;
	padding-left:10px;
}


.comment-list li{
	padding:1em 0 1em 0.5em;
	margin-top:1em;
}

.comment-meta {
	display: table;
	width: 100%;
}

.comment-metadata, .comment-author {
	display:table-cell;
}

.comment-metadata {
	text-align: right;
}

.comment-edit-link {
	text-decoration: none;
	color:#666666;
}

.comment-edit-link:hover {
	color:#333333;
}

.comments-link {
	padding-right: 1em;
}

.nav-links {
	display:table;
	width:100%;
	text-align:center;
}
.nav-previous, .nav-next {
	display:table-cell;
}

.required {
	color:#f25858;
}


/* change background color to white in single post page */
body.single-post .post {
	background-color:white;
}


time:not(.published){
	display: none;
}

/*
 * Class for dropdown menus (that at the moment don't work)
 */

#language-switch-button {
    font-weight: bold;
    background-color: white;
    float:right;
    border:0;
    text-transform: uppercase;
    margin-top:0.1em;
    z-index: 101;
}

#polylang-menu {
	left:auto;
	top:82%;
	right:74px;
	width: 3.8em!important;
	min-width:3.8em!important; 
    text-transform: uppercase;
    z-index:102;
}

/*
 * Widget area
 */

.widget-area {
	position:static;
	padding-top: 20px;
}

.widget-area ul {
    list-style: none;
    padding-left:0;
    font-size: 0.9em;
}

.widget-area ul li {
    padding:0.2em 0;
}

.widget-area ul li.date-item{
    padding:0.7em 0 0 0;
}

.widget-area ul li a {
    font-weight: lighter;
}

.widget-area section {
    padding: 2em 0 2em 0;
    border-top: 1px solid #dbdbdb;
}

.widget-area section:first-child {
    border-top: 0;
}

.widget-area table {
    border-collapse: collapse;
    text-align: center;
}

.widget-area table, .widget-area th, .widget-area td {
    padding:0.5em;
}


.widget-area .widget-title {
	margin-top: 0px;
}

#wp-calendar {
	line-height: 0.9em;
}

#wp-calendar a {
	color: #5a7e92;
	text-decoration: underline!important;
}

#today {
	background-color:#5a7e92;
	border-radius: 21px;
	color:white;
}

#today a {
	color:white;
}

/*
 * Footer and map
 */

#colophon {
	padding-bottom: 3em;
	padding-top: 3em;
}


#footer-map {
	width:100%;
	height:250px;
	border:0px;
}

address {
		white-space: pre;
}

address.email, address.email a{
	text-align:left;
    direction: rtl;
    unicode-bidi: bidi-override;
}

#colophon a {
    text-decoration: underline;
    font-weight: normal;
    padding: 0.1em 0;
    margin-right: 1em;
    display: inline-block;
}


/*
 * Brand
 */

#pittogramma {
	background-image: url('../img/brand.jpg');
	background-repeat: repeat-x;
	height: 150px;
}


/*
 * Images inside of a text
 */

.alignright {
	float:right;
	margin: 20px 0px 20px 20px;
}

.alignleft {
	float:left;
	margin: 20px 20px 20px 0px;
}

.aligncenter {
    display: block;
    margin: 20px;
}

hr {
	border-top: 1px solid #dbdbdb;
}

#primary {
	padding-bottom:2em;
}


/* Media Queries */

@media screen and (max-width: 500px) {
	.padding-collapse-sm {
	    padding: 0px;
	}
}	
	
@media screen and (min-width: 500px) {
	div.stretchy-wrapper {
	    padding-bottom: 52%;
	}
	
	.padding-collapse-sm {
	    padding: 0px;
	}
}	

@media screen and (min-width: 544px) {
	div.stretchy-wrapper {
	    padding-bottom: 52%;
	}
	body {
		font-size:16.5px;
	}
}

@media screen and (min-width: 650px) {
	div.stretchy-wrapper {
	    padding-bottom: 52%;
	}
	body {
		font-size:18px;
	}
}

@media screen and (min-width: 768px) {
	div.stretchy-wrapper {
	    padding-bottom: 46%;
	}

	#primary-menu {
		background:transparent;
		color:#202020;
	    position:relative;
	    top:-14px;
	}

	#primary-menu li {
		color:#202020 !important;
	}

	#primary-menu a, #primary-menu a:hover, #primary-menu a:focus{
		background:white !important;
		color:#202020 !important;
	}

	#primary-menu>ul>li {
		position:relative;
		left:30px;
		top:12px;
		font-weight: bold;
		font-size:0.8em;
	}

	#polylang-menu {
		top:100%;
		right:15px;
	}
}

@media screen and (min-width: 1024px) {
	div.stretchy-wrapper {
	    padding-bottom: 40%;
	}
}

@media screen and (min-width: 1200px) {
	.no-widgets .container {
	    width: 970px;
	}
}

@media screen and (min-width: 1280px) {
	div.stretchy-wrapper {
	    padding-bottom: 33%;
	}
}

@media screen and (min-width: 1600px) {
	div.stretchy-wrapper {
	    padding-bottom: 30%;
	}
}
