﻿ .navbar {
            background: var(--bg-nav);
            color: var(--text-main);
            padding: 1.2rem 1.5rem; /* più alta */
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: sticky;
            top: 0;
            z-index: 10;
            position: relative; /* serve per lo sfumato */
        }
            .navbar::after {
                content: "";
                position: absolute;
                left: 0;
                right: 0;
                bottom: -12px; /* quanto scende lo sfumato */
                height: 22px; /* intensità dello sfumato */
                pointer-events: none;
                /*background: linear-gradient( to bottom, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0) );*/
                background: linear-gradient( to bottom, rgba(21, 19, 32, 0.55), /* stesso colore navbar ma trasparente */ rgba(21, 19, 32, 0) );
            }



        .nav-left {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .brand {
            font-weight: 600;
            font-size: 2.0rem;
            letter-spacing: 0.03em;
            /*color: var(--accent);*/
            
            background: -webkit-linear-gradient(#FFCF00,#4B2E83);
          -webkit-background-clip: text;
           -webkit-text-fill-color: transparent;
           filter: linear-shadow(2px 2px #333);
        }
          .brandHero {
            font-weight: 600;
            font-size: 2.0rem;
            letter-spacing: 0.03em;
            color:var(--accent);
         
        }
  .brand2 {
            font-weight: 600;
            font-size: 2.0rem;
            letter-spacing: 0.03em;
            /*color: var(--brand);*/
            background: -webkit-linear-gradient(#0B6E6E,#0F4C5C);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            filter: linear-shadow(2px 2px #333);
        }

    .nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    flex-grow: 1;
    justify-content: space-evenly;
}

        .nav-menu a {
            text-decoration: none;
            color: var(--text-main);
            background-color: transparent;
            font-size: clamp(0.9rem, 3vw, 1.1rem);
            font-weight: 500;
            padding: 6px 14px;
            transition: background 0.2s ease, transform 0.15s ease, color 0.2s ease;
            border-radius: 16px;
        }
            .nav-menu a:hover {
                background: #b8962f; /* gold più scuro */
                color: #fff; /* testo bianco: molto elegante */
                border-radius: 16px; /* radius più morbido in hover */
                padding:6px 14px;
                transform: translateY(-2px);
            }
.active{
      background: var(--bt-primary-bg);
        border-color: var(--bt-primary-border);
        transform: translateY(-1px);
}

        

        /* HAMBURGER (MOBILE) */
        .nav-toggle {
            display: none;
            flex-direction: column;
            gap: 4px;
            cursor: pointer;
        }
        .nav-container { flex-grow: 1; display: flex; justify-content: center; }
        .nav-toggle span {
            width: 22px;
            height: 2px;
            background: var(--text-main);
            border-radius: 999px;
            transition: transform 0.2s ease, opacity 0.2s ease;
        }
   @media (max-width: 768px) {
            .nav-menu {
                position: absolute;
                top: 56px;
                right: 0;
                left: 0;
                background: #0b0a12;
                flex-direction: column;
                padding: 0.75rem 1.5rem 1rem;
                gap: 0.75rem;
                transform: translateY(-120%);
                opacity: 0;
                pointer-events: none;
                transition: transform 0.2s ease, opacity 0.2s ease;
            }

            .nav-menu.open {
                transform: translateY(0);
                opacity: 1;
                pointer-events: auto;
            }

            .nav-toggle {
                display: flex;
            }
            .hero{width:100%;}
        }