/*!
 * Start Bootstrap - Freelancer v5.0.4 (https://startbootstrap.com/template-overviews/freelancer)
 * Copyright 2013-2019 Start Bootstrap
 * Licensed under MIT (https://github.com/BlackrockDigital/startbootstrap-freelancer/blob/master/LICENSE)
 
 Nuovi colori:
 RAL 7021 #212529
 RAL 9011 #23272A
 */

body {
  font-family: 'Lato';
}

h1{
    font-weight: 400;
}
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  font-family: 'Montserrat';
}

@font-face {
  font-family: 'Copperplate';
  src: url(fonts/CopperplateGothicBold.ttf) format('truetype'); /*fonts/CopperplateGothicStd32BC.ttf*/
  font-weight: normal;
  /*src: url(fonts/Copperplate.woff) format('woff');*/
}

@font-face {
  font-family: 'EncodeSans';
  src: url(fonts/EncodeSansExpanded-ExtraBold.ttf) format('truetype');
}


section {
  padding: 6rem 0;
}

section h2 {
  font-size: 2.25rem;
  line-height: 2rem;
}

@media (min-width: 992px) {
  section h2 {
    font-size: 3rem;
    line-height: 2.5rem;
  }
}

.btn-xl {
  padding: 1rem 1.75rem;
  font-size: 1.25rem;
}

.btn-social {
  width: 3.25rem;
  height: 3.25rem;
  font-size: 1.25rem;
  line-height: 2rem;
}

.scroll-to-top {
  z-index: 1042;
  right: 1rem;
  bottom: 1rem;
  display: none;
}

.scroll-to-top a {
  width: 3.5rem;
  height: 3.5rem;
  background-color: rgba(33, 37, 41, 0.5);
  line-height: 3.1rem;
}

#mainNav {
  padding-top: 1rem;
  padding-bottom: 1rem;
  font-weight: 700;
  font-family: 'Montserrat';
}
  
#page-title {
  color: #fff;
  font-family: 'Copperplate';
  text-transform: none;
  font-weight: 400;
}

#mainNav .navbar-brand {
  color: #fff;
}

#mainNav .navbar-nav {
  margin-top: 1rem;
  letter-spacing: 0.0625rem;
}

#mainNav .navbar-nav li.nav-item a.nav-link {
  color: #fff;
  transition: color .2s ease-out;
}

#mainNav .navbar-nav li.nav-item a.nav-link:hover {
  color: #AAAAAA;
}

#mainNav .navbar-nav li.nav-item a.nav-link:active, #mainNav .navbar-nav li.nav-item a.nav-link:focus {
  color: #fff;
}

#mainNav .navbar-nav li.nav-item a.nav-link.active {
  color: #888888;
}

#mainNav .navbar-toggler {
  font-size: 80%;
  padding: 0.8rem;
}

@media (min-width: 992px) {
  #mainNav {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    -webkit-transition: padding-top 0.3s, padding-bottom 0.3s;
    transition: padding-top 0.3s, padding-bottom 0.3s;
  }
  #mainNav .navbar-brand {
    font-size: 2em; /*-----------------------------------USARE REM?*/
    -webkit-transition: font-size 0.3s;
    transition: font-size 0.3s;
  }
  #mainNav .navbar-nav {
    margin-top: 0;
  }
  #mainNav .navbar-nav > li.nav-item > a.nav-link.active {
    color: #fff;
    /*background: #17A2B8;*/
    background: #222222;
  }
  #mainNav .navbar-nav > li.nav-item > a.nav-link.active:active, #mainNav .navbar-nav > li.nav-item > a.nav-link.active:focus, #mainNav .navbar-nav > li.nav-item > a.nav-link.active:hover {
    color: #fff;
    /*background: #17A2B8;*/
    background: #222222;
  }
  #mainNav.navbar-shrink {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
  #mainNav.navbar-shrink .navbar-brand {
    font-size: 1.5em; /*-----------------------------------USARE REM?*/
  }
}

/* Sfondo nell'header e grandezza uguale alla dimensione schermo
header{
  height: 100vh;
  min-height: 720px;
  background-image: url("../img/gallery/1.jpg");
}*/

header.masthead {
  padding-top: calc(6rem + 72px);
  padding-bottom: calc(6rem + 30px); /*6rem*/
}

header.masthead .container {
  max-width: 80%; /*40*/
  /*background-color: #FFF;*/
  padding: 40px 0px;
  /*border-radius: 50%*/

}

header.masthead h1 {
  font-family: 'Copperplate';
  font-size: 6rem; /*7*/
  line-height: 4rem; /*5*/
  color: #003374;
  /*text-shadow: -3px 3px #638A7E;*/
}

header.masthead h2 {
  font-size: 2rem;
  font-family: 'EncodeSans'; /*Lato*/
  color: #2f3234; /*=RAL7021 - ex #1A252F*/
}

@media (min-width: 992px) {
  header.masthead {
    padding-top: calc(6rem + 74px);
    padding-bottom: 6rem;
  }
  header.masthead h1 {
    font-size: 6em; /*-----------------------------------USARE REM?*/
    line-height: 4rem;
  }
  header.masthead h2 {
    font-size: 2em; /*-----------------------------------USARE REM?*/
  }
}

.separator-dot {
  color: #003374;
  font-weight: bold;
}

.portfolio img {
  max-height: 100%;
}

.floating-label-form-group {
  position: relative;
  border-bottom: 1px solid #e9ecef;
}

.floating-label-form-group input,
.floating-label-form-group textarea {
  font-size: 1.5em;
  position: relative;
  z-index: 1;
  padding-right: 0;
  padding-left: 0;
  resize: none;
  border: none;
  border-radius: 0;
  background: none;
  -webkit-box-shadow: none !important;
  box-shadow: none !important;
}

.floating-label-form-group label {
  font-size: 0.85em; /*-----------------------------------USARE REM?*/
  line-height: 1.764705882em;
  position: relative;
  z-index: 0;
  top: 2em;
  display: block;
  margin: 0;
  -webkit-transition: top 0.3s ease, opacity 0.3s ease;
  transition: top 0.3s ease, opacity 0.3s ease;
  vertical-align: middle;
  vertical-align: baseline;
  opacity: 0;
}

.floating-label-form-group:not(:first-child) {
  padding-left: 14px;
  border-left: 1px solid #e9ecef;
}

.floating-label-form-group-with-value label {
  top: 0;
  opacity: 1;
}

.floating-label-form-group-with-focus label {
  color: #17A2B8;
}

form .row:first-child .floating-label-form-group {
  border-top: 1px solid #e9ecef;
}

.footer {
  padding-top: 5rem;
  padding-bottom: 5rem;
  background-color: #333333; /*Stellantis new color*/
  color: #fff;
}

.copyright {
  background-color: #000000; /*Stellantis new color*/
}

a {
  color: #17A2B8;
}

a:focus, a:hover, a:active {
  color: #FFF;
}

.btn {
  border-width: 2px;
}

.bg-primary {
  background-color: #222222 !important;
}

.bg-secondary {
  background-color: #111111 !important;
}

.bg-tertiary {
  background-color: #333333 /*#425C75*/ !important;
}

.text-primary {
  color: #17A2B8 !important;
}

.text-secondary {
  color: #2C3E50 !important;
}

.btn-primary {
  background-color: #2C3E50;
  border-color: #1A252F;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  background-color: #2C3E50;
  border-color: #2C3E50;
}

.btn-secondary {
  background-color: #2C3E50;
  border-color: #2C3E50;
}

.btn-secondary:hover, .btn-secondary:focus, .btn-secondary:active {
  background-color: #1a252f;
  border-color: #1a252f;
}

.description{
	font-size: 1.4rem;
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.servizi{
	font-size: 1.8em; /*2*/ /*-----------------------------------USARE REM?*/
	font-weight: lighter;
	color: #303030;
	text-align: left;
	/*width: 354px; 392*/
	margin: 0 auto;
	display: inline-block;
}

.servizi div{
    opacity: 0; /*nascondiamo al inizio*/
	margin: 0;
}

@keyframes servizi {  100% { opacity: 1; } }
 
.servizi div { animation: servizi .5s forwards; } 
.servizi div:nth-child(1) { animation-delay: 0.15s; }
.servizi div:nth-child(2) { animation-delay: 0.3s; }
.servizi div:nth-child(3) { animation-delay: 0.45s; }
.servizi div:nth-child(4) { animation-delay: 0.6s; }
.servizi div:nth-child(5) { animation-delay: 0.75s; }
.servizi div:nth-child(6) { animation-delay: 0.9s; }
/*.servizi div:nth-child(7) { animation-delay: 1.05s; }*/

.rounded50 {
    border-radius: 50%;
}

.mctclogo{
	width: 15rem;
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.weatherlogo{
	width: 1.5rem;
	display: block;
	margin-left: auto;
	margin-right: auto;
}

/* inizio overlay */

#overlay {
	position: fixed;
	top: 0;
	left: 0;
	display: none;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.65);
	z-index: 999;
	-webkit-animation: fade .6s;
	-moz-animation: fade .6s;
	animation: fade .6s;
	overflow: auto;
}

.popup {
	top: 25%;
	left: 0;
	right: 0;       
	/*font-size: 14px;*/
	margin: auto;
	width: 85%;
	min-width: 320px;
	max-width: 600px;
	position: absolute;
	padding: 15px 20px;
	border: 1px solid #383838;
	background: #fefefe;
	z-index: 1000;
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	-ms-border-radius: 4px;
	border-radius: 4px;
	/*font: 14px/18px 'Tahoma', Arial, sans-serif;*/
	-webkit-box-shadow: 0 15px 20px rgba(0,0,0,.22),0 19px 60px rgba(0,0,0,.3);
	-moz-box-shadow: 0 15px 20px rgba(0,0,0,.22),0 19px 60px rgba(0,0,0,.3);
	-ms-box-shadow: 0 15px 20px rgba(0,0,0,.22),0 19px 60px rgba(0,0,0,.3);
	box-shadow: 0 15px 20px rgba(0,0,0,.22),0 19px 60px rgba(0,0,0,.3);
	-webkit-animation: fade .6s;
	-moz-animation: fade .6s;
	animation: fade .6s;
}

.close {
	top: 10px;
	right: 10px;
	width: 32px;
	height: 32px;
	position: absolute;
	border: none;  
	border-radius: 50%;
	background-color: #2c3e50;
	box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
	cursor: pointer;
	outline: none;
}
.close:before {
	color: #2c3e50;
	content: "X";
	font-family:  Montserrat; /*Arial, Helvetica, sans-serif*/
	font-size: 18px;
	font-weight: 700; /*normal*/
	text-decoration: none;
	text-shadow: 0 -1px rgba(0, 0, 0, 0.9);
	transition: all 0.5s;
}
/* cambio del colore del bottone di chiusura al passaggio del mouse */
.close:hover {
	background-color: #17a2b8;
}

/* Fine overlay */

.linkpopup:hover {
	background-color: #17a2b8;
}

.meteobox{
	background-color: #3c4e60;
	border-radius: 10px;
	padding: 10px;
	margin-top: 10px;
}

#temperature {
	background-image: url("../img/temperature.png");
	background-position: right bottom;
	background-size: auto 35px;
	background-repeat: no-repeat;
}

#pressure {
	background-image: url("../img/pressure.png");
	background-position: right bottom;
	background-size: auto 35px;
	background-repeat: no-repeat;
}

#humidity {
	background-image: url("../img/humidity.png");
	background-position: right bottom;
	background-size: auto 35px;
	background-repeat: no-repeat;
}

#wind {
	background-image: url("../img/wind.png");
	background-position: right bottom;
	background-size: auto 35px;
	background-repeat: no-repeat;
}

#clock {
	background-image: url("../img/clock.jpg");
	background-position: right bottom;
	background-size: auto 35px;
	background-repeat: no-repeat;
}

/*Tutti i loghi devono essere alti eccetto Fiat a Fiat pro
che sono larghi come l'altezza degli altri*/

.img-container {
  max-height: 7rem; /*200px*/
  line-height: 7rem;
  /*width: 7rem;*/
  margin: auto;
  text-align: center;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  /*border-style:solid;
  border-color:#FF0000;
  border-width:1px;*/
}

.img-container img {
  max-width: 6rem; /*1.00*/
  max-height: 6rem;
  vertical-align:middle;
  /*border-style:solid;
  border-color:#00FF00;
  border-width:1px;*/
}

/*
Jeep deve essere lungo 1.15 volte rispetto agli altri loghi
Peugeot e Citroen devono essere alti 1.00
Fiat e Fiat pro devono essere larghi 1.00
*/

/*
Eccezione per far essere Jeep più larga
Funziona anche per far essere Citroen alta come Peugeot
*/
#Jeep_larger img {
  max-width: 6.9rem; /*1.15*/
}

.img-container-2 {
  height: 3rem; /*40px*/
  line-height: 3rem;
  text-align: center;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  /*border-style:solid;
  border-color:#CCCCCC;
  border-width:1px;*/
}

.img-container-2 img {
  max-width: 12rem;
  max-height: 2rem;
  vertical-align: middle;
}

a img{
  transition: transform .3s;
}

a img:hover {
	/*opacity: 85%;
	/*filter: grayscale(100%);
	filter: brightness(1.1);*/
	transition: transform .3s;
	transform: scale(1.1);
}

a.bg-primary:focus, a.bg-primary:hover, button.bg-primary:focus, button.bg-primary:hover {
  background-color: #222222 !important;
}