/*
Theme Name: Un ponte aereo per l'Europa
*/

* { 
    -moz-box-sizing: border-box; 
    -webkit-box-sizing: border-box; 
    box-sizing: border-box; 
}

html, body, div, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, ol, ul, li, form, table, header, footer, nav, section, figure { 
    margin: 0; 
    padding: 0; 
} 

header, footer, nav, section, article, hgroup, figure {
    display: block;	
}
html{
    position: relative;
    max-width: 100vw;
    overflow-x: hidden;
}
body {
    font-family: 'Overpass', sans-serif;
    background-color: #ddeef8;
    color: #454545;
    width: 100vw;
    overflow: hidden;
}
h2{
    font-size: 24px;
    line-height: 1.25;
    margin-bottom: 10px;
}

h3{
    line-height: 1.3;
    margin-bottom: 10px;
}

a {
    font-style: normal;
    text-decoration: none;
    color: #454545;
    font-size: 16px;
}

ul {
    list-style-type: none;
    display: flex;
}

ul li {
    padding: 0 1.5vw 0 0;
}

img {
    max-width: 100%;
    /*    height: auto;*/
}

p{
    margin-bottom: 20px;
}

header .container {
    text-transform: uppercase;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding:0 15px;
}

@media (min-width: 480px) {
    .container {
        padding:0 1.5vw;
    }
}



.header-menu {
    padding-top: 20px;
}

.header-menu nav {
    display: flex;
    align-items: stretch;
    margin-top: 0;
    font-weight: 800;
}



.header-menu nav ul {
    margin-top: 5vw;
}

.header-menu nav ul li {
    flex-basis: auto;
    padding-right: 4vw;
    display: flex;
    align-items: center;
}

.header-menu nav ul li a {
    font-size: .85em;    
    line-height: 1;
}

.header-menu nav ul li.current-menu-item a {
    color: #26567a;
}



.wp-block-embed__wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
}

.wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}




@media (min-width: 425px) {
    .header-menu nav ul {
        margin-top: 3vw;
    }

    .header-menu nav ul li {
        padding: 0 3vw;
    }

    .header-menu nav ul li a {
        font-size: 1em;
    }
}

@media (min-width: 992px) {
    .header-menu {
        display: flex;
        justify-content: space-between;
        align-items: stretch;
        padding-top: 0;
    }


    .header-menu nav
    {
        flex-grow: 1;
        display: flex;
        justify-content: flex-end;
    }

    #logo{
        flex-shrink: 1;
        padding-top: 20px;
    }
    .header-menu nav ul {
        margin-top: 0;
        margin-left: 5vw;
    }
    .header-menu nav ul li{
        position: relative;
        display: flex;
        align-items: flex-end;
    }
    .header-menu nav ul li a{
        font-size: 1.1em;
        white-space: nowrap;
    }

    .header-menu nav ul li a:hover {
        color: #26567a;
    }

    .header-menu nav ul li.current-menu-item a:after {
        content: '';
        position: absolute;
        top:0;
        left: 0;
        width: 100%;
        height: 12px;
        background-color: #26567a;
    }

}





@media (min-width: 768px) {

    .header-menu nav ul li {
        flex-basis: auto;
    }
}

@media (min-width: 1200px) {
    .header-menu nav,
    .header-menu nav ul {
        width: auto;
    }

    .header-menu nav {
        margin-left: 1vw;
    }

    .header-menu nav ul {
        margin-top: 0;
    }

    .header-menu nav ul li {
        padding: 0 2vw;
        display: flex;
        align-items: flex-end;
    }
}

/*
main.home {
background: #ddeef8 url(images/bgimage_mobile.png) no-repeat 50% 0;
background-size: 100% 100%;
height: 831px;
max-width: 1440px;
}

@media (min-width: 480px) {
main.home {
background-size: 80% 100%;
}
}

@media (min-width: 640px) {
main.home {
background: #ddeef8 url(images/bgimage_desktop.png) no-repeat 0 0;
height: 753px;
}
}
*/

main {
    background-color: transparent;
    padding-top: 35px;
    /*margin: 0 auto;
    max-width: 992px;*/
}

.content{
    margin: 0 auto;
    max-width: 992px;
}

.contentNarrow{
    margin: 0 auto;
    max-width: 640px;

}

main.home {
    position: relative;
    z-index: -999;
    min-height: 50vh;
}

/* Commentato per risolvere il problema del menu' non cliccabile a width 1000px
main.page {
margin-top: -40px;
}
*/

@media (min-width: 1200px) {
    main.page {
        margin-top: 0;
    }
}

main.home img#bgimg {
    width: 100%;
    height: auto;
}




main .content {
    font-size: 18px;
    font-weight: 400;
    padding: 0 15px;
    position: relative;
}

.contentnarrow{
    padding: 0 15px;    
}

@media (min-width: 480px) {
    main .content {
        padding: 0 25px;
    }

    .contentnarrow{
        padding: 0 25px;    
    }
}

/*
main.home .content {
font-size: 1em;
font-weight: 800;
position: absolute;
top: 440px;
}
*/

.panelWrap{
    padding: 30px 0;
    /*border-top: 1px solid #454545;*/

}
.panel{
    display: block;
    padding: 30px 0;
    position: relative;
    border-bottom: 1px solid #454545;
}

/*
.panel:before{
content: '';
position: absolute;
width: 275px;
height: 200px;
border-top: 5px dotted #28587c;
border-radius: 167% 115% 145% 30%;
}
*/


.panel__img{
    width: 250px;
    overflow: hidden;

    border-radius: 50%;
}


/*
.panel:nth-child(3n+1) .panel__img, .thumb:nth-child(3n+1) a{
border-top-left-radius: 75%;
border-top-right-radius: 40%;
border-bottom-left-radius: 70%;
border-bottom-right-radius: 82%;
}


.panel:nth-child(3n+2) .panel__img, .thumb:nth-child(3n+2) a{
border-top-left-radius: 52%;
border-top-right-radius: 88%;
border-bottom-left-radius: 112%;
border-bottom-right-radius: 102%;
}


.panel:nth-child(3n+3) .panel__img, .thumb:nth-child(3n+3) a{
border-top-left-radius: 100%;
border-top-right-radius: 89%;
border-bottom-left-radius: 105%;
border-bottom-right-radius: 73%;
}
*/





.panel__txt h3{
    color: #26567c;
    font-size: 22px;
    line-height: 1.4;
    text-decoration: underline;
    max-width: 45ch;
}
.panel__txt p{
    font-weight: 300;
    max-width: 60ch;
}
.panel__txt .subtitle{
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    margin: 5px 0 15px 0;
    max-width: 45ch;
}

.panel__txt .link{
    display: inline-block;
    margin-top: 10px;
    font-size: .9em;
    color: #FFF;
    padding: 5px 20px;
    border-radius: 30px;
    margin-top: 15px;
    background-color: #26567c;
}

.gallery{
    background-color: #ddeef8;
}




@media(max-width:767px){

    /*
    .gallery-wrap{
    overflow: hidden;
    height: 200px;
}
    */
    .gallery-wrap{
        margin-top: 20px;
    }

    .gallery{
        /* overflow-x: scroll;
        display: flex;
        */
        /*
        display: grid;
        grid-template-columns: 45% 45%;
        padding: 30px 0;
        */

        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 0 15px;
    }


    .thumb{
        flex-basis: 30%;
        max-width: 30%;
        /*        max-height: 200px;*/
        /* flex-basis: 200px;*/
        /*
        margin: 10px 20px;
        flex-shrink: 0;
        */
        padding-bottom: 20px;
    }

    /*
    .thumb:nth-child(2){
    margin-top: 20px;        
}

    .thumb:nth-child(3) img, .thumb:nth-child(6) img{
    max-width: 100px;
    max-height: 100px;
}

    .thumb:nth-child(4){
    margin-left: 0;
    margin-right: -10%;
}

    .thumb:nth-child(5){
    margin-top: -20px;
}

    .thumb:nth-child(7){
    margin-left: 20%;
    margin-right: -10%;
}
    */

}

@media(max-width:500px){
    .thumb{
        flex-basis: 47%;
        max-width: 47%;
    }
}


@media(min-width:768px){

    main {
        padding-top: 75px;
    }
    .gallery{
        display: grid;
        grid-template-columns: 20% 20% 20% 20% 20% ;
        grid-template-rows: 200px 50px 1fr 50px 1fr 50px 1fr;
        padding: 0 10vw;
        margin: 30px auto 0 auto;
    }

    .thumb{
        max-width: 275px;
        justify-self: center;
    }

    .thumb{
        max-width: 275px;
        justify-self: center;
    }

    .thumb:nth-child(1){
        grid-column: 2/4;
        grid-row: 2/4;
        margin-right: 40%;
        margin-left: -75%;
        margin-top: -100px;
    }

    .thumb:nth-child(2){
        grid-column: 3;
        grid-row: 3;
    }

    .thumb:nth-child(3){
        grid-column: 4;
        grid-row: 1;
        margin-top: 25px;
    }

    .thumb:nth-child(3) img{
        max-width: 175px;
    }

    .thumb:nth-child(4){
        grid-column: 5;
        grid-row: 3;
        margin-left: 15%;
    }

    .thumb:nth-child(5){
        grid-column: 1;
        grid-row: 5;
        margin-top: -40px;
    }

    .thumb:nth-child(6){
        grid-column: 4/6;
        grid-row: 4/6;
        margin-left: -20%;
        margin-right: -10%;
        margin-top: -40px;
    }

    .thumb:nth-child(7){
        grid-column: 3;
        grid-row: 6;
        margin-top: -75px;
        margin-left: -60%;
        margin-right: 30%;
        margin-top: -100px;
    }

    .thumb:nth-child(7) img{
        max-width: 175px;
    }

}





.thumb a{    
    display: block;
    overflow: hidden;
    /*    background: linear-gradient(to right bottom, #454990, #6bad91);*/

}

.thumb img{    
    object-fit: cover;
}



@media(min-width:992px){

    .thumb:nth-child(5), .thumb:nth-child(6){
        margin-top: 0;
    }

    .thumb:nth-child(7){
        margin-top: -75px;
    }


    .panel:hover .panel__img{
        background-color: #26567a;

        box-shadow: 5px 5px 10px 0 rgba(0,0,0,.15);
        transition: all 1s ease;
    }

    .panel:hover .panel__img img{
        mix-blend-mode: luminosity;
        transition: all 1s ease;
    }

    .thumb a:hover{    
        /*    mix-blend-mode: hard-light;*/

        background-color: #26567a;
        box-shadow: 5px 5px 10px 0 rgba(0,0,0,.15);
    }

    .thumb a:hover img{    
        mix-blend-mode: luminosity;
        /*    mix-blend-mode: hard-light;*/
    }

}



@supports(object-fit: cover){
    .panel__img{
        height: 250px;
    }
    .panel__img img{   
        object-fit: cover;
        height: 100%;
    }
}


@media(max-width:639px){
    .panel{
        text-align: center;
        max-width: 600px;
        margin: 0 auto;
    }

    .panel__img{ 
        margin: 0 auto 20px auto;
    }

    .panel__txt .link{
        margin-top: 20px;
    }
}

@media(min-width:640px){
    .panel{
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .panel__txt {
        padding: 25px 0;
    }

    .panel__img{
        flex-shrink: 0;
        margin: 0 30px 0 0;
    }
    /*
    .panel:nth-child(even){
    justify-content: flex-end;

}
    */

    .panel:nth-child(even) .panel__img{
        order: 2;
        margin: 0 0 0 30px;
    }
}

@media(max-width:767px){

    .home-txt{
        margin-top: 100px;
    }
}

@media(min-width:768px){
    main {
        padding-top: 100px;
    }

    .home-txt{
        font-size: 1.4em;
        line-height: 1.2;
    }
}


@media(min-width:992px){
    main:not(.home){
        position: relative;
    }



    main:not(.home):after{
        content:'';
        width: 18vw;
        height: 16vw;
        position: absolute;
        top: 75px;
        left: 4vw;
        background: url(images/aereo.png) no-repeat 0 0;
        background-size: 16vw;
        transform: translateX(50%);
    }

}




section#prefooter img {
    width: 100%;
    height: auto;
}

/*
section#prefooter {
background: #ddeef8 url(images/footer_mobile.png) no-repeat 50% 0;
height: 204px;
background-size: cover;
}

@media (min-width: 321px) {
section#prefooter {
background: #ddeef8 url(images/footer_desktop.png) no-repeat 0 0;
height: 487px;
background-size: cover;
}
}
*/

footer {
    background-color: #fff;
    padding: 50px 0;
/*    padding: 50px 15px;*/
}
/*
@media (min-width: 768px) {
    footer {
        padding: 50px 50px;
    }
}


@media (min-width: 1024px) {
    footer {
        padding: 50px 200px;
    }
}
*/

footer p {
    margin-bottom: 25px;
}

footer p {
    margin-top: 70px;
    text-align: center;
}

footer p:nth-of-type(1) {
    margin-top: 0;
}


footer p {
    text-align: left;
}


footer ul {
    flex-wrap: wrap;
    justify-content: space-between;
}

footer ul#thankyou {
    align-items: center;
}

footer ul li {
    flex-basis: 48%;
    text-align: center;
}


@media (min-width: 640px) {
    footer ul li {
        flex-basis: 31%
    }
/*

    footer ul#sponsor li {
        flex-basis: 25%;
    }

    footer ul#thankyou li {
        flex-basis: 12%;
        margin: 0;
    }
*/
}

@media (min-width: 1024px) {
    footer ul#partner li {
        flex-basis: 20%;
    }

    footer ul#sponsor li, footer ul#thankyou li{
        flex-basis: 14%;
    }

}

@media (min-width: 1440px) {
    footer ul {
        flex-wrap: nowrap;
    }
}

footer ul li:last-of-type {
    padding-right: 0;
}

footer ul li img {
    max-width: 100%;
    max-height: 100%;
}

.page ul {
    display: block;
    list-style-type: disc;
    margin-left: 15px;
}

@media (min-width: 480px) {
    .page ul {
        margin: 1.5em;
    }
}

.page ul li {
    padding-left: .5em;
}

.page strong {
    font-weight: 900;
}

.centered-text {
    padding: 1em 0;
    font-size: 16px;
}

.bordered-text{
    border-bottom: 1px solid #454545;

}
div.bordered-text{
    padding: 25px 0 50px 0;    
}

.centered-text p {
    margin: 1.5em 0;
}

.centered-text p a {
    text-decoration: underline;
}

@media (min-width: 426px) {
    .centered-text {
        padding: 1em 8vw;
    }
}

h1 {
    font-size: 24px;
    padding-bottom: 20px;
    font-weight: 900;
    text-align: left;
    text-transform: uppercase;
}



@media (min-width: 480px) {
    h1 {
        text-align: center;
    }
}

h4 {
    font-size: 18px;
    line-height: 1.3;
    font-weight: 900;
}

h4.evento {
    margin: 0 0 1em 0;
    text-transform: uppercase;
}

h5 {
    font-size: 1.1em;
    font-weight: 900;
    margin: .26em 0;
}

h6 {
    font-weight: 900;
    font-size: 1em;
    margin-top: 1em;
}

table tr {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #454545;
    padding-top: 25px;
}

table tr td {
    width: 100%;
    vertical-align: baseline;
}

table tr td p {
    line-height: 1.4em;
}

@media (min-width: 425px) {
    table tr {
        display: block;
    }

    table tr td {
        width: 35%;
    }

    table tr td:nth-of-type(2) {
        width: 64%;
    }

    h4.evento {
        margin: 0;
    }
}

table table tr{
    border-bottom: none;
    padding-top: 0;
}

table table tr td{
    width: inherit;
    font-size: 15px;
}

table table tr td:first-child{
    font-weight: bold;
    width: 100px;
}

table table tr td:nth-of-type(2) {
    width: inherit;
}

.candies {
    position: absolute;
    top: -80%;
    max-width: 100vw;
}

.candies img{
    position: absolute;
}


#candy-1 {
    left: 56%;
    z-index: 1;
}

#candy-2 {
    left: 45%;
    z-index: -5;
}

#candy-3 {
    left: 18%;
    z-index: 1;
}

#candy-4 {
    left: 18%;
    z-index: -5;
}

#candy-5 {
    left: 78%;
    z-index: -5;
}

.plane-1 {
    z-index: -5;
}

.plane-2 {
    z-index: -2;
}

.plane-3 {
    z-index: -3;
}




@media(max-width: 767px){
    .planes img {
        position: absolute;

    }

    .plane-1 {
        top: 2%;
        right: -30px;
        max-width: 175px;
    }

    .plane-2 {
        max-width: 300px;
        left: -50px;
        bottom: -5%; 
    }

    .plane-3 {
        max-width: 150px;
        right: 0;
        bottom: 20%; 
    }
}

@media(max-width: 400px){   

    .plane-2, .plane-3 {
        display: none;
    }
}

@media(min-width: 768px){
    h1 {
        font-size: 2em;
        padding-bottom: 50px;
    }
    h4 {
        font-size: 22px;
    }

    .planes{
        display: flex;
        justify-content: space-around;
    }
    .planes > div{

        text-align: center;
    }
    .plane-1 {
        max-width: 235px;
        margin-left: 10vw;
        /*
        top: 10%;
        right: 80vw;
        */
    }

    .plane-2 {
        max-width: 160px;
        /*
        top: 15%;
        left: 40vw;
        */
    }

    .plane-3 {
        max-width: 380px;
        /*

        top: 5%;
        right: 5vw;
        */
    }
}


