.header{
	/* background-color:#ffffff; */
	/* -webkit-box-shadow: 0px 0px 35px 0px rgba(0,0,0,0.15);
    box-shadow: 0px 0px 35px 0px rgba(0,0,0,0.15); */
	z-index: 20;
	-webkit-transition: 0.3s cubic-bezier(0, 0, 0.3642, 1);
	transition: 0.3s cubic-bezier(0, 0, 0.3642, 1);
	position: absolute;
	width: 100%;
	top: 0;
	left: 0;
	right: 0;
	transition: 300ms ease-in-out;
 	z-index: 8;
	/* transform: translateY(0%); 
	box-shadow: 0 18px 30px 0 rgba(0, 0, 0, 0.05);*/
	background-color: transparent;
	padding: 10px 0;

}
.header .navbar .navbar-brand{
	/* width: 100%; */
	margin: 0;
}
.header .navbar .navbar-brand img{
	max-height: 120px;
	-webkit-transition: 0.85s;
		transition: 0.85s;
}

/* Overlay */
.custom-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.custom-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Menu laterale con animazione slide+fade */
.custom-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    max-width: 650px;
    height: 100vh;
    background: rgba(27, 27, 27, 0.99);
    z-index: 1001;
    box-shadow: -2px 0 20px rgba(0,0,0,0.15);
    padding: 60px 40px 40px 40px;
    display: flex;
    flex-direction: column;
	align-items: flex-end;
	justify-content: space-between;
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    filter: blur(8px);
    transition:
        transform 0.7s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        filter 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.custom-menu.active {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
    filter: blur(0);
    transition:
        transform 0.7s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        filter 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.custom-menu-nav{
	max-width: 500px;
}

/* Burger menu */
.custom-hamburger {
    background: none;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    position: fixed;
	right: 20px;
	top: 60px;
    z-index: 1002;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 7px;
}
.custom-hamburger .bar {
    display: block;
    width: 32px;
    height: 2px;
    background: #000000;
    border-radius: 1px;
    transition:
        width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        margin 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0;
    transition-delay: 0s;
}
.custom-hamburger.active .bar {
    width: 36px;
    transition-delay: 0.4s;
	background: #ffffff;
}
.custom-hamburger.active .bar:nth-child(1) {
    opacity: 0;
    margin-bottom: -8px;
}
.custom-hamburger.active .bar:nth-child(2) {
    opacity: 1;
    margin-bottom: -8px;
}
.custom-hamburger.active .bar:nth-child(3) {
    opacity: 0;
    margin-top: -8px;
}

/* Voci menu animate */
.custom-menu-list {
    list-style: none;
    padding: 0;
    margin: 80px 0 0 0;
}
.custom-menu-list li {
    margin-bottom: 0px;
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0.3s;
}
.custom-menu.active .custom-menu-list li {
    opacity: 1;
    transform: translateY(0);
}
.custom-menu.active .custom-menu-list li {
    transition-delay: 0.25s;
}
/* .custom-menu.active .custom-menu-list li:nth-child(2) { transition-delay: 0.35s; }
.custom-menu.active .custom-menu-list li:nth-child(3) { transition-delay: 0.45s; }
.custom-menu.active .custom-menu-list li:nth-child(4) { transition-delay: 0.55s; }
/* Aggiungi altre nth-child se hai più voci */
.custom-menu.active .custom-menu-list li {
    opacity: 1;
    transform: translateY(0);
    transition-delay: calc(0.2s + 0.1s * var(--i, 0));
}
.custom-menu-list a {
    font-size: 35px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
	text-transform: uppercase;
}
.custom-menu-list a:hover {
    color: rgb(from var(--paletta-2) r g b / 0.5);
}
/* Sottomenu base */
.custom-menu-list .menu-item-has-children > a {
    position: relative;
    padding-right: 38px;
}
.custom-menu-list .menu-item-has-children > a::after {
    content: '\F27B';
    position: absolute;
	font-family: 'bootstrap-icons';
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 25px;
    color: #fff;
    transition: transform 0.3s;
}
.custom-menu-list .menu-item-has-children.active > a::after {
    transform: translateY(-50%) rotate(90deg);
}

/* Sottomenu nascosto di default */
.custom-menu-list .sub-menu {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition:
        max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding-left: 20px;
	list-style: none;
}
.custom-menu-list .menu-item-has-children.active .sub-menu {
    max-height: 500px; /* o auto se vuoi, ma meglio un valore grande */
    opacity: 1;
}

/* Voci sottomenu */
.custom-menu-list .sub-menu li a {
    font-size: 22px;
    color: #ccc;
    font-weight: 400;
    text-transform: none;
    padding: 10px 0;
}
.custom-menu-list .sub-menu li a:hover {
    color: #fff;
}

@media (max-width: 600px) {
    .custom-menu {
        width: 100vw;
        max-width: 100vw;
        padding: 40px 15px 15px 15px;
    }
    .custom-menu-list a {
        font-size: 1.4rem;
    }
}
.menu-bottom h2{
	font-size: var(--font-size-xs);
  	line-height: var(--line-height-xs);
	color: #9d9d9d;
}
.custom-menu-bottom {
    display: flex;
    gap: 24px;
    list-style: none;    
    padding: 0;
    justify-content: flex-end;
    align-items: center;
    font-size: 1.1rem;
}
.custom-menu-bottom li a {
    color: #ccc;
    font-size: 1.1rem;
    font-weight: 400;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.2s;
    padding: 4px 0;
}
.custom-menu-bottom li a:hover {
    color: #fff;
}
@media (max-width: 600px) {
    .custom-menu-bottom {
        justify-content: center;
        gap: 16px;
        font-size: 1rem;
        margin-top: 24px;
    }
    .custom-menu-bottom li a {
        font-size: 1rem;
    }
}
.custom-navbar .menu-secondario ul{
	list-style: none;
}
.custom-navbar .menu-secondario ul li{
    padding: 20px 15px 20px 15px;
	font-size: 14px;
	position: relative;
}
.custom-navbar .menu-secondario ul li::before{
	content: '';
	display: block;
	width: 1px;
	height: 15px;
	background-color: var(--paletta-2);
	position: absolute;
  	left: 0;
  	top: 23px;
}
.custom-navbar .menu-secondario ul li:first-child::before{
	width: 0;
	height: 0;
}
.header-negative .navbar,
.header-negative .nav-bar,
.header-negative .menu-secondario,
.header-negative .navbar-secondary,
.header-negative .navbar-brand,
.header-negative .navbar-other {
    background: transparent !important;
}
.header-negative .navbar-secondary li a,
.header-negative .custom-menu-list a,
.header-negative .custom-menu-bottom li a {
    color: #fff !important;
}
.header-negative .navbar-secondary li a:hover,
.header-negative .custom-menu-list a:hover,
.header-negative .custom-menu-bottom li a:hover {
    color: #eee !important;
}
.header-negative .custom-hamburger .bar {
    background: #fff !important;
}
.header-negative .menu-secondario ul li::before {
    background-color: #fff !important;
}
.header-negative.cambio-colore .custom-hamburger .bar {
  background: #000000 !important;
}
@media(max-width: 991px) {
  .header .navbar-secondary{
	padding: 0;
  }
}
@media(max-width: 768px) {
  .header .navbar .navbar-brand img {
    max-height: 80px;
  }
  .header .custom-hamburger {
	top: 40px;
  }
  .header-negative .navbar-secondary li a{
	font-size: 12px;
  }
}
