
@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&family=Work+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* font-family: 'Merriweather', serif; */
/* font-family: 'Work Sans', sans-serif; */

*{
    box-sizing: border-box;
}
body{
    overflow-y:scroll;
}

:root{
    --main: #007bff;
    --classy1: #444655;
    --classy2: #A8AABC;
    --classy3: #F12E5E;
    --classy4: #B10031;
}

.ftitle, h1,h2,h3,h4,h5,.site-navbar ul, button, a, .addeventatc{
    font-family: 'Work Sans', sans-serif !important;
    font-weight: 500;
}
.fcontent,p,label{
    font-family: 'Merriweather', serif !important;
    font-weight: 300 !important;
    color:#000;
}
div{
    font-family: 'Merriweather', serif !important;
    /* font-weight: 300 !important; */
    color:#000;
}
a{
    color:var(--main);
}

footer{
    width:100%;
    margin:0;
    margin-top:30px;
    padding:30px;
    color:#fff;
    background-color: var(--classy1);
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-direction: column;

}

footer div{
    text-align: left;
    line-height: 36px;
    color:#fff !important;
}

footer a{
    font-weight: bold;
    color: var(--classy3);
    cursor: pointer;
    /* text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; */
    /* -webkit-text-stroke: 0.5px; */
    /* -webkit-text-stroke-color: #fff; */
}
footer a:hover{
    color: var(--classy4);
}

.prc{
    position: relative;
    width:60%;
    margin-top:20px;
    margin-left:20%;

}
.prc img{
    width:100%;
}

.corpo{
    position:relative;
    width:76%;
    margin-top:15%;
    margin-left:12%;
}
.corpo img{
    width:100%;
}
.corpo span{
    color:#ab0702;
}

.volantini{
    width:100%;
    margin:0;
    text-align:center;
    vertical-align:top;
}

.affiancate{
    display:inline-block;
    max-width:30%;
    vertical-align:top;
    margin:20px;
}



#bg-full_screen{
    position: relative;
    top:0;
    left:0;
    width:100%;
    height:100vh;
    margin:0;
    padding: 0;
    background-image: url("../template/top_view_roverchiara.jpg");
    background-size: cover;
    background-position: center center;
    background-repeat:no-repeat;
}
#bg-full_screen #title{
    position: relative;
    display: inline-block;
    z-index:10;
    margin-top:calc(50vh - 32px);
    width: 100%;
    text-align: center;
    color:#fff;
    font-weight: bold;
    font-size:5vw;
}
#bg-full_screen #down-arrow{
    position: relative;
    width:48px;
    margin:auto auto;
    margin-left:calc(50% - 24px);
    margin-top:40px;
    z-index:15;
    filter: invert(1);
    cursor: pointer;
    transition: all .2s;
}
#bg-full_screen #down-arrow:hover{
    transform: scale(1.2);
    transition: all .2s;
}

.mb-0.site-logo{
    margin-top:5px;
    margin-bottom:5px !important;
    padding:5px;
    background-color: #fff;
    border-radius: 33px;
    width: 180px;
}
.mb-0.site-logo img{
    height:56px;
    aspect-ratio: auto;
}

.not-home{
    background-color: var(--classy1);
}
.site-navbar.not-home{
    position: relative !important;
}

.contenitore{
    position: relative;
    margin-top: 100px;
}

.opacizer{
    position: absolute;
    top:0;
    left:0;
    width:100%;
    height:100vh;
    /* background-color: #40404040; */
    background: rgb(32,32,32);
    background: -moz-linear-gradient(180deg, rgba(32,32,32,0.6) 0%, rgba(255,255,255,0.30015756302521013) 100%);
    background: -webkit-linear-gradient(180deg, rgba(32,32,32,0.6) 0%, rgba(255,255,255,0.30015756302521013) 100%);
    background: linear-gradient(180deg, rgba(32,32,32,0.6) 0%, rgba(255,255,255,0.30015756302521013) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#202020",endColorstr="#ffffff",GradientType=1);
    backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
    z-index: 5;
}

.site-navbar{
    /* background-color: #10421080; */
    top:0 !important;
    z-index: 10;
}
.site-navbar li, .site-navbar li a{
    text-transform: capitalize;
}

.inline{
    width:24px;
    display: inline;
    margin:0;
    margin-right:5px;
    margin-top:-3px;
}

.contenitore{
    text-align: center;
}

.calendar{
    width:80%;
    margin:40px 10%;
    padding: 0;
}
.calendar .event{
    display: flex;
    flex:2;
    flex-basis: 100%;
    min-height:200px;
    margin-bottom: 30px;
    border:1px solid #202020;
    border-radius:4px;
}
.calendar .event:nth-child(even){
    background-color: #d9d9d8;
}
.calendar .event:nth-child(odd){
    background-color: #f8f8f8;
}
.calendar .event .date{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 200px;
    background-color: #202020;
    color:#fff;
    padding:4px;
}
.calendar .event .description{
    display: flex;
    align-items: left;
    justify-content: left;
    flex-direction: column;
    text-align: left;
    width: calc(100% - 400px);
    color: #202020;
    padding:4px;
    padding-left: 20px;
}
.calendar .event .description p{
    color: #000;
    font-weight: normal;
}
.calendar .event .description b{
    font-weight:700 !important;
}
.calendar .event .description span{
    color: #404040;
    font-weight: normal;
    font-size: 14px;
    font-style: italic;
}

.calendar .event .img_section{
    width: 200px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    align-content: center;
    flex-wrap: wrap;
    flex-grow: 1;
}

.calendar .event .img_section .foto{
    /* max-width:48px; */
    max-height:100px;
    max-width:90px;
    margin:4px;
    transition: all 0.2s;
}
.calendar .event .img_section .foto:hover{
    transform: scale(1.1);
    transition: all 0.2s;
}

.calendar .event .description .addeventatc{
    width:fit-content;
    background-color: var(--classy3);
    color:#fff !important;
    margin-top: 20px;
    margin-right: 20px;
    display: inline-block;
    line-height: 20px;
}
.addeventatc{
    z-index:20 !important;
    font-weight:normal !important;
}
.addeventatc .addeventatc_icon{
    filter:invert(1);
}


.festa .row, .contatti .row{
    width:100%;
    min-height:400px;
    height:auto;
    display:flex;
    flex:2;
    flex-direction: row;
    box-sizing: border-box !important;
    margin: 50px 0;
}
.festa .row .photo, .contatti .row .photo{
    width:40%;
    background-size: cover;
    background-position: center center;
    background-repeat:no-repeat;
    min-height: 400px;
}
.festa .row .caption, .contatti .row .caption{
    width:60%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: justify;
    padding: 4.5em 8em;
}
.contatti .row .caption{
    padding-top:10px;
    align-items: flex-start;
    justify-content: left;
}
.festa .row .caption p, .contatti .row .caption p{
    color:#202020;
    font-weight:normal;
    line-height:1.8em;
}
.festa .row .caption p::first-letter{
    initial-letter: 2;
    margin-right: 6px;
}

.map{
    /* border-radius: 6px; */
    width:100%;
}

.percorso .row{
    width: 100%;
    display: table-row;
    /* align-items: flex-start;
    justify-content:left;
    flex-direction: row; */
    margin:0;
    box-sizing: border-box;
}
.percorso .row .primary_image{
    display: table-cell;
    width:40%;
    min-height:400px;
    background-size: cover;
    background-position: center center;
    background-repeat:no-repeat;
    box-sizing: border-box;
}
.percorso .row .contenuto{
    display: table-cell;
    width:60%;
    text-align: left;
    padding:0 4em;
    box-sizing: border-box;
}
.percorso .row .contenuto .info div{
    margin-bottom: 10px;
    font-weight: 600;
}
.percorso .row .contenuto .info img:not(.percorso .row .contenuto .info button img){
    margin-right: 20px;
}
.percorso .row .contenuto p{
    color:#000;
    font-weight:normal;
    padding: 4em;
    padding-left:0;
    text-align: justify;
    line-height: 1.8em;
}
.percorso .row .contenuto .descrizione p::first-letter{
    initial-letter: 2;
    margin-right: 10px;
}

.flexbox{
    display: flex !important;
}

.gallery{
    width:100%;
    margin:2em 0;
    text-align:center;
}
.gallery .contenuto{
    background-color: var(--classy4);
    height:auto;
    box-shadow: 0px 1px 5px #00000090;
    color: #fff;

    font-weight: normal;
    width:90%;
    margin:10px auto;

    display: none;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: row;
    flex-grow: 1;

    border-radius: 0 0 6px 6px;

}
.gallery .contenuto h2{
    color:#fff;
    width:100%;
    margin-top:30px;
}
.gallery .contenuto p{
    color:#fafafa;
    width:80%;
    margin:2em 10%;
    clear: both;
    text-align: justify;
}
.gallery .box_images{
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap:20px;
    margin-bottom: 20px;
    width:90%;
}
.gallery .box_images img{
    width:20%;
    max-width:128px;
    flex-grow: 1;
}
/* .gallery .box_images .colonna{
    display:flex;
    flex-direction: column;
    width:24.5%;
}
.gallery .box_images .colonna img{
    width:100%;
    margin-bottom:15px;
} */
#full_screen-container{
    height: 100vh!important;
    width: 100vw;
    background-color: #202020f0;
    display: none;
    z-index: 1000;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
}
.image_section{
    height: 100%;
    width: 100%;
    z-index: 9999;
    margin: 0 auto;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.arrows{
    display: flex;
    justify-content: center;
    align-items: center;
    width:15%;
    height:100vh;
}
.arrows div{
    background-color: var(--main);
    border-radius: 50%;
    padding:3px;
    width: 38px;
    aspect-ratio: 1/1;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 0px 5px #000;
    transition: all .2s;
    background-image: url("../template/animated-down-arrow.svg");
    background-position: center center;
    background-size: 32px 32px;
    background-repeat: no-repeat;
    cursor:pointer;
}
.preview{
    cursor:pointer;
}
#prev{
    transform: rotate(90deg);
}
#prev:active{
    transform: rotate(90deg) translate(2px,0);
}
#next{
    transform: rotate(-90deg);
}
#next:active{
    transform: rotate(-90deg) translate(-2px,0);
}

/* .gallery .contenuto img{
    width: calc(100% / 7);
    border-radius: 2px;
    margin: 10px;
    transition: all .2s;
}
.gallery .contenuto img:hover{
    transform: scale(1.2);
    transition: all .2s;
} */

.contenitore.home{
    text-align: left;
}

.sponsors-list{
    width:95%;
    margin: 0 auto;
}
.sponsors-list .category{
    width: 100%;
    margin:60px 0;
    text-align: center;
}
.sponsors-list .category h2{
    background-color:var(--classy1);
    padding:0 5px;
    border-radius: 6px;
    color:#fff;
    line-height:48px;
}
.sponsors-list .category .items{
    width:100%;
    display:flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.sponsors-list .category .items .item{
    display: none;
    background-color: #f0f0f0;
    border-radius: 8px;
    box-shadow:0px 1px 3px #666666aa;
    flex-direction: column;
    flex-wrap: wrap;
    /* flex: 1 0 200px; */
    flex: 0 1 calc(25% - 20px); /* 4 per riga con gap di 20px */
  box-sizing: border-box;
  max-width: calc(25% - 20px);
    transition: all .4s;
}
.sponsors-list .category .items .item:hover{
    flex-grow: 2;
    transition: all .2s;
}
.sponsors-list .category .items .item .bgimage{
    width:100%;
    min-height:250px;
    background-position: center center;
    background-size: contain;
    background-color: #fff;
    background-repeat: no-repeat;
    border-radius: 8px;
}
.sponsors-list .category .items .item .caption{
    width:100%;
    text-align: left;
    padding:10px;
}
.sponsors-list .category .items .item .caption h5{
    color:var(--classy3);
}
.sponsors-list .category .items .item .caption div{
    width: 100%;
    margin: 0;
    margin-top:5px;
    margin-bottom:8px;
}

.for_navigation{
    width:95%;margin:0 auto; margin-bottom:10px;text-align:left;
}

#global_search{
    width:100%;
    margin-top:20px;
    border:2px solid var(--classy2);
    border-radius: 6px;
}
#global_search input{
    width:calc(100% - 32px);
    padding:8px;
    border:0;
    background-color: #fff;
    outline: none;
}
#global_search:focus-within{
    border:2px solid var(--classy1);
}
#global_search img{
    margin-right:8px;
    pointer-events: none; /*!not draggable*/
}

@media screen and (max-width: 850px){
    .affiancate{
        display:block;
        margin-bottom:5px;
        max-width:94%;
        margin-left:3%;
    }

    .site-navbar .site-logo img{
        height:42px;
    }
    .mb-0.site-logo{
        width:140px;
    }

    .contenitore{
        max-width: 94%;
        margin-left:3%;
        margin-top:40px;
    }

    .to_column{
        display: block !important;
        width:100% !important;
        margin-left:0;
        margin-right:0;
    }
    .contatti .caption.to_column{
        padding:0 !important;
    }
    .festa .row .caption.to_column, .percorso .row .contenuto, .percorso .row .contenuto p{
        padding:1em 4px;
    }
    .gallery .contenuto p{
        width: 100%;
        margin: 1em 10px;
    }
    /* .gallery .contenuto img{
        width: calc(100% / 4 - 10px);
        margin:1px;
    } */
    .gallery .pulsanti button{
        display: inline-block;
        clear:both;
        margin-bottom:10px;
    }

    .percorso .row .info{
        background-color:var(--classy1);
        color: #fff;
        border-radius:4px;
        padding:1em;
    }
    .percorso .row .info img:not(.percorso .row .info .primary_button img){
        filter: invert(1);
    }
    .percorso .row .info .primary_button{
        background-color: #e3ecf5;
    }
    .percorso .row .info div:last-child{
        margin-bottom:0;
    }
    .percorso .row .primary_image{
        min-height: 250px;
    }
    .contenitore.home{
        text-align: center;
        width:100%;
    }
    .percorso .row .contenuto .info div{
        color:#fff;
    }

    .gallery .contenuto p{
        font-size:14px;
    }

    .calendar .event .description .addeventatc{
        clear:both;
        margin-bottom:20px;
    }
}