


h1, h2, h3, h4, h5, h6 {
font-family: "Libre Caslon Text", serif;
  font-weight: 400;
  font-style: normal;
  color: rgb(38,42,101);
}

p, a {
  font-family: "Work Sans", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: 200;
}

body {
    overflow-x: hidden;
    
}

/* TOPBAR GRIGIA */

.topbarnavbarwrapper {
   position: sticky;
  top: 0;
  z-index: 1040;
}

.topbar {
    background-color: rgb(124,124,124);
    display: flex;
    justify-content: space-between!important;
    align-items: center;
    margin: 0;
    z-index: 1030;
}


.topbar-links {
display: flex;
list-style-type: none;
margin-top: 10px;
padding-left: 60px;
padding-right: 60px;
}

.topbar-links li {
    margin-right: 20px;
}

.topbar-links a {
    text-decoration: none;
    color: white;
     
}

/* navbar */

.navbar {
    z-index: 1030;
}

.linkedin-button-nav{
   border: none;
   background-color: transparent;
   color: white;
   margin-right: 10px;
}

.contacts-button-nav {
    border: none;
    background-color: rgb(38,42,101);
    color: white;
    padding: 5px 15px;
}

.navbar .container{
    color: rgb(38,42,101);
}

.navbar .nav-link {
    color: rgb(38,42,101);
    padding-left: 15px;
    white-space: nowrap;
}


.nav-link.dropdown-toggle::after {
    display: none;
}

.navbar .nav-item {
  padding-left: 10px;
}
.navbar .nav-item img {
  width: 12px;
  height: auto;
  margin-left: 6px;
  vertical-align: middle;
}
.dropdown-item{
  color: rgb(38,42,101);
}

/* HERO */

.hero-section {
  
  height: 90vh;
  overflow: hidden;
}
.hero-section .video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 0;
  transform: translate(-50%, -50%);
  object-fit: cover;
  pointer-events: none;
}
.hero-background {
   width: 100%; 
    min-height: 90vh;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -1;
}

.hero-background .contenuto {
  z-index: 2;
}

.hero-section .overlay {
  z-index: 1;
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(38, 50, 114, 0.3);
}


 .hero-background p {
  font-family: "Work Sans", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;

 
}

.hero-background .titolo-principale {
    font-size: 60px;
    font-family: "Libre Caslon Text", serif;
  font-weight: 400;
  font-style: normal;
}

.hero-background button:hover{
    background-color: rgb(205,208,233);
    color: rgb(38,42,101);
    
}

.hero-background a:hover {
  color: rgb(38,42,101);
}



.hero-background h2 {
    
  font-weight: 300;
  
  font-family: "Work Sans", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  
}


 .hero-background h2, .hero-background p {
    margin-left: 70px;
    color: white;
    padding-left: 50px;
}

.hero-background .hero-button {
margin-left: 70px;
padding-left: 50px;
}

.hero-background button {
  background-color: rgb(38,42,101);
  border: none;
   font-family: "Work Sans", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
 
  padding: 7px;
 
}

.hero-background button a {
   color: white;
   text-decoration: none;
}

/* SERVICES CARD */

.services-container {
    position: relative;
    margin-top: -100px;
    z-index: 1;
}

.services-container .card {
    border-radius: 0;
}


.services-container .card h5, .services-container .card a {
    color: rgb(38,42,101);
}

.services-container .card h5, .services-container .card p {
    padding-top: 15px;
}

.services-container .card-title {
  font-size: 1.15rem;
}


/* SECTION RECTANGLE */

.section-rectangle {
    margin-top: 70px;
}

.section-rectangle .left-section {
    background-image: url(css-images/blu.png);
   background-size: cover;
   background-repeat: no-repeat;
    min-height: 700px;

}

.left-section h4,
.left-section h6,
.left-section p {
  color: white;
}

.section-rectangle .left-section .text-container-left {
  padding-top: 50px;
}


.section-rectangle .left-section h4, .section-rectangle .right-section h4 {
    margin-left: 70px;
    padding-top: 70px;
    
    

    
   
}

.section-rectangle .left-section h6 {
     padding-top: 25px;
     padding-bottom: 10px;
    
}


.section-rectangle .left-section h6, .section-rectangle .left-section p {
   
    margin-right: 60px;

     margin-left: 70px;
   
}


.section-rectangle .right-section {
    background-color: rgb(238,238,238);
     min-height: 700px;
     /* padding: 30px; */
}

.right-section h4, .right-section p {
    color: rgb(38,42,101);
    
     /* margin-left: 70px;
    margin-right: 60px; */
}

.right-section .right-section-description {
  margin-top: 25px;
  margin-left: 70px;
}


.right-section .progress-bars-container {
    max-width: 80%;
    /* margin-left: 70px; */
   
 
}

.right-section .progress-bars-container .progress {
    background-color: rgb(205,208,233);
    margin-left: 70px;
}

.right-section .progress-bars-container .progress-bar {
    background-color: rgb(38,42,101);
    width: 0;
     transition: width 2s ease-in-out;
}


.right-section .progress-bars-container p {
    font-family: "Libre Caslon Text", serif;
  font-weight: 400;
  font-style: normal;
}

.right-section .progress-bars-container .progress-text {
    padding-top: 18px;
    white-space: nowrap;
    margin-left: 70px;
}

.right-section .decorative-line, .left-section .decorative-line {
  width: 70px;
  height: 2px;
  margin-left: 60px;
}


/* PROFESSIONISTI*/

.name{
     
      background-color: rgb(250,248,248);
      
      
      padding-top: 20px;
      font-size: 15px;
        
      font-family: "Libre Caslon Text", serif;
      font-weight: 400;
      font-style: normal;
      color: rgb(38,42,101);
}
 .role {
  background-color: rgb(250,248,248);
  font-style: italic;
  color: rgba(0, 0, 0, 0.403);
  padding-bottom: 15px;
  padding-top: 10px;
  text-align: center;
  position: relative;
  font-size: 15px;
  font-weight: 200;
}


.team-carousel {
  position: relative;
   margin-top: 80px;
}

.carousel .carousel-item {
  padding: 1rem 2rem;
  
}

.team-card {
  background-color: #fff;
  width: 300px; /* era 180px */
  flex-shrink: 0;
  border: none;
}

.team-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.team-carousel a{
 text-decoration: none;
 color: inherit;
}
.card-caption {
  background-color: #f9f9f9;
  text-align: center;
  padding: 30px 0;
}

.card-caption h5 {
  font-size: 16px;
  margin: 0;
  color: #262a65;
  font-family: 'Libre Caslon Text', serif;
}

.card-caption p {
  font-style: italic;
  font-size: 16px;
  color: #888;
  margin-top: 10px;
  margin-bottom: 4px;
}

.card-caption .underline {
  display: block;
  margin: 10px auto 0;
  width: 40px;
  height: 1px;
}

.carousel-buttons-wrapper {
  position: relative;
  margin-top: 0;
}

.team-carousel #teamCarousel { position: relative; }

.team-carousel #teamCarousel .carousel-control-prev,
.team-carousel #teamCarousel .carousel-control-next {
  width: 44px;
  height: 44px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
  z-index: 3;
  border: none;
  background: transparent;
}


.carousel-nav-btn{
    color: #262a65;
  padding: 10px 16px;
  font-size: 20px;
  font-weight: bold;

}


/* Stile per l’icona freccia */
.carousel-nav-btn {
  all: unset;
  font-weight: bold;
  color: #262a65;
  padding: 10px 16px;
  font-size: 20px;
}




/* Contenitore dell’immagine */
.image-hover {
  position: relative;
}

/* Wrapper dell’immagine */
.image-zoom-wrapper {
  display: block;
  position: relative;
  overflow: hidden; /* <-- fondamentale! */
}

/* Immagine */
.image-hover img.img-fluid {
  display: block;
  width: 100%;
  transition: transform 0.4s ease;
  position: relative;
  z-index: 1;
}

/* Overlay blu */
.overlay-simple {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(38, 50, 114, 0.4);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
}

/* Hover effetto */
.image-hover:hover .image-zoom-wrapper img {
  transform: scale(1.05);
}

.image-hover:hover .overlay-simple {
  opacity: 1;
}


.role img.underline {
  display: block!important;
  margin: 6px auto 0 auto;
  width: 60px; /* o quanto ti serve */
  height: 1px;
}


/* perchè sceglierci */
.choose-sx{
  padding: 0px 0px 40px;
  position: relative;
  background-size: cover;
  background-position: center;
  background-image: url(/images/Rectangle\ 14.jpg); 
  height:auto
}
.choose-sx .overlay {
  z-index: 1;
  position:absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(38, 50, 114, 0.8);
}
.box-sx{
  position: relative;
  z-index: 2;
  padding-left: 80px; 
  padding-top: 50px; 
  padding-right: 80px;
}
.box-dx{
  padding-left: 40px; 
  padding-top: 50px; 
  padding-right: 50px;
  padding-bottom: 50px;
}
/* area di attività */

.activity-area {
    padding-top: 30px;
   
}

.activity-area h4 {
    text-align: center;
    padding-top: 60px;
    padding-bottom: 20px;
    color: rgb(38,42,101);
}

.activity-area .row img {
    width: 100%;
    
   
}

.activity-area .image-wrapper img {
  display: block;
  width: 100%;
  height: auto;
 
}



.activity-area .row .area {
    padding-top: 25px;
    position: relative;
  overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    

}

.activity-area .image-wrapper {
  position: relative;
}

.activity-area .image-wrapper .overlayactivity {
  position: absolute;
  background-color: rgba(38,50,114,0.4);
  z-index: 1;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}




.activity-area .row .area .area-link {
  font-family: "Libre Caslon Text", serif;
  font-weight: 400;
  font-style: normal;
  color: rgb(255, 255, 255);
  text-decoration: none;
  position: absolute;
 padding: 2vh;
  width: 90%;
  z-index: 2;

  
 
}

.activity-area .activity-gallery {
    padding-left: 50px;
    padding-right: 50px;
    
}

/* NEWS */



.news-section {
    padding-top: 80px;
    padding-bottom: 50px;
}

.news-section h4, .news-section h5{
    color: rgb(38,42,101);
}
.news-section .section-subtitle {
    width: 60%;
}

.news-section a {
  color: rgb(38,42,101);
}

.news-section .calendar-date {
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-section .calendar-date img, .news-section .calendar-date p {
    margin: 0;
}

.news-section .news-text {
    padding-top: 2vh;
}
/* footer */

footer {
    margin-top: 50px;
    color: white;
     background-color: rgb(38,42,101);     
}

.footer-content {
    padding-top: 20px;
  align-items: center;
  
}

.footer-content a {
    text-decoration: none;
    color: white;
}

.max-footer-contact, .max-footer-menu
{
  display: flex;
  justify-content: center;
}
.footer-contact, .footer-menu {
  text-align: left;
}


.footer-content li {
    padding-bottom: 10px;
}
.footer-logo { 
  text-align: center;
}

.footer-bottom-second a, .footer-bottom-second p {
    color: rgb(124,124,124)
}







/* ********* ANIMAZIONI TITOLO ********** */




.titolo-principale {
  
  position: relative;
  overflow: hidden;
  font-size: 3em; 
  font-weight: bold;
  
  margin-top: 50px;
}

/* Stili iniziali */
.lener-animate,
.ampersand-animate,
.partners-animate {
  display: inline-block; 
  opacity: 0; 
}

/* Animazione per "LENER" (arriva dall'alto) */
.lener-animate {
  animation: slideInFromTop 1s ease-out forwards;
  animation-delay: 0.3s; 
}

@keyframes slideInFromTop {
  from {
    transform: translateY(-100px); 
    opacity: 0;
  }
  to {
    transform: translateY(0); 
    opacity: 1;
  }
}

/* Animazione per "&" (fade in) */
.ampersand-animate {
  animation: slideInFromTop 1s ease-out forwards;
  animation-delay: 0.3s; 
}

/* Animazione per "PARTNERS"  */
.partners-animate {
  animation: slideInFromTop 1s ease-out forwards;
  animation-delay: 0.3s; 
}



/* ANIMAZIONE BACKGROUND H2 */


.animated-background {
  position: relative;
  display: inline-block;
  padding: 6px;
  z-index: 0;
}


.animated-background::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background-color: rgb(38,42,101); 
  z-index: -1;
  transition: width 1s ease-out 1s; 
}


.animated-background.animate::before {
  width: 100%;
}



/* MEDIA QUERY */


@media (max-width: 900px){





.navbar .nav-item:first-child {
  background-color: rgb(38,42,101);
}
  .dropdown-menu {
    position: static !important;   
    transform: none !important;
    width: 100% !important;
    border: none;
    box-shadow: none;
    margin-top: 5px;
  }

  .dropdown-menu .dropdown-item {
    padding-left: 20px;
    font-size: 0.95rem;
  }

  .navbar .nav-link img {
    width: 12px;
    height: auto;
  }

  .navbar-collapse {
    padding-top: 10px;
  }











.hero-background p {
  margin-left: 20px;
    padding-left: 20px;
}

.hero-background .hero-button {
  margin-left: 20px;
    padding-left: 20px;
}

.section-rectangle .left-section h6, .section-rectangle .left-section p, .section-rectangle .left-section h4  {
   
    margin-right: 20px;

     margin-left: 20px;
    padding-left: 20px;
}

.section-rectangle .left-section .decorative-line img {
    padding-left: 0;
    margin-left: 0;
}


    
}

.topbar {
  display: flex;
  justify-content: center;
  align-items: center;
}




  .team-carousel .carousel-item .d-flex {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0.8rem;
  }

  .team-card {
    flex: 0 0 23%;
    max-width: 23%;
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 35px;
    height: 35px;
    top: 50%;
    transform: translateY(-50%);

 
  }

  .carousel-nav-btn {
    font-size: 16px;
  }

  .name {
    font-size: 14px;
  }

  .role {
    font-size: 13px;
  }






/* iPhone (max 480px) */

@media only screen and (max-width: 480px) {

.nav-item.dropdown {
    flex-direction: row!important;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
  }

  .dropdown-menu.show {
    display: block;
  }

  .navbar .nav-link,
  .dropdown-menu .dropdown-item {
    font-size: 0.9rem;
    padding-left: 10px;
    padding-right: 10px;
  }

  .navbar .nav-item:first-child{
  background-color: rgb(38,42,101);
}
  .navbar-nav {
    text-align: left;
  }


    body {
        font-size: 14px;
        padding: 0;
        margin: 0;
        overflow-x: hidden;
    }

.topbar {
        justify-content: center;
        
        overflow-x: unset; 
    }

    .topbar-links {
        
        padding-left: 10px;
        padding-right: 10px;
       
        flex-wrap: nowrap;
      
        justify-content: center;
        
        flex-basis: auto; 
    }

    .topbar-links li {
        margin-right: 10px; 
        margin-left: 10px; 
        margin-bottom: 5px; 
    }

    
    .topbar-links a {
        font-size: 0.9em; 
       
    }

    .navbar .container .navbar-brand{
      padding-left: 10px;

    }

    .navbar .container .navbar-toggler {
      margin-right: 32px;
    }

    header, footer {
        padding: 15px;
        text-align: center;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    .container, .row, .col {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }

    .hero-section .contenuto .titolo-principale, .hero-section .contenuto .animated-background, .hero-section .contenuto p, .hero-section .contenuto h2, .hero-section .contenuto .hero-button {
      margin-left: 0;
      padding-left: 0;
    }
     
.carousel-item{
      width: 100%!important;
    }
    .team-carousel{
      padding: 20px;
    }
    
 /* Imposta il contenitore come flessibile */
  .team-carousel .container.text-center {
    display: flex;
    flex-direction: column;
  }


  .carousel-buttons-wrapper {
    
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
  }



  /* Bottoni stile base */
   .carousel-control-prev,
   .carousel-control-next {
  

    color: #262a65;
    padding: 6px 14px;
    font-size: 18px;
    
  }

    
}

/* iPad (481px - 1024px) */
@media only screen and (min-width: 481px) and (max-width: 1024px) {
  .nav-item.dropdown {
    flex-direction: row;
    align-items: center;
    gap: 6px;
  }
  .navbar .nav-item:first-child{
  background-color: rgb(38,42,101);
}

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
  }

  .dropdown-menu.show {
    display: block;
  }

  .navbar .nav-link {
    font-size: 1rem;
  }
    body {
        font-size: 16px;
        padding: 0;
        
        margin: 0;
    }

  

 .topbar {
    justify-content: center;
    overflow-x: auto;
  }

  .topbar-links {
    flex: 0 0 auto;
    gap: 6px;
  }



    header, footer {
        padding: 20px;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    img {
        max-width: 100%;
        height: auto;
    }
    


}

@media (min-width: 500px) {

  .activity-area .row .area {
    width: 25%;
  }
  
}


/* //per il background */


@media (max-width: 768px) { 
    .hero-background {
    
        background-attachment: scroll; 
     
        background-position: center center; 
     
        min-height: 90vh; 
       
    }
}


@media (min-width: 769px) and (max-width: 1024px) {
    .hero-background {
        background-attachment: scroll; 
      
    }
    
}