/* 
#header .header-body {
    background-color: transparent;
}

#header .header-container{
    background-color: #24111f;
}
section.page-header-image {
    background-color: #24111f !important;
}

@media (min-width: 992px) {
    #header .header-nav-bar {
        background-color: rgba(253,108,0,0.85) !important;
        backdrop-filter: blur(4px);
    }
}
@media (max-width: 991px) 
{
    #header .header-container > .header-row {
        flex-direction: column;
    }

    #header .header-container > .header-row > .header-column {
        justify-content: center;
    }
} 
*/

html.boxed .body {
    border-top-color: var(--secondary);
    color: #111;
}

html.boxed .body footer {
    color: #777;
}


html .bg-secondary article h2,
html .bg-secondary article h2.text-color-primary,
html .bg-secondary article p {
	color: #fff !important;
}

html .bg-secondary article h2 {
	/* font-size: 2em !important; */
    line-height: 1.1em !important;
}

html .bg-secondary article h4 {
	color: #57cdff !important;
	font-size: 1.4em !important;
}

html h5.lh-sm,
html p.lh-sm {
    line-height: 1.4em !important;
}

h3 {
    text-transform: none;
}

.fc-view.fc-widget-content {
    border: 0 none;
}
.fc-button-primary {
    color: #fff;
    background-color: var(--primary);
    border-color: color-mix(in srgb, var(--primary) 80%, white);
}
.fc-button-primary:hover {
    color: #fff;
    background-color: color-mix(in srgb, var(--primary) 90%, black);
    border-color: color-mix(in srgb, var(--primary) 80%, white);
}
.fc-toolbar h2 {
    color: var(--primary);
    font-weight: bold;
}

section.page-header.page-header-modern.bg-color-primary {
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
}

section.page-header.page-header-modern.bg-color-primary:before {
    content: '';
    background-color: var(--primary);
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    opacity: 0.7;
}

@media (min-width: 992px) {
    #mainNav {
        justify-content: center;
	margin-top:1rem;
	margin-bottom:0.5rem;
    }

    #header .header-nav.header-nav-links {
        height: auto;
    }

    #header .header-nav.header-nav-links:not(.header-nav-light-text) nav > ul > li > a, #header .header-nav.header-nav-line:not(.header-nav-light-text) nav > ul > li > a {
        font-size: 1.2em;
    }

    #header .header-nav-main nav > ul > li {
        height: auto;
	padding: 0.2rem 0.4rem;
	font-size: 1.3em;
    }
}

/* custom scrollbar */

/* width */

.fc-scroller::-webkit-scrollbar {
    width: 10px;
    height: 10px;
    background-color: transparent;
}

/* Track */
.fc-scroller::-webkit-scrollbar-track {
    background-color: transparent;
}

.fc-scroller::-webkit-scrollbar-corner {
    background-color: transparent;
}

.fc-scroller::-webkit-scrollbar-button {
    width: 2px;
    height: 2px;
}
html.dark.no-overflowscrolling .nano > .nano-pane > .nano-slider {
    background: #51535d;
}
/* Handle */
.fc-scroller::-webkit-scrollbar-thumb:horizontal {
    background: rgb(0,0,0);
    background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(100,100,100,0.2) 30%, rgba(100,100,100,0.2) 70%, rgba(0,0,0,0) 70%);
    transition: background 1.6s;
    -webkit-transition: background 1.6s;
}
.fc-scroller.fc-scroller-frame::-webkit-scrollbar-thumb:horizontal {
    background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(100,100,100,0.2) 60%, rgba(100,100,100,0.2) 100%, rgba(0,0,0,0) 100%);
}

.fc-scroller::-webkit-scrollbar-thumb:vertical {
    background: rgb(0,0,0);
    background: linear-gradient(90deg, rgba(0,0,0,0) 30%, rgba(100,100,100,0.2) 30%, rgba(100,100,100,0.2) 70%, rgba(0,0,0,0) 70%);
    transition: background 1.6s;
    -webkit-transition: background 1.6s;
}
.fc-scroller.fc-scroller-frame::-webkit-scrollbar-thumb:vertical {
    background: linear-gradient(90deg, rgba(0,0,0,0) 60%, rgba(100,100,100,0.2) 60%, rgba(100,100,100,0.2) 100%, rgba(0,0,0,0) 100%);
}

/* Handle on hover */
.fc-scroller::-webkit-scrollbar-thumb:horizontal:hover {
    background: rgb(0,0,0);
    background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(100,100,100,0.6) 30%, rgba(100,100,100,0.6) 70%, rgba(0,0,0,0) 70%);
    transition: background 1.6s;
    -webkit-transition: background 1.6s;
}
.fc-scroller.fc-scroller-frame::-webkit-scrollbar-thumb:horizontal:hover {
    background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(100,100,100,0.6) 60%, rgba(100,100,100,0.6) 100%, rgba(0,0,0,0) 100%);
}

.fc-scroller::-webkit-scrollbar-thumb:vertical:hover {
    background: rgb(0,0,0);
    background: linear-gradient(90deg, rgba(0,0,0,0) 30%, rgba(100,100,100,0.6) 30%, rgba(100,100,100,0.6) 70%, rgba(0,0,0,0) 70%);
    transition: background 1.6s;
    -webkit-transition: background 1.6s;
}
.fc-scroller.fc-scroller-frame::-webkit-scrollbar-thumb:vertical:hover {
    background: linear-gradient(90deg, rgba(0,0,0,0) 60%, rgba(100,100,100,0.6) 60%, rgba(100,100,100,0.6) 100%, rgba(0,0,0,0) 100%);
}

#parrocchie .post .post-image img {
    filter: saturate(0);
    transition: all 0.6s;
}
#parrocchie .post:hover .post-image img {
    filter: saturate(1);
}
.header-nav {
}
.header-nav li a {
    font-size: 16px !important;
}
h1, h2, h3, h4, h5, h6 {
    letter-spacing: .02em;
}
.notizie-principali h4 {
    color: var(--primary) !important;
}

article h1, article h2, article h3, article h4 {
    margin-top: 0;
}

@media (max-width: 991px) {
    #header .header-nav-main {
        z-index: 9;
    }
}

@media (min-width: 992px) {
    #header .header-nav-bar.bg-primary {
        z-index: 2 !important;
    }
}

.bg-menu-2 {
    background-color: #dd7731 !important;
}

.appuntamenti .post.post-medium .row:first-child {
    background-color: #ffe5cd;
    padding-top: 12px;
    border-radius: 12px;    
}

.post-image .thumb-info-wrapper h5 {
    position: absolute;
    z-index: 1;
    left: 0;
    top: 0;
    border-radius: 0 0 6px 0;
}

#real-time-news {
    background-color: #e9e9e9 !important;
    border-radius: 6px;
    opacity: 1 !important;
    height: 120px;
    max-height: 120px;
    overflow-y: hidden;
}

#real-time-news .owl-carousel {
    opacity: 1 !important;
}

#real-time-news .owl-carousel .owl-stage-outer {
    overflow: hidden;
    min-height: 3em;
    padding-bottom: 0rem !important;
    background-color: #e9e9e9 !important;
}

#real-time-news .owl-carousel .owl-stage-outer .text-color-light {
    color: #000 !important;
}

#real-time-news .owl-carousel .owl-stage-outer .line-height-6 {
    line-height: 1 !important;
}

.icon-post {
    width: 48px;
    filter: invert();
}

#MainNews .ratio-16x9 {
    --bs-aspect-ratio: 60% !important;
}

#Locandine h3 {
    display: none;
}

#Locandine .owl-carousel {
    margin-bottom: 0;
}
#Locandine .owl-carousel .owl-stage-outer {
    overflow: visible;
}

#Locandine .img-thumbnail {
    background-color: transparent !important;
    filter: drop-shadow(0 4px 6px #520008);
}

#Gruppi {
    background-color: oklch(from var(--primary) 98% calc(c * 0.3) h);
    padding-top: 2em;
    padding-bottom: 1em;
    border-radius: 0.5em;
    margin-bottom: 2em;
}

#Gruppi h3 {
    text-transform: initial;
}

#Parrocchie h5,
#Notizie h5 {
    text-transform: initial;
    font-family: "Poppins" !important;
    font-size: 1.2em;
}

@media (min-width: 768px) {
    #Notizie .col-md-3 {
        width: 20%;
    }
}

#Calendario {
  width: 100%;
  box-sizing: border-box;
}

.sommario h4 {
    color: var(--bs-dark) !important;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 15px;
}

.cal-day {
    background: rgba(255, 255, 255, 0.05);
    /* border: 2px solid rgba(255, 255, 255, 0.2); */
    border-radius: 6px;
    padding: 10px 10px;
    min-height: 120px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* 
.cal-day.today {
    border-color: #1a73e8;
    background: #e8f0fe;
} 
    */

.cal-day-header {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    text-transform: capitalize;
    margin-bottom: 0;
    line-height: 1.1em;
}

.cal-day-num {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.1em;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    padding-bottom: 10px;
}

/* 
.cal-day.today .cal-day-num {
    color: #1a73e8;
} 
*/

.cal-event {
    /* background: #fff; */
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    /* border-radius: 4px; */
    padding: 4px 0;
    margin-bottom: 4px;
    font-size: 12px;
    cursor: pointer;
    line-height: 1.3;
    color: #fff;
}

/* 
.cal-event:hover {
    border-color: #1a73e8;
} 
*/

.cal-event .ev-time {
    color: rgba(255, 255, 255, 0.5);
    font-size: 10px;
}

.cal-empty {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

#Calendario {
    overflow: hidden;
}

@media (max-width: 900px) {
    .cal-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .cal-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

#Note {
    background-image: url(../img/bacheca.jpg);
    background-repeat:repeat;
    background-size: 75%;
    background-position: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, .3);
}
#Note .post {
    background-image: url(../img/note1.png);
    background-repeat: no-repeat;
    background-size: contain;
    display: flex;
    transform: rotate3d(0, 0, 1, -4deg);
    aspect-ratio: 1;
}
#Note > div:nth-child(2) .post {
    background-image: url(../img/note2.png);
    transform: rotate3d(0, 0, 1, 2deg);
}
#Note > div:nth-child(3) .post {
    background-image: url(../img/note3.png);
    transform: rotate3d(0, 0, 1, -3deg);
}
#Note > div:nth-child(4) .post {
    background-image: url(../img/note4.png);
    transform: rotate3d(0, 0, 1, 1deg);
}
#Note .post .post-content {
    position: relative;
    margin: 2.5em 2.5em 3em;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
#Note .post a {
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    align-items: center;
    max-height: 100%;
    /* pointer-events: none; */
}

#Note h3,
#Note h4,
#Note h6 {
    font-family: "Shadows Into Light Two", cursive !important;
    font-style: normal;
    color: #24598b!important;
    text-align: center;
    letter-spacing: 0.06em;
}

#Note h3 {
    font-size: 24px;
    font-weight: 600 !important;
}

#Note h4 {
    font-size: 24px;
    font-weight: 400 !important;
}

#Note h6 {
    font-size: 14px;
    font-weight: 600 !important;
    display: inline;
    position: relative;
    margin-bottom: 0.4em !important;
}
#Note h6:before {
    content: '';
    background-color: rgb(255 103 0 / 25%);
    border-radius: 4px;
    border-right: 4px solid rgb(255 103 0 / 15%);
    left: -1em;
    right: -1em;
    position: absolute;
    height: 1.2em;
    z-index: -1;
    transform: rotate3d(0, 0, 1, -4deg) skewX(-10deg);
}
/* custom scrollbar */

/* width */

.scrollable-custom::-webkit-scrollbar, 
.scrollable-small::-webkit-scrollbar, 
.modal-content-custom .modal-body::-webkit-scrollbar, 
.select2-results__options::-webkit-scrollbar, 
.note-frame::-webkit-scrollbar {
    width: 10px;
    height: 10px;
    background-color: transparent;
}

/* Track */
.scrollable-custom::-webkit-scrollbar-track, 
.scrollable-small::-webkit-scrollbar-track, 
.modal-content-custom .modal-body::-webkit-scrollbar-track, 
.select2-results__options::-webkit-scrollbar-track, 
.note-frame::-webkit-scrollbar-track {
    background-color: transparent;
}

.scrollable-custom::-webkit-scrollbar-corner, 
.scrollable-small::-webkit-scrollbar-corner, 
.modal-content-custom .modal-body::-webkit-scrollbar-corner, 
.select2-results__options::-webkit-scrollbar-corner, 
.note-frame::-webkit-scrollbar-corner {
    background-color: transparent;
}

.scrollable-custom::-webkit-scrollbar-button, 
.scrollable-small::-webkit-scrollbar-button, 
.modal-content-custom .modal-body::-webkit-scrollbar-button, 
.select2-results__options::-webkit-scrollbar-button, 
.note-frame::-webkit-scrollbar-button {
    width: 2px;
    height: 2px;
}
.dark.no-overflowscrolling .nano > .nano-pane > .nano-slider {
    background: #51535d;
}
/* Handle */
.scrollable-custom::-webkit-scrollbar-thumb:horizontal, 
.scrollable-small::-webkit-scrollbar-thumb:horizontal, 
.modal-content-custom .modal-body::-webkit-scrollbar-thumb:horizontal, 
.select2-results__options::-webkit-scrollbar-thumb:horizontal, 
.note-frame::-webkit-scrollbar-thumb:horizontal {
    background: rgb(0, 0, 0);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(100, 100, 100, 0.2) 30%, rgba(100, 100, 100, 0.2) 70%, rgba(0, 0, 0, 0) 70%);
    transition: background 1.6s;
    -webkit-transition: background 1.6s;
}
.scrollable-custom.scrollable-custom-frame::-webkit-scrollbar-thumb:horizontal {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 60%, rgba(100, 100, 100, 0.2) 60%, rgba(100, 100, 100, 0.2) 100%, rgba(0, 0, 0, 0) 100%);
}

.scrollable-custom::-webkit-scrollbar-thumb:vertical, 
.scrollable-small::-webkit-scrollbar-thumb:vertical, 
.modal-content-custom .modal-body::-webkit-scrollbar-thumb:vertical, 
.select2-results__options::-webkit-scrollbar-thumb:vertical, 
.note-frame::-webkit-scrollbar-thumb:vertical {
    background: rgb(0, 0, 0);
    background: linear-gradient(90deg, rgba(0, 0, 0, 0) 30%, rgba(100, 100, 100, 0.2) 30%, rgba(100, 100, 100, 0.2) 70%, rgba(0, 0, 0, 0) 70%);
    transition: background 1.6s;
    -webkit-transition: background 1.6s;
}
.scrollable-custom.scrollable-custom-frame::-webkit-scrollbar-thumb:vertical {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0) 60%, rgba(100, 100, 100, 0.2) 60%, rgba(100, 100, 100, 0.2) 100%, rgba(0, 0, 0, 0) 100%);
}

/* Handle on hover */
.scrollable-custom::-webkit-scrollbar-thumb:horizontal:hover, 
.scrollable-small::-webkit-scrollbar-thumb:horizontal:hover, 
.modal-content-custom .modal-body::-webkit-scrollbar-thumb:horizontal:hover, 
.select2-results__options::-webkit-scrollbar-thumb:horizontal:hover, 
.note-frame::-webkit-scrollbar-thumb:horizontal:hover {
    background: rgb(0, 0, 0);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(100, 100, 100, 0.6) 30%, rgba(100, 100, 100, 0.6) 70%, rgba(0, 0, 0, 0) 70%);
    transition: background 1.6s;
    -webkit-transition: background 1.6s;
}
.scrollable-custom.scrollable-custom-frame::-webkit-scrollbar-thumb:horizontal:hover {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 60%, rgba(100, 100, 100, 0.6) 60%, rgba(100, 100, 100, 0.6) 100%, rgba(0, 0, 0, 0) 100%);
}

.scrollable-custom::-webkit-scrollbar-thumb:vertical:hover, 
.scrollable-small::-webkit-scrollbar-thumb:vertical:hover, 
.modal-content-custom .modal-body::-webkit-scrollbar-thumb:vertical:hover, 
.select2-results__options::-webkit-scrollbar-thumb:vertical:hover, 
.note-frame::-webkit-scrollbar-thumb:vertical:hover {
    background: rgb(0, 0, 0);
    background: linear-gradient(90deg, rgba(0, 0, 0, 0) 30%, rgba(100, 100, 100, 0.6) 30%, rgba(100, 100, 100, 0.6) 70%, rgba(0, 0, 0, 0) 70%);
    transition: background 1.6s;
    -webkit-transition: background 1.6s;
}
.scrollable-custom.scrollable-custom-frame::-webkit-scrollbar-thumb:vertical:hover {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0) 60%, rgba(100, 100, 100, 0.6) 60%, rgba(100, 100, 100, 0.6) 100%, rgba(0, 0, 0, 0) 100%);
}

@media (min-width: 992px) {
    #header .header-nav.header-nav-stripe nav > ul > li > a {
        background: transparent;
        padding: 0 .6rem;
        margin: 1px 0 0;
        height: 100%;
    }
}

.checkbox-custom input[type="checkbox"]:checked + label:after {
	position: absolute;
	display: inline-block;
	font-family: 'Font Awesome 6 Pro';
	font-weight: 900;
	content: '\F00C';
	top: 50%;
	left: 4px;
	margin-top: -5px;
	font-size: 11px;
	line-height: 1;
	width: 16px;
	height: 16px;
	color: #333;
}