/* Header comune full-width per compara - azzurro molto chiaro (spettro sito) */
@keyframes header-stripe-flow {
    0% { background-position: 50% 0; }
    100% { background-position: 0 0; }
}
.compara-header {
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, #e4f4ff 0%, #d0ebff 50%, #bae3ff 100%);
    padding: 5px 0;
    box-shadow: 0 2px 12px rgba(68, 182, 255, 0.12);
}
.compara-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FF6E6E 0%, #ffde59 14%, #81D6FF 27.5%, #44B6FF 39%, #1E88E5 50%, #FF6E6E 50%, #ffde59 64%, #81D6FF 77.5%, #44B6FF 89%, #1E88E5 100%);
    background-size: 200% 100%;
    background-position: 0 0;
    animation: header-stripe-flow 2s linear infinite;
}
.compara-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.compara-header-logo {
    text-decoration: none;
}
.compara-header-logo img {
    max-width: 461px;
    height: 128px;
    object-fit: contain;
    display: block;
}
.compara-header-auth {
    display: flex;
    align-items: center;
    gap: 12px;
}
.compara-header-email {
    color: #12375F;
    font-size: 13px;
    font-weight: 500;
}
.compara-header-logout {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(30, 136, 229, 0.15);
    color: #1E88E5;
    border: 1px solid rgba(68, 182, 255, 0.4);
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.2s, color 0.2s;
}
.compara-header-logout:hover {
    background: rgba(68, 182, 255, 0.25);
    color: #12375F;
}
.compara-header-gsi {
    min-height: 40px;
}

/* Mobile: layout header con login (email + Esci) */
@media (max-width: 768px) {
    .compara-header {
        padding: 15px 0;
    }
    .compara-header-inner {
        padding: 0 12px;
        gap: 8px;
        min-height: 0;
    }
    .compara-header-logo {
        flex-shrink: 0;
        min-width: 0;
    }
    .compara-header-logo img {
        max-width: 437px;
        height: 113px;
        object-fit: contain;
    }
    .compara-header-auth {
        flex: 1;
        min-width: 0;
        justify-content: flex-end;
        gap: 8px;
        flex-wrap: nowrap;
    }
    .compara-header-email {
        max-width: 140px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 12px;
    }
    .compara-header-logout {
        padding: 6px 10px;
        font-size: 12px;
        flex-shrink: 0;
    }
    .compara-header-logout i {
        font-size: 11px;
    }
}
@media (max-width: 480px) {
    .compara-header { padding: 15px 0; }
    .compara-header-inner { padding: 0 10px; gap: 6px; }
    .compara-header-logo img { max-width: 350px; height: 96px; }
    .compara-header-email { max-width: 100px; font-size: 11px; }
    .compara-header-logout { padding: 5px 8px; font-size: 11px; }
}
