body {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    background: #000;
    color: #fff;
    overflow-x: hidden;
}


a:focus,
button:focus,
input:focus {
    outline: 0 !important;
	border-radius: 0;
}
@media (prefers-reduced-motion: no-preference) {
	:focus {
	transition: outline-offset .25s ease;
	outline-offset: 3px;
	background-color: transparent;
	color: inherit;
	}
}

.contentInside {
    max-width: 1300px;
}
#colophon .contentInside {
    max-width: 1140px;
}

#logo {
    margin: 25px 0 0;
    float: left;
}


#masthead {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 1;
}

#menuPrincipale {
    list-style: none;
    margin: 45px 0 0 0;
    padding: 0;
    float: right;
    font-size: 1.5rem;
    line-height: 2rem;
}
#menuPrincipale li {
    display: inline-block;
    vertical-align: middle;
    margin: 0;
}
#menuPrincipale li a {
    color: #fff;
    text-decoration: none;
    display: block;
}
#menuPrincipale li a i {
    font-size: 2.6rem;
}
#menuPrincipale li:not(:first-child) a {
    margin-left: 20px;
}
#menuPrincipale li:not(:last-child) a:hover {
    color: #E5BF00;
}



section {
    min-height: 100vh;
    width: 100vw;
}


h1 {
    font-size: 5rem;
    line-height: 6rem;
    margin: 4rem 0 2rem 0;
}
h2 {
    font-weight: 300;
    font-size: 4rem;
    line-height: 4.9rem;
    margin: 2rem 0;
}
h3 {
    font-size: 3rem;
    line-height: 3.7rem;
    font-weight: 300;
    max-width: 980px;
}


.btn {
    font-size: 2.0rem;
    line-height: 2.4rem;
    font-weight: 400;
    text-transform: none;
    text-decoration: none;
    color: #000;
    background: #E5BF00;
    border: 1px solid #E5BF00;
    padding: 10px;
    max-width: 400px;
    margin: 70px auto 0;
    display: block;
}
.btn:hover {
    background: 000;
}




#home {
    display: flex;
    align-items: center;
}
#line {
    margin: 0 auto;
}

#scrollDown {
    margin: 12vh auto 0;
    display: block;
    width: 25px;
}




#intro {
    display: flex;
    align-items: center;
}
#scrollDown2 {
    margin: 12vh auto 0;
    display: block;
    width: 25px;
}

#intro h3 {
    max-width: 980px;
    margin: 2.6rem auto;
}


.contenutiManifesto {
    position: relative;
    left: 40%;
    min-height: 50vh;
    align-content: end;
    max-width: 520px;
}

.content {
    display: none;
    transition: opacity 0.3s ease;
}
.content.active {
    display: block;
    opacity: 1;
}

.content .numero {
    font-weight: 300;
    font-size: 5rem;
    line-height: 6rem;
}
.content .titolo {
    font-weight: 700;
    font-size: 4.4rem;
    line-height: 5.4rem;
    margin: 2rem 0;
}
.content .descrizione {
    font-weight: 400;
    font-size: 2.2rem;
    line-height: 2.7rem;
    margin-bottom: 30px;
}

.content {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.content.active {
  visibility: visible;
}

#videoLink {
    position: absolute;
    bottom: -160px;
    left: 300px;
    font-size: 80px;
    color: #fff;
    display: block;
    z-index: 1;
}
#videoLink:hover {
    color: #E5BF00;
}


.tab-container {
    display: flex;
    justify-content: left;
    margin-top: 20px;
	transition: all 1s;
    position: relative;
    left: 40%;
    align-items: end;
    height: 200px;
}

.tab {
    width: 100px;
    height: 100px;
    margin: 0 20px 0 0;
    cursor: pointer;
	transition: all 0.5s;
    aspect-ratio: 1 / 1;
}
.tab .act {
    display: none;
}

.tab img {
	transition: all 1s;
    width: 100%;
}
.tab.active {
    width: 200px;
    height: 200px;
}
.tab.active .act {
    display: block;
}
.tab.active .def {
    display: none;
}
.numberFloat {
    position: absolute;
    font-weight: 300;
    font-size: 3.2rem;
    line-height: 3.9rem;
    margin-top: -50px;
}
.tab.active .numberFloat {
    display: none;
}




#contattiBtn {
    text-align: center;
}
.contattiBtn {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    display: inline-block;
    min-width: 170px;
    margin: 40px 10px;
}

.contattiBtn.show {
    opacity: 1;
    visibility: visible;
}

#colophon {
    font-size: 1.2rem;
    line-height: 1.6rem;
    color: #fff;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100vw;
    z-index: 1;
}
#colophon a {
    color: #fff;
}
#colophon a:hover {
    color: #E5BF00;
}
#colophon a i {
    font-size: 24px;
    margin-left: 10px;
    vertical-align: middle;
}



.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.show {
  visibility: visible;
  opacity: 1;
  pointer-events: all;
}


.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
}

.modal-content video {
    width: 100%;
    height: auto;
    max-height: 90vh;
    display: block;
}

.closeM {
    position: absolute;
    top: -40px;
    right: 0px;
    color: white;
    font-size: 40px;
    line-height: 40px;
    font-weight: 500;
    cursor: pointer;
}





/* animazioni */

.background-fade {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000 url('../images/bg.jpg') no-repeat left center / contain;
    z-index: -1;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

/* Classe attivata dopo il load */
.background-fade.loaded {
    opacity: 1;
}

.background-fade.scrolled-down {
    opacity: 0.5;
    transition: opacity 0.5s ease;
}



@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

h1 {
    opacity: 0;
    animation: fadeUp 2s ease forwards;
}
#line {
    opacity: 0;
    animation: fadeRight 2s ease forwards;
    animation-delay: 1s;
}

h2 {
    opacity: 0;
    animation: fadeDown 2s ease forwards;
    animation-delay: 2s;
}
#scrollDown {
    opacity: 0;
    animation: fade 2s ease forwards;
    animation-delay: 3s;
}




.digit {
	opacity: 0;
    transition: all 0s ease-out;
}


.h31 {
    transform: translateY(20px);
    transition: all 1.2s ease-out;
	transition-delay: 1s;
}
.h31.visible {
    opacity: 1;
    transform: none;
}


.h32 {
    transform: translateY(20px);
    transition: all 1.2s ease-out;
	transition-delay: 2s;
}
.h32.visible {
    opacity: 1;
    transform: none;
}


.h33 {
    transform: translateY(20px);
    transition: all 1.2s ease-out;
	transition-delay: 3s;
}
.h33.visible {
    opacity: 1;
    transform: none;
}


#scrollDown2 {
    transition: all 1.2s ease-out;
	transition-delay: 4s;
}
#scrollDown2.visible {
    opacity: 1;
    transform: none;
}




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

    #burger {
        position: absolute;
        right: 0;
        padding: 20px;
    }
    #burger .close {
        display: none;
    }
    #burger.active .close {
        display: block;
    }
    #burger.active .open {
        display: none;
    }
    
    #masthead {
        background: rgba(0, 0, 0, 0.8);
    }
    #logo {
        margin: 0 0 10px;
    }
    
    
    .background-fade {
        background-position: left top;
        background-size: 140%;
    }
    h1 {
        font-size: 3.4rem;
        line-height: 3rem;
    }
    h2 {
        font-size: 2rem;
        line-height: 2.9rem;
    }
    h3 {
        font-size: 2rem;
        line-height: 2.2rem;
    }
    #home {
        align-items: end;
    }
    #intro {
        align-items: end;
    }
    #scrollDown2 {
        margin: 2vh auto 0;
    }
    
    .contenutiManifesto {
        left: 10%;
        width: 80%;
    }
    .content .titolo {
        font-size: 3.0rem;
        line-height: 4.4rem;
    }
    .content .descrizione {
        font-size: 1.6rem;
        line-height: 2.2rem;
    }
    
    .manifestoContainer {
        width: 100vw;
        overflow: hidden;
    }
    
    .tab-container {
        left: 10%;
    }
    #videoLink {
        left: 220px;
    }
    
    .contattiBtn.show {
        font-size: 1.8rem;
        line-height: 1.8rem;
        min-width: 90px;
        margin: 20px 5px;
    }
    
    #colophon,
    #colophon .textRight {
        position: relative;
        text-align: center;
    }
    
    #navigation {
        position: absolute;
        top: 95px;
        background: #000;
        left: 0;
        padding: 50px;
        text-align: center;
        width: 100vw;
        box-sizing: border-box;
    }
    #menuPrincipale {
        float: none;
        margin: 0;
        width: 100%;
    }
    #menuPrincipale li {
        display: block;
    }
    #menuPrincipale li a {
        margin: 0 !important;
        padding: 10px 0;
        font-size: 2rem;
    }
    #menuPrincipale li img {
        margin: 0 auto;
    }
    
    
    


    .h31 {
        transform: translateY(20px);
        transition: all 0.5s ease-out;
        transition-delay: 0.2s;
    }
    .h31.visible {
        opacity: 1;
        transform: none;
    }


    .h32 {
        transform: translateY(20px);
        transition: all 0.5s ease-out;
        transition-delay: 0.4s;
    }
    .h32.visible {
        opacity: 1;
        transform: none;
    }


    .h33 {
        transform: translateY(20px);
        transition: all 0.5s ease-out;
        transition-delay: 0.5s;
    }
    .h33.visible {
        opacity: 1;
        transform: none;
    }
    
}

