/*
 Theme Name:   Savoy Child
 Description:  Child theme do tema Savoy para mobarq.pt (Mobarq Forms)
 Author:       Interescritorio
 Template:     savoy
 Version:      1.0.0
*/

/* Homepage SEO: H1 em texto, texto de apresentacao e perguntas frequentes */
.home .ie-home-h1 { font-size: 24px; line-height: 1.4; }
.ie-home-text h2,
.ie-section-title,
.ie-faq h2 { font-size: 28px; line-height: 1.3; }
.ie-home-text h2 { margin: 28px 0 8px; }
.ie-faq { margin-top: 70px; padding-top: 50px; border-top: 1px solid #eee; }
.ie-faq h2 { margin-bottom: 6px; }
.ie-faq h3 { font-size: 18px; line-height: 1.4; margin: 24px 0 6px; }

/* Artigos do blog: mostrar titulo H1 e data (o tema esconde .nm-post-header nos projectos) */
.ie-artigo .nm-post-header { display: block; margin-bottom: 30px; }
.ie-artigo .entry-content h2 { margin-top: 36px; margin-bottom: 10px; }
.ie-artigo .entry-content h3 { margin-top: 24px; margin-bottom: 8px; }
.ie-artigo .entry-content table { width: 100%; margin: 16px 0 24px; }

/* ie-menu-fit: menus do cabecalho centrado sem tocar no logotipo */
@media (min-width: 992px) {
    .nm-header.centered .nm-main-menu > ul > li > a,
    .nm-header.centered .nm-right-menu > ul > li > a {
        padding-left: 7px !important;
        padding-right: 7px !important;
    }
}
@media (min-width: 992px) and (max-width: 1279px) {
    .nm-header.centered .nm-main-menu > ul > li > a,
    .nm-header.centered .nm-right-menu > ul > li > a {
        padding-left: 5px !important;
        padding-right: 5px !important;
        font-size: 13px !important;
    }
}
@media (min-width: 992px) and (max-width: 1099px) {
    .nm-header.centered .nm-main-menu > ul > li > a,
    .nm-header.centered .nm-right-menu > ul > li > a {
        padding-left: 2px !important;
        padding-right: 2px !important;
        font-size: 11.5px !important;
    }
}
/* O primeiro e o ultimo nome do menu alinham com as margens do texto da pagina */
@media (min-width: 992px) {
    .nm-header.centered .nm-main-menu {
        margin-left: 0 !important;
    }
    .nm-header.centered .nm-right-menu {
        margin-right: 0 !important;
    }
    .nm-header.centered .nm-main-menu > ul > li.nm-menu-offscreen + li > a {
        padding-left: 0 !important;
    }
    .nm-header.centered .nm-right-menu > ul > li:last-child > a {
        padding-right: 0 !important;
    }
}

/* ie-sub-global: descricao das especialidades numa linha propria (tambem no menu movel) */
.ie-sub {
    display: block;
    font-size: 0.85em;
    font-weight: 400;
    opacity: 0.75;
}

/* ie-specialties: menu 'Outras especialidades' em cartao claro e legivel */
.nm-right-menu .menu-item-has-children > .sub-menu {
    background: #ffffff !important;
    border: 1px solid #e7e9ee;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14), 0 2px 6px rgba(15, 23, 42, 0.06);
    padding: 8px !important;
    min-width: 290px;
}
.nm-right-menu .menu-item-has-children > .sub-menu .nm-sub-menu-ul {
    padding: 0 !important;
    margin: 0;
}
.nm-right-menu .menu-item-has-children > .sub-menu li a {
    display: block;
    padding: 12px 16px !important;
    border-radius: 10px;
    color: #111827 !important;
    font-size: 15px !important;
    font-weight: 600;
    line-height: 1.3 !important;
    letter-spacing: 0.01em;
    white-space: nowrap;
    transition: background-color 0.15s ease, transform 0.15s ease;
}
.nm-right-menu .menu-item-has-children > .sub-menu li a:hover {
    background: #f3f4f6;
    transform: translateX(2px);
}
.nm-right-menu .menu-item-has-children > .sub-menu li a::after {
    content: '\2197';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-weight: 400;
}
.nm-right-menu .menu-item-has-children > .sub-menu li a {
    position: relative;
    padding-right: 44px !important;
}
.nm-right-menu .sub-menu .ie-sub {
    display: block;
    margin-top: 3px;
    font-size: 13px;
    font-weight: 400;
    color: #6b7280;
    letter-spacing: 0;
    opacity: 1;
}
.nm-right-menu .menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-3px) rotate(45deg);
}

/* ie-card-arch: arquitecto nos cartoes de projecto */
.nm-post-excerpt .ie-card-arch {
    margin: 0 0 10px !important;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
    color: #111827;
}
.nm-post-excerpt .ie-card-arch-label {
    display: inline-block;
    margin-right: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7280;
}

.ie-project-models h2 {
    margin-bottom: 10px;
}

/* ie-model: paginas individuais de modelo (filhas de /modelos/) */
.iem {
    --iem-ink: #111827;
    --iem-text: #374151;
    --iem-mute: #6b7280;
    --iem-line: #e5e7eb;
    --iem-soft: #f4f4f2;
    color: var(--iem-ink);
    padding-top: 24px;
}
.iem h1,
.iem h2,
.iem h3 {
    color: var(--iem-ink);
    letter-spacing: -0.01em;
}
.iem-hero {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    min-height: 540px;
    overflow: hidden;
    border-radius: 20px;
    background: var(--iem-soft);
}
.iem-hero__media {
    position: relative;
    order: 2;
    min-height: 320px;
}
.iem-hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.iem-hero__txt {
    display: flex;
    flex-direction: column;
    justify-content: center;
    order: 1;
    padding: 48px 44px;
}
.iem-crumbs {
    margin-bottom: 28px;
    font-size: 13px;
    color: var(--iem-mute);
}
.iem-crumbs a {
    color: var(--iem-mute);
}
.iem-crumbs span {
    margin: 0 8px;
    opacity: 0.5;
}
.iem-kicker {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--iem-mute);
}
.iem h1 {
    margin: 0 0 16px;
    font-size: clamp(30px, 3.4vw, 46px);
    line-height: 1.08;
}
.iem-lead {
    max-width: 46ch;
    margin: 0 0 26px;
    font-size: 17px;
    line-height: 1.6;
    color: var(--iem-text);
}
.iem-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.iem-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    border-radius: 999px;
    background: var(--iem-ink);
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.15s ease, transform 0.15s ease;
}
.iem-btn:hover {
    background: #000000;
    transform: translateY(-1px);
}
.iem-btn--ghost {
    background: transparent;
    box-shadow: inset 0 0 0 1.5px var(--iem-ink);
    color: var(--iem-ink) !important;
}
.iem-btn--ghost:hover {
    background: var(--iem-ink);
    color: #ffffff !important;
}
.iem-tabs {
    display: flex;
    gap: 6px;
    margin: 8px 0 0;
    padding: 10px 0;
    overflow-x: auto;
    border-bottom: 1px solid var(--iem-line);
}
.iem-tabs a {
    flex: 0 0 auto;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    color: var(--iem-ink);
    text-decoration: none;
}
.iem-tabs a:hover {
    background: var(--iem-soft);
}
.iem-sec {
    padding: 56px 0;
    border-bottom: 1px solid var(--iem-line);
    scroll-margin-top: calc(var(--iem-top, 70px) + 16px);
}
.iem-sec h2 {
    margin: 0 0 24px;
    font-size: 28px;
}
.iem-prod {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
}
.iem-prod--solo {
    grid-template-columns: 1fr;
}
.iem-prod--solo .iem-prod__txt {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: 48px;
    align-items: start;
}
.iem-prod--solo .iem-prod__txt > * {
    grid-column: 1;
}
.iem-prod--solo .iem-feat {
    grid-column: 2;
    grid-row: 1 / span 6;
    margin: 0;
    padding: 28px;
    border-radius: 18px;
    background: var(--iem-soft);
}
.iem-prod p {
    font-size: 16px;
    line-height: 1.75;
    color: var(--iem-text);
}
.iem-feat {
    display: grid;
    gap: 10px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}
.iem-feat li {
    position: relative;
    padding-left: 28px;
    font-size: 16px;
    line-height: 1.75;
}
.iem-feat li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 0.35em;
    width: 12px;
    height: 7px;
    border-left: 2px solid var(--iem-ink);
    border-bottom: 2px solid var(--iem-ink);
    transform: rotate(-45deg);
}
.iem-prod__img {
    margin: 0;
    overflow: hidden;
    border-radius: 18px;
    background: var(--iem-soft);
}
.iem-prod__img img {
    display: block;
    width: 100%;
    height: auto;
}
.iem-tech__grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 48px;
}
.iem-specs {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}
.iem-specs caption,
.iem-tech__side h3 {
    margin: 0 0 8px;
    padding: 0 0 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-align: left;
    text-transform: uppercase;
    color: var(--iem-mute);
}
.iem-specs th,
.iem-specs td {
    padding: 14px 0;
    border: 0;
    border-bottom: 1px solid var(--iem-line);
    text-align: left;
    vertical-align: top;
}
.iem-specs th {
    width: 42%;
    padding-right: 16px;
    font-weight: 500;
    color: var(--iem-mute);
}
.iem-specs td {
    font-weight: 600;
}
.iem-tech__side p {
    margin: 0 0 24px;
    font-size: 16px;
    line-height: 1.75;
}
.iem-norms {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}
.iem-norms li {
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--iem-soft);
    font-size: 13px;
}
.iem-gal {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px 16px;
}
.iem-gal__item {
    margin: 0;
}
.iem-zoom {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 14px;
    background: var(--iem-soft);
}
.iem-zoom img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.iem-zoom:hover img {
    transform: scale(1.04);
}
.iem-zoom--contain {
    background: #ffffff;
    box-shadow: inset 0 0 0 1px var(--iem-line);
}
.iem-zoom--contain img {
    object-fit: contain;
    padding: 12px;
}
.iem-gal figcaption {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--iem-mute);
}
.iem-dl {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.iem-dl a {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 48px 18px 18px;
    border: 1px solid var(--iem-line);
    border-radius: 14px;
    color: var(--iem-ink);
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.iem-dl a::after {
    content: '\2193';
    position: absolute;
    right: 18px;
    top: 50%;
    font-size: 18px;
    transform: translateY(-50%);
}
.iem-dl a:hover {
    border-color: var(--iem-ink);
    box-shadow: 0 6px 20px rgba(17, 24, 39, 0.08);
}
.iem-dl__t {
    font-size: 15px;
    font-weight: 600;
}
.iem-dl__m {
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--iem-mute);
}
.iem-note {
    margin: 14px 0 0;
    font-size: 13px;
    color: var(--iem-mute);
}
.iem-rel__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.iem-rel__card {
    display: block;
    color: var(--iem-ink);
    text-decoration: none;
}
.iem-rel__card img {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 10px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 14px;
}
.iem-rel__name {
    display: block;
    font-size: 16px;
    font-weight: 600;
}
.iem-rel__brand {
    display: block;
    font-size: 13px;
    color: var(--iem-mute);
}
.iem-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 56px 0 64px;
    padding: 40px;
    border-radius: 20px;
    background: var(--iem-ink);
    color: #ffffff;
}
.iem-cta h2 {
    margin: 0 0 8px;
    font-size: 28px;
    color: #ffffff;
}
.iem-cta p {
    max-width: 60ch;
    margin: 0;
    font-size: 16px;
    line-height: 1.75;
    color: #d1d5db;
}
.iem-cta .iem-btn {
    flex: 0 0 auto;
    background: #ffffff;
    color: var(--iem-ink) !important;
}
@media (max-width: 991px) {
    .iem-hero {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
    }
    .iem-hero__media {
        order: 0;
        min-height: 0;
        aspect-ratio: 4 / 3;
    }
    .iem-hero__txt {
        padding: 28px 22px 32px;
    }
    .iem-prod,
    .iem-tech__grid,
    .iem-prod--solo .iem-prod__txt {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .iem-prod--solo .iem-feat {
        grid-column: 1;
        grid-row: auto;
    }
    .iem-gal {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .iem-cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px;
    }
}
@media (max-width: 599px) {
    .iem-sec {
        padding: 40px 0;
    }
    .iem-gal {
        grid-template-columns: 1fr;
    }
    .iem-rel__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.iem-lb {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 64px;
    background: rgba(10, 12, 16, 0.92);
}
.iem-lb[hidden] {
    display: none;
}
.iem-lb figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    margin: 0;
}
.iem-lb img {
    max-width: 100%;
    max-height: calc(100vh - 150px);
    object-fit: contain;
    border-radius: 8px;
}
.iem-lb figcaption {
    margin-top: 12px;
    font-size: 14px;
    text-align: center;
    color: #e5e7eb;
}
.iem-lb button {
    position: absolute;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 24px;
    line-height: 44px;
    cursor: pointer;
}
.iem-lb button:hover {
    background: rgba(255, 255, 255, 0.24);
}
.iem-lb__close {
    top: 16px;
    right: 16px;
}
.iem-lb__prev,
.iem-lb__next {
    top: 50%;
    transform: translateY(-50%);
}
.iem-lb__prev {
    left: 12px;
}
.iem-lb__next {
    right: 12px;
}
@media (max-width: 599px) {
    .iem-lb {
        padding: 56px 12px;
    }
    .iem-lb__prev,
    .iem-lb__next {
        top: auto;
        bottom: 16px;
        transform: none;
    }
}


/* ie-arch-link: arquitecto clicavel (cartoes de projecto e carrossel) */
.ie-arch-link {
    color: inherit !important;
    text-decoration: underline;
    text-decoration-color: rgba(17, 24, 39, 0.35);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.15s ease;
}
.ie-arch-link:hover {
    text-decoration-color: currentColor;
}

/* iec: carrossel horizontal; o cartao activo alinha com a margem do texto e os seguintes continuam ate ao fim do ecra */
.iec {
    position: relative;
    --iec-w: clamp(280px, 52vw, 760px);
    --iec-gap: 24px;
}
.iec__track {
    display: flex;
    gap: var(--iec-gap);
    margin-right: calc(50% - 50vw);
    padding: 0 calc(50% + 50vw - var(--iec-w)) 0 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    cursor: grab;
    outline: none;
}
.iec__track::-webkit-scrollbar {
    display: none;
}
.iec__track.is-dragging {
    scroll-snap-type: none;
    cursor: grabbing;
    user-select: none;
}
.iec__item {
    position: relative;
    flex: 0 0 var(--iec-w);
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 18px;
    background: #1f2229;
    scroll-snap-align: start;
    opacity: 0.5;
    transition: opacity 0.55s ease;
}
.iec__item:hover {
    opacity: 0.75;
}
.iec__item.is-active {
    opacity: 1;
}
.iec__media,
.iec__img {
    display: block;
    width: 100%;
    height: 100%;
}
.iec__img {
    object-fit: cover;
    transform: scale(1.06);
    transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
    -webkit-user-drag: none;
}
.iec__item.is-active .iec__img {
    transform: scale(1);
}
.iec__item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 10, 14, 0) 38%, rgba(8, 10, 14, 0.82) 100%);
    pointer-events: none;
}
.iec__body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 30px 32px;
    color: #ffffff;
}
.iec__kicker {
    margin: 0 0 6px !important;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
}
.iec__kicker span {
    color: rgba(255, 255, 255, 0.55);
}
.iec__kicker .ie-arch-link {
    text-decoration-color: rgba(255, 255, 255, 0.45);
}
.iec__title {
    margin: 0 !important;
    font-size: clamp(22px, 2.3vw, 32px) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.01em;
}
.iec__title a {
    color: #ffffff !important;
}
.iec__text,
.iec__more {
    max-height: 0;
    margin: 0 !important;
    overflow: hidden;
    opacity: 0;
    transform: translateY(8px);
    transition: max-height 0.5s ease, opacity 0.45s ease 0.1s, transform 0.45s ease 0.1s, margin 0.5s ease;
}
.iec__text {
    max-width: 58ch;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.86);
}
.iec__more {
    display: inline-block;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}
.iec__item.is-active .iec__text {
    max-height: 120px;
    margin-top: 10px !important;
    opacity: 1;
    transform: none;
}
.iec__item.is-active .iec__more {
    max-height: 30px;
    margin-top: 14px !important;
    opacity: 1;
    transform: none;
}
.iec__nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
}
.iec__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 1px solid #d1d5db;
    border-radius: 50%;
    background: transparent;
    color: #111827;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.iec__btn:hover {
    border-color: #111827;
    background: #111827;
    color: #ffffff;
}
.iec__count {
    margin-left: 16px;
    font-size: 14px;
    letter-spacing: 0.08em;
    color: #6b7280;
    font-variant-numeric: tabular-nums;
}
.iec__count b {
    color: #111827;
    font-weight: 600;
}
.iec__all {
    margin-left: auto;
    font-size: 14px;
    font-weight: 600;
    color: #111827 !important;
    text-decoration: none !important;
}
.iec__all span {
    display: inline-block;
    transition: transform 0.2s ease;
}
.iec__all:hover span {
    transform: translateX(4px);
}
@media (max-width: 767px) {
    .iec {
        --iec-w: 84vw;
        --iec-gap: 12px;
    }
    .iec__item {
        aspect-ratio: 4 / 5;
    }
    .iec__body {
        padding: 22px 20px;
    }
    .iec__item.is-active .iec__text {
        max-height: 170px;
    }
}

/* ie-header: cabecalho transparente; fundo branco so ao passar o rato ou depois de descer a pagina */
#nm-header.nm-header {
    background: transparent !important;
    box-shadow: none;
    transition: background-color 0.35s ease, box-shadow 0.35s ease;
}
#nm-header.nm-header:hover,
.ie-scrolled #nm-header.nm-header,
.nm-header.mobile-menu-open {
    background: #ffffff !important;
    box-shadow: 0 1px 0 rgba(17, 24, 39, 0.06);
}
.nm-main-menu > ul > li > a,
.nm-right-menu > ul > li > a,
.nm-header .nm-logo {
    transition: color 0.35s ease, filter 0.35s ease, opacity 0.2s ease;
}
/* Na pagina inicial o cabecalho fica por cima do video: nomes e logotipo a branco */
.home #nm-header-placeholder {
    height: 0 !important;
}
.home:not(.ie-scrolled) #nm-header.nm-header:not(:hover):not(.mobile-menu-open) .nm-main-menu > ul > li > a,
.home:not(.ie-scrolled) #nm-header.nm-header:not(:hover):not(.mobile-menu-open) .nm-right-menu > ul > li > a {
    color: rgba(255, 255, 255, 0.92) !important;
}
.home:not(.ie-scrolled) #nm-header.nm-header:not(:hover):not(.mobile-menu-open) .nm-logo {
    filter: brightness(0) invert(1);
}
.home:not(.ie-scrolled) #nm-header.nm-header:not(:hover):not(.mobile-menu-open) .nm-menu-icon span,
.home:not(.ie-scrolled) #nm-header.nm-header:not(:hover):not(.mobile-menu-open) .nm-menu-icon .line-1,
.home:not(.ie-scrolled) #nm-header.nm-header:not(:hover):not(.mobile-menu-open) .nm-menu-icon .line-2,
.home:not(.ie-scrolled) #nm-header.nm-header:not(:hover):not(.mobile-menu-open) .nm-menu-icon .line-3 {
    background-color: #ffffff !important;
}

/* ie-home: hero em ecra inteiro com showreel de auditorios */
.home .nm-page-default-col {
    padding-top: 0;
}
.ieh {
    position: relative;
    width: 100vw;
    height: 100vh;
    height: 100svh;
    min-height: 560px;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
    background: #14161a;
}
.ieh__poster,
.ieh__v {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ieh__v {
    opacity: 0;
    transition: opacity 1.1s ease;
}
.ieh__v.is-on {
    opacity: 1;
}
.ieh::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 12, 16, 0.38) 0%, rgba(10, 12, 16, 0) 22%, rgba(10, 12, 16, 0) 62%, rgba(10, 12, 16, 0.55) 100%);
    pointer-events: none;
}
.ieh__cap {
    position: absolute;
    left: var(--ieh-l, 40px);
    bottom: 96px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: #ffffff !important;
    text-decoration: none !important;
}
.ieh__cap-model {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.ieh__cap-place {
    font-size: 13px;
    opacity: 0.78;
}
.ieh__count {
    position: absolute;
    right: var(--ieh-r, 40px);
    bottom: 36px;
    z-index: 2;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    letter-spacing: 0.12em;
}
.ieh__count b {
    color: #ffffff;
    font-weight: 600;
}
.ieh__down {
    position: absolute;
    left: 50%;
    bottom: 30px;
    z-index: 2;
    width: 1px;
    height: 46px;
    background: rgba(255, 255, 255, 0.55);
    transform: translateX(-50%);
    overflow: hidden;
}
.ieh__down::after {
    content: '';
    position: absolute;
    left: 0;
    top: -46px;
    width: 1px;
    height: 46px;
    background: #ffffff;
    animation: ieh-down 2.2s ease-in-out infinite;
}
@keyframes ieh-down {
    0% { top: -46px; }
    60% { top: 46px; }
    100% { top: 46px; }
}

/* ie-home: blocos editoriais (sem caixas), mesmo texto de sempre */
.ihs {
    padding: 88px 0;
    border-top: 1px solid #ececec;
}
.ihs--intro {
    border-top: 0;
}
.home .ihs .ie-home-h1,
.ihs h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}
.ihs__copy p {
    max-width: 68ch;
    margin: 0 0 18px;
    font-size: 16px;
    line-height: 1.75;
    color: #4b5563;
}
.ihs__copy strong {
    color: #111827;
    font-weight: 600;
}
.ihs__copy a {
    color: #111827 !important;
    text-decoration: underline;
    text-decoration-color: rgba(17, 24, 39, 0.3);
    text-underline-offset: 3px;
}
.ihs__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    padding: 14px 26px;
    border-radius: 999px;
    background: #111827;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: transform 0.2s ease, background-color 0.2s ease;
}
.ihs__btn:hover {
    background: #000000;
    transform: translateY(-1px);
}
.ihs__copy a.ihs__btn,
.ihs__copy a.ihs__btn:hover {
    color: #ffffff !important;
    text-decoration: none !important;
}
.ihs__btn span {
    display: inline-block;
    transition: transform 0.2s ease;
}
.ihs__btn:hover span {
    transform: translateX(4px);
}
/* Todas as seccoes com o mesmo eixo: titulo por cima, texto por baixo, alinhados a esquerda */
.ihs__head {
    max-width: 880px;
    margin-bottom: 40px;
}
.ihs__head h2,
.ihs__head .ie-home-h1 {
    margin-bottom: 20px !important;
}
.ihs__head .ihs__copy p:last-child {
    margin-bottom: 0;
}
.ihs--intro .ihs__head {
    margin-bottom: 0;
}
/* Blocos de abertura centrados (titulo e texto no eixo da pagina) */
.ihs__head--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.ihs__head--center .ihs__copy p {
    margin-left: auto;
    margin-right: auto;
}
.ihs__head.ihs__after {
    margin: 48px auto 0;
}
.ihs__cta {
    margin: 28px 0 0;
    text-align: center;
}
.ihs__cta .ihs__btn {
    margin-top: 0;
}

/* iem2: mosaico de projectos (pagina O que fazemos), grelha de 4 colunas com a mesma folga em todas as arestas */
.iwd {
    padding: 56px 0 88px;
}
.iwd h1 {
    margin: 0 0 20px;
    font-size: 32px;
    line-height: 1.2;
    letter-spacing: -0.01em;
}
.iwd__projects {
    margin-top: 72px;
    padding-top: 56px;
    border-top: 1px solid #ececec;
}
.iwd__projects-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}
.iwd__projects-head h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.3;
}
.iwd__all {
    font-size: 14px;
    font-weight: 600;
    color: #111827 !important;
    text-decoration: none !important;
    white-space: nowrap;
}
.iwd__cta {
    margin: 56px 0 0;
}
.iem2 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: clamp(180px, 17vw, 260px);
    gap: 16px;
}
.iem2__item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 14px;
    background: #1f2229;
    color: #ffffff !important;
    text-decoration: none !important;
}
.iem2__item--big {
    grid-column: span 2;
    grid-row: span 2;
}
.iem2__item--wide {
    grid-column: span 2;
}
.iem2__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.iem2__item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 10, 14, 0) 45%, rgba(8, 10, 14, 0.78) 100%);
    pointer-events: none;
}
.iem2__item:hover .iem2__img {
    transform: scale(1.04);
}
.iem2__cap {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 18px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.iem2__title {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.25;
}
.iem2__item--big .iem2__title {
    font-size: 24px;
}
.iem2__arch {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
}
@media (max-width: 767px) {
    .iwd {
        padding: 32px 0 56px;
    }
    .iwd__projects-head {
        flex-direction: column;
        gap: 8px;
    }
    .iwd__projects-head h2 {
        font-size: 24px;
    }
    .iem2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 42vw;
        gap: 10px;
    }
    .iem2__item--big {
        grid-column: span 2;
        grid-row: span 2;
    }
    .iem2__item--wide {
        grid-column: span 2;
    }
    .iem2__cap {
        left: 14px;
        right: 14px;
        bottom: 12px;
    }
    .iem2__title {
        font-size: 15px;
    }
}

/* Quem somos e Contactos: titulo por cima do texto, na mesma margem da pagina */
.page-id-358 .wpb_text_column,
.page-id-545 .wpb_text_column {
    max-width: 880px;
}
/* O formulario tem margem negativa de 19px: os campos acabam na mesma linha do texto */
.page-id-545 .wpcf7 {
    max-width: 899px;
}
.page-id-358 .ie-section-title,
.page-id-545 .ie-section-title {
    margin: 0 0 20px;
}
.page-id-358 .wpb_text_column p,
.page-id-545 .wpb_text_column p {
    font-size: 16px;
    line-height: 1.75;
}
.ief__list {
    border-top: 1px solid #e5e7eb;
}
.ief__item {
    border-bottom: 1px solid #e5e7eb;
}
.ief__item summary {
    position: relative;
    padding: 22px 40px 22px 0;
    list-style: none;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.45;
    cursor: pointer;
}
.ief__item summary::-webkit-details-marker {
    display: none;
}
.ief__item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    font-size: 22px;
    font-weight: 300;
    transform: translateY(-50%);
    transition: transform 0.2s ease;
}
.ief__item[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}
.ief__item p {
    max-width: 80ch;
    margin: 0 0 22px;
    font-size: 16px;
    line-height: 1.75;
    color: #4b5563;
}
.ief__guides {
    margin: 28px 0 0;
    font-size: 15px;
}
.ief__guides a {
    font-weight: 600;
    color: #111827 !important;
}

/* ie-guides: pagina Guias tecnicos para projectistas */
.iegp {
    padding: 56px 0 88px;
}
.iegp__head {
    max-width: 880px;
    margin-bottom: 48px;
}
.iegp__head h1 {
    margin: 0 0 20px;
    font-size: 32px;
    line-height: 1.2;
    letter-spacing: -0.01em;
}
.iegp__head p {
    margin: 0;
    max-width: 68ch;
    font-size: 16px;
    line-height: 1.75;
    color: #4b5563;
}
.iegd {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px 28px;
}
.iegd__card {
    display: flex;
    flex-direction: column;
    color: #111827 !important;
    text-decoration: none !important;
}
.iegd__media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 14px;
    background: #f1f0ed;
}
.iegd__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.iegd__card:hover .iegd__img {
    transform: scale(1.04);
}
.iegd__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 18px;
}
.iegd__title {
    font-size: 19px;
    font-weight: 600;
    line-height: 1.35;
}
.iegd__text {
    font-size: 14px;
    line-height: 1.65;
    color: #6b7280;
}
.iegd__more {
    margin-top: 2px;
    font-size: 14px;
    font-weight: 600;
}
.iegd__more span {
    display: inline-block;
    transition: transform 0.2s ease;
}
.iegd__card:hover .iegd__more span {
    transform: translateX(4px);
}
@media (max-width: 1100px) {
    .iegd {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 767px) {
    .ieh__cap {
        left: var(--ieh-l, 20px);
        bottom: 84px;
    }
    .ieh__count {
        right: var(--ieh-r, 20px);
        bottom: 26px;
    }
    .ieh__down {
        display: none;
    }
    .ihs {
        padding: 56px 0;
    }
    .home .ihs .ie-home-h1,
    .ihs h2,
    .iem-sec h2,
    .iem-cta h2,
    .ie-home-text h2,
    .ie-section-title,
    .ie-faq h2 {
        font-size: 24px;
    }
    .iegd {
        grid-template-columns: 1fr;
    }
}

/* ie-uniform: imagens dos cartoes de projecto todas com o mesmo formato */
.nm-posts .nm-post-thumbnail img,
.nm-blog-list .nm-post-thumbnail img,
.category-projectos .nm-post-thumbnail img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

/* ie-pm: Project models em carrossel na pagina Modelos (mesmo fundo claro da pagina) */
.ie-pm-band {
    margin-top: 40px;
    padding-top: 48px;
    border-top: 1px solid #eeeeee;
}
.ie-pm-band__head {
    max-width: 880px;
    margin-bottom: 40px;
}
.ie-pm-band__head h2 {
    margin: 0 0 20px;
}
.ie-pm-band__head p {
    margin: 0;
}

/* ax: axonometria animada da implantacao de cadeiras (pagina inicial) */
.ax{display:block;width:100%;height:auto;overflow:visible}
.ax .ax-gl{stroke:#eceef1;stroke-width:.6}
.ax .ax-room{fill:none;stroke:#111827;stroke-width:1.1;stroke-dasharray:1;stroke-dashoffset:1}
.ax .ax-t-top{fill:#ffffff;stroke:#111827;stroke-width:.6}
.ax .ax-t-front{fill:#f1f2f4;stroke:#111827;stroke-width:.6}
.ax .ax-t-side{fill:#e3e6ea;stroke:#111827;stroke-width:.6}
.ax .ax-s-top{fill:#ffffff;stroke:#111827;stroke-width:.8}
.ax .ax-s-front,.ax .ax-s-side{fill:#e3e6ea;stroke:#111827;stroke-width:.8}
.ax .ax-c-top{fill:#ffffff;stroke:#111827;stroke-width:.5}
.ax .ax-c-back,.ax .ax-c-front{fill:#d5dae1;stroke:#111827;stroke-width:.5}
.ax .ax-c-side{fill:#b9c1cb;stroke:#111827;stroke-width:.5}
.ax .ax-d{stroke:#c8102e;stroke-width:1.5;stroke-dasharray:1;stroke-dashoffset:1}
.ax .ax-dot{fill:#c8102e}
.ax .ax-lead{stroke:#c8102e;stroke-width:.8}
.ax .ax-lead--ink{stroke:#6b7280}
.ax .ax-tx{font:500 17px/1 Roboto,Arial,sans-serif;fill:#111827;letter-spacing:.02em}
.ax .ax-tx--red{fill:#c8102e;font-weight:600}
.ax .ax-tx--cap{font-size:14px;fill:#6b7280;letter-spacing:.14em;text-transform:uppercase}
@media (max-width:767px){.ax .ax-tx,.ax .ax-lead{display:none}}
.ax .ax-grid,.ax .ax-row,.ax .ax-chair,.ax .ax-stage,.ax .ax-dim,.ax .ax-lab{opacity:0}
.ax.is-play .ax-grid{animation:axFade .8s ease forwards}
.ax.is-play .ax-room{animation:axDraw 1.2s ease .2s forwards}
.ax.is-play .ax-stage{animation:axRise .7s cubic-bezier(.2,.7,.2,1) .9s forwards}
.ax.is-play .ax-row{animation:axRise .7s cubic-bezier(.2,.7,.2,1) calc(1.3s + var(--r) * .22s) forwards}
.ax.is-play .ax-chair{animation:axDrop .45s cubic-bezier(.2,.7,.2,1) calc(3s + var(--k) * .55s) forwards}
.ax.is-play .ax-dim{animation:axFade .3s ease 6.6s forwards}
.ax.is-play .ax-d{animation:axDraw .8s ease 6.7s forwards}
.ax.is-play .ax-lab{animation:axFade .6s ease 7.3s forwards}
.ax.is-out{transition:opacity .6s ease;opacity:0}
.ax.is-static .ax-grid,.ax.is-static .ax-row,.ax.is-static .ax-chair,.ax.is-static .ax-stage,.ax.is-static .ax-dim,.ax.is-static .ax-lab{opacity:1}
.ax.is-static .ax-room,.ax.is-static .ax-d{stroke-dashoffset:0}
@keyframes axFade{to{opacity:1}}
@keyframes axDraw{to{stroke-dashoffset:0}}
@keyframes axRise{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
@keyframes axDrop{from{opacity:0;transform:translateY(-12px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.ax .ax-grid,.ax .ax-row,.ax .ax-chair,.ax .ax-stage,.ax .ax-dim,.ax .ax-lab{opacity:1;animation:none!important}.ax .ax-room,.ax .ax-d{stroke-dashoffset:0;animation:none!important}}
/* Introducao da pagina inicial: texto a esquerda (na margem da pagina) e axonometria a direita */
.ihs__split {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 64px;
    align-items: center;
}
.ihs__split .ihs__head {
    max-width: none;
    margin: 0;
}
.ihs__split .ihs__cta {
    text-align: left;
}
.ihs__fig {
    margin: 0;
}
@media (max-width: 991px) {
    .ihs__split {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }
}

/* Projectos: título do texto «Projectos que falam por nós» */
.ie-cat-h2 {
    margin: 28px 0 12px;
    font-size: 28px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}
@media (max-width: 767px) {
    .ie-cat-h2 {
        font-size: 24px;
    }
}

/* Página provisória Mobarq Forms (em construção) */
.iuc {
    max-width: 880px;
    margin: 0 auto;
    padding: 120px 0 140px;
    text-align: center;
}
.iuc h1 {
    margin: 0 0 16px;
    font-size: 32px;
    line-height: 1.2;
}
.iuc__kicker {
    margin: 0 0 12px;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #6b7280;
}
.iuc__lead,
.iuc__state {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.75;
    color: #4b5563;
}
.iuc__links {
    margin: 32px 0 0;
    font-size: 14px;
    font-weight: 600;
}
.iuc__links a {
    color: #111827 !important;
}

/* ax--arq: axonometria do deposito de arquivo (carris, estantes compactas, corredor que abre) */
.ax .ax-rail{stroke:#6b7280;stroke-width:1.4;stroke-dasharray:1;stroke-dashoffset:1}
.ax .ax-shelf{stroke:#111827;stroke-width:.5}
.ax .ax-wheel{fill:none;stroke:#111827;stroke-width:.9}
.ax .ax-spoke{stroke:#111827;stroke-width:.8}
.ax.is-play .ax-rail{animation:axDraw .9s ease 1s forwards}
.ax.is-play .ax-move{animation:axSlide 1.1s cubic-bezier(.4,0,.2,1) 5.4s forwards}
.ax--arq.is-play .ax-chair{animation-delay:calc(3s + var(--k) * .6s)}
.ax--arq.is-play .ax-dim{animation-delay:6.7s}
.ax--arq.is-play .ax-d{animation-delay:6.8s}
.ax--arq.is-play .ax-lab{animation-delay:7.3s}
.ax.is-static .ax-rail{stroke-dashoffset:0}
.ax.is-static .ax-move{transform:translate(33.8px,19.5px)}
@keyframes axSlide{to{transform:translate(33.8px,19.5px)}}
@media (prefers-reduced-motion:reduce){.ax .ax-rail{stroke-dashoffset:0;animation:none!important}.ax .ax-move{transform:translate(33.8px,19.5px);animation:none!important}}

/* Solucoes: espaco entre a ultima linha de solucoes e o rodape */
.page-id-1300 .wpb-content-wrapper{padding-bottom:32px}

/* Perguntas frequentes nas paginas de solucao */
.iem-faq h3{font-size:18px;line-height:1.4;margin:24px 0 6px}
.iem-faq p{margin:0 0 8px}

/* Icones sociais do rodape sem perfil real da Mobarq: escondidos ate existirem paginas proprias */
.nm-footer-bar-social{display:none!important}

/* Nota do arquivista nos guias (pedido do Gonçalo, 19 Out 2026) */
.single-post .ie-note{border-left:2px solid #282828;padding:4px 0 4px 16px;margin:0 0 28px;font-size:15px;line-height:1.6}

/* WhatsApp em vez do telefone (pedido do Goncalo, 19 Out 2026) */
.ie-wa {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1.5px #282828;
    color: #282828 !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.ie-wa:hover {
    background: #282828;
    color: #ffffff !important;
}
.ie-wa svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}
.iem-cta .ie-wa {
    margin-left: 10px;
    box-shadow: inset 0 0 0 1.5px #ffffff;
    color: #ffffff !important;
}
.iem-cta .ie-wa:hover {
    background: #ffffff;
    color: #282828 !important;
}
@media (max-width: 600px) {
    .iem-cta .ie-wa {
        margin: 10px 0 0;
    }
}