/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */

html,
button,
input,
select,
textarea {
    color: #222;
}

html {
    font-size: 1em;
    line-height: 1.6em;
	height: 100%;
}

body {
	color: #231f20;
	height: 100%;
}

html, button, input, select, textarea,
.pure-g [class *= "pure-u"] {
    font-family: 'PT Sans Narrow', sans-serif;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

audio,
canvas,
img,
video {
    vertical-align: middle;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

textarea {
    resize: vertical;
}

h1 {
	font-weight: normal;
	font-size: 1.3em;
	text-transform: uppercase;
	color: #fff;
	margin: 0;
	padding: 0;
	line-height: 1em;
}

h2,h3,h4,h5,h6 {
	font-weight: normal;
	color: #b93321;
	margin: 1em 0;
	line-height: 1em;
}

h2 {
	font-size: 3em;
}

h3 {
	font-size: 2.2em;
}

h4 {
	font-size: 1.4em;
}

a {
	color: #a14c00;
	text-decoration: none;
	font-weight: bold;
}

a:hover {
	border-bottom: 1px dotted #a14c00;
}

/* ==========================================================================
   Elements styles
   ========================================================================== */

#site-container {
	padding: 0 0 0 320px;
	height: 100%;
}

#site-header {
    width: 320px;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1000;
    overflow: hidden;
}

#site-title {
	background: #2a2a2a;
}

#site-nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 500;
    overflow: visible;
	width: 100%;
	height: 60px;
	background-color: #b93321;
}

#site-nav #menu {
	margin-left: 320px;
}

#site-nav .pure-menu  {
	max-width: 880px;
	height: 60px;
	background-color: #b93321;
}

#site-nav .pure-menu .pure-menu-open {
	background-color: #b93321;
}

#site-nav .pure-menu ul {
	display: table;
	width: 100%;
}

#site-nav .pure-menu li {
	display: table-cell;
	height: 60px;
	text-align: center;
}


#site-nav .pure-menu li a {
	line-height: 60px;
	padding: 0 10px;
	font-size: 1.1em;
	text-transform: uppercase;
	color: #f3d6d3;
	font-weight: normal;
	border: 0;
}

#site-nav .pure-menu li.pure-menu-selected a {
	color: #fff;
	font-weight: bold;
}

#site-nav .pure-menu li.pure-menu-selected ul li a {
	color: #2a2a2a;
	font-weight: normal;
}

#site-nav .pure-menu li a:hover, #site-nav .pure-menu li:hover a {
	background: none;
	color: #fff;
	background-color: #2a2a2a;
}

#site-nav .pure-menu li:hover ul li a { 
	font-weight: normal;
	color: #fff;
}

#site-nav .pure-menu li ul li a:hover {
	font-weight: bold;
}

#site-nav .pure-menu li ul {
	top: 60px;
	background-color: #2a2a2a;
	display: none;
	min-width: 100%;
	width: auto;
}

#site-nav .pure-menu li ul li {
	display: block;
	text-align: left;
}


#site-nav .pure-menu li:hover ul {
	display: block;
	/*border-bottom: 4px solid #ebebeb; */
}

#site-nav .pure-menu li.pure-menu-has-children ul li {
	height: auto;
}

#site-nav .pure-menu li.pure-menu-has-children ul li a {
	line-height: 2em;
	text-transform: none;
}

#site-nav .pure-menu li ul li a:hover, #site-nav .pure-menu li:hover ul li a {
	height: auto;
	border-bottom: 0;
}

#site-title {
	height: 50px;
	padding: 10px 0 0 30px;
}

#site-title span {
	color: #ababab;
	text-transform: none;
	display: block;
}

#site-content {
	padding: 90px 40px 40px 30px;
	max-width: 880px;
	min-width: 600px;
}

#main {
	background-color: rgba(255,255,255,0.6);
	min-height: 100%;
}

#site-footer {
	margin-top: 60px;
	padding-top: 60px;
	border-top: 1px solid #ebebeb;
	text-align: right;
	font-size: 0.9em;
}

#site-footer img {
	margin-left: 20px;
}

#page-insegnanti table {
	width: 100%;
}

#page-insegnanti table td {
	padding: 0px 32px;
}

#page-insegnanti table td img {
	width: 200px;
	height: auto;
	max-width: 200px;
}

#page-storia table {
	width: 100%;
}

#page-storia table td {
	padding: 0px 32px;
}

#page-storia table td img {
	width: 200px;
	height: auto;
	max-width: 200px;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */

@media only screen and (max-width: 960px) {
	#site-container {
		padding: 0;
	}

	#site-header {
		width: auto;
	    position: relative;
	}
	
	#site-nav {
	    position: relative;
	    top: 0;
	    left: 0;
	    bottom: 0;
		width: auto;
		height: auto;
	}
	
	#site-nav #menu {
		margin-left: 0;
	}
	
	#site-content {
		padding: 30px 40px 40px 30px;
		max-width: 880px;
		min-width: 120px;
	}
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

.box, blockquote {
	background-color: #f8f6f4;
	color: #6e5947;
	padding: 10px 20px 10px 30px;
	margin: 0;
	margin-left: -30px;
}

.pure-img-responsive, #site-content img {
    max-width: 100%;
    height: auto;
}

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

.hidden {
    display: none !important;
    visibility: hidden;
}

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

.invisible {
    visibility: hidden;
}

.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}

a.pure-button-primary {
	background: rgb(202, 60, 60);
}

a.pure-button-primary:hover {
	border-bottom: 0;
}

@media only screen and (max-width: 640px) {
	
	blockquote {
		margin-left: 0px;
	}
	
	#page-insegnanti table, #page-insegnanti table td, #page-storia table, #page-storia table td {
	    display: block;
		padding: 0;
	}
	
	#page-insegnanti table td img, #page-storia table td img {
	    max-width: 100%;
	    height: auto;
		width: auto;
	} 
	
	#site-title {
		text-align: center;
		height: 50px;
		padding-left: 0;
	}
	
	#site-nav .pure-menu  {
		height: auto;
	}

	#site-nav .pure-menu ul {
		display: block;
		width: 100%;
	}

	#site-nav .pure-menu li {
		display: block;
		height: auto;
		text-align: center;
	}

	#site-nav .pure-menu li a {
		line-height: 1em;
		padding: 10px;
		font-size: 1.4em;
	}

	#site-nav .pure-menu li:hover ul li a { 
		font-weight: normal;
		color: #fff;
	}

	#site-nav .pure-menu li ul li a:hover {
		font-weight: bold;
	}

	#site-nav .pure-menu li ul {
		top: 0px;
		position: relative;
		display: none;
		width: auto;
	}

	#site-nav .pure-menu li ul li {
		display: block;
		text-align: center;
	}


	#site-nav .pure-menu li.pure-menu-has-children ul li a {
		line-height: 1em;
	}
}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {

}

/* ==========================================================================
   Print styles
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}