
/* ==========================================
   SOGECO - HEADER
   Stile indipendente dal vecchio template
   ========================================== */

.sg-header {
    position: relative;
    z-index: 1000;
    width: 100%;
    margin: 0;
    padding: 0;
    background: #ffffff;
    color: #252525;
    font-family: Arial, Helvetica, sans-serif;
}

.sg-header *,
.sg-header *::before,
.sg-header *::after {
    box-sizing: border-box;
}

.sg-header a {
    text-decoration: none;
}

.sg-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-right: 20px;
    padding-left: 20px;
}

/* BARRA SUPERIORE */

.sg-topbar {
    background: #02403e;
    color: #ffffff;
}

.sg-topbar-inner {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.sg-topbar-contacts {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.sg-topbar-contacts a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 12px;
    line-height: 1.5;
    transition: color 0.2s ease;
}

.sg-topbar-contacts a:hover {
    color: #d6b477;
}

.sg-topbar-contacts i {
    color: #d6b477;
    font-size: 14px;
}

.sg-facebook {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    color: #ffffff;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.sg-facebook:hover {
    color: #ffffff;
    background: #b08a4a;
    border-color: #b08a4a;
}

/* HEADER PRINCIPALE */

.sg-main-header {
    background: #ffffff;
    border-bottom: 1px solid #e9e9e9;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
}

.sg-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    min-height: 105px;
}

/* LOGO */

.sg-logo {
    flex: 0 0 230px;
    min-width: 0;
}

.sg-logo a {
    display: inline-block;
    max-width: 100%;
}

.sg-logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 78px;
    object-fit: contain;
}

/* NAVIGAZIONE */

.sg-navigation {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
}

.sg-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sg-menu-item {
    display: block;
    margin: 0;
    padding: 0;
}

.sg-menu-item a {
    display: block;
    padding: 13px 12px;
    color: #292929;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    border-radius: 4px;
    transition: color 0.2s ease, background 0.2s ease;
}

.sg-menu-item a:hover,
.sg-menu-item a:focus-visible {
    color: #ffffff;
    background: #b08a4a;
}

/* TABLET */

@media (max-width: 991px) {
    .sg-container {
        padding-right: 16px;
        padding-left: 16px;
    }

    .sg-header-inner {
        gap: 16px;
        min-height: 90px;
    }

    .sg-logo {
        flex-basis: 175px;
    }

    .sg-logo img {
        max-height: 68px;
    }

    .sg-menu {
        gap: 2px;
    }

    .sg-menu-item a {
        padding: 10px 8px;
        font-size: 12px;
    }
}

/* SMARTPHONE */

@media (max-width: 767px) {
    .sg-topbar-inner {
        min-height: 38px;
    }

    .sg-topbar-contacts {
        gap: 6px 14px;
    }

    .sg-topbar-contacts a {
        font-size: 11px;
    }

    .sg-topbar-contacts a:nth-child(2) span {
        overflow-wrap: anywhere;
    }

    .sg-facebook {
        flex-shrink: 0;
    }

    .sg-header-inner {
        min-height: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding-top: 16px;

        padding-bottom: 14px;
    }

    .sg-logo {
        flex: none;
        width: 100%;
        text-align: center;
    }

    .sg-logo a {
        margin: 0 auto;
    }

    .sg-logo img {
        max-height: 62px;
        margin: 0 auto;
    }

    .sg-navigation {
        width: 100%;
        flex: none;
    }

    .sg-menu {
        justify-content: center;
        gap: 5px;
    }

    .sg-menu-item a {
        padding: 9px 10px;
        font-size: 12px;
        white-space: normal;
        text-align: center;
    }
}

/* SCHERMI MOLTO PICCOLI */

@media (max-width: 380px) {
    .sg-container {
        padding-right: 12px;
        padding-left: 12px;
    }

    .sg-topbar-contacts {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
        padding: 7px 0;
    }

    .sg-header-inner {
        gap: 12px;
    }

    .sg-menu {
        justify-content: flex-start;
    }

    .sg-menu-item a {
        padding: 8px;
        font-size: 12px;
    }
}
