/* ================================================================================
   COMWEB 2016
	 (c) 2016-17 ePublic Srl - www.epublic.it
   Basato sulle Linee guida di design per i servizi web della PA - design.italia.it
   ================================================================================ */

/* Default - Extra small devices (< 576px) */
/* SM - Small devices (576px - 767px) */
/* MD - Medium devices (768px - 991px) */
/* LG - Large devices (992px - 1199px) */
/* XL - Extra Large devices (> 1200px) */

/* Fonts: Thin 300 / Normal 400 + italic / Semibold 600 / Bold 700 */

/* -------------------------------------------------------------------------
		STILI GENERICI
   ------------------------------------------------------------------------- */
	 
html, body {
	font-family: 'Titillium Web', sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.55;
	background: #fff;
	color: #1C2024;
	margin: 0;
}
@media (min-width: 768px){
	html, body { font-size: 17px; }
}
@media (min-width: 992px){
	html, body { font-size: 17.5px; }
}
@media (min-width: 1200px){
	html, body { font-size: 18px; }
}

strong { font-weight: 700; }
b { font-weight: 600; }
hr { border-color: #ddd; }
hr.hrstrong { border-width: 3px; }
label { padding-right: .5rem; }

/* --- SPECIFICI PER APP --- */

.d-app-only { display: none; }

/* --- Effetto di transizione globale --- */
*:hover {
	-webkit-transition-duration: 0.25s;
	transition-duration: 0.25s;
}
*:focus { outline: 0 none; }
	
/* --- Reset bordi arrotondati bootstrap --- */
* { border-radius: 0 !important; }

	 
/* --- COLORI --- */

/* <!> DA RIVEDERE <!>
.color-frg24 { color: #a69898; }
.color-frg20 { color: #9c7878; }
.color-frg16 { color: #915a5a; }
.color-frg12 { color: #874040; }
.color-frg8 { color: #7d2828; }
.color-frg4 { color: #731414; }

.color-frg-10 { color: #4f0202; }
.color-frg-20 { color: #360101; }
.color-frg-30 { color: #1c0101; }
.color-frg-40 { color: #030000; } */


/* --- FORM --- */

button, input, optgroup, select, textarea { font-family: 'Titillium Web', sans-serif; }
.form-control { color: inherit; }
.form-control:hover, .custom-select:hover { border-color: #999; }
.form-control:focus, .custom-select:focus { /*border-color base*/ /*box-shadow base*/}
.form-control::placeholder, .form-control::-moz-placeholder { color: #767676; font-weight: 300; }
.form-group { margin-bottom: .75rem; }
.col-form-label { 
  padding-top: .25rem;
  padding-bottom: .25rem;
  line-height: 1.25;
}
/*.custom-radio .custom-control-input:checked ~ .custom-control-indicator, .custom-checkbox .custom-control-input:indeterminate ~ .custom-control-indicator { background-image: none; }*/
.custom-control-input:disabled ~ .custom-control-indicator { background-color: #B2B6B9 !important; }
.custom-control-indicator {
  background-color: #F4F5F6;
  border: 2px solid rgba(0,0,0,.15);
}
.sfondochiaro .custom-control-indicator { background-color: #fff; }
.form-control-file {
  width: 100%;
  padding: .5rem .75rem;
  border: 1px solid rgba(0,0,0,.15);
}

legend, h4.legend { 
  font-size: 1.125rem !important;
  margin-bottom: .75rem;
  padding-top: 1.25rem;
  border-bottom: 1px solid #ddd;
  color: #55585B;
  font-style: italic;
  line-height: inherit;
}

 /* campi annidati sotto i radio */
.form-group-nested {
  margin-bottom: .5rem;
  padding-left: 1.25rem;
}
.form-group-nested input { padding: .25rem .5rem; }

/* google captcha */
.g-recaptcha > div { margin: 0 0 0 auto; }
.g-recaptcha-left > .g-recaptcha > div { margin: 0; }


/* --- DATE PICKER --- */

.bootstrap-datetimepicker-widget table th, .bootstrap-datetimepicker-widget table td span {
  border-radius: initial;
}

/* --- SELECT ---- */

.custom-select {
  width: 100%;
  height: auto;
  margin-bottom: .75rem;
  padding-left: .375rem;
  position: relative;
  color: #2a3036;
  font-weight: 600;
  font-size: 1.125rem;
}
.custom-select option { font-weight: normal; }


/* --- PULSANTI --- */

.btn { cursor: pointer; }
.btn-custom {
	/*background-color base*/
	color: #fff !important;
}
.btn-custom:focus, .btn-custom:hover { /*background-color rollover*/ }
.btn-light, .btn-light:hover { 
  background-color: #fff;
  color: inherit;
  border-color: #ccc;
}
.btn-light.dropdown-toggle { background-color: #F4F5F6; }
.btn-light.dropdown-toggle:hover { background-color: #ddd; }
.btn-none { 
  color: #c6cace;
  background-color: transparent; }


/* --- DROPDOWN --- */

.dropdown-menu { /* sovrascrivo stili bootstrap */
  min-width: unset;
 /* margin-top: 0; */
  padding-top: 0;
  padding-bottom: 0;
  border: 0 none;
  background-color: #F4F5F6;
  box-shadow: 0 5px 10px 0 rgba(0,0,0,.25);
}
.dropdown-item { 
  /*color base*/
  padding: .5rem 1rem;
  border-bottom: 1px solid #EAEBEC;
}
.dropdown-item.active {
  color: #2a3036 !important;
  background-color: #ddd;
}

.dropdown-item:last-child { border-bottom: 0 none; }
.dropdown-item:hover, .dropdown-item:focus, .dropdown-item.active:hover, .dropdown-item.active:focus { 
  color: #fff !important;
  /*background-color base*/
}


/* --- LISTE --- */

/* Unordered list generica */
ul { list-style-type: square; }
ul ul, ol ul, ol ol, ul ol { list-style-type: circle; }

/* Definition list generica */
dl { padding: .75rem; }
dt { margin-bottom: .25rem; }
dd { margin-bottom: 1rem; }


/* --- TREEVIEW --- */

.treeview {
  margin: 0;
  padding: 0;
}
.treeview, .treeview ul { list-style: none; }
.treeview a {
  display: block;
  text-decoration: none;
}
.treeview [aria-expanded] > a::after, .treeview [aria-expanded="true"] > a::after {
  font-family: FontAwesome;
  color: #999;
  position: relative;
  right: -1rem;
  font-weight: 400;
}
.treeview [aria-expanded] > a:hover::after { color: #2a3036; }
.treeview [aria-expanded] > a::after { content: "\f078"; }
.treeview [aria-expanded="true"] > a::after { content: "\f077"; }
.treeview [aria-hidden="true"] { display: none; }
.treeview li a {
  cursor: pointer;
  margin: 0;
  padding: .375rem .25rem;
}
.treeview > li > a:first-child { font-weight: 600; }

.treeview li[tabindex]:focus {
  outline: 2px solid #8E4242 !important;
  background-color: #F4F5F6;
}


/* --- TABELLE --- */

caption { 
  caption-side: top;
  color: #55585B;
}
.table40-60 tbody th { width: 40%; }
.table30-70 tbody th { width: 30%; }
.table20-80 tbody th { width: 20%; }
.table60-40 tbody th { width: 60%; }
.table70-30 thead th:first-of-type { width: 70%; }
.td50 { width: 50%; }
.table-sm th { padding-right: .6rem; }
.table-xs td, .table-xs th {
  font-size: .9rem;
  padding: .25rem .15rem;
}
.table-nowrap td, .table-nowrap th, .cell-nowrap, .cell-nowrap { white-space: nowrap; } /* evita che il testo della cella vada a capo */

@media (min-width: 768px) { /* manda a capo eventuali link lunghi */
  .table-responsive { width: 100%; overflow-x: auto; } /* solo per IE/Edge */
  .table td a, .inner-list-table td a { /*al momento non supportato: */word-wrap: break-word; /* solo Chrome: */word-break: break-word; }
}

.sfondochiaro .table td, .sfondochiaro .table th { border-color: #ccc; }

/* --- IMMAGINI --- */

.img-thumbnail { padding: .2rem; }
a .img-thumbnail:hover, a .img-thumbnail:focus {
  /*border-color base*/
  /*box-shadow base*/
}
a.fresco { cursor: zoom-in; }
.fr-info { font-size: 1rem !important; }  /* didascalia */


/* --- UTILITĀ --- */

.clear-left { clear: left; }
.clear-right { clear: right; }
.clear-none { clear: none !important; }


/* --- TOOLTIP --- */

.tooltip-inner {
  /*background-color base*/
  border: 1px solid #000;
  color: #fff;
}



/* -------------------------------------------------------------------------
		HEADER
   ------------------------------------------------------------------------- */

/* --- AREA APPARTENENZA --- */

#header-top {
	background-color: #2a3036;
	color: #fff;
	height: 48px;
	font-size: 1rem;
	/*font-weight: 600;
	/*overflow: hidden;*/
  position: relative;
}
@media (max-width: 400px){ /* per schermi piccoli */
	#header-top {
		font-size: .825rem;
	}
}
#header-top p {
	padding-top: 1rem;
	line-height: 1.1;
  letter-spacing: -.0125rem;
}
#header-top p a {
	color: #fff;
}	
@media (min-width: 992px) {
	#header-top p {	
    padding-top: .75rem;
    letter-spacing: initial;
    padding-left: .125rem; /* allineamento visivo con h1 */
	}
}
.header-top-logo {
	width: 35px;
	height: 35px;
	margin-top: 6px;
}

/* --- Utente loggato --- */

.header-user {
  font-size: 2rem;
  padding: 0;
}

/* --- Lingue --- */

#header-lang .btn {
  height: 48px;
  /*background-color base*/
  color: #fff;
}
@media (max-width: 767px) {
  #header-lang { padding: 0; }
	#header-lang .btn {	padding: .25rem; }
}
#header-lang .btn:hover, #header-lang .btn:focus {
	/*background-color rollover*/
}
#header-lang .disabled {
  color: #55585B !important;
  background-color: #F4F5F6 !important;
}
#header-lang .dropdown-item { /* padding superiore allo standard */
  padding-left: 1.325rem;
  padding-right: 1.325rem;
}

/* --- AREA NAVIGAZIONE E INTESTAZIONE --- */

#header-main {
	background-color: #fff;
	/*overflow-y: hidden;*/
	padding: 1.5rem 0;
}
#header-main h1, #footer-main h1 {
	font-size: 1.5rem;
	font-weight: 700;
	margin: 0;
	padding: 0;
}
#header-main a {
	/*color base*/
	text-decoration: none;
}
#header-main a:hover, #header-main a:focus { /*color rollover*/ }
#sidenav-toggler { padding: 0; }
.main-logo { max-width: 100%; }
#header-main-logo { text-align: center; } /* IE */
.fa-bars { 
	color: #2a3036;
	font-size: 2.2rem;
}

/* UniWeb */
#header-main h1.uniweb, #footer-main h1.uniweb { font-size: 1.25rem; }
#header-main h1.uniweb small { 
  font-size: 60%;
  padding-top: .25rem;
}

/* Variazioni in funzione del viewport */

@media (max-width: 767px){
	.col-2 {
		/* padding-left: .5rem; */
		padding-right: 0;
	}
}
@media (min-width: 768px){
	#sidenav-toggler::after {
		content: "MENU";
		font-size: .75rem;
    position: relative;
    top: -.3rem;
	}
}
@media (min-width: 768px){
	#header-main h1 { font-size: 1.75rem;	}
  #header-main h1.uniweb { font-size: 1.5rem; }
}
@media (min-width: 992px){
	#header-main h1 { font-size: 2rem; }
  #header-main h1.uniweb { font-size: 1.75rem; }
}
@media (min-width: 1200px){
	#header-main h1 { font-size: 2.2rem; }
  #footer-main h1 { font-size: 1.75rem;	}
  #header-main h1.uniweb { font-size: 1.825rem; }
  #footer-main h1.uniweb { font-size: 1.5rem;	}
}


/* --- Social Networks --- */

#header-social {
	margin-bottom: 1rem;
	overflow-x: visible;
	text-align: right;
}
.btn-social {
  padding: 0;
}
.btn-social i {
	height: 28px;
	width: 28px;
	margin-left: .125rem;
}
.btn-social i.fa {
	font-size: 1rem;
	line-height: 28px;
  text-align: center;
  color: #fff;
  /*background-color base*/
}
.btn-social i.fa:hover, .btn-social i.fa:focus {
	/*background-color rollover*/
}
#header-social .dropdown-toggle::after, #footer-social .dropdown-toggle::after {
  display: none;
}
#header-social .dropdown-item, #footer-social .dropdown-item {
  padding: .375rem .75rem; /* padding inferiore allo standard */
}


/* --- Campo ricerca --- */

@media (min-width: 576px) {
  #header-search-form, .btn-header-search { float: right; }
}
@media (max-width: 575px) {
	.btn-header-search { 
    padding: .5rem;
	}
}
#header-mobile-search, #header-search-form-input1 { background-color: #EAEBEC; }
#header-mobile-search-form { position: relative; }
#header-mobile-search .form-group { width: 100%; }

@media (max-width: 991px) {
  #header-search-form-input2 { 
    width: 88%;
  }
  #header-mobile-search-button { 
    position: absolute;
    right: 0;
    top: 0;
    width: 12%;
  }
}

/* --- MENU MOBILE --- */

@media (min-width: 992px) { 
  #side-nav { display: none; }
}
#side-nav {
    background-color: #fff;
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    overflow-x: hidden;
    transition: 0.25s;
}
.side-nav-open { width: 80% !important; }
@media (min-width: 576px) and (max-width: 767px) {
  .side-nav-open { width: 66% !important; }
}
@media (min-width:768px) and (max-width: 991px) {
  .side-nav-open { width: 50% !important; }
}

/* Pulsante chiusura */
#side-nav-top {
  height: 48px;
  position: relative;
  background-color: #2a3036;
}
#side-nav-top a {
  font-size: 2rem;
  color: #fff !important;
  opacity: .75;
  font-weight: 400;
}
#side-nav-top a:focus, #side-nav-top a:hover {
  color: #fff !important;
  opacity: 1;
}
#side-nav-top .close-icon {
  padding: .25rem 1rem;
  float: right;
}
#side-nav-top .home-link {
  padding: .25rem 1rem;
}


/* Voci di menu */
#side-nav a { /*color base*/ }
#side-nav-menu li a { padding: .5rem 1rem; }

/* level 0 */
#side-nav-menu > li { border-bottom: 1px solid #ddd; }
#side-nav-menu > li > a { font-size: 1.5rem; }
/* level 1 */
#side-nav-menu > li > ul { background-color: #fff; }
#side-nav-menu > li > ul li { border-top: 1px solid #EAEBEC; }
#side-nav-menu > li > ul > li > a { font-size: 1.25rem; padding-left: 1.25rem; }
/* level 2 */
#side-nav-menu > li > ul > li > ul, #side-nav-menu li.goto { background-color: #F4F5F6; }
#side-nav-menu > li > ul > li > ul > li > a { font-size: 1.125rem; padding-left: 1.5rem; }
#side-nav-menu > li > ul > li > ul > li > a:hover, #side-nav-menu > li > ul > li > ul > li > a:focus { background-color: #EAEBEC; }

#side-nav-menu li.fr-tree-focus > a {/*background-color base15%*/}

#side-nav .treeview [aria-expanded] > a::after, #side-nav .treeview [aria-expanded="true"] > a::after {
  position: absolute;
  right: 1rem;
  left: auto;
}
#side-nav-menu .fr-tree-parent ul { padding-left: 0; }


/* Overlay sui contenuti */

#overlay {
  position: fixed;
  display: none;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.5);
  z-index: 9998;
}


/* --- AREA MENU ORIZZONTALE --- */

#header-nav {
	/*background-color base*/
	font-size: 1.125rem;
	text-align: center;
}
#header-nav a {
	color: #fff;
	margin: 0;
  position: relative;
	/*padding: .5rem 1rem;*/
}
#header-nav > a:hover, #header-nav > a:focus, .Megamenu-list > li > a[aria-expanded="true"] {
  color: #1C2024 !important;
	background-color: #F4F5F6;
}
/*.nav-inline { margin: 0 auto; }*/

#header-nav li:focus {
  outline: 2px solid #8E4242 !important;
}


/* --- MEGAMENU --- */

.megamenu-cw { background-color: transparent !important; }
.megamenu-cw ul { list-style: none; margin: 0; padding: 0; }
.megamenu-cw .Megamenu-item > a { padding: 1rem 2.5rem !important; }
.megamenu-cw .Megamenu-list > li > a { font-weight: 600; }
.megamenu-cw .Megamenu-list > li > a[aria-expanded="true"], .megamenu-cw .Megamenu-subnav { background-color: #F4F5F6 !important; }
.megamenu-cw .Megamenu-list > li > a[aria-expanded="false"]::after, .megamenu-cw .Megamenu-list > li > a[aria-expanded="true"]::after {
  font-family: FontAwesome;
  content: "\f078";
  position: absolute;
  font-weight: 300;
  bottom: 25%;
  right: .75rem;
}
.megamenu-cw .Megamenu-list > li > a[aria-expanded="true"]::after { visibility: hidden; }
.megamenu-cw .Megamenu-subnav .row, .megamenu-cw .Megamenu-subnavGroup { width: 100% !important; }
.megamenu-cw .Megamenu-subnav {
  background-color: #F4F5F6 !important;
  padding: 2rem 2.5rem !important;
}
.megamenu-cw .Megamenu-subnav div:last-of-type { padding-right: 0; } /* tolgo padding ultima colonna */
.megamenu-cw .Megamenu-subnavGroup { padding-top: .5rem; }
.megamenu-cw .Megamenu-subnavGroup > li > ul { 
  margin-top: 1rem !important;
  padding-bottom: .4rem !important;
}
.megamenu-cw .Megamenu-subnavGroup > li > a { 
  font-size: 1.25rem !important;
  text-transform: uppercase;
  font-weight: 600;
}
.megamenu-cw .Megamenu-subnavGroup > li > ul > li a { font-size: 1rem !important; }
.megamenu-cw .Megamenu-subnavGroup > li > a, .megamenu-cw .Megamenu-subnavGroup > li > ul > li a, .Megamenu-goto a { color: #1C2024 !important; }
.megamenu-cw .sfondoscuro > .Megamenu-subnavGroup > li > a, .megamenu-cw .sfondoscuro > .Megamenu-subnavGroup > li > ul > li a { color: #fff !important; }
.megamenu-cw .Megamenu-subnavGroup > li > ul > li { margin-bottom: .25rem; border-bottom: 1px solid #EAEBEC; }

.Megamenu.is-ready .Megamenu-subnav.is-open {
  -webkit-box-shadow: 0 80px 80px 0 rgba(0,0,0,.25) !important;
  box-shadow: 0 80px 80px 0 rgba(0,0,0,.25) !important;
}
@media (min-width: 768px) {
  .Megamenu-subnavGroup-alt {
    margin-left: -.75rem !important;
    padding: .75rem !important;
    min-width: calc(100% + 1.5rem) !important;
  }
  .Megamenu-subnavGroup-alt.subtitle {
    padding-top: 0 !important;
  }
  .Megamenu-subnavGroup-alt.subtitle li {
    line-height: 1.1;
  }
  .Megamenu-subnavGroup-alt.subtitle li ul li {
    line-height: initial;
  }
  .Megamenu-subnavGroup-alt.subtitle li a {
    text-transform: inherit;
  }
}
.Megamenu-goto {
  text-align: right;
  width: 100%;
  margin: 1rem 0 0;
  padding: .25rem .75rem;
  font-size: 1.25rem !important;
  font-weight: 600;
  background-color: #EAEBEC;
}


/* --- AREA CUSTOM / CAROUSEL  --- */

#header-carousel { 
  max-height: 336px;
  overflow-y: hidden;
}

@media (max-width: 767px) {
  .carousel-indicators { display: none; }
}
.carousel-item figure { margin: 0; }


/* -------------------------------------------------------------------------
		BRICIOLE
   ------------------------------------------------------------------------- */

div#briciole { border-bottom: 1px solid /*border-color base*/; }

/*@media (max-width: 767px){
  div#briciole { background-color: #F4F5F6; }
}*/

.breadcrumb {
  background-color: transparent;
  padding: 1rem 1rem 0 0;
}
.breadcrumb a { /*color base*/ }
.breadcrumb a:hover, .breadcrumb a:focus { /*color rollover*/ }
.breadcrumb-item { 
  font-size: 1rem;
  float: none;
  display: inline; /* evita che testi lunghi vadano a capo su mobile */
}
.breadcrumb-item.active { color: #666a6e; }

@media (min-width: 992px){
	.breadcrumb-item, .breadcrumb-label {
		font-size: .9rem;
	}
}


/* -------------------------------------------------------------------------
		CONTENUTI
   ------------------------------------------------------------------------- */

div#content .container-fluid, div#briciole .container-fluid {
	padding-left: 0; /* reset padding del .container-fluid */
	padding-right: 0; /* reset padding del .container-fluid */
}

/* ---	RIGHE SEZIONI --- */

.section-row { 
	padding: 2.5rem 0 2rem;
	border-top: 1px solid #EAEBEC;
}
.section-row:first-of-type { /* la prima section non ha il bordo */
	border-top: 0 none;
	padding-top: 2rem;
}
.home-content .section-row { border-top: 2px solid #EAEBEC; }

@media (min-width: 768px) {
  .home-content .section-row { /* padding e border maggiore nella home */
	  padding: 3rem 0 3rem;
  }
}

aside.section-row { padding-bottom: 0; } /* annullo padding sotto il menu laterale */
.section-row p { font-size: 1rem; } /* generico paragrafo */

/* LINK VEDI TUTTI / VAI A */
.goto { 
	font-size: 1.125rem;
  font-weight: 600;
}
.home-goto {
  margin: 1rem 0 0;
	font-size: 1.25rem !important;
  font-weight: normal;
}
.goto-small { font-size: 1rem !important; }
.goto .fa-chevron-right, aside .fa-arrow-up, aside .fa-arrow-down { color: #999; }
.sfondoscuro .goto .fa-chevron-right, .sfondocolore .goto .fa-chevron-right { color: #ccc; }

@media (max-width: 767px) {
  aside.section-row:first-of-type h2 {
    padding-top: 1rem;
    border-top: 2px solid /*border-color base*/;
  }
}


/* --- COLORI e SFONDI --- */

.section-row a { /*color base*/ }
.section-row a:hover, .section-row a:focus { /*color rollover*/ }
.sfondochiaro { background-color: #EAEBEC; }
.sfondoscuro:not(:first-child) { background-color: #2a3036; }
.home-content > .sfondoscuro:not(:first-child) { background-color: #2a3036; }
.sfondocolore { /*background-color base*/ }

.sfondoscuro:not(:first-child) .goto a, .sfondocolore:not(:first-child) .goto a { color: #D4D8DA !important; }
.sfondoscuro:not(:first-child) .goto a:hover, .sfondoscuro:not(:first-child) .goto a:focus, .sfondocolore:not(:first-child) .goto a:hover, .sfondocolore:not(:first-child) .goto a:focus, .sfondoscuro:not(:first-child) h2, .sfondocolore:not(:first-child) h2, .sfondoscuro:not(:first-child) h3.section-title, .sfondocolore:not(:first-child) h3.section-title { color: #fff !important; }

.color-inherit { color: inherit !important; }
.color-light { color: #55585B; }


/* --- TITOLI --- */

h2.page-title { /* titolo pagina */
	font-size: 2rem;
	margin-top: 2rem;
	font-weight: 400;
}
h2.section-title, h3.section-title, h2.nav-title { /* titolo di sezione */
	font-size: 1.625rem;
	font-weight: 600;
	margin-bottom: 1.5rem;
}
h2.section-title a { color: inherit !important; }
h2.nav-title { font-size: 1.5rem; }
.section-row h3 { /* generico h3 */
	font-size: 1.375rem;
	font-weight: 700;
}
.section-row h4 { /* generico h4 */
	font-size: 1.25rem;
}
h3.aside-title, h4.generic-title, .pers-scheda h4 {
	font-size: 1.25rem;
	margin-top: 1rem;
	margin-bottom: 1rem;
	font-weight: 600;
}
h3.aside-title:first-of-type, .pers-scheda h4:first-of-type { margin-top: 0; }

h5 {
	font-size: 1.125rem;
	margin-top: 1rem;
	margin-bottom: 1rem;
	font-weight: 600;
  color: #55585B;
}
h6 { font-weight: 600; }


/* --- LINK ESTERNI --- */

.section-row a[target=_blank]::after, .megamenu-cw a[target=_blank]::after, .footer-menu a[target=_blank]::after, #side-nav-menu a[target=_blank]::after, #search-result a[target=_blank] h5::after, .inner-block a[target=_blank] h4::after {
  font-family: FontAwesome;
  font-size: 80%;
  content: " \f08e";
  font-weight: 400 !important;
}
figure a[target=_blank]::after {
  position: absolute;
  top: 10px;
  right: 30px;
  font-weight: 600 !important;
}
figure.widget-webcam a[target=_blank]::after {
  right: 15px;
}
.media a[target=_blank]::after, .inner-block a[target=_blank]::after, .target-unstyled a[target=_blank]::after {
  display: none;
}
a.underline { text-decoration: underline; }


/* -------------------------------------------------------------------------
		HOME PAGE
   ------------------------------------------------------------------------- */

/* --- IN PRIMO PIANO --- */

/* Elemento */

.headline-item {
	margin-top: 1rem;	
	margin-bottom: 1rem;
  width: 100%;
}
@media (min-width: 992px) {
  .headline-item { height: 360px; }
}
.headline-item-image figure {
	margin: 0;
	width: 100%;
	max-height: 260px;
	overflow: hidden;
	border: 1px solid #ddd;
}
@media (min-width: 768px) {
  .headline-item-image figure { max-height: 360px; /* rapporto 3:2 */ }
}
.headline-item-image img {
	width: 100%;
}
.headline-item-body h3 {
	font-size: 2rem;
	margin-top: 1.5rem;	
	margin-bottom: 1.5rem;
}
p.headline-item-text {
	font-size: 1.25rem;
}

/* Navigazione */

.headline-nav {
  height: 3rem;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  font-size: 95%;
}
@media (min-width: 768px) { 
  .headline-nav {
    margin: 0;
    border: 0;
  }
}
.headline-nav-link { 
  height: 100%;
  padding: 0;
}
.headline-nav-link:first-of-type { border-right: 1px solid #ddd; }
.headline-nav-link a {
  padding: .5rem .75rem;
  display: block;
  width: 100%;
  opacity: .8;
  font-size: 1.125rem;
}
.headline-nav-link a:hover /*, .headline-nav-link a:focus*/ { 
  background-color: #EAEBEC;
  text-decoration: none;
  opacity: 1;
}
.headline-nav-link .fa {
  color: #999; 
  font-size: 2rem;
}
.headline-nav-link a:hover .fa, .headline-nav-link a:focus .fa { /*color base*/ }
.headline-nav-link a:hover span, .headline-nav-link a:focus span { text-decoration: underline; }

/* Indicatori */

#headline-carousel .carousel-indicators {
  top: 0;
  right: 0;
  left: auto;
  width: 25%;
  height: 10%;
  margin: 0;
}
#headline-carousel .carousel-indicators li {
  background-color: #ccc;
}
#headline-carousel .carousel-indicators li.active {
  /*background-color base*/
  height: 4px;
}


/* --- SERVIZI IN EVIDENZA / ELENCO IN AMMINISTRAZIONE TRASPARENTE --- */

.home-evidenza, .detail-list-item {
	display: list-item;
	list-style: none;
	margin-left: 1.4rem;
	position: relative;
  /*font-size: 1.125rem !important;*/
	font-weight: 600;
}
.home-evidenza:before, .detail-list-item:before {
	font-family: FontAwesome;
	content: "\f138";
	color: #999;
	position: absolute;
	left: -1.4rem;
}
.detail-list {
  list-style: none;
  padding-left: 1rem;
}
.detail-list > .detail-list-item {
  margin-bottom: .25rem;
}

/* --- AVVISI-NOTIZIE / APPUNTAMENTI --- */

.home-news, .home-event { background-color: #F4F5F6; }

.sfondoscuro .home-news, .sfondoscuro .home-event, .sfondocolore .home-news, .sfondocolore .home-event { border: 0; }
.home-news-cat, .headline-item-cat { 
	/*color base*/
	font-weight: 600; 
}

/* --- Versione a Griglia --- */

@media (min-width: 768px) {
	.grid { margin: 0 -10px 0 -10px; }
}

.grid-sizer, .grid-item {
	width: 100%;
	height: auto;
	margin-bottom: 1rem;
}
@media (min-width: 768px) {
	.grid-sizer, .grid-item {
		width: 47.5%;
		/* float: left; */
		margin: 0 1.25% 1.5rem 1.25%;
	}
}
@media (min-width: 992px) {
	.grid-sizer, .grid-item {
		width: 30.8333%;
	}
}

.home-news-grid, .home-content > .sfondocolore:first-child .home-event-grid { border: 1px solid #ddd; }
figure.home-news-image, figure.home-event-image { margin: 0; }
.home-news-image img, .home-event-image img { width: 100%; }
.home-news-desc, .home-event-desc { overflow-x: hidden; } /* evita sbordamento del testo in caso di link lunghi */

/* icona calendario */
.home-news-date::before, .home-event-date::before, .inner-news-date::before, .inner-event-date::before {
  font-family: FontAwesome;
  content: "\f133";
  color: #aaa;
  font-weight: normal;
  padding-right: .5rem;
}
/* icona luogo (solo uniweb) */
.home-event-place::before, .inner-event-place::before, .detail-event-place::before {
  font-family: FontAwesome;
  content: "\f041";
  color: #aaa;
  font-weight: normal;
  padding-right: .5rem;
}
/*
@media (max-width: 767px) {
  .home-news, .home-event {
    padding: .75rem;
    overflow: auto;
  }
  .home-news-desc, .home-event-desc { display: none; }
  figure.home-news-image, figure.home-event-image {
    width: 30.8333%;
    float: left;
  }
  .home-news-noimage, .home-event-noimage { margin-left: calc(30.8333% + .75rem); }
  .home-news-body p, .home-event-body p { margin-bottom: .75rem; }
}

@media (min-width: 768px) {*/
figure.home-news-image, figure.home-event-image {
  width: 100%;
  max-height: 240px;
  overflow: hidden;
}
  .home-news-body, .home-event-body { padding: 1rem; }
/*}*/


/* --- Versione ad elenco --- */

.home-news-list, .home-event-list { 
	margin-bottom: 1rem;
	max-height: 150px;
	overflow: hidden;
}
@media (min-width: 1200px) {
	.home-news-list, .home-event-list { height: 150px; }
}
.home-news-list figure.home-news-image, .home-event-list figure.home-event-image { 
	width: 150px;
	height: 150px;
	overflow: hidden;
	margin-right: .75rem;
	float: left;
}
.home-news-list .home-news-image img, .home-event-list .home-event-image img { 
	height: 100%;
	position: relative;
	left: 50%;
  -webkit-transform: translateX(-50%);
      -ms-transform: translateX(-50%);
					transform: translateX(-50%);
}
.home-news-list .home-news-body, .home-event-list .home-event-body { padding: .5rem .75rem; }

@media (min-width: 1200px) {
	.home-news-list h3 { 
		font-size: 1.125rem;
		margin-top: -.5rem;
	}
}
@media (min-width: 768px) {
	.home-news-nofigure { margin-left: 150px; }
}


/* --- WIDGET --- */

.home-widget { 
  margin-bottom: 1.5rem;
  padding-top: .5rem;
}

@media (max-width: 767px) {
  .home-widget {
    padding-bottom: 2rem;
    border-bottom: 1px solid #EAEBEC;
  }
  .home-widget:last-of-type { 
    padding-bottom: 0;
    border-bottom: 0;
  }
}
@media (min-width: 768px) {
  .home-widget { border-right: 1px solid #EAEBEC; }
  .home-widget .carousel { min-height: 180px; }
}
@media (min-width: 992px) {
  .home-widget { margin-bottom: 0; }
  .home-widget:last-of-type { border-right: 0; }
}

.home-widget-item { 
  padding-top: 1rem;
}
.home-widget-nav {
  position: absolute;
  width: 3.5rem;
  top: calc(-1.375rem - .5rem - .25rem);
  right: 1rem;
}
.widget-nav-link { height: calc(1.375rem + .25rem); padding: 0; }
.widget-nav-link .fa { font-size: 1.375rem; }
.widget-nav-link a { display: block; padding: .25rem; }
.widget-nav-link a:hover { background-color: #EAEBEC; }
.widget-nav-link .carousel-control-next, .widget-nav-link .carousel-control-prev { width: auto; }


/* --- WIDGET CALENDARIO --- */

div#widget-calendario-mese {
	height: 2rem;
	line-height: 2rem;
	background-color: #EAEBEC;
	font-size: 1rem;
	text-align: center;
}
div#widget-calendario-mese a {
	color: #999;
	width: 30px;
  cursor: pointer;
}
div#widget-calendario-mese a:hover, div#widget-calendario-mese a:focus { /*color rollover*/ }
div#widget-calendario-giorni table { width: 100%; }
div#widget-calendario-giorni table a {
	/*color base*/
	display: block;
	width: 100%;
	height: 100%;
	font-weight: 700;
	background-color: #EAEBEC;
}
div#widget-calendario-giorni table a:hover, div#widget-calendario-giorni table a:focus {
	color: #fff;
	text-decoration: none;
	/*background-color rollover*/
}
div#widget-calendario-giorni table td, div#widget-calendario-giorni table th {
	font-size: 1rem;
	width: auto;
	padding: .25rem;
	text-align: center;
}
aside div#widget-calendario-giorni table td, aside div#widget-calendario-giorni table th { padding: .125rem; }

div#widget-calendario-giorni td.current { 
  font-weight: 700;
  cursor: help;
}


/* --- WIDGET METEO --- */

#widget-meteo-oggi {
	overflow: auto;
	background-color: #F4F5F6;
	padding: .5rem;
	border: 1px solid #EAEBEC;
	border-bottom: 0;
}
#widget-meteo-oggi figure {
	float: left;
	width: 67px;
	margin-right: 1rem;
	cursor: help;
}
#widget-meteo-prev {
	overflow: auto;
	padding-top: 1rem;
	padding-bottom: 1rem;
	border: 1px solid #EAEBEC;
}
#widget-meteo-prev div {
	width: 33%;
	float: left;
	text-align: center;
	border-left: 1px solid #EAEBEC;
}
#widget-meteo-prev div:first-child { border-left: 0; }
#widget-meteo-prev img {
	width: 50px;
	cursor: help;
}

/* --- WIDGET WEBCAM --- */

.widget-webcam {
	width: 100%;
	max-height: 300px;
	overflow: hidden;
	margin: 0;
	border: 1px solid #EAEBEC;
  position: relative;
}
.widget-webcam img { width: 100%; }

/* --- WIDGET MAPPA --- */

#widget-mappa {
	width: 100%;
  height: 270px;
	margin: 0;
	border: 1px solid #EAEBEC;
}


/* --- SOCIAL WIDGET --- */

@media (max-width: 320px) { #fb-widget { width: 290px; }}
@media (min-width: 360px) { #fb-widget { width: 330px; }}
@media (min-width: 375px) { #fb-widget { width: 345px; }}
@media (min-width: 425px) { #fb-widget { width: 395px; }}
@media (min-width: 768px) { #fb-widget { width: 330px; }}
@media (max-width: 992px) { #fb-widget { width: 290px; }}
@media (max-width: 1200px) { #fb-widget { width: 350px; }}

/* --- ACCESSO RAPIDO / AREA BANNER --- */

.home-banner { 
	max-width: 100%;
	margin: 0 auto 20px;
	display: block;
}
.banner-ar { max-height: 43px; }
.banner-pp, .banner-ed { 
  width: 180px;
  height: 65px;
  border: 1px solid #ddd;
}


/* -------------------------------------------------------------------------
		PAGINE INTERNE
   ------------------------------------------------------------------------- */

/* --- BLOCCHI MENU --- */
/* Blocco testuale */

.inner-block {
	padding: .75rem;
}
.inner-block a {
	color: inherit !important;
}
.inner-block h4 {
	font-weight: 600;
}
.inner-block-disabled h4 {
  font-weight: normal;
  font-size: 1.125rem;
}
.inner-block-disabled .fa {
  font-size: 1.75rem;
}

/* Blocco a pulsante */

.inner-bordered-block {
	background-color: #F4F5F6;
	overflow: hidden;
	padding: .75rem;
	border: 1px solid #ddd;
	box-sizing: border-box;
}
.inner-bordered-block-inverse {
  background-color: #2a3036;
  color: #EAEBEC;
  border: 1px solid #000;
}
.inner-bordered-block a {
	display: block;
	width: 100%;
	height: 100%;
}
.inner-bordered-block-inverse div.fa {
  color: #EAEBEC !important;
}
.inner-bordered-block:hover, .inner-bordered-block:focus {
	/*background-color base*/
	color: #fff;
  /* settaggi per anomalia chrome: */
	-webkit-transition-duration: 0.125s;
	transition-duration: 0.125s;
}
.inner-bordered-block a:hover, .inner-bordered-block a:focus {
	color: #fff;
	text-decoration: none;
  /* settaggi per anomalia chrome: */
	-webkit-transition-duration: initial;
	transition-duration: initial;
}
.inner-bordered-block:hover div.fa, .inner-bordered-block:focus div.fa {
	color: #fff;
}
@media (min-width: 768px) {
	.inner-bordered-block { height: 80px; }
}

div.fa {
	font-size: 2rem;	
	float: left;
	width: 60px;
	height: 100%;
	/*color base*/
}
.inner-bordered-block h4 { display: inline; }


/* --- Introduzione pagina --- */

div.page-intro { margin-bottom: 2rem; }


/* --- DOCUMENTI - LINK --- */
/* ( News, Appuntamenti, Servizi ) */

.detail-attach ul  {
  list-style: none;
  margin: 0;
  padding: 0;
}
.detail-attach li {
  padding-bottom: .5rem;
}
.detail-attach .fa, .doc .fa {
  font-size: 1.25rem;
  padding-right: .5rem;
  width: 1.75rem; /* 32px */
}
.doc { /* documento singolo */
  margin-top: .5rem;
  word-break: break-all;
}

.ico-left { padding-right: .5rem; }
.ico-right { padding-left: .5rem; }

span.ext {
  font-size: .8rem;
  color: #55585B;
  font-weight: 300;
  margin-left: .25rem;
}

/* Tipi documenti */
.fa-file-pdf-o { color: #da251c; }
.fa-file-word-o { color: #2A5699; }
.fa-file-excel-o { color: #207245; }
.fa-file-archive-o { color: #FF9408; }
.fa-file-text-o { color: #4CA1B5; }
.fa-file-text { color: #9D0A10; }
.fa-file-image-o { color: #669933; }
.fa-file-video-o { color: #E62117; }
.fa-file-o { color: #666; }
.fa-external-link-square, .fa-external-link, .fa-link { color: #999; }
.fa-folder, .fa-folder-open { color: #Fc6; }

/* --- Link leggi tutto --- */

.read-more-state { display: none; }

.read-more-target {
  opacity: 0;
  max-height: 0;
  font-size: 0;
  transition: .25s ease;
}

.read-more-state:checked ~ .read-more-wrap .read-more-target {
  opacity: 1;
  font-size: inherit;
  max-height: 999em;
}

/* nascondo target per evitare spazio vuoto */
.read-more-target { display: none; }
.read-more-state:checked ~ .read-more-wrap .read-more-target { display: inline; }

.read-more-state ~ .read-more-trigger:before {
  font-family: FontAwesome;
  content: "\f078";
  padding-right: .5rem;
}
.read-more-state:checked ~ .read-more-trigger:before {
  font-family: FontAwesome;
  content: "\f077";
  padding-right: .5rem;
}

/* Scheda RUBRICHE */
.read-scheda ~ .read-more-wrap { height: 0; }
.read-scheda:checked ~ .read-more-wrap { height: auto; }

.read-more-trigger {
  margin-top: 1rem;
  /*margin-bottom: 1rem;*/
  float: right;
}

/* --- ELENCO GENERICO --- */

.inner-list { 
	margin-bottom: 2rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid #ddd;
}	
.inner-list:last-of-type { 
  margin-bottom: 0;
  border-bottom: 0;
}

/* --- Titoli lista --- */

h3.inner-list-cat, h4.search-cat { /* titolo fuori dalla lista */
	font-weight: 400;
  /*background-color base*/
  color: #fff;
	margin-bottom: 1.5rem;
  padding: .1rem .2rem;
}
.inner-list > h3 { /* titolo nella lista */
	font-size: 1.5rem;
	margin-top: 0;
	font-weight: 600;
}
/*.inner-list a h3, .inner-list a h4 { color: initial; } */

/* --- Immagini lista --- */

.inner-list figure, .inner-news figure, .inner-event figure { 
	/*width: 100%;*/
	height: auto;
  /*max-height: 200px;*/
	/*overflow: hidden; interferisce sul box-shadow durante l'hover sull'immagine. Da valutare se riattivare dopo il crop da codice */
}
.inner-list figure img, .inner-news figure img, .inner-event figure img { width: 100%; }

@media (min-width: 768px) {
	.inner-list figure, .inner-news figure, .inner-event figure, .detail-card figure { 
		/*overflow: hidden;*/
		margin-right: 1rem;
    padding-top: .1rem; /* per allineare meglio al testo */
		float: left;
	}
  figure.image-210 img { max-height: 150px !important; } /* DA ELIMINARE UNA VOLTA FATTO CROP DA CODICE */
}

/* --- Dimensioni immagini --- */

@media (min-width:768px) {
  .image-210 { /* immagine 210px 3:2 - solo >768px (usata in elenchi vivere e rubriche) */
    width: 210px !important;
    height: 140px !important;
  }
  .image-300 { /* immagine 300px 3:2 - solo >768px (usata in elenchi avvisi ed eventi) */
    width: 300px !important;
    height: 200px !important;
  }
}
.image-150 { /* immagine 150px 1:1 - tutte le risoluzioni (usata per foto giunta/consiglio) */
  width: 150px !important;
  max-height: 150px !important;
  overflow: hidden;
}

/* --- Tabelle lista --- */

.inner-list-table th { 
	padding: 0 .5rem 0 0;
}
.inner-list-table th, .inner-list-table td { 
  vertical-align: text-top;
}
@media (min-width:768px) { /* evita che la tabella vada a capo se >768px */
  .table-md-float { width: auto; }
}



/*	SERVIZI AI CITTADINI/IMPRESE
   ------------------------------------------------------------------------- */

/* --- Ricerca --- */

@media (max-width: 575px) {
  #servizi-search-form-input {
    width: 85%;
    float: left;
  }
  #servizi-search-form-button {
    width: 15%;
    float: left;
  }
}
@media (min-width: 576px) {
  #servizi-search-form-input {
    width: 17rem;
  }
}

/* --- Elenco --- */

.list-group-title { margin-top: 2rem; }
.list-group-item { 
  padding: .5rem 1rem;
  background-color: transparent;
}

/* --- Dettaglio --- */

.detail-servizi { margin-bottom: 2rem; }

.detail-servizi h3, .detail-uffici-servizi h3 {
  margin-bottom: .75rem;
  padding-bottom: .15rem;
  border-bottom: 1px solid #ddd;
  font-weight: 600;
}

.detail-servizi-calc { padding: .75rem; border: 1px solid #ddd;}
.detail-servizi-attach ul, .detail-servizi-procedimenti { padding-left: .75rem; }

/* resetto stili bootstrap */ 
select.form-control:not([size]):not([multiple]) { 
  /*height: auto;*/
  padding: .25rem .5rem;
}

/* Ufficio richiamato nei servizi */
/*.detail-servizi h4.card-title, .detail-uffici-servizi*/
.detail-servizi .card-header { padding: .75rem; }


/* --- FILE BROWSER --- */

a.fb-link { cursor: pointer; }
a.fb-link:hover { text-decoration: underline !important; }


/* --- CALCOLO IMU / TASI --- */

#calc-dati-form legend, #calc-riepilogo-table caption {
  font-style: normal;
  font-weight: 600;
  font-size: 1.125rem;
}
.form-help {
  font-size: 125%;
  cursor: help;
  padding-left: 0;
  font-weight: 300;
}
.form-note {
  padding: 0;
  line-height: 1.1;
  color: #070;
}
.input-group-addon { background-color: #EAEBEC; }

.calc-row-title { 
  height: 2.125rem;
  position: relative;
  vertical-align: middle !important;
}
.calc-row-edit {
  position: absolute;
  top: 0;
  left: auto;
  right: .15rem;
}
.calc-cell-input {
  width: 66%;
  background-color: #ffc;
}
.calc-cell-edit {
  vertical-align: baseline;
}

/* --- DB BLIBLIOTECA --- */

#db-biblioteca-risultati h5 {
  color: indigo;
  margin-bottom: 0;
}


/*	UFFICI
   ------------------------------------------------------------------------- */

/* --- Voci collassabili --- */
/* Usate in: Uffici, Aree, Servizi, Contatti */

.card { margin-bottom: .75rem; }
.card-title {
	font-size: 1.5rem;
	font-weight: 600;
  margin: 0;
}
.card-title a {
	display: block;
	width: 100%;
	height: 100%;
}
.card-title a:hover { /*color rollover*/ background-color: transparent !important; }
.card-body .table { margin-bottom: .5rem; }
.card-body tbody > tr:first-of-type > th, .card-body tbody > tr:first-of-type > td { border-top: 0 none; }

.table-timetable td, .table-timetable th {
	font-size: .9rem;
  padding: .15rem 0 0;
	border: 0 none !important;
}
.table-timetable tbody th { font-weight: 400; }	 

 /* link servizi erogati */
.accordion .goto { background-color: #F4F5F6; }
.accordion .goto:hover { background-color: #eaebec; }
.accordion .uffici-servizi {
	padding: .5rem;
  text-align: right;
}

/* resetto stili bootstrap */ 
.card-header { background-color: #F4F5F6; border-bottom: 0; }


/* --- Servizi erogati dall'ufficio --- */

.detail-uffici-servizi {
  margin-top: 2.5rem;
}
.detail-uffici-servizi:first-of-type {
  margin-top: 0;
}
.detail-uffici-servizi h4.list-group-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 1rem;
}
.detail-uffici-servizi h3 {
  font-size: 1.5rem;
}


/*	AREE
   ------------------------------------------------------------------------- */

.aree-uffici { background-color: #F4F5F6; }
.aree-uffici ul { margin-bottom: 0; }
.aree-uffici li { padding: .25rem 0; }
.aree-uffici th { padding-top: .25rem; }

/*	GIUNTA / CONSIGLIO
   ------------------------------------------------------------------------- */

/* --- PAGINA ELENCO --- */

/* --- PAGINA DETTAGLIO --- */

.detail-amministrazione { margin-top: 1.5rem; }
.detail-amministrazione h3 { margin-bottom: 1rem; }
.news-amministrazione {
  background-color: #F4F5F6;
  margin-top: 2rem;
  padding: 1rem;
}
.news-amministrazione h4 { font-size: 1.25rem !important; }
.news-amministrazione .inner-news-date { font-weight: normal; }
.news-amministrazione figure.inner-news-image {
  width: 200px !important;
  height: 150px !important;
}


/*	CONSULTE
   ------------------------------------------------------------------------- */

.detail-consulte { margin-top: 1.5rem; }
.detail-consulte.detail-attach ul { padding: 0.75rem; }


/*	ATTI E PUBBLICAZIONI
   ------------------------------------------------------------------------- */

.table-subtable thead { width: 30%; }
.table-subtable tbody {
  display: table-cell;
  white-space: normal;
}
.table-subtable tr th, .table-subtable tr td {
  padding-top: 0;
  border: 0 none !important;
}
.table-subtable tr th {
  font-weight: 600;
  padding-left: 0;
}	
.table-subtable tr td { padding-right: 0; }

.detail-atti-attach li { padding-bottom: .3rem; }

#year-select {
  width: 100%;
  height: calc(1.25rem + 1rem + 2px);
}

/* --- REGOLAMENTI --- */

.dl-bordered, .div-bordered { border: 1px solid #ddd; }
.dl-bordered { margin-bottom: 2rem; }
.dl-bordered dt { 
  font-size: 1.125rem;
  font-weight: 600;
  background-color: #F4F5F6;
  padding: .125rem .25rem;
}
.dl-bordered dd { padding-left: .75rem; margin-bottom: 1.5rem; }
.dl-bordered dd:last-child { margin-bottom: 1rem; }


/* --- STATI DE: BANDI DI GARA E CONCORSO / SEGNALAZIONI / SONDAGGI / OPERE PUBBLICHE --- */

.stato-incorso, .stato-progettazione { background-color: #81BAEC; } /* azzurro */
.stato-scaduto, .stato-rifiutata { background-color: #ECAAA8; } /* rosso */
.stato-terminato, .stato-chiusa, .stato-completato { background-color: #AEDCAE; } /* verde */
.stato-aperta, .stato-esecuzione { background-color: #ECCCA8; } /* arancione */
.stato-rimossa, .stato-votanti, .num-result { background-color: #CCC; } /* grigio */
.stato-appalto { background-color: #B7B2CA; } /* viola */


/*	UNIWEB: COMUNI
   ------------------------------------------------------------------------- */

.ucomuni-map {
  height: 200px;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
}

.ucomuni-scheda {
  clear: left;
  margin-top: 1rem;
}


/*	AMMINISTRAZIONE TRASPARENTE
   ------------------------------------------------------------------------- */

/* --- PAGINA ELENCO --- */

/* vedi stili .treeview */

/* --- PAGINA DETTAGLIO --- */

aside .fr-tree-parent ul { padding-left: 1rem; /* riduco il rientro quando l'albero č nella colonna laterale */ }
aside .treeview li a { padding: .125rem .25rem; }

.table-trasparenza thead th { background-color: #F4F5F6; }
.table-trasparenza tbody th { font-weight: 600; }
#table-AttiConcessione tbody th { font-weight: 400; }
.table-trasparenza th, .table-trasparenza td { padding-left: .6rem; /*1rem; 1rem per allineare le tabelle come i documenti e gli elenchi obblighi */ }

.detail-trasparenza .card-header {
  font-size: 1.25rem;
  padding: .5rem 1rem;
}
.detail-trasparenza .card-body { padding: 1rem; }


/*	SERVIZI ONLINE
   ------------------------------------------------------------------------- */
	 
#servizi-login-form { margin-bottom: 1rem; }

@media (max-width: 575px) {
  .form-inline .form-group { width: 100%; } /* in teoria dovrebbe farlo in automatico bootstrap, non capisco il motivo */
}

/* --- SEGNALAZIONI --- */
#segnalazioni-select { margin-bottom: 2.5rem; }
#segnalazioni-map, #segnalazioni-photo img { height: 20rem; }
#segnalazioni-list .badge, .table-segnalazioni .badge { 
  font-size: .9rem;
  margin-left: 0;
}

@media (max-width: 767px) {
  .table-segnalazioni td, .table-segnalazioni th { padding: .5rem; }
}

/* --- AREA UTENTE --- */
.fa-user-circle { color: #06B7E8; }
.fa-user-circle-o { color: #808080; }
.fa-user-circle-o:hover { color: #D4D8DA; }

#btn-logout {
  margin-top: 2.25rem;
  padding-left: 0;
}


/*	ELEZIONI E REFERENDUM
   ------------------------------------------------------------------------- */

#election .inner-bordered-block { height: auto; }

.img-symbol { max-width: 150px; }


/*	AVVISI / APPUNTAMENTI
   ------------------------------------------------------------------------- */

/* --- PAGINA ELENCO --- */
	
.inner-news, .inner-event { 
	margin-bottom: 1.5rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid #ddd;
  overflow-y: hidden;
}	
.inner-news:last-of-type, .inner-event:last-of-type { margin-bottom: 0; }	

.inner-news-cat { 
  font-variant: small-caps;
  font-size: 1.25rem;
}

.inner-news-date, .detail-news-date, .inner-event-date, .detail-event-date { font-weight: 600; }
.inner-news-date, .inner-event-date { margin-bottom: .5rem; }

.inner-news h4, .inner-event h3 { /* VERIFICARE SE CONVERTIRE ANCHE .inner-event in H4 */
	font-size: 1.5rem;
	margin-top: 0;
	margin-bottom: 1rem;
	font-weight: 600;
}
/*.inner-news a h4, .inner-event a h3,*/ .inner-news a p, .inner-event a p { color: initial; }

.inner-news-tags {
	clear: left;
	float: right;
}
.inner-news-tags a { padding-right: 1rem; }

/* Navigazione per anno (paginazione) */
.page-item.active .page-link, .page-item.active .page-link:focus, .page-item.active .page-link:hover {
  /*background-color base*/
  /*border-color base*/
}
.page-link {
  /*color base*/
}	 
.page-link:focus, .page-link:hover { /*color rollover*/ }

.card-newsletter { margin-top: 3rem; }


/* --- Eventi principali --- */

.top-event {
  background-color: #F4F5F6;
  padding: 1rem 1rem .5rem;
}
@media (min-width:768px) {
  .top-event-body {
    margin-left: calc(300px + 1rem);
  }
}

/* --- PAGINA DETTAGLIO --- */

p.detail-news-date, p.detail-event-date { font-size: 1.25rem; }

.detail-news figure, .detail-event figure { 
	width: 100%;
	height: auto;
/*max-height: 240px;
	overflow: hidden;*/
}

@media (min-width: 576px) {
  .detail-news figure, .detail-event figure {
    max-height: 360px;
    overflow: hidden;
  }
  .detail-news figure img, .detail-event figure img {
    min-width: 360px; /* dimensione della miniatura standard */
  }
  /* immagini verticali */
  .detail-news figure.vertical-image, .detail-event figure.vertical-image {
    width: auto;
  }
  .detail-news figure.vertical-image img, .detail-event figure.vertical-image img {
    min-width: inherit;
    width: auto;
    max-height: 360px;
  }
}
.detail-news figure img, .detail-event figure img { max-width: 100%; }

.detail-title { 
  font-size: 1.25rem !important;
	font-variant: small-caps;
  font-weight: 400 !important;
  color: #55585B;
	margin-top: 1.5rem;
	margin-bottom: .75rem;
}

.detail-event-desc {
  font-size: 1.125rem;
  background-color: #F4F5F6;
  padding: .75rem;
}

.detail-event-map #inner-map { max-height: 300px; }


/*	SCHEDA DEL COMUNE
   ------------------------------------------------------------------------- */

figure.scheda-municipio {
  width: 100%; 
	max-width: 320px;
	height: 220px;
	margin-right: 1.25rem;
	float: left;
}
figure.scheda-municipio img {
	width: 100%;
}

/*	MAPPA
   ------------------------------------------------------------------------- */

#inner-map {
  width: 100%;
  height: 25rem;
  margin-bottom: 1rem;
}

/*	VIVERE LA CITTĀ - GUIDA TURISTICA
   ------------------------------------------------------------------------- */

/* --- PAGINA ELENCO --- */

.list-table-guidaturistica { width: 100%; }
.list-guidaturistica:last-child { border-bottom: 0 !important; }
.list-guidaturistica h4 { font-weight: 600; }
.list-table-guidaturistica tbody th { font-weight: normal; width: 25% !important; }
.list-table-guidaturistica td { padding: 0; }

/* Filtro categorie */

#list-filter {
  background: #EAEBEC;
  margin-bottom: 1rem;
  padding: 1rem;
  position: relative;
  min-height: 2.25rem;
}
.btn-openclose { 
  position: absolute;
  top: .375rem;
  right: .5rem;
  font-weight: 600;
}
.list-filter-check { 
  padding-top: .75rem;
  padding-bottom: .25rem;
}
.form-check { margin-bottom: .5rem; }
.form-check-input { margin-right: .25rem; }


/* --- PAGINA DETTAGLIO --- */

.detail-source { 
  font-size: 90% !important;
  font-weight: 300;
  margin-top: 1rem;
}
@media (min-width: 992px) {
  .detail-guidaturistica td { /* manda a capo indirizzi web o mail molto lunghe */
    word-break: break-all;
  }
}

/* Storia e territorio */
.detail-card figure { 
  width: 300px;
  height: auto;
}

/*	GALLERIA IMMAGINI
   ------------------------------------------------------------------------- */

#photo-gallery img { 
  margin-top: .75rem;
  margin-bottom: .25rem;
}
.dropdown-select { /* combo scelta galleria o tipologia segnalazioni */
  width: 100%;
  margin-bottom: .5rem;
}
.dropdown-select .dropdown-title { 
  width: calc(100% - 41px);
  overflow-x: hidden;
  text-align: left;
}
.dropdown-select .dropdown-toggle { width: 41px; }
.dropdown-select .dropdown-menu { width: 100%; }
.dropdown-select .dropdown-item { max-width: 100%; overflow-x: hidden; }


/*	RUBRICHE
   ------------------------------------------------------------------------- */

.card-desc { color: #55585B; }
figure.image-rubrica {
  float: left;
  margin-right: 1rem;
  margin-bottom: .25rem;
  overflow-y: hidden;
}


/*	COMUNICATI/RASSEGNA STAMPA
   ------------------------------------------------------------------------- */

.dl-bb dd {
  padding-bottom: 1rem;
  border-bottom: 1px solid #ddd;
}
.dl-bb dd:last-child {
  border-bottom: 0;
}
.stampa-testata {
  font-weight: normal;
  font-style: italic;
}
.stampa-testata::before {
  content: " - "
}

/*	SONDAGGI/QUESTIONARI
   ------------------------------------------------------------------------- */

.badge { 
  color: inherit;
  margin-left: .25rem;
}
.progress-custom { background-color: transparent; }
.progress-custom .progress-bar {
  height: 1.125rem;
  line-height: 1.125rem;
  position: relative;
}
.progress-custom span { 
  padding-left: .5rem;
  color: initial;
}

/*	CONTATTI
   ------------------------------------------------------------------------- */

.card-body h4 { 
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 2px solid #EAEBEC;
  font-weight: 600;
}
.card-body h4:first-of-type { 
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.table-contatti th { font-weight: 400; }


/*  AREA RISERVATA
   ------------------------------------------------------------------------- */

.fa-lock { color: #CA6; }

.validation-summary-errors {
  padding: 0.75rem 1.25rem;
  margin-bottom: 1rem;
  color: #721c24;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
}
.validation-summary-errors ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.validation-summary-errors li::before {
  font-family: FontAwesome;
  content: "\f071";
  padding-right: .5rem;
}


/*  PAGINA RICERCA NEL SITO
   ------------------------------------------------------------------------- */

#search-form-input { width:calc(100% - 50px); }
#search-form-button { width: 50px; }

#search-result .media { margin-top: 1.5rem; }
.media h5 { color: inherit; }

/* -------------------------------------------------------------------------
		MENU LATERALE
   ------------------------------------------------------------------------- */

@media (min-width: 992px) {
	aside.section-row {
		padding-left: 30px;
	}
}
.nav-pills-aside .fa {
	padding-right: .5rem;
}
.nav-pills-aside .nav-link { 
	background-color: #F4F5F6;
	margin-bottom: .5rem;
}
.nav-pills-aside .nav-item.open .nav-link, .nav-pills-aside .nav-link.active, .nav-pills-aside .nav-link.active:focus, .nav-pills-aside .nav-link.active:hover {
	/*background-color base*/
}
.nav-pills-aside .nav-link:focus, .nav-pills-aside .nav-link:hover {
	background-color: #ddd;
}
@media (max-width: 991px){
   .detail-nav .nav-link {
    margin-right: 2%;
    float: left;
  }
}
@media (max-width: 575px){
   .detail-nav .nav-link { width: 48%; }
}
@media (min-width: 576px) and (max-width: 767px) {
  .detail-nav .nav-link { width: 31.33%; }
}
@media (min-width:768px) and (max-width: 991px) {
  .detail-nav .nav-link { width: 18%; }
}


/* -------------------------------------------------------------------------
		FOOTER
   ------------------------------------------------------------------------- */

footer {
	background-color: #2a3036;
	color: #fff;
	margin-top: 2rem;
}
footer a, .CookieBar a { color: #c6cace; }
footer a:hover, footer a:focus, #footer-feedback a:hover, #footer-feedback a:focus, .CookieBar a:hover, .CookieBar a:focus { color: #fff; text-decoration: underline; }


 /* --- Link di ritorno ad inizio pagina --- */
 
#totop {
	font-size: 1.5rem;
	text-align: center;
	width: 50px;
	height: 50px;
	line-height: 50px;
	position: fixed;
	bottom: 5%;
	right: 5%;
	z-index: 999;
	background: #ddd;
	color: #2a3036;
  opacity: 0;
	visibility: hidden;
	transition: opacity 0.5s ease-out;
}
#totop.show {
  opacity: 0.5;
	visibility: visible;
}
#totop:hover, #totop:focus {
	/*color base*/
  opacity: 1;
}
@media (min-width: 768px) {
	#totop {
		font-size: 2rem;
		width: 60px;
		height: 60px;
		line-height: 55px;
	}
}


/* --- BARRA DI FEEDBACK --- */

#footer-feedback {
	height: 3rem;
	line-height: 3rem;
	/*background-color base*/
	text-align: right;
}
#footer-feedback a { color: #D4D8DA; }

/* --- AREA CONTATTI E MENU --- */

#footer-main { padding: 1rem 0; }
#footer-main h1 { font-weight: 600; }
#footer-main h1 a { color: #fff; }
h2.footer-title {
	color: #fff;
	font-weight: 600;
	font-size: 1.375rem;
	margin-top: 2rem;
}
#footer-main p, .footer-menu li {
	font-size: 1rem;
}
.footer-menu.list-unstyled li {
  border-bottom: 1px solid #434547;
}

#footer-main-logo {
  width: 76px;
  background-color: #fff;
  margin-right: 1.5rem;
  margin-bottom: 0;
  padding: .5rem;
  border-radius: 50% !important;
}


/* --- Social Networks --- */


#footer-social .btn-social i {
	height: 36px;
	width: 36px;
	margin-left: .175rem;
}
#footer-social .btn-social i.fa  {
	font-size: 1.25rem;
	line-height: 36px;
}

/* --- AREA BOTTOM --- */

#footer-bottom {
	padding: 1rem 0;	
	border-top: 1px solid #c6cace;
}
.list-inline-item { padding-right: 1rem; }

.footer-stats img { 
  position: absolute;
  height: 0;
  right: 10000px;
}

/* --- COOKIES --- */

.CookieBar {
  bottom: 0;
  display: none;
  left: 0;
  position: fixed;
  width: 100%;
  z-index: 1200;
  color: #fff;
  background-color: #2a3036;
  opacity: 0.9;
  padding-top: 1rem;
  padding-left: 1rem;
}


/* --- 404 --- */

.alert-warning { color: #584625; }

/* -------------------------------------------------------------------------
		PAGINE CUSTOM
   ------------------------------------------------------------------------- */

.pers-scheda img.float-left { margin: .25rem .5rem .25rem 0; }
.pers-scheda img.float-right { margin: .25rem 0 .25rem .5rem; }
