/**
 * PTUM / MDR — tipografia e paleta alinhada ao site institucional
 * https://ptum.gov.mz/ (tema ptum-wp: verdes #00804A / #186738, ouro #FFCA2C).
 * Carregar por último nos layouts (depois de style.css / web.css / custom.css).
 */
:root {
    --ptum-font-sans: "Source Sans 3", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --ptum-brand: #00804a;
    --ptum-brand-hover: #006b3d;
    --ptum-brand-light: #0aad62;
    --ptum-brand-text: #186738;
    --ptum-accent: #ffca2c;
    --ptum-accent-hover: #f9a01d;
    --ptum-link: #01568e;
    --ptum-surface: #f8fafc;
    --ptum-text: #0f172a;
    --ptum-text-muted: #475569;
    --ptum-accent-rgb: 255, 202, 44;
    --ptum-brand-rgb: 0, 128, 74;
    /* Bootstrap 5 — canal público */
    --bs-success: #00804a;
    --bs-success-rgb: 0, 128, 74;
    --ptum-ring-accent: 0 0 0 3px rgba(var(--ptum-accent-rgb), 0.4);
    --ptum-ring-brand: 0 0 0 3px rgba(var(--ptum-brand-rgb), 0.28);
}

html {
    font-family: var(--ptum-font-sans);
}

body {
    font-family: var(--ptum-font-sans);
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--ptum-font-sans);
}

/* --- Canal público --- */
#hero .btn-get-started {
    background: var(--ptum-brand) !important;
    border-color: var(--ptum-brand-hover) !important;
    font-family: var(--ptum-font-sans) !important;
}

#hero .btn-get-started:hover {
    color: #fff !important;
}

.get-started-btn:hover {
    background: var(--ptum-accent-hover) !important;
    color: #fff !important;
}

#header .navbar a,
#header .navbar a:focus,
#header .navbar li:hover > a {
    font-family: var(--ptum-font-sans);
}

/* --- Backoffice (Bootstrap 4) --- */
.btn-success {
    color: #fff !important;
    background-color: var(--ptum-brand) !important;
    border-color: var(--ptum-brand) !important;
}

.btn-success:hover,
.btn-success:focus,
.btn-success.focus {
    color: #fff !important;
    background-color: var(--ptum-brand-hover) !important;
    border-color: var(--ptum-brand-hover) !important;
    box-shadow: 0 0 0 0.2rem rgba(var(--ptum-brand-rgb), 0.35) !important;
}

.btn-success.disabled,
.btn-success:disabled {
    background-color: var(--ptum-brand-light) !important;
    border-color: var(--ptum-brand-light) !important;
}

.btn-success:not(:disabled):not(.disabled):active,
.btn-success:not(:disabled):not(.disabled).active,
.show > .btn-success.dropdown-toggle {
    background-color: var(--ptum-brand-hover) !important;
    border-color: var(--ptum-brand-hover) !important;
}

.sidebar .nav-item.active .nav-link {
    background: var(--ptum-brand-hover) !important;
    color: #ecfdf5 !important;
}

.login_btn {
    background: var(--ptum-brand) !important;
}

.login_btn:hover {
    background: var(--ptum-brand-hover) !important;
}

.nav-link:hover {
    color: var(--ptum-brand) !important;
}

.nav-pills .nav-link.active {
    color: var(--ptum-brand) !important;
    border-bottom-color: var(--ptum-brand) !important;
}

.nav-pills .nav-link.active i {
    color: var(--ptum-brand) !important;
}

/* --- Rodapé: boletim + parceiros (faixa enterprise) --- */
.ptum-footer-ribbon {
    position: relative;
    background: linear-gradient(165deg, #eef2f7 0%, #f8fafc 38%, #ffffff 100%);
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.ptum-footer-ribbon::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ptum-brand) 0%, var(--ptum-brand-light) 42%, var(--ptum-accent) 100%);
    pointer-events: none;
}

.ptum-footer-ribbon__panel {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    overflow: hidden;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 18px 48px -24px rgba(15, 23, 42, 0.14);
}

.ptum-footer-ribbon__accent {
    height: 4px;
    width: 100%;
    flex-shrink: 0;
    background: linear-gradient(90deg, var(--ptum-brand), var(--ptum-brand-light));
}
.ptum-footer-ribbon__accent--amber {
    background: linear-gradient(90deg, var(--ptum-brand), var(--ptum-accent));
}

.ptum-footer-ribbon__panel-body {
    padding: 1.5rem 1.35rem 1.6rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
@media (min-width: 768px) {
    .ptum-footer-ribbon__panel-body {
        padding: 1.75rem 1.85rem 1.85rem;
    }
}

.ptum-footer-ribbon__eyebrow {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ptum-brand);
    margin: 0 0 0.5rem;
}

.ptum-footer-ribbon__title {
    font-size: clamp(1.2rem, 2.2vw, 1.45rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ptum-text);
    margin: 0 0 0.65rem;
    line-height: 1.2;
}

.ptum-footer-ribbon__lead {
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--ptum-text-muted);
    margin: 0 0 1.25rem;
    max-width: 32rem;
}

.ptum-footer-ribbon__form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
}
@media (min-width: 576px) {
    .ptum-footer-ribbon__form {
        flex-direction: row;
        align-items: stretch;
        flex-wrap: nowrap;
        gap: 0;
    }
}

.ptum-footer-ribbon__input-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.85rem 0.55rem 0.95rem;
    background: var(--ptum-surface);
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 8px 8px 8px 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
@media (min-width: 576px) {
    .ptum-footer-ribbon__input-wrap {
        border-radius: 8px 0 0 8px;
        border-right-width: 0;
    }
}
.ptum-footer-ribbon__input-wrap:focus-within {
    border-color: rgba(var(--ptum-brand-rgb), 0.45);
    box-shadow: 0 0 0 2px rgba(var(--ptum-brand-rgb), 0.12);
}

.ptum-footer-ribbon__input-icon {
    color: #94a3b8;
    font-size: 1rem;
    flex-shrink: 0;
}

.ptum-footer-ribbon__input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    font-size: 1rem;
    font-weight: 500;
    color: var(--ptum-text);
    outline: none;
    padding: 0.35rem 0;
}
.ptum-footer-ribbon__input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.ptum-footer-ribbon__submit {
    flex-shrink: 0;
    border: none;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    padding: 0.75rem 1.35rem;
    color: #fff;
    background: linear-gradient(180deg, var(--ptum-accent) 0%, var(--ptum-accent-hover) 100%);
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(var(--ptum-accent-rgb), 0.35);
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.15s ease;
}
@media (min-width: 576px) {
    .ptum-footer-ribbon__submit {
        border-radius: 0 8px 8px 0;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}
.ptum-footer-ribbon__submit:hover {
    color: #fff;
    filter: brightness(1.03);
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(var(--ptum-accent-rgb), 0.42);
}
.ptum-footer-ribbon__submit:focus-visible {
    outline: 2px solid var(--ptum-brand);
    outline-offset: 2px;
}

.ptum-footer-ribbon__fineprint {
    font-size: 0.72rem;
    line-height: 1.45;
    color: #64748b;
    margin: 0.85rem 0 0;
    max-width: 36rem;
}

.ptum-footer-ribbon__logo-row {
    margin-top: 0.25rem;
}

.ptum-footer-ribbon__logo-card {
    margin: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem 0.75rem;
    background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ptum-footer-ribbon__logo-card:hover {
    border-color: rgba(var(--ptum-brand-rgb), 0.25);
    box-shadow: 0 10px 28px -18px rgba(15, 23, 42, 0.18);
}

.ptum-footer-ribbon__logo-frame {
    width: 100%;
    max-width: 168px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}
.ptum-footer-ribbon__logo-frame img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.ptum-footer-ribbon__role {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ptum-text-muted);
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    background: rgba(var(--ptum-brand-rgb), 0.08);
    border: 1px solid rgba(var(--ptum-brand-rgb), 0.15);
}

@media (min-width: 1200px) {
    .py-xl-6 {
        padding-top: 3.25rem !important;
        padding-bottom: 3.25rem !important;
    }
}

/* --- Site público: cabeçalho vidro escuro (todas as páginas do layout público) --- */
body.page-public-layout #header {
    background: rgba(15, 23, 42, 0.72) !important;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}
body.page-public-layout #header .navbar a {
    color: rgba(248, 250, 252, 0.92) !important;
}
body.page-public-layout #header .navbar a:hover,
body.page-public-layout #header .navbar li:hover > a {
    color: var(--ptum-accent) !important;
}
body.page-public-layout #header .get-started-btn {
    color: var(--ptum-brand-text) !important;
    background: linear-gradient(180deg, var(--ptum-accent) 0%, var(--ptum-accent-hover) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    box-shadow: 0 2px 12px rgba(var(--ptum-accent-rgb), 0.32);
}
body.page-public-layout #header .get-started-btn:hover {
    color: var(--ptum-brand-text) !important;
    filter: brightness(1.05);
    box-shadow: 0 4px 16px rgba(var(--ptum-accent-rgb), 0.4);
}
body.page-public-layout #header .mobile-nav-toggle {
    color: #f8fafc !important;
}
body.page-public-layout #header.header-scrolled {
    background: rgba(15, 23, 42, 0.88) !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

/* --- Página inicial: PTUM (verde + âmbar + slate, harmónico) --- */
#hero.home-hero {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: auto !important;
    min-height: 0;
    padding-top: 6.75rem !important;
    padding-bottom: 3.65rem !important;
    color: #fff;
    /* Fundo só na camada .home-hero__media (evita duplicar com style.css #hero) */
    background-color: #163a30;
    background-image: none;
}

#hero.home-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    z-index: 2;
    background: linear-gradient(90deg, var(--ptum-brand) 0%, var(--ptum-brand-light) 45%, var(--ptum-accent) 100%);
    pointer-events: none;
}

#hero.home-hero:before,
#hero.home-hero::before {
    display: none !important;
    content: none !important;
}

.home-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background-color: #0f241c;
    /* Camadas: por cima = gradientes (legibilidade do texto); por baixo = fotografia */
    background-image:
        linear-gradient(
            115deg,
            rgba(6, 42, 28, 0.93) 0%,
            rgba(6, 42, 28, 0.52) 36%,
            rgba(15, 23, 42, 0.38) 55%,
            rgba(12, 30, 24, 0.62) 100%
        ),
        linear-gradient(
            180deg,
            rgba(15, 23, 42, 0.35) 0%,
            transparent 38%,
            rgba(4, 18, 14, 0.82) 100%
        ),
        url("../img/home-hero-banner.png");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transform: translateZ(0);
}

.home-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(
        ellipse 120% 95% at 30% 35%,
        transparent 22%,
        rgba(3, 12, 10, 0.45) 100%
    );
    opacity: 0.75;
}

.home-hero__container {
    position: relative;
    z-index: 1;
}

.home-hero__kicker {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 236, 160, 0.95);
    margin: 0 0 0.5rem;
}

.home-hero__title {
    font-size: clamp(1.55rem, 2.6vw, 2.2rem);
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0 0 1rem;
}

.home-hero__lead {
    font-size: 1.0625rem;
    line-height: 1.58;
    color: rgba(248, 250, 252, 0.94);
    max-width: 36rem;
    margin: 0 0 1.65rem;
}

.home-hero__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
}

@media (min-width: 480px) {
    .home-hero__actions {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.75rem;
    }
}

.home-hero__btn {
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 6px;
    padding: 0.55rem 1.2rem;
    text-decoration: none;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.home-hero__btn--main {
    color: #fff !important;
    background-color: var(--ptum-brand);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 4px 14px rgba(var(--ptum-brand-rgb), 0.35);
}

.home-hero__btn--main:hover {
    color: #fff !important;
    background-color: var(--ptum-brand-hover);
    border-color: rgba(255, 255, 255, 0.75);
    box-shadow: 0 6px 18px rgba(var(--ptum-brand-rgb), 0.4);
}

.home-hero__btn--main:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--ptum-brand-rgb), 0.35);
}

.home-hero__btn--outline {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.55);
}

.home-hero__btn--outline:hover {
    color: var(--ptum-text) !important;
    background-color: #fff;
    border-color: #fff;
}

.home-hero__btn:focus-visible {
    outline: none;
    box-shadow: var(--ptum-ring-accent);
}

.home-intro {
    background: linear-gradient(180deg, #eef2f6 0%, #f8fafc 50%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
}

.home-intro .container {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

@media (min-width: 768px) {
    .home-intro .container {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

.home-intro__panel {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding: 1.75rem 1.5rem 1.85rem;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 12px;
    box-shadow:
        0 0 0 1px rgba(var(--ptum-brand-rgb), 0.04),
        0 14px 40px -14px rgba(15, 23, 42, 0.11);
}

@media (min-width: 768px) {
    .home-intro__panel {
        padding: 2rem 2.25rem 2.1rem;
    }
}

.home-intro__title {
    position: relative;
    margin: 0 0 1.15rem;
    padding: 0 0 0.85rem 0.85rem;
    border-bottom: 1px solid rgba(var(--ptum-brand-rgb), 0.18);
    font-size: 1.32rem;
    font-weight: 700;
    color: var(--ptum-brand-text);
    letter-spacing: -0.015em;
}

.home-intro__title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.12em;
    bottom: 0.5rem;
    width: 4px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--ptum-brand) 0%, var(--ptum-accent) 100%);
}

.home-intro__body {
    color: #334155;
    font-size: 0.98rem;
    line-height: 1.65;
}

.home-intro__body p + p {
    margin-top: 0.85rem;
}

.home-intro__body p:last-child {
    margin-bottom: 0;
}

.home-intro__contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.35rem;
    padding-top: 1.25rem;
    border-top: 1px solid #edf2f7;
}

.home-intro__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ptum-text);
    background: #f8fafc;
    border: 1px solid #dbe4ec;
    border-radius: 8px;
    text-decoration: none;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.home-intro__chip:hover {
    color: var(--ptum-brand-text);
    border-color: rgba(var(--ptum-brand-rgb), 0.35);
    background: rgba(var(--ptum-brand-rgb), 0.06);
}

.home-intro__chip i {
    color: var(--ptum-brand);
    font-size: 0.85rem;
}

.home-intro__chip:focus-visible {
    outline: none;
    box-shadow: var(--ptum-ring-brand);
    border-color: rgba(var(--ptum-brand-rgb), 0.45);
}

.home-stats {
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
}

.home-stats__shell {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow:
        0 0 0 1px rgba(var(--ptum-brand-rgb), 0.05),
        0 16px 48px -20px rgba(15, 23, 42, 0.14);
}

.home-stats__head {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.35rem 1.35rem 1.2rem;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    border-bottom: 1px solid #e8edf3;
}

@media (min-width: 768px) {
    .home-stats__head {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-end;
        justify-content: space-between;
        padding: 1.5rem 1.75rem 1.35rem;
    }
}

.home-stats__title {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--ptum-brand-text);
    letter-spacing: -0.02em;
}

.home-stats__subtitle {
    margin: 0;
    font-size: 0.9rem;
    color: var(--ptum-text-muted);
    line-height: 1.45;
    max-width: 36rem;
}

.home-stats__cta {
    border-radius: 8px !important;
    font-weight: 600;
    padding: 0.5rem 1.25rem !important;
    box-shadow: 0 4px 12px rgba(var(--ptum-brand-rgb), 0.25);
    white-space: nowrap;
}

.home-stats__cta:focus-visible {
    outline: none;
    box-shadow: var(--ptum-ring-accent), 0 4px 12px rgba(var(--ptum-brand-rgb), 0.25);
}

.home-stats__cta:hover {
    box-shadow: 0 6px 16px rgba(var(--ptum-brand-rgb), 0.32);
}

.home-stats__chart {
    padding: 0.65rem 0.75rem 1rem;
    min-height: 280px;
    background: linear-gradient(180deg, #fbfcfd 0%, #fff 100%);
}

body.page-home section {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    overflow: visible;
}

@media (max-width: 991px) {
    .home-hero__copy {
        text-align: center;
    }

    .home-hero__kicker {
        text-align: center;
    }

    .home-hero__lead {
        margin-left: auto;
        margin-right: auto;
    }

    .home-hero__actions {
        align-items: center;
        justify-content: center;
    }

    .home-stats__head {
        text-align: center;
    }

    .home-stats__cta {
        width: 100%;
        white-space: normal;
    }
}

@media (max-width: 768px) {
    #hero.home-hero {
        padding-top: 5.75rem !important;
        padding-bottom: 3.1rem !important;
    }

}

/* --- Rodapé: bloco verde (contactos + colunas) + faixa inferior --- */
#footer .footer-top.ptum-footer-main {
    padding: 3.25rem 0 2.5rem !important;
    background: linear-gradient(
            165deg,
            rgba(0, 128, 74, 0.98) 0%,
            rgba(24, 103, 56, 0.97) 42%,
            rgba(0, 55, 36, 0.99) 100%
        ),
        rgba(0, 107, 61, 0.96) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

#footer .footer-top.ptum-footer-main .overlay.ptum-footer-main__bg {
    opacity: 0.16;
    filter: grayscale(1) contrast(1.05);
}

.ptum-footer-main__inner {
    z-index: 1;
}

.ptum-footer-main__contact-item {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.9rem;
    text-align: left;
}
@media (min-width: 992px) {
    .ptum-footer-main__contact-item.justify-content-lg-start {
        justify-content: flex-start;
    }
    .ptum-footer-main__contact-item.justify-content-lg-center {
        justify-content: center;
    }
    .ptum-footer-main__contact-item.justify-content-lg-end {
        justify-content: flex-end;
    }
}

.ptum-footer-main__icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #ecfdf5;
    font-size: 1.15rem;
}

.ptum-footer-main__contact-text,
.ptum-footer-main__contact-text a {
    font-size: 0.95rem;
    line-height: 1.55;
    color: rgba(248, 250, 252, 0.95) !important;
    text-decoration: none;
    font-weight: 500;
}
.ptum-footer-main__contact-text a:hover {
    color: var(--ptum-accent) !important;
    text-decoration: underline;
}

.ptum-footer-main__rule {
    height: 1px;
    margin: 2rem 0 2.25rem;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.22) 20%,
        rgba(255, 255, 255, 0.22) 80%,
        transparent 100%
    );
    border: 0;
}

.ptum-footer-main__logo-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.1rem 1.25rem;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    max-width: 220px;
    margin-left: auto;
    margin-right: auto;
}
@media (min-width: 992px) {
    .ptum-footer-main__brand .ptum-footer-main__logo-card {
        margin-left: 0;
        margin-right: 0;
    }
}

.ptum-footer-main__logo-img {
    width: 100%;
    max-width: 180px;
    height: auto;
    object-fit: contain;
}

#footer .footer-top.ptum-footer-main h4.ptum-footer-main__heading {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff !important;
    padding-bottom: 0.85rem;
    margin-bottom: 1rem;
    border-bottom: none;
}

#footer .footer-top.ptum-footer-main h4.ptum-footer-main__heading::after {
    width: 2.75rem;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--ptum-accent) 0%, #fbbf24 100%);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}
@media (min-width: 992px) {
    #footer .footer-top.ptum-footer-main h4.ptum-footer-main__heading::after {
        left: 0;
        transform: none;
    }
}

#footer .footer-top.ptum-footer-main .ptum-footer-main__links ul {
    margin: 0;
    padding: 0;
}

#footer .footer-top.ptum-footer-main .ptum-footer-main__links ul li {
    padding: 0.55rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (min-width: 992px) {
    #footer .footer-top.ptum-footer-main .ptum-footer-main__links ul li {
        justify-content: flex-start;
    }
}

#footer .footer-top.ptum-footer-main .ptum-footer-main__links ul a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(248, 250, 252, 0.95) !important;
    font-weight: 500;
    font-size: 0.92rem;
    line-height: 1.35;
    text-align: left;
}

#footer .footer-top.ptum-footer-main .ptum-footer-main__links ul a i {
    flex-shrink: 0;
    color: rgba(253, 230, 138, 0.95) !important;
    font-size: 0.85rem;
    padding-right: 0;
}

#footer .footer-top.ptum-footer-main .ptum-footer-main__links ul a:hover {
    color: #fff !important;
    text-decoration: none;
    transform: translateX(2px);
}

#footer .footer-top.ptum-footer-main .ptum-footer-main__links ul a:hover i {
    color: var(--ptum-accent) !important;
}

.ptum-footer-bar {
    background: #0b0f14 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ptum-footer-bar__copy {
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.95;
}

.ptum-footer-bar__credits {
    font-size: 0.82rem;
    color: rgba(248, 250, 252, 0.65) !important;
    margin-top: 0.35rem;
}

.ptum-footer-bar__credit-link {
    color: var(--ptum-accent) !important;
    font-weight: 600;
    text-decoration: none;
}
.ptum-footer-bar__credit-link:hover {
    color: #fcd34d !important;
    text-decoration: underline;
}

.ptum-footer-bar__social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.ptum-footer-bar__social-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 2.5rem !important;
    height: 2.5rem !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #f8fafc !important;
    font-size: 1.1rem !important;
    line-height: 1 !important;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease, color 0.2s ease !important;
}

.ptum-footer-bar__social-btn:hover {
    background: rgba(var(--ptum-accent-rgb), 0.22) !important;
    border-color: rgba(var(--ptum-accent-rgb), 0.5) !important;
    color: #fff !important;
    transform: translateY(-2px);
}

/* --- Portal público: acabamento (fundo, foco, cabeçalho) --- */
body.page-public-layout {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 1.02rem;
    line-height: 1.55;
    color: var(--ptum-text);
    background: linear-gradient(180deg, #eef1f5 0%, #f8fafc 32%, #ffffff 78%);
    background-attachment: fixed;
}

body.page-public-layout #conteudo-principal {
    padding-bottom: 2.5rem;
}

/* Contentores ligeiramente mais estreitos que o Bootstrap padrão (~3–6%) */
@media (min-width: 576px) {
    body.page-public-layout .container {
        max-width: 520px;
    }
}

@media (min-width: 768px) {
    body.page-public-layout .container {
        max-width: 688px;
    }
}

@media (min-width: 992px) {
    body.page-public-layout .container {
        max-width: 912px;
    }
}

@media (min-width: 1200px) {
    body.page-public-layout .container {
        max-width: 1080px;
    }
}

@media (min-width: 1400px) {
    body.page-public-layout .container {
        max-width: 1240px;
    }
}

.ptum-skip-link {
    z-index: 10050;
    top: 0.5rem;
    left: 0.5rem;
}

.ptum-skip-link:focus-visible {
    outline: none;
    box-shadow: var(--ptum-ring-accent);
}

body.page-public-layout #header .logo a {
    display: block;
    padding: 0;
    overflow: hidden;
    line-height: 0;
    border-radius: 7px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    box-shadow:
        inset 0 0 0 1px rgba(15, 23, 42, 0.08),
        0 1px 4px rgba(0, 0, 0, 0.2);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

body.page-public-layout #header .logo a:hover {
    border-color: rgba(255, 255, 255, 0.48);
    box-shadow:
        inset 0 0 0 1px rgba(15, 23, 42, 0.06),
        0 2px 8px rgba(0, 0, 0, 0.22);
}

body.page-public-layout #header .logo a:focus-visible {
    outline: none;
    box-shadow: var(--ptum-ring-accent), inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

body.page-public-layout #header.ptum-public-header .logo img {
    display: block;
    max-height: 52px;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    transition: transform 0.2s ease;
}

body.page-public-layout #header.header-scrolled .logo img {
    max-height: 48px;
}

.get-started-btn.ptum-public-header__cta {
    font-family: var(--ptum-font-sans) !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em;
    text-transform: none;
    padding: 0.5rem 1.35rem !important;
}

body.page-public-layout #header .get-started-btn.ptum-public-header__cta:focus-visible {
    outline: none;
    box-shadow: var(--ptum-ring-accent);
}

body.page-public-layout #navbar .nav-link:focus-visible {
    outline: none;
    box-shadow: var(--ptum-ring-accent);
    border-radius: 6px;
}

/* Menu principal (desktop): área de clique equilibrada e traço de hover/activo centrado */
@media (min-width: 992px) {
    body.page-public-layout #navbar > ul {
        gap: 0.2rem;
    }

    body.page-public-layout #navbar > ul > li > a.nav-link {
        position: relative;
        display: inline-flex !important;
        align-items: center;
        justify-content: center !important;
        padding: 0.5rem 0.85rem !important;
        border-radius: 6px;
    }

    body.page-public-layout #navbar > ul > li > a.nav-link::after {
        content: "";
        position: absolute;
        left: 0.5rem;
        right: 0.5rem;
        bottom: 0.22rem;
        height: 3px;
        border-radius: 2px;
        background: var(--ptum-accent);
        transform: scaleX(0);
        transform-origin: center;
        transition: transform 0.2s ease;
        pointer-events: none;
    }

    body.page-public-layout #navbar > ul > li > a.nav-link:hover::after,
    body.page-public-layout #navbar > ul > li > a.nav-link.active::after {
        transform: scaleX(1);
    }

    body.page-public-layout #navbar > ul > li > a.nav-link.active {
        box-shadow: none !important;
    }
}

body.page-public-layout #navbar .nav-link.active {
    color: var(--ptum-accent) !important;
}

body.page-public-layout #conteudo-principal a:not(.btn):not(.nav-link):not(.get-started-btn):not(.dropdown-item):not(.page-link):not(.breadcrumb-item) {
    color: var(--ptum-link);
    text-decoration: underline;
    text-underline-offset: 0.2em;
    text-decoration-thickness: 1px;
}

body.page-public-layout #conteudo-principal a:not(.btn):not(.nav-link):not(.get-started-btn):not(.dropdown-item):not(.page-link):not(.breadcrumb-item):hover {
    color: var(--ptum-brand-hover);
}

body.page-public-layout #conteudo-principal .home-intro__chip {
    text-decoration: none;
    color: var(--ptum-text);
}

/* --- Área privada (backoffice): legibilidade e cromo --- */
body.scroll {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--ptum-text);
}

.pcoded-navbar.menupos-fixed,
.pcoded-main-container {
    min-height: 100vh !important;
}

.pcoded-main-container.bg-gray-300 {
    background: linear-gradient(180deg, #e8edf3 0%, #f1f5f9 45%, #f8fafc 100%) !important;
}

.ptum-backoffice-header.navbar-light,
.ptum-backoffice-header.bg-light {
    background: rgba(255, 255, 255, 0.94) !important;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.07);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85), 0 10px 28px rgba(15, 23, 42, 0.05) !important;
}

.pcoded-navbar .main-menu-header.border-bottom {
    border-bottom-color: rgba(15, 23, 42, 0.08) !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

body.scroll .pcoded-content .card:not(.border-0):not(.occurrence-list-card):not(.app-listing-card) {
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 28px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

body.scroll .card-header {
    background: linear-gradient(180deg, #fafbfc 0%, #f1f5f9 100%);
    border-bottom-color: rgba(15, 23, 42, 0.08);
    font-weight: 600;
    color: #0f172a;
}

.ptum-backoffice-footer {
    bottom: 0;
    left: 0;
    z-index: 1000;
    border-top-color: rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 -6px 22px rgba(15, 23, 42, 0.05);
}

.ptum-backoffice-footer a {
    text-decoration: none;
}

.ptum-backoffice-footer a:hover {
    text-decoration: underline;
}
