@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css");

/********* BODY *********/

body{
    background-color: var(--BodyColor);
    color: var(--FontColor);
    min-height: 60vh;
    font-family: 'Gotham';
    padding-top: 70px;   /* Regola in base all'altezza della navbar superiore */
  }

.space-top{
  margin-top: 1.5rem;
}

img:not(.slide-bg),
.plradius{
  border-radius: 10px !important;
}

/********* HEADER *********/

.nav-shadow{
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.navbar-brand{
    margin-right: 0px !important;
}

.navbar-brand .logo {
    width: 10rem;
}
.navbar-toggler:focus{
    box-shadow: none !important;
}

.nav-divider{
  color: #221f1f;
  opacity: 1 !important;
  margin: 0;
}

.header-socials{
  margin-right: 20px;
  font-size: 18px;
}
.header-socials a{
  color:#000 !important
}

.offcanvas{
  max-width: 90% !important;
}

.offcanvas.offcanvas-top{
    height: 100% !important;
}

#mobile-list .nav-item {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

#mobile-list li{
  font-weight: 600;
  font-size: 28px;
}

@media (min-width: 991px) {
  .mx-md-1 {
    margin-right: .25rem !important;
    margin-left: .25rem !important;
  }
}

.offcanvas.show #mobile-list .nav-item {
    opacity: 1;
    transform: translateX(0);
}

a {
  color: #000;
  text-decoration: none !important;
}
a.nav-link {
    position: relative;
    text-decoration: none;
    display: inline-block; 
    color: var(--FontColor);
    font-weight: 300 !important;
}

.dropdown-item{
  font-weight: 300 !important;
}

a.nav-link:hover{
    color: var(--LinkHover);
}

a.nav-link .line {
    position: absolute;
    left: 50%;
    bottom: -2px; 
    width: 0; 
    height: 2px; 
    background-color: #b14217; 
    transition: width 0.3s ease, left 0.3s ease; 
}

.line-2{
  position: absolute;
  left: 50%;
  bottom: -2px; 
  width: 0; 
  height: 2px; 
  z-index: 999;
  background-color: #b14217; 
  transition: width 0.3s ease, left 0.3s ease; 
}

.dropdown-item:active {
  background-color: #b14217 !important; 
}

.social-header a{
  margin-right: 10px;
  text-decoration: none !important;
}
.social-header i{
  color:#000;
}
.social-header i:hover{
  color: #b14217; 
}

/********* CAROUSELS *********/

/** CUSTOM CAROUSEL **/

.custom-carousel {
  width: 100%;
  height: 100%;
  display: flex;
  max-height: 550px;
  overflow: hidden;
  position: relative;
}

.custom-carousel-item {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: flex-end;
  position: absolute;
  z-index: 0;
  transition: 0.6s all linear;
  flex-shrink: 0;
}

.carousel-item__info {
  height: 50%;
  display: flex;
  justify-content: center;
  flex-direction: column;
  order: 1;
  left: 0;
  width: 40%;
}

.carousel-item__image {
  width: 60%;
  height: 100%;
  order: 2;
  align-self: flex-end;
  flex-basis: 60%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  transform: translateX(100%);
  transition: 0.6s all ease-in-out;
}

.carousel-item__subtitle {
  transform: translateY(25%);
  opacity: 0;
  visibility: hidden;
  transition: 0.4s all ease-in-out;
  font-weight: 100;
}

.carousel-item__title {
  transform: translateY(25%);
  opacity: 0;
  visibility: hidden;
  transition: 0.6s all ease-in-out;
  font-weight: 200;
}

.carousel-item__description {
  transform: translateY(25%);
  opacity: 0;
  visibility: hidden;
  transition: 0.6s all ease-in-out;
  margin-bottom: 0px;
}

.custom-carousel-item--1 .carousel-item__image {
  background-image: url('../images/carousel-1.jpg');
}

.custom-carousel-item--2 .carousel-item__image {
  background-image: url('https://images.pexels.com/photos/921294/pexels-photo-921294.png?auto=compress&cs=tinysrgb&h=750&w=1260');
}

.custom-carousel-item--3 .carousel-item__image {
  background-image: url('../images/carousel-3.jpg');
}

.carousel-item__btn {
  width: 35%;
  color: #2C2C2C;
  letter-spacing: 3px;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(25%);
  opacity: 0;
  visibility: hidden;
  transition: 0.6s all ease-in-out;
}

.carousel__nav {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  background-color: #fff;
}

.carousel__icon {
  display: inline-block;
  vertical-align: middle;
  width: 16px;
  fill: #5d5d5d;
}

.carousel__arrow {
  cursor: pointer;
  display: inline-block;
  padding: 11px 15px;
  position: relative;
}

.carousel__arrow:nth-child(1):after {
  content: '';
  right: -3px;
  position: absolute;
  width: 1px;
  background-color: #b0b0b0;
  height: 14px;
  top: 50%;
  margin-top: -7px;
}

.custom-active {
  z-index: 1;
  display: flex;
  visibility: visible;
}

.custom-active .carousel-item__subtitle,
.custom-active .carousel-item__title,
.custom-active .carousel-item__description,
.custom-active .carousel-item__btn {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition: 0.6s all ease-in-out;
}

.custom-active .carousel-item__image {
  transform: translateX(0);
  transition: 0.6s all ease-in-out;
}

.carousel-item__container{
  padding-right: 3rem;
}

.btn-white a,
.btn-white{
  background-color: #fff;
  border-color: #ffffff;
  border-radius: 0px !important;
  text-decoration: none !important;
  color: #000 !important;
  font-weight: 500 !important;
  font-size: 12px !important;
}
.btn-black{
  background-color: #221f1f;
  border-color: #221f1f;
  color: #fff;
  border-radius: 0px !important;
  font-weight: 500;
}

/* a:hover, */
.btn-white:hover{
  background-color: #221f1f;
  color: #fff !important;
}
.btn-black:hover{
  background-color: #ffffff;
  color: #221f1f;
  border-color: #221f1f;
}

/** SWIPER CAROUSEL **/

.swiper-header-content{
  text-align: center;
  align-content: center;
  height: 100%;
  color: #fff;
  display: grid;
}

h1{
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 200 !important;
  z-index: 999;
  position: relative;
  line-height: 1.2;
}
.swiper-header-content h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 300 !important;
  z-index: 999;
  position: relative;
  line-height: 1.2;
}

h2,
.swiper-header-content h2 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 200 !important;
  z-index: 999;
  position: relative;
  line-height: 1.2;
}

.bottom-footer{
  font-size: clamp(0.9rem, 1.5vw, 0.75rem);
  line-height: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 100 !important;
}

p {
  font-size: clamp(0.9rem, 2.5vw, 1.125rem);
  line-height: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 200;
}
.swiper-header-content button{
  font-size: 1rem;
  font-weight: 100;
  z-index: 999;
  position: relative;
}

.swiper-slide {
  position: relative;
  overflow: hidden;
}

.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.homeSwiper .swiper-slide {
  height: 100% !important;
}


.homeSwiper {
  height: 80vh;
}

.swiper-pagination-bullet-active{
  background-color: var(--BodyColor) !important
}


/********* CARDS *********/

.card{
  border: none !important;
}
.card picture {
  position: relative;
  display: block;   
}

.spacer-mobile{
  display: none;
}

.card picture .badge {
  position: absolute;
  bottom: 0;      
  right: 0;      
  background-color: #fff !important;
  color: #000 !important;
  border-radius: 0px !important;
  padding: 1rem;
  font-weight: 500;
}

.card-body{
  padding: 1rem 0rem 0rem 0rem;
}

.card-body .nav-link{
  font-weight: 600;
}

.card h5{
  font-weight: 500;
}

@media(max-width:991px){
  #p0-c .col-md-6{
    width: 100% !important;
  }
}



/********* COMPONENTS *********/
.logoSwiper .swiper-wrapper{
  height: auto !important;
}
.logoSwiper .swiper-slide{
  height: fit-content;
  width: fit-content;
  max-width: 18rem;
  padding:1rem;
  object-fit: contain;
}

.gray-bg{
  background-color: rgb(247, 245, 244);
}

.green-bg{
  background-color: rgb(3, 72, 48);
  color: #fff !important;
}

/********* FOOTER *********/

footer{
  /* background:rgba(247,245,244);  */
  /* background-color: #221f1f; */
  background-color: #221f1f;
  color: #ffffff !important;
  
}

div.bottom-footer.py-2 div.container.text-center.text-white br{
  display: none;
}

footer .nav-link{
  color: var(--BodyColor);
}
footer .nav-link:hover{
  color: #dedede;
}

.social-footer i:hover{
  color: var(--LinkHover) !important;
}
.social-footer a:last-child{
  margin-right: 0px !important;
}

.bottom-footer{
  background-color: #000;
  color: #fff;
}

footer i{
  color:#ffffff !important;
  font-size: 18px;
}

footer a.text-white:last-child i:last-child{
  margin-right: 0px;
}

footer .logo{
  width: 3rem !important;
}

footer section{
  color:#ffffff !important;
  padding-top:3rem;
}
.bottom-footer a,
footer a{
  text-decoration: none !important;
  color: #fff;
  margin-right: 10px;
}

footer .menu a:last-child{
  margin-right: 0px;
}
