:root {
    scroll-behavior: smooth;
}

/* CRUSCOTTO STANZA */
#cruscotto {
    background-color: black;
}
#cruscotto > div,
#cruscotto .logo,
#cruscotto .menu ul,
#cruscotto .menu a {
    height: 100px;
    display: flex;
    display: -webkit-flex;
    justify-content: space-between;
    -webkit-justify-content: space-between;
    align-items: center;
    -webkit-align-items: center;
}
#cruscotto .logo img,
#cruscotto .logo a {
    height: 40px;
}
#cruscotto .logo p {
    height: 60px;
    font-size: 53px;
    margin-left: 6%;
}
#cruscotto .menu {
    width: 30%;
}
#cruscotto .menu span {
    white-space: pre;
    margin-left: .7rem;
}
#cruscotto .menu a:last-of-type {
    margin-left: 2rem;
}
/* END CRUSCOTTO STANZA */

/* NAVBAR */
#pagina .logo p {
    height: 60px;
    font-size: 53px;
    margin-left: 6%;
}
#pagina .menu {
    width: 30%;
}
#pagina .menu > ul {
    width: 100%;
    display: flex;
    display: -webkit-flex;
    justify-content: space-between;
    -webkit-justify-content: space-between;
}
#pagina .menu li.lingue li:first-of-type {
    width: 29.9px;
}
#pagina .menu li.lingue li:not(:first-of-type) {
    display: none;
}
#pagina .menu li.lingue:hover  li {
    display: block;
}
/* END NAVBAR */

/* VIDEO SECTION */
#pagina #videone-wrapper {
    position: static;
    height: 100vh;
    overflow: hidden;
}
#pagina #videone-wrapper {
    background-image: url(https://www.insidepalladio.irisfmg.com/palladio/immagini/spaccato_header-2000.jpg);
    background-size: cover;
    background-position: center 20%;
    transition: background-position 10s linear;
    -webkit-transition: background-position 10s linear;
    -moz-transition: background-position 10s linear;
    -o-transition: background-position 10s linear;
}

#pagina #videone-wrapper.versione-video {
	background-image:none;
}
.animate-videone {
    background-position: center 85% !important;
}
#pagina #videone-wrapper video {
    object-fit: cover;
    position: relative;
    z-index: -1;
}
#pagina .palla {
    width: 310px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
#pagina .freccia {
    position: absolute;
    bottom: .5%;
    left: 50%;
    transform: translateX(-50%);
}
/* END VIDEO SECTION */

/* DOPO IL VIDEO */
#pagina #dopo-il-video {
    padding-top: 7rem;
    padding-bottom: 3rem;
}
#pagina #dopo-il-video > div > p:last-of-type {
    padding: 0 20%;
    text-align: left;
}
/* END DOPO IL VIDEO */

/* EACH PEACE */
#pagina .really .sinistra {
    position: relative;
}
#pagina .really p.grosso {
    position: absolute;
    top: 20%;
    left: 10%;
}
#pagina .ciuffo {
    height: 526px;
    width: 741px;
    transform: translateY(85%);
    background-size: cover;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
}
#pagina .poltrona {
    height: 721px;
    margin-left: 3%;
    background-size: cover;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-position: 75%;
}
/* END EACH PEACE */

/* FULL BODY */
#pagina #full-body {
    margin-top: 400px;
    margin-bottom: 5rem;
}
#pagina #full-body h2.cubitale {
    text-align: center;
}
#pagina #full-body .gif,
#pagina #full-body .testi > div,
#pagina #full-body .testi .sinistra {
    display: flex;
    display: -webkit-flex;
}
#pagina #full-body .gif {
    position: relative;
}
#pagina #full-body .gif12 {
    display: flex;
    display: -webkit-flex;
    justify-content: space-between;
}
#pagina #full-body .gif12 .gif {
    justify-content: flex-end;
    -webkit-justify-content: flex-end;
}
#pagina #full-body .gif12 .destra .gif {
    margin-top: 25%;
}
#pagina #full-body .gif12 .sinistra .gif img {
    padding-left: 12%;
}
#pagina #full-body .gif12 .destra .gif img {
    padding-right: 12%;
}
#pagina #full-body .gif .sfondo-marrone {
    width: 100%;
    height: 85%;
    position: absolute;
    align-self: flex-end;
    -webkit-align-self: flex-end;
    z-index: -10;
}
#pagina #full-body .destra .sfondo-marrone,
#pagina #full-body .gif4 .sfondo-marrone {
    top: 0;
}
#pagina #full-body .sinistra .sfondo-marrone,
#pagina #full-body .gif3 .sfondo-marrone {
    bottom: 0;
}
#pagina #full-body .gif12 .testo {
    display: flex;
    display: -webkit-flex;
    justify-content: center;
}
#pagina #full-body .gif3 .gif img {
    width: 95%;
    padding-left: 5%
}
#pagina #full-body .gif4 .gif img {
    width: 95%;
    padding-right: 5%;
}
#pagina #full-body .testo,
#pagina #full-body .testi {
    margin-top: 2rem;
}
#pagina #full-body .testo p,
#pagina #full-body .testi p {
    margin: 0 0 3rem 4rem;
}
#pagina #full-body .testi .sinistra {
     margin-left: 5%;
}
#pagina #full-body .testi .destra {
    margin-left: 5%;
}
/* END FULL BODY */

/* TITOLO VIDEO */
#pagina .titolo-video {
    margin-bottom: 2rem;
}
#pagina .titolo-video h3 {
    font-weight: 600;
}
/* END TITOLO VIDEO*/

/* YOUTUBE IFRAME */
#pagina .video {
    margin-bottom: 5rem;
}
#pagina .video iframe {
    max-width: 100%;
    max-height: calc(100vw / 16 * 9);
    margin-bottom: -4px;
}
/* END YOUTUBE IFRAME */

/* INSIDE PALLADIO */
#pagina .inside-palladio {
    margin-bottom: 4rem;
}
#pagina .inside-palladio .block-wrapper {
    position: relative;
    height: 1000px;
}
#pagina .inside-palladio .block-wrapper > div:nth-of-type(2) {
    height: 40%;
}
#pagina .inside-palladio .block-wrapper > div:nth-of-type(3) {
    height: 60%;
}
#pagina .inside-palladio .block-wrapper .sfondo-marroncione .pulsante {
    display: flex;
    display: -webkit-flex;
    justify-content: center;
    -webkit-justify-content: center;
    align-items: baseline;
    -webkit-align-items: baseline;
}
#pagina .inside-palladio .block-wrapper .sfondo-marroncione .pulsante img {
    width: 320px;
    margin-top: 10%;
}
#pagina .inside-palladio .block-wrapper .immagine {
    width: 100%;
    height: calc(1280px / 16 * 9);
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
}
#pagina .inside-palladio .block-wrapper .immagine .foto-bg {
    background-size: cover;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-position: center;
    width: 100%;
    height: 100%;
}
#pagina .inside-palladio .block-wrapper .sfondo-marroncione img {
    position: relative;
    z-index: 10;
}
/* END INSIDE PALLADIO */

/* TACCHE */
#pagina .tacche {
    margin-bottom: 4rem;
}
#pagina .tacche img {
    width: 190px;
}
#pagina .tacca p {
    font-weight: 600;
}
/* END TACCHE*/

/* DOWNLOAD */
#pagina .download {
    margin-bottom: 4rem;
}
#pagina .download {
    text-align: center;
}
#pagina .download img {
    margin-bottom: 1.7rem;
}
/* END DOWNLOAD */

/* LOGO IN MEZZO */
#pagina .logo-in-mezzo {
    margin-bottom: 2rem;
}
#pagina .logo-in-mezzo .logo-palladio {
    margin-left: 2rem;
}
/* END LOGO IN MEZZO */

/* VAI ALLA PAGINA */
#pagina .vai {
    margin-bottom: 7rem;
}
/* END VAI ALLA PAGINA */

/* SCOPRI */
#pagina .scopri {
    padding-bottom: 5rem;
}
#pagina .scopri > div {
    justify-content: space-between;
    -webkit-justify-content: space-between;
}
#pagina .scopri .foto .foto-bg {
    background-size: cover;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
}
#pagina .scopri .testo {
    align-self: flex-start;
    -webkit-align-self: flex-start;
}
#pagina .scopri .testo:last-of-type {
    padding-left: 10px;
}
#pagina .scopri .link {
    align-self: flex-end;
    -webkit-align-self: flex-end;
    margin-right: 5%;
}
/* END SCOPRI */

/* FOOTER */
#pagina .footer {
    padding: 5rem 0;
}
#pagina .footer .boxato.stretto {
    display: flex;
    display: -webkit-flex;
}
#pagina .footer .boxato.stretto .sinistra {
    width: 80%;
    display: flex;
    display: -webkit-flex;
    flex-direction: column;
    -webkit-flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    -webkit-align-items: flex-start;
}
#pagina .footer .boxato.stretto .destra {
    width: 20%;
    display: flex;
    display: -webkit-flex;
    -webkit-flex-direction: column;
    justify-content: space-between;
}
#pagina .footer .boxato.stretto .sinistra img {
    padding-left: 3%;
}
#pagina .footer .boxato.stretto .destra a:first-of-type {
    margin-bottom: 4rem;
}
#pagina .footer .sinistra img {
    height: 110px;
}
#pagina .footer .destra img {
    height: 40px;
}
/* END FOOTER */


/********************************************************/
/* MEDIA QUERY */
@media (max-width: 500px) {
    /* full body */
    #pagina #full-body .gif12 .sinistra .gif img,
    #pagina #full-body .gif12 .destra .gif img {
        width: 80%;
    }
    /* logo in mezzo */
    #pagina .logo-in-mezzo > div {
        flex-direction: column;
        -webkit-flex-direction: column;
    }
    #pagina .logo-in-mezzo img {
        margin-bottom: 2rem;
    }
    #pagina .logo-in-mezzo .logo-palladio {
        margin-left: 0;
    }
    #pagina .full-body .sfondo-marrone {
        display: none;
    }
}
@media (max-width: 830px) {
    #pagina .footer .boxato {
        flex-direction: column;
        -webkit-flex-direction: column;
        align-items: center;
        -webkit-align-items: center;
    }
    #pagina .footer .boxato .sinistra,
    #pagina .footer .boxato .destra {
        align-items: center !important;
        -webkit-align-items: center !important;
    }
    #pagina .footer .boxato .sinistra,
    #pagina .footer .boxato .destra a {
        margin-bottom: 2rem !important;
    }
    #pagina .footer .boxato .sinistra img {
        padding-left: 0;
        margin-bottom: 2rem;
    }
}
@media (max-width: 900px) {
    /* inside palladio */
    #pagina .inside-palladio .block-wrapper {
        height: calc(100vw / 16 * 9 + 100px);
    }
    #pagina #inside-palladio .block-wrapper div:nth-of-type(2) {
        height: 0;
    }
    #pagina #inside-palladio .block-wrapper .immagine.boxato.stretto {
        top: 3%;
        left: 0;
        transform: unset;
    }
    #pagina #inside-palladio .block-wrapper .sfondo-marroncione {
        height: calc(100vw / 16 * 9 + 100px);
    }
    #pagina #inside-palladio .block-wrapper .pulsante {
        margin-top: 0;
        height: 100%;
        align-items: flex-end;
        -webkit-align-items: flex-end;
    }
    #pagina #inside-palladio .block-wrapper .pulsante img {
        margin-bottom: 2rem;
    }
}
@media (max-width: 1000px) {
    /* dopo il video */
    #dopo-il-video > div > div {
        align-items: center;
        -webkit-align-items: center;
        flex-direction: column;
        -webkit-flex-direction: column;
    }
    #dopo-il-video > div img {
        margin-bottom: 2rem;
    }
    /* really */
    #pagina .really .boxato.stretto,
    #pagina .really .sinistra > div,
    #pagina .really .sinistra > div p.grosso,
    #pagina .really .destra > div,
    #pagina .really .ciuffo,
    #pagina .really .poltrona {
        position: static;
        display: block;
        text-align: center;
        transform: translateY(0);
        width: 100%;
    }
    #pagina .really .sinistra > div {
        padding-top: 1rem;
    }
    #pagina .really .sinistra > div p.grosso,
    #pagina .really .ciuffo,
    #pagina .really .poltrona {
        margin-bottom: 3rem;
        margin-left: 0;
    }
    #pagina .really .destra {
        white-space: pre;
        white-space: -moz-pre-wrap;
        white-space: -o-pre-wrap;
    }
    /* full body */
    #pagina #full-body .gif12 .sinistra .gif img,
    #pagina #full-body .gif12 .destra .gif img {
        padding: 0 !important;
    }
    #pagina #full-body .testi > div {
        justify-content: center;
        -webkit-justify-content: center;
        flex-wrap: wrap;
        -webkit-flex-wrap: wrap;
    }
    #pagina #full-body .testi .sinistra,
    #pagina #full-body .testi .destra,
    #pagina #full-body .testi .sinistra p.medio,
    #pagina #full-body .testi .destra p.medio {
        margin: 0;
    }
    #pagina #full-body .testi .sinistra p.medio,
    #pagina #full-body .testi .destra p.medio {
        margin-bottom: 2rem;
    }
    #pagina #full-body .testo > div,
    #pagina #full-body .testi > div {
        flex-direction: column;
        -webkit-flex-direction: column;
        align-items: center;
        -webkit-align-items: center;
    }
    /* inside palladio */
    #pagina #inside-palladio .foto-bg {
        background-size: cover;
        -webkit-background-size: cover;
        -moz-background-size: cover;
        -o-background-size: cover;
        height: calc(100vw / 16 * 9);
    }
    /* scopri */
    #pagina .scopri > div {
        flex-direction: column;
        -webkit-flex-direction: column;
    }
    #pagina .scopri > div .foto-bg {
        background-size: cover;
        -webkit-background-size: cover;
        -moz-background-size: cover;
        -o-background-size: cover;
        background-position: center;
    }
    #pagina .scopri > div > div:first-of-type {
        margin-bottom: 3rem;
    }
}
@media (max-width: 1200px) {
    /* really */
    #pagina .really .ciuffo {
        width: 100%;
        background-position: 30%;
    }
    /* full-body */
    #pagina #full-body .gif12 {
        flex-direction: column;
        -webkit-flex-direction: column;
    }
    #pagina #full-body .gif12 .gif {
        justify-content: center;
        -webkit-justify-content: center;
        margin-top: 0 !important;
    }
    /* tacche */
    #pagina .tacche > div {
        flex-wrap: wrap;
        -webkit-flex-wrap: wrap;
    }
    /* download */
    #pagina .download > div {
        flex-direction: column;
        -webkit-flex-direction: column;
        align-items: center;
        -webkit-align-items: center;
    }
    #pagina .download > div a:first-of-type {
        margin-bottom: 2rem;
    }
    /* footer */
    #pagina .footer .boxato {
        justify-content: space-between;
    }
    #pagina .footer .boxato .destra {
        width: unset !important;
        white-space: nowrap;
    }
}
/* END MEDIA QUERY */
