/* ========================================== */
/* HEADER STYLES */
/* ========================================== */

/* Fixed header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--color-bg-dark);
    padding: 20px 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s ease-in-out;
}

.header-hidden {
    transform: translateY(-100%);
}

.header-container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    position: relative;
}

.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: 55px; 
    width: 55px;
    background: var(--color-bg-dark);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    padding: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo:hover {
    background: var(--color-bg-dark);
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.logo img {
    max-height: 180%;
    max-width: 180%;  
    object-fit: contain;
}

/* Fallback if there's no image */
.logo-text {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--color-bg-dark);
}

.logo-text .auto {
    color: var(--color-primary);
}

/* Contact info */
.contact-info {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.contact-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.social-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.phone {
    color: var(--color-text-light);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.phone:hover {
    color: var(--color-primary-light);
}

.email {
    color: var(--color-text-light);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.email:hover {
    color: var(--color-primary-light);
}

.social-links {
    display: flex;
    gap: 8px;
}

.social-links a {
    color: var(--color-text-light);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    text-decoration: none;
    border-bottom: none;
}

.social-links a:hover {
    color: var(--color-primary);
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* Desktop layout - social media a destra del logo */
/* Parte da 1401px per evitare conflitti con tutti i tablet */
@media (min-width: 1401px) {
    .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }
    
    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    
    /* Contact info solo telefono e email a sinistra */
    .contact-info {
        display: flex;
        align-items: center;
        gap: 20px;
        justify-content: space-between;
        width: 100%;
    }
    
    .contact-column:first-child {
        order: 1;
        margin-right: auto;
    }
    
    /* Social media a destra del logo */
    .contact-column.social-column {
        order: 3;
        margin-left: auto;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }
    
    .social-column .social-links {
        display: flex;
        gap: 8px;
    }
}
