
/* =========================================
   HEADER GRUPPO SIDAMA
========================================= */

.gs-header,
.gs-header * {
    box-sizing: border-box;
}

.gs-header {
    --green: #007048;

    position: sticky;
    top: 0;
    z-index: 9999;
    width: 100%;

    background: rgba(255,255,255,.97);
    border-bottom: 1px solid #edf1ee;
    box-shadow: 0 4px 18px rgba(0,0,0,.04);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    font-family: Montserrat, Arial, sans-serif;
}

.gs-header-inner {
    width: 100%;
    max-width: 1600px;
    min-height: 90px;
    margin: 0 auto;
    padding: 0 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

/* LOGO */

.gs-header-logo {
    flex: 0 0 180px;
    width: 180px;
    height: 58px;

    display: flex;
    align-items: center;

    text-decoration: none;
}

.gs-header-logo img {
    display: block;
    max-width: 100%;
    max-height: 58px;
    object-fit: contain;
}

/* MENU */

.gs-header-nav {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: clamp(18px, 2vw, 34px);
}

.gs-header-nav a {
    color: #171717;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;

    transition: color .2s ease;
}

.gs-header-nav a:hover {
    color: var(--green);
}

/* CONTATTI */

.gs-header-actions {
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
}

.gs-header-phone {
    color: #414141;
    font-size: 17px;
    text-decoration: none;
    white-space: nowrap;
}

/* PULSANTE CHIAMACI ORA */

.gs-header-cta {
    min-height: 46px;
    padding: 0 24px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: var(--green);
    color: #fff;

    border-radius: 2px;

    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;

    transition: background .2s ease;
}

.gs-header-cta:hover {
    background: #005c3b;
    color: #fff;
}

/* MENU HAMBURGER */

.gs-header-toggle {
    display: none;

    width: 44px;
    height: 44px;
    padding: 0;

    border: 1px solid #e4ece7;
    border-radius: 50%;

    background: #fff;

    align-items: center;
    justify-content: center;

    cursor: pointer;
}

.gs-header-toggle span,
.gs-header-toggle span::before,
.gs-header-toggle span::after {
    position: relative;
    display: block;

    width: 19px;
    height: 2px;

    background: var(--green);
    border-radius: 2px;
}

.gs-header-toggle span::before,
.gs-header-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
}

.gs-header-toggle span::before {
    top: -6px;
}

.gs-header-toggle span::after {
    top: 6px;
}

.gs-header-toggle[aria-expanded="true"] span {
    background: transparent;
}

.gs-header-toggle[aria-expanded="true"] span::before {
    top: 0;
    transform: rotate(45deg);
}

.gs-header-toggle[aria-expanded="true"] span::after {
    top: 0;
    transform: rotate(-45deg);
}


/* =========================================
   RESPONSIVE TABLET
========================================= */

@media (max-width: 1150px) {

    .gs-header-inner {
        gap: 18px;
    }

    .gs-header-logo {
        flex-basis: 140px;
        width: 140px;
    }

    .gs-header-nav {
        gap: 16px;
    }

    .gs-header-nav a {
        font-size: 12px;
    }

    .gs-header-actions {
        gap: 12px;
    }

    .gs-header-phone {
        font-size: 14px;
    }

    .gs-header-cta {
        padding: 0 15px;
        font-size: 11px;
    }
}


/* =========================================
   RESPONSIVE SMARTPHONE
========================================= */

@media (max-width: 850px) {

    .gs-header-inner {
        min-height: 76px;
        padding: 0 22px;
    }

    .gs-header-logo {
        flex: 0 0 155px;
        width: 155px;
        height: 50px;
    }

    .gs-header-nav {
        display: none;

        position: absolute;
        top: 100%;
        left: 0;
        right: 0;

        padding: 12px 24px 22px;

        flex-direction: column;
        align-items: stretch;
        gap: 0;

        background: #fff;

        border-top: 1px solid #edf1ee;
        border-bottom: 1px solid #e5ece7;

        box-shadow: 0 15px 25px rgba(0,0,0,.06);
    }

    .gs-header-nav.is-open {
        display: flex;
    }

    .gs-header-nav a {
        padding: 15px 0;

        border-bottom: 1px solid #edf1ee;

        font-size: 15px;
    }

    .gs-header-actions {
        display: none;
    }

    .gs-header-toggle {
        display: flex;
        flex: 0 0 44px;
    }
}


/* =========================================
   PULSANTE TELEFONO HEADER
========================================= */

.gs-header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 14px 25px;

    border-radius: 12px;

    background: #007048;
    color: #fff !important;

    font-family: Montserrat, Arial, sans-serif;
    font-size: 13px;
    font-weight: 800;

    text-decoration: none;
    white-space: nowrap;

    transition: background .2s ease, transform .2s ease;
}

.gs-header-cta:hover {
    background: #005638;
    transform: translateY(-2px);
}
/* =========================================
   PULSANTE TELEFONO MENU HAMBURGER
========================================= */

.gs-mobile-cta {
    display: none;
}

@media (max-width: 768px) {

    .gs-mobile-cta {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;

        width: calc(100% - 40px);
        margin: 20px;

        padding: 15px 20px;

        border-radius: 12px;

        background: #007048;
        color: #fff !important;

        font-size: 14px;
        font-weight: 800;

        text-decoration: none !important;
        text-align: center;
    }

    .gs-mobile-cta:hover {
        background: #005638;
    }

}

/* =========================================
   TELEFONO AFFIANCATO ALL'HAMBURGER
========================================= */

.gs-mobile-actions {
    display: none;
}

@media (max-width: 768px) {

    .gs-mobile-actions {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 10px;
    }

    .gs-mobile-phone {
        display: inline-flex;
        align-items: center;
        justify-content: center;

        padding: 12px 15px;

        border-radius: 12px;

        background: #007048;
        color: #fff !important;

        font-family: Montserrat, Arial, sans-serif;
        font-size: 12px;
        font-weight: 800;

        text-decoration: none;
        white-space: nowrap;
    }

    .gs-mobile-phone:hover {
        background: #005638;
    }

}

@media (max-width: 768px) {

    .gs-mobile-actions {
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
        gap: 10px;
        flex-shrink: 0;
        visibility: visible !important;
    }

    .gs-mobile-phone {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;

        align-items: center;
        justify-content: center;

        padding: 12px 13px;
        border-radius: 12px;

        background: #007048 !important;
        color: #fff !important;

        font-size: 12px;
        font-weight: 800;
        text-decoration: none !important;
        white-space: nowrap;
    }

    .gs-header-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

}

/* ==========================================
   HEADER FISSO CON OMBRA DINAMICA
========================================== */

.gs-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    z-index: 9999 !important;

    background: #ffffff !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    border-bottom: none !important;
    backdrop-filter: none !important;
}

/* Quando le card sono sotto l'header */
.gs-header.gs-header-with-cards {
    box-shadow: none !important;
}

/* Spazio riservato all'header */

body {
    padding-top: 80px;
}

/* Header senza separazioni visive */

.gs-header {
    background: #ffffff !important;
    box-shadow: none !important;
    border-bottom: none !important;
    backdrop-filter: none !important;
}


/* ==========================================
   PULSANTE ASSISTENZA - GRUPPO SIDAMA
========================================== */

.gs-header-actions {
    gap: 12px;
}

.gs-header-assistance {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    min-height: 46px;
    padding: 12px 20px;

    border: 1.5px solid #007048;
    border-radius: 12px;

    background: #eff8f4;
    color: #007048;

    font-family: Montserrat, Arial, sans-serif;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;

    text-decoration: none;
    white-space: nowrap;

    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.gs-header-assistance svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.gs-header-assistance:hover {
    background: #007048;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,112,72,.16);
}

.gs-header-assistance:focus-visible {
    outline: 3px solid rgba(0,112,72,.3);
    outline-offset: 3px;
}

/* Tablet: riduce gli ingombri */

@media (min-width: 851px) and (max-width: 1250px) {
    .gs-header-inner {
        gap: 12px;
    }

    .gs-header-nav {
        gap: 12px;
    }

    .gs-header-actions {
        gap: 8px;
    }

    .gs-header-assistance {
        padding: 12px 13px;
        font-size: 12px;
    }

    .gs-header-cta {
        padding: 12px 14px;
    }
}

/* Smartphone: pulsante nel menu hamburger */

@media (max-width: 850px) {
    .gs-header-assistance {
        display: none;
    }

    .gs-mobile-assistance {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;

        margin: 12px 20px;
        padding: 15px 18px !important;

        border: 1.5px solid #007048 !important;
        border-radius: 12px;

        background: #eff8f4;
        color: #007048 !important;

        font-size: 14px !important;
        font-weight: 800 !important;
        text-decoration: none !important;
    }
}

@media (min-width: 851px) {
    .gs-mobile-assistance {
        display: none !important;
    }
}