/*

primary-color https://www.colorhexa.com/165078
primary-color-light https://www.colorhexa.com/1f77b4

catalogo bolle:
 - sfondo bolle macro-categorie: #cdd8df
 - bordo bolle macro-categorie: #8d9fab
 - sfondo bolle categorie (chiuse): #7497b0
 - sfondo bolle categorie (aperte): #618aa8
 - bordo bolle categorie (aperte): #165078
*/

:root {
    --primary-color: #165078;
    --primary-color-light: #1f77b4;
    --subtitle-color: #333333;
	--ai_error_color: #B00020;

	--primary-color-rgb:22, 80, 120;
	--primary-color-light-rgb:31, 119, 180;
	--ai_error_color_rgb: 176, 0, 32;

	--comments-bg-color: #e2ebf6;
	--comments-reply-bg-color: #f3f7fc;
	--comments-rev-bg-color: #ccc;
	--comments-dis-bg-color: #d69999;

	--border-color: #e0e0e0;
	--border-color-dark: #666;
	--link_color:var(--primary-color-light);/*rgb(80, 116, 124)/*#386bc0*/;
	--border-radius: 4px;

	--hover-background-color: #e3eef6;

	--menu-border-color:#e0e0e0;
	--menu-item-text-color: rgb(80, 116, 124);/*#212121;*/
	--menu-item-selected-text-color: rgb(80, 116, 124);/*#165078; */
	--menu-item-selected-background-color: var(--hover-background-color);


	--mdb-body-bg: #e5e5e5 !important;
	--mdb-accordion-active-color: #1f77b4;
	--mdb-btn-bg: #1f77b4 !important;
	--mdb-btn-box-shadow: 0 4px 9px -4px #1f77b4 !important;

	--ai_cat_filter_selected: rgb(170, 170, 255);

	--jcarousel_app_bg_color: #cdd8df;
}

@media screen {
	
	body { min-height: 100vh; margin:0; display:flex; flex-direction:column; background-color: #e5e5e5; }
	#wrap { flex:1; width:100%; box-sizing: border-box; display:flex; margin: 0 auto; padding: 0; color: #333; background-color: #fff; }
	
	a { color:var(--link_color); }
	a:visited { color:var(--link_color); }
	a:hover { color:var(--link_color); } 
	a.link_underline {
		text-decoration: underline;
	}
	
	h1, h2, h3, h4, h5, h6 { font-weight: normal; color:var(--primary-color); }
	h1 { font-size:32px; color:var(--primary-color); }
	h2 { font-size:24px; color:var(--primary-color-light); }
	h3 { font-size:20px; }
	h4 { font-size:18px; }
	h5 { font-size:16px; }
	h6 { font-size:14px; }
	
	p {}
	/*ul, ol { padding: 0; margin: 0; }*/
	
	pre {}
	code, tt, var {}
	
	abbr, acronym {}
	
	blockquote {}
	blockquote p {}
	
	.post {}
	.entry {}
	.entry a {}
	.entry a:hover {}
	.meta {}
	.postmetadata {}
	
	.nav {}
	.nav-prev {}
	.nav-next {}
	
	.searchform {}
	.search-submit {}
		
	ol.commentlist { padding: 0; list-style: none; }
	ol.commentlist li {}
	ol.commentlist li.alt {}
	ol.commentlist li.bypostauthor {}
	ol.commentlist li.byuser {}
	ol.commentlist li.comment-author-admin {}
	ol.commentlist li.comment { padding: 20px; border-bottom: 1px dotted #999; }
	ol.commentlist li.comment div.comment-author {}
	ol.commentlist li.comment div.vcard {}
	ol.commentlist li.comment div.vcard cite.fn { font-style: normal; }
	ol.commentlist li.comment div.vcard cite.fn a.url {}
	ol.commentlist li.comment div.vcard img.avatar { float:right; margin: 0 0 20px 20px; }
	ol.commentlist li.comment div.vcard img.photo {}
	ol.commentlist li.comment div.vcard span.says {}
	ol.commentlist li.comment div.commentmetadata {}
	ol.commentlist li.comment div.comment-meta { margin: 10px 0; font-size: 12px; }
	ol.commentlist li.comment div.comment-meta a { color: #999; }
	ol.commentlist li.comment p {}
	ol.commentlist li.comment ul {}
	ol.commentlist li.comment div.reply { font-size: 12px; font-weight: bold; }
	ol.commentlist li.comment div.reply a {}
	ol.commentlist li.comment ul.children { margin: 20px 0 0 0; padding: 0; list-style: none; }
	ol.commentlist li.comment ul.children li {}
	ol.commentlist li.comment ul.children li.alt {}
	ol.commentlist li.comment ul.children li.bypostauthor {}
	ol.commentlist li.comment ul.children li.byuser {}
	ol.commentlist li.comment ul.children li.comment {}
	ol.commentlist li.comment ul.children li.comment-author-admin {}
	ol.commentlist li.comment ul.children li.depth-2 { margin: 0; border-left: 5px solid #555; }
	ol.commentlist li.comment ul.children li.depth-3 { margin: 0; border-left: 5px solid #999; }
	ol.commentlist li.comment ul.children li.depth-4 { margin: 0; border-left: 5px solid #bbb; }
	ol.commentlist li.comment ul.children li.depth-5 {}
	ol.commentlist li.comment ul.children li.odd {}
	ol.commentlist li.even { background-color: #fff; }
	ol.commentlist li.odd { background-color: #f6f6f6; }
	ol.commentlist li.parent { border-left: 5px solid #111; }
	ol.commentlist li.thread-alt {}
	ol.commentlist li.thread-even {}
	ol.commentlist li.thread-odd {}
	
	form {}
	label { display: block; }
	input { display: block; }
	input[type="checkbox"], input[type="radio"] { display: inline-block }
	input[type=text] {}
	textarea {}
	
	.screen-reader-text { position: absolute; left: -9999em; }
	
	/* WP Default Styles */
	
	.wp-caption {}
	.wp-caption-text {}
	.sticky {}
	.gallery-caption {}
	.alignright {}
	.alignleft {}
	.aligncenter {}
	
} /* END screen media */

@media print {
	
	body { 
		width: 100% !important; margin: 0 !important; padding: 0 !important; 
		line-height: 1.4; word-spacing: 1.1pt; letter-spacing: 0.2pt; 
		font-family: Garamond, 'Times New Roman', serif; 
		color: #000; background: none; font-size: 12pt; 
		}
	h1,h2,h3,h4,h5,h6 { font-family: Helvetica, Arial, sans-serif; }
	h1 { font-size: 19pt; }
	h2 { font-size: 17pt; }
	h3 { font-size: 15pt; }
	h4,h5,h6 { font-size:12pt; }
	code { font: 10pt Courier, monospace; } 
	blockquote { margin: 1.3em; padding: 1em; }
	img { display: block; margin: 1em 0; }
	a img { border: none; }
	table { margin: 1px; text-align:left; }
	th { border-bottom: 1px solid #333;  font-weight: bold; }
	td { border-bottom: 1px solid #333; }
	th, td { padding: 4px 10px 4px 0; }
	caption { background-color: #fff; margin-bottom: 2em; text-align: left; }
	thead { display: table-header-group; }
	tr { page-break-inside: avoid; } 
	a { text-decoration: none; color: #000; }
	#comments { page-break-before: always; }
	.do-not-print { display: none; }
	
} /* END print media */

/* correzioni colori MDB */
.btn-primary {
	background-color: var(--primary-color-light);
}
.btn-primary:hover {
	background-color: var(--primary-color);
	border-color: var(--primary-color);
}
.form-check-input[type="checkbox"]:checked {
	background-color: var(--primary-color-light);
}
.accordion-button:not(.collapsed) {
	color: var(--primary-color-light);
}

/* correzioni colori choices.js */
.choices__list--multiple .choices__item {
	background-color: var(--primary-color-light);
	border-color: var(--primary-color-light);
}

/* correzioni theme my login */
.tml-lostpassword,
.tml-login {
	max-width:400px;
	margin:0 auto;
	border:1px solid #666;
	border-radius:20px;
	padding:20px;
}

/* admin bar */
#wpadminbar .ab-icon.my-svg-icon-container {
    display: inline-flex; /* Usa flexbox per allineare l'SVG */
    align-items: center;
    justify-content: center;
    width: 20px; /* Larghezza del contenitore */
    height: 20px; /* Altezza del contenitore */
    vertical-align: middle;
    margin-right: 6px;
}
#wpadminbar .ab-icon.my-svg-icon-container svg {
    fill: #9ca2a7; /* Colore predefinito dell'icona SVG (es. bianco) */
    width: 100%; /* L'SVG prende il 100% della larghezza del suo contenitore */
    height: 100%; /* L'SVG prende il 100% dell'altezza del suo contenitore */
}
#wpadminbar .ab-item:hover .ab-icon.my-svg-icon-container svg {
    fill: #72aee6; /* Colore dell'icona SVG al passaggio del mouse (es. blu di WordPress) */
}

/* theme generic */
.stop-scrolling {
    height: 100%;
    overflow: hidden;
}
#content {
	flex:1;
	position:relative;
	overflow: auto;
	padding:30px;
	font-size:16px;
	font-family:"Roboto",sans-serif;
}
#content_no_margin {
	flex:1;
	position:relative;
	overflow: auto;
	font-size:16px;
	font-family:"Roboto",sans-serif;
}

.text_right {
	text-align:right;
}
.justify {
	text-align:justify;
}
.justify_resp {
	text-align:justify;
}
@media screen and (max-width: 600px) {
	.justify_resp {
		text-align:left;
	}
}
.italic {
	font-style:italic;
}
.bold {
	font-weight:bold;
}
.nomargin {
	margin:0 !important;
}
.margin_10 {
	margin:10px;
}
.margin_top_10 {
	margin-top:10px;
}
.margin_bottom_10 {
	margin-bottom:10px;
}
.margin_left_10 {
	margin-left:10px;
}
.margin_right_10 {
	margin-right:10px;
}
.margin_20 {
	margin:20px;
}
.margin_top_20 {
	margin-top:20px;
}
.margin_bottom_20 {
	margin-bottom:20px;
}
.margin_left_20 {
	margin-left:20px;
}
.margin_right_20 {
	margin-right:20px;
}
.margin_30 {
	margin:30px;
}
.margin_top_30 {
	margin-top:30px;
}
.margin_bottom_30 {
	margin-bottom:30px;
}
.margin_left_30 {
	margin-left:30px;
}
.margin_right_30 {
	margin-right:30px;
}
.margin_40 {
	margin:40px;
}
.margin_top_40 {
	margin-top:40px;
}
.margin_bottom_40 {
	margin-bottom:40px;
}
.margin_left_40 {
	margin-left:40px;
}
.margin_right_40 {
	margin-right:40px;
}
.no_margin {
	margin:0;
}
.no_margin_top {
	margin-top:0;
}
.nomargin_bottom {
	margin-bottom:0;
}
.no_margin_left {
	margin-left:0;
}
.no_margin_right {
	margin-right:0;
}
.padding_top_20 {
	padding-top:20px;
}
.img100 {
	width:100%;
}
.float_right {
	float:right;
}
.red {
	color:var(--ai_error_color);
}
.red_alert {
	color:red;
}
.done_color {
    color:#090;
}
.warning_color {
    color:#f09931;
}
.error_color {
    color:#900;
}
.text_smaller {
	font-size:smaller;
}
.text_larger {
	font-size:larger;
}
.nowrap {
	white-space: nowrap;
}
.action_link {
	cursor:pointer;
}
.action_link_underline:hover {
	text-decoration:underline;
}
.text_title {
	color:var(--primary-color);
	font-weight:bold;
}
.text-btn {
	color:var(--primary-color);
	background:transparent;
	border:none;
	padding:none;
	display:inline;
}
.text-btn:hover {
	text-decoration:underline;
}
a.btn-primary.btn_link {
	color:#FFF;
}
a.btn.btn_link:hover {
	text-decoration: none !important;
}
a:hover {
	text-decoration: underline;
}
a.no_color {
	color:inherit;
}
a.no_hover_underline:hover {
	text-decoration: none;
}
a.disabled {
    cursor: default !important;
	color: #999;
    filter: grayscale(100%);
}
.plain_button {
	all: unset;
}

.cdn_down_alert {
	display:flex;
	flex-direction: row;
	gap:10px;
	align-items: center;
	background-color: rgba(var(--ai_error_color_rgb), 0.2);
	font-weight:bold;
	border: 5px solid var(--ai_error_color);
	border-radius: 3px;
	padding:10px;
	margin-bottom:10px;
}


.ai_text_line_margin {
	margin-bottom:6px;
}
.ai_text_line_margin:last-child {
	margin-bottom:none;
}
.ai_border_list {
	margin:0;
	padding:0;
}
.ai_border_list li {
	border:1px solid var(--border-color);
	border-bottom:none;
	list-style-type: none;
}
.ai_border_list li:last-child {
	border-bottom:1px solid var(--border-color);
}
.ai_border_list_item {
	padding:10px;
	display:block;
}

.ai_icon_fa_button {
	cursor:pointer;
    width:32px;
    height:32px;
    border-radius:50%;
    display:flex;
    justify-content: center;
    align-items: center;
    color:#FFF;
    background-color:var(--primary-color);
}
.ai_icon_fa_button:hover {
    text-decoration:none;
    background-color:rgba(var(--primary-color-rgb),0.5);
	color:#FFF;
}
.ai_icon_fa_button.ai_icon_fa_button_small {
	width:20px;
	height:20px;
}
.ai_icon_fa_button.ai_icon_fa_button_hover {
    color:#999;
    background-color:transparent;
}
.ai_icon_fa_button.ai_icon_fa_button_hover:hover {
	background-color:var(--hover-background-color);
}

/* ai_table */
.ai_tab_wrapper_orizontal_scroll {
    overflow-x:auto;
}
.ai_tab {
    border-collapse: collapse;
}
.ai_tab th,
.ai_tab td {
    padding:10px;
    border:1px solid #CCC;
    text-align:left;
    vertical-align:top;
}
.ai_tab.ai_tab_left th,
.ai_tab.ai_tab_left td,
.ai_tab thead.ai_tab_left th,
.ai_tab thead.ai_tab_left td,
.ai_tab tbody.ai_tab_left th,
.ai_tab tbody.ai_tab_left td,
.ai_tab tfoot.ai_tab_left th,
.ai_tab tfoot.ai_tab_left td,
.ai_tab tr.ai_tab_left th,
.ai_tab tr.ai_tab_left td,
.ai_tab th.ai_tab_left,
.ai_tab td.ai_tab_left {
    text-align:left;
}
.ai_tab.ai_tab_center th,
.ai_tab.ai_tab_center td,
.ai_tab thead.ai_tab_center th,
.ai_tab thead.ai_tab_center td,
.ai_tab tbody.ai_tab_center th,
.ai_tab tbody.ai_tab_center td,
.ai_tab tfoot.ai_tab_center th,
.ai_tab tfoot.ai_tab_center td,
.ai_tab tr.ai_tab_center th,
.ai_tab tr.ai_tab_center td,
.ai_tab th.ai_tab_center,
.ai_tab td.ai_tab_center {
    text-align:center;
}
.ai_tab.ai_tab_right th,
.ai_tab.ai_tab_right td,
.ai_tab thead.ai_tab_right th,
.ai_tab thead.ai_tab_right td,
.ai_tab tbody.ai_tab_right th,
.ai_tab tbody.ai_tab_right td,
.ai_tab tfoot.ai_tab_right th,
.ai_tab tfoot.ai_tab_right td,
.ai_tab tr.ai_tab_right th,
.ai_tab tr.ai_tab_right td,
.ai_tab th.ai_tab_right,
.ai_tab td.ai_tab_right {
    text-align:right;
}
.ai_tab_row_btn_container {
    display:flex;
    gap:20px;
    flex-direction: row;
}

/* round toggle icon */
.ai_round_toggle_icon_link {
    display:flex;
    gap:10px;
    align-items:center;
}
.ai_round_toggle_icon {
    border:1px solid var(--primary-color);
    border-radius:50%;
    padding:10px;
    width:40px;
    height:40px;
    display:flex;
    justify-content:center;
    align-items:center;
    overflow:hidden;
}
.ai_round_toggle_icon_selected {
    background-color: var(--primary-color);
}
.ai_round_toggle_icon_img {
    flex:1;
    width:20px;
}

/* HTML dialog */
::backdrop {
    background-color:#000;
    opacity: 0.75;
}
.ap_dialog_full_page {
    width:100%;
    height:100;
}
.ap_dialog_close_icon {
    position:absolute;
    top:0;
    right:0;
	z-index:10;
}
.ap_dialog_row {
    margin-bottom:20px;
}
.ap_dialog_row_center {
    text-align:center;
}
.ap_dialog_button_container {
    width:100%;
    display:flex;
    gap:20px;
    justify-content:center;
}

.ap_dialog_confirm_title {
    font-size:18px;
    font-weight:bold;
    color:#900;
}
.ap_dialog_confirm_message {
    font-size:18px;
}
.ap_dialog_confirm_highlight {
    font-weight:bold;
}
.ap_dialog_confirm_code {
    font-family:monospace;
    font-size:18px;
    background-color:lightyellow;
    padding:4px;
    display:inline-block;
}
.ap_dialog_confirm_input {
    font-family:monospace;
    width:150px;
    text-align:center;
    margin-top:4px;
}
.ap_dialog_confirm .ap_dialog_button_container {
    justify-content:space-between;
}

/* ap_glass */
.body_stop_scrolling {
	height: 100%;
	overflow: hidden;
}
#ap_glass {
	display:none;
	font-size:16px;
}
#ap_glass_wrapper {
    position:fixed;
    top:0;
    bottom:0;
    left:0;
    right:0;
    background-color:rgba(0,0,0,0.5);
    display:flex;
    justify-content: center;
    align-items:center;
	z-index:999998;
}
/* #ap_glass_message deprecated, use instead .ap_glass_dialog */
.ap_glass_dialog {
	border-radius:10px;
	background-color:#FFF;
	padding:20px;
	min-width:300px;
	max-width:50%;
	min-height:200px;
	max-height:100vh;
	position:relative;
	z-index:999999;
	display:flex;
	flex-direction:column;
}
.ap_glass_dialog_full_page {
	width:calc(100% - 40px);
	height:calc(100% - 40px);
	max-width:100%;
}
#ap_glass_message {
    border-radius:10px;
    background-color:#FFF;
    padding:20px;
	min-width:300px;
    max-width:50%;
	min-height:200px;
    position:relative;
	z-index:999999;
	display:flex;
	flex-direction:column;
}
.ap_glass_padding {
	padding:20px;
}
#ap_glass_close_btn {
    position:absolute;
    top:0;
    right:0;
	z-index:10;
}
.ap_icon_button {
	border-radius:50%;
	width:32px;
	height:32px;
	overflow:hidden;
	display:flex;
    justify-content: center;
    align-items:center;
}
.ap_icon_button:hover {
	background-color:#EEE;
}
.ap_icon_button img {
	width:16px;
}
#ap_glass_content {
	flex:1;
	display:none;
}
#ap_glass_error {
	flex:1;
	display:none;
	font-size:18px;
	color:var(--ai_error_color);
	margin-top:20px;
}
#ap_glass_loading {
	display:flex;
	justify-content: center;
	align-items: center;
	flex:1;
}
#ap_glass_loading img {
	width:75px;
}
.ap_glass_scroll_section {
	max-height:700px;
	overflow-y:Scroll;
}
@media screen and (max-width: 1400px) {
	#ap_glass_message {
		max-width:75%;
	}
}
@media screen and (max-width: 900px) {
	#ap_glass_wrapper {
		align-items: flex-start;
	}
	#ap_glass_message {
		max-width:none;
		margin:20px;
	}
}
@media screen and (max-width: 500px) {
	#ap_glass_message {
		margin:10px;
	}
	.nowrap.responsive_500 {
		white-space: normal;
	}
}
.ai_centered_block_image {
	display: block;
    max-width: 100%;
    margin: 0 auto;
}

.ai_btn_container {
	display: flex;
	justify-content: flex-start;
	gap: 20px;
}
.ai_btn_container_center {
	display: flex;
	justify-content: center;
	gap: 20px;
}
.ai_btn_container_wrap {
	flex-wrap:wrap;
}
.ai_btn_container_margin {
	margin-top:20px;
}
@media screen and (max-width: 500px) {
	.ai_btn_container_wrap {
		flex-direction:column;
	}
}

#ai_system_messages_container {
	display:flex;
	flex-direction:column;
	gap:20px;
}
.ai_system_messages_container_margin_bottom {
	margin-bottom:20px;
}
.ai_system_message_wrapper {
	text-align: center;
}
.ai_system_message_wrapper_left {
	text-align: left;
}
.ai_system_message {
	display:inline-block;
	padding:15px 30px;
	border: 4px solid var(--primary-color);
	border-radius:10px;
}
.ai_system_message_confirm {
	border-color:#61d800;
}
.ai_system_message_warning {
	border-color:#ffc107;
}
.ai_system_message_error {
	border-color:var(--ai_error_color);
}
.ai_breadcrumb {
    font-size:14px;
	margin-bottom:4px;
}
.ai_breadcrumb a {
    color: var(--primary-color);
	white-space: nowrap;
}
.ai_page_title_container {
    margin-bottom:20px;
    display:flex;
    gap:10px;
    align-items:center;
}
.ai_page_title_container_nomargin {
	margin-bottom:0;
}
.ai_page_title {
    margin:0;
	font-size:32px;
	color:var(--primary-color);
}
.ai_page_subtitle {
    color:var(--subtitle-color);
    font-size: 24px;
    line-height: 24px;
}
.ai_page_section {
    margin-top:60px;
}
.ai_page_section_half_margin {
    margin-top:30px;
}
.ai_page_section_anchor {
	margin:0;
	padding-top:30px;
}
.ai_page_section_anchor:first-child {
	padding-top:0;
}
.ai_page_section_title {
    color:var(--primary-color);
	font-size:24px;
    margin:0;
	font-weight:500;
}
.ai_page_section_title_margin {
    margin-top:20px;
}
.ai_page_section_content {
    margin-top:10px;
}
.ai_page_section_content_justify {
	text-align:justify;
}
.ai_highlight {
    font-weight:bold;
}
.ai_text_block {
    text-align: justify;
}
.ai_text_block_expand {
	display:none;
}
.ai_text_block_expand_btn:before {
	content:".. ";
}
.ai_flex_container_row {
	display:flex;
	gap:20px;
}
.ai_button_container {
    margin-top:10px;
}
.ai_button_container_flex {
    display: flex;
    justify-content: space-between;
	margin-top:20px;
}
ul.ai_doc_list {
	margin:0;
	padding:0;
	list-style-type: none;
}
.ai_doc_list_item {
	line-height:24px;
	margin-bottom:10px;
}
.ai_doc_list_item div.ai_doc_list_item_wrapper {
	display:inline-block;
	vertical-align:top;
}
.ai_doc_list_item a {
	display:flex;
	gap:10px;
}
.ai_doc_list_item:last-child {
	margin-bottom:0;
}
.ai_doc_list_icon {
	height:24px;
}
.ai_doc_list_item_hidden {
	display:none;
}
.ai_doc_list_item_archived .ai_doc_list_icon {
	filter: grayscale(1);
}
.ai_doc_list_pub_date {
	color:#666;
	font-size:12px;
}
@media screen and (max-width: 500px) {
	.ai_doc_list_item {
		margin-bottom:20px;
	}
}

.ai_form_900 {
    max-width:900px;
}
.ai_form_section {
    margin-bottom:30px;
}
.ai_form_section_title{
	margin-bottom:20px;
}
.ai_form_section_border {
	border:1px solid #BBB;
	border-radius:4px;
	padding:10px;
    margin-bottom:30px;
	position:relative;
}
.ai_form_section_padding {
	padding:20px;
}
.ai_form_section .ai_form_section_border {
    margin-bottom:20px;
}
.ai_form_section_border_title {
	display: inline;
	color: rgb(79, 79, 79);
	position:absolute;
	top:-7px;
	left:7px;
	font-size: 13px;
	line-height:13px;
	background-color:#FFF;
	padding:0 3px;
}
.ai_form_field_container {
    margin-bottom:20px !important;
}
.ai_form_field_container_add_margin {
    margin-bottom:40px !important;
}
.ai_form_field_container_no_margin {
	margin-bottom:0 !important;
}
.ai_form_field_container:last-child {
    margin-bottom:0;
}
.ai_form_field_add_btn {
	margin-top:10px;
	display:block;
}
.ai_form_select_container {
	position:relative;
}
.ai_form_select_container label {
	z-index:1;
	display: inline;
	color: rgb(79, 79, 79);
	position: absolute;
	top: -7px;
	left: 7px;
	font-size: 13px;
	line-height: 13px;
	background-color: #FFF;
	padding: 0 3px;
}
.ai_form_select {
	width: 100%;
	height:35px;
	background-color: #FFF;
	border: 1px solid #BBB;
	padding: 6px 12px;
	border-radius: 4px;
	color:rgb(79, 79, 79);
}
.ai_form_select option {
	color:rgb(79, 79, 79);
}

.ai_form_radio_container {
	position:relative;
	border:1px solid #bdbdbd;
	border-radius:4px;
	padding: .32rem .75rem;
	display:flex;
	gap:10px 30px;
	justify-content: flex-start;
	flex-wrap: wrap;
	padding-top:10px;
}
.ai_form_radio_container .form-check-label {
	color: rgb(79, 79, 79);
}
.ai_form_radio_label {
	display:inline;
	color: rgb(79, 79, 79);
	position:absolute;
	top:-7px;
	left:7px;
	font-size:13px;
	line-height:13px;
	background-color:#FFF;
	padding:0 3px;
}

.ai_form_text {
	margin-top:6px;
}
.ai_form_text_small {
	font-size:14px;
}
.ai_form_helper_top {
	font-size:14px;
}
.ai_form_validator_error {
	color:var(--ai_error_color) !important;
	display:none;
}
.ai_form_radio_validator_error {
	position: absolute;
	bottom: -22px;
	left: 0;
}
.ui-autocomplete-loading {
	background: white url('../images/icons/loading_horizontal.gif') left center no-repeat !important;
	padding-left:36px !important;
} 
.input-group-form-helper {
	font-size: .875em;
	color: #757575;
}
.custom_choice_input_field .choices__inner {
	z-index:1;
	background-color:#FFF;
	border: 1px solid #BBB;
	border-radius: 4px;
	color: rgb(79, 79, 79);
	font-size:16px;
}
.custom_choice_select_field {
	margin-bottom:20px;
}
.custom_choice_select_field .choices {
	margin-bottom:0;
}
.custom_choice_select_field .choices__inner {
	z-index:1;
	background-color:#FFF;
	border: 1px solid #BBB;
	border-radius: 4px;
	color: rgb(79, 79, 79);
	font-size:16px;
}
.choices__list {
	z-index:2;
}

@media screen and (max-width: 500px) {
	.ai_text_block.responsive_500 {
		text-align: left;
	}
}

/* alert sito */
#ap_alert_container {
	display:flex;
	margin:20px;
	justify-content: center;
	align-items: center;
}
#ap_alert {
	border:4px solid var(--ai_error_color);
	color:var(--ai_error_color);
	font-size:18px;
	padding:20px;
}

/* theme layout */
	/* correzione admin-bar che viene aggiunta da WP */
	body.admin-bar {
	margin-top: 0 !important;
	}
	html {
	margin-top: 0 !important;
	}
	body.admin-bar #ai_header {
		margin-top:32px;
	}
#ai_header {
	height:90px;
	border-bottom:1px solid var(--menu-border-color);
	background-color:#FFF;
	position:relative
}
#ai_header_wrapper {
	display:flex;
	justify-content:space-between;
}
#ai_header_left_wrapper {
	display:flex;
	justify-content:flex-start;
}
#ai_header_right_wrapper {
	display:flex;
	justify-content:flex-end;
	align-items: stretch;
}
#ai_header_title_link {
	padding:20px;
}
#ai_header_logo {
	height:50px;
}
#ai_header_navigation {
	margin:0;
}

.ai_header_navigation_menu {
	list-style-type: none;
	margin:0 0 0 40px;
	padding:0;
	display: table;
	height:90px;
}
.ai_header_navigation_menu .menu-item {
	display:table-cell;
	vertical-align:middle;
	color:var(--menu-item-text-color);
}

.ai_header_navigation_menu .menu-item a {
	vertical-align:middle;
	display:table-cell;
	height:90px;
	color:inherit;
	font-size: 18px;
	text-transform: uppercase;
	font-weight: normal;
	text-decoration:none;
	padding:0 20px;
	box-sizing: border-box;
	border-top:3px solid transparent;
	border-bottom:3px solid transparent;
}
/* .ai_header_navigation_menu .menu-item:hover {
	color:var(--menu-item-selected-text-color);
	background-color:var(--menu-item-selected-background-color);
} */
.ai_header_navigation_menu .menu-item:hover a {
	border-bottom:3px solid var(--primary-color);
} 
.ai_header_navigation_menu .sub-menu .menu-item:hover {
	text-decoration:none;
	color:var(--menu-item-selected-text-color);
	background-color:var(--menu-item-selected-background-color);
} 
.ai_header_navigation_menu .menu-item.current-menu-ancestor>a:after,
.ai_header_navigation_menu .menu-item.current-menu-item>a:after {
	content:" •";
	font-weight: bold;
}
/*.ai_header_navigation_menu .menu-item.current-menu-ancestor>a,
.ai_header_navigation_menu .menu-item.current-menu-item>a {
	color:var(--menu-item-selected-text-color);
} */
.ai_header_navigation_menu .sub-menu {
	display:none;
	position:absolute;
	border:1px solid var(--menu-border-color);
	border-top:none;
	background-color:#F4F4F4;
	margin:0;
	padding:0;
	z-index:100;
    animation: submenuGrowDown 300ms ease-in-out forwards;
    transform-origin: top center;
}
.ai_header_navigation_menu .sub-menu .menu-item {
	display: table;
	width: 100%;
}
.ai_header_navigation_menu .menu-item-has-children:hover .sub-menu {
	display:block;
}
.ai_header_navigation_menu .sub-menu .menu-item a {
	height:60px;
	border-bottom:3px solid transparent;
	text-transform: none;
}


#ai_header_user_navigation {
	display:flex;
	justify-content: center;
	align-items: center;
	padding:0 20px;
	cursor:pointer;
}
#ai_header_user {
	border:1px solid var(--menu-item-text-color);
	border-radius:50%;
	color:var(--menu-item-text-color);
	font-size:24px;
	width:50px;
	height:50px;
	display:flex;
	justify-content:center;
	align-items:center;
}
#ai_header_user_menu_container {
	display:none;
}
#ai_header_user_navigation:hover #ai_header_user {
	background-color:var(--menu-item-selected-background-color);
}
#ai_header_user_navigation:hover #ai_header_user_menu_container {
	position:absolute;
	right:0;
	top:90px;
	display:block;
	z-index:100;
    animation: submenuGrowDown 300ms ease-in-out forwards;
    transform-origin: top center;
}
.ai_header_user_menu {
	border: 1px solid var(--menu-border-color);
	border-top:none;
	background-color: #F4F4F4;
	list-style-type: none;
	margin:0;
	padding:0;
	display: table;
}
#ai_header_user_navigation .menu-item a {
	vertical-align:middle;
	display:table-cell;
	height:60px;
	color:inherit;
	font-size: 18px;
	text-transform: uppercase;
	font-weight: normal;
	text-decoration:none;
	padding:0 20px;
	text-transform: none;
}
.ai_header_user_menu .menu-item:hover {
	color:var(--menu-item-selected-text-color);
	background-color:var(--menu-item-selected-background-color);
}
.ai_header_user_menu .menu-item.current-menu-ancestor>a:after,
.ai_header_user_menu .menu-item.current-menu-item>a:after {
	content:" •";
	font-weight: bold;
}


#ai_header_guest_navigation {
	margin-right:20px;
}


#ai_header_navigation_responsive_container {
	display:none;
	justify-content: center;
	align-items: center;
}
#ai_header_navigation_responsive_separator {
	height:60px;
	border-bottom: 1px solid var(--primary-color-light);
}
#ai_header_navigation_responsive_btn i {
	font-size:32px;
	padding:14px;
	color:var(--primary-color);
}
#ai_header_navigation_responsive {
	position:fixed;
	top:0;
	bottom:0;
	left:-300px;
	width:300px;
	background-color:var(--primary-color);
	color:#FFF;
	z-index: 99;
	overflow-y: scroll;
	/*animation: submenuGrowDown 300ms ease-in-out forwards;
	transform-origin: center left ;*/
}
/*@keyframes respMenuOpen {
    0% { width: 0 }
	80% { width: 340px }
	100% { width: 300px }
}*/
.admin-bar #ai_header_navigation_responsive {
	top:32px;
}
.ai_header_navigation_menu_responsive {
	list-style-type: none;
	margin:0;
	padding:0;
}
.ai_header_navigation_menu_responsive li {
	/*height:60px; */
}
.ai_header_navigation_menu_responsive a {
	border-bottom:1px solid var(--primary-color-light);
	display:block;
	color:#FFF;
	text-decoration: none;
	font-size: 24px;
	line-height:normal;
	padding:15px 10px;
}
.ai_header_navigation_menu_responsive .menu-item.current-menu-ancestor>a:after,
.ai_header_navigation_menu_responsive .menu-item.current-menu-item>a:after {
	content:" •";
	font-weight: bold;
}
.ai_header_navigation_menu_responsive .sub-menu {
	margin:0;
	padding:0;
}
.ai_header_navigation_menu_responsive .sub-menu a {
	padding-left:30px;
}
.ai_header_navigation_menu_responsive .sub-menu .sub-menu a {
	padding-left:60px;
}

@keyframes submenuGrowDown {
    0% { transform: scaleY(0) }
    80% { transform: scaleY(1.1) }
    100% { transform: scaleY(1) }
}
@media screen and (max-width: 782px) {
	.admin-bar #ai_header_navigation_responsive { top: 46px !important; }
}
@media screen and (max-width: 400px) {
	#ai_header_logo {
		height:45px;
	}
	#ai_header_title_link {
		padding:20px 10px 25px;
	}
}
@media screen and (max-width: 350px) {
	#ai_header_logo {
		height:40px;
	}
	#ai_header_title_link {
		padding:10px;
	}
	#ai_header {
		height:60px;
	}
	#ai_header_navigation_responsive_btn i {
		font-size:26px;
		padding:10px;
	}
}

#ai_footer {
	font-size:16px;
	display:flex;
	flex-direction:column-reverse;
	background-color:#e9f1f9;
}
#ai_footer_wrapper {
	display:flex;
	width:100%;
	position:relative;
	padding:20px;
	gap:20px 40px;
	justify-content: space-between;
}
#ai_footer_column_3 {
	text-align:right;
}
.ai_footer_column {
	flex:1;
}
#ai_footer_column_1 {
	display:flex;
	gap:30px;
	justify-content: flex-start;
	align-items:flex-start;
}
#ai_footer_column_2 {
	display:flex;
	gap:20px;
	justify-content: center;
	align-items:flex-start;
}
.footer_social_icon {
	width:32px;
}
.footer_logo_uniud {
	height:60px;
}
.footer_logo_sasweb {
	height:50px;
}
.ai_footer_navigation_label {
	margin-bottom:16px;
	font-weight:bold;
}
#ai_footer_menu_row {
	padding:20px 0;
	text-align:center;
}
.ai_footer_navigation_menu {
	list-style-type: none;
	margin:0;
	padding:0;
	font-size:0;
}
.ai_footer_navigation_menu .menu-item {
	display:inline-block;
	font-size:16px;
	padding-right:20px;
	margin-right:20px;
	border-right:1px solid var(--menu-item-text-color);
	color:var(--menu-item-text-color);
}
.ai_footer_navigation_menu .menu-item:last-child {
	padding-right:0;
	margin-right:0;
	border-right:none;
}
.ai_footer_navigation_menu .menu-item a {
	text-decoration:none;
	color:var(--menu-item-text-color);
}
.ai_footer_navigation_menu .menu-item a:hover {
	text-decoration:underline;
}
.ai_footer_navigation_menu .menu-item.current-menu-item>a:after {
	content:" •";
	font-weight: bold;
}
@media screen and (max-width: 400px) {
	.ai_footer_navigation_menu .menu-item {
		padding-right:10px;
		margin-right:10px;
	}
}

/* correzioni widget */
/*#ai_footer_column_1 .social-icons-widget ul {
	margin:0;
	padding:0;
	display:flex;
	gap:20px;
}
#ai_footer_column_1 .social-icons-widget ul li {
	margin: 0;
}
#ai_footer_column_2 .social-icons-widget ul {
	margin:0;
	padding:0;
	display:flex;
	gap:20px;
	justify-content:center;
}
#ai_footer_column_2 .social-icons-widget ul li {
	display:inline-block;
	margin: 0;
}*/
#page_disclaimer {
	margin-bottom:20px;
}
#page_disclaimer_wrapper {
	background-color: #FFECB3;
	border-radius:6px;
	padding:4px 10px;
	display:inline-block;
} 
.page_disclaimer_wrapper_900 {
	max-width:900px;
}

.widget_polylang {
	font-size:inherit;
}
.widget_polylang ul {
	list-style-type: none;
	margin:0;
	padding:0;
	display: flex;
	gap: 20px;
	justify-content: flex-end;
}
.widget_polylang li {
	height:16px;
}
.widget_polylang a {
	white-space: nowrap;
	display:flex;
	flex-direction:row-reverse;
	color:var(--menu-item-text-color);
	text-decoration:none;
}
.widget_polylang a:hover {
	text-decoration:underline;
	color: var(--menu-item-text-color);
}
.widget_polylang img {
	height:16px !important;
	width:auto !important;
}
.widget_polylang span {
	line-height:16px;
	height:16px;
	margin:0 6px 0 0 !important;
}
.widget_polylang li.current-lang span:before {
	content:"• ";
	font-weight:bold;
}

@media screen and (max-width: 1300px) {
	.ai_header_navigation_menu {
		margin: 0 0 0 20px;
	}
}
@media screen and (max-width: 1350px) {
	.ai_header_navigation_menu {
		margin-left:20px;
	}
}
@media screen and (max-width: 1270px) {
	#ai_header_wrapper {
		justify-content:space-between;
	}
	#ai_header_navigation_responsive_container {
		display:flex;
	}
	#ai_header_navigation,
	#ai_header_guest_navigation,
	#ai_header_user_navigation {
		display:none;
	}
}
@media screen and (max-width: 1024px) {
	.footer_logo_uniud {
		height:50px;
	}
	.footer_logo_sasweb {
		height:40px;
	}
}
@media screen and (max-width: 900px) {
	#ai_footer_wrapper {
		flex-wrap:wrap;
	}
	#ai_footer_column_2 {
		justify-content: flex-end;
	}
	/*#ai_footer_column_1 .social-icons-widget ul {
		flex-direction:row;
		flex-wrap:wrap;
	}
	#ai_footer_column_2 .social-icons-widget ul {
		justify-content: flex-start;
	}*/
}
@media screen and (max-width: 620px) {	
	#ai_footer_column_1 {
		order:3;
	}
	#ai_footer_column_2 {
		justify-content: flex-start;
	}
	.widget_polylang ul {
		flex-direction: column;
	}
}

@media screen and (max-width: 500px) {
	#ai_footer {
		flex-direction:column;
	}
	#ai_footer_menu_row {
		margin-top:20px;
		border-top:none;
	}
	#ai_footer_wrapper {
		flex-direction: column;
		gap:40px;
	}
	#ai_footer_column_1,
	#ai_footer_column_2 {
		justify-content: space-evenly;
	}
	#ai_footer_column_2 {
		order:2;
	}
	.widget_polylang ul {
		justify-content: space-evenly;
		flex-direction: row;
	}
	#content {
		padding:20px;
	}
}
@media screen and (max-width: 400px) {
	#content {
		padding:20px 10px;
	}
	#ai_footer_column_1,
	#ai_footer_column_2 {
		flex-wrap:wrap;
	}
}

/* pag archive, singole, 404 */
.ai_archive_post {
	margin-top:40px;
}

.module {
	position: relative;
}
.module::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	filter: grayscale(100%);
}

/* homepage */
#ai_home_slider {
	position:relative;
	background:#999;
}
.ai_home_slider_container {
	position: absolute;
	right:0;
	left:0;
	top:0;
	bottom:0;
}
.ai_home_slider_button_wrapper {
	margin-top:20px;
	text-align:center;
}
.ai_home_slider_button {
	display:inline-block;
	padding:8px 16px;
	font-size:24px;
	border-radius:30px;
	background-color: #FFF;
	text-decoration: none !important;
}
.ai_home_slider_button:hover {
	text-decoration: none !important;
	background-color: rgba(255, 255, 255, 0.8);
}
.ai_home_slider_button_small_text {
	font-size:16px;
	white-space: nowrap;
}
#ai_home_slider_pagination_wrapper {
	position:absolute;
	bottom:0;
	left:0;
	right:0;
	max-width: 1500px;
	margin: 0 auto;
}
#ai_home_slider_pagination_container {
	padding:10px;
	display:flex;
	gap:20px;
	justify-content: center;
}
.ai_home_slider_pagination {
	border-radius:50%;
	background-color:#FFF;
	border:1px solid #000;
	height:16px;
	width:16px;
	cursor:pointer;
}
.ai_home_slider_pagination.active {
	background-color:#888;
}

/* #ai_home_first_block {
	background-color:var(--primary-color-light);
	margin-bottom:120px;
	margin-top:120px;
	position: relative;
} */
.ai_home_head_container {
	max-width: 1500px;
	gap:20px;
	margin: 0 auto;
	padding: 40px;
	position: relative;
	display:flex;
	height:100%;
	align-items:center;
}
.ai_home_motto_container {
	/*padding:20px;
	/*display:table-cell;
	width:500px;*/
	flex:1;
	text-align:center;
	display: table;
}
.ai_home_motto {
	display:table-cell;
	vertical-align: middle;
	color:#FFF;
	font-size:32px;
	line-height:normal;
	/* font-style:italic; */
	overflow:hidden;
}
.ai_home_image_container {
	flex:1;
	display: flex;
	justify-content: center;
	flex-direction: column;
}
.ai_home_image {
	/*display:table-cell;
	height:600px;
	width:1000px;*/
	width:100%;
}
#ai_home_counter_container {
	/*background-color:var(--primary-color);
	border-radius:20px;*/
	/* position:absolute;
	bottom:-74px; */
	width:100%;
	padding:40px 0;
	background-color:#EEE;
}
#ai_home_counter_wrapper {
	display:flex;
	justify-content:center;
	gap:160px;
}
.ai_home_counter {
	width:220px;
	border-radius:20px;
	background-color:var(--primary-color);
	color:#FFF;
	text-align:center;
	padding:20px;
}
.ai_home_counter_number {
	display:block;
	font-size:72px;
	line-height:72px;
	font-weight:bold;
}
.ai_home_counter_label {
	display:block;
	font-size:30px;
	line-height:36px;
}
@media screen and (max-width: 1600px) {
	.ai_home_motto {
		font-size:28px;
	}
}
@media screen and (max-width: 1388px) {
	.ai_home_motto {
		font-size:24px;
	}
	#ai_home_counter_wrapper {
		gap:100px;
	}
}
@media screen and (max-width: 1100px) {
	/* .ai_home_motto {
		font-size:30px;
	} */
}
@media screen and (max-width: 1000px) {
	.ai_home_head_container {
		flex-direction:column;
		justify-content: center;
		padding-bottom:20px;
	}
	.ai_home_image_container,
	.ai_home_motto_container {
		flex: 0 1 auto;
	}
	/* .ai_home_motto_container {
		padding-top:0;
	} */
	.ai_home_image {
		max-height: 300px;
	}
	/* .ai_home_description {
		font-size:16px;
	} */
}
@media screen and (max-width: 900px) {
	#ai_home_counter_wrapper {
		gap:20px;
		justify-content: space-between;
		padding:0 20px;
	}
	.ai_home_counter_number {
		font-size: 54px;
		line-height: 54px;
	}
	.ai_home_counter_label {
		font-size: 24px;
		line-height: 30px;
	}
}
@media screen and (max-width: 700px) {
	.ai_home_counter_number {
		font-size: 48px;
		line-height: 48px;
	}
	.ai_home_counter_label {
		font-size: 20px;
		line-height: 34px;
	}
	.ai_home_counter {
		padding:10px;
	}
}
/* @media screen and (max-width: 560px) {
	.ai_home_counter_number {
		font-size: 36px;
	}
	.ai_home_counter_label {
		font-size: 22px;
		line-height: 26px;
	}
	#ai_home_counter_container {
		bottom:-50px;
	}
	#ai_home_first_block {
		margin-bottom: 90px;
	}
	#ai_home_padding {
		padding:0 30px 20px;
	}
} */
@media screen and (max-width: 550px) {
	/* #ai_home_first_block {
		margin-bottom: 320px;
	}
	#ai_home_counter_container {
		bottom:-290px;
	} */
	#ai_home_counter_wrapper {
		flex-direction: column;
		align-items: center;
		gap:30px;
	}
}
@media screen and (max-width: 500px) {
	.ai_home_motto {
		font-size:20px;
	}
}

/* #ai_home_padding {
	padding:0 60px 30px;
}
.ai_home_description {
	text-align:justify;
	font-size:20px;
	line-height:1.5;
} */

#ai_home_fourth_block {
	position:relative;
	margin:40px 0;
}
#ai_home_fourth_block_title {
	margin-bottom:20px;
	font-size: 26px;
	text-align:center;
	color:var(--primary-color);
	line-height:normal;
}
#ai_home_news_page_link {
	position:absolute;
	right:20px;
	top:20px;
}

#jcarousel-wrapper-homepage-news {
	padding:0 10px;
	overflow:hidden;
}
.ai_home_news_container {
	border:1px solid var(--border-color);
	position:relative;
	width:500px;
	height:240px;
	padding:16px 20px;
	display:flex;
	flex-direction: column;
	justify-content: space-between;
	overflow:hidden;
	color:#333;
	transform-origin: 0px 0px 0px;
}
.ai_home_news_container:hover {
	background-color:var(--menu-item-selected-background-color)
}
.ai_home_news_meta_container {
	font-style: italic;
	margin-bottom:10px;
}
.ai_home_news_cat_icon {
	width:50px;
	position:absolute;
	top:16px;
	right:16px;
}
.ai_home_news_title {
	font-size:24px;
	margin-bottom:10px;
	line-height:normal;
	height:60px;
	overflow: hidden;
	text-overflow: ellipsis;
	color:var(--primary-color);
	display:-webkit-box;
	-webkit-box-orient:vertical;
	-webkit-line-clamp:2;
	margin-right:50px;
	font-weight:500;
}
.ai_home_news_text {
	/*text-align: justify;*/
	max-height:76px;
	overflow:hidden;
}
.ai_home_news_false_link {
	display:block;
	margin-top:10px;
	color:var(--primary-color);
}
.ai_home_news_false_link:hover {
	text-decoration: underline;
}

/* @media screen and (max-width: 1199px) {	
	#ai_home_fourth_block {
		margin:80px 0 40px;
	}
} */
@media screen and (max-width: 600px) {
	#ai_home_news_page_link {
		position:static;
		text-align:right;
		margin:10px 20px 20px;
	}
	#ai_home_fourth_block_title {
		margin-bottom:0;
	}
	#jcarousel-wrapper-homepage-news .jcarousel-control-prev,
	#jcarousel-wrapper-homepage-news .jcarousel-control-next {
		width:40px;
		height:40px;
		line-height:32px;
		margin-top: -20px;
	}
}
/* @media screen and (max-width: 560px) {
	.ai_home_counter_number {
		font-size: 36px;
	}
	.ai_home_counter_label {
		font-size: 22px;
		line-height: 26px;
	}
	.ai_home_counter {
		padding:10px;
	}
	#ai_home_counter_container {
		bottom:-50px;
	}
	#ai_home_first_block {
		margin-bottom: 90px;
	}
	#ai_home_motto {
		font-size:24px;
	}
	#ai_home_padding {
		padding:0 30px 20px;
	}
}
@media screen and (max-width: 430px) {
	#ai_home_first_block {
		margin-bottom: 320px;
	}
	#ai_home_counter_container {
		bottom:-290px;
	}
	#ai_home_counter_wrapper {
		flex-direction: column;
		align-items: center;
	}
} */


/* JCAROUSEL TODO TROVA UN POSTO MIGLIORE */
.jcarousel-wrapper {
	position: relative;
	/*
    margin: 20px auto;
    border: 10px solid #fff;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    -webkit-box-shadow: 0 0 2px #999;
    -moz-box-shadow: 0 0 2px #999;
    box-shadow: 0 0 2px #999;*/
}
.jcarousel {
    position: relative;
    overflow: hidden;
    width: 100%;
}
.jcarousel.jcarousel_active { /*todo utilizzato?*/
	visibility:hidden;
}
.jcarousel ul {
    width: 10000em;
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
}
.jcarousel li {
    width: 200px;
	padding: 0 20px;
    float: left;
    box-sizing: border-box;
	position:relative;
}
.jcarousel a {
	display:block;
	text-decoration: none;
	/*border-radius:10px;*/
}

/* jcarousel homepage */
#jcarousel_homepage {
}
#jcarousel-wrapper-homepage .jcarosel-item-image {
    display: block;
    max-width: 100%;
    height: auto !important;
}
#jcarousel-wrapper-homepage .jcarosel-item-title {
	display:block;
	color:#FFF;
	font-size:26px;
	padding:10px;
	background-color:var(--primary-color);
	white-space: nowrap;
}
/*#jcarousel-wrapper-homepage .jcarosel-item-title-gradient {
	position:absolute;
	bottom:0;
	top:50%;
	left:20px;
	right:20px;
	background-color:brown;
}*/
/* jcarousel homepage Controls */
.jcarousel-wrapper-homepage .jcarousel-control-prev,
.jcarousel-wrapper-homepage .jcarousel-control-next {
    position: absolute;
    top: calc(50% - 27px);
    margin-top: -25px;
    width: 50px;
    height: 50px;
    text-align: center;
    background: var(--primary-color);
    color: #fff !important;
    text-decoration: none;
    font: 48px/42px Arial, sans-serif;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 6px;
    /*text-shadow: 0 0 1px #000;
	-webkit-box-shadow: 0 0 4px #F0EFE7;
    -moz-box-shadow: 0 0 4px #F0EFE7;
    box-shadow: 0 0 4px #F0EFE7;*/
}
.jcarousel-wrapper-homepage .jcarousel-control-disabled {
    background: var(--border-color-dark);
    color: #999 !important;
}
.jcarousel-wrapper-homepage .jcarousel-control-prev {
    left: -5px;
}
.jcarousel-wrapper-homepage .jcarousel-control-next {
    right: -5px;
}
/* jcarousel homepage Pagination */
.jcarousel-wrapper-homepage .jcarousel-pagination {
    position: absolute;
    bottom: -40px;
    left: 50%;
    -webkit-transform: translate(-50%, 0);
    -ms-transform: translate(-50%, 0);
    transform: translate(-50%, 0);
    margin: 0;
}
.jcarousel-wrapper-homepage .jcarousel-pagination a {
    text-decoration: none;
    display: inline-block;
    font-size: 11px;
    height: 10px;
    width: 10px;
    line-height: 10px;
    background: #fff;
    color: #4E443C;
    border-radius: 10px;
    text-indent: -9999px;
    margin-right: 7px;
    -webkit-box-shadow: 0 0 2px #4E443C;
    -moz-box-shadow: 0 0 2px #4E443C;
    box-shadow: 0 0 2px #4E443C;
}
.jcarousel-wrapper-homepage .jcarousel-pagination a.active {
    background: #4E443C;
    color: #fff;
    opacity: 1;
    -webkit-box-shadow: 0 0 2px #F0EFE7;
    -moz-box-shadow: 0 0 2px #F0EFE7;
    box-shadow: 0 0 2px #F0EFE7;
}
/* 
.jcarousel-destroyed ul {
	width:auto;
	left:auto;
	top:auto;
	display:flex;
	flex-wrap: wrap;
	gap:20px 0;
}
.jcarousel-destroyed .jcarousel-control-prev,
.jcarousel-destroyed .jcarousel-control-next,
.jcarousel-destroyed .jcarousel-pagination-wrapper {
	display:none !important;
} */

@media screen and (max-width: 900px) {
	#jcarousel_homepage {
		margin-bottom:40px;
	}
}
@media screen and (max-width: 560px) {
	#jcarousel_homepage {
		margin-bottom:0;
	}
	#jcarousel-wrapper-homepage {
		margin:20px 30px 40px;
	}
	#jcarousel_homepage li {
		padding:0;
	}
}
@media screen and (max-width: 500px) {
	#jcarousel-wrapper-homepage {
		margin:20px 0 40px;
	}
}

/* index/archive page */
.ai_archive_excerpt {
	display:flex;
	flex-direction: row;
	gap:10px;
	margin-top:10px;
}
#ai_archive_more_post_container {
	text-align:center;
	margin:20px 0;
}
a.ai_excerpt_title {
	color:var(--primary-color);
	font-weight:500;
}

/* contact page */
#ai_contact_page {
	display:table;
	width:100%;
}
.ai_contact_page_col {
	display:table-cell;
	width:50%;
	vertical-align:top;
}
#ai_contact_page_left {
	padding-right:30px;
}
#ai_contact_page_right {
	padding-left:30px;
}
#ai_contact_map {
	width:100%;
	height:431px;
}
.ai_contact_page_text {
	margin-bottom:20px;
}
.ai_contact_page_text:last-child {
	margin-bottom:0;
}
.ai_contact_page_text_large {
	font-size:18px;
}
.ai_contact_page_section {
	margin-top:60px;
}
.ai_contact_form {
	width:100%;
	max-width:900px;
}
.ai_contact_form_row {
	display:flex;
	gap:20px;
}
.ai_contact_form_btn_container_right {
	display:Flex;
	gap:20px;
	justify-content: flex-end;
	margin-top:10px;
}
.ai_contact_form_instruction {
	margin-bottom:10px;
}
@media screen and (max-width: 1024px) {
	.ai_contact_page_col {
		display:block;
		width:100%;
	}	
	#ai_contact_page_left {
		padding:0;
	}
	#ai_contact_page_right {
		padding:40px 0 0;
	}
}

/* CSS pack - Marco */

#mainSvg { width: 100% }

/* barra di ricerca */
#pack-header {
	background-color: transparent!important;
	/*border-bottom: solid rgb(238,238,238) 1px;*/
	right: 0;
	text-align:right;
	position: absolute;
	z-index: 2
} 

/* quando la barra di ricerca va a sx e l'organizzatore si abbassa */
@media screen and (max-width: 985px) { 
	#pack-header { position: relative }
}

/* quando non c'è abbastanza spazio per il bottone di ricerca, tutto si scala*/
@media screen and (max-width: 765px) {
	#search { width: 135px!important;
	font-size: 1.2em }
	
	#pack-header button { padding: 10px 10px!important }
}

/* icona della lente di ingrandimento */
#pack-header img { 
	vertical-align:middle;
}

/* input type search */
#search { width: 130px;
padding: 5px;
margin: 0;
font-size:12px;
display:inline-block;}

/* bottone di ricerca */
#pack-header button { background-color: rgb(22, 80, 120);
padding: 5px 10px;
font-size:12px;}

/* SCHEDA DETTAGLI*/
#dettagli a {
	box-shadow:none;
}

/* TIMELINE */
.logo-overlay { left: 1000px }

/* Pagina progetti pagina progetto */
.page_progetti_img {
	float:right;
	width:500px;
	margin-top:41.6px;
	margin-left:20px;
	margin-bottom:20px;
}
@media screen and (max-width: 900px) {
	.page_progetti_img {
		width:400px;
	}
}
@media screen and (max-width: 700px) {
	.page_progetti_img {
		width:100%;
		margin: 0 0 20px;
	}
}

/* NEWS */
.ai_post .entry {
	margin-top:20px;
}
.ai_post_thumb_default {
	width:200px;
}
.ai_post_image_default {
	width:500px;
}
.ai_post_nav_container {
	display:flex;
	gap:40px;
	justify-content: space-between;
}

#ai_archive_category_filter_container {
	display:flex;
	gap:20px;
	align-items: center;
}
.ai_archive_category_filter_button {
	border:1px solid #999;
    border-radius: 10px;
    padding: 8px 10px;
    box-sizing: border-box;
	text-decoration: none !important;
}
.ai_archive_category_filter_button.active {
	background-color:var(--primary-color-light);
	color:#FFF;
}
#ai_archive_category_filter_nocontent{
	display:none;
	font-style: italic;
}

.ai_post_page_container {
	display:flex;
	gap:20px;
	margin:30px 0;
}
.ai_post_page_container .entry {
	width:100%;
}
.ai_post_image_container img {
	border:1px solid var(--border-color);
	float:right;
	margin-left:20px;
	margin-bottom:20px
}
@media screen and (max-width: 1200px) {
	.ai_post_image_container img {
		width:400px;
		height:auto;
	}
}
@media screen and (max-width: 860px) {
	.ai_post_page_container {
		flex-direction: column;
	}
}
@media screen and (max-width: 700px) {
	.ai_archive_excerpt {
		flex-direction: column;
	}
	.ai_post_page_container {
		flex-direction: column;
	}
}
@media screen and (max-width: 560px) {
	.ai_post_image_container img {
		width:100%;
		height:auto;
	}
}
@media screen and (max-width: 500px) {
	#ai_archive_category_filter_container {
		flex-direction: column;
		align-items: flex-start;
		margin-bottom:40px;
	}
	#ai_single_page .ai_page_title {
		font-size:24px;
	}
	#ai_single_page .meta {
		font-size:14px;
	}
}

/* FORM REGISTRAZIONE E SDIA */
#aggiungi_scuola_dialog-form {
	display:flex;
	gap:20px;
	margin-top:10px;
}
#aggiungi_scuola_dialog-list {
	margin: 20px 0 0;
	padding:0;
	list-style-type: none;
	display:flex;
	flex-direction:column;
	gap:4px;
	overflow-y:scroll;
	max-height:800px;

}
#aggiungi_scuola_dialog-list li {
	border:1px solid #999;
	border-radius:4px;
	padding:4px 6px;
}
#aggiungi_scuola_dialog-list li:hover {
	background:rgba(0,0,0,0.1);
}
#aggiungi_scuola_dialog-form_manuale {
	display:none;

}
.aggiungi_scuola_dialog-form_manuale-row {
	display:flex;
	gap:20px;
	margin-top:10px;
}