.img-rounded{
	border-radius: 3px;
	max-width:800px;	
}

.rslides_container img{
	width:100%;	
	height:auto;	
}

.polimi-container{margin:0 auto; padding: 0;} 
/* Small Devices (sm Tablets, 576px and up) */
@media (min-width: 576px) { 
	.polimi-container{
		max-width:540px;
	}   
}
/* Medium Devices (md Desktops, 768px and up) */
@media (min-width: 768px) { 
	.polimi-container{
		max-width:720px;
	}    
}
/* Large Devices (lg Desktops, 992px and up) */
@media (min-width: 992px) { 
	.polimi-container{
		max-width:960px;
	}  
}
/* Extra Large Devices (xl Large Desktops, 1200px and up) */
@media (min-width: 1200px) { 
	.polimi-container{
		max-width:1140px;
	}     
}
/* Extra Extra Large Devices (xxl Large Desktops, 1400px and up) */
@media (min-width: 1400px) { 
	.polimi-container{
		max-width:1320px;
	}      
}

.bg-slide {
    position: relative; /* Necessario per posizionare il pseudo-elemento */
    height: 550px; /* Imposta l'altezza che preferisci */
    background-size: cover;
    background-position: center;
}

.bg-slide::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 400px; /* Altezza della sfumatura */
    background: linear-gradient(
        to top,
        rgba(249, 249, 251, 1) 0%,    /* #F9F9FB opaco (100%) */
        rgba(249, 249, 251, 0) 100%   /* #F9F9FB trasparente (0%) */
    );
    pointer-events: none;
}

.bg-slide.no-gradient::after {
    display:none;
}

.rslides_container .bg-slide{
	background-size:cover;
	background-position:center center;
	background-repeat:no-repeat;
	display:block;
	/*padding-top:calc(1280px/3.41);*/
	padding-top:700px;
	position:relative;
	background-color:#FFF;
	height:0;
	width:100%;
	overflow:hidden;	
}

@media only screen and (min-width: 0) and (max-width: 428px) {
	.rslides_container .bg-slide{
		padding-top:300px;
	}
	.bg-slide::after {
		height: 180px; /* Altezza della sfumatura */
	}
}

/*
@media only screen and (min-width: 501px) and (max-width: 1279px) {
	
}
*/


.howto{
	font-size:90%;
	color:#999;
	font-style: italic;
}

.slideshow .wp-list-table .column-id, 
.slideshow .wp-list-table .column-order { width: 5%; }
.slideshow .wp-list-table .column-image { width: 100px; }
.slideshow .wp-list-table .column-title { width: 25%; }
.slideshow .ui-datepicker-trigger:before {
    font-family: FontAwesome !important;
    content: "\f073";
}

.slideshow-update-nag-wrapper {
    position: relative;
}

.slideshow-update-nag {
    vertical-align: middle;
}

#adminmenu .toplevel_page_slideshow-slides div.wp-menu-image:before,
.mce-i-gallery:before, 
.slideshow-update-nag:before, 
#wpadminbar .slideshow-lite a:before {
    font-family: 'FontAwesome' !important;
    content: "\f03e";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 18px;
}

.slideshow-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #0074a2;
    background-position: center 24px;
    -webkit-background-size: 85px 85px;
    background-size: 85px 85px;
    color: #78c8e6;
    font-size: 14px;
    text-align: center;
    font-weight: 600;
    margin: 5px 0 0;
    padding: 15px 0;
    display: inline-block;
	width: 150px;
    text-rendering: optimizeLegibility;
    -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}

#wpadminbar .slideshow-lite {}

#wpadminbar .slideshow-lite a {}

#wpadminbar .slideshow-lite-listlimit {}

#wpadminbar .slideshow-lite-listlimit a {}

#wpadminbar .slideshow-lite-subscriberlimit {}

#wpadminbar .slideshow-lite-subscriberlimit a {}

#wpadminbar .slideshow-lite-emaillimit {}

#wpadminbar .slideshow-lite-emaillimit a {}

#wpadminbar .slideshow-lite-submitserial {}

#wpadminbar .slideshow-lite-submitserial a:before {
    content: '' !important;
}

#wpadminbar .slideshow-lite-submitserial a {
    color: green !important;
    background: white;
    font-weight: bold;
}

#wpadminbar .slideshow-lite-upgrade {}

#wpadminbar .slideshow-lite-upgrade a:before {
    content: '' !important;
}

#wpadminbar .slideshow-lite-upgrade a {
    color: red !important;
    background: white;
    font-weight: bold;
}

#message.slideshow.updated, 
#message.slideshow.error {
	padding-right: 38px;
	position: relative;
}

.slideshow #message a {
	text-decoration: none;
}

.slideshow-icon-delete {
	text-decoration: none !important;
}

.slideshow .ui-slider {
	margin: 10px 0;
	background: #CCCCCC;
}

.slideshow .ui-slider-handle {
	cursor: ew-resize !important;
	background: #333333;
}

.slideshow .slider-value {
	float: right;
	font-size: 80%;
	font-weight: bold;
	border: 1px #000000 solid;
	border-radius: 999px;
	padding: 2px 5px;
	vertical-align: top;
	text-align: center;
	background: #000000;
	color: #ffffff;
}

.slideshow .iris-picker {
	position: absolute;
	z-index: 999;
}

.slideshow input.wp-color-picker {
	margin: 0 6px 6px 0 !important;
}

img.slideshow_dropshadow,
.slideshow img.dropshadow,
a.thickbox img.slideshow, 
a.colorbox img.slideshow,
.slideshow .img-rounded {
    /*border-radius: 50%;
    -moz-border-radius: 50%;
    -webkit-border-radius: 50%;*/
    border-radius: 6px;
}

.galleryhelp a,
.galleryhelp a:hover, 
.galleryhelp a:active {
	text-decoration: none;
	color: #333;
}

.ui-tooltip {
	padding: 8px;
	position: absolute;
	z-index: 9999;
	max-width: 300px;
	-webkit-box-shadow: 0 0 5px #aaa;
	box-shadow: 0 0 5px #aaa;
	background: white;
	border-width: 2px;
	border-radius: 4px;
	-moz-border-radius: 4px;
	-webkit-border-radius: 4px;
}

.slideshow_error, 
.slideshow_error a {
    color: #CC0000 !important;
}

.slideshow_success, 
.slideshow_success a {
    color: #629632 !important;
}

.slideshow_warning, 
.slideshow_warning a {
    color: #e66f00;
}

/* Sortable */

ul.connectedSortable {
	float: left;
	width: 100%;
}

span.gallery_slides_convert_list a,
span.gallery_slides_convert_grid a{
	text-decoration: none;
}

.sortable-elements {
	display:inline-block;
}


.sortable-form-table-element {
	cursor: grab;
	background-color: #F1F1F1;
	background-image: -ms-linear-gradient(top,#F9F9F9,#ECECEC);
	background-image: -moz-linear-gradient(top,#F9F9F9,#ECECEC);
	background-image: -o-linear-gradient(top,#F9F9F9,#ECECEC);
	background-image: -webkit-gradient(linear,left top,left bottom,from(#F9F9F9),to(#ECECEC));
	background-image: -webkit-linear-gradient(top,#F9F9F9,#ECECEC);
	background-image: linear-gradient(top,#F9F9F9,#ECECEC);
	-moz-border-radius:3px;
	-webkit-border-radius:3px;
	border-radius:3px;
	border:1px solid #DFDFDF;
}

.ui-sortable-helper {
	cursor: grabbing;
	cursor: -moz-grabbing;
	cursor: -webkit-grabbing;
}

/*


*/

/** jQuery UI **/

.ui-corner-all {
	-webkit-border-radius: 4px;
	border-radius: 4px;
	-moz-border-radius: 4px;
}

/* Overlays */
.ui-widget-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.slideshow-ui-tooltip {
    padding: 8px;
    position: absolute;
    z-index: 9999;
    max-width: 300px;
    -webkit-box-shadow: 0 0 5px #aaa;
    box-shadow: 0 0 5px #aaa;
    background: #000000;
    opacity: .8;
	filter: alpha(opacity=80);
	zoom: 1;
    border-width: 2px;
    border-radius: 4px;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
}

.slideshow-ui-tooltip .ui-tooltip-content {
	font-size: 12px;
	background-color: #000;
	color: #fff !important;
	text-align: center;
	white-space: normal;
}

.slideshow-ui-tooltip .ui-tooltip-content a {
	color: #fff;
}

body .ui-tooltip {
	border-width: 2px;
}


.slide_title{
	font-size:20px;
}

.slide_commento{
	font-size:12px;
	margin-top:8px;
}

.rslides_tabs {
    display: flex !important;
    justify-content: center;   /* centra i bottoni */
    gap: 0px;                  /* spazio tra i pallini */
    list-style: none;
    padding: 0;
}

.rslides_tabs li {
    display: block;
}


.fixed-home-slide {
	position: relative;
}

.fixed-home-slide .rslides-home-caption {
	position: absolute;
	left: 0;
	/*bottom: 40px;*/
	bottom: 0;
	width: 100%;
	z-index: 3;
}

.fixed-home-slide .fixed-home-slide-inner {
	padding: 0 26px;
	/*max-width: 420px;*/
	text-align: left;
}

.fixed-home-slide .slide_logo_wrap,
.fixed-home-slide .slide_title,
.fixed-home-slide .slide_commento {
	display: block !important;
	width: 100%;
	float: none !important;
	clear: both !important;
	text-align: left !important;
}

.fixed-home-slide .slide_logo_wrap {
	margin: 0 0 18px 0;
}

.fixed-home-slide .slide_logo {
	display: block;
	max-width: 220px;
	height: auto;
	margin: 0;
	border-radius: 12px;
	/*opacity:1;*/
}

.fixed-home-slide .slide_title {
	margin: 0;
	font-size:2.8em;
	line-height:1.3em;
	font-weight:700;
	color:#102C53;
}

.fixed-home-slide .slide_commento {
	margin: 0;
	font-size:2em;
	line-height:1em;
	font-weight:700;
	color:#102C53;
}