.btn-secondary,
.btn-secondary:hover,
.btn-secondary:focus {
  color      : #333;
  text-shadow: none;
  /* Prevent inheritance from `body` */
}

h1 {
  font-size: 2.4rem;
}

h2 {
  font-size    : 2rem;
  margin-bottom: .7rem;
}

@media (min-width: 576px) {
  h1 {
    font-size: 2.6rem;
  }

  h2 {
    font-size    : 2.1rem;
    margin-bottom: .7rem;
  }
}

body {
  font-size       : 1.1rem;
  background-color: aliceblue;
}

@media (min-width: 1400px) {
  .container {
    max-width: 1260px;
  }
}

header {
  text-shadow: 0 .05rem .1rem rgba(0, 0, 0, .5);
  box-shadow : inset 0 0 5rem rgba(0, 0, 0, .5);
}

#navbar {
  padding   : 1.2rem 0;
  transition: padding .3s ease-in-out, background-color .4s ease-in-out;
  z-index   : 2;
}

#navbar.scrolled {
  padding         : .5rem 0;
  background-color: rgba(0, 0, 0, .9);
}

.nav-masthead .nav-link {
  padding           : .3rem 0;
  /*font-weight     : 700;*/
  text-transform    : uppercase;
  font-size         : 14px;
  letter-spacing    : 1px;
  color             : rgba(255, 255, 255, .5);
  background-color  : transparent;
  border-bottom     : .25rem solid transparent;
}

.nav-masthead .nav-link:hover {
  border-bottom-color: rgba(255, 255, 255, .25);
}

.nav-masthead .active {
  color              : #fff !important;
  border-bottom-color: #AD2842 !important;
}

.cover {
  --truck-pos   : calc(100vw / 1.67 * 0.3);
  padding-top   : 2rem;
  padding-bottom: 2rem;
  height        : 80vh;
  min-height    : 400px;
  display       : flex;
  align-items   : center;
  position      : relative;
  margin-bottom : var(--truck-pos);
}

.scritta {
  max-height: 48%;
  margin    : 2rem 0 4rem;
  max-width : 100%;
}

.trucks {
  position: absolute;
  bottom  : calc(var(--truck-pos) * -1);
  right   : 0;
  width   : 100%;
  height  : auto;
}

@media (min-width: 576px) {
  .scritta {
    max-height: 53%;
  }

  .trucks {
    width : 80%;
    bottom: calc(var(--truck-pos) * -0.9);
  }
}

@media (min-width: 768px) {
  .cover {
    margin-bottom: 50px;
  }

  .trucks {
    bottom: -75px;
    width : 68%;
  }
}

@media (min-width: 992px) {
  .scritta {
    margin: 3rem 0 2rem;
  }

  .trucks {
    bottom: -60px;
    width : 65%;
  }
}

@media (min-width: 1200px) {
  .cover {
    margin-bottom: 0px;
  }

  .scritta {
    max-height: 58%;
    margin    : 4rem 0 2rem;
  }

  .trucks {
    bottom: -50px;
    width : 58%;
  }
}



.logo-nav {
  width: 10rem;
}

main {
  background-color: aliceblue;
}

.flotta {
  position   : relative;
  min-height : 20rem;
  z-index    : 1;
  color      : #FFF;
  text-shadow: rgba(0, 0, 0, .8) 0px 0px 2px;
}

.flotta::before,
.flotta::after {
  content : "";
  position: absolute;
  top     : 0;
  left    : 0;
  width   : 100%;
  height  : 100%;
  z-index : -1;
}

.flotta::before {
  background-image     : url(../images/back2.jpg);
  background-size      : cover;
  background-attachment: fixed;
}

.flotta:after {
  background-color: #212529;
  opacity         : .7;
}

.gallery-container {
  column-count: 2;
  column-gap  : 1rem;
}

@media (min-width: 576px) {
  .gallery-container {
    column-count: 3;
  }
}

@media (min-width: 768px) {
  .gallery-container {
    column-count: 4;
  }
}

.gallery-thumbnail {
  display         : inline-block;
  margin-bottom   : 1rem;
  border-radius   : .2rem !important;
  background-color: #000;
}

.gallery-thumbnail img {
  transition: opacity .5s ease;
}

.gallery-thumbnail img:hover {
  opacity: 0.6;
  cursor : zoom-in;
}

.contatti {
  background-color: #ad2843ea;
  color           : #fff;
  font-size       : 1.1rem;
}

.contatti ul {
  list-style-type: none;
  padding        : 0;
  margin         : 0;
}

.contatti ul li {
  margin-bottom: 1rem;
  font-size    : 1.2rem;
  display      : flex;
  align-items  : center;
  gap          : 1rem;
}

.contatti ul li i {
  font-size: 2rem;
}

.contatti .form-control {
  border       : none;
  border-radius: 0;
  border-bottom: 2px solid rgba(255, 255, 255, .3);
  padding      : 0;
  background   : transparent;
  color        : #FFF;
  font-size    : 1.1rem;
}

.contatti .form-control:focus,
.contatti .form-control:active {
  border-color: rgba(255, 255, 255, .7) !important;
  box-shadow  : none;
}

.contatti .form-group label {
  text-transform: uppercase;
  font-size     : .8rem;
  font-weight   : 700;
  letter-spacing: 1px;
}

.contatti .error{
padding-right: calc(1.5em + .75rem);
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23ffffff'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23ffffff' stroke='none'/%3e%3c/svg%3e");
background-repeat: no-repeat;
background-position: right calc(.375em + .1875rem) center;
background-size: calc(.75em + .375rem) calc(.75em + .375rem);
}

.contatti input[type='checkbox'].error{
	background: none;
	padding:0;
	outline: 2px solid #0d6efd;
	box-shadow: 0px 0px 12px #333;
}

textarea {
  resize: none;
}

footer {
  background-color: #0e0e0e;
  color           : rgba(255, 255, 255, .7);
  text-align      : center;
  font-size       : .9rem;
}

footer .cert {
  max-height: 100px;
}

@media (min-width: 576px) {
  footer .cert {
    max-height: 130px;
  }
}

footer a {
  text-decoration: none;
  color          : rgba(255, 255, 255, .7);
  transition     : color .25s ease-out;
}

footer a:hover {
  color: rgba(255, 255, 255, .9);
}

/* Mobile menu */
.mobile-menu-link {
  color          : #FFF !important;
  text-decoration: none;
  font-size      : 1.5rem;
  line-height    : 2.6rem;
}

.logo-mobile {
  max-width: min(200px, 100%);
  margin   : 0 auto;
}

.modal-content {
  background: none !important;
  border    : 0px !important
}

.background-modal {
  background-color: rgba(0, 0, 0, 0.9);
}

.blue-background {
  background-color: rgb(9, 9, 121);
  background: linear-gradient(180deg, rgb(9, 9, 100) 0%, rgba(9, 9, 121, 1) 8%, rgba(115, 187, 249, 1) 60%);
}

#video {
	z-index: 1000;
}

#video-modal .btn-close {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2000;
}