/* Aggiunte per il multilingua e nuove pagine */

h2,h3,h4,h5,h6
{  font-family: "BBH Hegarty", sans-serif;
    font-weight: 400;
    font-style: normal;
}
h1, .navbar ul li a {font-family: "Oswald", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
	}
	.navbar ul li a {font-family: "Oswald", sans-serif;
  font-weight: 400;
	}
	a.dropdown-item  {font-weight: 300!important;}
h1 {background: rgba(0,0,0,0.55);
    box-shadow: 0.7rem 0 0 rgba(0,0,0,0.55), -0.7rem 0 0 rgba(0,0,0,0.55);
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
		padding-bottom:6px;
		}
.info-banner {max-height:600px;overflow:hidden;}
.info-banner .carousel, .info-banner .carousel-inner, .info-banner .carousel-item{max-height:inherit;}
.hero-banner .carousel-item img {object-fit:cover;}
.hero-banner .home-carousel .carousel-item img {object-fit:contain;height:auto;}

.navbar-fix {padding-top: 76px;}

/* Player Audio */
#infographicAudio {
    width: 100%;
    margin-top: 10px;
}

.doc-sidebar{top:170px;margin-top: 50px;margin-right:100px;}
/* Social icons large (pagina contatti) */
.social-icons-large a {
    transition: all 0.3s;
}

.social-icons-large a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Form contatti */
#contactForm .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Sticky audio player */
.sticky-top {
    z-index: 1030;
}

/* Selettore lingua */
.navbar .dropdown-menu {
    min-width: 150px; 
}

.nav-lang {min-width:50px !important;max-width:50px;}
/* Carousel pagine interne */
#infographicCarousel .carousel-item {
    max-height: 500px;
    overflow: hidden;
}

#infographicCarousel .carousel-item img {
    object-fit: cover;
    height: 500px;
}

/* Responsive */
@media (max-width: 768px) {

    @keyframes pulse {
        0% {
            transform: scale(1);
        }
        50% {
            transform: scale(1.1);
        }
        100% {
            transform: scale(1);
        }
    }
    .hero-banner .carousel-item img {
        height: 50vh;
    }
    
    #infographicCarousel .carousel-item img {
        height: 300px;
    }

    .sticky-top {
        position: fixed;
        margin-top:25px;
        top:0;
        left: 43%;
         animation: pulse 2s infinite;

    }
    .doc-note {position:relative!important;}
	
		.navbar-fix {padding-top: 130px;}

}

/* Stili per le nuove infografiche */

/* Modal immagine a tutto schermo */
#imageModal .modal-body img {
    max-height: 70vh;
    object-fit: contain;
}

/* Immagini cliccabili */
img[data-bs-toggle="modal"] {
    cursor: zoom-in;
    transition: transform 0.2s, box-shadow 0.2s;
}

img[data-bs-toggle="modal"]:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Sticky sidebar su desktop */
@media (min-width: 992px) {
  /*  .sticky-top {
        z-index: 1020;
        top: 90px;
    }
		*/
}

/* Lista infografiche nella sidebar */
.list-group-item.active {
    background-color: #0d6efd;
    border-color: #0d6efd;
    font-weight: 600;
}

.list-group-item:hover:not(.active) {
    background-color: #f8f9fa;
}

/* Card infografiche in homepage */
.info-card{
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .carousel-item img {
        height: 300px;
    }
/*    
    .sticky-top {
        position: static !important;
    }
  */  
    .card {
        margin-bottom: 1.5rem;
    }
}

/* Color per bottoni speciali */
.btn-purple {
    background-color: #6f42c1;
    border-color: #6f42c1;
    color: white;
}

.btn-purple:hover {
    background-color: #5936a1;
    border-color: #5936a1;
    color: white;
}
