﻿/*.font1 {
    font-family: 'Montserrat', sans-serif;
}

.font3 {
    font-family: 'Nanum Gothic', sans-serif;
}*/

/*.font7 {
    font-family: 'Hind Siliguri', sans-serif;
}*/

/*.accent-font1 {
    font-family: 'Pacifico', cursive;
}

.accent-font2 {
    font-family: 'Courgette', cursive;
}*/

/*'Hind Siliguri', sans-serif;*/

body {
    font-family: var(--f7-font-family);
    font-size: 16px;
}

.title-font {
    font-family: 'Playfair Display', serif;
}

.accent-font {
    font-family: 'Euphoria Script', cursive;
}

/*.block-title-large,
.block-title-medium {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    overflow: visible;
    white-space: normal;
}*/

figure {
    margin: 0;
}

.fab-morph>a {
    background: var(--f7-fab-bg-color, var(--f7-theme-color)) !important;
    border-radius: 0;
    writing-mode: vertical-rl;
    text-orientation: sideways;
    /*text-orientation: upright;*/
}

.fab.fab-left-top.fab-morph.fab1 {
    position: fixed;
    margin-top: calc(var(--f7-navbar-height) + var(--f7-safe-area-top));
    left: 0;
}

.fab.fab-left-top.fab-morph.fab2 {
    position: fixed;
    margin-top: calc(var(--f7-navbar-height) + var(--f7-safe-area-top) + 56px + 10px);
    left: 0;
}

.page-content.homepage {}

/*---------- Barra di navigazione ----------*/

.navbar .navbar-inner a {
    color: var(--f7-navbar-icon-color);
}

.navbar .navbar-inner .title {
    width: 100%;
}

/*.title-large.title-large-text {
    flex-direction: column;
    align-items: flex-start;
}*/

.logo-ente {
    height: 40px;
    margin-right: 10px;
    display: inline-block;
}

.logo-ente img {
    height: 100%;
    display: inline-block;
    vertical-align: middle;
}

.nome-ente {
    display: inline-block;
    vertical-align: middle;
}

/*---------- Homepage ----------*/

.titolo-home {
    width: 100%;
    text-align: center;
    color: white;
    background: url(../img/intestazione.jpg) center center/cover no-repeat;
}

.titolo-home figure {
    position: absolute;
    top: 17rem;
    left: 0;
    right: 0;
    border-radius: 50%;
}

.titolo-home figure img {
    padding: .2rem;
    width: 5rem;
    background-color: white;
    box-shadow: 0 1px 2px #777;
}

.titolo-home .titolo-container {
    position: relative;
    background: rgb(0, 0, 0);
    /*background: linear-gradient(4deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.9) 10%, rgba(0,0,0,0.1) 40%, rgba(0,0,0,0) 70%);*/
    background: linear-gradient(1deg, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, 0.6) 5%, rgba(0, 0, 0, 0.4) 10%, rgba(0, 0, 0, 0.2) 40%, rgba(0, 0, 0, 0) 70%);
    padding: 5rem 0 7rem 0;
    color: white;
    text-shadow: 0 1px 1px black;
}

.titolo-home .accent-font {
    font-size: 3em;
    margin-bottom: .5rem;
}

.titolo-home .nome-ente {
    font-size: 3em;
    line-height: 3rem;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

/*.titolo-home figure::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgb(0,0,0);
        background: linear-gradient(8deg, rgba(0,0,0,0.4) 0%, rgba(17,17,17,0.25) 10%, rgba(255,255,255,0.03) 60%);
        z-index: 0;
    }*/

/*---------- Tabbar ----------*/

.toolbar-inner {
    background-color: rgba(255, 255, 255, .5);
}

.md .tabbar .tab-link-highlight, .md .tabbar-labels .tab-link-highlight {
    background-color: black;
}

.tabbar-label {
    width: 100%;
    height: 18px;
    text-align: center;
    color: black;
    border-right: 2px solid rgba(0, 0, 0, .4)
}

.tabbar-label .badge {
    margin-left: 8px;
}

.tabbar-label.no-border {
    border: none;
}

/*---------- Lista record ----------*/

.lista-record .header-lista .img-lista {
    float: left;
    width: 30%;
    max-width: 150px;
    height: 150px;
    margin-right: 3%;
}

.lista-record .header-lista .img-lista::after {
    content: '';
    display: table;
    clear: both;
}

.lista-record .header-lista .img-lista img {
    width: 100%;
    height: 100%;
}

.lista-record .header-lista .titolo-lista, .lista-record .header-lista .strillo-lista {
    display: inline-block;
    vertical-align: top;
    width: 65%;
}

.lista-record .header-lista .titolo-lista .titolo {
    font-size: 1.4rem;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

@media (max-width: 600px) {
    .lista-record .header-lista .img-lista {
        float: unset;
        display: inline-block;
        height: 30%;
    }
    .lista-record .header-lista .strillo-lista {
        display: block;
        width: 100%;
    }
}

@media (max-width: 400px) {
    /*
    .lista-record .header-lista .img-lista {
        width: 100%;
        max-width: unset;
    }

    .lista-record .header-lista .titolo-lista,
    .lista-record .header-lista .strillo-lista {
        width: 100%;
    }

    .lista-record .header-lista .titolo-lista {
        margin-top: .5rem;
    }*/
}

/*---------- Lista contatti ----------*/

.lista-contatti ul:before, .lista-contatti ul:after {
    display: none;
}

.lista-contatti li {
    /*background-color: #9FDFCF;*/
    /*margin: 1rem 0;*/
}

.lista-contatti {
    border: 1px solid var(--f7-list-item-border-color);
    box-shadow: 1px 1px 2px #999;
}

.lista-contatti .item-media {}

.lista-contatti .icon {
    color: rgba(0, 0, 0, .6);
    /*color: rgba(255,255,255,1);*/
    font-size: 2rem;
    background-color: #9FDFCF;
    color: rgba(255, 255, 255, .6);
    font-size: 2rem;
    background-color: var(--f7-navbar-link-color, var(--f7-bars-link-color, var(--f7-theme-color)));
    /*background-color: #FF3B30;*/
    /*background: linear-gradient(352deg, rgba(0,0,0,0.6) 0%, rgba(108,108,108,0.2) 35%, rgba(187,187,187,0.1) 70%, rgba(255,255,255,0) 100%);*/
    border: 1px solid rgba(0, 0, 0, .05);
    box-shadow: 1px 1px 1px #aaa;
    padding: .3rem;
    border-radius: 4px;
}

.lista-contatti .item-after, .lista-contatti .item-after a {
    color: rgba(0, 0, 0, .8);
}

.lista-contatti .item-inner {
    padding: 0;
}

.lista-contatti .item-title {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.lista-contatti .item-after {
    padding-right: calc(var(--f7-list-item-padding-horizontal) + var(--f7-safe-area-right));
    align-items: center;
    justify-content: flex-end;
    font-size: 16px;
    /*width: 20%;
    height: 100%;*/
}

.lista-contatti .item-after a {
    font-weight: 700;
}

/*@media (min-width: 500px) and (max-width: 1199px) {

    .lista-contatti .item-after {
        width: 30%;
    }
}

@media (max-width: 499px) {

    .lista-contatti .item-after {
        width: 50%;
    }
}*/

/*---------- Cards ----------*/

.categoria {
    margin-bottom: -30px;
    margin-left: 10px;
    margin-right: 50px;
    border-bottom: 3px solid;
}

/* 
  ##Device = Desktops
  ##Screen = 1281px to higher resolution desktops
*/

@media (min-width: 1281px) {
    .categoria {
        margin-bottom: -30px;
        margin-left: 10px;
        margin-right: 50px;
        border-bottom: 3px solid;
    }
}

/* 
    ##Device = Laptops, Desktops
    ##Screen = B/w 1025px to 1280px
  */

@media (min-width: 1025px) and (max-width: 1280px) {
    .categoria {
        margin-bottom: -30px;
        margin-left: 10px;
        margin-right: 50px;
        border-bottom: 3px solid;
    }
}

/* 
    ##Device = Tablets, Ipads (portrait)
    ##Screen = B/w 768px to 1024px
  */

@media (min-width: 768px) and (max-width: 1024px) {
    .categoria {
        margin-bottom: -30px;
        margin-left: 10px;
        margin-right: 50px;
        border-bottom: 3px solid;
    }
}

/* 
    ##Device = Tablets, Ipads (landscape)
    ##Screen = B/w 768px to 1024px
  */

@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .categoria {
        margin-bottom: -30px;
        margin-left: 10px;
        margin-right: 50px;
        border-bottom: 3px solid;
    }
}

/* 
    ##Device = Low Resolution Tablets, Mobiles (Landscape)
    ##Screen = B/w 481px to 767px
  */

@media (min-width: 481px) and (max-width: 767px) {
    .categoria {
        margin-bottom: -24px;
        margin-left: 18px;
        margin-right: 18px;
        border-bottom: 3px solid;
    }
}

/* 
    ##Device = Most of the Smartphones Mobiles (Portrait)
    ##Screen = B/w 320px to 479px
  */

@media (min-width: 320px) and (max-width: 480px) {
    .ios .categoria {
        margin-bottom: -30px;
        margin-left: 32px;
        margin-right: 32px;
        border-bottom: 3px solid;
    }
    .md .categoria {
        margin-bottom: -24px;
        margin-left: 18px;
        margin-right: 18px;
        border-bottom: 3px solid;
    }
}

.categoria::after {
    display: none;
}

.categoria>span {
    margin-left: auto;
    margin-top: auto;
    padding: 3px 13px;
    font-weight: 500;
    color: #333;
    /* border-radius: var(--f7-card-expandable-border-radius); */
}

.card figure {
    position: relative;
    height: 170px;
}

.card figure::after {
    content: '';
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    background: rgb(0, 0, 0);
    background: linear-gradient(6deg, rgba(0, 0, 0, 1) 0%, rgba(17, 17, 17, 0.9) 10%, rgba(17, 17, 17, 0.4) 25%, rgba(255, 255, 255, 0) 35%);
    /* background: linear-gradient(6deg, rgba(0,0,0,1) 0%, rgba(17,17,17,0.9) 10%, rgba(17,17,17,0.4) 40%, rgba(255,255,255,0) 80%);
    z-index: 10;
*/
    /*-webkit-transition: background 2s;
    transition: background 2s;*/
}

.card figure::after:hover {
    /*background: linear-gradient(8deg, rgba(0,0,0,1) 0%, rgba(17,17,17,0.8715861344537815) 10%, rgba(255,255,255,0) 60%);*/
}

.card figure h2 {
    position: absolute;
    bottom: 0;
    margin: 0;
    color: white;
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    text-shadow: 1px 1px 1px black;
    z-index: 100;
}

.data {
    color: #777;
}

/*---------- Video ----------*/

.video-container {
    position: relative;
    text-align: center;
}

.video-container .video-fullscreen {
    width: 100%;
}

.video-container .titolo-video {
    position: absolute;
    margin-top: 0;
    margin-bottom: 0;
    margin-left: calc(var(--f7-block-padding-horizontal) + var(--f7-safe-area-left));
    /*margin-right: calc(var(--f7-block-padding-horizontal) + var(--f7-safe-area-right));*/
    padding: .5rem 1rem;
    width: 77%;
    top: 0;
    left: 0;
    background: rgb(0, 0, 0);
    background: linear-gradient(176deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.5) 10%, rgba(0, 0, 0, 0.03) 40%, rgba(0, 0, 0, 0) 70%);
    font-size: 1.5rem;
    color: white;
}

.video-container .mediateca {
    width: auto;
    margin-left: auto;
}

@media (min-width: 768px) and (max-width: 1023px) {
    .video-container .titolo-video {
        width: 83%;
    }
}

@media (max-width: 767px) {
    .video-container .titolo-video {
        width: 77%;
    }
}

/*---------- Galleria ----------*/

.galleria {
    margin: 0 0 35px;
    font-size: 18px;
    height: 200px;
}

.galleria .swiper-wrapper {
    padding: .5rem;
}

.galleria .swiper-slide {
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: flex-start;
    justify-content: flex-start;
    -webkit-box-align: flex-start;
    -ms-flex-align: flex-start;
    -webkit-align-items: flex-start;
    align-items: flex-start;
}

.galleria .swiper-slide {
    background: center center/cover no-repeat;
    box-sizing: border-box;
    border: 1px solid #ccc;
    box-shadow: 1px 1px 4px #aaa;
}

.galleria .swiper-slide .slide-content {
    width: 100%;
    height: 100%;
    padding: .25rem .5rem;
    font-size: 1.3rem;
    font-weight: 300;
    color: white;
    z-index: 10;
}

.galleria .swiper-slide .slide-content:hover {}

.galleria .swiper-slide::after {
    content: '';
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    background: rgb(0, 0, 0);
    background: linear-gradient(172deg, rgba(0, 0, 0, .6) 0%, rgba(17, 17, 17, 0.4) 10%, rgba(255, 255, 255, 0) 40%);
    z-index: 0;
    /*-webkit-transition: background 2s;
    transition: background 2s;*/
}

.galleria .swiper-pagination {
    width: auto;
    left: 50%;
    padding: 0 .5rem;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    border: 1px solid rgba(255, 255, 255, .4);
    background-color: rgba(255, 255, 255, .4);
    border-radius: 24px;
}

.galleria .swiper-pagination .swiper-pagination-bullet {
    opacity: .8;
    box-shadow: 1px 1px 2px white;
}

.galleria .swiper-pagination .swiper-pagination-bullet-active {
    opacity: 1;
}

/*---------- Mappa ----------*/

.mappa>div {
    width: 100%;
    height: 60vh;
    border: 1px solid #ccc;
    box-shadow: 1px 1px 2px #aaa;
}

.underneath {
    padding: 0;
    margin: 265px 0 0 0;
    width: 600px;
}

.overlay {
    top: 0;
    position: absolute;
    width: 100vw;
    height: 100vh;
    background: #00000088;
}

@media (min-width: 768px) and (max-width: 1023px) {
    .overlay {
        top: 0;
        position: absolute;
        width: 100vw;
        height: 100vh;
        background: #00000088;
        /* clip-path: polygon(0% 0%, 0% 100%, 25% 100%, 25% 5%, 75% 5%, 75% 95%, 25% 95%, 25% 100%, 100% 100%, 100% 0%); */
    }
}

@media (min-width: 1024px) {
    .overlay {
        top: 0;
        position: absolute;
        width: 100vw;
        height: 100vh;
        background: #00000088;
        /* clip-path: polygon(0% 0%, 0% 100%, 25% 100%, 25% 5%, 75% 5%, 75% 95%, 25% 95%, 25% 100%, 100% 100%, 100% 0%); */
    }
}