/*NAVBAR*/
.navbar {
  background-color: white;
  padding: 10px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
}

#navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
}

.navbar .nav-link {
  font-size: 1.1rem;
}

.navbar-brand img {
  height: 80px;
}


/*HOVER NAVBAR TRANSITION*/
.navbar .nav-link:hover {
  color: #cd0a10 !important;
  transition: color 0.2s ease;
}

.navbar .nav-link {
  position: relative;
}

.navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #cd0a10;
  transition: width 0.3s ease;
}

.navbar .nav-link:hover::after {
  width: 100%;
}

@media (max-width: 480px) {
  .navbar-brand img {
    height: 60px !important;
  }
}
/* ================================================ */


/*BODY*/
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: rgba(36, 32, 87);
}
/* ================================================ */


main {
  flex: 1;
}
/* ================================================ */


/*FOOTER*/
#footer {
  margin-top: auto;
}
/* ================================================ */


/*CAROSELLO*/
.carousel img {
  height: 600px;
  width: 100%;
  object-fit: cover;
}

#cardCarousel .card {
  min-height: 250px;
}

#cardCarousel .card-img-top {
  height: 120px;
  width: 100%;
  object-fit: contain;
}

#carosello9 .carousel-item {
  height: 400px;
  background-color: white;
}

#carosello9 img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}

@media (max-width: 768px) {
  #carosello9 .carousel-item {
    height: 250px;
  }
}

@media (max-width: 768px) {
  #carosello9 img {
    height: auto;
    max-height: 300px;
    width: 100%;
    max-width: 100%;
  }
}
/* ================================================ */


/*VIDEO*/
.video {
  margin-top: 30px;
  border-radius: 10px;
  height: 600px;
  width: auto !important;
  max-width: 100%;
  display: block;
  object-fit: contain; 
}
/* ================================================ */


/*TESTO*/
p {
  font-size: 1.1rem;
}

/*TESTO ALLINEATO AL CENTRO*/
.testo-lavoro {
  text-align: justify !important;
}
/* ================================================ */


/*TABELLA*/
.table {
  color: white;
  border-color: rgba(255, 255, 255, 0.2);
}

.table thead th {
  border-bottom: 2px solid #cd0a10;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.table tbody tr {
  border-bottom: 1px solid rgba(36, 32, 87);
}

.table tbody tr:hover {
  background-color: rgba(36, 32, 87);
}
/* ================================================ */


/*MENU LATERALE*/
#navbar-lavori .nav-link {
  color: rgba(255, 255, 255, 0.65) !important;
}

#navbar-lavori {
  position: sticky;
  top: 110px;
  align-self: flex-start;
}

#navbar-lavori .nav-link.active {
  color: #fff !important;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
}

#navbar-lavori .nav-link:hover {
  color: #fff !important;
  background-color: #cd0a10;
  border-radius: 8px;
  transition: all 0.5s ease;
}
/* ================================================ */


/*SCRITTE RESPONSIVE*/
@media (max-width: 480px) {
  h1 {
    font-size: 1.4rem !important;
  }
  h2 {
    font-size: 1.3rem !important;
  }
  h3 {
    font-size: 1.2rem !important;
  }
  p, li, td, th, span {
    font-size: 1rem !important;
  }
  .card-title {
    font-size: 1.1rem !important;
  }
  .card-text {
    font-size: 1rem !important;
  }
  .carousel img {
    height: 250px !important;
  }
  #carosello9 img {
    height: 200px;
    width: 400px;
  }
  .video {
    height: 300px !important;
    width: 100% !important;
  }
  #navbar-lavori .nav-link {
    font-size: 0.65rem !important;
    padding: 4px 4px !important;
    line-height: 1.3;
  }
}
/* ================================================ */


html {
  overflow-x: hidden;
}

