﻿/* ================================================================================
   COMWEB
	 (c) 2016 ePublic Srl - www.epublic.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) */

/* -------------------------------------------------------------------------
		HOME PAGE
   ------------------------------------------------------------------------- */

/* --- AREA CUSTOM / CAROUSEL  --- */

#header-carousel {
  overflow-y: hidden;
}

.header-carousel-std {
  max-height: 336px;
}
.header-carousel-nostd {
  max-height: 600px;
}

.carousel-item { transition: transform 0.6s ease-out; /* modifico default BS */ }
.carousel-item figure { margin: 0; }

.header-carousel-std .carousel-item-mobile-img {
  max-height: 100px;
}
.header-carousel-nostd .carousel-item-mobile-img {
  max-height: 320px;
}
@media (min-width: 1024px) {
  #header-carousel .carousel-item-mobile-img {
    width: 100%;
  }
}

/* Caption testata */

@keyframes caption-opacity {
  from { opacity: 0; }
  to { opacity: .85; }
}
#header-carousel .carousel-caption {
  text-shadow: 1px 1px 2px #2A3036;
  opacity: .85;
  animation-name: caption-opacity;
  animation-duration: 2s;
  padding: 1rem;
  background-color: rgba(0, 0, 0, .25)
}
#header-carousel .carousel-caption a { color: #fff; }
#header-carousel .carousel-caption:hover { opacity: 1 }

#caption-row1 { font-size: 1.375rem; }
#caption-row2 { font-size: 1rem; }

@media (min-width: 576px) {
  #caption-row1 { font-size: 1.75rem; }
  #caption-row2 { font-size: 1.125rem; }
}
@media (min-width: 768px) {
  #header-carousel .carousel-caption {
    padding: 1.5rem;
    bottom: 2rem;
  }
  #caption-row1 { font-size: 2rem; }
  #caption-row2 { font-size: 1.25rem; }
}

@media (min-width: 1400px) {
  #header-carousel .carousel-caption { 
    padding: 2rem;
    bottom: 3rem;
  }
  #caption-row1 { font-size: 2.5rem; }
  #caption-row2 { font-size: 1.375rem; }
}


/* --- TITOLI --- */

.widget h3, .home-news h3, .home-event h3 {
	font-size: 1.375rem;
	font-weight: 700;
}


/* --- IN PRIMO PIANO --- */

/* Elemento */

.headline-item {
	margin-top: .5rem;
	margin-bottom: 1rem;
  width: 100%;
  overflow: hidden;
}
@media (min-width: 768px) {
  .headline-item { margin-top: 1rem; }
}
@media (min-width: 992px) {
  .headline-item { height: 360px; }
}
.headline-item-image figure {
	margin: 0;
	width: 100%;
	max-height: 260px;
	overflow: hidden;
	border: 1px solid #dee2e6;
}
@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;
  font-weight: 700;
}
p.headline-item-text {
	font-size: 1.25rem;
}

/* Navigazione */

.headline-nav {
  height: 3rem;
  border-top: 1px solid #dee2e6;
  border-bottom: 1px solid #dee2e6;
  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 #dee2e6; }
.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 base10%*/
  text-decoration: none;
  opacity: 1;
}
.headline-nav-link .ico {
  color: #999; 
  font-size: 2rem;
}
.headline-nav-link a:hover .ico, .headline-nav-link a:focus .ico { /*color base*/ }
.headline-nav-link a:hover span, .headline-nav-link a:focus span { text-decoration: underline; }

/* Indicatori */

#headline-carousel .carousel-indicators {
  position: static;
  width: 100%;
  margin: 0;
}
#headline-carousel .carousel-indicators li {
  background-color: #ccc;
}
#headline-carousel .carousel-indicators li.active {
  /*background-color base*/
  height: 4px;
}
@media (min-width: 768px) {
  #headline-carousel .carousel-indicators {
    position: absolute;
    top: 0;
    right: 0;
    left: auto;
    width: 25%;
    height: 1.25rem;
    padding-top: .25rem;
  }
  #headline-carousel .carousel-indicators li {
    border-top: 0; /* resetto BS */
  }
}

/* Comandi play/pause */

#headline-carousel-play, #headline-carousel-pause {
  width: 30px;
  margin-right: 3px;
  padding-left: 0;
  padding-right: 0;
  text-align: center;
}

/* --- 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 #dee2e6; }
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 */
  margin-bottom: 0;
}

.home-news-body, .home-event-body {
  padding: 1rem 1rem 1.5rem;
}
@media (min-width:768px) {
  .home-news-grid .home-news-body, .home-event-grid .home-event-body {
    height: 17.6rem; /* altezza fissa 317px */
    overflow-y: hidden;
    margin-bottom: .25rem;
    padding: 0;
    border: 1rem solid #F4F5F6;
    /*border-bottom: 0;*/
  }
}

/* icona calendario */
.home-news-date::before, .home-event-date::before, .inner-news-date::before, .inner-event-date::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 400;
  content: "\f133";
  color: #aaa;
  padding-right: .5rem;
}
/* icona clessidra */
.home-end-date::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f253";
  color: #aaa;
  padding-right: .5rem;
}
/* icona luogo (solo uniweb) */
.home-event-place::before, .inner-event-place::before, .detail-event-place::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f041";
  color: #aaa;
  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;
}
/*}*/

/* Su Mobile mostra max 3 elementi in Home page */
@media (max-width: 767px) {
  .grid-sizer, .grid-item:nth-of-type(n+5) {
    display: none;
  }
}

/* --- Versione ad elenco --- */

.home-news-list, .home-event-list { 
	margin-bottom: 1rem;
	max-height: 150px;
	overflow: hidden;
  border: 1px solid #EAEBEC;
}
.home-news-list figure.home-news-image, .home-event-list figure.home-event-image { 
	width: 150px;
	height: 150px;
	overflow: hidden;
  margin-right: 1rem;
	float: left;
}
.home-news-list .home-news-image img, .home-event-list .home-event-image img { 
  width: auto;
	height: 100%;
	position: relative;
	left: 50%;
  transform: translateX(-50%);
  /*-webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);*/
}
.home-news-list .home-news-body, .home-event-list .home-event-body { padding: 1rem; }

@media (min-width: 992px) {
	.home-news-list, .home-event-list { height: 150px; }
  .home-news-list .home-news-body, .home-event-list .home-event-body {
     height: 150px;
     overflow-y: hidden;
     padding: 0;
     border: 1rem solid #f4f5f6;
  }
  .home-news-list figure.home-news-image, .home-event-list figure.home-event-image { margin: 0; }
}
@media (min-width: 1200px) {
	.home-news-list h3, .home-event-list h3 { 
		font-size: 1.3rem;
	}
}
@media (min-width: 768px) {
	.home-news-nofigure { margin-left: 150px; }
}


/* --- WIDGET --- */

.home-widget { 
  margin-bottom: 1.5rem;
  padding-top: .5rem;
  transition-duration: .25s;
}
@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 .ico { 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; }

.badge-home { font-size: .9rem; }


/* --- WIDGET METEO --- */

#widget-meteo-oggi {
	overflow: auto;
	background-color: #F4F5F6;
	padding: .5rem;
	border: 1px solid #EAEBEC;
	border-bottom: 0;
}
#widget-meteo-oggi figure, #widget-meteo-oggi img {
	float: left;
	width: 67px;
  height: 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;
  height: 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;
}


/* --- WIDGET GALLERY --- */

.widget-gallery figure {
  position: relative;
  overflow: hidden;
}
.widget-gallery figcaption::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 400;
  opacity: .5;
}
.gallery-foto figcaption::before {
  content: "\f302";
  padding-right: .5rem;
}
.gallery-video figcaption::before {
  content: "\f144";
  padding-right: .5rem;
}

.widget-gallery figcaption {
  background-color: rgba(255, 255, 255, .75);
  width: calc(100% - .4rem);
  height: 2.5rem;
  line-height: 2;
  position: absolute;
  bottom: .2rem;
  text-align: center;
  font-weight: 600;
  padding: .25rem;
}
.widget-gallery.lead figcaption {
  line-height: inherit;
}
.widget-gallery a:hover figcaption {
  text-decoration: underline;
}

/* --- PRESENTAZIONE --- */

.home-intro-text {
  font-size: 1.125rem;
  font-weight: 300;
}
@media (min-width:768px) {
  .it-hero-wrapper .home-intro-text {
    font-size: 1.25rem;
    font-weight: 400;
  }
}
.it-hero-wrapper .home-intro-text.btn-custom {
  font-size: 1.125rem;
}
.sfondoscuro .home-intro-text, .sfondocolore .home-intro-text {
  color: #f8f9fa;
}
.sfondoscuro .home-intro-text, .sfondocolore .it-hero-wrapper .home-intro-text {
  color: #fff;
}
.sfondoscuro .home-intro-text.btn-custom, .sfondocolore .home-intro-text.btn-custom {
  background-color: #f8f9fa;
  color: inherit !important;
}
.sfondoscuro a.home-intro-text.btn-custom:hover, .sfondocolore a.home-intro-text.btn-custom:hover {
  background-color: #e2e6ea;
}


/* --- 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 #dee2e6;
}
.banner-pp.noborder, .banner-ed.noborder {
  border-color: transparent;
}
.banner-lg {
  width: 240px;
  height: 86px;
}

.ico-bgimg { /* icona con immagine di background */
  background: no-repeat 0 center;
  background-size: 2.5rem;
  opacity: 1 !important;
  margin-right: .5rem;
  min-height: 3rem;
}
.ico-PagoPa { background-image: url(../Img/logo_PagoPA_white.png) }
.ico-PagoPa-blu { background-image: url(../Img/logo_PagoPA.png) }
.ico-BandieraArancione { background-image: url(../Img/logo_BandieraArancione_white.png) }
.ico-App { background-image: url(../Img/logo_Lamiacitta_white.png) }


/* --- WIDGET ELENCO COMUNI UNIWEB/ENTWEB --- */

#widget-comuni .menu-bordered-block {
  font-size: 1.125rem;
  line-height: 1.25;
}
#widget-comuni .menu-bordered-block.home a { min-height: unset; }
#widget-comuni .ico { font-size: 0; }
#widget-comuni img {
  max-width: 3rem;
  max-height: 3rem;
}
#widget-comuni a:focus img { outline: 0 none; }


/* --- WIDGET SERVIZI ENTWEB --- */

.form-sequence select { font-size: 1.125rem; }

@media (min-width: 992px) {
  .form-sequence:not(:last-of-type) select {
    width: 95%;
  }

  .form-sequence:not(:last-of-type):after {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f061";
    position: absolute;
    top: 60%;
    right: 0;
    color: #fc0;
  }
}
