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

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

html {
    font-size: 1em;
    line-height: 1.4;
}

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

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;
}

.browsehappy {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}


/* ==========================================================================
   Author's custom styles
   ========================================================================== */

html, body
{
    height: 100%;
    overflow: hidden;
}

div.main
{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent url('../img/optical.jpg') no-repeat;
    -moz-background-size: cover;
    -o-background-size: cover;
    -webkit-background-size: cover;
    background-size: cover;
}


nav
{
    position: relative;
    padding: 0;
    margin-top: 10px;
}

nav h2
{
  position: relative;
  padding-top: 0;
  margin-top: 0; 
    text-align: center;
    color: whitesmoke;
    font-weight: 300;
}

ul.nav
{
    position: relative;
    margin: 0 auto;
    padding: 0;
    width: 145px;

}

ul.nav li.icone
{
    position: relative;
    height: 36px;
    width: 35px;
    margin:0 20px 0 0;
    padding: 0;
    float: left;
    cursor: pointer;

    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

ul.nav li:last-child
{
    margin-right:0;
}


ul.nav li.icone:hover 
{
    -webkit-transform: rotateX(0deg) rotateY(360deg) rotateZ(0deg);
    -moz-transform: rotateX(0deg) rotateY(360deg) rotateZ(0deg);
    -o-transform: rotateX(0deg) rotateY(360deg) rotateZ(0deg);
    -ms-transform: rotateX(0deg) rotateY(360deg) rotateZ(0deg);
    transform: rotateX(0deg) rotateY(360deg) rotateZ(0deg);

}

ul.nav li.about
{
    background: transparent url(../img/about.png) no-repeat 0 0;
}

ul.nav li.what
{
    background: transparent url(../img/what.png) no-repeat 0 0;
}

ul.nav li.contact
{
    background: transparent url(../img/contact.png) no-repeat 0 0;
}





ul.nav li a
{
    display: block;
    height: 100%;
    width: 100%;
}


.riquadro {
  width: 80vw;
  height: 70vh;
  background: url(../images/skbl.jpg);
  background-attachment: fixed;
  -moz-background-size: cover;
  -o-background-size: cover;
  -webkit-background-size: cover;
  background-size: cover;
  color: #FFF;
  /*opacity: 0.7;*/
  position: absolute;
  top: calc(40% - 15vh);
  left: calc(50% - 40vw);
  visibility: hidden;
  opacity: 0;
  -moz-transition-property: all;
  -o-transition-property: all;
  -webkit-transition-property: all;
  transition-property: all;
  -moz-transition-duration: 1s;
  -o-transition-duration: 1s;
  -webkit-transition-duration: 1s;
  transition-duration: 1s;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  border-radius: 5px;
  overflow-y: auto;
}


#riq1:target, #riq2:target, #riq3:target, #riq4:target {
  visibility: visible;
  opacity: 0.9;
}


.riquadro-cont {
  text-align: center;
}

.riquadro-cont img
{
    padding: 10px;
}

.titolo {
  font-family: 'Roboto', sans-serif;
  font-size: 22px;
  padding: 5px;
  font-weight: 300;
}

.content {
  text-align: left;
  padding: 20px;
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 20px;
}

.content a:hover
{
  color:whitesmoke;
  text-decoration: none;
}

.content a
{
  color:cadetblue;
  text-decoration: none;
}

.close {
  right: 15px;
  position: absolute;
  font-size: 28px;
}

.close a
{
    font-size: 12px;
    color:white;
    text-decoration: none;
}



.opa50 {
  background: #000;
  background: transparent\9;
  background: rgba(0, 0, 0, 0.6);
  background-image: -webkit-linear-gradient(left, color-stop(rgba(33, 33, 33, 0.6) 0%), color-stop(rgba(0, 0, 0, 0.6) 100%));
  background-image: linear-gradient(to right, rgba(33, 33, 33, 0.6) 0%, rgba(0, 0, 0, 0.6) 100%);
  background-repeat: repeat-x;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#80000000', GradientType=1);
  zoom: 1;
}




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

@media only screen and (min-width: 35em) {

}

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

}

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

.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;
}

/* ==========================================================================
   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;
    }
}