
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;
    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 */
.home-link {
  background-color: white !important;
  color: rgb(38, 42, 101) !important;
  font-weight: 400;
  display: block;
  padding: 10px 15px;
}

/* Studio link attivo */
.studio-link {
  background-color: rgb(38, 42, 101) !important;
  color: white !important;
  font-weight: 200;
  display: block;
  padding: 10px 15px;
}

.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);
}

/*INFO*/

.banner{
  background-image: url("css-images/background.webp");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  padding: 60px 20px;
  color: white; 
  height: 300px;
}
.banner h1{
  text-align: center;
  margin-top: 100px;
  color: white!important;
}

.contentinfo {
  
           
    margin-left: 250px!important;  
    margin-right: 250px!important;     
  padding: 40px 20px!important;         
  text-align: start!important;   
  height: 400px; 
  
      
}

.contentinfo h5 {
  margin-top: 80px;
  color: rgb(38, 42, 101);
  font-size: 1.6rem!important;
  
}

.contentinfo img.decorative-line {
  margin-left: 2px;
  margin-top: -20px;
  
}

.contentinfo p {
 
  line-height: 1.6;
         /* opzionale: giustifica il testo */
  margin-top: 40px;
  font-size: 1rem!important;
 
  
}


.banner-foto{
   background-image: url("css-images/imgnews.webp");
  width: 100%;
  height: 300px;
  margin-top: 100px;
  background-repeat: no-repeat;
  background-size: cover;
}
.rico {
  text-align: center;
  padding: 60px 20px;
  max-width: 800px;
  margin: 0 auto;
  margin-top: 60px;
}

.rico h5 {
  font-size: 1.6rem;
  color: rgb(38, 42, 101);
  margin-bottom: 10px;
}

.rico img {
  display: block;
  margin: 0 auto 20px auto;
  max-width: 120px;
  height: auto;
}

.rico p {
  font-size: 0,8rem;
  line-height: 1.6;
  color: #000;
  margin-bottom: 30px;
  
}
/* info */
 
/* ---------- STILE GENERALE TEAM CARD E CAROUSEL ---------- */

/* ---------- STILE GENERALE TEAM CARD E CAROUSEL ---------- */

.team-carousel {
  position: relative;
  padding: 2rem 0;
  width: 100%;
}

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

.carousel-item .d-flex {
  gap: 20px;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.team-card {
  background-color: #fff;
  width: 260px;
  flex-shrink: 0;
  border: none;
}

.team-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, 0.074);
}

.name {
  background-color: rgb(38, 42, 101);
  font-size: 15px;
  padding: 5px;
  font-family: "Libre Caslon Text", serif;
  font-weight: 400;
  color: white;
  text-align: center;
}

.role {
  background-color: rgb(38, 42, 101);
  font-style: italic;
  color: white;
  padding: 10px;
  text-align: center;
  font-size: 15px;
  font-weight: 100;
}

/* ---------- DESKTOP (> 480px) BOTTONI LATERALI SEMPRE VISIBILI ---------- */

.carousel-control-prev,
.carousel-control-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 300px;
   margin-right: 300px;
  z-index: 10;
 
  
  color: rgb(38, 42, 101);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-control-prev {
  left: -30px;
}

.carousel-control-next {
  right: -30px;
}

.carousel-nav-btn {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  padding: 0 4px;
  
}





.news-section{
  margin-top: 100px;
}
.section-title{
  color: rgb(38,42,101);
}
.news-content h5{
 color: rgb(38,42,101);
}



/* footer */

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

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

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

.footer-content a {
    color: white;
}

.footer-content li {
    padding-bottom: 10px;
}

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











/* MEDIA QUERY */


@media (max-width: 900px){


  .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;
}

 .banner {
    height: 320px;
    padding: 50px 20px;
  }

  .banner h1 {
    font-size: 1.6rem;
    margin-top: 110px;
  }
  
 .contentinfo {
    margin-left: 100px !important;
    margin-right: 100px !important;
  }


  .contentinfo h5 {
    font-size: 1.5rem;
    margin-top: 60px;
  }

  .contentinfo img.decorative-line {
    max-width: 90px;
    margin-left: 0;
    margin-top: -15px;
  }

  .contentinfo p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 30px;
  }




    .banner-foto {
    height: 220px;
    margin-top: -15px;
  }
  .rico {
    padding: 50px 20px;
  }

  .rico h5 {
    font-size: 1.4rem;
  }

  .rico img {
    max-width: 100px;
  }

  .rico p {
    font-size: 0.8rem;
  }


  
  .card-custom {
    width: 320px;
    height: 460px;
  }

  .card-banner {
    height: 240px;
  }

  .card-custom h6 {
    font-size: 0.9rem;
  }

  .card-custom p {
    font-size: 0.8rem;
    padding: 8px;
  }


.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;
}

.footer-content .row {
    margin-left: 50px;
}

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


}




/* 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 {
    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.8em; 
       
    }

    .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;
    }

 .contentinfo {
    margin-left: 20px !important;
    margin-right: 20px !important;
    width: 90%!important;
    height: 800px!important;
  }


  .contentinfo h5 {
    font-size: 1.2rem;
    margin-top: 40px;
  }

  .contentinfo img.decorative-line {
    max-width: 80px;
    margin-left: 0;
    margin-top: -10px;
  }

  .contentinfo p {
    font-size:12px!important;
    
    margin-top: 10px;
  }




/* RIDUZIONE CARD */
  .team-card {
    width: 240px;
    flex-shrink: 0;
  }

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

  .name {
    font-size: 13px;
    padding: 6px;
    background-color: rgb(38,42,101);
    color: white;
    font-family: "Libre Caslon Text", serif;
    font-weight: 400;
  }

  .role {
    font-size: 13px;
    font-style: italic;
    padding: 8px;
    background-color: rgb(38,42,101);
    color: white;
    text-align: center;
    font-weight: 100;
  }

  /* RIDUZIONE SPACING SLIDE */
  .carousel .carousel-item {
    padding: 1rem;
  }

  .carousel-item .d-flex {
    gap: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  /* SPACING SOTTO .rico */
  .rico {
    margin-bottom: 20px;
  }

  /* WRAPPER DEI BOTTONI */
  .carousel-buttons-wrapper {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
  }

  /* STILE PULSANTI */
  .carousel-control-prev,
  .carousel-control-next {
    all: unset;
    cursor: pointer;
  }

  .carousel-nav-btn {
    font-size: 16px;
    padding: 8px 12px;
   
   
    
    color: #262a65;
  }
  .carousel-buttons-wrapper{
    margin-top: -50px;
  }

  /* MARGINE FINALE DEL CAROSELLO PER RESPIRO VISIVO */
  .team-carousel {
    padding-bottom: 30px;
  }














  .banner-foto {
    height: 180px;
    margin-top: -10px;
  }
    .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;
    }
    .banner {
    height: 280px;
    padding: 40px 15px;
  }

  .banner h1 {
    font-size: 1.3rem;
    margin-top: 100px;
  }
  
.rico {
    padding: 40px 15px;
  }

  .rico h5 {
    font-size: 1.2rem;
  }

  .rico img {
    max-width: 90px;
    margin-bottom: 15px;
  }

  .rico p {
    font-size: 0.75rem;
    line-height: 1.4;
  }
 .carousel-controls-mobile {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 1rem;
  }

  .carousel-controls-mobile button {
    background-color: #262a65;
    color: white;
    border: none;
    padding: 8px 14px;
    font-size: 18px;
    border-radius: 4px;
  }

  .carousel .carousel-item {
    padding: 0.5rem;
  }

  .d-flex.justify-content-center.gap-4 {
    flex-wrap: wrap;
    justify-content: center !important;
    gap: 1rem !important;
  }

  .team-card {
    width: 45%;
    max-width: 100%;
  }

  .name, .role {
    font-size: 13px;
    padding: 8px;
  }

  .team-card img {
    height: auto;
    max-height: 180px;
    object-fit: cover;
  }

  /* Nasconde bottoni laterali su mobile */
  .carousel-control-prev.d-md-block,
  .carousel-control-next.d-md-block {
    display: none !important;
  }
}

/* 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;
  }


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

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

  .navbar .nav-link {
    font-size: 1rem;
  }

  .contacts-button-nav {
    padding: 5px 12px;
  }
    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;
    }
.banner {
    height: 350px;
    padding: 50px 30px;
  }

  .banner h1 {
    font-size: 1.8rem;
    margin-top: 120px;
  }
    img {
        max-width: 100%;
        height: auto;
    }

.contentinfo {
    margin-left: 20px;
    margin-right: 20px;
  }

  .contentinfo h5 {
    font-size: 1.4rem;
    margin-top: 60px;
  }

  .contentinfo img.decorative-line {
    max-width: 90px;
    margin-left: 0;
    margin-top: -15px;
  }

  .contentinfo p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: 30px;
  }
    .banner-foto {
    height: 260px;
    margin-top: -18px;
  }

.rico {
    padding: 55px 30px;
  }

  .rico h5 {
    font-size: 1.5rem;
  }

  .rico img {
    max-width: 110px;
  }

  .rico p {
    font-size: 0.85rem;
  }
  .card-custom {
    width: 300px;
    height: 480px;
  }

  .card-banner {
    height: 250px;
  }

  .card-custom h6 {
    font-size: 0.9rem;
  }

  .card-custom p {
    font-size: 0.8rem;
    padding: 8px;
  }
}

@media (min-width: 500px) {

  .activity-area .row .area {
    width: 25%;
  }
.contentinfo {
    margin-left: 20px;
    margin-right: 20px;
  }

  .contentinfo h5 {
    font-size: 1.1rem;
    margin-top: 50px;
  }
#homeDropdown{
  background-color: white;
  color: rgb(38,42,101);
  border: none;
}

  .contentinfo img.decorative-line {
    max-width: 70px;
    margin-left: 0;
    margin-top: -14px;
  }

  .contentinfo p {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-top: 20px;
  }
}



/* //per il background */


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


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

  .contentinfo h5 {
    font-size: 1.5rem;
    margin-top: 70px;
  }
#homeDropdown{
  background-color: white;
  color: rgb(38,42,101);
  border: none;
}

  .contentinfo img.decorative-line {
    max-width: 90px;
    margin-left: 0;
    margin-top: -18px;
  }

  .contentinfo p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 30px;
  }
}
@media (min-width: 901px) and (max-width: 1614px) {
  .contentinfo {
    margin-left: 100px !important;
    margin-right: 100px !important;
  }
  #homeDropdown{
  background-color: white;
  color: rgb(38,42,101);
  border: none;
}

}
@media (min-width: 481px) and (max-width: 770px) {
  .contentinfo {
    margin-left: 50px !important;
    margin-right: 50px !important;
  }
  #homeDropdown{
  background-color: white;
  color: rgb(38,42,101);
  border: none;
}

}
@media (min-width: 992px) and (max-width: 1025px) {
  
    .contentinfo {
    margin-left: 40px !important;
    margin-right: 40px !important;
    padding: 20px 10px !important;
  }
#homeDropdown{
  background-color: white;
  color: rgb(38,42,101);
  border: none;
}

}


