/* ---------------------- DROPDOWN HEADER CL ---------------------- */
.header-cl .dropdown {
    position: relative;
}

.header-cl .dropdown-content {
    display: none;
    position: absolute;
    top: 100%; /* subito sotto il link */
    left: 0;
    background-color: #000;
    min-width: 160px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 1001;
    flex-direction: column;
}

.header-cl .dropdown-content a {
    padding: 12px 16px;
    display: block;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s;
}

.header-cl .dropdown-content a:hover {
    background-color: #5bc032;
    color: #000;
}

/* Mostra il dropdown al passaggio del mouse (desktop) */
.header-cl .dropdown:hover .dropdown-content {
    display: flex;
}
/* Mobile: dropdown cliccabile */
@media (max-width: 768px) {
    .dropdown-content {
        position: relative;
        top: 0;
        box-shadow: none;
    }
}


/* ---------------------- RESET ---------------------- */
.header-cl *,
.header-cl *::before,
.header-cl *::after {
    box-sizing: border-box;
}

.header-cl body {
    font-family: "Inter", system-ui, sans-serif;
    color: #222;
    overflow-x: hidden;
}


.header-cl {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background: #000;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  box-sizing: border-box;
  z-index: 1000;
}

.header-cl + main {
  padding-top: 64px;
}

.header-cl .logo {
    font-size: 2rem;
    font-weight: 700;
    color: #5bc032;
    text-decoration: none;
}

.header-cl nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

.header-cl nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.header-cl nav a:hover {
    color: #5bc032;
}

.header-cl .menu-toggle {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}

@media (max-width: 768px) {
    .header-cl nav {
        position: absolute;
        top: 64px;
        right: 0;
        background: #000;
        flex-direction: column;
        width: 100%;
        display: none;
    }

    .header-cl nav a {
        padding: 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        text-align: center;
    }

    .header-cl .menu-toggle {
        display: block;
    }

    .header-cl nav.active {
        display: flex;
    }
}
