@font-face {
  font-family: "lcdfont";
  src: url("/immagini/fonts/PixelLCD-7.ttf") format("opentype");
}
@font-face {
  font-family: "cantarell";
  src: url("/immagini/fonts/Cantarell.ttf");
}
@font-face {
  font-family: "nixie";
  src: url("/immagini/fonts/NixieOne.ttf");
}

/* Sfondo della pagina*/
body {
    background-repeat: repeat-x;
    background-image: url("/immagini/serv/sfondo.png");
    background-position: top;
    background-attachment: fixed;
}

/* Formattazione della pagina */
#contenitore {
  margin: 0 auto;
  width: 800px;

  /* Bordi sfumati verso l'esterno (effetto 3D) */
  -webkit-box-shadow: 0px 0px 30px rgb(0, 0, 0);
  -moz-box-shadow:    0px 0px 30px rgb(0, 0, 0);
  box-shadow:         0px 0px 30px rgb(0, 0, 0);
}

#intestazione {
  width: 800px;
  height: 200px;
}

#link {
    height: 2em;
    line-height: 2em;
    font-size : 18px;
    text-align: left;
    color: white;
    background-color: black;
    text-align: center;
    font-family: lcdfont;
    overflow: hidden;
}

/* margini esagerati di ul */
#link ul {
  margin: 0px;
  -webkit-padding-start: 0px;
  padding-left: 0px;
}

/* lista affiancata */
#link li {
  display: inline;
  }

#link a {
  padding: 0.5em;
  margin: 0px;
}

#link a:hover, #link a.corrente {
  background-color: white;
  color: black !important;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
/*
  -moz-border-radius-topleft: 10px;
  -moz-border-radius-topright: 10px;
  -webkit-border-top-left-radius: 10px;
  -webkit-border-top-right-radius: 10px;
*/
}

#pagina {
  font-size : 14px;
  text-align: justify;
  padding-left: 10px;
  padding-right: 10px;
  padding-top: 5px;
  padding-bottom: 8px;
  background-color: white;
  font-family: cantarell, serif;
}

#pie {
  text-align: left;
  color: white;
  background-color: black;
  padding-left: 5px;
  padding-right: 5px;
  padding-top: 8px;
  padding-bottom: 8px;
  text-align: center;
}

a:link    {text-decoration: none; color: #9E2E1E;}
a:visited {text-decoration: none; color: #9E2E1E;}
a:hover   {color: #E83100;}
#link a:link, #link a:visited {text-decoration: none; font-size: 18px; color: white;}

div.bloccod {
  width: 48%;
  display: block;
  float: left;
  padding-left: 7px;
  margin-bottom: 10px;
}

div.bloccos {
  width: 48%;
  display: block;
  float: left;
  padding-right: 7px;
  margin-bottom: 10px;
}

/* Didascalie */
div.dida {
  margin-bottom: .5em;
  border-style: solid;
  border-color: white;
}

div.dida > div {
  border: 1px solid #ccc;
  padding: 3px !important;
  background-color: #f9f9f9;
  font-size: 94%;
  text-align: center;
  overflow: hidden;
  width: 100%;
}

div.dida img {
  border: 1px solid #ccc;
  width: 100%;
  vertical-align: middle;
}

div.dida span {
  border: none;
  text-align: left;
  line-height: 1.4em;
  padding: 3px !important;
  font-size: 94%;
  display: block;
}

div.didar {
  clear: right;
  float: right;
  margin-left: .5em;
  border-width: .5em 0 .8em 0.4em;
}

div.didal {
  float: left;
  clear: left;
  margin-right: .5em;
  border-width: .5em .4em .8em 0;
}

div.didac {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

div.didal a:link, div.didas a:link, div.didar a:link    {text-decoration: none; font-size: smaller; color: #852719;}
div.didal a:visited, div.didas a:visited, div.didar a:visited {text-decoration: none; font-size: smaller; color: #852719;}
div.didal a:hover, div.didas a:hover, div.didar a:hover   {color: #E83100; font-size: smaller;}

div.dida.big {
  width: 500px;
}

div.dida.medium {
  width: 200px;
}

div.dida.small {
  width: 100px;
}

/* Blocchi citazioni */
blockquote:before {
    display: block;
    height: 0px;
    content: "“";
    margin-left: -0.95em;
    font: italic 400%/1 Cochin,Georgia,"Times New Roman",serif;
    color: #999;
}

blockquote {
    background: none repeat scroll 0% 0% #FFF;
    padding: 0.75em 0.5em 0.75em 1em;
    border-left: 0.5em solid #DDD;
    box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.5);
}

footer {
    text-align: right;
}

/* pre va difori */
pre {
    overflow: auto;
}

/* classe che contiene ciò che è mobile
 * e non deve essere visualizzata da immobile*/
.mobile {
  display: none;
}

/* Classi per la barra laterale di amministrazione */
div.barralat {
  position: fixed;
  right: 0px;
  top: 170px;
  width: 70px;
  /*height: 275px;*/
  text-align: center;
  background-color: white;
  border: 5px solid black;
  border-right: none;
  border-top-left-radius: 25px;
  border-bottom-left-radius: 25px;
  -moz-border-radius-topleft: 25px;
  -moz-border-radius-bottomleft: 25px;
  -webkit-border-top-left-radius: 25px;
  -webkit-border-bottom-left-radius: 25px;
}

div.barralat img {
  width: 50px;
  height: 50px;
  padding: 8px;
}

.specchietto {
  width: 40%;
  text-align: center;
  margin: 5px;
  margin-bottom: 1em;
  background-color: #FFF8DC;
  border: 1px solid black;
  padding: 4px;
  overflow: hidden;
  margin-left: auto;
  margin-right: auto;
}

.specchietto * {
  vertical-align: middle;
}

.specchietto img {
  width: 30px;
  vertical-align: middle;
  padding: 5px;
  float: left;
}

/* Spoiler -- rimane chiuso finché non ci si passa il mouse */
.scrollspoiler
{
  max-height: 7em;
  overflow: hidden;
  transition-property: max-height;
  transition-duration: 2s;
  transition-timing-function: ease-in-out;
}
.scrollspoiler:hover
{
  max-height: 2000px; /* spoiler massimo alto 2000px -- circa 2 schermi HD */
}

/* Galleria di immagini */
.galleria {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.galleriaElem {
  display: inline-block;
  margin: 1.5em;
}

.galleriaImg {
  vertical-align: middle;
  width: inherit;
  box-shadow: 0px 0px 10px black;
}

#cookieAlert
{
  width: 600px;
  margin-left: 90px;
}

/* === NASTRO / RIBBON === */
.corner-ribbon
{
  width: 200px;
  background: black;
  position: absolute;
  text-align: center;
  letter-spacing: 1px;
  color: white;
}

.corner-ribbon.sticky
{
  position: fixed;
}

.corner-ribbon.shadow
{
  box-shadow: 0 0 3px rgba(0,0,0,.3);
}

/* Posizione del ribbon */
.corner-ribbon.top-left
{
  top: 25px;
  left: -50px;
  transform: rotate(-45deg);
}

.corner-ribbon.top-right
{
  top: 25px;
  right: -50px;
  left: auto;
  transform: rotate(45deg);
}

.corner-ribbon.bottom-left
{
  top: auto;
  bottom: 25px;
  left: -50px;
  transform: rotate(45deg);
}

.corner-ribbon.bottom-right
{
  top: auto;
  right: -50px;
  bottom: 25px;
  left: auto;
  transform: rotate(-45deg);
}
