/* IMPOSTAZIONI GENERALI */

@import url(https://fonts.googleapis.com/css?family=Raleway);

*{
    box-sizing: border-box;
    font-family: "Raleway";
}

body{
    margin:0;
    /* font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;*/
    font-size:1rem;
    font-weight:normal;
    line-height:1.5;
    color:#333;
    overflow-x:hidden;
}

.container {            /* eventualmente da eleiminare se uso bootstrap */
    width: 90%;
    margin: 0px auto;
}

h1, h2, h3, h4 {
    color:#005D80;
    font-weight: 800;
}

a {
    color:rgb(17, 73, 94);
}

.section {
    padding-top: 40px;
    padding-bottom: 40px;
    display:block;
}

.centred {
    text-align: center;
}

.paddingSopra {
    padding-top:80px;
}

.paddingSotto {
    padding-bottom:80px;
}

.elementohidden{
	opacity:0;
}
.elementovisible{
	opacity:1;
}

/* IMPOSTAZIONI GENERALI */

/* HEADER */
header {
    height:80px;
    width: 100%;
    z-index: 999;
    transition: .8s ease;
}
.dalbordo20 {
    position: absolute;
    top: 20px;
    background: rgba(0,20,52,0.5);
}
.dalbordo200 {
    position: absolute;
    top: -200px;
    background: rgba(0,20,52,0.5);
}
.dalbordo0 {
    position: fixed;
    top: 0px;
    background: rgba(0,20,52,0.5);
}
.logo_desktop {
    display: block;
}
.logo_mobile {
    display: none;
}
.nascondimobile {
    display: block;
}
@media (max-width:768px) {
    header {
        height:100px;
    }
    .logo_desktop {
        display: none;
    }
    .logo_mobile {
        display: block;
        margin:2px auto;
    }
    .dalbordo20 {
        position: relative;
        top: 0px;
        background: rgba(0,20,52,1.0);
    }
    .dalbordo200 {
        position: relative;
        top: -200px;
        background: rgba(0,20,52,1.0);
    }
    .dalbordo0 { 
        position: fixed;
        top: 0px;
        background: rgba(0,20,52,0.9);
    }
    .nascondimobile {
        display: none!important;
    }
}
/* FINE HEADER */

/*  CSS VIDEO INTRO  */
.video-container {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%; 
    overflow: hidden;
    z-index: -100;
}

.video-container video {
    /* Make video to at least 100% wide and tall */
    min-width: 100%; 
    min-height: 100%; */
    /* Setting width & height to auto prevents the browser from stretching or squishing the video */
    width: auto;
    height: auto;
    /* Center the video */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}

.dopovideo {
    margin-top: 100vh;
}

.video-container-mobile {
    display:none;
}

@media (max-width: 768px) {
    .video-container {
        display:none;
    }
    .video-container-mobile {
        display:block;
        /* background: url(../img/sfondo_video.jpg);
        background-repeat: no-repeat;
        background-size: cover;*/
        background: url(../img/sfondo_video.gif);
        background-repeat: no-repeat;
        background-size: contain;
    }
    .video-container-mobile video {
        width: 100%; 
    }
    .dopovideo {
        margin-top: 0px;
    }
}

/* FINE CSS VIDEO INTRO */

/* OVERLAY OPZIONALE PER IL VIDEO INTRO */
.overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh; 
    overflow: hidden;
    background-color: rgba(19,19,56,0.0);
    z-index: 2;
}
@media (max-width: 768px) {
    .overlay {
        display: none;
    }
}
/* FINE OVERLAY OPZIONALE PER IL VIDEO INTRO */

/* PURE CSS RESPONSIVE MENU */

.top-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    color: #FFF;
    height: 80px;
    padding: 1em;
}
.top-nav a {
    color: #FFF;
    text-decoration: none;
}
.top-nav a:hover {
    color: rgb(220, 225, 250);
}

.menu {
    display: flex;
    flex-direction: row;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.menu > li {
    margin: 0 1rem;
}

.menu-button-container {
    display: none;
    height: 100%;
    width: 30px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#menu-toggle {
    display: none;
}

.menu-button,
.menu-button::before,
.menu-button::after {
    display: block;
    background-color: #fff;
    position: absolute;
    height: 4px;
    width: 30px;
    transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 2px;
}

.menu-button::before {
    content: '';
    margin-top: -8px;
}

.menu-button::after {
    content: '';
    margin-top: 8px;
}

#menu-toggle:checked + .menu-button-container .menu-button::before {
    margin-top: 0px;
    transform: rotate(405deg);
}

#menu-toggle:checked + .menu-button-container .menu-button {
    background: rgba(255, 255, 255, 0);
}

#menu-toggle:checked + .menu-button-container .menu-button::after {
    margin-top: 0px;
    transform: rotate(-405deg);
}

@media (max-width: 768px) {
    .menu-button-container {
        display: flex;
    }
    .menu {
        position: absolute;
        top: 0;
        margin-top: 100px;
        left: 0;
        flex-direction: column;
        width: 100%;
        justify-content: center;
        align-items: center;
    }
    #menu-toggle ~ .menu li {
        height: 0;
        margin: 0;
        padding: 0;
        border: 0;
        opacity: 0.0; /* serve per nascondere le voci del menu responsive quando è chiuso */
        transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
    }
    #menu-toggle:checked ~ .menu li {
        border: 1px solid rgba(0,20,52,0.4);
        height: 2.5em;
        padding: 0.5em;
        opacity: 1.0; /* serve per rendere di nuovo visibili le voci del menu responsive quando è aperto */
        transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
    }
    .menu > li {
        display: flex;
        justify-content: center;
        margin: 0;
        padding: 0.5em 0;
        width: 100%;
        color: white;
        background-color: rgba(0,20,52,0.4);
    }
    .menu > li:not(:last-child) {
        border-bottom: 1px solid rgba(0,20,52,0.4);
    }
}
/* FINE PURE CSS RESPONSIVE MENU */

/* GALLERIA */
.gallery {
    display: flex;
    flex-wrap: wrap;
}
  
.gallery-item {
    display: inline-block;
    width: 100%;
}
  
@media (min-width: 30em) {  /* originariamente era 48em */
    .gallery-item {
      margin-bottom: 8px;
      width: calc(50% - 5px);
      margin-right: 8px;
    }
    .gallery-item:nth-of-type(2n) {
      margin-right: 0;
    }
}
  
@media (min-width: 72em) {
    .gallery-item {
      width: calc(25% - 7px);
    }
    .gallery-item:nth-of-type(2n) {
      margin-right: 8px;
    }
    .gallery-item:nth-of-type(4n) {
      margin-right: 0;
    }
    .textG {
        font-size:14px;
    }
}
  
figure {
    margin: 0;
    overflow: hidden;
}
  
img {
    max-width: 100%;
    height: auto;
    display: block;
    
}

figcaption {
    display:none;
}

a.gallery-item {
    filter: grayscale(1);
    -webkit-filter: grayscale(1);
}

a.gallery-item:hover {
    filter: grayscale(0);
    -webkit-filter: grayscale(0);
}
    /* effetto rollover con didascalia 1 */
.overlayGallery {
    position: absolute; 
    bottom: 0; 
    background: rgb(0,20,52);
    background: rgba(0,20,52, 0.4);
    color: #f1f1f1; 
    width: 100%;
    transition: .5s ease;
    opacity:0;
    color: white;
    font-size: 20px;
    padding: 20px;
    text-align: center;
}
a.gallery-item:hover .overlayGallery {
    opacity: 1;
}
    /* effetto rollover con didascalia 2 */
.overlayGallery2 {
    position: absolute!important;
    bottom: 0;
    left: 0;
    background: rgba(0,20,52, 0.4);
    overflow: hidden;
    width: 100%;
    height: 0;
    transition: .5s ease;
}
.containerG {
    position: relative;
    width:auto;
}
.containerG:hover .overlayGallery2 {
    height: 46px;
}
.textG {
    color: white;
    font-size: 12px;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    text-align: center;
  }

/* FINE GALLERIA */

/* VIDEO MODALE INTEGRAZIONI */
.modal-video-inner {
    padding: 40px;
}
.videizzato:hover  {
/*    background: url(../img/play.png) center center;
    background-repeat: no-repeat;
    background-size: cover;*/
    opacity: 0.7;
}
a {
    text-decoration: none; 
}
/* FINE VIDEO MODALE INTEGRAZIONI */

/* CONTATTI */
.btn-primary {
    color: #ffffff;
    background-color: #005D80;
    border-color: rgb(0, 64, 87);
}
.btn-primary:hover {
    color: #ffffff;
    background-color: rgba(0,20,52);
    border-color: rgb(0, 9, 22);
}
.btn-primary.disabled:hover {
    background-color: rgb(123, 185, 207);
    border-color: rgb(55, 89, 102);
}
#map {
    height: 320px;  /* The height is 400 pixels */
    width: 95%;  /* The width is the width of the web page */
    background-color: grey;
}
/* FINE CONTATTI */

/* FOOTER */
.footertext {
    text-align: center;
    margin: 0 auto;
    color:#fff;
}
.footertext a {
    color: #f0f0f0;
    text-decoration: none;
}
.blocker {
    z-index: 1999!important;
}
/* FINE FOOTER */

/* SLIDER STICK */
@media (min-width: 992px) {
    .slider,
    .slide {
        height: 90vh;
    }
    }
    .slide {
    position: relative;
    }
    .slide .slide__img {
    width: 100%;
    height: auto;
    overflow: hidden;
}
@media (min-width: 992px) {
    .slide .slide__img {
        position: absolute;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
    }
}
.slide .slide__img img {
    max-width: 100%;
    height: auto;
    opacity: 1 !important;
    animation-duration: 3s;
    transition: all 1s ease;
}
.slide .slide__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.slide .slide__content--headings {
    text-align: center;
    color: #FFF;
}
.slide .slide__content--headings h2 {
    font-size: 4.5rem;
    margin: 10px 0;
}
.slide .slide__content--headings .animated {
    transition: all .5s ease;
}
.slider [data-animation-in] {
    opacity: 0;
    animation-duration: 1.5s;
    transition: opacity 0.5s ease 0.3s;
}
.slick-dotted .slick-slider {
    margin-bottom: 30px;
}
    .slick-dots {
    position: absolute;
    bottom: 25px;
    list-style: none;
    display: block;
    text-align: center;
    padding: 0;
    margin: 0;
    width: 100%;
    }
    .slick-dots li {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    padding: 0;
    cursor: pointer;
    }
    .slick-dots li button {
    border: 0;
    display: block;
    outline: none;
    line-height: 0px;
    font-size: 0px;
    color: transparent;
    padding: 5px;
    cursor: pointer;
    transition: all .3s ease;
    }
    .slick-dots li button:hover,
    .slick-dots li button:focus {
    outline: none;
    }
    .simple-dots .slick-dots li {
    width: 20px;
    height: 20px;
    }
    .simple-dots .slick-dots li button {
    border-radius: 50%;
    background-color: #ffffff;
    opacity: 0.25;
    width: 20px;
    height: 20px;
    }
    .simple-dots .slick-dots li button:hover,
    .simple-dots .slick-dots li button:focus {
    opacity: 1;
    }
    .simple-dots .slick-dots li.slick-active button {
    color: #ffffff;
    opacity: 0.75;
    }
    .stick-dots .slick-dots li {
    height: 3px;
    width: 50px;
    }
    .stick-dots .slick-dots li button {
    position: relative;
    background-color: #ffffff;
    opacity: 0.25;
    width: 50px;
    height: 3px;
    padding: 0;
    }
    .stick-dots .slick-dots li button:hover,
    .stick-dots .slick-dots li button:focus {
    opacity: 1;
    }
.stick-dots .slick-dots li.slick-active button {
    color: #ffffff;
    opacity: 0.75;
}
.stick-dots .slick-dots li.slick-active button:hover,
.stick-dots .slick-dots li.slick-active button:focus {
    opacity: 1;
}
/* /////////// IMAGE ZOOM /////////// */
@keyframes zoomInImage {
    from {
        transform: scale3d(1, 1, 1);
    }
    to {
        transform: scale3d(1.1, 1.1, 1.1);
    }
    }
    .zoomInImage {
    animation-name: zoomInImage;
}
@keyframes zoomOutImage {
    from {
        transform: scale3d(1.1, 1.1, 1.1);
    }
    to {
        transform: scale3d(1, 1, 1);
    }
 }
.zoomOutImage {
    animation-name: zoomOutImage;
}
.slide h2 {
    text-shadow: 0px 0px 10px rgba(0,0,0,0.5);
}
.slide p {
    text-shadow: 0px 0px 5px rgba(0,0,0,0.4);
}
/* FINE SLIDER STICK */