@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;700&family=Open+Sans:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400..900&display=swap');

:root{
    font-family: "Cinzel", serif;
    font-family: 'Montserrat', sans-serif;
    --clr-vessel-one:#303b40;
    --clr-vessel-two:#f36839;
    --clr-light:white;
    --clr-light-transparent:rgba(255,255,255,.6);
    --clr-dark:#1a1a1a;
    --clr-dark-trasp:rgba(26,26,26,.25);
    --clr-red:#c15359;
    --clr-blue:#8cacc5;
    --clr-gold:#cac198;
}

body {
    margin:0;
    overflow-x: hidden;
    background-color: var(--clr-dark);
    color: var(--clr-light);
    box-sizing: border-box;
    font-family: 'Cinzel';
    font-weight: 400;
}

h2 {
    font-size: 1.5rem;
    font-weight: 500;
}

h3{
    font-size: 1.2rem;
}

p {
    /*font-family: 'Montserrat';*/
    font-size: 1rem;
}

.nascosto {
    opacity: 0;
    transition: .5s;
}

/*---------------navbar--------------------*/

#barraNavigazione{
    padding-left: 20px;
    padding-right: 20px;
}

.navbar-brand img {
    width: 240px;
    max-width: 50vw;
    margin: 20px 10px 20px;
}

/*icona hamburger modificata*/

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'><path stroke='rgba%28255, 255, 255, 100%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/></svg>") !important;
} 

.navbar-toggler:focus {
    box-shadow: 0px 0px 1px 1px var(--clr-dark-trasp);
}

#barraNavigazione a{
    color: var(--clr-light);
    text-decoration: underline 3px transparent;
    text-underline-offset: 8px;
    font-size: 1.2rem;
    
}

.navbar-nav li .nav-link {
    border-top: 2px solid transparent;
    border-bottom: 2px solid transparent;
}

.navbar-nav li:nth-of-type(1) .nav-link:hover {
    border-top: 2px solid transparent;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(to left, var(--clr-dark), var(--clr-light), var(--clr-dark)) 1;
    border-image-slice: 1;
}

.navbar-nav li:nth-of-type(2) .nav-link:hover {
    border-top: 2px solid transparent;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(to left, var(--clr-dark), var(--clr-blue), var(--clr-dark)) 1;
    border-image-slice: 1;
}

.navbar-nav li:nth-of-type(3) .nav-link:hover {
    border-top: 2px solid transparent;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(to left, var(--clr-dark), var(--clr-red), var(--clr-dark)) 1;
    border-image-slice: 1;
}

.navbar-nav li:nth-of-type(4) .nav-link:hover {
    border-top: 2px solid transparent;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(to left, var(--clr-dark), var(--clr-gold), var(--clr-dark)) 1;
    border-image-slice: 1;
}

.nav-active {
    /*sottolineatura link menu da hamburger o sempre se non ci sono stili per lo schermo cell*/
    /*color: var(--clr-gold) !important;*/
    text-decoration: underline var(--clr-light) 2px solid !important;
    text-underline-offset: 8px;
    opacity: 1;
}

.navbar-nav {
    background-color: var(--clr-dark);
    opacity: .9;
}

/*--------------------sfondo navbar sopra che compare--------------*/

.SFcontainer{
    position:absolute;
    width:100%;
    top:0;
    left: 0;
    height:0px; /*gestito in navbar js*/
    background-color: var(--clr-dark);
    opacity: .85;
    transition: .5s;
    z-index: -1;
}

.SFcontainerVISIBLE{
    height:130px;
    transition: .5s;
}

/*----------------------icona scroll-----------------*/

#scroll-icon{
    height:36px;
    width: 20px;
    border-radius: 12px;
    border:var(--clr-light) 2px solid;
    opacity:.5;
    transform:translateY(-5px);
    
}

/* The animation code */

@keyframes mouse {
    from {transform: translate(5px,4px);}
    to {transform: translate(5px,12px);}
  }

#scroll-icon::after{
    content: "";
    position:absolute;
    height: 10px;
    width:6px;
    
    border-radius: 3px;
    background-color: var(--clr-light);

    
    transform: translate(5px, 3px);
    animation-name: mouse;
    animation-duration: 1s;
    animation-direction: alternate;
    animation-iteration-count:infinite;
}

/*--------------------separator--------------*/

.separator{
    display: flex;
    justify-content: center;
    width: 100%;   
}

.separator img {
    width: 40px;
}

/*-----------------------footer------------------------------*/

#logo-footer-pollentia {
    width:250px;
}

footer h4 {
    font-size: 1rem;
    margin-top: 20px;
    margin-bottom: 20px;
}

#logo-footer-vessel img{
    width:200px;
    opacity:1 !important;
}

footer p {
    font-family: 'Montserrat';
    margin-top: 20px;
    margin-bottom: 20px;
}
.contatti a {
    color:var(--clr-gold);
    opacity: .8;
}

.social a{
    color:var(--clr-gold);
    opacity: .8;
    font-size:.75rem;
    text-decoration: none;
}

footer a:hover {
    opacity:1;
}

/*-----------------PAG-1-HOME------------*/

/*---------------video--------------------*/

#video-container{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    overflow: hidden; /* importante */
}

#video{
    width: 100%;
    /*height: 100%;*/
    object-fit: cover;
}

.img-titolo {
    width: 100%;
    /*height: 100%;*/
    object-fit: cover;
}


/*-----------------------pallino slider------------------------------*/

input[type=range]::-moz-range-thumb {
  background-color: var(--clr-red);
}

input[type=range]::-webkit-slider-thumb {
  background-color: var(--clr-red);
  border: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

/*--------------immagini slider-----------*/

.img-slider{
    max-height: 80vh;
    max-width: 90vw;
}

/*-----------------video youtube--------------*/
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}


/*---------------bottoni link-------------*/
#container-bottoni{
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width:100%;
}

.link-button{
    width: 50%;
    margin:10px;
    align-self: center;
    justify-self: center;
    /*border:2px var(--clr-blue) solid;*/
    border-width: 2px;
    border-style: solid;
    text-align: center;
    
    padding: 0%;
    transition: 1s;
}

.link-button:nth-of-type(1) {
  border-image: linear-gradient(to left, var(--clr-dark), var(--clr-light), var(--clr-dark)) 1 0;
}

.link-button:nth-of-type(2) {
  border-image: linear-gradient(to left, var(--clr-dark), var(--clr-blue), var(--clr-dark)) 1 0;
}

.link-button:nth-of-type(3) {
  border-image: linear-gradient(to left, var(--clr-dark), var(--clr-red), var(--clr-dark)) 1 0;
}

.link-button:nth-of-type(4) {
  border-image: linear-gradient(to left, var(--clr-dark), var(--clr-gold), var(--clr-dark)) 1 0;
}

.link-button a{
    padding: 0%;
    color: var(--clr-light);
}

.link-button a:hover{
  color: var(--clr-light-transparent);
}


/*
.link-button:nth-of-type(1):hover {
  border:2px var(--clr-blue) solid;
  
}

.link-button:nth-of-type(2):hover {
  border:2px var(--clr-red) solid;
}

.link-button:nth-of-type(3):hover {
  border:2px var(--clr-gold) solid;
}*/


/* Aggiorna colore del riempimento dinamicamente con JS (solo WebKit) */

/*------------------pag 4 - ricostruzione-------------*/
#testo_ricostruzione p{
    font-family: 'Montserrat';

}

#testo_ricostruzione a{
    color: var(--clr-gold);
    font-weight: 500;
}


/*--------------------------------------------------*/
/*--------------------MOBILE CSS--------------------*/
/*--------------------------------------------------*/

@media only screen and (max-width: 576px){

    /*-----------------PAG-1-HOME------------*/
    /*---------------video--------------------*/
    #video{
        width: 150%;
        /*margin-right: -50%;*/

    }

    .img-titolo {
        width: 150%;
    }


    /*---------------bottoni link-------------
    #container-bottoni{
        background-color: orange;
        display: flex;
        flex-direction: column;
    }

    .link-button{
        background-color: green;
        width: 80%;
    }*/

}

@media screen and (max-width: 992px) and (orientation: landscape) {
  /* Stili solo per mobile in orizzontale */
.SFcontainerVISIBLE{
    height:60px;
    transition: .5s;
}

  .navbar-brand img {
    width: 120px;
    margin: 0px;
  }


}
