﻿/* ================================================================================
   INFORMA SRL
	 (c) 2018 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) */

/* Fonts: Thin 300 / Regular 400 + italic / Semi-bold 600 / Bold 700 */

/* Colori: Blu #0e71b4 / Verde #41a62a -> #188904 / Arancio #d88a02 -> #ac6500 */

@import "doc.css"; /* STILE DOCUMENTI */

/* -------------------------------------------------------------------------
		STILI GENERICI
   ------------------------------------------------------------------------- */

html, body {
	font-family: 'Titillium Web', sans-serif;
	font-size: 16px;
	background-color: #fff;
}

@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; }
}

/* --- Reset bordi arrotondati bootstrap --- */
* { border-radius: 0 !important; }

/* --- TITOLI e TESTO --- */

h1, h2, h3, h4, h5, h6 { font-weight: 600; }
h1 { font-size: 2rem }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4, .text-bigger { font-size: 1.25rem; }
h5, .text-big { font-size: 1.125rem; }
strong { font-weight: 700; }
b { font-weight: 600; opacity: .9; }
hr { border-color: #ddd; }
ul { list-style-type: square }
.display-4 { line-height: 1.1 }

/* --- BOTTONI --- */

.btn:not(.btn-link) { 
  background-color: #ddd;
  color: initial;
}
.btn:not(.btn-link):hover {
  background-color: #ccc;
}

button:focus { outline: 2px dotted }

/* --- COLORI --- */

.text-blu { color: #0e71b4 !important }
.text-verde { color: #188904 !important }
.text-arancio { color: #ac6500 !important }
.text-grigio { color: #666 !important }
.btn-blu { 
  color: #fff;
  background-color: #0e71b4
}
.btn-verde {
  color: #fff;
  background-color: #188904
}
.btn-arancio {  
  color: #fff;
  background-color: #ac6500
}
.btn-grigio {  
  color: #fff;
  background-color: #666
}
.btn-blu:hover, .btn-blu:focus, .btn-verde:hover, .btn-grigio:hover, .btn-verde:focus, .btn-arancio:hover, .btn-arancio:focus, .btn-grigio:focus { 
  color: #fff;
  background-color: #1A171B
}
.text-shadow-black {
  text-shadow: 1px 0 1px #1A171B, -1px 0 1px #1A171B, 0 1px 1px #1A171B, 0 -1px 1px #1A171B;
}
.text-shadow-white {
  text-shadow: 1px 0 1px #fff, -1px 0 1px #fff, 0 1px 1px #fff, 0 -1px 1px #fff;
}
.border-blu { border-color: #0e71b4 !important }

.sfondochiaro { background-color: #EAEBEC; }

:hover { 
  transition: color 0.25s ease-in-out, background-color 0.25s ease-in-out;
} 

/* BOX-SHADOW */
.btn-default:focus, .btn-outline-default:focus, .btn.focus, .form-control:focus, .form-control-file:focus, .mce-tinymce:focus, .custom-select:focus, a .img-thumbnail:hover, a .img-thumbnail:focus {
  -webkit-box-shadow: 0 0 2px 3px rgba(14, 113, 180, .125);
          box-shadow: 0 0 2px 3px rgba(14, 113, 180, .125);
}
.form-control:focus { border-color: rgba(14, 113, 180, .5);}

/* CHECHBOX */
.custom-control-label::before {
  background-color: #F4F5F6;
  border: 2px solid rgba(0,0,0,.15);
}
.custom-checkbox .custom-control-input:checked ~ .custom-control-label::before, .custom-checkbox .custom-control-input:disabled:checked ~ .custom-control-label::before { background-color: #0e71b4; }
.custom-control-input:disabled ~ .custom-control-label::before { background-color: #dee2e6; opacity: 0.5 }
.custom-control-input:focus ~ .custom-control-label::before { box-shadow: 0 0 0 1px #fff, 0 0 0 0.2rem rgba(14, 113, 180, .5); }

/* --- ICONE --- */

.ico-left { padding-right: .5rem; }
.ico-right { padding-left: .5rem; }
.ico-big { font-size: 1.5rem; }
.ico-small { font-size: 85%; }

/* --- LINK --- */

a { color: #0E71B4; }
a:hover, a:focus { color: #07385A; }
.text-blu:hover { color: #0e71b4 !important }
.text-verde:hover { color: #188904 !important }
.text-arancio:hover { color: #ac6500 !important }
.text-grigio:hover { color: #666 !important }

.goto { text-align: right; }
.goto::before {
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  content: "\f054";
  padding-right: .5rem;
}


/* -------------------------------------------------------------------------
		HEADER
   ------------------------------------------------------------------------- */

/* --- NAVIGAZIONE DESKTOP --- */

#header-nav, #side-nav-top {
  height: calc(48px + 1rem + 2px);
  transition: height 0.125s linear, background-color 0.125s linear;
}
@media (min-width: 576px) {
  #header-nav, #side-nav-top {
    height: calc(48px + (1rem * 1.5) + 1rem + 2px);
  }
}
#header-nav, #side-nav-top {
  background-color: #fff;
  width: 100%;
  border-bottom: 2px solid #0e71b4;
}
#header-nav {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1030;
}
#header-nav .navbar { 
  transition: padding 0.125s linear;
}
#header-nav h1 {
  font-size: 1.75rem;
  padding-top: .75rem;
  float: left;
  color: #fff;
  transition: font-size 0.125s linear, padding 0.125s linear;
}
.navbar-brand { padding: 0; }
.navbar-brand img {
  height: 48px;
  transition: height 0.125s linear, width 0.125s linear;
}
.navbar-brand p { display: none; }
@media (min-width: 576px) {
  .navbar-brand p {
    display: block;
    font-size: 1rem;
    margin: 0;
  }
}
.navbar .nav-item-alt {
  margin-left: 1rem;
  background-color: #eaebec;
}
.navbar .nav-link {
  font-size: 1.125rem;
  text-transform: uppercase;
  transition: font-size 0.125s linear, padding 0.125s linear, background-color 0.125s linear;
}
.navbar .nav-link:hover, .navbar .nav-link:focus, .dropdown-item:hover, .dropdown-item:focus {
  background-color: rgba(14, 113, 180, .125);
}
.navbar .active .nav-link {
  color: #fff;
  background-color: rgba(14, 113, 180, 1);
}
.dropdown-toggle::after {
  transition: border 0.125s linear;
}
.dropdown-toggle:focus::after {
  border-top: 0;
  border-bottom: .3em solid;
}



/* --- NAVIGAZIONE MOBILE --- */

#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;
}

@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: auto;
  right: 0;
  overflow-x: hidden;
  transition: width 0.25s linear;
}
.side-nav-open { width: 75% !important; }
@media (min-width: 576px) and (max-width: 767px) {
  .side-nav-open { width: 50% !important; }
}
@media (min-width: 768px) and (max-width: 991px) {
  .side-nav-open { width: 40% !important; }
}

#side-nav-toggler { 
  font-size: 2rem;
  line-height: 1;
  color: #0e71b4;
  background-color: transparent;
  margin-right: -.75rem;
  border: 1px solid transparent;
  transition: font-size 0.125s linear;
}

#side-nav-top { 
  position: relative;
  background-color: #0e71b4;
}
#side-nav-top a { font-size: 2rem; }

#side-nav-home, #side-nav-close {
  color: #fff;
  background-color: transparent;
  position: absolute;
  top: 0;
  transition: height 0.125s linear, font-size 0.125s linear;
}
#side-nav-home { text-align: left; left: 0; }
#side-nav-close { right: 0; }
#side-nav .nav-link {
  font-size: 1.125rem;
  border-bottom: 1px solid #ddd;
  white-space: nowrap;
}
#side-nav .dropdown-menu {
  position: static !important;
  transform: none !important;
  width: 100%;
  margin-top: 0;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  background-color: #f4f5f6;
}


/* --- Shrink navbar --- */

#header-nav.shrink { 
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1030;
}
#header-nav.shrink, #header-nav.shrink #side-nav-top, #header-nav.shrink #side-nav-close {
  height: calc(69px - 1rem - 1px);
}
@media (min-width: 992px) {
  #header-nav.shrink .navbar { 
    padding-top: 0;
    padding-bottom: 0;
  }
}
#header-nav.shrink .navbar-brand img { 
  height: 32px;
}
#header-nav.shrink .navbar-brand p {
  display: none;
}
#header-nav.shrink .navbar-nav > .nav-item > .nav-link { 
  padding-top: .75rem;
  padding-bottom: .70rem;
  font-size: 85%;
}
#header-nav.shrink #side-nav-toggler, #header-nav.shrink #side-nav-home, #header-nav.shrink #side-nav-close {
  font-size: 1.5rem;
}


/* --- CAROUSEL --- */

#header-carousel {
  margin-top: calc(48px + 1rem + 2px);
}
@media (min-width:576px) {
  #header-carousel {
    margin-top: calc(48px + (1rem * 1.5) + 1rem + 2px);
  }
}
#header-carousel.inner-page {
  max-height: 200px;
  overflow: hidden;
}

/* -------------------------------------------------------------------------
		MAIN
   ------------------------------------------------------------------------- */

main, #main {
  min-height: calc(100vh - 95px - 200px - 48px);
  background-color: rgba(255, 255, 255, 1);
  margin: 0;
  padding: 0;
}

.breadcrumb { margin-bottom: 0; }
.breadcrumb-item { font-size: .9rem; }

/*#main-content { line-height: 0; }*/

/* -------------------------------------------------------------------------
		CONTENUTI
   ------------------------------------------------------------------------- */

.section-row {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

h3.section-title {
  text-transform: uppercase;
}

.box-content {
  background-color: #F9FAFB;
  padding: 1.25rem;
  border: 1px solid #E9ECEF;
}

/* --- CAROUSEL HOME PAGE --- */

/* --- BLOCCHI HOME PAGE --- */

#home-servizi .card { padding: 1rem; }
#home-servizi .card-body { 
  padding-left: .5rem;
  padding-right: .5rem;
}
#home-servizi .card-footer { 
  background-color: transparent;
  border-top: 0;
}
#home-servizi .card .btn {
  float: right;
}


/* --- NEWS --- */

/* Elenco */
@media (min-width: 576px) and (max-width: 991px) {
  .card-columns { column-count: 2; }
}
.card-columns .card { flex-direction: row !important; }

/* Dettaglio */
.detail-attach-item { margin-bottom: .25rem; }
.detail-attach-item:last-of-type { margin-bottom: 0; }
.detail-attach-item i { font-size: 1.125rem; }


/* --- RISORSE --- */

.download-item {
  background-color: #F4F5F6;
  margin-bottom: .5rem;
  padding: .75rem;
  border: 1px solid #eee;
}
.download-item i {
  font-size: 1.25rem;
}

/* -------------------------------------------------------------------------
		FOOTER
   ------------------------------------------------------------------------- */

footer {
  color: #fff;
  font-size: .9rem;
}
footer h1 { font-size: 2rem; }
footer h3 { font-size: 1.25rem; }
footer hr {
  border-top: 1px solid #456A84 !important;
  border-bottom: 1px solid #06304D !important;
}

#footer-top {
  height: 48px;
  background-color: #0E71B4;
}

#footer-main {
  background-color: #07385A;
  padding-top: 2rem;
  padding-bottom: 2rem;
  color: #eaebec;
}
#footer-main a, .cookiebar a {
  color: #C3DBEC;
}
#footer-main a:hover, .cookiebar a:hover {
  text-decoration: underline;
  color: #fff;
}
#footer-main .col { margin-top: .5rem }

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
.footer-nav .nav-link {
  display: inline;
  padding: 0;
}

footer .dropdown-menu {
  position: static !important;
  transform: none !important;
  margin-top: 0;
  padding: .25rem;
  border: 0;
  background-color: transparent;
}
footer .dropdown-item {
  font-size: .825rem;
  padding: 0;
}


 /* --- 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;
	}
}


/* --- COOKIE BAR 2021 --- */

.cookiebar {
  bottom: 0;
  left: 0;
  right: 0;
  display: none;
  position: fixed;
  width: 100%;
  z-index: 1100;
  background-color: rgba(51, 51, 51, .9);
  padding: 1rem 1.5rem;
  text-align: center;
  font-size: 90%;
}
.cookiebar.show {
  display: block;
}
.cookiebar .cookiebar-btn {
  letter-spacing: 1px;
  font-weight: 600;
  text-transform: uppercase;
  display: inline-block;
  line-height: 1rem;
}
.cookiebar .cookiebar-btn:hover {
  text-decoration: underline;
}
.cookiebar .close {
  top: .5rem;
  right: .75rem;
}

@media (min-width: 768px) {
  .cookiebar {
    padding: 1.5rem 2rem;
  }
}


/* -------------------------------------------------------------------------
		STILI PER LA STAMPA
   ------------------------------------------------------------------------- */

@media print {
  #header-nav, #header-nav.shrink { position: static; }
  #header-carousel { margin-top: 0;}
}