/* Patch 01.13 - Faixa de contactos no topo e menu logo abaixo */
@media (min-width: 992px) {
    body {
        --em-contact-scroll-height: 110px;
    }

    body .main-header {
        display: none !important;
    }

    body.emodraga-contact-scroll-active .main-header {
        display: block !important;
        position: fixed !important;
        z-index: 1008 !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: 0 8px 18px rgba(10,20,40,.12);
    }

    body.emodraga-contact-scroll-active .main-header .header-top {
        margin: 0 !important;
    }

    /* A classe .nav-scroll usa top:-100px + translateY(100px),
       por isso deslocamos o topo para que o resultado final fique
       exactamente abaixo da faixa de contactos. */
    body.emodraga-contact-scroll-active .navbar.emodraga-navbar.nav-scroll,
    body.emodraga-contact-scroll-active .navbar.emodraga-navbar.is-scrolled {
        z-index: 1007 !important;
    }

    body.emodraga-contact-scroll-active .navbar.emodraga-navbar.nav-scroll {
        top: calc(var(--em-contact-scroll-height, 110px) - 100px) !important;
    }
}

/* No telemóvel mantém-se o comportamento actual do tema. */

/* Patch 01.15 — hora e redes sociais em duas linhas, sem alterar o HTML. */
@media (min-width: 992px) {
    .main-header .header-top .top-right {
        align-self: flex-start;
        padding-top: 4px !important;
        padding-bottom: 0 !important;
        min-width: 178px;
    }

    .main-header .header-top .top-right ul.social-icon-one {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-end !important;
        justify-content: flex-start !important;
        gap: 6px !important;
        float: none !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none;
    }

    .main-header .header-top .top-right ul.social-icon-one > li {
        float: none !important;
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
        line-height: 1.3;
        white-space: nowrap;
    }

    .main-header .header-top .top-right .emodraga-top-clock {
        font-size: 12px;
        font-weight: 600;
        text-align: right;
    }

    .main-header .header-top .top-right .emodraga-social-icons-spaced {
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
        gap: 15px;
    }

    .main-header .header-top .top-right .emodraga-social-icons-spaced > a.fa {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 23px;
        height: 25px;
        padding: 0 !important;
        margin: 0 !important;
        font-size: 17px !important;
        line-height: 1 !important;
        text-decoration: none;
        transition: color .18s ease, transform .18s ease;
    }

    .main-header .header-top .top-right .emodraga-social-icons-spaced > a.fa:hover,
    .main-header .header-top .top-right .emodraga-social-icons-spaced > a.fa:focus-visible {
        color: #fff0b5 !important;
        transform: translateY(-1px);
    }
}
