:root {
    --full-width: 100%;
    --static-width: calc(1440px - 30px);
    --calc-width: calc(100% - 200px);
    --grey: #B5B5B5;
    --white: #fff;
    --black: #19191C;
    --padding-top: 75px;
    --padding-bottom: 75px;
    --padding: 75px 0;
}

html, body, main {
    width: var(--full-width);
    height: auto;
    font-size: 15px;
    font-family: 'Courier Prime', monospace;
    margin: 0 auto;
}

.h1 {
    font-size: 8.6rem;
    line-height: 9rem;
    text-transform: uppercase;
    font-family: 'Anton', sans-serif;
}

.h2 {
    font-size: 2.3rem;
    line-height: 2.6rem;
    text-transform: uppercase;
    font-weight: 400;
    color: var(--grey);
}

.h3 {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--grey);
}

p, span, a, ul li, ul li a, ol li, ol li a {
    font-size: 1rem;
    letter-spacing: 1px;
    font-weight: 400;
    line-height: 1.3rem;
    text-decoration: none;
}

.flex {
    display: flex;
}

:focus {
    outline: none;
}

/*Rules*/

#banner {
    width: var(--full-width);
    height: 100vh;
    background-image: url('../image/nelson-il-condominio-dei-diritti-sito-web-home-header.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* .video_banner video {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: var(--full-width);
    height: 100%;
    object-fit: cover;
} */

.banner_container.flex {
    width: var(--static-width); 
    height: 100%;
    margin: 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    position: relative;
}

.banner_container.flex img {
    width: 600px;
}

#first_section {
    width: var(--full-width);
    height: auto;
    background-color: var(--black);
    padding: var(--padding);
}

#first_section .container.flex {
    width: var(--calc-width);
    margin: 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.intro {
    width: 750px;
    margin: 0 auto;
    text-align: center;
}

.intro .h1 {
    color: var(--white);
    margin: 0;
}

.intro .h2 {
    margin: 0;
}

.intro p {
    color: var(--white);
    margin: 0;
    padding-top: 40px;
}

#trailer {
    width: var(--full-width);
    height: calc(100vw*1/3);
    padding-top: var(--padding-top);
}

#trailer iframe {
    width: var(--full-width);
    height: 100%;
}

#info_spettacolo {
    width: var(--full-width);
    height: auto;
}

#info_spettacolo .container.flex {
    width: var(--full-width);
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding-top: var(--padding-top);
}

#info_spettacolo .container.flex .text {
    flex: 0 40%;
    height: auto;
}

#info_spettacolo .container.flex .text .text_container {
    width: 400px;
    margin: 0 auto;
    text-align: left;
}

#info_spettacolo .container.flex .text .text_container p {
    color: var(--white);
    margin: 0;
}

#info_spettacolo .container.flex .locandina {
    flex: 0 40%;
    height: calc(30vw*3/2);
}

#info_spettacolo .container.flex .locandina img {
    height: 100%;
}

#photo_section {
    width: var(--full-width);
    height: auto;
}

#photo_section .container.flex {
    flex-direction: row;
    flex-wrap: wrap;
}

#photo_section .container.flex .box_photo {
    flex: 20vw;
    height: 20vw;
}

#photo_section .container.flex .box_photo img {
    width: var(--full-width);
    height: 100%;
    object-fit: cover;
}

#credits {
    width: var(--full-width);
    height: auto;
    background-color: var(--white);
    padding: var(--padding);
}

#credits .container.flex {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#credits .container.flex h4.h3 {
    text-transform: uppercase;
    margin-top: 0;
    font-size: 1.6rem;
}

#credits .container.flex .row_credits {
    width: 600px;
    text-align: center;
    margin-bottom: 30px;
}

#credits .container.flex .row_credits:last-of-type {
    margin-bottom: 0;
}

#credits .container.flex .row_credits p {
    display: block;
    font-size: 1.3rem;
    margin: 0;
}

#credits .container.flex .row_credits p.heading {
    text-transform: uppercase;
    color: var(--grey);
    margin-bottom: 0;
}

.button.flex {
    width: 300px;
    height: 60px;
    margin: 40px auto 0 auto;
    border: 3px solid var(--black);
    position: relative;
    overflow: hidden;
    background: var(--grey);
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
}

.button.flex a svg {
    height: 40px;
    transition: 0.3s;
    -webkit-transition: 0.3s;
    fill: var(--white);
}

.button.flex a:hover svg {
    opacity: 0.6;
}

.button_overlay {
    position: absolute;
    top: 0;
    left: 0;
    line-height: 60px;
    width: var(--full-width);
    height: 100%;
    transition: left 0.8s;
    transition-timing-function: cubic-bezier(0.1, 0.3, 0.2, 0.3);
    -webkit-transition: left 0.8s;
    -webkit-transition-timing-function: cubic-bezier(0.1, 0.3, 0.2, 0.3);
    cursor: pointer;
    z-index: 1;
    background: var(--white);
}

.button_overlay p {
    color: var(--black);
    text-transform: uppercase;
    font-weight: 400;
    margin: 0;
    display: initial;
    font-size: 1.2rem;
}

.button:hover .button_overlay {
    left: -300px;
}

#bottom_photo {
    width: var(--full-width);
    height: calc(100vw*2/4);
    position: relative;
    background-image: url('../image/nelson-il-condominio-dei-diritti-sito-web-home-footer.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

#last_section {
    width: var(--full-width);
    height: auto;
    padding: var(--padding);
    background-color: var(--white);
    text-align: center;
}

#last_section a {
    font-size: 1.8rem;
    line-height: 1.8rem;
    color: var(--grey);
    transition: 0.3s;
    -webkit-transition: 0.3s;
    letter-spacing: 0px;
    font-weight: 400;
}

#last_section a:hover {
    color: var(--black);
}

#last_section a.presskit_link {
    display: block;
    margin-bottom: 30px;
    color: var(--black);
}

#last_section a.presskit_link:hover {
    color: var(--grey);
}

.social {
    margin-top: 30px;
}

.social a svg {
    height: 40px;
    fill: var(--black);
    margin: 0 15px;
    transition: 0.6s;
    -webkit-transition: 0.6s;
}

.social a:hover svg {
    fill: var(--grey);
}

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

    :root {
        --static-width: calc(1280px - 30px);
    }

    #trailer {
        height: calc(100vw*1/3);
    }

}

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

    #banner, #bottom_photo {
        background-attachment: scroll;
    }
        
}

@media screen and (max-width: 1280px) {
    
    :root {
        --static-width: calc(1024px - 30px);
    }

    #info_spettacolo .container.flex .text {
        flex: 0 50%;
        order: 1;
        -webkit-order: 1;
    }

    #info_spettacolo .container.flex .locandina {
        height: calc(35vw*3/2);
        order: 2;
        -webkit-order: 2;
    }

    #bottom_photo {
        height: calc(100vw*1/3);
    }

}

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

    :root {
        --calc-width: calc(100% - 100px);
        --padding: 50px 0;
        --padding-top: 50px;
        --padding-bottom: 50px;
    }

    #banner {
        height: calc(100vh*2/3);
        background-position: center;
    }

    .banner_container.flex {
        width: var(--calc-width);
    }

    .banner_container.flex img {
        width: 500px;
    }

    .intro {
        width: var(--full-width)
    }

    #trailer {
        height: calc(100vw*2/4);
    } 

    #info_spettacolo .container.flex .text {
        flex: 0 100%;
        padding-bottom: var(--padding-bottom);
    }

    #info_spettacolo .container.flex .text .text_container {
        text-align: center;
    }

    #info_spettacolo .container.flex .locandina {
        height: calc(45vw*3/2);
    }

    #photo_section .container.flex .box_photo {
        flex: 40vw;
        height: 40vw;
    }

    .button_overlay {
        display: none;
    }

}

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

    :root {
        --calc-width: calc(100% - 50px);
    }

    .h1 {
        font-size: 6.6rem;
        line-height: 7rem;
    }

    .h2 {
        font-size: 1.7rem;
        line-height: 2.2rem;
    }

    #banner{
        background-position: initial;
    }

    .banner_container.flex img {
        width: 350px;
    }

    #credits .container.flex .row_credits {
        width: var(--full-width);
    }

    #credits .container.flex .row_credits p {
        padding: 0 20px;
    }

    #last_section a {
        font-size: 1.5rem;
        line-height: 1.5rem;
    }

    #info_spettacolo .container.flex .locandina {
        height: calc(60vw*3/2);
    }

}

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

    .h1 {
        font-size: 5.6rem;
        line-height: 6rem;
    }

    .h2 {
        font-size: 1.3rem;
        line-height: 1.8rem;
    }

    .banner_container.flex img {
        width: 250px;
    }

    #info_spettacolo .container.flex .text .text_container {
        width: var(--full-width);
    }

    #credits .container.flex .row_credits p {
        font-size: 1.1rem;
    }

}