:root{
    --lightblue: #25bac2;
    --blue: #00353e;
    --lightgreen: #33cc99;
    --green: #044504;
    --gold: #c6a664;
    --brown: #513e16;
    --grey: #4d5156;
}
.bck_lightblue{
    background-color: var(--lightblue);
}
.bck_blue{
    background-color: var(--blue);
}
.bck_lightgreen{
    background-color: var(--lightgreen);
}
.bck_green{
    background-color: var(--green);
}
.bck_gold{
    background-color: var(--gold);
}
.bck_brown{
    background-color: var(--brown);
}
.grey{
    color: var(--grey);
}
body{
    font-family: 'Mulish-Regular';
    background-color: #f5f5f5;
}
h1,h2,h3,h4,h5,h6,b,strong{
    font-weight: normal;
    font-family: 'Mulish-Bold';
}
.w_def{
    width: 98%;
    margin: auto;
}
.link{
    color: #0000ff;
    text-decoration: underline;
}
.description{
    line-height: 22px;
}
.fs_regular{
    font-family: 'Mulish-Regular';
}
/********** HEADER *********/
header{
    font-family: 'Mulish-Medium';
    font-size: 15px;
    z-index: 30;
}
header .search_box{
    position: relative;
    font-size: 16px;
}
header .search_box .content{
    width: 100%;
    height: 44px;
    display: grid;
    background-color: white;
    border-radius: 90px;
}
header .search_box .content.eventi{
    grid-template-columns: 10% 35% 10% 35% 10%;
}
header .search_box .content.ricette{
    grid-template-columns: 10% 80% 10%;
}
header .search_box img{
    width: 100%;
    max-width: 24px;
}
header .search_box .content > div{
    display: flex;
    justify-content: center;
    align-items: center;
}
header .search_box .wrap_ico{
    cursor: pointer;
    padding: 5px;
}
header .search_box .content > div:first-of-type, 
header .search_box .content > div:first-of-type input
{
    border-top-left-radius: 90px;
    border-bottom-left-radius: 90px;
}
header .search_box .wrap_ico:last-of-type{
    background-color: #00353e;
    border-top-right-radius: 90px;
    border-bottom-right-radius: 90px;
}
header .search_box input{
    width: 100%;
    height: 100%;
    padding: 5px;
    font-size: inherit;
    font-family: inherit;
    border: 0;
    outline: none;
}
header .radius{
    color: white;
    border-radius: 20px;
    border: 1px solid white;
}
header .custom_menu{
    cursor: pointer;
}
header .custom_menu img{
    width: 20px;
    vertical-align: middle;
    align-self: center;
    transition: 400ms ease;
}
header .custom_menu .menu{
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    padding: 10px 1vw;
    z-index: 10;
    color: #00353e;
    font-size: 19px;
    box-shadow: 0 0 20px rgba(0, 0, 0, .2);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: 400ms ease;
}
header .custom_menu.active .menu{
    clip-path: polygon(0 150%, 150% 100%, 100% 0, 0 0);
}
header .custom_menu.active img{
    transform: rotate(-180deg);
}
header .custom_menu .menu ul{
    list-style-type: none;
    display: flex;
    align-content: center;
    justify-content: center;
    flex-flow: row wrap;
    column-gap: 30px;
    row-gap: 10px;
}
header .custom_menu .menu ul li{
    display: flex;
    align-content: center;
    justify-content: center;
    flex-flow: row wrap;
}
header .custom_menu .menu ul li a{
    padding: 5px 10px;
    margin: 5px 0;
    border-radius: 20px;
    border: 1px solid rgba(0,53,62, .5);
}
/********** END HEADER *********/
/******* ICO_MENU ********/
.wrap_ico_menu{
    width: 35px;
    height: 20px;
}
#ico_menu{
	position: absolute;
	z-index: 70;
	cursor: pointer;
    height: 20px;
    width: 35px;
    right: 0;
}
#ico_menu .line, #ico_menu:before, #ico_menu:after{
	background-color: white;
}
#ico_menu .line{
	width: 100%;
	height: 2px;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	transition: 400ms ease;
}
#ico_menu:before, #ico_menu:after{
	content: ' ';
	position: absolute;
	right: 0;
	height: 2px;
	transition: 400ms ease;
}
#ico_menu:before{
	top: 0;
	width: 100%;
}
#ico_menu:after{
	bottom: 0;
	width: 100%;
}
.menu_opened #ico_menu .line{
	opacity: 0;
} 
.menu_opened #ico_menu:before{
	transform: rotate(45deg);
	top: 50%;
}
.menu_opened #ico_menu:after{
	transform: rotate(-45deg);
	width: 100% !important;
	top: 50%;
}

/******* END ICO_MENU ********/
/******* PAGE MENU ********/
.page_menu {
    width: 100%;
    color: white;
    position: fixed;
    left: 0;
    overflow-y: auto; /* o scroll */
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    /*justify-content: space-between;*/ /* decommento se voglio che gli elementi occupino tutta l'altezza della viewport, non bello nella sezione ospitalità */
    gap: 10px; 
    align-items: stretch;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: 400ms ease;
    overflow-x: hidden; /* se necessario per evitare scroll orizzontale */
}

.menu_opened .page_menu{
    clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 0);
}
.page_menu h2, .page_menu .user_email{
    text-align: center;
    opacity: .3;
}
.page_menu .list{
    display: flex;
    justify-content: center;
    flex-flow: row wrap;
    gap: 40px;
}
.page_menu .line{
    width: 100%;
    height: 1px;
    background-color: white;
    opacity: .5;
}
.page_menu .row{
    padding: 20px 0;
    width: 100%;
}
.page_menu img.special_cat{
    width: 200px;
}
.page_menu .ico{
    width: 30px;
    align-self: center;
}
.page_menu .social_ico{
    width: 25px;
    align-self: center;
}
.page_menu a:hover{
    text-decoration: underline;
}
/******* END PAGE MENU ********/

/******* PREVIEW EVENTS, RECIPES, HOSPITALITY ************/
.grid.events .preview,
.grid.recipes .preview,
.grid.hospitality .preview
{
    overflow: hidden;
    display: grid;
    gap: 20px;
    text-decoration: none;
    padding: 10px;
    border-radius: 10px;
    background-color: white;
    position: relative;
    box-sizing: border-box;
}
.grid.events .preview{
    gap: 5px 20px;
}
.grid.events .preview.sponsor, .grid.recipes .preview.sponsor{
    grid-template-columns: 1fr;
    gap: 0;
}
.grid.events .preview.sponsor .over_hidden, .grid.recipes .preview.sponsor .over_hidden{
    display: none;
}
.grid.events .preview .title{
    grid-column: 1 / -1;
}
.grid.events .preview:hover .title, 
.grid.recipes .preview:hover .title,
.grid.hospitality .preview:hover .title
{
    text-decoration: underline;
}
.grid.events .preview:not(.sponsor) .wrap_img{
    aspect-ratio: 1 / 1;
    position: relative;
}
.grid.events .preview.sponsor .wrap_img{
    display: flex;
    justify-content: center;
}
.grid.events .preview .wrap_img img,
.grid.recipes .preview .wrap_img img,
.grid.hospitality .preview .wrap_img img
{
    border-radius: 8px;
}
.grid.events .preview .title, 
.grid.recipes .preview .title,
.grid.hospitality .preview .title
{
    color: #1a0dab;
    font-weight: normal;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    width: 100%;
    height: 25px;
    font-size: 18px;
    font-family: "Mulish-Regular";
}
.grid.events .preview .subtitle, 
.grid.recipes .preview .subtitle,
.grid.hospitality .preview .subtitle
{
    color: #1a0dab;
    opacity: .8;
    font-weight: normal;
    font-size: 16px;
    height: 21px;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-family: "Mulish-Regular";
}
.grid.events .preview .description{
    color: #4d5156;
    font-size: 14px;
}
.grid.events .preview .label{ /* rimandato o annullato */ 
    width:100px; 
    position:absolute; 
    right: 0; 
    bottom: 0; 
    z-index:5;
}
.grid.events .preview .label_right{ /* euro richiesti */ 
    width:100px; 
    position:absolute; 
    right: 0; 
    top: 0; 
    z-index:5;
}
.grid.recipes .preview .title, .grid.recipes .preview .subtitle{
    color: #006f0e;
}
.grid.hospitality .preview .title{
    color: #513e16;
}
.grid.hospitality .preview .subtitle{
    color: black;
} 
.grid.recipes .preview .subtitle2, .grid.hospitality .preview .subtitle{
    opacity: .8;
}
/******* END PREVIEW EVENTS, RECIPES, HOSPITALITY ************/

/******* GESTIONE POPUP ********/
body.popup_opened{
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.popup{    
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; 
    z-index: 50;
    
    opacity: 0;
    visibility: hidden;
    transition: 400ms ease;
}
.popup_opened .popup{
    opacity: 1;
    visibility: visible;
}
.popup .filter{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; 
    background-color: var(--blue);
    opacity: .8;
}
.popup .wrapper{
    max-width: 900px;
    background-color: #f2f2f2;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.popup .wrapper > div{
    padding: 30px;
}
.popup .wrapper > div:nth-of-type(2){
    background-color: white;
    border-radius: 30px;
}
.popup .wrapper ul{
    padding-left: 20px;
    line-height: 23px;
}
.wrap_pwd_input{
    position: relative;
}
.wrap_pwd_input img{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    width: 24px;
    box-sizing: content-box;
    padding: 0 10px;
    z-index: 2;
    cursor: pointer;
    opacity: .3;
}
.wrap_pwd_input img.visible{
    opacity: 1;
}
.wrap_pwd_input input {
    padding-left: 44px !important;
    font-size: 18px !important;
    font-family: monospace !important;
    letter-spacing: 1px !important;
}
.popup input[type='text'], .popup input[type='password']{
    width: 100%;
    display: block;
    border: 3px solid var(--blue);
    padding: 8px;
    background-color: rgba(0,53,62,.1);
    font-size: inherit;
    font-family: inherit;
    border-radius: 10px;
    outline: none;
}
.popup .btn, .form_btn{
    display: block;
    background-color: var(--blue);
    color: white;
    border-radius: 30px;
    text-align: center;
    padding: 10px;
    letter-spacing: 1px;
    font-family: 'Mulish-Medium';
    cursor: pointer;
}
.popup .close_ico{
    cursor: pointer;
}
.login_btn{
    background-color: #f2f2f2;
    border-radius: 20px;
    border: 3px solid var(--blue);
    padding: 10px;
    display: grid;
    grid-template-columns: auto 1fr;
    font-family: 'Mulish-Medium';
    cursor: pointer;
}
.login_btn > img{
    width: 25px;
}
.login_btn > div{
    text-align: center;
}
.text_over_line{
    position: relative;
    text-align: center;
    color: #989898;
    font-family: 'Mulish-Bold';
}
.text_over_line::before{
    content: ' ';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    height: 1px;
    background-color: #989898;
}
.text_over_line p{
    position: relative;
    z-index: 4;
    background-color: white;
    padding: 0 10px;
    display: inline-block;
}
/******* END GESTIONE POPUP ********/

.img_full_cover{
	object-fit: cover;
    width: 100%;
    height: 100%;
}
.over_hidden{
    overflow: hidden;
}
.wrap_no_events{
    max-width: 600px;
    padding: 10px;
    display: grid;
    background-color: white;
    border-radius: 10px;
}
.wrap_no_events img{
    border-radius: 10px;
}
.parent_no_events{
    display: flex;
    justify-content: flex-start;
    gap: 20px;
}
.parent_no_events .wrap_sponsor{
    border-radius: 10px;
    padding: 10px;
    background-color: white;
    width: auto;
    margin: unset;
}
.wrap_no_events h2{
    font-weight: normal;
}
.w100{
    width: 100%;
}

/******* CARD ************/
.card, .box{
    padding: 10px;
    border-radius: 10px;
    background-color: white;
}
.card .title, .card .subtitle{
    color: #1a0dab;
    font-weight: normal;
    font-family: "Mulish-Regular";
}
.card.recipe .title, .card.recipe .subtitle{
    color: #006f0e;
}
.card.hospitality .title, .card.hospitality .subtitle{
    color: #513e16;
}
.card .subtitle{
    opacity: .8;
}
.card .description{
    line-height: 25px;
}
.card .description a{
    color: blue;
    text-decoration: underline;
}
.card .cover{
    border-radius: 10px;
    width: 100%;
}
.card .ico{
    width: 25px;
}

/******* END CARD ************/

.btn_events_order{
    border: 2px solid #00353e;
    border-radius: 20px;
    color: #00353e;
}
.btn_events_order > div{
    padding: 7px 16px;
    cursor: pointer;
}
.btn_events_order > div:nth-child(1){
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}
.btn_events_order > div:nth-child(2){
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}
.btn_events_order > div.selected{
    background-color: #00353e;
    color: white;
}
footer{
    background-color: var(--blue);
    color: white;
    padding: 40px 0;
    text-align: center;
}
footer a, footer .underlined{
    text-decoration: underline;
}
.ico_loading{
    text-align: center;
    padding: 20px 0;
}
.ico_loading img{
    opacity: 0;
    width: 70px;
    transition: 400ms ease;
}
.ico_loading.active img{
    opacity: 1;
}
.wrap_checkbox{
    margin-top: 10px; 
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 10px;
}
.wrap_checkbox > input{
    width: 20px;
    height: 20px;
}
.card .share_icons img{
    width: 30px;
}
.page_content > .ads_wrap{
    position: relative;
}
.page_content > .ads_wrap > div:first-of-type{
    position: sticky;
    top: 64px;
    left: 0;
    width: 100%;
    height: calc(100dvh - 64px);
}
.page_content > .page,
.swiper-container {
  min-width: 0;
}
/*.page_content > .ads_wrap.right > div:first-of-type{
    height: calc(100dvh - 210px);
}*/
#ads_subheader{
    width: 100%;
    height: auto;
    text-align: center;
}
.card .like_info img {
    width: 20px;
    cursor: pointer;
}
/*.payment_label{
    background-color: #FF8C42 
    background-color: #E74C3C;
    color: #FFF;
    padding: 0.25em 0.6em;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    max-width: 210px;
}*/
.payment_label{
    color: #e73c8b;
}
.ui-widget{
    z-index: 7 !important;
}


