/* retro compatibilità per browser pre-HTML5 */
article, section, header, footer, nav, aside, main {
	display: block;
}
html {
    background: #444444 url(../img/roundedsquares01.png) fixed;
}
body {
	font-family: "Courier New", monospace;
	color: white;
	background-color: transparent;
	margin: 0;
}
header {
	border-bottom-left-radius: 0.5em;
	border-bottom-right-radius: 0.5em;
    padding: 1em 0.5em 0.1em 0.1em; /* senza, h1 crea spazio indesiderato in alto? */
    border-bottom: 1px solid orange;
}
header h1 {
	text-align: right;
	margin: 0.5em;
	font-size: 1.3em;
}

#languages, header, #naviga, footer {
    background: transparent url(../img/trans-black.png);
}
#languages {
    /* display: none; */ 
    position: absolute;
    top: 0;
    left: 0;
    padding: 0.2em 0.4em;
	border-bottom-right-radius: 0.5em;
}
#naviga {
    text-transform: capitalize;
    margin-left: 1em;
    margin-right: 1em;
    padding: 0.3em;
    border-bottom-left-radius: 0.5em;
    border-bottom-right-radius: 0.5em;
    text-align: center;
    border-bottom: 1px solid orange;
}
nav ul {
	margin: 0 0 0 -2em;
}
nav ul li {
	display: inline-block;
	/* list-style-type: none; superfluo a causa di inline-block sopra */
	color: orange;
}
#naviga ul li {
    margin: 0.3em 0.7em;
}
#languages ul li:after {
  content: "|"; 
}
#languages ul li:last-child:after {
  content: ""; 
}
#note {
    font-size: 0.9em;
    margin-bottom: 1.5em;
    border-top: 2px solid green;
    border-bottom: 2px solid green;
    border-radius: 0.5em;
    padding-bottom: 1em;
}
#note ul {
	margin: 0 0 0 -2em;
}
#note ul li {
	list-style-type: none;
	text-indent: -1em;
}
#firma {
    text-align: right;
    margin-right: 2em;
    margin-bottom: 2em;
}
section {
    margin: 0.5em;
}
footer {
    text-align: center;
    padding: 0.8em;
    margin-top: 1.5em;
    margin-left: 1em;
    margin-right: 1em;
    border-top-left-radius: 0.5em;
    border-top-right-radius: 0.5em;
    border-top: 1px solid orange;
    /* color: orange; */    
}
h3 {
    color: orange;
}
ul li {
	list-style-type: square;
}
a:link {
	color: lime;
	font-weight: bold;
	text-decoration: none;
}
a:visited {
	color: #009933;
	font-weight: bold;
	text-decoration: none;
}
nav a:visited, header a:visited {
	color: lime;
}
a:hover, a:focus, nav a:hover, nav a:focus, header a:hover, header a:focus {
	color: orange;
	text-decoration: underline;
}
a:active {
	color: white;
}

/* nav a:hover {
	color: orange;
} */
a.skipnav {
    color: black;
	background-color: white;
	border: 2px solid orange;
    border-radius: 0.5em;
    padding: 0.5em;
    position: absolute;
	top: auto;
	left: -999em;
	width: 1em;
	overflow: hidden;
	z-index: 5; /* rimane sopra */
}
a.skipnav:hover, a.skipnav:focus, a.skipnav:active { /* torna visibile */
	position: relative; /* torna nel flow della pagina */
	top: 2em;
	left: 2em;
	width: auto;
    color: orange;
}
.to_top {
    text-align: right;
    margin: 0.5em 1em;
    /* font-size: 0.8em; */
}
.to_top a {
    padding: 0.3em 0.8em;
    font-size: 1.2em;
    background-color: black;
    border-radius: 0.5em;
}

/* Media Queries */
@media screen and (min-width: 569px) { /* larghezza almeno ... o più */
body {
    background-image: url(../img/binariume.png);
    background-repeat: repeat-y;
	background-position: 4.2% 0;
}
#languages {
    position: fixed;
    padding: 0.4em;
	border-bottom: 1px solid orange;
}
header {
    margin-left: 8em;
    border-bottom-right-radius: 0;
}
header h1 {
	font-size: 1.7em;
}
#naviga {
    position: fixed;
    top: 2.7em;
    left: 0;
    margin-left: 0;
    margin-right: 0;
    padding: 0.5em;
    border-bottom-left-radius: 0;
    border-top-right-radius: 0.5em;
    text-align: left;
}
#naviga ul {
	margin: inherit;
}
#naviga ul li {
	display: list-item;
	margin: auto;
	margin-bottom: 0.15em;
}
section {
    margin-top: 1.5em;
    padding: 0;
    margin-left: 12.2em;
}
#note {
    font-size: 0.8em;
    margin-left: 15em;
}
}
@media screen and (min-width: 760px) { /* larghezza almeno ... o più */
body {
    background-image: url(../img/slice02-100px.png), url(../img/binariume.png);
    background-repeat: no-repeat, repeat-y;
    background-size: 160px auto;
}
#languages {
    padding: 0.7em;
}
header {
    margin-left: 9em;
}
header h1 {
	font-size: 2em;
}
#naviga {
    top: 4em;
    padding: 1em;
}
#naviga ul li {
	margin-bottom: 0.2em;
}
section {
    padding-left: 0.8em;
    margin-left: 14em;
    border-left: 1px solid orange;
    border-top-left-radius: 0.5em;
    border-bottom-left-radius: 0.5em;
}
#note {
    margin-left: 17.5em;
    border-left: 1px solid green;
    border-top: 1px solid green;
    border-bottom: none;
}

.to_top a {
    padding: 0.3em 0.6em;
}
}
@media screen and (min-width: 1050px) {
body { /* centra contenuto */
	max-width: 1000px;
	margin: 0 auto;
}
main {
    border-right: 1px solid orange;
    border-top-right-radius: 0.5em;
    border-bottom-right-radius: 0.5em;    
}
header {
    margin-left: 6em;
    border-bottom-right-radius: 0.5em;
}
}
@media screen and (min-width: 1190px) {
header {
    margin-left: 1em;
}
}
