/* header.css - Stili della sezione header */

.logo-header img {
    width: 50px;
}

.header {
    z-index: 10000;
    transition: background-color 0.3s ease;
}

.header.scrolled {
    background-color: rgba(0, 0, 0, 0.6); /* colore scuro trasparente */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* per Safari */
}

.side-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 30vw;
    height: 100vh;
    background-color: #111;
    color: white;
    z-index: 10000;
    transform: translateX(-100%);
    display: flex;
    flex-direction: column;
    padding: 40px 20px;
}

.close-btn {
    align-self: flex-end;
    margin-bottom: 20px;
    cursor: pointer;
}

.x-icon {
    width: 40px;
    height: 40px;
    position: relative;
    border: 1px solid white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.x-icon span {
    position: absolute;
    width: 20px;
    height: 1px;
    background: white;
    transition: all 0.3s ease;
}

/* Stato "X" */
.x-icon.open span:first-child {
    transform: rotate(45deg);
}

.x-icon.open span:last-child {
    transform: rotate(-45deg);
}

/* Stato "non X" */
.x-icon span:first-child {
    transform: translateY(-5px);
}

.x-icon span:last-child {
    transform: translateY(5px);
}

.side-menu-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.menu-logo {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.menu-logo img {
    width: 80px;
    height: auto;
}

.menu-divider {
    border: none;
    border-top: 1px solid #444;
    margin: 20px 0;
}

.menu-links a,
.menu-footer a {
    color: white;
    text-decoration: none;
    font-size: 20px;
    margin: 30px 0;
    display: flex;
    align-items: center;
    gap: 30px;
    transition: color 0.3s ease;
}

.menu-links a:hover,
.menu-footer a:hover {
    color: #aaa;
}

.menu-spacer {
    flex-grow: 1;
}

.menu-footer {
    padding-bottom: 20px;
}