:root{
	--space-size: 5rem;        /* spazio riservato per linea e asterisco */
	--distance-bottom: -2.5rem;/* distanza verticale dalla baseline del titolo per centrare l'elemento nello spazio riservato  */
	--line-thickness: 1px;     /* spessore della linea */
	--line-width: 250px;       /* 40% larghezza della singola barra rispetto alla larghezza del titolo */
	--max-line-width: 420px;   /* valore massimo in px della larghezza della barra */
	--line-separator-width: 70%;         /* larghezza della singola barra rispetto alla larghezza del contenuto */
	--line-separator-height: 100%;         /* lunghezza della singola barra rispetto alla lunghezza del contenuto */
	--max-line-separator-width: 750px;   /* valore massimo in px della larghezza della barra */
	--max-line-separator-height: 250px;   /* valore massimo in px della lunghezza della barra */
	--star-size: 2rem;         /* (22px) dimensione dell'asterisco */
	--star-weight: 600;
	--vertical-size-separator: 13rem;
	--gap: 10px;               /* spazio visivo fra l'asterisco e la linea (usato per il "buco" trasparente) */
	--clearance: calc(var(--star-size) + (2 * var(--gap))); /* larghezza della zona trasparente al centro della linea */
	
	--orn-quote-width: 50px;
	--orn-quote-height: 60px;
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
}
/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
}
/* small screens: scala la thickness proporzionalmente per mantenere aspetto */
@media (max-width:720px){
}
/* Small devices (landscape phones, 576px and up) */
@media (max-width: 767.98px) {
}
/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
}
/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
}
/* Medium devices (tablets, 768px and up) */
@media (max-width: 991.98px) {
}
/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) { 
}
/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
}
/* Large devices (desktops, 992px and up) */
@media (max-width: 1199.98px) { 
}
/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) { 
}


.ui-layout-builder-modal {
	top: 140px !important;
}
.ui-layout-builder-modal #layout-builder-modal {
	max-height: 700px !important;
}

#drupal-off-canvas-wrapper {
    --off-canvas-background-color-medium: #959494;
}

article {
	overflow: hidden;
}

/********************** INIZIO Background Color **********************/
.bg01 {
    background-color: var(--fourth-color) !important;
}
.bg02 {
	background-color: var(--third-color) !important;
}
.bg-gradient-top {
	background: var(--fifth-color);
	background: linear-gradient(180deg, var(--fifth-color) 0%, var(--main-color) 50%, var(--main-color) 100%)
}
.bg-gradient-bottom {
	background: var(--fifth-color);
	background: linear-gradient(360deg, var(--fifth-color) 0%, var(--main-color) 50%, var(--main-color) 100%)
}
.bg-gradient-top-to-bottom {
	background: #F2ECE4;
	background: linear-gradient(180deg, var(--fifth-color) 0%, var(--main-color) 50%, var(--fifth-color) 100%);
}
.bg-image {
	position: relative;
}
.bg-image::before {
	content: "";
	position: absolute;
	top: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.5);
}
/*********************** FINE Background Color ***********************/


/********************** INIZIO Utility Function **********************/
.wrapper-top-bottom {
    padding: 6rem 0;
}
.wrapper-top {
    padding-top: 6rem;
}
.wrapper-bottom {
    padding-bottom: 6rem;
}


.display-4 {
    font-size: calc(1.475rem + 2.7vw) !important;
    font-weight: 300;
    line-height: 1.2 !important;
}
.display-5 {
    font-size: calc(1.425rem + 2.1vw) !important;
    font-weight: 300;
    line-height: 1.2 !important;
}
.display-6 {
    font-size: calc(1.375rem + 1.5vw) !important;
    font-weight: 300;
    line-height: 1.2 !important;
}
@media (min-width: 1200px) {
	.display-4 {
        font-size: 3.5rem !important;
    }
    .display-5 {
        font-size: 3rem !important;
    }
	.display-6 {
        font-size: 2.5rem !important;
    }
}

.fontyourface .underline h2,
.fontyourface .underline h3 {
    margin-bottom: 1.5rem;
}
.fontyourface .overline h2,
.fontyourface .overline h3 {
    margin-top: 1.5rem;
}
.underline h2:after, .underline h3:after {
    content: "";
    border-bottom: 1px solid var(--title-color);
    width: 150px;
    display: block;
    margin-top: 10px;
	position: absolute;
}
.underline h2:after {
    border-bottom: 1px solid var(--first-color);
}
.overline h2:before, .overline h3:before {
    content: "";
    border-bottom: 1px solid var(--title-color);
    width: 150px;
    display: block;
	margin-bottom: 10px;
	position: absolute;
}
.overline h2:before {
    border-bottom: 1px solid var(--first-color);
}

.underline-asterisk h2::before,
.underline-asterisk h3::before {
	content: "";
	position: absolute;
	/*
	left: 50%;
	transform: translateX(-50%);
	*/
	left: 0;
	bottom: var(--distance-bottom);
	height: var(--line-thickness);

	width: clamp(0px, var(--line-width), var(--max-line-width));

	background: linear-gradient(
		to right,
		var(--title-color) 0 calc(50% - (var(--clearance) / 2)),
		transparent calc(50% - (var(--clearance) / 2)) calc(50% + (var(--clearance) / 2)),
		var(--title-color) calc(50% + (var(--clearance) / 2)) 100%
	);

	pointer-events: none;
}
.underline-asterisk h2::before {

	background: linear-gradient(
		to right,
		var(--first-color) 0 calc(50% - (var(--clearance) / 2)),
		transparent calc(50% - (var(--clearance) / 2)) calc(50% + (var(--clearance) / 2)),
		var(--first-color) calc(50% + (var(--clearance) / 2)) 100%
	);
}
.underline-asterisk.linecenter h2::before,
.underline-asterisk.linecenter h3::before {
	left: 50%;
	transform: translateX(-50%);
}

.underline-asterisk h2::after,
.underline-asterisk h3::after {
	content: "✻";
	position: absolute;
	/*
	left: 50%;
	*/
	left: calc((clamp(0px, var(--line-width), var(--max-line-width))) / 2);
	transform: translateX(-50%);
	bottom: calc(var(--distance-bottom) - (var(--star-size) / 2) + (var(--line-thickness) / 2) + 2.5px); /* allinea verticalmente sul centro della linea */
	color: var(--title-color);
	font-size: var(--star-size);
	font-weight: var(--star-weight);
	line-height: 1;
	background: transparent; /* ora trasparente */
	padding: 0;              /* nessun padding che copra la linea */
	border-radius: 0;
	pointer-events: none;
}
.underline-asterisk h2::after {
	color: var(--first-color);
}
.underline-asterisk.linecenter h2::after,
.underline-asterisk.linecenter h3::after {
	left: 50%;
}
.underline-asterisk.linecenter h2 {
    margin-bottom: var(--space-size);
}

.separator-asterisk hr {
	height: var(--star-size);
    background: initial;
	position: relative;
}
.separator-asterisk-vertical hr {
	height: var(--vertical-size-separator);
    background: initial;
	position: relative;
}
.separator-asterisk hr::before {
	content: "";
	position: absolute;

	left: 0;
	bottom: 50%;
	height: var(--line-thickness);

	width: clamp(0px, var(--line-separator-width), var(--max-line-separator-width));

	background: linear-gradient(
		to right,
		var(--first-color) 0 calc(50% - (var(--clearance) / 2)),
		transparent calc(50% - (var(--clearance) / 2)) calc(50% + (var(--clearance) / 2)),
		var(--first-color) calc(50% + (var(--clearance) / 2)) 100%
	);

	pointer-events: none;
}
.separator-asterisk.invert hr::before {
	background: linear-gradient(
		to right,
		var(--main-color) 0 calc(50% - (var(--clearance) / 2)),
		transparent calc(50% - (var(--clearance) / 2)) calc(50% + (var(--clearance) / 2)),
		var(--main-color) calc(50% + (var(--clearance) / 2)) 100%
	);

}
.separator-asterisk-vertical hr::before {
	content: "";
	position: absolute;

	left: 0;
	bottom: 0;
	height: clamp(0px, var(--line-separator-height), var(--max-line-separator-height));

	width: var(--line-thickness);

	background: linear-gradient(
		to bottom,
		var(--first-color) 0 calc(50% - (var(--clearance) / 2)),
		transparent calc(50% - (var(--clearance) / 2)) calc(50% + (var(--clearance) / 2)),
		var(--first-color) calc(50% + (var(--clearance) / 2)) 100%
	);

	pointer-events: none;
}
.separator-asterisk-vertical.invert hr::before {
	background: linear-gradient(
		to bottom,
		var(--main-color) 0 calc(50% - (var(--clearance) / 2)),
		transparent calc(50% - (var(--clearance) / 2)) calc(50% + (var(--clearance) / 2)),
		var(--main-color) calc(50% + (var(--clearance) / 2)) 100%
	);
}
.separator-asterisk.linecenter hr::before,
.separator-asterisk-vertical.linecenter hr::before {
	left: 50%;
	transform: translateX(-50%);
}

.separator-asterisk hr::after,
.separator-asterisk-vertical hr::after {
	content: "✻";
	position: absolute;

	left: calc((clamp(0px, var(--line-width), var(--max-line-width))) / 2);
	transform: translateX(-50%);
	bottom: calc(50% - (var(--star-size) / 2) + (var(--line-thickness) / 2) + 0px); /* allinea verticalmente sul centro della linea */
	color: var(--first-color);
	font-size: var(--star-size);
	font-weight: var(--star-weight);
	line-height: 1;
	background: transparent; /* ora trasparente */
	padding: 0;              /* nessun padding che copra la linea */
	border-radius: 0;
	pointer-events: none;
}
.separator-asterisk.invert hr::after,
.separator-asterisk-vertical.invert hr::after {
	color: var(--main-color);
}
.separator-asterisk.linecenter hr::after,
.separator-asterisk-vertical.linecenter hr::after {
	left: 50%;
}

.bordered-paragraph {
    border-top: 1px solid var(--text-color);
    padding-top: 1rem;
	margin-top: 0.5rem;
	
	border-bottom: 1px solid var(--text-color);
    margin-bottom: 1.5rem;
}

.layout-builder-block {
	position: relative;
	width: 100%;
}
/*********************** FINE Utility Function ***********************/

/*********************** INIZIO Custom Fields ***********************/
.field--name-field-data-notizia,
.field--name-field-data-evento {
	margin-bottom: 1rem;
}
/************************ FINE Custom Fields ************************/

/************************** INIZIO Webform **************************/
#block-webform h3 {
	margin-bottom: 1.5rem;
}
.form-group label {
	margin-left: 15px;
	text-transform: uppercase;
}
.form-group .form-required::after {
    filter: invert(50%) sepia(43%) saturate(481%) hue-rotate(354deg) brightness(96%) contrast(90%);
}
.form-control {
    border-radius: 20px !important;
	color: var(--first-color);
	border: 1px solid var(--first-color);
}
.form-control:focus {
    color: var(--second-color);
    background-color: var(--main-color);
    border-color: var(--second-color);
    box-shadow: 0 0 0 .2rem rgba(0, 0, 0, .25);
}

.form-group button.btn-secondary span {
	position: relative;
}
.form-group button.btn-secondary span::after {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background-color: var(--second-text-color);
    position: absolute;
    bottom: 0.1rem;
    left: 50%;
    margin-left: -50%;
	
    transition: 0.3s;
    transform-origin: left;
}

.webform-details-toggle-state {
    color: var(--text-color);
}
/*************************** FINE Webform ***************************/

/*********************** INIZIO Bockquote Text ***********************/
.block-inline-blockquote-text h3 {
	margin-bottom: 2rem;
}
.block-inline-blockquote-text blockquote {
	/*
	font-size: unset;
    line-height: unset;
	*/
	position: relative;
	padding: 0 var(--orn-quote-width);
	font-size: var(--h3-font-size);
	font-family: var(--font-family-secondary);
	line-height: 1.5;
}
.block-inline-blockquote-text.vertical-quote blockquote {
	padding: 70px 0 0 0;
}
.block-inline-blockquote-text blockquote p {
	display: inline;
}
.block-inline-blockquote-text blockquote::before {
	/*
	font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f10d";
	*/
	content: "";
	position: absolute;
	display: inline-block;
	background: url(../img/quote-ornament.png) no-repeat center / contain;
	padding: 0;
	top: 8px;
	left: 0;
	width: var(--orn-quote-width);
	height: var(--orn-quote-height);
}
.block-inline-blockquote-text blockquote::after {
	/*
	font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f10e";
	*/
	content: "";
	position: absolute;
	display: inline-block;
	background: url(../img/quote-ornament.png) no-repeat center / contain;
	padding: 0;
	top: 8px;
	right: 0;
	width: var(--orn-quote-width);
	height: var(--orn-quote-height);
}
.block-inline-blockquote-text.vertical-quote blockquote::after {
	content: none;
}
.block-inline-blockquote-text .cit {
	text-transform: uppercase;
}
/************************ FINE Bockquote Text ************************/


/***************** INIZIO Bullet Point & Ordered List *****************/
.block-inline-blockbullet-point-list ul,
.block-inline-blockordered-list ol {
	list-style: none;
	margin: 0;
	padding: 0;
	text-transform: uppercase;
	
	border-top: 1px solid var(--first-color);
}
.block-inline-blockbullet-point-list li,
.block-inline-blockordered-list li {
	border-bottom: 1px solid var(--first-color);
    padding: 0.7rem 0;
}
.block-inline-blockbullet-point-list li p,
.block-inline-blockordered-list li p {
	margin: 0;
}


.block-inline-blockordered-list ol.ordered-list {
	list-style:none;
	
	counter-reset: item;
	margin: 0 auto;
	padding: 0;
}
.block-inline-blockordered-list ol.ordered-list li{
	counter-increment: item;
	padding-left: 3.5rem;
	position: relative;
}
.block-inline-blockordered-list ol.ordered-list li::before{
	content: counter(item, decimal-leading-zero);
	position: absolute;
	left: 0;
	top: calc(50% - (var(--h3-font-size) / 2) - 2px);
	font-size: var(--h3-font-size);
	font-family: var(--font-family-secondary);
	line-height: 1;
}
.block-inline-blockordered-list ol.ordered-list li span.marker-line {
	display: block;
    width: 12px;
    height: 1px;
    background: var(--first-color);
    position: absolute;
    left: 2.15rem;
    top: 50%;
}
/****************** FINE Bullet Point & Ordered List ******************/


/************************ INIZIO 3 image left ************************/
.node .block-inline-block3-image-left .field--type-image {
	float: initial;
	margin: initial;
}

.block-inline-block3-image-left .field__item:nth-child(1) > .media--image {
	height: 450px;
}
.block-inline-block3-image-left .field__item:nth-child(1) > .media--image > img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.block-inline-block3-image-left .field__item:nth-child(2) > .media--image {
	max-width: 50%;
    margin-top: -50px;
    float: right;
    margin-right: -30%;
	padding-bottom: initial !important;
    height: auto;
}
.block-inline-block3-image-left .field__item:nth-child(3) > .media--image {
	max-width: 50%;
    margin-top: -50px;
    float: right;
    margin-right: 15px;
	padding-bottom: initial !important;
    height: auto;
}
.block-inline-block3-image-left .field__item:nth-child(2) > .media--image > img,
.block-inline-block3-image-left .field__item:nth-child(3) > .media--image > img {
	height: auto;
	position: relative;
}
/************************* FINE 3 image left *************************/


/************************ INIZIO 3 image right ************************/
.node .block-inline-block3-image-right .field--type-image {
	float: initial;
	margin: initial;
}

.block-inline-block3-image-right .field__item:nth-child(1) > .media--image {
	height: 450px;
}
.block-inline-block3-image-right .field__item:nth-child(1) > .media--image > img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.block-inline-block3-image-right .field__item:nth-child(2) > .media--image {
	max-width: 50%;
    margin-top: -50px;
    float: left;
    margin-left: -30%;
	padding-bottom: initial !important;
    height: auto;
}
.block-inline-block3-image-right .field__item:nth-child(3) > .media--image {
	max-width: 50%;
    margin-top: -50px;
    float: left;
    margin-left: 15px;
	padding-bottom: initial !important;
    height: auto;
}
.block-inline-block3-image-right .field__item:nth-child(2) > .media--image > img,
.block-inline-block3-image-right .field__item:nth-child(3) > .media--image > img {
	height: auto;
	position: relative;
}
/************************* FINE 3 image right *************************/


/******************** INIZIO Photogallery Carousel ********************/

/********************* FINE Photogallery Carousel *********************/



@media (min-width: 560px) {
    .node .field--type-image {
        float: initial;
        margin: initial;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {

}

@media(max-width: 575.98px) and (orientation:portrait) {

}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {

}

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 767.98px) { 

}

@media (min-width: 768px) {
	.row.invert-column-even:nth-child(even) > div:nth-child(1),
	.row.invert-column > div:nth-child(1) {
		-ms-flex-order: 2;
		order: 2;
	}
	.row.invert-column-even:nth-child(even) > div:nth-child(2),
	.row.invert-column > div:nth-child(2) {
		-ms-flex-order: 1;
		order: 1;
		/*z-index: 1;*/
		text-align: right;
	}
	.row.invert-column-even:nth-child(even) > div:nth-child(2) h2,
	.row.invert-column-even:nth-child(even) > div:nth-child(2) h3,
	.row.invert-column-even:nth-child(even) > div:nth-child(2) h4,
	.row.invert-column > div:nth-child(2) h2,
	.row.invert-column > div:nth-child(2) h3,
	.row.invert-column > div:nth-child(2) h4{
		text-align: right;
	}
	
	.row.invert-column-even:nth-child(even) > div:nth-child(2) h2:after,
	.row.invert-column-even:nth-child(even) > div:nth-child(2) h3:after,
	.row.invert-column .underline h2:after,
	.row.insert-invert-column .underline h2:after,	
	.row.invert-column .underline h3:after,
	.row.insert-invert-column .underline h3:after,
	.row.invert-column .overline h2:before,
	.row.insert-invert-column .overline h2:before,
	.row.invert-column .overline h3:before,
	.row.insert-invert-column .overline h3:before {
		right: 0;
		margin-left: auto;
	}
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {

}

@media (max-width: 991.98px) {
	.wrapper-top-bottom {
		padding: 4rem 0;
	}
	.wrapper-top {
		padding-top: 4rem;
	}
	.wrapper-bottom {
		padding-bottom: 4rem;
	}
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) { 
	.row.b2cols-padding > div:nth-child(1) {
		padding-right: 30px;
	}
	.row.b2cols-padding > div:nth-child(2) {
		padding-left: 30px;
	}

	
	.row.b2cols-padding.invert-column-even:nth-child(even) > div:nth-child(1),
	.row.b2cols-padding.invert-column > div:nth-child(1) {
		padding-right: 15px;
		padding-left: 30px;
	}
	.row.b2cols-padding.invert-column-even:nth-child(even) > div:nth-child(2),
	.row.b2cols-padding.invert-column > div:nth-child(2) {
		padding-right: 30px;
		padding-left: 15px;
	}
	

}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) { 
	.row.b3cols-padding > div:nth-child(1) {
		padding-left: 15px;
		
		padding-right: 15px;
	}
	.row.b3cols-padding > div:nth-child(2) {
		padding-left: 15px;
		padding-right: 15px;
	}
	.row.b3cols-padding > div:nth-child(3) {
		padding-left: 15px;
		
		padding-right: 15px;
	}
}

@media (max-width: 1199.98px) { 

}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) { 
	.row.b3cols-padding > div:nth-child(1) {
		padding-left: 30px;
		
		padding-right: 30px;
	}
	.row.b3cols-padding > div:nth-child(2) {
		padding-left: 30px;
		padding-right: 30px;
	}
	.row.b3cols-padding > div:nth-child(3) {
		padding-left: 30px;
		
		padding-right: 30px;
	}
}

@media (min-width: 1200px) and (max-width: 1365.98px) {

}

@media (max-width: 1365.98px) {

}

@media (min-width: 1366px) and (max-width: 1535.98px) {

}

@media (max-width: 1535.98px) {

}

@media (min-width: 1536px) {

}

@media (min-width: 1536px) and (max-width: 1919.98px) { 

}

@media (min-width: 1920px) { 

}

@media (min-width: 2000px) { 

}