@import url('https://fonts.googleapis.com/css?family=Anton|Open+Sans');
@import url('css/iconmonstr-iconic-font.min.css');

@keyframes bg {
  0%  { background-image:url(img/agentili.jpg) }
  40% { background-image:url(img/agentili.jpg) }
  50% { background-image: url(img/p3.jpg); }
  90% { background-image: url(img/p3.jpg); }
  100%  { background-image:url(img/agentili.jpg) }
}

@media only screen and (min-width: 1024px) {
	.mobile-only { display: none !important }
}
@media only screen and (max-width: 1023px) {
	.desktop-only { display: none !important }
}
html {
	margin: 0;
	padding: 0;
	
	background: url(img/agentili.jpg) no-repeat center fixed; 
	-webkit-background-size: cover;
	 -moz-background-size: cover;
	 -o-background-size: cover;
	 background-size: cover;
	
	animation-name: bg;
	animation-duration: 40s;
	animation-direction: normal;
	animation-iteration-count: infinite;
	height: 100%;
	min-height: 100%;
}

body  {
	font-family: 'Open Sans', sans-serif;
	margin: 0;
	padding: 0;
	
}


strong {
  font-weight: bold;
}
em {
 font-style: italic;
}
a, a:visited {
  text-decoration: none;
  color: #048;
  font-weight: bold;
}
a:hover {
  text-decoration: underline;
}

h4 > a:hover {
  text-decoration: none;
}

#header {
  position: fixed;
  z-index: 5000;
  top: 0;
  bottom: 0;
  width: 15em;
  background: rgba(255, 255, 255, .5);
  padding: 1em;
  margin: 0;
  border: 0;
  border-right: 1em solid rgba(0, 64, 128, .7);
}


#header .nav {
  background: rgba(0, 64, 128, .7);
  padding: .5em;
  color: white;
  list-style: none;
  margin: 0;
  width: 100%;
  white-space: nowrap;
}

#header .nav li {
  padding: 0;
  margin: 0;
}

#header .nav a, #header .nav a:visited  {
  color: white;
}
#header .nav a {
  display: block;
  padding: .5em 1em;
}

#header .nav a:hover {
  text-decoration: none;
  background-color: rgba(0, 64, 128, .9);
}

#header .nav a.im {
  display: inline-block;
  padding: 1em 0.8em;
}
#header a.im span  {
  display: none;
}
section .contacts {
  list-style: none;
}
.contacts a {
  display: block;
  padding: 1em;
  vertical-align: middle;
}
.contacts a:hover {
  text-decoration: none;
  background: #048;
  color: white;
}
.contacts a.im span {
	font-family: 'Open Sans', sans-serif;

	padding-left: .5em;
	padding-bottom: .5em;
}
#content {
	margin-left: 18em;
}


section {
	margin: 800px 4em 300px 4em;
	padding: .5em 1.5em;
	background: rgba(255, 255, 255, .8);
	
	max-width: 40em;
	border: 1px solid rgba(0, 64, 128, .7);
	border-width: .2em .2em .2em 1em;
}

h1,h2,h3,h4,h5,.spd {
	font-family: 'Open Sans';
	font-weight: bold;
	color: #f42;
	text-shadow: #000 2px 2px 2px;
	font-variant: small-caps;

}

.spd > .e {
  color: white;
  font-variant: normal;
  transform: rotate(-15deg);
  display: inline-block;
}

.spd > .pubblica {
  color: #2b3;
}

p .spd {
  font-size: 120%;
  white-space: nowrap;
  text-shadow: #000 .05em .05em .05em;
}

h3, h4, h5 {
	color: #2b3;
	text-shadow: #000 1px 1px 1px;
}

li.deeplink h4 {
  font-size: 150%;
}

#candidati > li {
  clear: both;
  list-style: none;
  padding: 1em;
}

#candidati > li > div {
  display: flex;
}

#candidati > li.deeplink > div {
  display: block;
}

#candidati > li .nome {

  text-shadow: none;
  font-variant: normal;
  font-style: italic;
  font-weight: lighter;
}
#candidati > li img {
  width: 6em;
  height: 6em;
  border: .2em solid white;
  box-shadow: #000 2px 2px 2px;
  margin: 0 1em;
}

#candidati > li.deeplink img {
  width: 10em;
  height: 10em;
  float: left;
}

#candidati > li {
  text-align: left;
}

#candidati > li:nth-child(odd) .cognome,  #candidati > li:nth-child(even) .nome {
 color: #f42;
}
#candidati > li:nth-child(even) .cognome,  #candidati > li:nth-child(odd) .nome {
 color: #2b3;
}
#candidati > li:nth-child(even):not(.deeplink) {
  text-align: right;
}
#candidati > li:nth-child(even):not(.deeplink) div {
  flex-direction: row-reverse;
}

#candidati li .more, #candidati > li.deeplink .less  {
  display: none;
}

#candidati > li.deeplink .more {
  display: initial;
}

#candidati.more > li:not(.deeplink) {
  display: none;
}
 

@media only screen and (orientation: portrait) {
  
  #header {
    bottom: 0;
    top: auto;
    left: 0;
    right: 0;
    width: 100%;
    padding: 0;
    background: rgba(255, 255, 255, .9);
  }
  #header .nav {
    display: flex;
  }
  #header .nav li:not(:first-child) {
	border-left: .1em solid white;
  }
  #content {
    margin: 1em;
  }
  section {
    margin-left: 0;
    max-width: 80%;
  }
  
  body { font-size: 2.5vw; }
  #header { font-size: 2.7vw; }
  
}

@media print {
  #header {
    position: static;
    border: none;
    width: 100%;
  }
  .nav {
    display: none;
  }
  #content {
    margin: 2em;
  }
  section {
    margin: 1em;
    max-width: 60em;
  }
}

@keyframes outline {
  from { outline: .3em solid red }
  to { outline-color: rgba(255, 0, 0, 0) };
}

p.deeplink {
  outline: none;
  animation-name: outline;
  animation-duration: 10s;
}

section ul.arrows {
  list-style-type:  "🡆 ";
  text-align: left; 
  clear: both;
}
section ul.arrows li::marker {
  color: red; 
  font-weight: bold;
  line-height: 0;
}

