@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&display=swap');

:root {
    --polvor-green: #1a1a2e;
    --polvor-green-strong: #1a1a2e;
    --polvor-lime: #1a1a2e;
    --polvor-ink: #1a1a2e;
    --polvor-accent: #FF6B35;
    --polvor-cream: #f2eded;
    --polvor-header-height: 68px;
    --polvor-logo-space: 280px;
    --polvor-container-width: 1200px;
}

.polvor-header {
    position: relative;
    width: 100%;
    height: var(--polvor-header-height);
    z-index: 1000;
    background: transparent;
    color: #fff;
    border-bottom: 1px solid var(--polvor-accent);
    font-family: "Manrope", sans-serif;
    transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.polvor-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 20, 10, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 0;
}

.polvor-nav-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.polvor-header.is-open {
    background: transparent;
    color: #fff;
    border-bottom-color: var(--polvor-accent);
    box-shadow: none;
}

.polvor-header__inner {
    max-width: var(--polvor-container-width);
    margin: 0 auto;
    height: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.polvor-logo {
    display: flex;
    align-items: center;
    width: var(--polvor-logo-space);
}

.polvor-logo__link {
    display: inline-flex;
    align-items: center;
    height: var(--polvor-header-height);
    position: relative;
}

.polvor-logo__img {
    height: 34px;
    width: 140px;
    display: block;
    transition: opacity 0.2s ease;
    object-fit: contain;
}

.polvor-logo__img--color {
    opacity: 0;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.polvor-header.is-open .polvor-logo__img--white,
.polvor-header.is-scrolled .polvor-logo__img--white {
    opacity: 0;
}

.polvor-header.is-open .polvor-logo__img--color,
.polvor-header.is-scrolled .polvor-logo__img--color {
    opacity: 1;
}

.polvor-logo a {
    color: inherit;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.polvor-logo__text {
    font-size: 22px;
}

.polvor-header__right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    justify-content: space-between;
    height: var(--polvor-header-height);
}

.polvor-nav {
    position: static;
    display: flex;
    align-items: center;
    height: 100%;
    margin-left: 0;
}

.polvor-nav__toggle {
    display: none;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 1px solid currentColor;
    color: inherit;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
}

.polvor-nav__hamburger {
    width: 20px;
    height: 2px;
    background: currentColor;
    display: inline-block;
    position: relative;
}

.polvor-nav__hamburger::before,
.polvor-nav__hamburger::after {
    content: "";
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    background: currentColor;
}

.polvor-nav__hamburger::before {
    top: -6px;
}

.polvor-nav__hamburger::after {
    top: 6px;
}

.polvor-nav__list {
    display: flex;
    align-items: center;
    gap: 22px;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
}

.polvor-nav__item {
    display: flex;
    align-items: center;
    height: 100%;
}

.polvor-nav__mobile-head {
    display: none;
}

.polvor-nav__link {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.2px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    height: 100%;
    line-height: 1;
    position: relative;
}

.polvor-nav__item--search .polvor-nav__link {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    justify-content: center;
}

.polvor-nav__search-icon {
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-radius: 50%;
    position: relative;
    display: inline-block;
}

.polvor-nav__search-icon::after {
    content: "";
    position: absolute;
    width: 7px;
    height: 2px;
    background: currentColor;
    right: -5px;
    bottom: -2px;
    transform: rotate(45deg);
    border-radius: 2px;
}

.polvor-mega__search {
    max-width: 520px;
}

.polvor-mega__search-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.polvor-mega__search-form {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-radius: 999px;
    padding: 6px 10px 6px 16px;
    border: 1px solid rgba(26, 26, 46, 0.15);
    box-shadow: 0 10px 26px rgba(26, 26, 46, 0.12);
}

.polvor-mega__search-input {
    flex: 1 1 auto;
    min-width: 0;
    border: none;
    background: transparent;
    background-image: none;
    font-size: 15px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none;
}

.polvor-mega__search-input::-webkit-search-decoration,
.polvor-mega__search-input::-webkit-search-cancel-button,
.polvor-mega__search-input::-webkit-search-results-button,
.polvor-mega__search-input::-webkit-search-results-decoration {
    display: none;
}

.polvor-mega__search-input:focus {
    border: none;
    outline: none;
}

.polvor-mega__search-form:focus-within {
    border-color: var(--polvor-green);
    box-shadow: 0 12px 30px rgba(26, 26, 46, 0.18);
}

.polvor-mega__search-button {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 50%;
    border: none;
    background: var(--polvor-lime);
    background-image: none;
    color: var(--polvor-ink);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(26, 26, 46, 0.2);
}

.polvor-mega__search-button-icon {
    width: 18px;
    height: 18px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.polvor-mega__search-button-icon::after {
    content: "";
    position: absolute;
    width: 7px;
    height: 7px;
    border: 2px solid currentColor;
    border-radius: 50%;
    top: 4px;
    left: 4px;
}

.polvor-mega__search-button-icon::before {
    content: "";
    position: absolute;
    width: 7px;
    height: 2px;
    background: currentColor;
    right: -1px;
    bottom: 2px;
    transform: rotate(45deg);
    border-radius: 2px;
}

.polvor-nav__link:hover,
.polvor-nav__link:focus,
.polvor-nav__link:active,
.polvor-nav__link:visited {
    background: transparent;
}

.polvor-nav__link:hover,
.polvor-nav__link:focus {
    color: var(--polvor-lime);
}

.polvor-header.is-open .polvor-nav__link:hover,
.polvor-header.is-open .polvor-nav__link:focus,
.polvor-header.is-scrolled .polvor-nav__link:hover,
.polvor-header.is-scrolled .polvor-nav__link:focus {
    color: var(--polvor-green);
}

.polvor-btn:hover,
.polvor-btn:focus,
.polvor-btn:active {
    background: var(--polvor-lime);
}

.polvor-nav__link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

.polvor-nav__caret {
    width: 6px;
    height: 6px;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    display: inline-block;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.polvor-nav__mega-toggle[aria-expanded="true"] .polvor-nav__caret {
    transform: rotate(-135deg);
}

.polvor-header__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 100%;
    margin-left: auto;
}

.polvor-btn {
    background: var(--polvor-lime);
    color: var(--polvor-ink);
    padding: 0 16px;
    height: 38px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    line-height: 1;
    position: relative;
}

.polvor-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(26, 26, 46, 0.2);
}

.polvor-btn__icon {
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-radius: 3px;
    display: inline-block;
    position: relative;
}

.polvor-header .polvor-btn--orcamento {
    background: var(--polvor-accent);
    color: #fff;
}

.polvor-header .polvor-btn--orcamento:hover,
.polvor-header .polvor-btn--orcamento:focus,
.polvor-header .polvor-btn--orcamento:active {
    background: var(--polvor-accent);
}

.polvor-btn__icon::after {
    content: "";
    position: absolute;
    top: -4px;
    left: 3px;
    right: 3px;
    height: 6px;
    border: 2px solid currentColor;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
}

.polvor-lang {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    height: 100%;
}

.polvor-lang a {
    color: inherit;
    text-decoration: none;
    font-size: 13px;
    height: 100%;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.polvor-lang img {
    border: 0;
    box-shadow: none;
    display: block;
}

.polvor-nav__item--mega {
    position: relative;
}

.polvor-mega {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 340px;
    margin-left: 0;
    border: 1px solid var(--polvor-accent);
    border-bottom-width: 3px;
    border-radius: 16px;
    background: #fff;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    box-shadow: none;
    z-index: 2;
}

.polvor-mega::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 22px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-left: 1px solid var(--polvor-accent);
    border-top: 1px solid var(--polvor-accent);
    transform: rotate(45deg);
}

.polvor-nav__item.is-active .polvor-nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--polvor-accent);
}

.polvor-nav__item--search .polvor-nav__link::after {
    display: none;
}

.polvor-mega.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.polvor-mega__wrap {
    max-width: 100%;
    margin: 0;
    padding: 12px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: stretch;
    min-height: 0;
}

.polvor-mega__media {
    display: none;
}

.polvor-mega__content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--polvor-green-strong);
    padding: 0;
    justify-content: flex-start;
}

.polvor-mega__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.polvor-mega__item {
    display: flex;
    flex-direction: row;
    gap: 10px;
    padding: 10px 8px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: #fff;
    color: var(--polvor-green-strong);
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.polvor-mega__item-label {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
}

.polvor-mega__item-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--polvor-accent);
    color: var(--polvor-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
}

.polvor-mega__item-icon::after {
    content: "";
    width: 6px;
    height: 6px;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-left: 2px;
}

.polvor-mega__item:hover,
.polvor-mega__item:focus,
.polvor-mega__item:active,
.polvor-mega__item:visited {
    background: #fff;
    color: var(--polvor-accent);
    border-color: var(--polvor-accent);
}

.polvor-mega__item:focus-visible {
    outline: 2px solid var(--polvor-accent);
    outline-offset: 2px;
}

.polvor-mega__columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(140px, 1fr));
    gap: 32px;
}

.polvor-mega__columns--compact {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 24px;
}

.polvor-mega__column h4 {
    margin: 0 0 12px;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.polvor-mega__column a {
    display: block;
    color: var(--polvor-green-strong);
    text-decoration: none;
    margin-bottom: 10px;
}

.polvor-mega__column a:hover {
    color: #000;
}

.polvor-mega__cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

.polvor-mega__cta-link {
    color: var(--polvor-green-strong);
    text-decoration: none;
    font-weight: 600;
}


@media (max-width: 991px) {
    .polvor-header {
        height: auto;
    }

    .polvor-header__inner {
        height: auto;
        padding: 16px 16px;
        gap: 16px;
    }

    .polvor-nav__toggle {
        display: inline-flex;
    }

    .polvor-nav__list {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: min(84vw, 360px);
        flex-direction: column;
        align-items: flex-start;
        background: #fff;
        color: var(--polvor-green-strong);
        padding: 20px;
        border-radius: 24px 0 0 24px;
        box-shadow: -20px 0 40px rgba(0, 0, 0, 0.2);
        display: none;
        gap: 4px;
        transform: translateX(12px);
        overflow-y: auto;
        z-index: 1;
    }

    .polvor-nav__list.is-open {
        display: flex;
        transform: translateX(0);
    }

    .polvor-nav__list > .polvor-nav__item {
        padding: 0;
    }

    .polvor-nav__mobile-head {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 4px;
    }

    .polvor-nav__item {
        width: 100%;
    }

    .polvor-nav__link {
        width: 100%;
        height: auto;
        padding: 6px 0;
        justify-content: space-between;
    }

    .polvor-nav__mobile-logo {
        display: inline-flex;
        align-items: center;
    }

    .polvor-nav__mobile-logo .polvor-logo__img--color {
        opacity: 1;
        position: static;
        height: 40px;
    }

    .polvor-nav__close {
        background: transparent;
        border: none;
        font-size: 28px;
        line-height: 1;
        color: var(--polvor-green-strong);
        cursor: pointer;
    }

    .polvor-nav__item--mega {
        position: relative;
    }

    .polvor-mega {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        padding: 6px 0 0;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }

    .polvor-mega.is-open {
        display: block;
    }

    .polvor-mega__wrap {
        gap: 10px;
    }

    .polvor-mega__wrap {
        grid-template-columns: 1fr;
        padding: 0;
    }

    .polvor-mega__content {
        padding: 8px 0;
        justify-content: flex-start;
    }

    .polvor-mega__list {
        grid-template-columns: 1fr;
    }

    .polvor-mega__column h4 {
        margin-bottom: 6px;
    }

    .polvor-mega__column a {
        margin-bottom: 6px;
    }

    .polvor-mega__media {
        min-height: 180px;
        border-radius: 16px;
        margin-left: 0;
        display: none;
    }

    .polvor-mega__columns {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .polvor-mega__cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .polvor-header__actions {
        display: none;
    }
}

@media (min-width: 1600px) {
    :root {
        --polvor-logo-space: 300px;
    }
}

@media (min-width: 992px) {
    .polvor-nav__list {
        position: static;
    }
}
